Comments (10)
I don't know what you have tried but for me it works.
It is important to know, what the java online decoder does in the background. As far as I know it uses the GlobalHistogramBinarizer instead of the HybridBinarizer (or both, not sure) which is used as default in ZXing.Net BarcodeReader class. If the BarcodeReader class uses the GlobalHistogramBinarizer too it will find both codes in the picture.
The main problem is that the HybridBinarizer gives better results for other pictures. If you want the best out of zxing you have to decode a picture twice, once with every binarizer. But it slows down the decoding speed.
So the default for ZXing.Net is the HybridBinarizer. If you have enough CPU cycles free in your target environment you can enhanced the decoding and try to find the codes with both binarizers.
from zxing.net.
Thanks for getting back to me.
I downloaded ZXing.Net.Master and built the winforms demo.
There is no combination of settings that will get this to read the QR code (though it does read the barcode).
How do I specify the binarizer?
from zxing.net.
I just changed the code from
private static readonly Func<LuminanceSource, Binarizer> defaultCreateBinarizer =
(luminanceSource) => new HybridBinarizer(luminanceSource);
to
private static readonly Func<LuminanceSource, Binarizer> defaultCreateBinarizer =
(luminanceSource) => new GlobalHistogramBinarizer(luminanceSource);
and it still did not work
from zxing.net.
You have to enable the option for multiple barcodes.
from zxing.net.
it's enabled
from zxing.net.
https://www.screencast.com/t/Z9S71oAzAC
from zxing.net.
I tried toggling "only QR codes" - still no luck
from zxing.net.
I do exactly the same and it works. Crazy. Scratching my head.
Are you sure that the project is build correctly after your changes?
from zxing.net.
I did a clean and rebuild. Same issue
from zxing.net.
Can you please try out the attached binary build of the WinForms demo?
The ZIP-Archiv includes the picture from this issue, too.
WindowsFormsDemo_GlobalHistogramBinarizer.zip
from zxing.net.
Related Issues (20)
- A small log bug HOT 1
- 如何设置条形码的尺寸以及密度 HOT 1
- Renderer for net8.0-android? HOT 4
- ZXing.Net Bindings for SkiaSharp Package missing Linux HOT 4
- Upgrade SkiaSharp - current version had Vulnerabilities HOT 5
- zxing.net is missing NuGet package README file
- 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
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.