-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Finding the best acquisition parameters (D415) #1171
Comments
Hi @GitwellAnyohub |
@dorodnic thanks for your reply. In one set of the parameter sets I tried I did actually play with the disparity shift. I know that disparity accuracy is a relevant parameter for calculating depth resolution of stereo cameras ( depth resolution is approximately (distance^2 x disparity accuracy) / (focal length x distance between stereo cameras). So at a fixed distance, disparity accuracy seems to be the thing to change although I'm actually sure how disparity shift is related to disparity accuracy. Below, I'll post a video that uses the best set of parameters I have so far. One other thing I'm worried about is the "waviness" of the mouse body. It sort of looks like fat rolls. Is there a way to get rid of this artifact? |
This is pretty awesome! The disparity shift parameter does not diminish the accuracy, it just shifts the search range from 0-126 disparities (which is infinity-to-minZ) to nearer range. As @dorodnic mentioned this should be used in particular when you dont have any objects that are farther away. Your example is a great usage. You have your camera pointed at a table with mice. If the camera is mounted 50cm above the table, then there will not be any distance longer than 50cm. Returning to your question of depth accuracy, I suggest
|
One more comment - when you actually get really close you RMS error will go to less than 1mm. However, by default the "depth unit" is 1=1000um (1mm). You can change that under the advanced mode to be, for example, 1=100um. See the screenshot above. You now just need to make sure in software that you interpret your output depth as if each value is 100um, and not 1mm. There will be a limit to how close you can get with the D415 and D435. Basically the lenses are focused at hyperfocal 50cm, but have good focused images to closer to 20cm. Closer than this and the image will blur, causing a degradation of depth. Furthermore, when you get this close with such a large baseline (distance between imagers), stereo triangulation starts to break down - If you are looking at an object from opposite sides for the Left and Right imagers then it will of course not find a match. |
Thanks @argunnet and thanks again @dorodnic. I think I get the gist on what parameters to change to increase the depth resolution. Unfortunately there are a few other issues that I'm not sure now to tackle (not sure if I should start a new thread).
I used to work with the xbox kinect2 cameras before deciding to switch to Intel, and many of these artifacts are new. I understand working with new hardware requires optimization and I appreciate any tips I can get (from anyone!) I've attached some videos that illustrate the problems I'm having. |
More nice videos. |
@agrunnet |
I have added link to this thread to the preset Wiki as an immediate follow-up. @GitwellAnyohub, please feel free share more of your findings. |
@GitwellAnyohub I know this is an old issue, but I wonder if you could share your final .json file. I have a similar application, but using D435. Thanks! |
I see that the depth resolution you adjusted is really great. Now I am also using D415, I'm faced with the problem of getting high depth resolution. Could you please share your acquisition parameters with me ? Iwould be very grateful. |
Hello!I'm also currently trying to image a mouse in a bucket.Could you share the collection parameters you used? I placed my RealSense D455 about 1 meter above the bottom of the bucket to collect. |
When the mice stood up against the wall of the tube,part of their body became the same color as the wall. How do you track mouse profiles in this case? |
Camera Model: D415
Firmware: librealsense version 2.9.1
OS: Linux (Ubuntu 16.04)
I'm currently trying to image a mouse in a bucket and I want to know which acquisition parameters I should play with to get the best depth resolution. The working distance is between 20 and 30 centimeters. None of the preset acquisition parameters suggested on the wiki page (/~https://github.com/IntelRealSense/librealsense/wiki/D400-Series-Visual-Presets) are suitable for my project and I don't have a good intuition on what to play with (partly because I don't know what most of the 100+ parameters mean). Does anyone have any suggestions?
Is there a place where I can find a description of each of the parameters and what they do? Which parameters should I change to change the working distance and get the best depth resolution?
The text was updated successfully, but these errors were encountered: