Skip to main content

Monocular Path Predition for Exosuits

Project description

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

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

monocular_path_prediction-0.2.2.tar.gz (35.1 kB view details)

Uploaded Source

Built Distribution

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

monocular_path_prediction-0.2.2-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file monocular_path_prediction-0.2.2.tar.gz.

File metadata

  • Download URL: monocular_path_prediction-0.2.2.tar.gz
  • Upload date:
  • Size: 35.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.2 Darwin/25.2.0

File hashes

Hashes for monocular_path_prediction-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a1f1ad778b01f8c9fe303b423104ddf805def975dfd16ce1f2f68fd5fa345119
MD5 bb2f9342e7c039c1ee0cb988f2749d19
BLAKE2b-256 d17461b25e90219d760f6d4508cd06127ec67b7c7ce2cdd63c092c986909430e

See more details on using hashes here.

File details

Details for the file monocular_path_prediction-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for monocular_path_prediction-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e2666cf41b30502c8b66ffb968139137aea733267971d7877bbde7b6c87a787
MD5 05ed99ffbfb104c0ae69598fa3bc4e22
BLAKE2b-256 16676ec1797f1f5c0a92a729e587dec53a3797a02d1a21fc0b00f91c7678bdcf

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