AIO-3399ProC开发板上OV13850摄像头的分辨率和采集格式设置问题
我用的是AIO-3399ProC开发板配OV13850摄像头。摄像头的规格书上说相机的分辨率是4224X3136. 但是我用SDK里的摄像头采集demo例子,实际上能设的最大分辨率只有2112X1568 。不知道哪里有什么限制。相机的数据采集格式是支持RGB24的,但是我设置为RGB24采集时,出来的数据却是灰度图,每个像素只有8位。YUV格式采集却是正确的。
下面是打印的支持的数据格式和分辨率:
1:YUYV 4:2:2
min resolution 32x16 max resolution 2112x1568step:8
2:Planar YVU 4:2:2
min resolution 32x16 max resolution 2112x1568step:8
3:Y/CbCr 4:2:2
min resolution 32x16 max resolution 2112x1568step:8
4:Y/CrCb 4:2:2
min resolution 32x16 max resolution 2112x1568step:8
5:Planar YUV 4:2:2 (N-C)
min resolution 32x16 max resolution 2112x1568step:8
6:Y/CrCb 4:2:0
min resolution 32x16 max resolution 2112x1568step:8
7:Y/CbCr 4:2:0
min resolution 32x16 max resolution 2112x1568step:8
8:Y/CrCb 4:2:0 (N-C)
min resolution 32x16 max resolution 2112x1568step:8
9:Y/CbCr 4:2:0 (N-C)
min resolution 32x16 max resolution 2112x1568step:8
10:Planar YUV 4:2:0
min resolution 32x16 max resolution 2112x1568step:8
11:Planar YUV 4:4:4 (N-C)
min resolution 32x16 max resolution 2112x1568step:8
12:8-bit Bayer RGRG/GBGB
min resolution 32x16 max resolution 2112x1568step:8
13:8-bit Bayer GRGR/BGBG
min resolution 32x16 max resolution 2112x1568step:8
14:8-bit Bayer GBGB/RGRG
min resolution 32x16 max resolution 2112x1568step:8
15:8-bit Bayer BGBG/GRGR
min resolution 32x16 max resolution 2112x1568step:8
16:10-bit Bayer RGRG/GBGB
min resolution 32x16 max resolution 2112x1568step:8
17:10-bit Bayer GRGR/BGBG
min resolution 32x16 max resolution 2112x1568step:8
18:10-bit Bayer GBGB/RGRG
min resolution 32x16 max resolution 2112x1568step:8
19:10-bit Bayer BGBG/GRGR
min resolution 32x16 max resolution 2112x1568step:8
20:12-bit Bayer RGRG/GBGB
min resolution 32x16 max resolution 2112x1568step:8
21:12-bit Bayer GRGR/BGBG
min resolution 32x16 max resolution 2112x1568step:8
22:12-bit Bayer GBGB/RGRG
min resolution 32x16 max resolution 2112x1568step:8
23:12-bit Bayer BGBG/GRGR
min resolution 32x16 max resolution 2112x1568step:8
24:24-bit RGB 8-8-8
min resolution 32x16 max resolution 2112x1568step:8 默认的是2112x1568,如果想用1300万像素,需要更改
1. 先用 media-ctl -p /dev/media0 查看拓扑图
————————————————————————————————
- entity 7: ov13850 x-xxxx (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2x
pad0: Source
-> "rockchip-mipi-dphy-rx":0
——————————————————————————————————
如果不是4224x3136,就通过
media-ctl -d /dev/media1 --set-v4l2 '"ov13850 x-xxxx":0'
把相应的属性设置一下。
最近我也在捣鼓MIPI-CSI 摄像头,哈哈,可以互相交流交流 wx_神经蛙_ucc5n 发表于 2020-11-10 11:11
默认的是2112x1568,如果想用1300万像素,需要更改
1. 先用 media-ctl -p /dev/media0 查看拓扑图
——— ...
您好,我用qt+opencv+gstreamer中"rkisp io-mode=1 /dev/video1 video/x-raw,format=NV12,width=4224,height=3136,framerate=30/1 ! videoconvert ! appsink" 的时候,报错 v4l2_device.cpp: device ( dev/video1 ) set v4l2 format failed, supported format: width:1920 , height:1568,获取到的视频帧全部为黑屏图像,想问下您有没有解决思路,烦请执教!谢谢
页:
[1]