3. QR code recognition to control movement

3.1. Experimental Objectives

We have a preliminary understanding of QR code technology and raspbot control hardware, and have realized the decoding of QR codes using OpenCV. Now, we try to combine QR codes with hardware. First, we use free online QR code making software to prepare 5 QR codes, each of which corresponds to a different function to realize the function of QR code control robot.

forward

back

left

right

stop

3.2. Experimental code

Source code path:

/home/pi/project_demo/08.AI_Visual_Interaction_Course/03.QRcode_recog_campaign/03_QRcode_recog_campaign.ipynb

3.3. Experimental Phenomenon

After the code block is run, we can put the QR code in front of the camera, and the car will move according to the content of the QR code.