Skip to content

Latest commit

 

History

History

qrcode_wechatqrcode

qrcode_wechatqrcode

Input

Input

(Image from https://cdn.pixabay.com/photo/2020/07/18/13/52/alipay-5417261_960_720.jpg

Ailia input shape: (1, 3, 896, 1280)

Output

Output

Usage

Automatically downloads the onnx and prototxt files on the first run. It is necessary to be connected to the Internet while downloading.

Setup environments.

$ pip3 install -r requirements.txt

For the sample image,

$ python3 qrcode_wechatqrcode.py

If you want to specify the input image, put the image path after the --input option.
You can use --savepath option to change the name of the output file to save.

$ python3 qrcode_wechatqrcode.py --input IMAGE_PATH --savepath SAVE_IMAGE_PATH

By adding the --video option, you can input the video.
If you pass 0 as an argument to VIDEO_PATH, you can use the webcam input instead of the video file.

$ python3 qrcode_wechatqrcode.py --video VIDEO_PATH

By adding the --decode_qrcode option, you can decode the qrcode using zbar.

$ python3 qrcode_wechatqrcode.py --decode_qrcode

Reference

qrcode_wechatqrcode

Model Format

Caffe v2

Netron

detect.prototxt

sr.prototxt