Skip to content

Inconsistent EAN-13 barcode decoding – wrong digits detected #601

@dfilipeloja

Description

@dfilipeloja

Hello,

I'm experiencing inconsistent and incorrect decoding of EAN-13 barcodes.

In many cases, the barcode is not read correctly even though the image is clear and easily readable by humans. I’ve noticed some recurring patterns in the errors:

  • Some digits are misread (for example, a "6" is detected as a different number — just an example).
  • Very often, the first 4–5 digits are incorrect, while the remaining digits are correct.
  • In other cases, the entire barcode value is wrong.
  • Scanning the same barcode multiple times can produce different results.
  • Changing angles, distance, lighting conditions, or device position does not consistently solve the problem.

These EAN-13 barcodes are valid and are correctly read by other scanners and mobile apps.

I have tested multiple angles, distances, and good lighting conditions, but the issue still occurs.

Here is a ZIP file containing several sample barcode images that reproduce the issue:
ZIP with barcodes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions