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

    MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用

    Scheduled Pinned Locked Moved Raspberry Pi App Software
    45 Posts 2 Posters 25.8k 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.
    • M Offline
      maifengW2023 @veye_xumm
      last edited by

      @veye_xumm
      2. 从这个链接中查找到对应当前的版本的deb安装包并安装。
      tag请根据本机piOS版本与raspberrypi OS tags确定。

      这个更新内核,我是不是应该下这个;
      raspberrypi-kernel-headers_1.20230317-1_armhf.deb

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

        @maifengw2023 在整你说的这个版本的,等等。
        ’Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux‘

        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
        • veye_xummV Offline
          veye_xumm @maifengW2023
          last edited by

          @maifengw2023
          对于从32位系统升级的树莓派4,现在默认会给切换到64位,但是编译环境不全。
          可以在/boot/config.txt中添加arm_64bit=0然后重启,切换回32bit模式。
          我已编译好了6.1.21-v7l+版本,请留一个邮箱。收到后:

          1. 在/boot/config.txt中添加arm_64bit=0然后重启,切换回32bit模式。
          2. 按照正常步骤安装veye_mvcam驱动即可。

          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.)

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            maifengW2023 @veye_xumm
            last edited by

            @veye_xumm
            363071512@qq.com

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

              @maifengw2023 已发

              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.)

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                maifengW2023 @veye_xumm
                last edited by

                @veye_xumm
                收到,我试试

                1 Reply Last reply Reply Quote 0
                • M Offline
                  maifengW2023
                  last edited by

                  在树莓派4B上,v4l2模式可以调用流模式的图像;但是在3088X2064模式下,VLC跟QT调取的图像都是两半;
                  413c9fcd-b756-45a5-b616-8c1aa6c4e961-image.png
                  请问IMX178M都支持多少的分辨率?
                  流模式下,我可以用线程不停的刷图像,但是在外触发模式下,我在什么时机接收图像?像海康的提供的有摄像头的回调函数
                  MyCamera->RegisterImageCallBack(ImageCallBack, this),
                  咱们的有没有类似的功能?
                  在178的wiki文档中还是没有找到设置曝光时间跟增益设置的指令,请帮忙提供链接;程序开发采用的是opencv+v4l2.

                  M veye_xummV 2 Replies Last reply Reply Quote 0
                  • M Offline
                    maifengW2023 @maifengW2023
                    last edited by

                    @maifengw2023
                    例程在外触发模式下也不能正常显示图像,请帮忙诊断一下!

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

                      @maifengw2023

                      @maifengw2023 said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                      请问IMX178M都支持多少的分辨率?

                      相机支持灵活的roi配置,通过脚本或者v4l2-ctl可以配置的。

                      @maifengw2023 said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                      流模式下,我可以用线程不停的刷图像,但是在外触发模式下,我在什么时机接收图像?像海康的提供的有摄像头的回调函数
                      MyCamera->RegisterImageCallBack(ImageCallBack, this),
                      咱们的有没有类似的功能?

                      使用v4l2接口持续获取即可,如果有触发,则底层就会图返回上来。

                      @maifengw2023 said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                      在178的wiki文档中还是没有找到设置曝光时间跟增益设置的指令,请帮忙提供链接;程序开发采用的是opencv+v4l2.

                      https://wiki.veye.cc/index.php/Mv_mipi_i2c.sh_user_guide#expmode
                      从6.6往后看即可。

                      @maifengw2023 said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                      例程在外触发模式下也不能正常显示图像,请帮忙诊断一下!

                      感觉你现在这个应该是摄像机分辨率和你显示的地方以为的分辨率不一致。最好通过脚本读取一下roi,跟你的程序对比一下。

                      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.)

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        maifengW2023 @veye_xumm
                        last edited by

                        @veye_xumm
                        在178的wiki文档中还是没有找到设置曝光时间跟增益设置的指令,请帮忙提供链接;程序开发采用的是opencv+v4l2.

                        https://wiki.veye.cc/index.php/Mv_mipi_i2c.sh_user_guide#expmode
                        从6.6往后看即可。

                        我用的是v4l2模式,这个支持这种模式吗?安装说明的链接发一下吧

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

                          @maifengw2023
                          就是这个脚本。从github上下载到你树莓派上就行了。https://github.com/veyeimaging/mvcam_raspberrypi/tree/main/mv_tools_rpi

                          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.)

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            maifengW2023 @veye_xumm
                            last edited by

                            @veye_xumm
                            d5bfaddf-ac6d-4bd3-8fc8-dbad480be1fc-image.png
                            现在采用硬件外触发模式显示图像,我们是采用5Hz、20Hz的频率发射一束光,触发信号后50us出光,外触发的参数应该怎样设置?请工程师帮忙解答一下,咱们这个触发的参数应该怎样设置才能捕捉到光的图像? 非外触发模式下,我们设置frame_rate=50;偶尔能捕捉到一束光,想用外触发精准时间来捕捉,这个就可以每一个触发周期都能捕捉到。

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

                              @maifengw2023 有一个比较关键的参数,你的这束光的持续时间是多长?
                              摄像机曝光时间设置的什么模式? 如果是手动曝光,那是多长时间?
                              IMX178是rolling shutter的,也就是说每行的起始曝光时间并不一致,所以此参数比较重要。

                              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.)

                              M 2 Replies Last reply Reply Quote 0
                              • M Offline
                                maifengW2023 @veye_xumm
                                last edited by maifengW2023

                                @veye_xumm
                                光的时间很短10ns,手动曝光的,手动曝光,曝光时长,16000us;
                                cb4d01e2-419a-4f33-be3f-b93a6dfdd977-image.png
                                这个是非触发模式下抓到图片,红圈下方哪个白斑就是光斑

                                1 Reply Last reply Reply Quote 0
                                • M Offline
                                  maifengW2023 @veye_xumm
                                  last edited by

                                  @veye_xumm
                                  触发模式下,10Hz ,曝光时间设置到70000us,下面是照片
                                  6c5703de-ccb1-4344-9f77-4273ffffb8f8-image.png

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

                                    @maifengw2023 不好意思,回复有些晚了。
                                    像您这种使用场景,建议使用global shutter的传感器。比如IMX264这种。
                                    因为rolling shutter的传感器曝光是逐行的。
                                    1e0e7045-6206-434a-9aad-b08298f46b7b-image.png
                                    16ms或者70ms的曝光时间并不算长,也就是对应上图黄色的长度变短的效果。

                                    导致的现象是,有的行能捕捉到你这个激光,有的行可能就捕捉不到。

                                    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.)

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      maifengW2023 @veye_xumm
                                      last edited by

                                      @veye_xumm said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                                      IMX264

                                      曝光应该是没有问题的,非触发模式下是能捕捉到光斑的,只是现在触发时间的时序需要调整一下,我们用这个IMX178主要是用它的高量子效应,在1100波段的相应能达到10%左右;其他传感器就没有怎么高了

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

                                        @maifengw2023
                                        所谓高量子效应,你可能是简单化的理解了传感器的光谱响应曲线。这个曲线是sensor自己在不同波段的波长光线下的响应。你可以注意到,此曲线的最高点总是1。 不同sensor的灵敏度是不同的,因此不同的imx178的10%不见得就比imx264的7%高。
                                        我在sensor手册看到一个数据供你参考:

                                        • IMX178
                                          76328e14-8700-4d70-92c8-3f8916d97b32-image.png
                                        • IMX264

                                        55ea37ff-7619-42a9-8a14-f6ff1cd43d07-image.png

                                        • 测试条件
                                          5cbb5561-5540-4498-9255-fa13f6d8f9fa-image.png

                                        如果一定要使用IMX178,有一个手段是增加sensor的曝光时间,拉长触发信号和激光之间的间隔。保证sensor所有行都开始曝光了,还没有曝光结束的时候,激光打出来。
                                        你的光斑在图像中的相对位置是固定的吗?

                                        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.)

                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          maifengW2023 @veye_xumm
                                          last edited by

                                          @veye_xumm
                                          你说这个也可以试试,imx178这个是非触发模式下,能看到的,而且效果也不错,现在是外触发模式,咱们哪个触发延时设置后没有效果,不清楚问题出在哪里,我今天再做一下试验,外触发信号的延迟放到我系统处理一下看看什么效果,IMX264我也在关注一下,264是全局曝光的吧

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

                                            @maifengw2023 是的IMX264是全局曝光。

                                            @maifengw2023 said in MV-MIPI-IMX178M+树莓派4B+OSPI5.15,官网例程不能使用:

                                            我们是采用5Hz、20Hz的频率发射一束光,触发信号后50us出光,

                                            我感觉你这个50us的时间太短了。sensor绝大部分行还没有开始曝光呢,你的激光已经完成发射了。
                                            这个时间可以拉长吗?

                                            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.)

                                            M 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