Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Barcode Decode #83

Open
jaberlinz opened this issue Jul 20, 2024 · 2 comments
Open

Barcode Decode #83

jaberlinz opened this issue Jul 20, 2024 · 2 comments

Comments

@jaberlinz
Copy link

Hi & Thanks for the nice Work!
Forgive my ignorance but I have to ask, does this librarry only detect barcodes or it does decode the detected barcode? I dont see where it shows value/ or equivalent string.
thnx in advance 4ur help!
Cheers!

@Olaf-R
Copy link

Olaf-R commented Jul 22, 2024

Wouldn't make all too much sense without the results, would it? :-)
Just take a more thorough look at the sample repository and its code, you'll find the results in the BarcodeResult[] array.

@afriscic
Copy link
Owner

Hello.

Easiest way is to listen to OnDetectionFinished event in code behind. You can then access the decoded string for each detected barcode using DisplayValue or RawValue properties. For example:

private void CameraView_OnDetectionFinished(object sender, OnDetectionFinishedEventArg e)
{
    foreach (var result in e.BarcodeResults)
    {
        var value = result.DisplayValue
        ...
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants