Welcome to Jetson Orin NANO Developer Kit repository
QR code recognition
QR Code Recognition
QR Code Recognition1. Installing Dependencies2. Creating a QR Code3. Parsing a QR Code3.1. USB Camera3.2. CSI CameraCommon Problems'PIL.Image' has no attribute 'Resampling'
pip Installation Note: Ubuntu 24.04 marks the system Python as "externally managed" according to PEP 668, so installing packages directly with pip may report
externally-managed-environment.--break-system-packagesallows pip to install packages in this environment; virtual environments usually do not need this parameter, but this tutorial keeps it for consistent instructions.
The QR code (Quick Response Code) is a matrix barcode composed of squares that can be used to store various types of information.
1. Installing Dependencies
xxxxxxxxxxsudo apt install libzbar-dev -ysudo pip3 install qrcode pyzbar --break-system-packages

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

3. Parsing a 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

Common Problems
'PIL.Image' has no attribute 'Resampling'
sudo pip3 install --upgrade pillow --break-system-packages