librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

How can I retrieve the distance or depth data with Intel RealSense D435 depth camera?

Open vee609 opened this issue 8 years ago • 5 comments

Hi everyone, does anyone know how can I retrieve the distance of an object or a person from the sensor of the RealSense D435 depth camera?

Is there any specific function call or algorithm that I should use to do that? I'm using C# to do this. My idea is to use face detection from OpenCV to integrate with the depth sensor to get the distance of a person standing away from the camera.

Thanks in advance.

vee609 avatar Mar 22 '18 02:03 vee609

Hi @StevenWong1995 Please let us know if this helps: wrappers/opencv/dnn

dorodnic avatar Mar 22 '18 07:03 dorodnic

@dorodnic Hi! Thanks for the reference there. This definitely helps but Deep Neural Network is kind of difficult for me to achieve as for my level. By the way, I've managed to obtain the distance by capturing the frame data and process them into a simpler face tracking algorithm using OpenCV as well.

Still thank you very much! 👍

vee609 avatar Mar 22 '18 07:03 vee609

If you ignore all of the DNN stuff, it can still help you get mean depth from a rectangular region of interest. Please let us know if you have more follow-up questions

dorodnic avatar Mar 22 '18 07:03 dorodnic

@dorodnic many thanks! Hope I didn't disturb you from all this!

vee609 avatar Mar 22 '18 08:03 vee609

[Realsense Customer Engineering Team Comment] @StevenWong1995 Is the issue resolved? Can we close this?