7. Palm Detection
Perform human hand detection on the AI Camera. It can be used for gesture control, such as VR, motion-sensing games, virtual performance, behavior monitoring, and similar scenarios.
7.1. Palm Image
7.2. Python Example
Example: Palm Detection.py
#mPythonType:0
from mpython import *
import smartcamera_k230 as smartcamera
smart_camera = smartcamera.SmartCameraK230(tx=Pin.P1, rx=Pin.P0)
smart_camera.model_init(3)
while True:
smart_camera.hand_detect.recognize()
if smart_camera.hand_detect.flag:
print('Detected')
print(str('Palm count: ') + str(smart_camera.hand_detect.hand_num))
7.3. mPython Graphical Example