这个问题非常类似于V4L2 absolute exposure setting has (almost) not effect
我有一个在模块UVC
上运行的兼容相机。Raspberry Pi CM3+
它显示为video0
。
使用工具/驱动程序v4l2-ctl
,qv4l2
或无法控制,但在 Windows 10 上使用时可以guvcview
控制。absolute exposure
Amcap
相机有两种曝光模式manual
和aperature controlled
。然而,当图像中aperature controlled
的曝光水平动态变化时,当切换到manual
模式时,图像变得非常暗,并且无论在可选择范围的上限还是下限都不会改变。
运行时v4l2-ctl
,范围min
被声明5
为max
is 2500
。然而,在 Windows 中,它介于-2
和之间,-11
并且图像的曝光按您所期望的比例变化。
参数范围v4l2
:
exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=1
exposure_absolute 0x009a0902 (int) : min=5 max=2500 step=1 default=156 value=1659
Amcap
Windows 10 上的参数范围:
如果我在v4l2-ctl -d0 -all
这里做,我会得到:
pi@raspberrypi:~ $ v4l2-ctl -d0 --all
Driver Info:
Driver name : uvcvideo
Card type : HD USB CAMERA: HD USB CAMERA
Bus info : usb-0000:01:00.0-1.3
Driver version : 5.4.79
Capabilities : 0x84a00001
Video Capture
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : uvcvideo
Model : HD USB CAMERA: HD USB CAMERA
Serial : 01.00.00
Bus info : usb-0000:01:00.0-1.3
Media version : 5.4.79
Hardware revision: 0x00000224 (548)
Driver version : 5.4.79
Interface Info:
ID : 0x03000002
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : HD USB CAMERA: HD USB CAMERA
Function : V4L2 I/O
Flags : default
Pad 0x01000007 : 0: Sink
Link 0x02000013: from remote pad 0x100000a of entity 'Extension 4': Data, Enabled, Immutable
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'YUYV' (YUYV 4:2:2)
Field : None
Bytes per Line : 1280
Size Image : 614400
Colorspace : sRGB
Transfer Function : Default (maps to sRGB)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
Crop Capability Video Capture:
Bounds : Left 0, Top 0, Width 640, Height 480
Default : Left 0, Top 0, Width 640, Height 480
Pixel Aspect: 1/1
Selection: crop_default, Left 0, Top 0, Width 640, Height 480, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 640, Height 480, Flags:
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0
brightness 0x00980900 (int) : min=-64 max=64 step=1 default=0 value=-6
contrast 0x00980901 (int) : min=0 max=95 step=1 default=1 value=6
saturation 0x00980902 (int) : min=0 max=100 step=1 default=52 value=22
hue 0x00980903 (int) : min=-2000 max=2000 step=1 default=0 value=0
white_balance_temperature_auto 0x0098090c (bool) : default=1 value=0
gamma 0x00980910 (int) : min=100 max=300 step=1 default=115 value=115
power_line_frequency 0x00980918 (menu) : min=0 max=2 default=1 value=1
white_balance_temperature 0x0098091a (int) : min=2800 max=6500 step=1 default=4600 value=4600
sharpness 0x0098091b (int) : min=0 max=7 step=1 default=0 value=0
backlight_compensation 0x0098091c (int) : min=36 max=160 step=1 default=54 value=36
exposure_auto 0x009a0901 (menu) : min=0 max=3 default=3 value=1
exposure_absolute 0x009a0902 (int) : min=5 max=2500 step=1 default=156 value=1659
error 22 getting ext_ctrl Pan (Absolute)
error 22 getting ext_ctrl Tilt (Absolute)
focus_absolute 0x009a090a (int) : min=0 max=1023 step=1 default=0 value=355
focus_auto 0x009a090c (bool) : default=1 value=0
error 22 getting ext_ctrl Zoom, Absolute
我尝试在没有任何变化MJPEG
的情况下更改格式。YUYV
我假设它是驱动程序问题或我忽略的某些设置?