在树莓派平台 cs132 丢帧
-
平台 树莓派4B 和树莓派CM4
硬件触发
频率 10HZ
通过示波器初略查看了下strobe out 曝光正常,和触发信号同步
但是实际测试- 存在丢帧问题
- 丢帧后,会在同一时刻传输回来好几帧数据,导致无法正常打时间戳
请问一下,遇到这种问题,应该怎么继续排查,怎么解决
-
@lym123
是否采用的V4L2驱动模式? 这种模式下,建议讲V4L2的buffer数量增加一点,确保camera输出数据的时候有buffer可用。
此外,后续的数据处理速度要优化或者增加一个缓存管理机制。 -
@veye_xumm 你好,我现在使用的是opencv的VideoCapture直接打开v4l2相机的操作,来读图像
-
@lym123 可以先用V4L2底层接口测试。你的132使用的型号是什么? CS-MIPI-SC132还是RAW-MIPI-SC132M?
-
-
@lym123
建议你先用v4l2-ctl取图,不做操作。这样可以验证摄像机的触发和mipi的接收状况。
根据下面这个命令修改一下分辨率,帧数v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=UYVY --stream-mmap --stream-count=10 --stream-to=uyvy-1920x1080_stream.yuv -
@veye_xumm

出现了这个情况 -
-
@veye_xumm 使用V4L2底层接口,将buffer缓冲区改大,就不会丢帧了。
感谢您的技术支持~。 -
@lym123 said in 在树莓派平台 cs132 丢帧:
出现了这个情况
这个是因为你保存数据到sd卡或者emmc存储空间中。这个是由于文件系统缓存的问题。 可以改为直接到/dev/null,能准确捕捉和判断帧率。
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