Skip to content

Issue scanning barcode #63

@DavidVTurley

Description

@DavidVTurley

Hi,
I have been using this to try and scan some EAN-13 barcodes. However it does not seem to recognise it.

I have been able to scan a qr-code, so it does work. But it just cant seem to scan the bar code.

This is the image that doesn't work:
image

And this one does:
image

And the code:

<BlazorBarcodeScanner.ZXing.JS.BarcodeReader 
    ShowStart="true"
    ShowReset="true"
    ShowVideoDeviceList="true"
    ShowToggleTorch="true"
    OnBarcodeReceived="LocalReceivedBarcodeText" 
    OnErrorReceived="Error"/>

@code {
    private void LocalReceivedBarcodeText(BarcodeReceivedEventArgs barcodeArgs)
    {
        string barcode = barcodeArgs.BarcodeText;
    }

    private void Error(ErrorReceivedEventArgs error)
    {
        var message = error.Message;
    }
}

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