Search code examples
.netasp.net-mvcbarcodezxing

BarcodeReader by Zxing.Net


I'm trying to use the library ZXing.Net to decode barcode images. I've installed the library in AspNetCore-Mvc project, but I don't understand how to create an object of type BarcodeReader()

Where I can found some examples or docs?


Solution

  • Reading the reply of Micheal, I have decided to use the library ZXing.Net.Bindings.Windows.Compatibility (v0.16.7)

    I instantiate a redear object in this way:

     var barcodeReader = new BarcodeReader
            {
                AutoRotate = true,
                Options = new DecodingOptions
                {
                    TryHarder = true
                }
            };
    var result = barcodeReader.Decode(bitmap);
    

    The result variable contains the right infos.

    Thanks!