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.49k stars 2.91k forks source link

[Bug report] cannot recognize special character in Code 93 Extended (Full ASCII Code 93) #560

Open markchanosa opened 2 years ago

markchanosa commented 2 years ago

Describe the bug Special characters are allowed in Code 93 Extended like "", but in mlkit app will not recognize the special character and showing "bO" if this is a "" character. However, in zxing app it can recognize the "_" correctly. Is there any setting it can be used to recognize these special characters?

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

  1. Go to https://products.aspose.app/barcode/generate/code93#result
  2. Select 'Code 93 Extended'
  3. Enter '123_456' in code text
  4. Click on 'Generate Barcode'
  5. Use the sample app 'Barcode Scanning' function to scan the barcode
  6. See incorrect result '123bO456'

If applicable, please include code snippet and sample input(image, video, text, etc) image image

Expected behavior A clear and concise description of what you expected to happen. Showing correct result '123_456'

SDK Info:

Smartphone:

Development Environment: (For Android issue feel free to skip this section)

terryburton commented 1 month ago

ML Kit does not currently claim to support Code 93 Extended, only Code 93.

Nevertheless, the decoding is incorrect. The correct behaviour when encountering the implicit (%) codeword is not to scan when lacking support for extended characters.

So this seems to be both a bug report and a feature request.