This project detects human poses in images and videos using machine learning and provides a Streamlit-based web interface for an interactive experience. The model identifies key body parts and maps them to analyze human posture and movements.
✅ Streamlit Web App – Run pose estimation via a web-based UI
✅ Real-time Pose Detection – Analyze live webcam feed
✅ Image & Video Processing – Detect poses in static images and pre-recorded videos
✅ Pre-trained Model – Uses TensorFlow for accurate pose estimation
git clone https://github.com/YeshitaMotwani/Human-Pose-Estimation.git
cd Human-Pose-Estimationpython -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activatepip install -r requirements.txtstreamlit run estimation_app.py📌 This will open the web interface in your default browser.
- Upload an Image/Video to detect human poses.
- Choose Webcam Mode for real-time pose estimation.
- View detection results instantly in your browser!
To process an image without Streamlit, run:
python pose_estimation.py --image_path path/to/your/image.jpg📌 Replace path/to/your/image.jpg with the actual image file path.
For processing a video file, use:
python pose_estimation_Video.py --video_path path/to/your/video.mp4📌 Replace path/to/your/video.mp4 with the actual video file path.
Run the script to analyze live webcam feed:
python estimation_app.py📌 Ensure your webcam is connected and properly configured.
🔹 Processed Images → Saved in the output/ folder
🔹 Processed Videos → Saved in the output/ folder
- The project uses a pre-trained pose estimation model (
graph_opt.pb) for detecting human body keypoints. - The model is optimized for real-time inference and works efficiently on CPU & GPU.
The project requires the following Python libraries:
- Streamlit (for the web UI)
- OpenCV (for image processing)
- TensorFlow (for pose detection)
- NumPy (for array computations)
📌 All dependencies are listed in requirements.txt. Install them with:
pip install -r requirements.txtContributions are welcome! To contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch). - Commit your changes (
git commit -m "Added new feature"). - Push to your fork and submit a Pull Request.
Special thanks to the open-source community and the developers of TensorFlow, OpenCV, and Streamlit for making this project possible.
Would you like me to add any images, GIFs, or badges to make it even better? 😊
