Firefly开源社区

打印 上一主题 下一主题

[技术讨论] AIO-3399ProC开发板上OV13850摄像头的分辨率和采集格式设置问题

32

积分

0

威望

0

贡献

技术小白

积分
32

AIO-3399ProC开发板上OV13850摄像头的分辨率和采集格式设置问题

发表于 2020-11-5 10:38:00      浏览:5916 | 回复:2        打印      只看该作者   [复制链接] 楼主
我用的是AIO-3399ProC开发板配OV13850摄像头。摄像头的规格书上说相机的分辨率是4224X3136. 但是我用SDK里的摄像头采集demo例子,实际上能设的最大分辨率只有2112X1568 。不知道哪里有什么限制。
相机的数据采集格式是支持RGB24的,但是我设置为RGB24采集时,出来的数据却是灰度图,每个像素只有8位。YUV格式采集却是正确的。
下面是打印的支持的数据格式和分辨率:
1:YUYV 4:2:2
         min resolution 32x16 max resolution 2112x1568  step:8
2:Planar YVU 4:2:2
         min resolution 32x16 max resolution 2112x1568  step:8
3:Y/CbCr 4:2:2
         min resolution 32x16 max resolution 2112x1568  step:8
4:Y/CrCb 4:2:2
         min resolution 32x16 max resolution 2112x1568  step:8
5:Planar YUV 4:2:2 (N-C)
         min resolution 32x16 max resolution 2112x1568  step:8
6:Y/CrCb 4:2:0
         min resolution 32x16 max resolution 2112x1568  step:8
7:Y/CbCr 4:2:0
         min resolution 32x16 max resolution 2112x1568  step:8
8:Y/CrCb 4:2:0 (N-C)
         min resolution 32x16 max resolution 2112x1568  step:8
9:Y/CbCr 4:2:0 (N-C)
         min resolution 32x16 max resolution 2112x1568  step:8
10:Planar YUV 4:2:0
         min resolution 32x16 max resolution 2112x1568  step:8
11:Planar YUV 4:4:4 (N-C)
         min resolution 32x16 max resolution 2112x1568  step:8
12:8-bit Bayer RGRG/GBGB
         min resolution 32x16 max resolution 2112x1568  step:8
13:8-bit Bayer GRGR/BGBG
         min resolution 32x16 max resolution 2112x1568  step:8
14:8-bit Bayer GBGB/RGRG
         min resolution 32x16 max resolution 2112x1568  step:8
15:8-bit Bayer BGBG/GRGR
         min resolution 32x16 max resolution 2112x1568  step:8
16:10-bit Bayer RGRG/GBGB
         min resolution 32x16 max resolution 2112x1568  step:8
17:10-bit Bayer GRGR/BGBG
         min resolution 32x16 max resolution 2112x1568  step:8
18:10-bit Bayer GBGB/RGRG
         min resolution 32x16 max resolution 2112x1568  step:8
19:10-bit Bayer BGBG/GRGR
         min resolution 32x16 max resolution 2112x1568  step:8
20:12-bit Bayer RGRG/GBGB
         min resolution 32x16 max resolution 2112x1568  step:8
21:12-bit Bayer GRGR/BGBG
         min resolution 32x16 max resolution 2112x1568  step:8
22:12-bit Bayer GBGB/RGRG
         min resolution 32x16 max resolution 2112x1568  step:8
23:12-bit Bayer BGBG/GRGR
         min resolution 32x16 max resolution 2112x1568  step:8
24:24-bit RGB 8-8-8
         min resolution 32x16 max resolution 2112x1568  step:8
回复

使用道具 举报

8

积分

0

威望

0

贡献

吃瓜的群众

积分
8
发表于 2020-11-10 11:11:13        只看该作者  沙发
默认的是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
                [fmt:SBGGR10_1X10/4224x3136@ n/m field:none]
                -> "rockchip-mipi-dphy-rx":0 [ENABLED]        
——————————————————————————————————
如果不是4224x3136,就通过
media-ctl -d /dev/media1 --set-v4l2 '"ov13850 x-xxxx":0[fmt:SBGGR10_1X10/4224x3136]'
把相应的属性设置一下。

最近我也在捣鼓MIPI-CSI 摄像头,哈哈,可以互相交流交流
回复

使用道具 举报

17

积分

0

威望

0

贡献

技术小白

积分
17
发表于 2021-6-28 23:14:04        只看该作者  板凳
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,获取到的视频帧全部为黑屏图像,想问下您有没有解决思路,烦请执教!谢谢
回复

使用道具 举报

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

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表