Stereo Camera HAT: Any Python Sample to Calculate Distance Values from Camera?

Hi. I hope somebody can help me. :slight_smile:

ā€¢ I want to know how to calculate and get distance values from camera in Python / OpenCV, either from the generated dense map / point clouds or any other way, using the stereo camera HAT?

Thanks in advance!!

Hi @MRX999 ,

We provide a simple example for obtaining the depth map:

If you want to obtain the distance information, you only need to add a small part of the code in