DeepRehab Pose
Pose estimation for rehabilitation exercises.
Overview
DeepRehab Pose is a Python package that provides pose estimation capabilities for rehabilitation exercises. It uses MediaPipe to detect body landmarks in video files and can be used to analyze patient movements during physical therapy sessions.
Features
- Extract body landmarks from video files
- Process video frames to identify 33 body points
- Handle invalid or corrupted video files
- Return structured landmark data for further analysis
Installation
To install the package in development mode:
pip install -e .
To install from source:
python -m build
pip install dist/deeprehab_pose-0.1.0-py3-none-any.whl
Usage
from deeprehab_pose import extract_landmarks, InvalidVideoError
try:
# Extract landmarks from a video file
landmarks = extract_landmarks("path/to/video.mp4")
# Process the landmarks
for frame_index, frame_landmarks in enumerate(landmarks):
print(f"Frame {frame_index}: {len(frame_landmarks)} landmarks detected")
except InvalidVideoError as e:
print(f"Error processing video: {e}")
API
Main Functions
extract_landmarks(video_path)- Extract body landmarks from a video fileInvalidVideoError- Exception raised for invalid video files
Data Classes
Landmark- Represents a body landmark with x, y, z coordinates and visibility
Testing
Run the tests with:
python -m pytest src/deeprehab_pose/test_pose.py
License
MIT
Metadata
Release files for deeprehab-pose 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| deeprehab_pose-0.1.0.tar.gz | 2.4 kB | Without provenance | Details for deeprehab_pose-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| deeprehab_pose-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for deeprehab_pose-0.1.0-py3-none-any.whl |
Total release size: 4.4 kB
Release files / deeprehab_pose-0.1.0.tar.gz
| Download URL | deeprehab_pose-0.1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7988856516a8e476fbc0e2f02e32b7c4d419be4915d96e11c81f1dbc00953709
|
|
BLAKE2b-256 checksum How to use checksums |
b0de7808ed54ebbc84054f14ae9f368aaf39e8b6e41c924d4343295e68a4d76e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / deeprehab_pose-0.1.0-py3-none-any.whl
| Download URL | deeprehab_pose-0.1.0-py3-none-any.whl |
|---|---|
| Size | 2.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfc9d17b38ad008df25f5c2c15ed24dd041d0abbf1fc768285f98bab5ebb5dbb
|
|
BLAKE2b-256 checksum How to use checksums |
ca5da15d13d6fc97197d5a4a0159b72db6929b0408affa0317c8be4daef50174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for deeprehab-pose 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.