RAW_MIPI_SC535M设置ROI
-
您好,
我使用的相机是RAW_MIPI_SC535M,开发板是RK3588S-PC,系统是firefly5.10,我在使用v4l2的VIDIOC_CROPCAP指令获取该相机的裁切能力时,相机反馈不支持裁切,使用VIDIOC_S_CROP直接设置ROI时相机也无法成功设置。请问我应该使用什么方式持久化设置相机的ROI呢?
ps:我使用的开发语言是c++,框架是Qt5.12.5 -
@毛宪历
三种方法:
1.命令行
参考part7.4.1
https://wiki.veye.cc/index.php/MV_Camera_on_Firfly_Boards/zh#.E4.BD.BF.E7.94.A8media-ctl.E9.85.8D.E7.BD.AE.E5.9B.BE.E5.83.8F.E6.A0.BC.E5.BC.8F
2. C语言代码
参考7.4.4中yavta的源码。
3. 如果你应用中roi只想配置一次,相机保存,后面不需要配置。也可以使用:
mv_mipi_i2c.sh配置一下roi,然后读取确认。之后,执行paramsave命令,将参数保存到摄像机里面。
这样,每次上电的时候,驱动能自动读取相机当前roi值。你的程序就不需要再次配置了。 -
@veye_xumm 感谢
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login