16. Yolo hand detection

16. Yolo hand detection16.1. Experimental objectives16.2. Preparation before the experiment16.3. Experimental process16.4, Experimental results16.5, Experimental summary

16.1. Experimental objectives

This lesson mainly studies the K210 hand detection function.

The reference code path for this experiment is: K210 developer kit data\10.MicroPython version\source code\yolo_hand_detect.py

16.2. Preparation before the experiment

Please confirm whether the sd card model file is imported successfully, the path is: /sd/KPU/yolo_hand_detect/hand_detect.kmodel

Please save main.py to the sd card and run it offline

16.3. Experimental process

The factory firmware of the module has integrated the AI ​​visual algorithm module. If you have downloaded other firmware, please burn it back to the factory firmware before conducting the experiment.

16.4, Experimental results

Connect the K210 module to the computer via a microUSB data cable, click the connect button in CanMV IDE, and click the run button after the connection is complete to run the example code. You can also download the code as main.py to the K210 module and run it.

After waiting for the system to initialize, the LCD displays the camera image, and the human hand appearing on the screen will be marked by the drawn box.

 

16.5, Experimental summary

Hand recognition requires a memory card to load the model file, so you need to import the model file into the memory card in advance, and then insert the memory card into the memory card slot of the K210 module. If the model file in the memory card cannot be read, an error will be reported. In this experiment, we learned how to implement the hand detection function based on yolo on the K210 platform. Due to the size of the model, the accuracy of recognition may be affected