Airfrog editorial team ·

QR SDK Benchmark: Fully Correct Frames, Misses, and Speed

An in-house benchmark of Airfrog, ZXing-C++, OpenCV, and WeChat with versions and test conditions. The November run covers 368 images and 459 QR codes. How to compare fully correct frames, misses, and latency on your own data.

October benchmark replay

· 225 images · 45 scenarios

AirFrog got 220 of 225 images right, the most in this comparison. The lowest average time in the table is 2.88 ms per image for ZXing-C++ 2.3.0.

Every reader got the same images. Some have several QR codes and 10 have none. An image counts as correct when the reader returns exactly the QR codes it contains.

QR code reading results on 225 images
QR readerImages read correctlyQR codes read correctlyAverage time per image
AirFrog 0.1.0220 of 225225 of 2308.13 ms
WeChat QRCode OpenCV 4.12.0.88199 of 225204 of 23015.93 ms
ZXing-C++ 3.1.1193 of 225198 of 2303.02 ms
ZXing-C++ 2.3.0189 of 225194 of 2302.88 ms
OpenCV QRCodeDetector 4.12.0.88152 of 225157 of 23015.55 ms
How we tested

The table shows the average time per saved image, including decoding the PNG from memory and reading its QR codes.

We measured AirFrog in six rounds after a warm-up, with one thread. The other readers use October measurements. For ZXing-C++ 3.1.1, we combined 220 saved results with five repeats of one heavily distorted image (Fisheye).

We verified the hashes of all 225 original PNGs and their annotations. AirFrog had one warm-up round and six measured rounds on macOS arm64, Python 3.11.4, and one Rayon thread. All six rounds returned identical detections. Timing includes PNG decoding from memory. The original October comparison had no separate warm-up. For ZXing-C++ 3.1.1 we reused 220 hash-matched archived images and measured five repeats of the original Fisheye PNG with the same binary. Its mean combines the archived and supplemental rounds.

AirFrog improved from 209 to 220 completely correct frames out of 225. The five misses are repeated copies of the synthetic Fisheye image. Download the summary with every scenario.

All 45 scenarios
ScenarioComplete framesAirFrog average time
ARTIFACTS/Coffee Stain5 / 569.85 ms
ARTIFACTS/Crumpled Paper5 / 519.98 ms
COLORS/Blue on Yellow5 / 51.04 ms
COLORS/Red on Green5 / 51.04 ms
DAMAGE/Logo Overlay (Large)5 / 565.99 ms
DAMAGE/Missing Finder5 / 522.76 ms
DAMAGE/Scratched5 / 52.07 ms
DATA/Cyrillic payload5 / 51.15 ms
DATA/Max Density (Binary)5 / 52.20 ms
DATA/Min Density (Numeric)5 / 50.98 ms
ENVIRONMENT/Busy Texture BG5 / 54.19 ms
GEOMETRY/Clean5 / 51.04 ms
GEOMETRY/Cylinder Wrap5 / 54.98 ms
GEOMETRY/Fisheye Distortion0 / 561.98 ms
GEOMETRY/Mirror Horizontal5 / 52.64 ms
GEOMETRY/Perspective Tilt5 / 51.26 ms
GEOMETRY/Rotation 455 / 51.29 ms
LIGHTING/Faded (Low Contrast)5 / 51.04 ms
LIGHTING/Hard Shadow5 / 51.76 ms
LIGHTING/Inverted5 / 51.03 ms
LIGHTING/Overexposed5 / 51.04 ms
LIGHTING/Vignette (Dark Edges)5 / 51.90 ms
MARGINS/No Quiet Zone5 / 50.48 ms
MULTI/Mixed polarity5 / 50.86 ms
MULTI/Repeated payload5 / 50.85 ms
MULTI/Two payloads5 / 50.84 ms
NEGATIVE/Blank5 / 53.13 ms
NEGATIVE/Texture5 / 522.81 ms
NIGHTMARE/Persp + Blur + Noise5 / 51.45 ms
NOISE/Gaussian Blur5 / 51.32 ms
NOISE/Motion Blur5 / 51.20 ms
NOISE/Salt & Pepper5 / 540.76 ms
REAL_WORLD/Stress: stress_blur_mild.png5 / 51.31 ms
REAL_WORLD/Stress: stress_blur_strong.png5 / 51.58 ms
REAL_WORLD/Stress: stress_combo.png5 / 52.48 ms
REAL_WORLD/Stress: stress_combo_blur___noise___tilt.png5 / 52.49 ms
REAL_WORLD/Stress: stress_low_light.png5 / 51.21 ms
REAL_WORLD/Stress: stress_perspective_extreme.png5 / 51.36 ms
REAL_WORLD/Stress: stress_perspective_tilt.png5 / 51.36 ms
REAL_WORLD/Stress: stress_reference.png5 / 51.23 ms
REAL_WORLD/Stress: stress_reference_no_distortion.png5 / 51.20 ms
REAL_WORLD/Stress: stress_sensor_noise.png5 / 52.56 ms
SCALE/Huge (1024px)5 / 52.86 ms
SCALE/Medium (256px)5 / 50.54 ms
SCALE/Tiny (64px)5 / 50.58 ms

November 25, 2026 benchmark on 368 images

AirFrog read 454 of 459 annotated QR codes with zero extra results. ZXing-C++ 3.1.1 read 423 codes on the same images. AirFrog read all 423 of those codes and 31 more.

15 photos, 225 synthetic images, and 128 stress-test images
DecoderQR codes readMissedExtra resultsFully correct frames
AirFrog 0.1.0 development build454 / 45950363 / 368
ZXing-C++ 3.1.1423 / 459360332 / 368

The previous AirFrog build read 443 codes. The new build kept all of those matches, added 11, and removed one duplicate result. The five misses come from repeating one synthetic image with radial distortion.

AirFrog averaged 16.78 ms per image, with a median of 2.19 ms and a p95 of 67.36 ms. We timed the full Python 3.11.4 call on macOS arm64 with two Rayon threads, one warm-up round, and six paired measurement rounds. Timing includes decoding the PNG from memory. The comparison with ZXing 3.1.1 covers recognition quality.

We matched detections to annotations one to one. Fourteen photos have position-only annotations. Where a reference box was available, matches required IoU > 0.15. Download the results and method as JSON.

In-house test results from 2026-10-18

We compared four decoders on the same image set. This is an in-house Airfrog test, not an independent industry ranking. The full set contains 225 synthetic images: 45 scenarios with five generated images each, including 10 frames with no QR codes. The percentages show fully correct frames: frames in which every expected QR code was read and no extra result was returned. Latency includes every attempt, including failures.

All 225 images
Decoder and versionFully correct framesAverage time
Airfrog0.1.0 · build 9f23e2e7209/22512.9 ms
WeChat QRCodeOpenCV 4.12.0.88199/22515.9 ms
ZXing-C++2.3.0189/2252.9 ms
OpenCV QRCodeDetector4.12.0.88152/22515.5 ms

On this set, Airfrog produced more fully correct frames, while ZXing-C++ was faster. The right choice depends on the cost of a missed code and your latency budget. This test does not evaluate the latest version of every library or guarantee the same results on another camera or server.

Test conditions and limitations

macOS arm64; Python 3.11.4. Synthetic data: 45 scenarios × 5 generations, 225 inputs total, including 10 frames without QR codes. IMG_1178: one photo, three runs; quality is not averaged across sets. Rayon: 1; OpenCV GCD reports 8 threads. No separate warm-up; decoder order is fixed.

Timing includes PNG reading, but excludes worker startup and IPC. There was no separate warm-up, decoder order was fixed, and CPU budgets differed. Treat the timing as a reference for this run, not as a universal speedup factor.

A separate real photo, IMG_1178, with three QR codes was tested in three runs; it is not included in the overall results for the 225 images. The home page includes the photo example. Category examples on the home page were selected because Airfrog placed in the top two; they do not replace the full results.

A summary report for this run is available to verify the results. Its SHA-256 is 36546d2a660d38e82096a45008300d6b9a2c1e416f0251f3d21fdd33c3b25c86. The machine-readable report helps audit the figures; use your own test to decide whether to adopt a library.

Accuracy, completeness, and false positives

A matching text value does not mean the frame is complete. Match expected and decoded objects by text and position; identical strings in different places are still separate QR codes. Count misses and extra results separately. Images with no codes are essential for checking false positives.

Do not report the share of fully correct frames as the share of all QR codes read; they are different metrics. For latency, keep the full distribution, slow attempts, and limits, not just the average. If completeness matters to the business, evaluate any speed gain that comes with more misses separately.

How to test an SDK on your own images

  1. Freeze the sample: typical frames, difficult cases, and images with no QR codes.
  2. Label the text and position of every code; do not treat unknown text as ground truth.
  3. Record versions, settings, input size, device, and thread count.
  4. Run every decoder on the same files. Decide on warm-up and run order in advance.
  5. Compare fully correct frames, misses, extra results, and latency for each group.
  6. Validate the selected option on new frames that were not used for tuning.

Create separate groups for damaged codes, geometry and lighting, and multiple codes. Then measure retakes and manual review: these connect SDK quality to workflow costs.

Why “90% of codes read” may not be enough

Consider a hypothetical set of 100 frames with 10 labels each. If a library misses one code in every frame, it reads 900 of 1,000 QR codes, or 90%. Yet there are no fully correct frames. If an operation requires every label to be confirmed, each frame needs another step.

This is an illustrative example, not an Airfrog result. It explains why our table separately reports fully correct frames. Keep per-code metrics in your own SDK test too: they show how many objects are missed and which images cause problems.

What to include in a benchmark report
MetricWhat question does it answer?
Fully correct framesHow often can an operation finish without another attempt?
Missed QR codesHow many expected objects did the library fail to return?
Extra or incorrect resultsHow many results cannot be matched to the correct label?
Average and p95 latencyWhat is the usual latency, and how slow is the tail of the distribution?
Retakes and manual reviewWhat costs remain in the workflow?

p95 is the latency not exceeded in 95% of measured attempts. It is not reported as a measured Airfrog result in the current summary table; it is a recommendation for your test. For a small sample, also inspect every slow case and the maximum latency.

Questions about comparing QR libraries

Can I choose an SDK based on this table alone?

The table can help shortlist candidates. For adoption, test your images on the target device using the same run conditions. Even a synthetic-data leader may perform worse with a particular camera or label type.

Should file reading be included in the timing?

Define the timing boundary in advance. To compare decoders, you can separately time an image that is already loaded; for a service, the full path from file receipt to response may matter. Use the same boundary for every option and state it in the report.

How do I avoid tuning the test to a chosen library?

Set the criteria before tuning and reserve new frames for final validation. Do not remove images on which a candidate performs poorly. Report versions, errors, and run conditions alongside the success rate.