Redth / ZXing.Net.Maui

Barcode Scanning for MAUI?
MIT License
453 stars 149 forks source link

Can't read QR #195

Open NiX3r opened 1 month ago

NiX3r commented 1 month ago

Hey there 👋 , I've tried a lot of options to read QR in MAUI (Android, Windows, iOS).

I've done what is in readme in this project and read almost all issues open or closed.

When I start an app on Android everything loads up perfectly without any error. But when I point my camera to some QR it can't read. Even if I tried to move in or out. Tried different options. Only what I get is [MirrorManager] this model don't Support message in console when I point at QR.

Here's my code:

cameraBarcodeReaderView.Options = new ZXing.Net.Maui.BarcodeReaderOptions
{
    Formats = ZXing.Net.Maui.BarcodeFormats.All,
    AutoRotate = true,
    Multiple = false,
    TryInverted = true
};
cameraBarcodeReaderView.IsDetecting = true;
cameraBarcodeReaderView.BarcodesDetected += (_, args) =>
{
    Console.WriteLine("here");
};

In xaml:

<zxing:CameraBarcodeReaderView Grid.ColumnSpan="2"
    x:Name="cameraBarcodeReaderView"
    BarcodesDetected="BarcodeDetected" />

I calling another function to process QR - which is not important when it's never called

Thanks for any help guys 💪

NiX3r commented 1 month ago

Untitled 1 This is QR I'm trying to read. Simple string with 5 digits in it