Giter Club home page Giter Club logo

Comments (7)

micjahn avatar micjahn commented on August 20, 2024

You can find a really simple sample at the project home page:
https://github.com/micjahn/ZXing.Net
Scroll a little bit down until you see the section "Usage examples".
You can download the assemblies from the release section
https://github.com/micjahn/ZXing.Net/releases
or via nuget.
The specific build which you have to use depends on the project which you want to build.
In most cases nuget will do the job for you.

from zxing.net.

ellLazar avatar ellLazar commented on August 20, 2024

hello micjahn,
thanks for answer.

bercode decode code_39

I made some testing with the ZXing barcode reader,
I realize that in many cases it's not so accurate.
I made some comparison with other's professional barcode reader
and I found that ZXing give some less results.
are there some settings options I can add to make better results ?
are there some limits to barcode size (width too long about 13 numric char's ?)

  1. if I have more than one barcode in page how I can get all barcodes in array or delimited string ?

thanks,
EL

from zxing.net.

micjahn avatar micjahn commented on August 20, 2024

I doesn't know your environment but I will try to give some hints.
Every possible option is accessible through the class DecodingOptions which is behind the property Options of the barcode reader class. There are some options for CODE 39. You should play around with this and find the setting which works best for you. The DecodingOptions also contains a property TryHarder which you should set to true if CPU cycle count doesn't matter.
Another important thing is the quality of the image. If you develop an app for a mobile phone you shouldn't use the highest possible resolution of the webcam. Something around 1024x1024 pixels are enough in most cases because the user holds the phone near to the code.
If you develop a desktop app which, for example, reads barcodes from scanned image you have to try out
which resolution gives the best results. Important note don't use the black and white mode of the scanner. Scan it as colored or grayscale image.

For multiple barcodes use the method DecodeMultiple. But ZXing doesn't guarantee that it will find every single barcode on a page.

from zxing.net.

ellLazar avatar ellLazar commented on August 20, 2024

thanks for detailed answer

TryHarder
in #C VS2015 in locals it has an exception (?), I cannot use this option in code also.

is it possible to "help" the decoder, to find only numeric digits(0,1,2,3...,9) ?
may be something charset ?
how to use charset ?

I use on desktop 300DPI black&white (1bpp)

from zxing.net.

micjahn avatar micjahn commented on August 20, 2024

What exception do you get with TryHarder?

What do you want to try with "only numbers"? The reader looks for a appropriate barcode and tries to
decode the content. There is no charset or similar for CODE 39.

And as I said before if possible use grayscale images instead of black&white.

from zxing.net.

ellLazar avatar ellLazar commented on August 20, 2024

ZXing accuracy,
I tried ZXing vs 3 others barcode engines ,
in most cases the results where good, but found some barcodes that where looking good, that ZXing could not recognize them (but other engines succeed to recognize),
what is the reason for that ?,
with adding some other settings can help or this is the limit of ZXing ?
at last I succeed to the .options.tryharder =true also, but it did not help.

EMGUcv
I noticed you are using emguCV, for what purpose you use this library ?

from zxing.net.

micjahn avatar micjahn commented on August 20, 2024

EmguCV and other imaging libraries are only used by the demo implementations to show how it works. ZXing.Net itself has no dependencies to 3rd party libraries.

Accuracy: ZXing.Net doesn't guarantee that it will find every barcode. Other engines using different algorithms which are better in some circumstances. Feel free to provide a PR which enhance the quality of the scanning process. There are no other options like TryHarder which can be used.

from zxing.net.

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.