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

    SC132 hardware trigger 模式下曝光dme设置不生效

    Scheduled Pinned Locked Moved VEYE MIPI camera
    5 Posts 2 Posters 931 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.
    • D Offline
      dao77
      last edited by

      SC132,在free running模式下,设置直接手动曝光
      ./cs_mipi_i2c.sh -w -f streammode -p1 0
      ./cs_mipi_i2c.sh -w -f expmode -p1 2
      ./cs_mipi_i2c.sh -w -f dmetime -p1 3000
      ./cs_mipi_i2c.sh -w -f dmeagain -p1 15 -p2 0
      ./cs_mipi_i2c.sh -w -f dmedgain -p1 0 -p2 0
      用 ./veye_raspivid -w 1280 -h 1080 -b 4000000 -t 0 -o - | nc -l -p 5000推流出来看,图像正常,曝光正确

      关闭 veye_raspivid,设置为 hardware trigger,实际trigger方波为1ms,别的参数不动,仅执行
      ./cs_mipi_i2c.sh -w -f streammode -p1 2
      用 ./veye_raspistillyuv -w 1280 -h 1080 -o tt.yuv 抓yuv,如果较短时间内抓,还能看到很粗糙的明显增益有问题的图像,如果隔一段时间再触发,或第二次抓图等,抓到的是黑场

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

        @dao77
        你好,这个地方是我们资料没有写很清楚的缘故了。抱歉。
        streammode属于基础参数,所以要先配置streammode,然后配置曝光相关参数。
        比如你用dme模式,需要:

        ./cs_mipi_i2c.sh -w -f streammode -p1 2
        

        执行完成之后,再重新执行一遍配置曝光的参数。

        ./cs_mipi_i2c.sh -w -f expmode -p1 2
        ./cs_mipi_i2c.sh -w -f dmetime -p1 3000
        ./cs_mipi_i2c.sh -w -f dmeagain -p1 15 -p2 0
        ./cs_mipi_i2c.sh -w -f dmedgain -p1 0 -p2 0
        

        触发完成之后,第二张得到的图就是按照新参数曝光出来的了。

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

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dao77 @veye_xumm
          last edited by

          先
          ./cs_mipi_i2c.sh -w -f streammode -p1 2
          ./cs_mipi_i2c.sh -w -f expmode -p1 2
          ./cs_mipi_i2c.sh -w -f triggeredge -p1 0
          ./cs_mipi_i2c.sh -r -f tgdly -p1 100
          ./cs_mipi_i2c.sh -w -f dmetime -p1 1000
          ./cs_mipi_i2c.sh -w -f dmeagain -p1 5 -p2 0
          ./cs_mipi_i2c.sh -w -f dmedgain -p1 0 -p2 0
          然后
          ./veye_raspistillyuv -w 1280 -h 1080 -o t1.yuv
          触发后得到t1.yuv

          第二次
          先
          ./veye_raspistillyuv -w 1280 -h 1080 -o t2.yuv
          未触发时,再运行
          ./cs_mipi_i2c.sh -w -f streammode -p1 2
          ./cs_mipi_i2c.sh -w -f expmode -p1 2
          ./cs_mipi_i2c.sh -w -f triggeredge -p1 0
          ./cs_mipi_i2c.sh -r -f tgdly -p1 100
          ./cs_mipi_i2c.sh -w -f dmetime -p1 1000
          ./cs_mipi_i2c.sh -w -f dmeagain -p1 5 -p2 0
          ./cs_mipi_i2c.sh -w -f dmedgain -p1 0 -p2 0
          触发后得到t2.yuv

          两次得到的图像都很差,有莫名其妙的残影t2.png t1.png

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            dao77 @dao77
            last edited by

            例如t1这个图像里头,服装上能看到机箱和把手的残影
            t2这个图像,手腕裤子上有之前杂物的残影

            感觉ISP有设置问题,严重怀疑是 veye_camera_isp_set_defaults () 这里对ISP的参数设置,与我现在要用的 hardward trigger 模式有某些冲突,这个没有源码,暂时不能跟进了

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

              @dao77
              你好,

              1. 室内场景,你用1ms的曝光时间有些过短了,建议延长曝光时间,降低增益。 最好0增益。
              2. 切换模式之后,第一张是不可用的,后面的几张,isp要有一个适应场景的过程。
              3. 与树莓派的库无关,这个camera的图像处理是在摄像机内部完成,树莓派只有接收数据的功能。

              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