1D Barcode Accuracy Benchmark: 4 Engines, 8,049 Linear Symbols

Need a license key to run the code in this tutorial?

Get a 30-day free trial license

Introduction

Accuracy is a key metric of barcode reading SDKs. Given an image, a barcode engine should correctly detect whether one or more barcodes exist. If barcodes exist, the percentage of correct values returned dictates the accuracy.

1D barcode accuracy of four engines over 8,049 linear symbols

As a software developer, choosing a barcode SDK with the best combination of speed, accuracy, robustness, and support is a crucial step in building a reliable barcode scanner application. This article scores four 1D engines on one controlled dataset: 8,049 annotated linear symbols drawn from 8,000 synthetic images, where every capture effect is labelled per image and every decoder result is published.

What you’ll build: A reference comparison of four barcode scanning SDKs (Dynamsoft, Scandit, ZXing-C++, ZBar) measured on the same 8,049 linear symbols — reading rate, precision, and the per-condition numbers you need to pick an engine for a 1D scanning project.

Key Takeaways

  • Dynamsoft Barcode Reader recognized 6,703 of 8,049 linear symbols (83.28%), the highest reading rate in the test, with 99.16% precision and 57 misreads.
  • Scandit decoded 6,486 (80.58%) and won the two hardest conditions — blur (82.62% vs 80.94%) and rotation (84.43% vs 80.33%) — but its Linux multi-scan returns duplicate reports, which pull precision down to 92.86%.
  • The open-source engines decode under half the dataset: ZBar 44.02% and ZXing-C++ 43.48%. Both ship 10 of the 17 linear symbologies, and both collapse on rotation (28.01% and 24.45%).
  • Symbology coverage is part of accuracy. Postnet and single-track Pharmacode (963 symbols) have no Scandit decoder, and IATA 2 of 5 (474 symbols) has no Dynamsoft one. Those symbols are scored as misses instead of being removed from the denominator.

To reproduce the run, start with the dataset description and the runner commands. To test barcodes from your own workflow, start with the SDK trial and prerequisites.

Common Developer Questions

How accurate is Dynamsoft Barcode Reader compared to Scandit, ZXing and ZBar on 1D barcodes?

Over the same 8,049 linear symbols, Dynamsoft Barcode Reader returned 6,703 correct values (83.28%), Scandit 6,486 (80.58%), ZBar 3,543 (44.02%) and ZXing-C++ 3,500 (43.48%). Precision — correct values divided by every value returned — is 99.16%, 92.86%, 95.11% and 98.37% respectively. The gap to the open-source engines comes from two places: fewer symbology decoders, and a much steeper loss on rotated and blurred labels.

Which 1D barcode engine handles blur and rotation best?

Scandit leads both conditions, but narrowly against Dynamsoft: 82.62% versus 80.94% on blurred symbols and 84.43% versus 80.33% on rotated ones. The open-source engines lose most of their symbols here — 34.42% and 37.22% on blur, 24.45% and 28.01% on rotation. If those two conditions dominate your workload, the choice is between the two commercial engines.

Why is this benchmark run on a synthetic dataset instead of public barcode photos?

Because the ground truth can be exact and the licence allows redistribution. Every image in the dataset is generated from a known payload, so the expected value and the expected quadrilateral are recorded before the JPEG is written, and each image carries the capture effects that were applied to it. The generator, the manifest, all 32,000 raw decoder records and the scorer ship together, so a reviewer can recompute every number on this page without asking us for a file.

Prerequisites

To reproduce this benchmark or test barcode scanning accuracy with your own images, download Dynamsoft Barcode Reader. Get a 30-day free trial license to get started.

How to Evaluate 1D Barcode Scanning Accuracy

There are two steps to read a barcode:

  1. Detection (AKA localization) - Upon initiating a scan, a barcode engine scans the entire width of an image trying to identify whether there are barcode candidates. One or more coordinates of quadrilaterals are returned.
  2. Decode (AKA recognition) - Once the regions of interest are identified, decoding is then initiated. In this step, the barcode scanner tries to unravel the encoded data.

Corresponding to the two steps, some datasets mark up the coordinates of the barcode candidates, while others mark up the barcode encoded values. Both approaches can be used to compare different barcode scanning engines.

This article uses the barcode values to measure barcode scanning accuracy, and scores every engine on the same annotation file. We will discuss the dataset in the following section.

Barcode Engines Tested

In this analysis, we compare Dynamsoft Barcode Reader against one other commercial barcode SDK (Scandit) and two widely used open-source solutions, ZBar and ZXing.

Versions. All four columns were re-measured for this page: Dynamsoft Barcode Reader 11.6.50 (ReadBarcodes_Default, BF_ALL), Scandit Linux SDK 8.7.1 (SC_PRESET_HIGH_EFFORT, multi-scan, colour inversion enabled), ZXing-C++ 3.1.1 (try_harder, try_rotate, try_invert, try_downscale, LocalAverage) and ZBar 0.10 through pyzbar 0.1.9.

Every reader was configured with every symbology its SDK supports. Where an engine ships no decoder for a symbology — Postnet and single-track Pharmacode for Scandit, IATA 2 of 5 for Dynamsoft, IATA 2 of 5, MSI and every postal format for the open-source engines — those symbols stay in the denominator and count as misses. That is the number a deployed scanner experiences, not the number a capability matrix implies.

Datasets Used for Comparison

The benchmark scores the Dynamsoft synthetic barcode dataset: 8,000 generated JPEGs carrying 11,372 annotated symbols across 24 symbologies, plus 200 background-only controls where an empty result is correct.

Dataset Images Annotated symbols Linear symbols scored here Linear symbologies Capture scenarios Controls
Dynamsoft synthetic barcode dataset 8,000 11,372 8,049 17 22, at three severities 200

The 17 linear symbologies are Codabar, Code 39, Code 93, Code 128, GS1-128, EAN-8, EAN-13, UPC-A, UPC-E, ITF, IATA 2 of 5, MSI, single-track Pharmacode, KIX, Postnet, Royal Mail 4-State and USPS Intelligent Mail. The remaining 952 symbols are QR Code and Micro QR, which are outside the scope of this article.

Each image is composed from a real background photograph, a rendered label and a payload generated for that symbol, then put through one capture profile: perspective, rotation, defocus, motion blur, low resolution, low contrast, noise, occlusion, glare, JPEG compression, framing changes, or a combination. The effect and its severity are recorded in the manifest next to the expected payload and quadrilateral, so a condition table is a filter over the same 8,049 symbols rather than a separate run.

Older versions of this page scored three public EAN-13 photo collections. They are no longer used: their licences do not allow redistribution of the images or of derived per-image results, which would leave the tables impossible to audit. The synthetic dataset is generated in-house, published under a licence that permits redistribution, and every per-image record ships with it.

Metrics: Reading Rate vs. Precision

In this article, we use precision and reading rate to evaluate the accuracy.

The precision is the number of correct results divided by the number of all results. A precision of 100% means each of the results is correct, although some barcodes might be missed.

Precision = correct results / all returned results

The reading rate is the number of correct results divided by the number of all barcodes. A reading rate of 100% means that all barcodes were recognized successfully, although incorrect values may still be mixed into the results.

Reading rate = correct results / all barcodes

A result counts as correct only when format and payload both match the annotation. A returned value that differs from the annotation is a misread. A second report of a value that was already read is a duplicate: it is not a misread, but it is a returned result, so it lowers precision. The tables below report the three counts separately so the arithmetic closes.

Benchmark Results: Dynamsoft vs. Scandit, ZXing, and ZBar

We scored all four engines on the 8,049 linear symbols. The annotation file is the same for every column, and no engine received a per-image hint.

Key Findings

  • Dynamsoft Barcode Reader achieved the highest reading rate, 83.28%, and the highest precision, 99.16%.
  • Scandit followed at 80.58% and was the only engine to beat Dynamsoft in any condition, taking blur, rotation and — by a single symbol — occlusion.
  • The open-source engines landed within 0.6 points of each other at 44.02% (ZBar) and 43.48% (ZXing-C++), roughly half the dataset.
  • Every engine lost the most symbols on combined capture effects: 71.45% for Dynamsoft, 70.22% for Scandit, 26.54% for ZXing-C++, 23.15% for ZBar.

All Linear Symbols

The table scores the full 8,049-symbol cohort, every linear symbology and every scenario included.

SDK Dynamsoft Barcode Reader Scandit ZXing-CPP pyZbar
Correctly recognized 6,703 out of 8,049 6,486 out of 8,049 3,500 out of 8,049 3,543 out of 8,049
Misread 57 64 41 182
Duplicate reports 0 435 17 0
Reading rate 83.28% 80.58% 43.48% 44.02%
Precision 99.16% 92.86% 98.37% 95.11%

Reading rate and precision of four 1D barcode engines on 8,049 linear symbols

Two numbers deserve a note. Dynamsoft’s 57 misreads are 0.7% of the 8,049 symbols, which is why its precision stays above 99% while it also has the widest symbology coverage. Scandit’s 435 duplicate reports come from its multi-scan mode: on a still image it can return the same symbol more than once, so its precision is the lowest of the four even though its misread count is only slightly above Dynamsoft’s.

Clean Images

“Clean” means no capture effect was applied: a sharp label, a normal exposure, no geometry change. It is a ceiling test for the decoders rather than an easy set, because it still includes the hard symbologies — Postnet, Pharmacode, MSI, USPS Intelligent Mail — and labels that occupy a small part of the frame.

