Get a depth image

Using just opencv(not use pyzed), I want to get a depth image.

Could you know how to do that?

% I know I can get a depth image using cv.StereoBM or StereoSGBM … But the result is bad.

Hi @beginner
the quality of StereoBM and StereoSGBM is not comparable to the quality of the depth map obtained by the ZED SDK that uses advanced algorithms and filters tuned and studied for many years.

If you want to use OpenCV, I suggest you look at the ZED Open Capture repository:

I agree that the program you made has better performance.

But it seems difficult to use it in my project. (Maybe not)

Thank you for your reply.

It’s only an example to show you how to set StereoSGBM to retrieve usable depth maps.

"But it seems difficult to use it … "

It means that using zed sdk is difficult in my project because of collision.

I think the code of the link you attached will be used for good reference.

I’m not a native, so I brought a misunderstanding.

Thank you for reply.