BarcodeObservation Orientation

Hi,

I'm working with vision framework to detect barcodes. I tested both ean13 and data matrix detection and both are working fine except for the QuadrilateralProviding values in the returned BarcodeObservation. TopLeft, topRight, bottomRight and bottomLeft coordinates are rotated 90° counter clockwise (physical bottom left of data Matrix, the corner of the "L" is returned as the topLeft point in observation). The same behaviour is happening with EAN13 Barcode.

Did someone else experienced the same issue with orientation? Is it normal behaviour or should we expect a fix in next releases of the Vision Framework?

Hello @Radiorebelde,

Do you have a focused sample project that demonstrates the issue you've described? I suspect that there is an image rotation you have not accounted for.

Best regards,

Greg

Hi Greg,

Thanks for your reply.

First I need to correct my initial post. Observation point are not rotated, they are mixed, but the topRight and bottomLeft points are inverted.

I also suspected an image rotation issue at first. To test if I wasn't doing something wrong I implemented both text recognition and barcode detection based on Apple SampleTextRecognition project. I draw the quadrilaterals of text recognition observations and barcode recognition on the image (using the same method for both) and draw a circle at topRight point for each observation. It turns out all detected text topRight are the expected ones while it highlights the bottom Left point for barcode observations.

Her is the sample project: https://github.com/radiorebelde/SampleScanner

Cheers!

@DTS Engineer Is there any update on this?

BarcodeObservation Orientation
 
 
Q