0 votes
by (160 points)
edited by

Hi,

I tried to use v4l2ctrl and v4l2ucp to set the brightness and contrast of the camera IMX307 (USB) but there is no change in camera preview or capture.

My command:

1. Get control list

v4l2-ctl --device=/dev/video1 --list-ctrls

brightness 0x00980900 (int)    : min=0 max=100 step=1 default=50 value=50

contrast 0x00980901 (int)    : min=0 max=100 step=1 default=50 value=50

saturation 0x00980902 (int)    : min=0 max=100 step=1 default=50 value=50

hue 0x00980903 (int)    : min=0 max=100 step=1 default=50 value=50

error 5 getting ctrl White Balance Temperature, Auto

2. Change the brightness value:

v4l2-ctl --device=/dev/video1 --set-ctrl=brightness=80

3. Confirm value is set:

v4l2-ctl --device=/dev/video1 --list-ctrls

brightness 0x00980900 (int)    : min=0 max=100 step=1 default=50 value=80

Noted: I got this error when list the control:

v4l2-ctl --device=/dev/video1 --list-ctrls

brightness 0x00980900 (int)    : min=0 max=100 step=1 default=50 value=80

contrast 0x00980901 (int)    : min=0 max=100 step=1 default=50 value=50

saturation 0x00980902 (int)    : min=0 max=100 step=1 default=50 value=50

hue 0x00980903 (int)    : min=0 max=100 step=1 default=50 value=50

error 5 getting ctrl White Balance Temperature, Auto 

How to set the brightness and other parameters of the camera properly?  

1 Answer

0 votes
by (2.3k points)

Hi,

I think your cmd is correct. 

This error:

error 5 getting ctrl White Balance Temperature, Auto 

Because the this parameter is not avialiable now.

by (160 points)
Hi, the problem is after I set the brightness using above cmd, there is no effect on the camera preview. Can you try to test on your side?
欢迎来到 Veye Q&;A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...