File size: 865 Bytes
b4ddbbf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# WeChatQR — QR Code Detection and Decoding

QR code detection and decoding using WeChat CV Team's deep learning models, integrated via OpenCV contrib.

---

## Models

| File | Role |
|---|---|
| `detect_2026april.onnx` | Detects QR code regions in the image |
| `sr_2026april.onnx` | Super-resolves each region for better decoding |

Both models are passed directly to the `WeChatQRCode` API — no manual preprocessing needed.

---

## Usage

```bash
python demo.py \
    --detect detect_2026april.onnx \
    --sr     sr_2026april.onnx \
    --image  example_outputs/input_image.jpg \
    --output example_outputs/output_image.png
```

---

## Example Output

| Input | Output |
|---|---|
| ![input](example_outputs/input_image.jpg) | ![output](example_outputs/output_image.png) |

---

## License

See [LICENSE](./LICENSE). Original models by WeChat CV Team.