Barcode scanning trouble with data matrix

765 views
Skip to first unread message

Jason Valdez

unread,
Jun 11, 2018, 2:13:54 PM6/11/18
to Firebase Google Group
I have setup an Android project to use the Google Firebase ML Kit for Barcode scanning and have no problem with multiple 1D barcodes being recognized, but 2D data matrix barcodes are not recognized as easily and only one is scanned at a time. Are multiple data matrices able to be scanned at a time? And is there a way to guarantee they are recognized more easily?

Thank you,
-Jason Valdez

Sachin Kotwani

unread,
Jun 11, 2018, 4:41:18 PM6/11/18
to fireba...@googlegroups.com
Hi Jason,

Thanks for reaching out. Would you be able to share a sample image or barcode to help us troubleshoot?

Sachin (Product Manager on ML Kit)

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/3f8a9d07-3555-4555-8baf-80f0d53e720d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jason Valdez

unread,
Jun 14, 2018, 11:11:56 AM6/14/18
to Firebase Google Group
Hi Sachin, 

Here is an example of a barcode I was trying to scan. 
I tried different variations of distance to the code but was still having problems. 

Thanks,
-Jason V
1528477638454.jpg

Sachin Kotwani

unread,
Jun 14, 2018, 11:59:32 AM6/14/18
to fireba...@googlegroups.com
Thanks Jason. I'll check with the eng team and keep you posted on any progress.

Sachin Kotwani

unread,
Jun 14, 2018, 2:02:00 PM6/14/18
to fireba...@googlegroups.com
Jason, I've checked with the eng team, and the reason you might be having issues is that DataMatrix codes are only recognized if they intersect the center point of the frame, which implies only one can be scanned at a time.

Jason Valdez

unread,
Jun 14, 2018, 7:01:34 PM6/14/18
to Firebase Google Group
Sachin,

Okay thank you for the information. This is very helpful to know. I feel like this should be in the documentation. I couldn't find anywhere that mentions these facts. 

Thanks,
-Jason V.

Sachin Kotwani

unread,
Jun 18, 2018, 10:51:41 AM6/18/18
to fireba...@googlegroups.com
Agreed. We'll get it added.

John Nachtrieb

unread,
Jun 21, 2018, 10:11:57 AM6/21/18
to Firebase Google Group
Jason:

We have no problem scanning this Data Matrix cod, but so far we cannot get a verifier report on it. Do  you want us to investigate further or is the problem resolved?

John N

Jason Valdez

unread,
Jun 21, 2018, 4:55:58 PM6/21/18
to Firebase Google Group
Problem has been solved. I found the sweet spot on the camera where is is able to detect the data matrix.

Thanks,
Reply all
Reply to author
Forward
0 new messages