Comments (5)
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.
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.
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.
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.
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)
- webpack error migrating from 0.9.15 -> 0.9.16 HOT 5
- How to bundle zbar.wasm in a module project? HOT 6
- The barcode type DataMatrix is not supported HOT 1
- Please Help : Why i show this error when i tray import the package in Angular 16 HOT 1
- Build fails when using in Next.js App directory router. HOT 2
- [BUG] WebAssembly.Module doesn't parse at byte 1227: invalid opcode 192, in function at index 28 HOT 7
- [BUG] On IOS Safari Iphone 12 - after background/sleep mode reactivation changes camera to fisheye HOT 8
- Feature Suggestion: Allow Passing the Zbar Instance HOT 7
- Prepare for a NPM release of this package please HOT 1
- [BUG] Combined scan symbol type not recognized HOT 1
- [Enhancement] Allow specifying the URL of the WASM file HOT 2
- [BUG] library not being recognized/provided by vite HOT 3
- Configure custom ZBarScanner instance HOT 2
- Paused when failed to detect unsupported code type. HOT 2
- zbar-wasm doesn't work with nodejs 18
- TypeError: Failed to construct 'URL': Invalid URL HOT 5
- Issue with utf-8 HOT 13
- after 15 june this package giving an error HOT 2
- loading zbar-wasm as ES module fails in Node HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zbar-wasm.