Giter Club home page Giter Club logo

Comments (5)

afriscic avatar afriscic commented on June 2, 2024 1

Thank you for great info @Olaf-R. Yes, this seems as MLKit problem.
You can file a bug report here but from my experience Google is now focusing on other stuff and all proposals about barcode scanning gets rejected.

from barcodescanning.native.maui.

Arasal avatar Arasal commented on June 2, 2024 1

I'm having the same issue with RawValue not displaying the asterisks. I have no way of verifying my barcodes on wrong reads.

Almost all our barcodes are in Code 39 with asterisks characters at the start and end of the barcodes.

Does the library tries to detect the barcode from a single image or multiple images ? In issue #42 you talked about the parameter PoolingInterval. How does it affect scanning ?

from barcodescanning.native.maui.

Olaf-R avatar Olaf-R commented on June 2, 2024

I also have issues with Code39 barcodes. I had filed issue #42 for this.

I dived quite a bit into Google's BarcodeScanner lib a while ago. The root of the problem might be that the lib doesn't seem to respect the start and stop delimiters (see the Wikipedia article on Code 39), hence the scanner will scan incomplete barcodes which thus leads to wrong results.
To test, all you need to do is to cover a small portion at the beginning or the end of a Code 39 barcode. The scanner should not react in thoses cases as the scanned value is incomplete. It does return a result though which might be just what you are seeing.

As long as there is no solution to this problem, my app is additionally checking the length and contents of a scanned code; upon finding any invalid/incomplete codes it will show a little toast-message. That's the best I could come up with.

FWIW, I have always seen identical values in DisplayValue and RawValue when I would have expected the asterisks to show up.

However, all of the above may be totally wrong, too.

Interesting to see that you seem to be doing the same thing - a two character type-prefix along with a numeric ID, the only dif being that my ID maxes out at 6 digits instead of 8. :-)

from barcodescanning.native.maui.

afriscic avatar afriscic commented on June 2, 2024

It looks like an issue with how Google MLKit handles Code39 barcodes, so unfortunately there is little that I can do.
Pooling just combines recognised barcodes from multiple frames. i don't think it will help with your issue.
Apple has internally 4 different subsets of Code39 symbology so on iOS i could implement fine selection of what Code39 barcodes get recognised.

from barcodescanning.native.maui.

OuTseries avatar OuTseries commented on June 2, 2024

Thank you so much for the replies.
I think i might be able to use code 128 and avoid this issue.
Still thanks for the attempt at improving it

from barcodescanning.native.maui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.