Skip to content

Can't reduce the scanning area? #116

Open

Description

@HoGDylan

Hello,

I'm using Zxing for a Barcode scanning app and I would like to reduce the scanning area. Because the barcodes my app needs to scan are in a list underneath each other I would like to be able to "aim" where the app is scanning, preferably by adding a little frame where the scan actually happens.
I've tried doing this with the Frame property of the CameraBarcodeReaderView, but this seems to have no effect...

    <zxing:CameraBarcodeReaderView
        x:Name="scanner"
        IsDetecting="True"
        BarcodesDetected="scanner_BarcodesDetected"
        Frame="0, 0, 100, 50">
        <zxing:CameraBarcodeReaderView.Options>
            <zxingoptions:BarcodeReaderOptions AutoRotate="True" TryHarder="True" Formats="Code39"/>
        </zxing:CameraBarcodeReaderView.Options>
    </zxing:CameraBarcodeReaderView>

Am I doing something wrong or is there another way to do this?

Thanks!

Activity

  1. Cybrosys commented on Jan 26, 2024

    @Cybrosys

    I have a similar request, but would also like to report it as an issue. It seems barcodes are read above and below my active camera view, probably because the image is being cropped. I would like to be able to specify the active scanning region.

  2. vniehues commented on Dec 6, 2024

    @vniehues

    Are there updates on this?
    @HoGDylan Did you find a solution? I'm currently in the same position.

  3. pawelFelcyn commented on May 16, 2025

    @pawelFelcyn

    I'm facing the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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