SDK Dynamsoft Barcode Reader Scandit ZXing-CPP pyZbar
Correctly recognized 321 out of 364 308 out of 364 182 out of 364 191 out of 364
Misread 0 5 2 9
Duplicate reports 0 16 0 0
Reading rate 88.19% 84.62% 50.00% 52.47%
Precision 100% 93.62% 98.91% 95.50%

Sample image:

Sharp 1D label on a stone surface from the synthetic dataset

Blurred Images

The blur cohort groups defocus, motion blur and stacked blur, 892 symbols in total. It is the condition where Scandit takes the lead: its high-effort preset spends more time per image and holds 82.62% while Dynamsoft returns 80.94%.

SDK Dynamsoft Barcode Reader Scandit ZXing-CPP pyZbar
Correctly recognized 722 out of 892 737 out of 892 307 out of 892 332 out of 892
Misread 6 8 1 17
Duplicate reports 0 73 0 0
Reading rate 80.94% 82.62% 34.42% 37.22%
Precision 99.18% 90.10% 99.68% 95.13%

Sample image:

Blurred 1D label on a plastic tray

The open-source drop is the headline: ZXing-C++ falls from 50.00% on clean images to 34.42% on blurred ones, and ZBar from 52.47% to 37.22%. Dynamsoft gives up 7 points on the same transition; Scandit gives up two.

Every Capture Condition

Reading rate by capture condition, with the symbol count in every row held identical across the four columns. The total is still the full 8,049-symbol cohort.

Capture condition Symbols Dynamsoft Barcode Reader Scandit ZXing-CPP pyZbar
Clean 364 321 (88.19%) 308 (84.62%) 182 (50.00%) 191 (52.47%)
Perspective 739 581 (78.62%) 537 (72.67%) 381 (51.56%) 351 (47.50%)
Rotation 732 588 (80.33%) 618 (84.43%) 179 (24.45%) 205 (28.01%)
Blur 892 722 (80.94%) 737 (82.62%) 307 (34.42%) 332 (37.22%)
Low resolution 701 601 (85.73%) 561 (80.03%) 274 (39.09%) 279 (39.80%)
Low contrast 854 738 (86.42%) 717 (83.96%) 410 (48.01%) 468 (54.80%)
Noise / JPEG 692 592 (85.55%) 516 (74.57%) 295 (42.63%) 226 (32.66%)
Occlusion 553 423 (76.49%) 424 (76.67%) 298 (53.89%) 304 (54.97%)
High density 1,412 1,261 (89.31%) 1,221 (86.47%) 768 (54.39%) 796 (56.37%)
Framing 309 270 (87.38%) 259 (83.82%) 151 (48.87%) 153 (49.51%)
Glare 153 143 (93.46%) 133 (86.93%) 83 (54.25%) 88 (57.52%)
Combined 648 463 (71.45%) 455 (70.22%) 172 (26.54%) 150 (23.15%)
Total 8,049 6,703 (83.28%) 6,486 (80.58%) 3,500 (43.48%) 3,543 (44.02%)

Reading rate by capture condition for four 1D engines

The chart isolates the four conditions that decide most deployments; the table above carries the rest.

Rotation is the widest gap in the whole test. An arbitrarily angled 1D symbol needs a scan-line search over many orientations; neither open-source engine searches beyond a few fixed rotations, so they read about a quarter of the rotated symbols while Scandit reads 84.43% and Dynamsoft 80.33%.

Sample image:

Rotated 1D label on a plastic container with uneven lighting

Summary of Benchmark Results

Dynamsoft Barcode Reader has the highest reading rate on the linear dataset and the highest precision, and it covers 16 of the 17 linear symbologies — more than any other engine in the test. Scandit is within 2.7 points overall, wins blur and rotation, and pays for its multi-scan duplicates in precision. The open-source engines are usable on clean, well-framed EAN/UPC work and fall away as soon as the capture degrades. A short clip of the same engine on tiny, blurred, damaged and reflective codes:

Common Issues and Edge Cases

  • Symbology coverage decides the ceiling. 963 of the 8,049 symbols are Postnet or single-track Pharmacode, and no Scandit build decodes either. 474 are IATA 2 of 5, which Dynamsoft does not read. Check the format list before comparing reading rates: a capability gap looks exactly like a recognition failure in a benchmark.
  • Rotation is the hardest 1D condition for open-source engines. ZXing-C++ and ZBar return 24.45% and 28.01% on rotated symbols against 80% or better for the commercial engines, because neither searches arbitrary angles for a 1D scan line.
  • Duplicate reports cost precision without costing recall. Scandit’s multi-scan returns the same symbol more than once on a still image; those records are not misreads but they are returned results, which is why its precision is 92.86% with only 64 wrong values.
  • Blur separates the two tiers, not the engines within a tier. Both commercial engines stay above 80% on 892 blurred symbols; both open-source engines fall below 38%.

