stereolabs / zed-gstreamer

Package of GStreamer elements to interface with ZED Cameras
https://www.stereolabs.com/docs/gstreamer/
61 stars 23 forks source link

Exposure and Gain ROI Runtime Control & Bugfix for valid ROI checks #50

Closed ryanppeters closed 5 months ago

ryanppeters commented 5 months ago

Adds runtime control for auto exposure & gain Region of Interest (ROI) and manual (Exposure & gain values) by setting ZedSrc properties while the pipeline is active. Only available for source code implementations; not available from the command line. Uses a flag (exposure_gain_updated) to only update whenever a property has been changed (small optimization). This feature pairs well with object detection pipelines where a finer exposure control dependent on the object location in the image is desired.

Fixes a bug in ROI validation checks where only an invalid ROI (e.g. not set or exceeds bounds of image) was accepted.

_Note: This is an update to the previous PR https://github.com/stereolabs/zed-gstreamer/pull/45 but has been rebased on 4.0.8. This branch has been successfully tested in SDK 4.1 with a DeepStream pipeline as well but did require removal of the image_sync parameter as that was removed in SDK v4.1._