View my account

Intel Realsense D435 incorrect distance calculation

Comments

3 comments

  • MartyX Grover

    Hi Mustafatouqri236  As you are using pythagoras maths, may I first ask whether you are measuring the distance from the camera position to an object below the camera position (e.g at ground level), like in the discussion linked to below.

    https://github.com/IntelRealSense/librealsense/issues/9297

    0
    Comment actions Permalink
  • Mustafatouqri236

    Thank you Marty for your reply.

    My concept is quite different from the obove mentioned. I am not using the angle to calculate the distance. The diagram above explains my concept a bit clearly. I am trying to get the distance S' from the depth stream. The H is fixed to a value of 2.5 and then i use pythagoras theorem to calculate the distance S. The problem is that the value of S' from the depth frame always less. For exaple i placed the object at a kn own distance S of 2m. Calculated this distance with the help of S' it was 1.5 with the value from the depth frame. Have you any idea why the value of S' is quite inaccurate. I have tried all the filters in the depth frame.

    0
    Comment actions Permalink
  • MartyX Grover

    Using pythagoras may be more complicated than is actually needed for this particular application.  RealSense 400 Series cameras can be tilted (a maximum of 30 degrees would be best but beyond that is possible if necessary).  So if it is permissible in your project for the camera to be tilted then you could then take a direct distance measurement from the center of the camera's field of view to the observed target at ground level.

    The links below provide examples of programs for taking such a reading.

    C++

    https://github.com/IntelRealSense/librealsense#ready-to-hack

    Python

    https://github.com/IntelRealSense/librealsense/issues/6749#issuecomment-654185205

    0
    Comment actions Permalink

Please sign in to leave a comment.