Comments (2)
Zxing doesn't guarantee to find every barcode. Especially if the barcode is rotated the library has some issues.
You should restrict the formats which are looked for.
var reader = new BarcodeReader();
reader.Options.PossibleFormats = new List<BarcodeFormat> { BarcodeFormat.CODE_128};
It prevents that you will find false positives.
Try to capture the barcodes unrotated, if possible, use an continuesly image stream.
It improves the user experience.
The zxing library itself was originally developed for mobile device scenarios which continuesly scanning for codes while the user focuses the camera.
Feel free to provide a PR which improves the scanning result for rotated codes.
from zxing.net.
Thanks for the feedback. I did restrict the format to Code 128 but then the decoding would fail on the angled version.
In my testing this Zxing library has done a good job with angled images, just not with Code 128. I've tried other online barcode decoders and they don't have any problem with the angled image I've been testing with so I think there could be room for improvement. I might post a PR specific to Code 128 since I've not seen issues in my testing with other formats.
Unfortunately in my use case I will only have still images to work from that have been previously captured so I need the best decoding I can get from imperfect images.
from zxing.net.
Related Issues (20)
- Can't encode € symbol to Qr. HOT 3
- Unable to parse this QR code, I don't know why HOT 1
- QRCODE type error parsing to UPC-E type HOT 1
- UPC/EAN Extension 2/5 does not read the 2/5 digit extension
- Can someone finally fix the example usage in README?
- Don't decode QR_CODE HOT 3
- ZXing.Net doesn't seem to be able scan more complicated PDF417 barcodes HOT 12
- EPC QR Code (European Payments Council) Not Decoded HOT 3
- Support for Latin-1 in BARCODE-128 HOT 4
- Upgrade SixLabors.ImageSharp - current version has vulnerabilities HOT 1
- UPC_A's error message is wrong.
- The image for PLESSEY is vertically tiny. HOT 6
- The sides of UPC_A's image could be slightly cut out. HOT 1
- Centering PDF_417 Barcodes and Unstable Width/Height HOT 1
- Barcode as small part of image HOT 1
- Barcode generator: unpredictable whitespace padding around it depending on requested Width
- Upgrading to Magick.Net 13.7.0 breaks ZXing.Magick HOT 1
- ZXing for WinUI-3 HOT 1
- Barcode DATA_MATRIX code = BCD88888888-1 to BCD88888888-99 Don't look right they are not a sqaure
- Undecodable QR code generated
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 zxing.net.