How can I retrieve the distance or depth data with Intel RealSense D435 depth camera?
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.
Hi @StevenWong1995 Please let us know if this helps: wrappers/opencv/dnn
@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! 👍
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 many thanks! Hope I didn't disturb you from all this!
[Realsense Customer Engineering Team Comment] @StevenWong1995 Is the issue resolved? Can we close this?