A Body, Hand, Face tracking utility
Project description
Pose_Estimation
This project contains Full Body estimation, Face Tracking and Hand Estimation all using mediapipe library. These projects were done with help of freeCodeCamp.org video.
Contents
Installation
To use this repo use
git clone https://github.com/REZ3LIET/Pose_Estimations.git
Body_Estimations
This contains the module body_estimation_module.py which can be used to track the landmarks on a human body. It is limited to tracking a single person at a time and gives 33 unique landmarks on the body.
Usage
To use the body_estimation_module.py go to Body_Estimation
directory in terminal
- For default execution:
python3 Codes/bodytracking_module.py
- To execute with an image
python3 Codes/bodytracking_module.py -p Data/Images/handstand.jpg
- To execute on a video
python3 Codes/bodytracking_module.py -v -p Data/Videos/dance.mp4
Hand_Estimation
This contains the module hand_tracking_module.py which can be used to track the landmarks on hand(s) and also display them. It can track maximum of 2 handas at an instant.
Usage
To use the hand_tracking_module.py go to Hand_Estimation
directory in terminal
- For default execution:
python3 Codes/hand_tracking_module.py
- To execute with an image
python3 Codes/hand_tracking_module.py -p Data/Images/covered_face.jpg
- To execute on a video
python3 Codes/hand_tracking_module.py -v -p Data/Videos/piano_playing.mp4
Face_Tracking
This contains the module face_tracking_module.py which can be used to detect and track the face by drawing a bounding box around it. To detect faces at farther range set model type to 1.
Usage
To use the face_tracking_module.py go to Face_Estimation
directory in terminal
- For default execution:
python3 Codes/face_tracking_module.py
- To execute with an image
python3 Codes/face_tracking_module.py -p Data/Images/human_3.jpg
- To execute on a video
python3 Codes/face_tracking_module.py -v -p Data/Videos/humans_1.mp4
Face_Mesh_Detection
This contains the module face_mesh_detection_module.py which can be used to detect and track the face by drawing a mesh on it around it. Max 2 faces can be detected.
Usage
To use the face_mesh_detection_module.py go to Face_Estimation
directory in terminal
- For default execution:
python3 Codes/face_mesh_detection_module.py
- To execute with an image
python3 Codes/face_mesh_detection_module.py -p Data/Images/human_2.jpg
- To execute on a video
python3 Codes/face_mesh_detection_module.py -v -p Data/Videos/humans_2.mp4
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for pose_estimation_mp-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9087411fe852c05ce72771cc090878a43b538eddf588f18ab69dd4de5dd8ebe3 |
|
MD5 | afceea96628ef9969e15c39ea1f17edf |
|
BLAKE2b-256 | 6cfbfaac99704af8b1a15af985c4b976a1ebc72f5eb3be2a46938db14195439c |