<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use GStreamer with OpenCV in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285091#M33424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi André,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the question. Maybe the problem is format conversion or I'm using the pipeline in a wrong way.&lt;/P&gt;&lt;P&gt;I created a pipeline with mfw_v4lsrc and fakesink. I used a callback function to get a buffer and transfer the data to OpenCV formats, but I got a null pointer for IpLImage. I've had to solve others problems not related with this case, then I didn't proceed with it.&lt;/P&gt;&lt;P&gt;But now I'm back and I will try to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2014 03:44:45 GMT</pubDate>
    <dc:creator>brunotunes</dc:creator>
    <dc:date>2014-03-07T03:44:45Z</dc:date>
    <item>
      <title>How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285086#M33419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working with Sabre Lite board and the OV5640 camera module, both from Boundary Devices, and I need to process video using OpenCV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I was informed that this camera can't work with OpenCV because its driver works with a Freescale version of V4L2 and not with the standard one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found some discussions about use GStreamer with OpenCV (with Qt and OpenGL too) in others cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if it's possible to use GStreamer's library to capture video from this camera and transfer the frames to OpenCV for a video processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 12:54:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285086#M33419</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-02-08T12:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285087#M33420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I found a way to transfer a frame from GStreamer to OpenCV (transfer from a GstBuffer into a OpenCV image structure), but it uses the Appsink and I don't have it installed on my image and I think it doesn't run with mfw_v4lsrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading the GStreamer manual, I found about ghost pads, so I tried to create a bin with mfw_v4lsrc conected to this pad so I could get a buffer using the function in gstbufferstraw.h. But I got these errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MFW_GST_V4LSRC_PLUGIN 3.0.8 build on Oct&amp;nbsp; 3 2013 21:00:55.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(camera:3606): GStreamer-CRITICAL **: gst_ghost_pad_new: assertion `GST_IS_PAD (target)' failed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(camera:3606): GStreamer-CRITICAL **: gst_element_add_pad: assertion `GST_IS_PAD (pad)' failed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(camera:3606): GStreamer-CRITICAL **: gst_pad_add_buffer_probe_full: assertion `GST_IS_PAD (pad)' failed&lt;/P&gt;&lt;P&gt;check_msg.c:79: No messaging setup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code is in camera.c file.&lt;/P&gt;&lt;P&gt;I need only a way to get a buffer from a pipeline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 01:33:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285087#M33420</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-02-17T01:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285088#M33421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would this help ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html" title="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html"&gt;Manually adding or removing data from/to a pipeline&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This element appsrc takes pushes buffer into a pipeline (in your case it would push your camera captured&amp;nbsp; &amp;amp; processed data) then you can connect it to a sink element (mfw_*). I have not used that element before but worth trying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 16:25:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285088#M33421</guid>
      <dc:creator>LeonardoSandova</dc:creator>
      <dc:date>2014-02-17T16:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285089#M33422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's the opposite, I'm trying to use Gstreamer pipeline to capture frames from camera and create a buffer to transfer to my OpenCV application. It's because I'm using a OV5640 camera and this camera doesn't work with V4L2 standard library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the case that you showed, I could use the appsink and get a buffer (I found a code that do it), then I could transfer data to opencv, but the appsink doesn't work (and I saw some topics about similar problems with appsink).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think a simple way to get frames is through the gstreamer (camera -&amp;gt; gstreamer -&amp;gt; opencv), but I'm learning how to use gstreamer right now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this application: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://github.com/andreluizeng/gesture-recognition/tree/master/src"&gt;https://github.com/andreluizeng/gesture-recognition/tree/master/src&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and it's similar of what I need to do, but instead of get data from a video file, I will get from camera. Please, Take a look at main.cpp and netplayer_gst.cpp, these two files contain all code using gstreamer. I'm working on this code now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intend to create a pipeline with mfw_v4lsrc and fakesink (I don't need to show the frames on a display, only for a test case and with opencv, because it's for a robot displacement control). I think I must create a pad between these plugins to get a buffer.&lt;/P&gt;&lt;P&gt;As soon I get some result I will post the code here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 02:17:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285089#M33422</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-02-18T02:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285090#M33423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can do that, you can create a GST pipeline and get the frame data using it, since you convert it to the correct format OpenCV understands, it will work perfectly fine.&amp;nbsp; Otherwise the onboard camera will not work, only the USB (UVC based drivers).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Mar 2014 03:09:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285090#M33423</guid>
      <dc:creator>andre_silva</dc:creator>
      <dc:date>2014-03-02T03:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285091#M33424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi André,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is the question. Maybe the problem is format conversion or I'm using the pipeline in a wrong way.&lt;/P&gt;&lt;P&gt;I created a pipeline with mfw_v4lsrc and fakesink. I used a callback function to get a buffer and transfer the data to OpenCV formats, but I got a null pointer for IpLImage. I've had to solve others problems not related with this case, then I didn't proceed with it.&lt;/P&gt;&lt;P&gt;But now I'm back and I will try to solve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2014 03:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285091#M33424</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-03-07T03:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285092#M33425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try writing a code like that myself too, maybe will take some time, but I let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2014 14:56:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285092#M33425</guid>
      <dc:creator>andre_silva</dc:creator>
      <dc:date>2014-03-11T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285093#M33426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bruno,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you find a way to solve this problem?&lt;/P&gt;&lt;P&gt;I have the same problem recently in my project, and I'm consider about using gstreamer to send a rtp stream and using OpenCV to capture the stream. I'm still doing some research and find out some way to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Zizhao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 20:59:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285093#M33426</guid>
      <dc:creator>mikuzz</dc:creator>
      <dc:date>2014-07-08T20:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285094#M33427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made it using V4L, and also provide a sample here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="loading" href="http://imxcv.blogspot.com.br/2014/05/onboard-camera-v4l-wrapper-for-use-with.html" style="font-size: 10pt; line-height: 1.5em;" title="http://imxcv.blogspot.com.br/2014/05/onboard-camera-v4l-wrapper-for-use-with.html"&gt;http://imxcv.blogspot.com.br/2014/05/onboard-camera-v4l-wrapper-for-use-with.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 12:22:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285094#M33427</guid>
      <dc:creator>andre_silva</dc:creator>
      <dc:date>2014-07-10T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285095#M33428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a much easier way here at &lt;A class="loading" href="http://stackoverflow.com/questions/23570572/using-custom-camera-in-opencv-via-gstreamer" title="http://stackoverflow.com/questions/23570572/using-custom-camera-in-opencv-via-gstreamer"&gt;http://stackoverflow.com/questions/23570572/using-custom-camera-in-opencv-via-gstreamer&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2014 18:51:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285095#M33428</guid>
      <dc:creator>mikuzz</dc:creator>
      <dc:date>2014-07-10T18:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285096#M33429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;excellent =)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 17:54:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285096#M33429</guid>
      <dc:creator>andre_silva</dc:creator>
      <dc:date>2014-07-30T17:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285097#M33430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi André,&lt;/P&gt;&lt;P&gt;Sorry for being late, but I was busy and I had to use a USB camera for my project.&lt;/P&gt;&lt;P&gt;I had seen this code on your blog and I got some errors when I tried to compile it.&lt;/P&gt;&lt;P&gt;Now I have time to read better your code and I will test it on Sabre Lite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your work,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 18:07:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285097#M33430</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-09-29T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GStreamer with OpenCV</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285098#M33431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zizhao,&lt;/P&gt;&lt;P&gt;sorry for being late. I found some topics on Stack Overflow's site when I was searching for a solution, but I didn't found this one.&lt;/P&gt;&lt;P&gt;I will test it too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the contribution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 18:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-GStreamer-with-OpenCV/m-p/285098#M33431</guid>
      <dc:creator>brunotunes</dc:creator>
      <dc:date>2014-09-29T18:16:56Z</dc:date>
    </item>
  </channel>
</rss>

