<?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 read video from OV5640 camera on OpenCV Python 3?  in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988586#M146784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately i.MX6UL does not have gpu and hardware support for OpenCV,&lt;/P&gt;&lt;P&gt;so it is not supported in nxp linux releases. One can try it in software following&lt;/P&gt;&lt;P&gt;OpenCV Python tutorials:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html" title="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html"&gt;OpenCV-Python Tutorials — OpenCV-Python Tutorials 1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 10:12:48 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-01-09T10:12:48Z</dc:date>
    <item>
      <title>How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988585#M146783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXPs,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Toan. I just bought a new OV5640 camera which compatible with iMX6ULEVK(I am using this board). I can display preview video(approx 30 fps) , capture image and record video(640x480 is 15 fps) with gstreamer command. Now I wanna read video from Python 3 and image processing with OpenCV. I am using:&lt;/P&gt;&lt;P&gt;camera = cv2.CaptureVideo('/dev/video1') but fps is only 7.5 instead of 30 fps like gstreamer command. I tried with camera = cv2.CaptureVideo(1) but not working.&lt;/P&gt;&lt;P&gt;I also try to install v4l2capture but not compatible with python 3.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what should I do now(except using v4l2capture ).&lt;/P&gt;&lt;P&gt;Thank you very much,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Toan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 03:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988585#M146783</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-01-09T03:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988586#M146784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately i.MX6UL does not have gpu and hardware support for OpenCV,&lt;/P&gt;&lt;P&gt;so it is not supported in nxp linux releases. One can try it in software following&lt;/P&gt;&lt;P&gt;OpenCV Python tutorials:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html" title="https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_tutorials.html"&gt;OpenCV-Python Tutorials — OpenCV-Python Tutorials 1 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 10:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988586#M146784</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-01-09T10:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988587#M146785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Can we have some trick to read video streaming from OV5640 camera ? I have some informations:&lt;/P&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;OV5640 read with gst-launch-1.0: &lt;STRONG&gt;29 FPS (Almost absolutely)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;OV5640 read with cv2.VideoCapture("/dev/video2"): &lt;STRONG&gt;7 - 8 FPS &lt;BR /&gt;&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;UV Camera read with gst-launch-1.0: &lt;STRONG&gt;11-14 FPS&lt;/STRONG&gt; &lt;EM&gt;(14 FPS with a little motion)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;UV Camera read with cv2.VideoCapture("/dev/video2"): &lt;STRONG&gt;17-24 FPS&lt;/STRONG&gt; &lt;EM&gt;(24 FPS with a little motion)&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My goal is stream video with OV5640 at 24 FPS on Python with OpenCV. I think possible but I have not found it yet. May you help me ?&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Toan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 01:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988587#M146785</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-01-10T01:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988588#M146786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;I updated my answer with more details. Please help me !&lt;/P&gt;&lt;P&gt;Thank you so much,&lt;/P&gt;&lt;P&gt;Toan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988588#M146786</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-01-14T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988589#M146787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Toan&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;if you have project requiring this feature may be suggested to proceed with&lt;/P&gt;&lt;P&gt;extended support of &lt;A class="link-titled" href="https://www.nxp.com/design/engineering-services:SW-SUPPORT" title="https://www.nxp.com/design/engineering-services:SW-SUPPORT"&gt;Commercial Support and Engineering Services | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988589#M146787</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-01-14T09:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988590#M146788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/igorpadykov"&gt;igorpadykov&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Thank you for your response !&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Toan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jan 2020 09:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988590#M146788</guid>
      <dc:creator>toanjunifer</dc:creator>
      <dc:date>2020-01-14T09:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to read video from OV5640 camera on OpenCV Python 3?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988591#M146789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;To capture a video in Python, use the &lt;A href="https://appdividend.com/2020/06/26/python-cv2-videocapture-how-to-load-video-in-python/"&gt;cv2 VideoCapture&lt;/A&gt; class, and then create an object of VideoCapture. VideoCapture has the device index or the name of a video file. The device index is just an integer to define a which Camera. If we pass 0, then it is for the first or primary camera, 1 for the second camera so on. We capture the video frame by frame.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;STRONG&gt;OpenCV&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;is the computer vision library that contains various methods to perform operations on Images or videos.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;OpenCV library can be used to perform multiple operations on videos. Python OpenCV library provides a cv2 VideoCapture class. Let’s understand this better.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;OpenCV allows a candid interface to capture live stream with the Camera (webcam).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;We need to create a&lt;SPAN style="font-weight: bold;"&gt;&lt;STRONG&gt;n&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold;"&gt;&lt;STRONG&gt;VideoCapture class&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to capture a video. It accepts either a device index or the name of a video file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; margin: 0px 0px 17px;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;A number which is specifying to the Camera is called device index. We can select a Camera bypassing the O or 1 as an argument. After that, we can capture the video frame-by-frame.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Aug 2020 12:25:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-read-video-from-OV5640-camera-on-OpenCV-Python-3/m-p/988591#M146789</guid>
      <dc:creator>krunallathiya21</dc:creator>
      <dc:date>2020-08-21T12:25:22Z</dc:date>
    </item>
  </channel>
</rss>

