librealsense icon indicating copy to clipboard operation
librealsense copied to clipboard

manual Exposure/gain controls

Open svensht2 opened this issue 8 years ago • 27 comments

Required Info
Camera Model D415
Firmware Version 5.8.14
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only) 4.13.0-31
SDK Version 2.8.3

Hi, we're in a multi camera setup and we're trying to fix exposure/gain for all cameras. When I disable auto exposure, I am not able to get the same level of image brightness as it gets with auto mode. I seem to be able to increase the exposure to where I want it to be(16-33ms), but with gain at 128(max) the image still looks super dark.

svensht2 avatar Jan 25 '18 22:01 svensht2

Hi @svensht2 ,

Can you please upload some snapshots of the RealSense Viewer with the Controls list open so we can see what you are getting? When I disable the Auto Exposure and change the Exposure and Gain manually I get a much brighter image..

zivsha avatar Jan 28 '18 10:01 zivsha

I’ll send it tomorrow. Are you changing the exposure above 330? anything above makes it less than 30 FPS.

On Sun, Jan 28, 2018 at 4:04 AM Ziv Shahaf [email protected] wrote:

Hi @svensht2 https://github.com/svensht2 ,

Can you please upload some snapshots of the RealSense Viewer with the Controls list open so we can see what you are getting? When I disable the Auto Exposure and change the Exposure and Gain manually I get a much brighter image..

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IntelRealSense/librealsense/issues/1079#issuecomment-361051453, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnL65nnGkjYt6yCTyF4b59cGcU3cbXgks5tPEYPgaJpZM4Rtlgl .

svensht2 avatar Jan 28 '18 14:01 svensht2

Are we talking about depth or color stream?

zivsha avatar Jan 28 '18 14:01 zivsha

Sorry for not specifying, I am talking about color stream

On Sun, Jan 28, 2018 at 8:44 AM Ziv Shahaf [email protected] wrote:

Are we talking about depth or color stream?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/IntelRealSense/librealsense/issues/1079#issuecomment-361068163, or mute the thread https://github.com/notifications/unsubscribe-auth/ABnL6_rponSCbSVJ79k3tPboENG13XPEks5tPIfUgaJpZM4Rtlgl .

svensht2 avatar Jan 28 '18 14:01 svensht2

@svensht2 any updates?

zivsha avatar Feb 03 '18 18:02 zivsha

@zivsha sorry, didn't take the screenshot, I figured you had issues reproducing the issue since I didn't specify I'm talking about color. Were you not able to reproduce the issue with the specified settings above?

svensht2 avatar Feb 03 '18 19:02 svensht2

Oh sorry I checked this with the depth image. Yes I see now what you are talking about and I'll check what can be done to get the same results w/o AE

zivsha avatar Feb 04 '18 06:02 zivsha

@zivsha any updates on this?

svensht2 avatar Mar 21 '18 18:03 svensht2

Hi @svenevs , sorry but I couldn't find an answer. I'll refer this to @dorodnic with hopes that he will be able to help

zivsha avatar Mar 21 '18 21:03 zivsha

@zivsha @dorodnic @RealSense-Customer-Engineering anything new on this?

svensht2 avatar May 14 '18 18:05 svensht2

[Realsense Customer Engineering Team Comment] Hi @svensht2,

Connect two D415 camera (FW 5.9.9) on two USB3 ports and running RealSense-viewer app can steam color image and manually adjust gain/exposure individually. Not see your issue.

Required Info  
Camera Model D415
Firmware Version 5.9.11.0
Operating System & Version Ubuntu 16.04
Kernel Version (Linux Only) 4.13.0-31
SDK Version 2.11.1

@zivsha @dorodnic @RealSense-Customer-Engineering I am a coworker of @svensht2. Here are the images showing the difference between ae and manual exposure/gain. Manual exposure/gain was set to 330/128.

auto ae-control

manual manual-control

DillonSkeehan avatar May 21 '18 20:05 DillonSkeehan

@zivsha @dorodnic @RealSense-Customer-Engineering, Just to add to the above ... the auto exposure rgb video at 30fps looks great. when we try to find a corresponding exposure/gain with manual settings at 30fps we can not find it --- the image is just too dark. In the above, manual settings the gain was set to the maximum and the exposure was set to the maximum to achieve 30fps. As can be seen, the image is just too dark. The only way to brighten it up, in order to get anything that resembles the auto exposure case @ 30fps, is to increase the exposure and go well below 30fps. So to us, something is not right with the exposure/gain parameters that we are allowed to adjust.

jkosmach avatar May 25 '18 14:05 jkosmach

[Realsense Customer Engineering Team Comment] Hi @DillonSkeehan,

I can use realsense-viewer app to manually set the exposure/gain to 330/128 for different cameras with the similar brightness level, Do you use the Controls Option in RGB Camera, not in the Controls Option in Depth Camera?

@zivsha @dorodnic @RealSense-Customer-Engineering , We opened a Zendesk ticket and the engineer there has confirmed there is an issue and they have filed a bug with the fw team. It looks like the gain setting under manual exposure mode can not be set to it's maximum (which is achieved during auto-exposure). So this explains why we are seeing unacceptable results for trying to use manual exposure - since we can't set the gain high enough to give us an acceptable picture at 30fps which we see achieved with auto exposure.
@RealSense-Customer-Engineering, can you verify what is the maximum gain setting under auto exposure and how it compares to the manual gain maximum of 128?

jkosmach avatar May 30 '18 03:05 jkosmach

[Realsense Customer Engineering Team Comment] Hi @jkosmach,

Let's track this on Zendesk directly to get more info although I can't reproduce it on my environment. By the way, what's the Zendesk ticket number?

@RealSense-Customer-Engineering

The ticket number is #2613, though the subject and initial discussion is around multi-camera sync. I"ve since asked if we should create a separate ticket on it.

With regards to you not being able to reproduce it i'd like to understand this. So here are the steps to reproduce. Please confirm this is what you have done or are observing:

  1. start with reasonably good office lighting
  2. have auto exposure enabled
  3. observe the video is at 30fps and brightness level of video is reasonable/usable. Similar to good photo above.
  4. turn off auto exposure (manual exposure)
  5. At this point video should be almost black with default manual exposure and gain settings
  6. Try to adjust exposure and gain settings to get anything close to what you observe with auto exposure. But make sure video is still at 30fps. What we find is the best we can do at 30fps is the above dark/unusable video. The only way to brighten it up is to below the 30fps - which means that manual gain is not capable of being set to what the auto exposure gain is capable of doing.

Is this what you are doing? I talked with Anders yesterday and he is telling me it's a known issue and that it has something to do with the ISP messing with the ability to adjust the gain.

jkosmach avatar May 31 '18 13:05 jkosmach

@jkosmach @RealSense-Customer-Engineering Hi any updates on this issue? We are experiencing the same problem, and couldnot find any manual setting to match the AE algorithm.

SolmazJaunt avatar Jun 23 '18 19:06 SolmazJaunt

I can still observe this issue in my setup as well. But just to confirm is this solved in any recent release? Or does anyone have a hack to solve it?

al093 avatar Aug 30 '18 09:08 al093

@al093 the issue comes from the camera's digital gain, our work around was to introduce a new gain. you can amplify the RGB values to get a better image. Your manual and auto setting still would not match, but at least you can get somehow similar images.

SolmazJaunt avatar Sep 04 '18 20:09 SolmazJaunt