Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivangael/human-motion-capture
Realtime Human Motion Tracking and Analysis
https://github.com/ivangael/human-motion-capture
human-pose-estimation mediapipe motion-analysis motion-tracking numpy opencv python
Last synced: 7 days ago
JSON representation
Realtime Human Motion Tracking and Analysis
- Host: GitHub
- URL: https://github.com/ivangael/human-motion-capture
- Owner: IvanGael
- Created: 2024-06-12T14:47:12.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-29T08:04:40.000Z (5 months ago)
- Last Synced: 2024-06-29T09:23:15.318Z (5 months ago)
- Topics: human-pose-estimation, mediapipe, motion-analysis, motion-tracking, numpy, opencv, python
- Language: Python
- Homepage:
- Size: 22.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Realtime Human Motion Tracking and Analysis
![Demo](demo.png)
## Overview
This project leverages Mediapipe and OpenCV to capture and analyze human poses in a video. It detects and visualizes 3D pose landmarks, displays an overlay box showing the 3D landmarks, and performs simple posture analysis. The OpenCV GUI window is resizable, making it flexible for various screen sizes.## Features
- Pose detection using Mediapipe's Pose solution.
- Selfie segmentation to apply grayscale to the background.
- Overlay of 3D landmarks in a white box on the video frame.
- Elbow Angle : We calculate the elbow angle using the 3D coordinates of the shoulder, elbow, and wrist landmarks.
- Gait Analysis: We calculate the stride length by measuring the distance between the left and right heels.
- Balance Analysis: We calculate the center of mass (COM) of the body by taking the average of all landmark coordinates. Then, we measure the distance from the COM to the left and right ankles. The difference between these distances is used as a balance score, where a smaller value indicates better balance.## Requirements
- Python 3.6+
- OpenCV
- Mediapipe
- NumPy````
pip install -r requirements.txt
````