查看: 3287|回复: 3
收起左侧

[求助] 树莓派下usb摄像头图像发绿?

2015-1-28 17:40:32 | 显示全部楼层 |阅读模式
在树莓派下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​


回复

使用道具 举报

2015-3-5 19:04:55 | 显示全部楼层
我的树莓派也是这个问题,
用了两个摄像头, 30W的偏绿, 130w略好.
估计是和摄像头有一定的关系.
求大神赐教
回复 支持 反对

使用道具 举报

2015-4-21 11:33:27 | 显示全部楼层
谢谢分享,学习中。。。
回复 支持 反对

使用道具 举报

2015-4-22 13:41:29 | 显示全部楼层
谢谢分享,学习中。。。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热点推荐

关注我们,了解更多

官方微信

服务时间:10:00-16:00

13714503811

公司地址:深圳市龙岗区南湾街道东门头路8号

Copyright © 2012-2020 Powered by 树莓派论坛 2019.4  粤ICP备15075382号-1
快速回复 返回列表 返回顶部