-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Closed
Labels
Description
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!