Welcome to IMX 415 Camera Module repository
10. MediaPipe Virtual Brush
Virtual Brush
MediaPipe is a cross-platform machine learning framework that can process keypoint detection of hands, faces, poses, etc. in videos and images in real time.
1. Virtual Brush
MediaPipe virtual brush can track finger states through hand detection and switch between different modes based on the finger states:
When the index finger and middle finger of the right hand are brought together, it is the selection state, and a color selection box pops up. When the two fingertips move to the corresponding color position, that color is selected (black is the eraser);
When the index finger and middle finger are separated, it is the drawing state, and you can draw freely on the canvas.
2. Effect Preview
2.1 IMX415 Camera
cd ~/mediapipe
python3 05.virtual_brush_csi.py
Note: Click on the camera window and press q to exit the program!
