-
Notifications
You must be signed in to change notification settings - Fork 24
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
[Question] Ability to control camera parameters at runtime? #23
Comments
Hi @NoTuxNoBux |
Hi @Myzhar and thanks again for the quick response! I'm currently using the Python GStreamer bindings, spawning a pipeline that uses the zedsrc_element.set_property('brightness', new_brightness)
zedsrc_element.set_property('contrast', new_contrast) In my case, the values of Of course, C or any other language with GStreamer bindings should also work similarly, only the syntax will differ a little. |
@NoTuxNoBux I am trying to do the same thing here. However I am very new to Gstreamer and Python, would you mind sharing your live control solution? Thank you very much! |
@keli95566 We ended up going with
|
Thank you very much for the instruction! :) However, v412src only returns unrectified image streams if I understood correctly. Perhaps I would just wait for the next release. |
Dear @Myzhar, |
Hello
In #12 support was added to control camera parameters such as brightness and contrast through
zedsrc
. These work fine, but is it possible to control these at runtime?To elaborate: the properties are writeable, so I'm trying to write to them whilst the
zedsrc
element is active. At first sight, the brightness and contrast don't appear to change, but if I restart the zedsrc stream (e.g. reconnect to an RTSP stream using it, which appears to shut down temporarily if no one is connected), both parameters are suddenly correctly applied.I added debug logs to the zedsrc element to confirm that it's receiving the changes in parameters, and it is. I didn't read the source thoroughly, but is it possible that these parameters are just set once during initialization and not updated at runtime afterwards?
FWIW,
v4l2src
also exposes brightness and contrast parameters, and controlling these at runtime appears to work, though I can't be sure if it's controlling the actual ZED camera or applying some sort of video filter instead.Thanks!
The text was updated successfully, but these errors were encountered: