(Image from https://cdn.pixabay.com/photo/2020/07/18/13/52/alipay-5417261_960_720.jpg
Ailia input shape: (1, 3, 896, 1280)
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
Caffe v2