Skip to content

Cant pickup very basic Code 128 barcode from clear image #610

@adminnz

Description

@adminnz

I have no idea what i'm doing wrong, but regardless of what bindings i use (ImageSharp, Skia, etc) ZXing cannot pickup just a basic CODE 128 barcode.

Here is the image:

Image

Here is the code that I have tried using ZXing.Net.Bindings.Windows.Compatibility:

using System.Drawing;
using ZXing.Windows.Compatibility;


var reader = new BarcodeReader { Options = { TryHarder = true } };
var barcodeBitmap = (Bitmap)Image.FromFile(@"test.jpg");
var result = reader.Decode(barcodeBitmap); //result is always null

I'm sure that this is just something I'm doing wrong, but I cant see why it cant detect what I believe is a very clear picture of a barcode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions