Coder Social home page Coder Social logo

[BUG] Not able to scan the barcode of this image using this library, however able to scan it with the phone app about zbar-wasm HOT 5 CLOSED

kotasudhakar avatar kotasudhakar commented on August 17, 2024
[BUG] Not able to scan the barcode of this image using this library, however able to scan it with the phone app

from zbar-wasm.

Comments (5)

undecaf avatar undecaf commented on August 17, 2024

IMHO the quality of that image is just too low for being scanned by zbar.

Could you please tell me which online barcode readers you were using and which barcode type they reported? Thank you.

from zbar-wasm.

kotasudhakar avatar kotasudhakar commented on August 17, 2024

These were all able to scan

https://play.google.com/store/apps/details?id=com.gamma.scan&hl=en&gl=US
https://play.google.com/store/apps/details?id=com.mobileappsshop.barcode
https://online-barcode-reader.inliteresearch.com/
https://nanonets.com/barcode-scanner

from zbar-wasm.

undecaf avatar undecaf commented on August 17, 2024

Thank you @kotasudhakar for the list.

https://online-barcode-reader.inliteresearch.com/ reports a module size of 1.8px which makes this quite an edge case.

https://nanonets.com/barcode-scanner did not scan the barcode at all, it just detected the characters above and below the barcode.

Since zbar-wasm uses the Zbar barcode reader (compiled to WASM) in the background, there is nothing I can do in order to improve detection quality. I can only suggest that you open an issue at that project that suggests to improve detection for barcodes with very small module sizes.

from zbar-wasm.

zcattacz avatar zcattacz commented on August 17, 2024

Hi @undecaf, maybe have a try on this one https://zxing-wasm-demo.deno.dev/, when binarizer is switched to FixedThrethold mode, it works. Clicking on the green circle on the upper right corner displays the decoded detail.

from zbar-wasm.

undecaf avatar undecaf commented on August 17, 2024

Thank you @kotasudhakar, @zcattacz for your contributions to this issue.

IMHO, it is not a bug if a scanner is not able to recognize a barcode because of low image quality -- it is just a consequence of the amount of detection effort in the scanning algorithm.

zbar-wasm is intended to be fast enough to scan barcodes in mobile browsers from the video stream of the camera. If real-time scanning is not required, detection quality could be improved by preprocessing images in JS before passing them to the scanner, but this is outside the scope of zbar-wasm.

Therefore I hope you understand that I am closing this issue.

from zbar-wasm.

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.