运动命令图像乱码

运动命令图像乱码

看来我的运动命令配置无法拍摄完整的照片。它曾经拍摄一些微小的正常图像和一张乱码图像,现在将其调整为全分辨率后,它会拍摄一张大的乱码图像:

乱码图像

它曾经在日志中给出有关错误调色板类型的消息,但我将其调整为 15 (YUYV) 并且它不会抱怨这一点:

------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0825)"
cap.bus_info: "usb-ehci-platform-1.1"
cap.capabilities=0x04000001
------------------------
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_select_input: - CAMERA
[1] [WRN] [VID] [Sep 11 22:24:03] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_do_set_pix_format: Testing palette YUYV (1280x720)
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_do_set_pix_format: Using palette YUYV (1280x720) bytesperlines 2560 sizeimage 1843200 colorspace 00000008
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls: found control 0x00980900, "Brightness", range 0,255 
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls:   "Brightness", default 128, current 128
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,255 
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls:   "Contrast", default 32, current 32
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,255 
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls:   "Saturation", default 32, current 32
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls: found control 0x00980913, "Gain", range 0,255 
[1] [NTC] [VID] [Sep 11 22:24:03] v4l2_scan_controls:   "Gain", default 64, current 64
[1] [NTC] [VID] [Sep 11 22:24:03] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] [Sep 11 22:24:03] image_ring_resize: Resizing pre_capture buffer to 1 items
[1] [NTC] [EVT] [Sep 11 22:24:32] event_new_video FPS 2
[1] [NTC] [ALL] [Sep 11 22:24:32] motion_detected: Motion detected - starting event 1
[1] [NTC] [EVT] [Sep 11 22:24:33] event_newfile: File of type 1 saved to: /mnt/sd/arduino/www/motion/01-20140911222431-01.jpg

查了一下错误,好像有两种类型标准的、VIDIOC_G_STD 或 VIDIOC_S_STD。有没有办法切换它?

相关内容