NVIDIA-AI-IOT / jetson-stereo-depth

MIT License
79 stars 20 forks source link

Jetson Stereo Depth

Build your own HW-accelerated stereo camera from scratch with Nvidia Jetson. demo gif

This repository contains:

  1. Stereo Pair intrinsic calibration

    image
  2. Lens distortion correction

    image
  3. VPI HW-accelerated remap()

    image
  4. Depth calculation demo gif

  5. 3D Printable Hardware IMG_4761

Getting started

  1. Install dependencies

    sudo apt install libnvvpi1 python3-vpi1 vpi1-dev
  2. Calibrate cameras (see notebooks in calib/ folder).

  3. Try python implementation

    cd depth_pipeline_python
    python3 depth_vpi.py 
  4. Try C++ implementation

    cd depth_pipeline_cpp
    mkdir build && cd build
    cmake .. && make -j$(nproc)
    ./depth_pipeline

Pipeline

depth_pipeline

Hardware

3D printable holder for 2 × IMX219 camera module is available here. Baseline distance of the pair is 80mm.