Manual Camera Settings in Linux

438 views
Skip to first unread message

Team14

unread,
Aug 15, 2017, 9:21:08 AM8/15/17
to OpenPnP
Hi,

I'm looking for a method to load fixed camera settings before starting OpenPNP. I would prefer a linux shell  script, which is called before starting OpenPnP.

I've used guvcview, a GUI application for linux, to adjust the settings. That works quite good, but after another plugin, the settings are again at the hardware defaults.

What tool can I use for this job? Are there any recommendations?

BTW: the manual white balance has allways an offset towards excess blue or excess green, I cannot adjust that one slider, so the image has a natural gray tone.
I think, there should be 2 sliders to adjust an offset in an RGB color space. The auto white balance delivers a very good gray image, but it is too slow, and also I want to set it to a fixed value, so the OpenCV pipline gives the same results for each image.

Kind Regards,
Karl



Team14

unread,
Aug 16, 2017, 3:23:37 AM8/16/17
to OpenPnP
I've found the solution:

v4l2-ctl

while you can view the video stream with guvcview, you can modify the settings live with v4l2-ctl

guvcview -d /dev/video2

v4l2-ctl -d 2 -c exposure_auto=1 -c exposure_absolute=170 -c white_balance_temperature_auto=false -c white_balance_temperature=5000 -c backlight_compensation=0 -c sharpness=0 -c power_line_frequency=0


Source of information: http://www.techytalk.info/webcam-settings-control-ubuntu-fedora-linux-operating-system-cli/
Reply all
Reply to author
Forward
0 new messages