Open zpsandzzc opened 2 years ago
Sorry about the trouble. Asking.
Sorry I find the left and right in wrong place
monoRight.out.link(depth.left)
monoLeft.out.link(depth.right)
When I fixed the nice disparity was shown. Could still help me about SGBM fine-turning? It's really great under your adjustment :D
Best regards
@zpsandzzc what do you mean by fine-tuned SGBM parameters like in depth_preview
? Your code (after fixing left and right swap) is identical to depth_preview
.
The default config already has fine tuned parameters.
For further improvements you may check: https://github.com/luxonis/depthai-python/blob/main/examples/StereoDepth/depth_post_processing.py
When I run Depth Preview(SGBM stereo matching in introduction) I get some troubles in Source code(your provided in Depth Preview part in 720P) list as follow:
Then I got nice disparity:
but in my rewrite for other application, it seems no changes in my rewrite from:
I got the terrible disparity map like this:
I'm curious about why, I tried to adjust the SGBM parameters myself in anther Python file which similar images pair, but I couldn't get a high-quality disparity map like Depth Preview Source Code. Could please provide your SGBM fine-turning parameters, and do me a favor to find out why my rewrite form in such poor performance?
Thanks Best regards