librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

Affect of realsense parameters on Depth & IR frames

Open rupak-d opened this issue 4 years ago • 6 comments

| Camera Model | D400 | | Firmware Version | 5.12.10.00 | | Operating System & Version | Linux | | Kernel Version (Linux Only) | 5.4.0 | | SDK Version | 2.43.0 | | Language | C++ | | Segment | Robot |

Issue Description

Wanted some more info on the following realsense camera options I saw here https://github.com/IntelRealSense/librealsense/blob/v2.50.0/include/librealsense2/h/rs_option.h

  1. Backlight compensation
  2. Auto exposure mode
  3. Enable motion correction
  4. Auto exposure priority
  5. Freefall detection enabled
  6. Invalidation bypass
  7. Digital gain
  8. Enable max usable range
  9. Receiver sensitivity

Only using the depth and IR frames from D430 module, so mainly concerned with how it affects those two outputs.

rupak-d avatar Feb 21 '22 18:02 rupak-d

Hi @rupak-d Descriptions for each option are provided in the rs_option.h file that you linked to, and the official RealSense SDK documentation for these options has the same description text.

https://github.com/IntelRealSense/librealsense/blob/v2.50.0/include/librealsense2/h/rs_option.h#L22

Of those 9 options, the two main ones that should be focused on in regard to your D430 are Auto-Exposure and Auto-Exposure Priority.

Auto-Exposure automatically adjusts the camera's exposure values depending on the current lighting conditions in the scene that is being observed.

If exposure drops to a low level then the infrared image will typically become dark. Below '1000' depth exposure value, the depth image progressively breaks up and disappears as the depth exposure is reduced towards '0'.

Depth exposure = 8500

image

Depth exposure = 900

image

Depth exposure = 1

image


Auto-Exposure Priority allows the camera's frames per second (FPS) rate to be dynamically altered depending on the current lighting conditions. This is often considered to be undesirable, as if depth and RGB streams are both enabled then one stream may have a lower FPS rate than the other. Having Auto-Exposure enabled and disabling Auto-Exposure Priority should enforce a constant FPS rate for both streams instead of permitting the rate to fall significanty below the speed that was set for a stream.

MartyG-RealSense avatar Feb 22 '22 11:02 MartyG-RealSense

Thanks @MartyG-RealSense! Does RS2_OPTION_ENABLE_MAX_USABLE_RANGE help with depth data quality if there is a lot of light or glare affecting the camera?

rupak-d avatar Feb 23 '22 21:02 rupak-d

The API Changes notes list that RS2_OPTION_ENABLE_MAX_USABLE_RANGE was a feature for the RealSense L515 lidar depth camera model and so would not apply to 400 Series stereo depth cameras like the D430.

https://github.com/IntelRealSense/librealsense/wiki/API-Changes#version-2400

MartyG-RealSense avatar Feb 23 '22 21:02 MartyG-RealSense

Hi @rupak-d Do you require further assistance with this case, please? Thanks!

MartyG-RealSense avatar Mar 01 '22 08:03 MartyG-RealSense

No that'll be all. Thanks!

rupak-d avatar Mar 01 '22 17:03 rupak-d

You are very welcome, @rupak-d - thanks very much for the update!

MartyG-RealSense avatar Mar 01 '22 17:03 MartyG-RealSense