Skip to main content

A physiotherapy exercise toolkit with movement scripts, utilities, and resources.

Project description

Computer vision based exercise tracker

publish new version

PhysioPlus/physiocore $ pip install -e .
pip install build
rm -rf dist build src/physiocore.egg-info
python -m build
pip install twine
twine upload --repository testpypi dist/*
twine upload dist/*

Development Installation

To install this package in editable mode for development:

pip install -e .

What this does:

  • Installs the package by linking to the source code (rather than copying files)
  • Changes to the source code are immediately available without reinstalling
  • Perfect for active development and testing

Requirements:

  • Package must have setup.py, setup.cfg, or pyproject.toml
  • Use this when you're modifying the code frequently

Alternative installations:

pip install -e /path/to/package     # Install from different directory
pip install .                      # Regular installation (copies files)
pip install -e git+https://github.com/username/repo.git  # Install from GitHub in editable mode
pip install -e git+https://github.com/username/repo.git@branch-name  # Install specific branch

installation

pip install physiocore

Only if we are trying to install from testpypi (bleeding edge releases will be done here)

python3.10 -m venv testinstall-0.2.2  ; source testinstall-0.2.2/bin/activate
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple physiocore

upgrade from existing installation

pip install -U physiocore==0.3.0
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple physiocore==0.2.4

Versioning

  • last testing on Ankle toe movement done on Mac Sequoia 15.6, physiocore==0.2.2

Usage Guide

from physiocore.ankle_toe_movement import AnkleToeMovementTracker
tracker = AnkleToeMovementTracker()
tracker.start()

from physiocore.cobra_stretch import CobraStretchTracker
tracker = CobraStretchTracker()
tracker.start()

from physiocore.bridging import BridgingTracker
tracker = BridgingTracker()
tracker.start()

#Similar imports for Straight leg raise and prone straight leg raise
from physiocore.any_prone_straight_leg_raise import AnyProneSLRTracker

from physiocore.any_straight_leg_raise import AnySLRTracker

Testing, Usage

python demo.py --save_video bridging.avi --debug

Contents of demo.py below:
from physiocore.bridging import BridgingTracker
tracker = BridgingTracker()
tracker.start()


(testinstall-0.2.2) ➜  TestPhysioPlus python demo.py
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
I0000 00:00:1754933487.157762 3414708 gl_context.cc:369] GL version: 2.1 (2.1 Metal - 89.4), renderer: Apple M4 Pro
Downloading model to /Users/pankaj/TechCareer/TestPhysioPlus/testinstall-0.2.2/lib/python3.10/site-packages/mediapipe/modules/pose_landmark/pose_landmark_heavy.tflite
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
W0000 00:00:1754933487.193762 3415496 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
W0000 00:00:1754933487.201640 3415498 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
I0000 00:00:1754933491.431292 3414708 gl_context.cc:369] GL version: 2.1 (2.1 Metal - 89.4), renderer: Apple M4 Pro
Settings are --debug False, --video None, --render_all False --save_video None --lenient_mode True --fps 30
W0000 00:00:1754933491.482758 3415548 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
W0000 00:00:1754933491.508220 3415557 inference_feedback_manager.cc:114] Feedback manager requires a model with a single signature inference. Disabling support for feedback tensors.
W0000 00:00:1754933539.888523 3415552 landmark_projection_calculator.cc:186] Using NORM_RECT without IMAGE_DIMENSIONS is only supported for the square ROI. Provide IMAGE_DIMENSIONS or use PROJECTION_MATRIX.
time for raise 1754933545.1654909
time for raise 1754933546.743605
time for raise 1754933562.706252
time for raise 1754933565.942921
time for raise 1754933567.60865
time for raise 1754933574.3253388
time for raise 1754933575.041138
time for raise 1754933575.435921
time for raise 1754933576.240452
time for raise 1754933576.639755
time for raise 1754933603.21583
time for raise 1754933628.344631
time for raise 1754933629.984603
time for raise 1754933630.3845131
Final count: 3

See demo.py in tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physiocore-0.3.5.tar.gz (9.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physiocore-0.3.5-py3-none-any.whl (9.6 MB view details)

Uploaded Python 3

File details

Details for the file physiocore-0.3.5.tar.gz.

File metadata

  • Download URL: physiocore-0.3.5.tar.gz
  • Upload date:
  • Size: 9.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for physiocore-0.3.5.tar.gz
Algorithm Hash digest
SHA256 942ad533a82dcbe8b366ed9a16f00d2bf30b75ccb676cd16c51cbb63e358e256
MD5 fdf3cbe467695a3ba95882a4a36fd033
BLAKE2b-256 d97deafb1adf8ef31cce9ceaece010d6042f347fd9bd3ea1efdbc36eddfa64e4

See more details on using hashes here.

File details

Details for the file physiocore-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: physiocore-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for physiocore-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e6311b0a169b58aa542abf862e591e7a24e00df3cab990d2aee3fbec93942da3
MD5 a61bc4b3a8e219ac0c0c3dd34905b0bb
BLAKE2b-256 7694dae513ab3bae172746a896a8873986d1b76b0f87b7f7c07c25b6281fe8c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page