Skip to content

Latest commit

 

History

History
 
 

gen2-stereo-on-host

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

中文文档

Gen2 Stereo on host

The main.py demonstrates how stereo pipeline works on the OAK device (using depthai). It rectifies mono frames (receives from the OAK camera) and then uses cv2.StereoSGBM to calculate the disparity on the host. It also colorizes the disparity and shows it to the user.

To run this application, run python3 main.py

disp_to_depth.py calculates a depth frame from a disparity frame and then compares it (using SSIM) to the depth frame calculated on the OAK camera. Similarity between generated (on OAK) and calculated (on host) depth frames should always be above 99%.

To run this application, run python3 disp_to_depth.py

Installation

python3 -m pip install -r requirements.txt

Calibrate camera (if needed)

Your device needs to have calibration stored to work with this example