• Community
  • Depth parameters configuration / testing code?

Hi stephansturges !
Would this example help? There are a few more configurations that aren't exposed in that example, but those are minor details. Thoughts?
Thanks, Erik

Hey Erik,

I'm looking for the same type of example, but that would allow me to cycle through the parameters for depth calculation instead of RGB settings.

The reason is this: certain repetitive patterns cause the stereo depth calculation to fail in some places where I need to use it. I'm testing the whole API to figure out how to mitigate this but it's proving to be very time-consuming to dig through all the documentation and try to figure out what each tertiary parameter in the disparity calculation actually does in a real-world setting.

Here is an example:

You see in the configuration I am using with the CM4 camera I can get pretty reliable depth up to about 25m. In this example that large area in the middle that is blue is returning no usable depth at all, despite being only about 9m from the camera. I'm pretty sure that this is to do with the pattern of the cobblestones, and I'm trying to figure out a combination of stereo parameters that allows me to get rid of this problem 🙂

I have a feeling (untested because the current camera has a firmware update that I can't remove) that this worked better in depthai-2.15 or previous versions. Has there been an update to the default stereo settings?

FWIW I've tried all the depth configuration settings in the API, and this is still a limitation.... so it seems this is just a shortcoming of the algorithm used for matching and cannot be solved at the current time.

    stephansturges
    could you share your captured left/right images of this "repeative texture" case?
    I would like to try my algorithms to see if it can alleviate the "blue" area (no depth).
    Thanks.