Skip to content

rohitshetty/pose-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pose Analyzer

A Python toolkit for video pose estimation with pluggable exercise analyzers. Uses MediaPipe for skeleton tracking.

Features

  • Pose estimation overlay on videos (skeleton, hip/shoulder markers, velocity arrows)
  • Modular analyzer system for exercise-specific analysis
  • Currently includes: Deadlift hip-shoot detection

Setup

python -m venv venv
source venv/bin/activate
pip install opencv-python mediapipe numpy

Usage

source venv/bin/activate

# Pose overlay only
python -m pose_analyzer video.mp4

# With deadlift analysis
python -m pose_analyzer --analyzer deadlift video.mp4

# Custom output path
python -m pose_analyzer -a deadlift video.mp4 -o output.mp4

Output

The tool produces:

  1. Analyzed video with pose overlays
  2. Console report of detected events (when using an analyzer)

Visual Overlays

Element Color Meaning
Hip marker Cyan Hip center position
Shoulder marker Magenta Shoulder center position
Torso line White Hip to shoulder connection
Velocity arrows Cyan/Magenta Movement direction and speed

Analyzers

Deadlift (--analyzer deadlift)

Detects "hip shooting" - when hips rise faster than shoulders during a deadlift pull. This indicates the lifter's back angle is becoming more horizontal, a common form breakdown.

Tips for Best Results

  • Camera angle: Side view works best
  • Lighting: Good, consistent lighting improves detection
  • Clothing: Fitted clothing helps landmark detection
  • Full body visible: Keep hips and shoulders in frame

Limitations

  • Works best with side-view videos
  • Single person detection only
  • CPU-based (MediaPipe doesn't use GPU on desktop)
  • Hip shoot detection is experimental and not accurate - the deadlift analyzer is a work in progress and should not be relied upon for form feedback. Currently, this tool is most useful for overlaying a stick figure skeleton on videos.

About

A Python toolkit for video pose estimation with pluggable exercise analyzers. Uses MediaPipe for skeleton tracking.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages