Skip to content

Issue: 26-character Code-128 barcodes are not scanned or are decoded incorrectly #283

Description

@CatharineDiva

Hi,
I’m experiencing an issue with ZXing.Net.Maui when scanning 26-character Code-128 (One Dimensional) barcodes.

We need to support both Code-128 and QR codes, but the One Dimensional barcodes with 26 characters are either not detected at all or decoded incorrectly.
QR codes work without any issues.

Example 26-character barcodes that fail to scan:

K7020100030031.82402310001
H7020100060116.72526790862
K7044111250134.22309360001
Image Image Image

Scanner configuration:

barcodeView.Options = new BarcodeReaderOptions
{
    Formats = BarcodeFormats.All,
    AutoRotate = true,
    Multiple = true,
};

Expected behavior
26-character Code-128 barcodes should be detected and decoded accurately.
Actual behavior
Some barcodes are not recognized at all
Others are recognized incorrectly (wrong or incomplete result)

Environment
ZXing.Net.Maui.Controls version: 0.6.0
.NET MAUI version: 9
Android API level: 35
iOS version: 26

Activity

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