EAN 13 codes tracking

Hi everyone,

I'm trying to use the provided example to track some EAN 13 barcodes.
Tracker works fine just for QRCodes and Aruco codes but I'm not able to make it work on EAN 13.

It seems that with EAN codes the markerData array remains empty.

    private void OnMLMarkerTrackerResultsFoundArray(MLMarkerTracker.MarkerData[] dataArray)
        foreach (MLMarkerTracker.MarkerData data in dataArray)

Can anyone help me with this issue?

Thanks in advance.

Unity Editor version: 2022.2.21
ML2 OS version: 1.3.0-dev2
MLSDK version: 1.8.0
Host OS: Windows 11

Hi @simone.galvani

Have you tested this feature inside the Magic Leap Unity Examples project. EAN codes are difficult to track at long distances. Here is a link to a code that I was able to track with the Marker Tracker Example. Try scaling up the page until the marker information is debugged in the Status section of the application. Setting the scale to 400% made it track consistently.

Hi @kbabilinski, thank you!
With the example project i was able to read the barcode.
Do you know if there is a way to retrieve some position info from that? Even in screen space would be fine. My goal is to highlight the barcode that i'm scanning.
Thanks again for now, your help is much appreciated.

@simone.galvani Unfortunately, we do not provide the pose in screen space at this time. I went a head and reported your feedback for this feature to our voice of customer team. For now you would need to implement a custom marker tracking solution such as OpenCV.

Ok thanks for the support.
I will try with a custom marker.