在树莓派下usb摄像头图像发绿,在ubuntu下图像正常,用v4l2-ctl --all查看信息发现有问题,图像参数缺省值不正确,请问如何解决!
1)输煤派下图像发绿:
pi@raspberrypi ~ $ v4l2-ctl --all
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : USB 2.0 Camera
Bus info : usb-bcm2708_usb-1.3
Driver version: 3.12.35
Capabilities : 0x84000001
Video Capture
Streaming
Device Capabilities
Device Caps : 0x04000001
Video Capture
Streaming
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'YUYV'
Field : None
Bytes per Line: 1280
Size Image : 614400
Colorspace : SRGB
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
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 30.000 (30/1)
Read buffers : 0
brightness (int) : min=0 max=255 step=1 default=-8193 value=0
contrast (int) : min=0 max=100 step=1 default=57343 value=100
saturation (int) : min=0 max=100 step=1 default=57343 value=100
hue (int) : min=-90 max=90 step=1 default=-8193 value=-90
gamma (int) : min=1 max=30 step=1 default=57343 value=29
power_line_frequency (menu) : min=0 max=2 default=1 value=1
sharpness (int) : min=0 max=31 step=1 default=57343 value=13
backlight_compensation (int) : min=0 max=2 step=1 default=57343 value=1
exposure_auto (menu) : min=0 max=3 default=0 value=3
2)在ubuntu下正常:
aphero@aphero-ThinkPad-T420 ~ $ v4l2-ctl -d /dev/video1 --all
Driver Info (not using libv4l2):
Driver name : uvcvideo
Card type : USB 2.0 Camera
Bus info : usb-0000:00:1a.0-1.1
Driver version: 3.13.11
Capabilities : 0x84000001
Video Capture
Streaming
Device Capabilities
Device Caps : 0x04000001
Video Capture
Streaming
Priority: 2
Video input : 0 (Camera 1: ok)
Format Video Capture:
Width/Height : 640/480
Pixel Format : 'YUYV'
Field : None
Bytes per Line: 1280
Size Image : 614400
Colorspace : SRGB
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
Streaming Parameters Video Capture:
Capabilities : timeperframe
Frames per second: 25.000 (25/1)
Read buffers : 0
brightness (int) : min=0 max=255 step=1 default=128 value=128
contrast (int) : min=0 max=100 step=1 default=67 value=67
saturation (int) : min=0 max=100 step=1 default=62 value=62
hue (int) : min=-90 max=90 step=1 default=0 value=0
gamma (int) : min=1 max=30 step=1 default=29 value=29
power_line_frequency (menu) : min=0 max=2 default=1 value=1
sharpness (int) : min=0 max=31 step=1 default=13 value=13
backlight_compensation (int) : min=0 max=2 step=1 default=1 value=1
exposure_auto (menu) : min=0 max=3 default=3 value=3​
|
|