capture dance using human gesture recognition tool -- mediapipe powered by google
* Python3.8+
- Clone this repo to your local machine using https://github.com/amazingchow/capture-action-using-mediapipe.git.
# (optional) If use the capture-action-using-mediapipe on Ubuntu, install freetype lib first.
➜ sudo apt-get install libfreetype6-dev
# (optional) If not found libfreetype6-dev, just find a alternative one.
➜ apt-cache search freetype | grep dev
# Setup a python virtual environment
➜ cd /path/to/capture-action-using-mediapipe
➜ virtualenv -p /usr/bin/python3 .opencv-pyvenv
➜ source .opencv-pyvenv/bin/activate
# Install third-party dependencies
(opencv-pyvenv) ➜ pip install numpy
(opencv-pyvenv) ➜ pip install matplotlib
(opencv-pyvenv) ➜ pip install opencv-contrib-python
(opencv-pyvenv) ➜ pip install mediapipe
# Run the script
(opencv-pyvenv) ➜ python pose_recognition_from_camera.py --video_file=/path/to/your_video.mp4
- 🍴 Fork this repo!
- 🔨 HACK AWAY!
- 🔃 Create a new PR using https://github.com/amazingchow/capture-action-using-mediapipe/compare!
- Reach out to me at [email protected].
- This project is licensed under the MIT License - see the MIT license for details.