librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

rs-measure example gives half of the real distance

Open phat64 opened this issue 8 years ago • 4 comments

Required Info  
Camera Model SR300 & D415
Operating System & Version Linux (Ubuntu 16.04)
Kernel Version (Linux Only) 4.13.0-37-generic
Platform PC
SDK Version 2

Description

When I use the rs-measure example from the librealsense, I have a wrong measure of the distance between 2 points. When I want to measure a 20 cm ruler, the result is 10 cm. And when I want to measure 10 cm, the result is 5 cm. But the depth is ok

image

phat64 avatar Apr 10 '18 09:04 phat64

Hi @phat64 Yes, the output displayed by rs-measure seems to be not very accurate. We do offer a disclaimer with this demo not to use it for actual measurements, but rather only as a capability demonstration. We will try looking more closely what is causing the discrepancy, since as you mentioned the depth data seems fine. The overall method used in this demo is summarizing piecewise Euclidean distances between 3D points along Dijkstra shortest path. If anything I would image this estimate to overshoot the actual distance.

dorodnic avatar Apr 10 '18 10:04 dorodnic

[Realsense Customer Engineering Team Comment] @phat64 Have you tried the suggestion from necroen? et dec.set_option(RS2_OPTION_FILTER_MAGNITUDE, 2); to dec.set_option(RS2_OPTION_FILTER_MAGNITUDE, 1); will be ok

Hello @phat64 , The latest v2.11.1 should address this issue. Please check and update

ev-mp avatar May 17 '18 19:05 ev-mp

[Realsense Customer Engineering Team Comment] @phat64 is the issue fixed after testing with the latest LibRS?