This demo uses qr_code_detection_384x384 neural network to detect QR codes.
We wrote a Deploying QR code detector model tutorial that provides step-by-step details on how to convert, compile and deploy a custom AI model (WeChat QR Code detection model) to the device. Deployment part focuses on how this demo was developed.
Inside the main.py
code you have an option (DECODE=True
) to also decode the QR code detected. Decoding is performed on the host using the OpenCV library.
python3 -m pip install -r requirements.txt
python3 main.py