A MediaPipe Application that performs real-time hand landmark detection, and uses the resulting landmarks to generate MIDI messages, by mapping landmark space to pitch space using a provided scale.
- See LibMP - MediaPipe as a Shared Library for more information on LibMP
- This application does the following in realtime:
- Streams video frames from an attached camera/webcam (OpenCV Device #0)
- Runs MediaPipe Hand Landmark on each frame
- Uses LibMP to get the XYZ coordinates of detected landmarks
- Draws a circle at each landmark's location on the input frame
- Displays the result using OpenCV/HighGUI
- Produces sound
- Compilation is managed using CMake - see
CMakeLists.txt
andlibprotobuf.cmake
- Change
${MEDIAPIPE_DIR}
inCMakeLists.txt
to match your installation of LibMP
- Change
- This application uses a custom fork of the original LibMP project.
- Tested on Windows (MSVC 17.9.8)
- Clone and build LibMP
- Compile using CMake
cd
into output directory containingmain
binary- Run
main
binary