robotpy / robotpy-cscore

Moved to https://github.com/robotpy/mostrobotpy
Other
17 stars 12 forks source link

Easy way to save camera settings(such as exposure, hue etc) #64

Closed orendanniel015 closed 5 years ago

orendanniel015 commented 5 years ago

Hello everyone!

I have my vision processing running on a coprocessor and every time I do things like reboot the machine or disconnect the camera, settings such as brightness and hue get restarted. So what I want to know is if there is a easy way to save these settings using cscore webUI and for later?

auscompgeek commented 5 years ago

A VideoSink, such as a UsbCamera, has setConfigJson and getConfigJson methods. I believe the cscore webpage also exposes a way to get the current config as JSON too.

If you only want to set a few settings, you can also use their corresponding setter methods.