Conclusion

Choosing the right barcode scanning SDK has a direct impact on go-to-market speed, development costs, and end-user satisfaction. High recognition accuracy reduces support burden and increases user trust in barcode-driven workflows.

On 8,049 annotated linear symbols, Dynamsoft Barcode Reader returned the most correct values and the highest precision, with the widest linear symbology coverage of the four. Scandit is a close second overall and the stronger engine on blurred and rotated labels. ZXing-C++ and ZBar remain a reasonable free baseline for clean EAN and UPC images, and a poor fit for rotated, blurred or postal work.

With the widest linear symbology coverage in this test, the highest reading rate, and 99.16% precision over 8,049 symbols, Dynamsoft Barcode Reader is a dependable choice for developers and enterprises building high-accuracy 1D scanning applications.

Frequently Asked Questions

What is barcode scanning accuracy?

Barcode scanning accuracy measures how reliably a barcode engine reads barcodes from images. It is typically expressed as two metrics: reading rate (how many barcodes were decoded out of the total) and precision (how many returned results were correct).

How does Dynamsoft Barcode Reader compare to ZXing and ZBar?

On the same 8,049 linear symbols, Dynamsoft Barcode Reader returned 6,703 correct values (83.28%) against 3,543 (44.02%) for ZBar and 3,500 (43.48%) for ZXing-C++, at 99.16% precision versus 95.11% and 98.37%. The difference is driven by symbology coverage and by rotated and blurred labels, where the open-source engines lose more than half their symbols.

How does Dynamsoft compare to Scandit for 1D barcode accuracy?

Dynamsoft leads overall, 83.28% to 80.58%, and on clean images, 88.19% to 84.62%. Scandit leads on blur (82.62% vs 80.94%) and rotation (84.43% vs 80.33%). Precision favours Dynamsoft, 99.16% to 92.86%, because Scandit’s multi-scan returns duplicate reports for symbols it has already read.

What barcode symbologies were tested in this benchmark?

Seventeen linear symbologies: Codabar, Code 39, Code 93, Code 128, GS1-128, EAN-8, EAN-13, UPC-A, UPC-E, ITF, IATA 2 of 5, MSI, single-track Pharmacode, KIX, Postnet, Royal Mail 4-State and USPS Intelligent Mail, drawn from a 24-symbology dataset that also contains QR Code, Micro QR, Data Matrix, Aztec, PDF417, DotCode and MaxiCode.

How can I improve barcode recognition accuracy?

Three things matter most in this test: cover every symbology your codes use, because a missing decoder costs all of that format; handle 1D rotation, the widest gap at 84.43% against 24.45%; and suppress duplicate reports so they do not dilute precision. The Common Issues section above walks through each one with the numbers.

Reproducibility

A reading rate without a dataset is an opinion; a reading rate without code is an assertion. This page is anchored to one published dataset and a scorer, so every column can be re-measured on your own machine.

What you need Where it is
8,000 images Dynamsoft synthetic barcode dataset — generator, manifest and JPEGs in one repository
Ground truth dataset-by-format/manifest.jsonl: payload, format, quadrilateral and capture effects per symbol, with a SHA-256 over the whole file
Raw decoder records results/native/results.jsonl (Dynamsoft 11.6.50, Scandit 8.7.1, ZXing-C++ 3.1.1) and results/python/results.jsonl (ZBar 0.10 / pyzbar 0.1.9)
The scorer score.py plus report.py, which rebuild the HTML review from the manifest and the raw records
# C++ / Linux: Dynamsoft 11.6.50, Scandit 8.7.1, ZXing-C++ 3.1.1
CMAKE_BUILD_PARALLEL_LEVEL=4 sh native/build.sh /tmp/build
/tmp/build/synthetic_benchmark dataset-by-format /runs/native-next \
  native/symbologies.json native/config/dynamsoft-preset.json
python report.py --run .runs/native-next

# Python / Windows: ZBar 0.10 through pyzbar 0.1.9
python -m pip install -r python/requirements.txt
python python/run_benchmark.py --dataset dataset-by-format --output results/python
python python/score.py --run results/python --output review/python/summary.json

The Docker invocation, the SDK paths and the license environment variables are listed in the repository README, under “Run the C++ / Linux benchmark”.

All four engines were scored by one rule: a result is correct when the decoded format and payload match the annotation one-to-one, a symbology the build cannot decode scores zero, and a repeated report of a value that was already matched counts against precision but not as a misread. The dataset is generated, not photographed, so the expected value is exact and the same manifest drives every column.

Want to run this code in your own project?

Get a 30-day free trial license