Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zxing.Net issue with few barcode images #43

Closed
madhuinfos opened this issue Sep 24, 2017 · 1 comment
Closed

Zxing.Net issue with few barcode images #43

madhuinfos opened this issue Sep 24, 2017 · 1 comment

Comments

@madhuinfos
Copy link

Hi,

dg2138ey

Im using Zxing.Net for Bar code detection. Most of the cases its working fine. But for few images im facing an issue when the barcode is rotated. I have attached the sample bar code image for reference.
Im using the zxing library with below options,

this.reader = new BarcodeReader()
{
AutoRotate = true,

            Options = new DecodingOptions()
            {
                TryHarder = true,
                PossibleFormats = new List<BarcodeFormat>
                {
                    BarcodeFormat.EAN_8
                },
            },
            TryInverted = true
        };

Please suggest how can the accuracy can be improved with different rotations of attached images.
Note: I cant stop the rotation as user captures the print out of bar code image.

@micjahn
Copy link
Owner

micjahn commented Sep 28, 2017

I do not know why it does not work for you. I tried it with the WinFormsDemo and it could be scanned without issues. The WinFormsDemo uses the same options. On the other hand there are no more options which you can use. Sometimes it gives better results if the GlobalHistogramBinarizer is used instead of the HybridBinarizer.
The original java based online decoder works, too:
https://zxing.org/w/decode?u=https%3A%2F%2Fuser-images.githubusercontent.com%2F11314924%2F30782368-c3a8db7a-a14e-11e7-9139-8e5b6f8f3710.JPG

@micjahn micjahn closed this as completed Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants