Skip to main content

A library for depth estimation and processing

Project description

Depthlib

A python library for depth estimation using stereo vision

Install

pip install depthlib

Development Environment Setup

Follow these steps to prepare the project environment:

  1. Create a virtual environment

    python -m venv venv
    
  2. Activate the virtual environment

    • Windows
      venv\Scripts\activate
      
    • macOS/Linux
      source venv/bin/activate
      
  3. Install dependencies

    pip install -r requirements.txt
    
    • CPU-only PyTorch
      pip install torch
      
    • CUDA PyTorch (pick the right CUDA wheel from PyTorch site)
      pip install torch torchvision --index-url https://download.pytorch.org/whl/cu128
      

    See https://pytorch.org/get-started/locally/ to choose the correct CUDA version.

Run Examples

  • For stereo images - example_stereo.py
  • For stereo video - example_stereo_live.py

[!Note] Download demo left and right videos from here and put it inside assets folder.

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

depthlib-0.1.1.tar.gz (20.3 kB view details)

Uploaded Source

Built Distribution

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

depthlib-0.1.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file depthlib-0.1.1.tar.gz.

File metadata

  • Download URL: depthlib-0.1.1.tar.gz
  • Upload date:
  • Size: 20.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for depthlib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 19b3f88afb54a0cf7bb2274d14df118099d014ddac45d8830c4877ff6643dbad
MD5 4c0bde8cd8ebfea0368f624bf16a6e7b
BLAKE2b-256 ab6b77d71f23ef60e9d67c090cd315a638ded9062e56096ce66fb7c28c7883e3

See more details on using hashes here.

File details

Details for the file depthlib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: depthlib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for depthlib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f8ecf05b2cb6942bb8fa6566f4a2df9a48df03ece78f898ab95bd8b2321c503
MD5 0c50185145a635329c6a6272167cd96a
BLAKE2b-256 0f3289680d79b8b0e757e79ef38babf997a7c52f25f14aa9e6ea32bf8bf03a70

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