-
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
Changing RGB Options in MATLAB Wrapper #7102
Comments
Hi @bauder96 The best scripting reference that I could find for setting sensor options in the MATLAB wrapper is information provided by a RealSense team member in the link below: Edit: in the script in the link above, there may be a typo error, where: if d_sensor.supports_option(optionemitter_enabled) should be: if d_sensor.supports_option(option.emitter_enabled) Regarding differentiating between accessing the RGB and depth exposure settings: in regular C++ at least, my memory is that the same instruction is used for both, but you define whether you are targeting the depth or color auto-exposure in the sensor.set_option part of the code: color_sensor was in turn defined by the instruction rs2::sensor color_sensor; Apologies if the above information is not as clear as it could be. I am adapting knowledge from regular non-MATLAB wrapper C++. |
Hi Marty, Thanks for your help. I did end up finding a solution (sort of). I am able to edit the settings of the RGB sensor. However, enabling auto exposure does not fix the dark image issue, so I had to set it manually. Not sure why auto exposure is not working. Here is my solution: |
Hi @bauder96 Great news that you made progress! When auto-exposure is active, you may be able to increase brightness using a setting called Mean Intensity Set Point. Increasing the value should increase brightness. You can test this in the RealSense Viewer program by expanding open the Advanced Controls section of the Viewer's options side panel whilst auto-exposure is enabled and expanding open its AE Control sub-category. Then increase the default value of Mean Intensity Set Point in that setting. |
Issue Description
Good afternoon,
I am using the MATLAB wrapper to control and take in data from my D415. I am currently taking in a frame from the RGB camera, however the image is too dark to see anything. It is the same as when I use the RealSense Viewer and turn auto-exposure off. So, I am trying to change the options of the RGB camera. However, I cannot figure out how to do this. Here is my method:
dev = profile.get_device();
sensor = dev.first('SENSOR NAME');
sensor.set_option(realsense.option.enable_auto_exposure,0);
sensor.set_option(realsense.option.exposure,156);
The problem is, the only sensor types in the wrapper appear to be "sensor", "roi_sensor", "depth_sensor", and "depth_stereo_sensor". So when I run this, the exposure of the camera remains unchanged.
Does anyone have a solution?
Thanks!
The text was updated successfully, but these errors were encountered: