Navigation

    VEYE IMAGING Forum

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Recent
    • Popular
    • Users
    • WIKI
    • veye.cc

    SOLVED GStreamer读取SC132的图像时,当相机运动时会报错

    CS MIPI camera
    2
    4
    603
    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.
    • C
      CVUser last edited by

      我用Gstreamer的C/C++库,自己写程序读取SC132的图像,并保存为图片。
      当相机静止时,可以正常存储;当相机放车上开始运动时,会在运行一段时间后就会报错(段错误),每次测试运行的时间不同。已经检测过硬件连接。不知道可能是什么原因造成的。

      Gstreamer中的Lanuch代码为:

      pipeline_ = gst_parse_launch("v4l2src num-buffers=100 do-timestamp=true is-live=true device=/dev/video0 ! video/x-raw,format=(string)UYVY, width=(int)1280, height=(int)1080 ! videoconvert ! video/x-raw, format=(string)GRAY8 ! jpegenc ! multipartmux ! multipartdemux ! jpegparse", &error);

      不知道大家有没有遇到类似情况。

      veye_xumm 1 Reply Last reply Reply Quote 0
      • veye_xumm
        veye_xumm @CVUser last edited by

        @cvuser
        建议出问题的时候,先通过dmesg检查一下错误日志。
        感觉你这个问题呢,有可能是mipi出现了错误帧,然后你的程序对于错误处理没有搞好。
        这个只是我的猜测。

        也有可能你的程序的段错误跟摄像机没关系。

        总之肯定要先从软件着手,找到问题点,再查硬件。

        C 1 Reply Last reply Reply Quote 0
        • C
          CVUser @veye_xumm last edited by

          @veye_xumm 好的~我尝试debug一下~

          veye_xumm 1 Reply Last reply Reply Quote 0
          • veye_xumm
            veye_xumm @CVUser last edited by

            @cvuser
            这个问题提出已经很久了,一直没有更新状态。 我会将状态标记为解决,如果需要,可以再次跟帖,或者直接打开问题。

            1 Reply Last reply Reply Quote 0
            • First post
              Last post