A real-time human pose estimation system that processes images, videos, and webcam feeds using OpenCV DNN and MediaPipe.
This project estimates human poses using a hybrid approach:
- OpenCV DNN for images and pre-recorded videos.
- MediaPipe for real-time webcam processing.
- Streamlit for an interactive user interface.
Ideal for applications in sports analysis, healthcare monitoring, and surveillance.
- ✅ Multi-input support (Image/Video/Webcam).
- ✅ Adjustable confidence threshold and frame skip.
- ✅ Real-time processing with optimization for edge devices.
- ✅ Customizable background image with transparency.
- Python 3.8 - 3.12
- pip
- Clone the Repository
git clone https://github.com/0monish/Human-Pose-Estimation-using-ML.git cd Human-Pose-Estimation-using-ML - Install Dependencies
pip install opencv-python==4.5.5.64 streamlit==1.13.0 numpy==1.23.5 mediapipe==0.8.11 Pillow==9.4.0
streamlit run human_pose_estimation.py - Image: Upload a JPG/PNG/etc file.
- Video: Upload an MP4/MOV/etc file and adjust frame skip/resolution.
- Webcam: Start live pose estimation.
- Confidence Threshold: Lower values detect more joints (may include noise).
- Frame Skip: Process every 2nd/3rd/4th frame for faster video analysis.
- Processing Width: Reduce for faster inference (e.g., 320px).
Monish Khandelwal
