MCPcopy Index your code
hub / github.com/Logeswaran123/MrPose

github.com/Logeswaran123/MrPose @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
71 symbols 198 edges 8 files 60 documented · 85%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

:weight_lifting_man: Mr.Pose :weight_lifting_woman:

License: MIT alt text

Hi human,

I'm Mr.Pose! :robot: :wave:

I help to estimate and measure exercises for humans. Lets do some exercise and keep the body fit. :muscle: :mechanical_arm:

Description :scroll:

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 :mage_man:

  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 :mage_woman:

pip install -r requirements.txt

How to run :running_man:

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 :bar_chart:

:star: Pushups :star:

python mrpose.py --video <path to video file> --exercise pushup

https://user-images.githubusercontent.com/36563521/188864300-bc43d096-c98f-48e4-b9cb-6bef6937f1ca.mp4

Input video source here.

:star: Squats :star:

python mrpose.py --video <path to video file> --exercise squat

https://user-images.githubusercontent.com/36563521/188866384-a19d3bb7-d6d2-47be-a71b-d27166dea395.mp4

Input video source here.

:star: Plank :star:

python mrpose.py --video <path to video file> --exercise plank

https://user-images.githubusercontent.com/36563521/188879832-825cfd00-cfd3-4b9c-9d99-b73c4a06b8a9.mp4

Input video source here.

:star: Jumping Jacks :star:

python mrpose.py --video <path to video file> --exercise jumpingjack

https://user-images.githubusercontent.com/36563521/188893014-afed7b58-6688-4e19-ba59-7a471c0fb7a0.mp4

Input video source here.

:star: Prediction :star:

python mrpose.py --video <path to video file>

https://user-images.githubusercontent.com/36563521/190898949-a88b0d72-5a5a-43ec-b1dc-475a9744b6e6.mp4


References :page_facing_up:

Happy Learning! 😄

Core symbols most depended-on inside this repo

is_point_in_keypoints
called by 78
utils/pose_utils/pose.py
get_point
called by 30
utils/pose_utils/pose.py
draw_line
called by 12
utils/drawing_utils.py
get_available_point
called by 12
utils/pose_utils/pose.py
is_opened
called by 10
utils/video_reader_utils.py
one_line_angle
called by 10
utils/pose_utils/pose.py
two_line_angle
called by 8
utils/pose_utils/pose.py
release
called by 6
utils/video_reader_utils.py

Shape

Method 61
Class 10

Languages

Python100%

Modules by API surface

utils/pose_utils/pose.py30 symbols
utils/video_reader_utils.py12 symbols
utils/timer_utils.py10 symbols
utils/operation_utils.py9 symbols
utils/drawing_utils.py7 symbols
utils/exercise_utils.py3 symbols

For agents

$ claude mcp add MrPose \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact