Skip to main content

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.

Metadata

Release files for depthlib 0.1.1

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

Source distribution (sdist)

Source distribution for depthlib 0.1.1
File Size Uploaded
depthlib-0.1.1.tar.gz 20.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for depthlib 0.1.1
File Interpreter ABI Platform
depthlib-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 40.9 kB

Release files / depthlib-0.1.1.tar.gz

Download URL depthlib-0.1.1.tar.gz
Size 20.3 kB
Tags Source
SHA-256 checksum
How to use checksums
19b3f88afb54a0cf7bb2274d14df118099d014ddac45d8830c4877ff6643dbad
BLAKE2b-256 checksum
How to use checksums
ab6b77d71f23ef60e9d67c090cd315a638ded9062e56096ce66fb7c28c7883e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / depthlib-0.1.1-py3-none-any.whl

Download URL depthlib-0.1.1-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f8ecf05b2cb6942bb8fa6566f4a2df9a48df03ece78f898ab95bd8b2321c503
BLAKE2b-256 checksum
How to use checksums
0f3289680d79b8b0e757e79ef38babf997a7c52f25f14aa9e6ea32bf8bf03a70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

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