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

barcode 128 not found #768

Closed
paraflu opened this issue Mar 8, 2017 · 0 comments
Closed

barcode 128 not found #768

paraflu opened this issue Mar 8, 2017 · 0 comments

Comments

@paraflu
Copy link

paraflu commented Mar 8, 2017

I've implementend a .net app using zxing barcodereader, it work well but in some case the barcode isn't catch. The barcode image is here https://ibb.co/frUZQa

I've tried other tool and some work some not.

The code c# is simple :

        BarcodeReader reader = new BarcodeReader();
        reader.Options = new ZXing.Common.DecodingOptions();
        reader.Options.PossibleFormats = new List<ZXing.BarcodeFormat>() {
                ZXing.BarcodeFormat.CODE_128
            };
        reader.Options.TryHarder = true;
        reader.Options.PureBarcode = false;
        reader.AutoRotate = true;

        List<string> codes = new List<string>();
        foreach (var image in ScannedImages)
        {
            var result = reader.Decode((Bitmap)image);
            if (result != null)
            {
                codes.Add(result.Text);
            }
        }
        return codes;
@srowen srowen closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants