Skip to content Skip to sidebar Skip to footer

Zxing.net Decode Pdf417 Barcode From Html5 Video

I am trying to use jQuery/JavaScript with ZXing.NET to decode a PDF417 barcode from a video source. Here is my HTML:

Solution 1:

I have some instances like the one of this issue, where with an apparently good image reconstruction, zxing can't decode as expected and i'm not competent to figure out why.

Try putting PureBarcode = true will resolve the issue.

DecodingOptionsoptions=newDecodingOptions
{
    TryHarder = true,
    PossibleFormats = newList<BarcodeFormat> { BarcodeFormat.PDF_417 },
    PureBarcode = true,
    AutoRotate = true,
    TryInverted = true,
    CameraResolutionSelector = HandleCameraResolutionSelectorDelegate
};

CameraResolution HandleCameraResolutionSelectorDelegate(List<CameraResolution> availableResolutions)
{
    if (availableResolutions == null || availableResolutions.Count < 1)
        returnnewCameraResolution () { Width = 800, Height = 600 };   
    return availableResolutions [availableResolutions.Count - 1];
}

Post a Comment for "Zxing.net Decode Pdf417 Barcode From Html5 Video"