Welcome to AI View Depth camera repository
2.QR code
2. Opencv Application
2.1. Overview
OpenCV is a cross-platform computer vision and machine learning software library released under the BSD license (open source), which can run on Linux, Windows, Android and MacOS operating systems. [1] It is lightweight and efficient - consisting of a series of C functions and a small number of C++ classes, while providing interfaces for languages such as Python, Ruby, and MATLAB, and implementing many common algorithms in image processing and computer vision.
2.2. QR code
2.2.1. Introduction to QR code
QR code is a type of two-dimensional barcode. QR comes from the abbreviation of "Quick Response" in English, which means quick response. It comes from the inventor's hope that QR code can allow its content to be decoded quickly. QR code not only has large information capacity, high reliability and low cost, but also can express a variety of text information such as Chinese characters and images, has strong confidentiality and anti-counterfeiting properties and is very convenient to use. More importantly, the QR code technology is open source.
2.2.2, QR code structure

2.2.3, QR code characteristics
The data value in the QR code contains repeated information (redundant value). Therefore, even if up to 30% of the two-dimensional code structure is destroyed, it does not affect the readability of the two-dimensional code. The storage space of the QR code is up to 7089 bits or 4296 characters, including punctuation marks and special characters, which can be written into the QR code. In addition to numbers and characters, words and phrases (such as URLs) can also be encoded. As more data is added to the QR code, the code size increases and the code structure becomes more complex.
2.2.4, QR code creation and recognition
Install the relevant environment (the supporting virtual machine has already set up the environment)
xxxxxxxxxxpython3 -m pip install qrcode pyzbarsudo apt-get install libzbar-devCreate
Source code location: ~/orbbec_ws/src/astra_visual/qrcode/QRcode_Create.py
xxxxxxxxxxcd ~/orbbec_ws/src/astra_visual/qrcodepython QRcode_Create.pyEnter the content to be generated in the terminal and press Enter to confirm.

Recognition
Source code location: ~/orbbec_ws/src/astra_visual/qrcode/QRcode_Parsing.py
xxxxxxxxxxcd ~/orbbec_ws/src/astra_visual/qrcodepython QRcode_Parsing.pyIf the following situation occurs, replug the camera and run it again.

After normal startup, put the QR code in front of the camera. After recognizing the QR code, the QR code will be framed and the QR code content will be printed out.
