no barcode detected


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 attached.

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>() {
    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)
    return codes;

file attachments

Closed Mar 8 at 6:44 PM by micjahn
It can't be guaranted that zxing can decode every image which is visually ok for a human. I tried the barcode and I think there is something wrong with the black bars at the left side. But there is no optimization hint within zxing. You can try to preprocess the images before decoding (like blurring, more contrast, etc.). But that is out of the scope of zxing.