handpose-facemesh-demos
🎥🤟 8 minimalistic templates for tfjs mediapipe handpose and facemesh
Using this program, you can play or control music by hand gesture. Also you can play a Paper Piano.
git clone https://github.com/MustafaLotfi/Paper-Piano.gitMustafaLotfi/Paper-PianoA Virtual Music Keyboard has been designed and programmed using two cameras and hand landmarks detection models. This program consist of two modes:
Music Control (MC) mode: Using the hand gesture, you can start to play the music or stop it, increase or decrese the volume or go to the next song.
Paper Piano (2P) mode: You can play your custome song by the piano keys.
This is necessary to mention that after the project idea came to my mind, I spend only 3 days to generate the code. Therefore this is normal if the program isn't robust or optimal. Unfortunately I don't have enough time to improve the app now. So I welcome your request for changing the codes if you want.
I don't know why, but you should go to the second 10 or more to can watch the demo. Also don't forget to unmute the video.
Firstly hand landmarks in both of the images of cameras are detected. In the MC mode, by your hand gesture or its movement you can control the app. This part has been implemented using distances between various hand landmarks and the their movement speeds. Information from to images are processed together in each moment and will be used for a desired action. In the 2P mode, the top view camera is used to find the hands are in which section or key. The front view camera is used to determine the hands are below of a desired threshold near the table. It shows the hand touched the table or not.
git clone <repo link>
pip install -r requirements.txt
Make sure both of cameras are working correctly. You can use check_cameras.py
in codes folder.
run main.py:
python main.py
more like this
🎥🤟 8 minimalistic templates for tfjs mediapipe handpose and facemesh
A threejs / WebGL / MediaPipe-powered interactive demo that allows you to control a 3D sphere using hand gestures.
search projects, people, and tags