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

Generic camera properties #13

Open
joshdoe opened this issue Apr 7, 2020 · 2 comments
Open

Generic camera properties #13

joshdoe opened this issue Apr 7, 2020 · 2 comments
Assignees

Comments

@joshdoe
Copy link
Owner

joshdoe commented Apr 7, 2020

Currently most camera sources expose little to no camera attributes through the GObject property interface, the recently merged pylonsrc having the most properties exposed. However because cameras can have so many different attributes, it can become unwieldy to expose them all through the GObject property interface, plus dynamic properties can't be added to a GObject.

Perhaps common attributes could be added as static properties, but then a camera-attributes property could be added which itself is a GObject dynamically populated with camera attributes. There could also be a simple API created to set camera attributes via a C interface. GenApi itself could be used, generalized across all plugins.

Unfortunately either dynamic property approach doesn't work well with gst-launch, so perhaps there could also be a property that contains a semi-colon delimited list of Feature=Value pairs.

Any and all suggestions invited.

@mrstecklo
Copy link
Contributor

Implemented setting all features in pylonsrc with PylonFeaturePersistenceLoad() and config-file property in my flags2 branch. Haven't tested it yet as COVID keeps me away from my cameras now. I'll test it in a couple of weeks. It is based on my other pull request, so it is kind of suspended now.
I've also added possibility to ignore default values for features with ignore-defaults property

@thiesmoeller
Copy link
Contributor

@mrstecklo : for pylonsrc you could always test with the emulated cameras of Basler pylon

to enable them just set PYLON_CAMEMU in your environment
export PYLON_CAMEMU=5
will create e.g. five emulated cameras to be usable by any pylon application in this environment

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

3 participants