Skip to main content

Monocular Camera Path Prediction for Exosuits

The Python modules use a monocular camera to predict the user's movements to better inform the control algorithm.

Description

Install

To install the library run: pip install monocular-path-prediction

Download the pre-trained models from Depth-Anything-V2.

Development

  1. Install uv from Astral.
  2. Setup your computer to run Makefiles (not CMake).
  3. make init to create the virtual environment and install dependencies
  4. make format to format the code and check for errors
  5. make test to run the test suite
  6. make clean to delete the temporary files and directories
  7. make deploy to build and publish to https://pypi.org/project/monocular-path-prediction
  8. make imu to test the IMU device
  9. make camera to test the camera
  10. make app to run the application in a loop
  11. make serial to test a serial device
  12. make calibration to run the camera calibration

Usage

# example usage of the module
 python src/monocular_path_prediction/__main__.py --help

Microcontrollers

The microcontroller code can be found inside src/microcontroller/.

Repo Structure

├── docs
│   ├── camera-calibration-checker-board_9x7.pdf
│   └── exosuit_anticipation.png
├── src
│   ├── microcontroller
│   │   └── adafruit_main.py
│   └── monocular_path_prediction
│       ├── config
│       │   ├── __init__.py
│       │   ├── definitions.py
│       │   └── setup_logger.py
│       ├── sensors
│       │   ├── camera
│       │   │   ├── calibration
│       │   │   │   ├── __init__.py
│       │   │   │   ├── __main__.py
│       │   │   │   ├── calibration.py
│       │   │   │   ├── detector.py
│       │   │   │   └── results.py
│       │   │   ├── images
│       │   │   │   ├── __init__.py
│       │   │   │   └── images.py
│       │   │   ├── __init__.py
│       │   │   ├── __main__.py
│       │   │   ├── camera.py
│       │   │   ├── camera_intrinsics.py
│       │   │   ├── display.py
│       │   │   └── utils.py
│       │   ├── device
│       │   │   ├── __init__.py
│       │   │   ├── __main__.py
│       │   │   ├── arduino.py
│       │   │   ├── device_info.py
│       │   │   ├── device_selector.py
│       │   │   └── serial_device.py
│       │   ├── imu
│       │   │   ├── __init__.py
│       │   │   ├── __main__.py
│       │   │   ├── calibration.py
│       │   │   ├── data_classes.py
│       │   │   ├── filter.py
│       │   │   ├── imu_device.py
│       │   │   ├── plotter.py
│       │   │   ├── reader.py
│       │   │   └── writer.py
│       │   ├── __init__.py
│       │   └── setup.py
│       ├── __init__.py
│       ├── __main__.py
│       ├── depth_estimator.py
│       ├── path_planner.py
│       ├── pipeline.py
│       └── utils.py
├── tests
│   ├── core_test
│   │   └── timer_test.py
│   ├── sensors
│   │   ├── camera
│   │   │   └── calibration
│   │   │       └── calibration_test.py
│   │   ├── device
│   │   │   └── serial_device_test.py
│   │   └── imu
│   │       ├── gyro_calibration_test.py
│   │       ├── imu_test.py
│   │       └── reader_test.py
│   ├── __init__.py
│   ├── conftest.py
│   ├── estimators_test.py
│   ├── main_test.py
│   └── pipeline_test.py
├── .coverage
├── .gitignore
├── .pre-commit-config.yaml
├── .python-version
├── CONTRIBUTING.md
├── LICENSE
├── Makefile
├── README.md
├── poetry.lock
├── pyproject.toml
├── repo_tree.py
└── uv.lock

Metadata

Release files for monocular-path-prediction 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for monocular-path-prediction 0.2.2
File Size Uploaded
monocular_path_prediction-0.2.2.tar.gz 35.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for monocular-path-prediction 0.2.2
File Interpreter ABI Platform
monocular_path_prediction-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 86.2 kB

Release files / monocular_path_prediction-0.2.2.tar.gz

Download URL monocular_path_prediction-0.2.2.tar.gz
Size 35.1 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f1ad778b01f8c9fe303b423104ddf805def975dfd16ce1f2f68fd5fa345119
BLAKE2b-256 checksum
How to use checksums
d17461b25e90219d760f6d4508cd06127ec67b7c7ce2cdd63c092c986909430e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

Release files / monocular_path_prediction-0.2.2-py3-none-any.whl

Download URL monocular_path_prediction-0.2.2-py3-none-any.whl
Size 51.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e2666cf41b30502c8b66ffb968139137aea733267971d7877bbde7b6c87a787
BLAKE2b-256 checksum
How to use checksums
16676ec1797f1f5c0a92a729e587dec53a3797a02d1a21fc0b00f91c7678bdcf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page