librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

[D435] Recommended configuration for near-range (< 1m) accuracy

Open jfhamlin opened this issue 8 years ago • 12 comments

Required Info
Camera Model D435
Firmware Version 05.08.06.00
Operating System & Version Ubuntu 14.04
Kernel Version (Linux Only) 4.4.0-103-generic
SDK Version 2.9.0 (current master@2a2446f)

I'm testing out D435 for my use case, and sensor precision using default depth settings is much poorer than expected. The subject is a human face around 0.15m-1m away from the sensor, and the 3D result is invariably a blob with significant dynamic noise. I'd be happy to provide some example scans, but I'll begin the conversation here in case you all have some upfront recommendations.

jfhamlin avatar Jan 16 '18 21:01 jfhamlin

Hi @jfhamlin Could you please share your results (you can attach images by dragging them into comment text-box)? Obviously, what one considers good is subjective but you should expect to see a dense point-cloud with clearly visible landmarks (nose, ears, eyes, mouth open or closed etc..) Something like: middensity_nopost shortrange_postprocessed These are obviously not representative of the product as whole, but rather something I just captured with my D435 at around 30 cm range at moderate indoor lighting. The basic relevant settings are laser-power (should be on if you are indoor), auto-exposure on, visual preset and post-processing. The first image was captured without post-processing with Mid-Density preset and the second with post-processing and ShortRange preset.

dorodnic avatar Jan 17 '18 07:01 dorodnic

Hello @dorodnic I have a sensibly similar issue with a D435. I want to try your settings but as far as I understand, there is no "Short Range" visual preset for D400 series in rs_option.h, it only seems to be for SR300 series.

Can you tell us what specific option / visual preset you use for short range for the D435 ?

Is setting RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY sufficient ? I have tried to use RS2_OPTION_MIN_DISTANCE but it does not seems to be what I'm looking for (and it is not supported by the D435 apparently)

Thanks a lot !

tchapi avatar Jan 29 '18 10:01 tchapi

Hello @tchapi, for a short range video capturing we have a JSON file that could help you on that. In order to load the JSON file you can use the advanced mode API. Here is a short example of how to do that:

auto advanced_mode_dev = dev.as<rs400::advanced_mode>();
std::string json_content = read_the_json_file_content(...);
advanced_mode_dev.load_json(json_content);

icarpis avatar Jan 29 '18 12:01 icarpis

Hi @icarpis ! All the JSON files have been removed from the repo unfortunately - do you have them somewhere else ?

Thanks

tchapi avatar Jan 29 '18 13:01 tchapi

All the JSON files could be downloaded from here. Each preset has a link(s) to its corresponding JSON file.

icarpis avatar Jan 29 '18 13:01 icarpis

My bad — got them. Thanks again !

tchapi avatar Jan 29 '18 13:01 tchapi

As a related aside, after reading the Intel literature at https://click.intel.com/intelr-realsensetm-depth-camera-d415.html, we determined the D415 might perform better with smaller objects and higher precision at shorter ranges. Just received our camera so no data to back that up yet.

From: tchap [mailto:[email protected]] Sent: Monday, January 29, 2018 2:05 AM To: IntelRealSense/librealsense Cc: Subscribed Subject: Re: [IntelRealSense/librealsense] [D435] Recommended configuration for near-range (< 1m) accuracy (#1021)

Hello @dorodnichttps://github.com/dorodnic I have a sensibly similar issue with a D435. I want to try your settings but as far as I understand, there is no "Short Range" visual preset for D400 series in rs_option.hhttps://github.com/IntelRealSense/librealsense/blob/ba01147d65db16fdf4da36a3e718fe81c8421034/include/librealsense2/h/rs_option.h, it only seems to be for SR300 series.

Can you tell us what specific option / visual preset you use for short range for the D435 ?

Is setting RS2_RS400_VISUAL_PRESET_MEDIUM_DENSITY sufficient ? I have tried to use RS2_OPTION_MIN_DISTANCE but it does not seems to be what I'm looking for (and it is not supported by the D435 apparently)

Thanks a lot !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/IntelRealSense/librealsense/issues/1021#issuecomment-361196881, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ah5haMk-EKKqhNsccs8sOwWtTVfpTJXUks5tPZfOgaJpZM4Rga7h.

ioreed avatar Jan 29 '18 22:01 ioreed

Hey @jfhamlin , here are a list of parameters that I found effective at manipulating depth resolution at close range. I'm using the D415 camera and not the D435 so things might be slightly different. In no particular order: Exposure Gain Laser Power DS neighbor threshold Estimate mediam decrement score maximum threshold depth units
disparity shift depth clamp max depth clamp min

I'm currently working on this problem myself so if I find anything revolutionary I'll let you know. Here is the thread I started about a similar issue https://github.com/IntelRealSense/librealsense/issues/1171

GitwellAnyohub avatar Feb 14 '18 16:02 GitwellAnyohub

Hello, did anyone compare near range accuracy of D415 vs D435 with sample pictures? I'm quite disappointed of my D435 accuracy, when I use 3D view I get strong noise and bad z-accuracy. From pictures in this page D415 seems to have better quality. Thanks

RomRoc avatar Mar 07 '18 11:03 RomRoc

[Realsense Customer Engineering Team Comment] This document will be good for you to tune up your depth quality. https://realsense.intel.com/wp-content/uploads/sites/63/BKMs-For-Tuning-RealSense_D4xx_Cameras_WP_1.7.pdf

@RealSense-Customer-Engineering thanks! I'm happy to have this issue closed for the time being, unless there are plans to expose better near range presets or more tuning suggestions for close-range use cases.

jfhamlin avatar Apr 27 '18 17:04 jfhamlin

Though looking back at @dorodnic's results, I still see considerably more depth noise at that range.

jfhamlin avatar Apr 27 '18 17:04 jfhamlin