View my account

Auto exposure limits

Comments

7 comments

  • MartyX Grover

    Hi Cristian Vilar  The RealSense SDK has supported an Auto-Exposure Limit for the IR sensors since SDK 2.42.0.  Does this feature fit your requirements, please?

    https://intelrealsense.github.io/librealsense/doxygen/rs__option_8h.html#a8b9c011f705cfab20c7eaaa7a26040e2ac11001971364b90b542941e51ebb911a

     

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

     

     

    The Auto-Exposure Limit feature can be set in the RealSense Viewer at the bottom of the Controls section of the Viewer's 'Stereo Module' options.

     

    0
    Comment actions Permalink
  • Cristian Vilar

    Hi,

    I installed the SDK 2.43 and the auto exposure limit is implemented only for the depth camera, but I would like to control also the autoexposure limits of the RGB camera. Is it possible?, Is it possible to control this parameter using the Matlab wrapper?

    regards,

    Cristian

    0
    Comment actions Permalink
  • Cristian Vilar

    Matlab wrapper is not working for both Depth and RGB cameras.

     
    0
    Comment actions Permalink
  • MartyX Grover

    Your MATLAB sensor querying code looks similar to the code in the link below.

    https://github.com/IntelRealSense/librealsense/issues/7102#issuecomment-673623848

    Does your script follow that links's example in setting up sensors{1}{2} first before calling it in your realsense.option lines, please?

    sname = sensors{1}{2}.get_info(realsense.camera_info.name);
    disp(sname);

     

    An alternative to using index numbers to distinguish between depth and RGB sensors is to define a sensor as 'first depth sensor' or 'first color sensor'.  The link below provides a MATLAB wrapper example of doing so for the depth sensor:

    https://github.com/IntelRealSense/librealsense/issues/3358#issuecomment-475489478

     

    In regard to a limiter for RGB exposure, I am not aware of a way to implement a similar maximum exposure control for the RGB sensor.

    0
    Comment actions Permalink
  • Cristian Vilar

    Hi MartyG,

    Yes, I tried both methods and Exposure limit is not working in both sensors (depth & RGB)

    dev = profile.get_device();
    depthSensor = dev.first('depth_sensor'); %color sensor also tried
    depthSensor.set_option(realsense.option.enable_auto_exposure,0);
    depthSensor.set_option(realsense.option.auto_exposure_limit,156);
    dev = profile.get_device();
    sensors = dev.query_sensors();
    sname = sensors{1}{2}.get_info(realsense.camera_info.name);  % {1}{1} RGB also tried
    disp(sname);
    sensors{1}{2}.set_option(realsense.option.enable_auto_exposure,0);  % {1}{1} RGB also tried
    sensors{1}{2}.set_option(realsense.option.auto_exposure_limit,156);  % {1}{1} RGB also tried

    regards,

    Cristian

     
    0
    Comment actions Permalink
  • MartyX Grover

    depthSensor.set_option(realsense.option.enable_auto_exposure,0); should be set to '1' instead of '0', as 1 enables auto-exposure and '0' disables it.

    And of course, Auto_Exposure_Limit will not work with the color sensor.

    I researched for further examples of MATLAB wrapper code for accessing the depth or RGB sensor individually but could not locate any, unfortunately.

    0
    Comment actions Permalink
  • Cristian Vilar

    Hi MartyG,

    I tried with the auto_exposure "1" and I got the same result:

    0
    Comment actions Permalink

Please sign in to leave a comment.