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.
In this article
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 reader | Images read correctly | QR codes read correctly | Average time per image |
|---|---|---|---|
| AirFrog 0.1.0 | 220 of 225 | 225 of 230 | 8.13 ms |
| WeChat QRCode OpenCV 4.12.0.88 | 199 of 225 | 204 of 230 | 15.93 ms |
| ZXing-C++ 3.1.1 | 193 of 225 | 198 of 230 | 3.02 ms |
| ZXing-C++ 2.3.0 | 189 of 225 | 194 of 230 | 2.88 ms |
| OpenCV QRCodeDetector 4.12.0.88 | 152 of 225 | 157 of 230 | 15.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
| Scenario | Complete frames | AirFrog average time |
|---|---|---|
| ARTIFACTS/Coffee Stain | 5 / 5 | 69.85 ms |
| ARTIFACTS/Crumpled Paper | 5 / 5 | 19.98 ms |
| COLORS/Blue on Yellow | 5 / 5 | 1.04 ms |
| COLORS/Red on Green | 5 / 5 | 1.04 ms |
| DAMAGE/Logo Overlay (Large) | 5 / 5 | 65.99 ms |
| DAMAGE/Missing Finder | 5 / 5 | 22.76 ms |
| DAMAGE/Scratched | 5 / 5 | 2.07 ms |
| DATA/Cyrillic payload | 5 / 5 | 1.15 ms |
| DATA/Max Density (Binary) | 5 / 5 | 2.20 ms |
| DATA/Min Density (Numeric) | 5 / 5 | 0.98 ms |
| ENVIRONMENT/Busy Texture BG | 5 / 5 | 4.19 ms |
| GEOMETRY/Clean | 5 / 5 | 1.04 ms |
| GEOMETRY/Cylinder Wrap | 5 / 5 | 4.98 ms |
| GEOMETRY/Fisheye Distortion | 0 / 5 | 61.98 ms |
| GEOMETRY/Mirror Horizontal | 5 / 5 | 2.64 ms |
| GEOMETRY/Perspective Tilt | 5 / 5 | 1.26 ms |
| GEOMETRY/Rotation 45 | 5 / 5 | 1.29 ms |
| LIGHTING/Faded (Low Contrast) | 5 / 5 | 1.04 ms |
| LIGHTING/Hard Shadow | 5 / 5 | 1.76 ms |
| LIGHTING/Inverted | 5 / 5 | 1.03 ms |
| LIGHTING/Overexposed | 5 / 5 | 1.04 ms |
| LIGHTING/Vignette (Dark Edges) | 5 / 5 | 1.90 ms |
| MARGINS/No Quiet Zone | 5 / 5 | 0.48 ms |
| MULTI/Mixed polarity | 5 / 5 | 0.86 ms |
| MULTI/Repeated payload | 5 / 5 | 0.85 ms |
| MULTI/Two payloads | 5 / 5 | 0.84 ms |
| NEGATIVE/Blank | 5 / 5 | 3.13 ms |
| NEGATIVE/Texture | 5 / 5 | 22.81 ms |
| NIGHTMARE/Persp + Blur + Noise | 5 / 5 | 1.45 ms |
| NOISE/Gaussian Blur | 5 / 5 | 1.32 ms |
| NOISE/Motion Blur | 5 / 5 | 1.20 ms |
| NOISE/Salt & Pepper | 5 / 5 | 40.76 ms |
| REAL_WORLD/Stress: stress_blur_mild.png | 5 / 5 | 1.31 ms |
| REAL_WORLD/Stress: stress_blur_strong.png | 5 / 5 | 1.58 ms |
| REAL_WORLD/Stress: stress_combo.png | 5 / 5 | 2.48 ms |
| REAL_WORLD/Stress: stress_combo_blur___noise___tilt.png | 5 / 5 | 2.49 ms |
| REAL_WORLD/Stress: stress_low_light.png | 5 / 5 | 1.21 ms |
| REAL_WORLD/Stress: stress_perspective_extreme.png | 5 / 5 | 1.36 ms |
| REAL_WORLD/Stress: stress_perspective_tilt.png | 5 / 5 | 1.36 ms |
| REAL_WORLD/Stress: stress_reference.png | 5 / 5 | 1.23 ms |
| REAL_WORLD/Stress: stress_reference_no_distortion.png | 5 / 5 | 1.20 ms |
| REAL_WORLD/Stress: stress_sensor_noise.png | 5 / 5 | 2.56 ms |
| SCALE/Huge (1024px) | 5 / 5 | 2.86 ms |
| SCALE/Medium (256px) | 5 / 5 | 0.54 ms |
| SCALE/Tiny (64px) | 5 / 5 | 0.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.
| Decoder | QR codes read | Missed | Extra results | Fully correct frames |
|---|---|---|---|---|
| AirFrog 0.1.0 development build | 454 / 459 | 5 | 0 | 363 / 368 |
| ZXing-C++ 3.1.1 | 423 / 459 | 36 | 0 | 332 / 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.
| Decoder and version | Fully correct frames | Average time |
|---|---|---|
| Airfrog0.1.0 · build 9f23e2e7 | 209/225 | 12.9 ms |
| WeChat QRCodeOpenCV 4.12.0.88 | 199/225 | 15.9 ms |
| ZXing-C++2.3.0 | 189/225 | 2.9 ms |
| OpenCV QRCodeDetector4.12.0.88 | 152/225 | 15.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
- Freeze the sample: typical frames, difficult cases, and images with no QR codes.
- Label the text and position of every code; do not treat unknown text as ground truth.
- Record versions, settings, input size, device, and thread count.
- Run every decoder on the same files. Decide on warm-up and run order in advance.
- Compare fully correct frames, misses, extra results, and latency for each group.
- 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.
| Metric | What question does it answer? |
|---|---|
| Fully correct frames | How often can an operation finish without another attempt? |
| Missed QR codes | How many expected objects did the library fail to return? |
| Extra or incorrect results | How many results cannot be matched to the correct label? |
| Average and p95 latency | What is the usual latency, and how slow is the tail of the distribution? |
| Retakes and manual review | What 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.