<?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>i.MX Processors中的主题 Re: opencv vpudec appsink</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1189592#M165573</link>
    <description>&lt;P&gt;what board do you use? did you install phyton2 opencv successfully on yocto, right?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Nov 2020 09:10:29 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2020-11-26T09:10:29Z</dc:date>
    <item>
      <title>opencv vpudec appsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1188759#M165474</link>
      <description>&lt;P&gt;Hi&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I want to use python-opecv to displayer video frame with vpudec.&amp;nbsp; but only use vpudec as appsink input，the color will be black and white；When add videoconvert after vpudec the displayer will&lt;/P&gt;&lt;P&gt;&amp;nbsp;be very slow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;environment&amp;nbsp;&lt;/SPAN&gt;BSP 5.4.3 opencv version 4.2.0&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Anyone who can help me fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;···&lt;/P&gt;&lt;P&gt;#!/usr/bin/env python3&lt;BR /&gt;import cv2&lt;BR /&gt;if __name__ == '__main__':&lt;BR /&gt;&lt;BR /&gt;mode = r'filesrc location=/home/root/qq.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue ! h264parse ! vpudec ! appsink'&lt;BR /&gt;#mode = r'filesrc location=/home/root/qq.mp4 typefind=true ! video/quicktime ! aiurdemux ! queue ! h264parse ! vpudec ! videoconvert ! queue ! appsink'&lt;BR /&gt;cap = cv2.VideoCapture(mode,cv2.CAP_GSTREAMER)&lt;BR /&gt;while True:&lt;BR /&gt;ret,frame = cap.read()&lt;BR /&gt;a=len(frame.shape)&lt;BR /&gt;print(a)&lt;/P&gt;&lt;P&gt;if ret is False:&lt;BR /&gt;break&lt;/P&gt;&lt;P&gt;cv2.imshow('appFrame',frame)&lt;BR /&gt;key = cv2.waitKey(20)&lt;BR /&gt;if key == 49:&lt;BR /&gt;cv2.destroyAllWindows()&lt;BR /&gt;cap.release()&lt;/P&gt;&lt;P&gt;&amp;nbsp;···&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 08:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1188759#M165474</guid>
      <dc:creator>coindu</dc:creator>
      <dc:date>2020-11-25T08:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: opencv vpudec appsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1189592#M165573</link>
      <description>&lt;P&gt;what board do you use? did you install phyton2 opencv successfully on yocto, right?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1189592#M165573</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-11-26T09:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: opencv vpudec appsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1189598#M165574</link>
      <description>&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;IMX8MM and IMX8MQ board to test.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Of cause ,the python opecv installed sucuess. Because I have run the python script on the platform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I'm just confused about the situation now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 09:19:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1189598#M165574</guid>
      <dc:creator>coindu</dc:creator>
      <dc:date>2020-11-26T09:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: opencv vpudec appsink</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1196067#M166167</link>
      <description>&lt;P&gt;&amp;nbsp;one can refer to the command from the link as below:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/OpenCV-and-GStreamer-on-iMX8QM-MEK/m-p/1179587" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors/OpenCV-and-GStreamer-on-iMX8QM-MEK/m-p/1179587&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2020 06:45:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/opencv-vpudec-appsink/m-p/1196067#M166167</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-12-09T06:45:22Z</dc:date>
    </item>
  </channel>
</rss>

