测试USB摄像头错误

用户您好,请详细描述您所遇到的问题:

  1. 已完成桌面版sd卡制作和系统最小固件升级。可以运行面向图片的AI推理案例。系统软件版本: x3_ubuntu_v1.1.1。
  2. USB摄像头插在6号usb3.0接口。进入dev/中可以看到video8。运行sudo v4l2-ctl -d /dev/video8 --all后,报如下错误:

Driver Info:
        Driver name      : x3-isp
        Card type        : juno R2
        Bus info         : platform:isp-v4l2-0
        Driver version   : 4.14.87
        Capabilities     : 0x85201000
                Video Capture Multiplanar
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05201000
                Video Capture Multiplanar
                Read/Write
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (camera: ok)
Format Video Capture Multiplanar:
        Width/Height      : 1920/1080
        Pixel Format      : 'RGB4' (32-bit A/XRGB 8-8-8-8)
        Field             : None
        Number of planes  : 1
        Flags             :
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr/HSV Encoding: Default
        Quantization      : Default
        Plane 0           :
           Bytes per Line : 1920
           Size Image     : 2073600

User Controls

                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                            hue 0x00980903 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
        white_balance_automatic 0x0098090c (bool)   : default=1 value=1
                    red_balance 0x0098090e (int)    : min=0 max=255 step=1 default=50 value=50 flags=slider
                   blue_balance 0x0098090f (int)    : min=0 max=255 step=1 default=50 value=50 flags=slider
                          gamma 0x00980910 (int)    : min=0 max=500 step=1 default=50 value=50 flags=slider
                 gain_automatic 0x00980912 (bool)   : default=1 value=1
                           gain 0x00980913 (int)    : min=100 max=3200 step=1 default=100 value=100
                horizontal_flip 0x00980914 (bool)   : default=0 value=0
                  vertical_flip 0x00980915 (bool)   : default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=3 default=1 value=1
                                0: Disabled
                                1: 50 Hz
                                2: 60 Hz
                                3: Auto
                  hue_automatic 0x00980919 (bool)   : default=0 value=0
      white_balance_temperature 0x0098091a (int)    : min=2000 max=8000 step=1000 default=5000 value=5000
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
         backlight_compensation 0x0098091c (int)    : min=0 max=65535 step=1 default=50 value=50
                  color_effects 0x0098091f (menu)   : min=0 max=4 default=0 value=0
                                0: None
                                1: Black & White
                                2: Sepia
                                3: Negative

Camera Controls

                  auto_exposure 0x009a0901 (menu)   : min=0 max=1 default=0 value=0
                                0: Auto Mode
                                1: Manual Mode
         exposure_time_absolute 0x009a0902 (int)    : min=1 max=1000 step=1 default=33 value=33
     exposure_dynamic_framerate 0x009a0903 (bool)   : default=0 value=0
                   pan_absolute 0x009a0908 (int)    : min=0 max=65535 step=1 default=50 value=50
                  tilt_absolute 0x009a0909 (int)    : min=0 max=65535 step=1 default=50 value=50
                 focus_absolute 0x009a090a (int)    : min=0 max=255 step=1 default=0 value=0
     focus_automatic_continuous 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=0 max=65535 step=1 default=50 value=50
                zoom_continuous 0x009a090f (int)    : min=0 max=255 step=1 default=0 value=0
                  iris_absolute 0x009a0911 (int)    : min=0 max=65535 step=1 default=50 value=50
                      pan_speed 0x009a0920 (int)    : min=0 max=255 step=1 default=50 value=50
                     tilt_speed 0x009a0921 (int)    : min=0 max=255 step=1 default=50 value=50

ARM ISP Controls

               isp_test_pattern 0x00f0f000 (int)    : min=0 max=1 step=1 default=0 value=0 flags=volatile, execute-on-write
          isp_test_pattern_type 0x00f0f001 (int)    : min=0 max=3 step=1 default=0 value=0 flags=volatile, execute-on-write
                 isp_af_refocus 0x00f0f002 (button) : flags=write-only, volatile, execute-on-write
              isp_sensor_preset 0x00f0f003 (int)    : min=0 max=64 step=1 default=0 value=0 flags=volatile, execute-on-write
                     isp_af_roi 0x00f0f004 (int)    : min=0 max=2139062143 step=1 default=538992736 value=538992736 flags=volatile, execute-on-write
error 1 getting ext_ctrl ISP FR ON/OFF
            isp_iridix_buf_ctrl 0x00f0f006 (int)    : min=0 max=2147483647 step=1 default=0 value=0 flags=volatile, execute-on-write
          isp_raw_bypass_on_off 0x00f0f007 (int)    : min=0 max=1 step=1 default=0 value=0 flags=volatile, execute-on-write
            isp_temper_buf_ctrl 0x00f0f008 (int)    : min=0 max=3 step=1 default=0 value=0 flags=volatile, execute-on-write

MIPI摄像头同样报错

[  121.701442] iar_output_cfg: panel width/height exceed limit, exit!![ERROR]["LOG"][src/iar_interface.c:497] libdisp: hb_disp_set_output_cfg: error IAR_OUTPUT_CFG -1!![ERROR]["vot"][vot/hb_vot.c:267] [121.651469]HB_VOT_SetVideoLayerAttr[267]: hbvo: HB_VOT_SetVideoLayerAttr: hb_disp_set_output_cfg failed with 0xffffffff![x3_vot_init]:[427]:HB_VOT_SetVideoLayerAttr failed.[ERROR]["sys"][sys/hb_sys.c:303] [121.651570]HB_SYS_Bind[303]: SYS Not Ready. src: 0x1e613538,(nil), dst (nil),(nil)[Module_bind]:[833]:HB_SYS_Bind failed, src:3 pipe:0 chn:255 dst:2 pipe:0 chn:255[ERROR]["vot"][vot/vot_group.c:157] [121.651639]iar_chan_init[157]: hbvo: iar_chan_init: dev is not init[ERROR]["LOG"][src/iar_interface.c:554] libdisp: iar not init, exit!![ERROR]["vot"][vot/hb_vot.c:1290] [121.651679]HB_VOT_SetChnAttr[1290]: hbvo: HB_VOT_SetChnAttr: hb_disp_get_channel_cfg failed with 0xffffffff![x3_vot_init]:[452]:HB_VOT_SetChnAttr failed: -1Total time cost for 100 frames: 3.5792365074157715, fps: 27.938919317796227

dev

我通过设置disp_w=1920,disp_h=1080暂时解决MIPI相机的问题。如果使用 get_display_res() 得到的是我显示器的分辨率2K,无法正常显示。

但是使用USBdemo时候,仍然有问题

目前应该是只支持1080p的,usb demo的错误有吗