Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rs-measure example gives half of the real distance #1516

Closed
phat64 opened this issue Apr 10, 2018 · 4 comments
Closed

rs-measure example gives half of the real distance #1516

phat64 opened this issue Apr 10, 2018 · 4 comments
Assignees

Comments

@phat64
Copy link

phat64 commented Apr 10, 2018

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

@dorodnic
Copy link
Contributor

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.

@RealSense-Customer-Engineering
Copy link
Collaborator

[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

@ev-mp
Copy link
Collaborator

ev-mp commented May 17, 2018

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

@RealSense-Customer-Engineering
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants