Welcome to IMX 415 Camera Module repository
17. QR code recognition
QR Code Recognition
QR Code Recognition1. Install Dependencies2. Create a QR Code3. Parse the QR Code3.1 USB Camera3.2 CSI CameraFAQ'PIL.Image' has no attribute 'Resampling'
A QR code (Quick Response Code) is a matrix barcode made up of squares that can be used to store various types of information.
1. Install Dependencies
xxxxxxxxxxsudo apt install libzbar-dev -ysudo pip3 install qrcode pyzbar

2. Create a QR Code
xxxxxxxxxxcd ~/qr_code_recognition
xxxxxxxxxxpython3 qrcode_create.py
After running the command, enter the hidden information of the QR code: the generated image is located in the /home/jetson/qr_code_recognition/figures folder

3. Parse the QR Code
3.1 USB Camera
xxxxxxxxxxcd ~/qr_code_recognition
xxxxxxxxxxpython3 qrcode_parsing_usb.py

3.2 CSI Camera
xxxxxxxxxxcd ~/qr_code_recognition
xxxxxxxxxxpython3 qrcode_parsing_csi.py

FAQ
'PIL.Image' has no attribute 'Resampling'
sudo pip3 install --upgrade pillow