Disparity Map Quality

OpenCV, Python and other image processing questions
Post Reply
kaanyvz
Posts: 1
Joined: Fri Oct 16, 2020 5:35 am

Disparity Map Quality

Post by kaanyvz »

Hi,
I try to get depth map with StereoPi from this article "OPENCV AND DEPTH MAP ON STEREOPI TUTORIAL". I perform all stages attentively but disparity map not good and has not any blue colors for far away objects. How I solve this problem?
Attachments
rectifyed_right.jpg
rectifyed_right.jpg (30.57 KiB) Viewed 175962 times
rectifyed_left.jpg
rectifyed_left.jpg (29.72 KiB) Viewed 175962 times
photo.png
photo.png (228.19 KiB) Viewed 175962 times
2019-04-03-135509_1824x984_scrot.png
2019-04-03-135509_1824x984_scrot.png (137.02 KiB) Viewed 175964 times
2019-04-03-135211_1824x984_scrot.png
2019-04-03-135211_1824x984_scrot.png (69.45 KiB) Viewed 175964 times

User avatar
Realizator
Site Admin
Posts: 900
Joined: Tue Apr 16, 2019 9:23 am
Contact:

Re: Disparity Map Quality

Post by Realizator »

Hi kaanyvz,
The first issue I see is a poor calibration quality. After rectification, straight lines on your photos became not straight. I attach your image with two red lines, which shows that the straight shelves on the wall became bent. It is better to get fina c calibration first, and tune the depth map settings after that.
By the way, I'd recommend using our newer code from this repository.
Attachments
2019-04-03-135211_1824x984_scrot.png
2019-04-03-135211_1824x984_scrot.png (82.57 KiB) Viewed 175943 times
Eugene a.k.a. Realizator

Post Reply