librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

rs-measure gives incorrect measurements

Open ywjia opened this issue 8 years ago • 7 comments

  • Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

  • All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)


Required Info
Camera Model D435
Firmware Version 5.10.3.0
Operating System & Version Ubuntu 16
Kernel Version (Linux Only) 4.15
Platform PC
SDK Version 2.16.0
Language C++
Segment VR

Issue Description

I used the program "/librealsense-master/build/examples/measure" to take some measurements, but it seems that the measurements are way off. As shown below, the actual height of the night stand is 60cm but rs-measure gives a meausure of 48cm. s

Is there anything that need to be done about the camera, such as some kind of calibration? Thanks.

ywjia avatar Sep 17 '18 21:09 ywjia

From issue #2382, I know that "The de-projection function is deterministic and must use the intrinsic of the frame upon each it is invoked." But this is exactly how rs-measure.cpp did, as the related code segment below:

// Deproject from pixel to point in 3D rs2_intrinsics intr = frame.get_profile().asrs2::video_stream_profile().get_intrinsics(); // Calibration data rs2_deproject_pixel_to_point(upoint, &intr, upixel, udist); rs2_deproject_pixel_to_point(vpoint, &intr, vpixel, vdist);

Really puzzled.

ywjia avatar Sep 17 '18 21:09 ywjia

On a second measure, I got 55cm, still way off the actual value of 60cm.

ywjia avatar Sep 17 '18 21:09 ywjia

Are you too close to object? There is a minimum distance of 45cm away when using d415 at 1280x720 resolution.

agrunnet avatar Sep 17 '18 22:09 agrunnet

@agrunnet The camera is more than 1m away from the object.

ywjia avatar Sep 17 '18 22:09 ywjia

I had another observation that may be relevant to the above issue. Using "Depth Quality Tool", when the camera points at a flat wall 1500mm away, it shows "Distance" of ~1401mm.

ywjia avatar Sep 18 '18 01:09 ywjia

Sounds like a calibration issue then.

agrunnet avatar Sep 18 '18 01:09 agrunnet

thanks. it works as expected after calibration.

ywjia avatar Sep 29 '18 18:09 ywjia