Hi human,
I'm Mr.Pose! 🤖 👋
I help to estimate and measure exercises for humans. Lets do some exercise and keep the body fit. 💪 🦾
Exercises, in general, helps to maintain a physically fit body, loosen up joints, and relax muscles.
Mr.Pose is a visual analytics application that helps humans to track the accuracy of exercise, and count reps or to predict the exercise.
Mr.Pose can support
- Pushup
- Plank
- Squat
- JumpingJack
For Pushup, Plank and JumpingJack, Mr.Pose will track each repetition provided that the exercise is accurately performed. For Plank, Mr.Pose will track the time of plank position.
- Record a video of person doing a supported exercise.
- Place the camera horizontally facing the person performing exercise (preferably at eye level).
- Higher the resolution of video, higher the quality of estimation and measurement.
pip install -r requirements.txt
python mrpose.py --video <path to video file> --exercise <exercise to be measured>
Note:
<path to video file> - Path to the input video file with supported exercise
<exercise to be measured> - Exercise in input video file
Optional Argument:
--video - Path to video source file.
If argument is not provided, then Mr.Pose will launch webcam for live video. Currently, live webcam video works only for exercise prediction.
--exercise - Choices are pushup, plank, squat, jumpingjack
If argument is not provided, then Mr.Pose will predict the exercise done in the video. If argument is provided, then Mr.Pose will measure the exercise mentioned.
⭐ Pushups ⭐
python mrpose.py --video <path to video file> --exercise pushup
out_pushup_1.mp4
Input video source here.
⭐ Squats ⭐
python mrpose.py --video <path to video file> --exercise squat
out_squat_1.mp4
Input video source here.
⭐ Plank ⭐
python mrpose.py --video <path to video file> --exercise plank
out_plank_1.mp4
Input video source here.
⭐ Jumping Jacks ⭐
python mrpose.py --video <path to video file> --exercise jumpingjack
out_jumpingjacks_1.mp4
Input video source here.
⭐ Prediction ⭐
python mrpose.py --video <path to video file>
out_combined_exercise.mp4
Happy Learning! 😄