Skip to content

Logeswaran123/MrPose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏋️‍♂️ Mr.Pose 🏋️‍♀️

License: MIT alt text

Hi human,
I'm Mr.Pose! 🤖 👋
I help to estimate and measure exercises for humans. Lets do some exercise and keep the body fit. 💪 🦾

Description 📜

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.

General Requirements 🧙‍♂️

  1. Record a video of person doing a supported exercise.
  2. Place the camera horizontally facing the person performing exercise (preferably at eye level).
  3. Higher the resolution of video, higher the quality of estimation and measurement.

Code Requirements 🧙‍♀️

pip install -r requirements.txt

How to run 🏃‍♂️

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.

Results 📊

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

References 📄

Happy Learning! 😄

About

An application to help with exercises for humans.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages