摄像头拍照不能到最大分辨率

[复制链接]
thinker 发表于 2022-6-9 11:04:50 | 显示全部楼层 |阅读模式
你好 2个摄像头ov5647  imx219接到 tinker board 2s板子(debian 10 系统)上 分辨率 只能到最大分辨率的 一半 比如 ov5647 实际最大2592*1944,但系统显示分辨率 最大 1296*972  且只有这一种,预览或拍照都只这一种 什么原因呢 ; 谢谢
回复

使用道具 举报

sychimu 发表于 2022-6-13 08:01:38 | 显示全部楼层
具体操作是如何实现的?比如使用什么软件,什么命令?能否截图看下?
可以使用以下命令:
查看摄像头支持的格式与分辨率:
$ v4l2-ctl --list-formats-ext -d /dev/video10
摄像头预览(根据需要调整宽高分辨率):
$ gst-launch-1.0 v4l2src device=/dev/video10 ! video/x-raw, format=NV12, width=640, height=480, framerate=30/1 ! xvimagesink
回复

使用道具 举报

 楼主| thinker 发表于 2022-6-27 16:27:59 | 显示全部楼层
谢谢 上面的命令是可以预览的
执行 $ v4l2-ctl --list-formats-ext -d /dev/video0 或1后 显示如下:实际最大3840*2160 但下面只显示1920*1080 麻烦帮看下
linaro@linaro-alip:~$ v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
        Type: Video Capture Multiplanar

        [0]: 'YUYV' (YUYV 4:2:2)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [1]: '422P' (Planar YVU 4:2:2)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [2]: 'NV16' (Y/CbCr 4:2:2)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [3]: 'NV61' (Y/CrCb 4:2:2)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [4]: 'YM16' (Planar YUV 4:2:2 (N-C))
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [5]: 'NV21' (Y/CrCb 4:2:0)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [6]: 'NV12' (Y/CbCr 4:2:0)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [7]: 'NM21' (Y/CrCb 4:2:0 (N-C))
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [8]: 'NM12' (Y/CbCr 4:2:0 (N-C))
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [9]: 'YU12' (Planar YUV 4:2:0)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [10]: 'YM24' (Planar YUV 4:4:4 (N-C))
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [11]: 'RGGB' (8-bit Bayer RGRG/GBGB)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8
        [12]: 'GRBG' (8-bit Bayer GRGR/BGBG)
                Size: Stepwise 32x16 - 1920x1080 with step 8/8


--------
系统源代码里面好像最大分辨率已经写了,这不知道为啥出不来;或者要开启mjpeg?
在kernel\imx219.c里面:
/* MCLK:24MHz 3280x2464 21.2fps MIPI LANE2 */
static const struct imx219_reg imx219_init_tab_3280_2464_21fps[] = {
{0x30EB, 0x05}, /* Access Code for address over 0x3000 */
已经有最大分辨率的设置
麻烦帮看看 谢谢
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

 
QQ在线咨询
点击这里给我发消息
点击这里给我发消息
电话咨询
0755-23012315
快速回复 返回顶部 返回列表