View my account

Depth Quality tool how to set custom ROI in DQT

Comments

7 comments

  • MartyG

    Hi Arne Luken  In the Depth Quality Tool there is a 'Set ROI' button next to the Enable Auto Exposure option in the side-panel.  If you enter 2D mode and click Set ROI, you can then hold the left mouse button down on the depth stream panel and draw the shape of ROI box that you want as you move the mouse.  Click 'Set ROI' again to set the box that you have drawn.

    0
    Comment actions Permalink
  • Arne Luken

    Hi Marty, i guess that was unclear, sorry. I want to change the area where the depth measurment is evaluated. I know i can change the size but is there a way to change the Box.

    0
    Comment actions Permalink
  • MartyG

    In regard to defining the size of the ROI box with code, this could be defined with min_x, max_x, min_y, max_y.  The link below has a Python script that demonstrates doing so.

    https://github.com/IntelRealSense/librealsense/issues/11246

     

    For any future C++ users reading this, there are references here:

    https://github.com/IntelRealSense/librealsense/issues/4015#issuecomment-595205511

    https://github.com/IntelRealSense/librealsense/issues/5308

    0
    Comment actions Permalink
  • Arne Luken

    Hi, as far as i can tell your links refer to setting the ROI for the auto exposure. I want to change the Metrics Region of interest in the Depth quality Tool as shown in the Pictures above. Is there a way to define the shape instead of just changing the size (like shown above).

    Thanks Arne

    0
    Comment actions Permalink
  • MartyG

    My research of the Metrics Region of Interest function indicates that it is not a RealSense SDK instruction that can be called upon in your own script, but is instead a feature that is programmed into the code of the Depth Quality Tool to draw a different sized rectangle on the screen when a % value is selected.

     

    One feature of this function that may be able to be replicated in your own script is that when the ROI is set to 20%, an instruction called RS2_OPTION_ENABLE_IR_REFLECTIVITY is set to True (a value of '1').

    0
    Comment actions Permalink
  • Arne Luken

    I do not want to use or change it in my own script, i want to manipulate the Region in the Depth Quality tool.

    0
    Comment actions Permalink
  • MartyG

    The Depth Quality Tool does not have separate RGB controls.  If you choose a percentage (20, 40, 60 or 80) from the Region of Interest drop-down menu in the side-panel then the 'Metrics Region of Interest' ROI box is automatically adjusted to that percentage size for both the depth and RGB streams.

    0
    Comment actions Permalink

Please sign in to leave a comment.