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
python3 -m pip install -r requirements.txt
Your device needs to have calibration stored to work with this example