Skip to content
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

Reigon of interest for D435 RGB sensor not implemented #1616

Closed
migel opened this issue Apr 27, 2018 · 1 comment
Closed

Reigon of interest for D435 RGB sensor not implemented #1616

migel opened this issue Apr 27, 2018 · 1 comment

Comments

@migel
Copy link

migel commented Apr 27, 2018

Required Info
Camera Model D435
Firmware Version 05.09.09.02
Operating System & Version Ubuntu 16
Version ( Only) 4.4.0-119
Platform PC
SDK Version 2.10.3

Issue Description

We need reigon of interest for RGB camera. is_roi_sensor() returns True for rgb sensor but get_reigon_of_interest() returns not implemented:

In [1]: import pyrealsense2 as rs
   ...: pipeline = rs.pipeline()
   ...: config = rs.config()
   ...: config.enable_stream(rs.stream.depth, 640, 480, rs.format.z16, 30)
   ...: config.enable_stream(rs.stream.color, 640, 480, rs.format.bgr8, 30)
   ...: profile = pipeline.start(config)
   ...: device = profile.get_device()
   ...: sensor = device.sensors[1]
   ...: print(device, device.get_info(rs.camera_info.firmware_version))
   ...: print(sensor.is_depth_sensor(), sensor.is_roi_sensor())
   ...:
<pyrealsense2.device: Intel RealSense D435 (S/N: 745412070033)> 05.09.09.02
False True

In [2]: roi_sensor = sensor.as_roi_sensor()
   ...: roi_sensor.get_region_of_interest()
   ...:
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-2-f39d6c94652e> in <module>()
      1 roi_sensor = sensor.as_roi_sensor()
----> 2 roi_sensor.get_region_of_interest()

RuntimeError: Region-of-interest is not implemented for this device!
@dorodnic
Copy link
Contributor

Hi @migel
Region of interest for RGB auto-exposure is in fact not available for the D435 cameras.
I don't think that this functionality is available at the ISP firmware level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants