Welcome to Jetson AGX Thor repository
02.QR Code Recognition
QR Code Recognition
QR Code RecognitionHardware ConnectionInstall DependenciesCreate a QR CodeRunning the ProgramProgram Effect
A QR code (Quick Response Code) is a matrix barcode composed of squares that can be used to store various information.
Hardware Connection
Plug the USB camera into the motherboard's USB port. Open the system terminal and enter the following command to check the camera's device number. If /dev/video0 appears, it means it's working correctly.
ls /dev/video*

Install Dependencies
xsudo apt install libzbar-dev -ysudo pip3 install pyzbar --break-system-packagessudo pip3 install qrcode --break-system-packages
Create a QR Code
xxxxxxxxxxcd ~/content_recognition/qr_codepython3 qrcode_create.py
After running the command, enter the hidden information of the QR code: The generated image is located in the /home/jetson/content_recognition/qr_code/figures folder.

Running the Program
xxxxxxxxxxcd ~/content_recognition/qr_codepython3 qrcode_parsing_usb.py
Note: Because the program requires a display screen, do not run the program in a remote SSH terminal. Please use the native desktop or VNC remote desktop to run the program.
Program Effect
After the program runs, it automatically opens the USB camera. Point the camera at the QR code, and the QR code will be outlined and the information printed in the terminal.

QR code example image:
