googlesamples / mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS
Apache License 2.0
3.55k stars 2.92k forks source link

[Bug report] found two results from an image qrcode. #662

Open randauto opened 1 year ago

randauto commented 1 year ago

Describe the bug I created an image qrcode from this website https://barcode.tec-it.com/en/EAN8?data=12344451

To Reproduce I used MLKit to detect the barcode from this image and I got two results from SDK first is: barcode format = 64 barcode valueType = 5 barcode rawValue = 12344451 barcode disPlayValue = 12344451 and second is: barcode format = 64 barcode valueType = 5 barcode rawValue = 12300051 barcode disPlayValue = 12300051

Expected behavior One result returned from SDK.

SDK Info:

Smartphone:

zhouyiself commented 1 year ago

Thanks for the report! Would you mind sharing your test image?

randauto commented 1 year ago

Thanks for the report! Would you mind sharing your test image?

Yes, I created the image from the link below https://barcode.tec-it.com/en/EAN8?data=12344451 image

I used CameraX and MLKit for image analysis. By bringing the camera to scan the image above, after a while of moving the camera through a few different angles, I got 2 results.