VEYE IMAGING Forum
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc
    • Register
    • Login

    在树莓派平台 cs132 丢帧

    Scheduled Pinned Locked Moved CS MIPI camera
    10 Posts 2 Posters 2.4k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L Offline
      Lym123
      last edited by

      平台 树莓派4B 和树莓派CM4
      硬件触发
      频率 10HZ
      通过示波器初略查看了下strobe out 曝光正常,和触发信号同步
      但是实际测试

      • 存在丢帧问题
      • 丢帧后,会在同一时刻传输回来好几帧数据,导致无法正常打时间戳
        请问一下,遇到这种问题,应该怎么继续排查,怎么解决
      veye_xummV 1 Reply Last reply Reply Quote 0
      • veye_xummV Offline
        veye_xumm @Lym123
        last edited by

        @lym123
        是否采用的V4L2驱动模式? 这种模式下,建议讲V4L2的buffer数量增加一点,确保camera输出数据的时候有buffer可用。
        此外,后续的数据处理速度要优化或者增加一个缓存管理机制。

        Questions will be answered as soon as possible, please be patient.
        如果你使用中文,请直接用中文提问。
        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

        L 1 Reply Last reply Reply Quote 0
        • L Offline
          Lym123 @veye_xumm
          last edited by

          @veye_xumm 你好,我现在使用的是opencv的VideoCapture直接打开v4l2相机的操作,来读图像

          veye_xummV 1 Reply Last reply Reply Quote 0
          • veye_xummV Offline
            veye_xumm @Lym123
            last edited by

            @lym123 可以先用V4L2底层接口测试。你的132使用的型号是什么? CS-MIPI-SC132还是RAW-MIPI-SC132M?

            Questions will be answered as soon as possible, please be patient.
            如果你使用中文,请直接用中文提问。
            May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              Lym123 @veye_xumm
              last edited by

              @veye_xumm said in 在树莓派平台 cs132 丢帧:

              CS-MIPI-SC132

              使用的是CS-MIPI-SC132

              veye_xummV 1 Reply Last reply Reply Quote 0
              • veye_xummV Offline
                veye_xumm @Lym123
                last edited by

                @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
                

                Questions will be answered as soon as possible, please be patient.
                如果你使用中文,请直接用中文提问。
                May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                L 3 Replies Last reply Reply Quote 0
                • L Offline
                  Lym123 @veye_xumm
                  last edited by

                  @veye_xumm 5a26aac7-643a-428c-97ab-211bd9332b93-图片.png
                  出现了这个情况

                  veye_xummV 1 Reply Last reply Reply Quote 0
                  • L Offline
                    Lym123 @veye_xumm
                    last edited by

                    @veye_xumm 6b9a9798-cdba-4600-8f96-b15a27701e9a-图片.png

                    1 Reply Last reply Reply Quote 0
                    • L Offline
                      Lym123 @veye_xumm
                      last edited by

                      @veye_xumm 使用V4L2底层接口,将buffer缓冲区改大,就不会丢帧了。
                      感谢您的技术支持~。

                      1 Reply Last reply Reply Quote 0
                      • veye_xummV Offline
                        veye_xumm @Lym123
                        last edited by

                        @lym123

                        @lym123 said in 在树莓派平台 cs132 丢帧:

                        出现了这个情况

                        这个是因为你保存数据到sd卡或者emmc存储空间中。这个是由于文件系统缓存的问题。 可以改为直接到/dev/null,能准确捕捉和判断帧率。

                        Questions will be answered as soon as possible, please be patient.
                        如果你使用中文,请直接用中文提问。
                        May the force be with YOU. (This is the translation of the mysterious Chinese symbol above.)

                        1 Reply Last reply Reply Quote 0

                        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
                        • First post
                          Last post