Skip to content

Commit 068553f

Browse files
committed
Added page_qr_ocr
1 parent 539c74e commit 068553f

15 files changed

Lines changed: 1165 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Page QR + Page Number OCR
2+
3+
This folder contains a small PySide6 desktop app for fixed-layout pages where a QR code sits near the top-left corner and the printed page number appears just to the left of it.
4+
5+
The project uses a single Dynamsoft Capture Vision template to do both tasks in one pass:
6+
7+
- decode the QR code
8+
- run OCR in a barcode-referenced ROI
9+
- choose the most likely page number from the OCR hits
10+
- draw both results as overlays in the GUI
11+
12+
## Project Layout
13+
14+
- `app.py` — Python desktop app and scanner logic
15+
- `page_qr_ocr_template.json` — combined barcode + OCR template
16+
- `requirements.txt` — runtime and synthetic-data dependencies
17+
- `synthetic/` — generated images plus `manifest.json`
18+
19+
## Requirements
20+
21+
- Python 3.9+
22+
- `dynamsoft-capture-vision-bundle>=3.4.2001`
23+
- `PySide6>=6.5`
24+
- `opencv-python>=4.8`
25+
- `numpy>=1.24`
26+
27+
## Install
28+
29+
```bash
30+
pip install -r requirements.txt
31+
```
32+
33+
## Run the GUI
34+
35+
```bash
36+
python app.py
37+
```
38+

0 commit comments

Comments
 (0)