mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

[Bug report] Barcode Scanning Error with '222' prefixed codes

Open bkoznov opened this issue 2 years ago • 0 comments

Describe the bug Barcodes beginning with '222' are often misdetected as beginning with '22'

To Reproduce Example Steps to reproduce the behavior in sample app:

  1. Select barcode scanning from the scrolling list Use the gallery or camera to give it a barcode such as '22201' If it works properly, try again 2-3 times. We consistently saw >70% misdetections.

No code changes needed. Example barcode and screenshot below IMG_0213 image

Expected behavior A clear and concise description of what you expected to happen. The correct barcode should be detected -- 22201. AVCaptureMetadataOutput works great from the AVFoundation library, mlkit should not have worse performance.

SDK Info:

  • Whichever the example app has in android gradle files, there is 'com.google.mlkit:barcode-scanning:17.2.0'. This problem is on iOS though, I am not sure where this information is.

Smartphone:

  • iPhone SE2 and a number of other iPhones

Development Environment:

  • IDE Version: XCode 14.3
  • Laptop/Desktop: Apple M1 Macbook Pro 16 inch 2021
  • macOs 13.3.1

bkoznov avatar Nov 02 '23 15:11 bkoznov