在V853开发板上如何获取camera的一帧图像
-
在V853开发板上使用v4l2-ctl工具 貌似不可以直接使用
root@TinaLinux:/hzhy# v4l2-ctl --info [ 715.242229] [VIN_ERR]v4l2 sub device scaler get_selection error! Driver Info[ 715.257521] [VIN_ERR]v4l2 sub device scaler get_selection error! : Driver name : sunxi-vin Card type : sunxi-vin Bus info : Driver version : 1.0.0 Capabilities : 0x85201000 Video Capture Multiplanar Read/Write Streaming Extended Pix Format Device Capabilities Device Caps : 0x00200000 Extended Pix Format Media Driver Info: Driver name : sunxi-vin-media Model : Allwinner Vin Serial : Bus info : Media version : 0.1.0 Hardware revision: 0x00000000 (0) Driver version : 0.0.0 Interface Info: ID : 0x03000009 Type : V4L Video Entity Info: ID : 0x00000008 (8) Name : vin_video0 Function : V4L2 I/O Pad 0x0100000b : Sink Link 0x020000ad: from remote pad 0x1000007 of entity 'vin_cap.0': Data, Enabled root@TinaLinux:/hzhy# root@TinaLinux:/hzhy# v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height= 1080,pixelformat=NV12 --stream-mmap=3 --stream-skip=30 --stream-to=tst.out --str eam-count=1 --stream-pol [ 799.397359] [VIN_ERR]v4l2 sub device scaler get_selection error! VIDIOC_G_FMT: failed: Invalid ar[ 799.411966] [VIN_ERR]v4l2 sub device scaler get_selection error! gument unsupported stream type
请问 如何可以获取一张camera图像 谢谢。已经有video节点,外接双目gc2053_mipi
root@TinaLinux:/hzhy# ls /dev by-name tty tty48 v4l-subdev26 cedar_dev tty0 tty49 v4l-subdev27 console tty1 tty5 v4l-subdev28 cpu_dma_latency tty10 tty50 v4l-subdev29 disp tty11 tty51 v4l-subdev3 fb0 tty12 tty52 v4l-subdev30 full tty13 tty53 v4l-subdev31 g2d tty14 tty54 v4l-subdev32 gpiochip0 tty15 tty55 v4l-subdev33 i2c-0 tty16 tty56 v4l-subdev34 i2c-1 tty17 tty57 v4l-subdev35 i2c-2 tty18 tty58 v4l-subdev36 i2c-3 tty19 tty59 v4l-subdev37 i2c-4 tty2 tty6 v4l-subdev38 input tty20 tty60 v4l-subdev39 ion tty21 tty61 v4l-subdev4 kmsg tty22 tty62 v4l-subdev40 media0 tty23 tty63 v4l-subdev41 memory_bandwidth tty24 tty7 v4l-subdev42 mmcblk0 tty25 tty8 v4l-subdev43 mmcblk0boot0 tty26 tty9 v4l-subdev5 mmcblk0boot1 tty27 ttyS0 v4l-subdev6 mmcblk0p1 tty28 ttyS3 v4l-subdev7 mmcblk0p2 tty29 urandom v4l-subdev8 mmcblk0p3 tty3 usb-ffs v4l-subdev9 mmcblk0p4 tty30 v4l-subdev0 vcs mmcblk0p5 tty31 v4l-subdev1 vcs1 mmcblk0p6 tty32 v4l-subdev10 vcsa mmcblk0p7 tty33 v4l-subdev11 vcsa1 mmcblk0rpmb tty34 v4l-subdev12 video0 network_latency tty35 v4l-subdev13 video1 network_throughput tty36 v4l-subdev14 video12 null tty37 v4l-subdev15 video13 ptmx tty38 v4l-subdev16 video4 pts tty39 v4l-subdev17 video5 random tty4 v4l-subdev18 video8 rfkill tty40 v4l-subdev19 video9 rtc0 tty41 v4l-subdev2 vipcore shm tty42 v4l-subdev20 watchdog sid_efuse tty43 v4l-subdev21 watchdog0 snd tty44 v4l-subdev22 watchdog1 sunxi-reg tty45 v4l-subdev23 wiegand driver sunxi-wlan tty46 v4l-subdev24 zero sunxi_soc_info tty47 v4l-subdev25
-
sdk里面有一个 camerademo,可以抓图。
-
@whycan 您好,请问是用开发板的v853的SDK,不带mpp库的那个吧?
-
@hzhy1234
是的 -
您好,请教一下video节点是怎么弄出来的,我用的1.2的sdk,始终配不出来video0 节点
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号