You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/official/zxing_zbar/README.md
+126-9Lines changed: 126 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,18 @@
1
-
# ZXing-cpp vs. ZBar vs. Dynamsoft Barcode Reader in Python
2
-
This repository compares the barcode recognition performance of three popular libraries: **ZXing-cpp**, **ZBar**, and the [Dynamsoft Capture Vision SDK](https://pypi.org/search/?q=dynamsoft-capture-vision-bundle).
1
+
# Barcode SDK Benchmark Framework
2
+
Comprehensive benchmarking framework to compare barcode reader SDKs: **ZXing-cpp**, **ZBar**, and [Dynamsoft Capture Vision SDK](https://pypi.org/search/?q=dynamsoft-capture-vision-bundle).
3
+
4
+
This project focuses on **angled barcode detection** and **multiple barcode scenarios**, designed to identify and showcase competitive advantages in barcode recognition performance.
- Simple benchmark with real-world dataset (170 images)
11
+
- Advanced benchmark with generated test scenarios
12
+
-**Specialized Testing**: Angled barcodes (15°-75°), multiple barcodes (2-20 per image)
13
+
-**Core Metrics**: Detection time (ms) and success rate (%)
14
+
-**Professional Reports**: HTML reports with interactive charts and strategic insights
15
+
-**Extensible Framework**: Easy to add new SDKs and test scenarios
3
16
4
17
## Prerequisites
5
18
- Install required packages:
@@ -10,10 +23,19 @@ This repository compares the barcode recognition performance of three popular li
10
23
11
24
- Dataset
12
25
13
-
The dataset is sourced from this [GitHub issue](https://github.com/openfoodfacts/openfoodfacts-ai/issues/15). You can download it directly from: https://drive.google.com/uc?id=1uThXXH8HiHAw6KlpdgcimBSbrvi0Mksf&export=download. We have cleaned the images to ensure each image file name matches the barcode content.
26
+
- **Existing Dataset**: The dataset is sourced from this [GitHub issue](https://github.com/openfoodfacts/openfoodfacts-ai/issues/15). You can download it directly from: https://drive.google.com/uc?id=1uThXXH8HiHAw6KlpdgcimBSbrvi0Mksf&export=download. We have cleaned the images to ensure each image file name matches the barcode content. Extract the images to the `existing_dataset/` folder.
27
+
28
+
- **Generated Dataset**: The benchmark framework can automatically generate test datasets with various conditions (angles, multiple barcodes, etc.). These are stored in the `generated_dataset/` folder and created by running `advanced.py`.
14
29
15
30
## Usage
16
-
1. Obtain a [30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv&package=cross-platform) and update the code with the license key in`app.py`.
- **advanced.py** - Comprehensive benchmark with dataset selection and detailed analysis
35
+
36
+
### Option 1: Simple Benchmark (simple.py)
37
+
38
+
1. Obtain a [30-day trial license](https://www.dynamsoft.com/customer/license/trialLicense/?product=dcv&package=cross-platform) and update the code with the license key in`simple.py`.
17
39
18
40
```python
19
41
from dynamsoft_capture_vision_bundle import *
@@ -24,11 +46,11 @@ This repository compares the barcode recognition performance of three popular li
24
46
2. Run the Python script:
25
47
26
48
```bash
27
-
python app.py
49
+
# Test with a single image
50
+
python simple.py -i <image_file>
28
51
29
-
Usage:
30
-
python app.py -i <image_file>
31
-
python app.py -d <folder_directory>
52
+
# Run benchmark on existing dataset (default: existing_dataset/)
53
+
python simple.py -d existing_dataset
32
54
```
33
55
34
56
**ZXing**
@@ -42,7 +64,102 @@ This repository compares the barcode recognition performance of three popular li
0 commit comments