<?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>eIQ Machine Learning SoftwareのトピックRe: Imx8mqevk GPU Applications.</title>
    <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097857#M263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does it run on GPU&lt;/STRONG&gt;? I am using i.MX8 qmmek but openCV application does not run on GPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ullas Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jun 2020 08:56:18 GMT</pubDate>
    <dc:creator>ullasbharadwaj</dc:creator>
    <dc:date>2020-06-30T08:56:18Z</dc:date>
    <item>
      <title>Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097855#M261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;CAn I use video based OpenCV applications to run on the imx8 GPU,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need OpenCL for it ?&lt;/P&gt;&lt;P&gt;If so can you share OpenCV applications which video streaming based ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 10:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097855#M261</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-06-29T10:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097856#M262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to use Open CV based application on i.MX8MQ. Refer below link for sample example.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imxsupport/pyeiq" rel="vcs-git" style="color: black; background-color: #eeeeee; text-decoration: none; font-size: 13.3333px;" title="pyeiq Git repository"&gt;https://source.codeaurora.org/external/imxsupport/pyeiq&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jun 2020 16:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097856#M262</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-06-29T16:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097857#M263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does it run on GPU&lt;/STRONG&gt;? I am using i.MX8 qmmek but openCV application does not run on GPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ullas Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 08:56:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097857#M263</guid>
      <dc:creator>ullasbharadwaj</dc:creator>
      <dc:date>2020-06-30T08:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097858#M264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ML using OpenCV framework is not accelerated on GPU. Though some one can create application on openCV. There are other component&amp;nbsp; like gstreamer and other component which can be hardware accelerated. Above link provide example of using OpenCV using Python.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Manish&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 13:25:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097858#M264</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-06-30T13:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097859#M265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manish,&lt;/P&gt;&lt;P&gt;how to port any application to run on GPU, any info on that will be helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097859#M265</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-06-30T18:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097860#M266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manivannan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below link. It have lot of sample application and enables GPU.&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimxsupport%2Fpyeiq" rel="nofollow" style="color: black; background-color: #eeeeee; border: 0px; text-decoration: none; font-size: 13.3333px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;https://source.codeaurora.org/external/imxsupport/pyeiq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For TFLite we use NNAPI delegates to support GPU. For application based on TFLite use&amp;nbsp;&lt;A href="https://www.tensorflow.org/lite/api_docs/cc/class/tflite/interpreter#classtflite_1_1_interpreter_1a6709c6951b7450b62582a832309ab54f" style="color: #1a73e8; background-color: rgba(246, 246, 246, 0.87); font-weight: 500; text-decoration: none;"&gt;UseNNAPI&lt;/A&gt;&lt;SPAN style="color: #37474f; background-color: rgba(246, 246, 246, 0.87); font-weight: 500;"&gt;(TRUE) to enable GPU.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 18:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097860#M266</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-06-30T18:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097861#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Manish, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you share the any cpp code base for the same GPU enable run. This was on py ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 19:09:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097861#M267</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-06-30T19:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097862#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Manish,&amp;nbsp; Any reference available for imx8mq , looks like the link you shared is not for this imx8 chipset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 19:35:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097862#M268</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-06-30T19:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097863#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Above example should work for i.MX8M too, you can refer C++ example from below link&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink11" href="https://source.codeaurora.org/external/imx/tensorflow-imx/tree/tensorflow/lite/examples/label_image?h=rel_imx_5.4.24_2.1.0" title="https://source.codeaurora.org/external/imx/tensorflow-imx/tree/tensorflow/lite/examples/label_image?h=rel_imx_5.4.24_2.1.0"&gt;https://source.codeaurora.org/external/imx/tensorflow-imx/tree/tensorflow/lite/examples/label_image&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2020 21:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097863#M269</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-06-30T21:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097864#M270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see my object detection application with veryslow response on imx8mqevk , i have done the following configurations for vivante , do i miss anything to speedup camera apps ?&lt;/P&gt;&lt;P&gt;# Graphics libraries&lt;BR /&gt;PREFERRED_PROVIDER_virtual/egl ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgl ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgles1 ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgles2 ?= "imx-gpu-viv"&lt;/P&gt;&lt;P&gt;PREFERRED_PROVIDER_virtual/egl_imxgpu ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgl_imxgpu3d ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgles1_imxgpu3d ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libgles2_imxgpu3d ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libg2d ?= "imx-gpu-viv"&lt;BR /&gt;PREFERRED_PROVIDER_virtual/libg2d_imxdpu ?= "imx-dpu-viv"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 16:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097864#M270</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-07-14T16:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097865#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/manizillion@gmail.com"&gt;manizillion@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you elaborate&amp;nbsp;when you say&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;object detection application is very slow response on imx8mqevk?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;What is slow? Inference speed is low or image capture is slow. What others feature are enabled in back ground?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;-Manish&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 04:49:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097865#M271</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-07-16T04:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097866#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We were running a face detection algorithm with opencv using v4l2&amp;nbsp; mipi csi camera from nxp, Although the face detection is happening but response seen on the display is very slow. Application does not hang though.&amp;nbsp; Any issue with v4l and opencv compatability ? In background we have enabled the following in local.conf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Configure the OpenCV package:&lt;BR /&gt;IMAGE_INSTALL_append = "opencv python-opencv"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PACKAGECONFIG_remove_pn-opencv_mx8 = "python3"&lt;BR /&gt;PACKAGECONFIG_append_pn-opencv_mx8 = " dnn jasper openmp test neon python2 qt5 gtk "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Add CMake for SDK’s cross-compile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOOLCHAIN_HOST_TASK_append += " nativesdk-cmake nativesdk-make"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMAGE_INSTALL_append = " \&lt;BR /&gt;flatbuffers \&lt;BR /&gt;arm-compute-library \&lt;BR /&gt;tensorflow-lite \&lt;BR /&gt;armnn \&lt;BR /&gt;armnn-onnx \&lt;BR /&gt;stb \&lt;BR /&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PREFERRED_VERSION_opencv = "4.0.1%"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Remove the OpenCL support from packages&lt;BR /&gt;PACKAGECONFIG_remove_pn-opencv_mx8 = "opencl"&lt;BR /&gt;PACKAGECONFIG_remove_pn-arm-compute-library = "opencl"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2020 10:03:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097866#M272</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-07-16T10:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097867#M273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/manizillion@gmail.com"&gt;manizillion@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;There can various reason because of that performance might not be optimal. What is the output of top?&amp;nbsp;Share your application with us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jul 2020 02:24:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097867#M273</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-07-18T02:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097868#M274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the app code below, how to make this piece of code run on gpu ? will it be faster if it runs on gpu?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// CPP program to detects face in a video&lt;/P&gt;&lt;P&gt;// Include required header files from OpenCV directory &lt;BR /&gt;#include "opencv2/objdetect.hpp" &lt;BR /&gt;#include "opencv2/highgui.hpp" &lt;BR /&gt;#include "opencv2/imgproc.hpp" &lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;using namespace std; &lt;BR /&gt;using namespace cv;&lt;/P&gt;&lt;P&gt;// Function for Face Detection &lt;BR /&gt;void detectAndDraw( Mat&amp;amp; img, CascadeClassifier&amp;amp; cascade, CascadeClassifier&amp;amp; nestedCascade, double scale);&lt;BR /&gt;//void detectAndDisplay( Mat&amp;amp; frame, CascadeClassifier&amp;amp; fullbodycascade, CascadeClassifier&amp;amp; bodycascade);&lt;/P&gt;&lt;P&gt;int main( int argc, const char** argv ) &lt;BR /&gt;{ &lt;BR /&gt; // VideoCapture class for playing video for which faces to be detected &lt;BR /&gt; VideoCapture capture; &lt;BR /&gt; Mat frame, image;&lt;/P&gt;&lt;P&gt;// PreDefined trained XML classifiers with facial features &lt;BR /&gt; // CascadeClassifier upperbodycascade, fullbodycascade;&lt;BR /&gt; CascadeClassifier facecascade, eyecascade; &lt;BR /&gt; double scale=1;&lt;/P&gt;&lt;P&gt;// Load classifiers from "opencv/data/haarcascades" directory &lt;BR /&gt; //nestedCascade.load("haarcascade_eye_tree_eyeglasses.xml") ;&lt;/P&gt;&lt;P&gt;// Change path before execution &lt;BR /&gt; //fullbodycascade.load( "haarcascade_fullbody.xml" ) ; &lt;BR /&gt; //upperbodycascade.load( "haarcascade_upperbody.xml" ) ;&lt;BR /&gt; facecascade.load( "haarcascade_frontalface_alt.xml" ) ;&lt;BR /&gt; eyecascade.load( "haarcascade_eye.xml" ) ;&lt;/P&gt;&lt;P&gt;// Start Video..1) 0 for WebCam 2) "Path to Video" for a Local Video &lt;BR /&gt; capture.open(0); &lt;BR /&gt; if( !capture.isOpened() ) &lt;BR /&gt; { &lt;BR /&gt; cout &amp;lt;&amp;lt; "Camera port opening failed!" &amp;lt;&amp;lt; endl;&lt;BR /&gt; exit(1);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; cout &amp;lt;&amp;lt; "Camera port opened successfully!" &amp;lt;&amp;lt; endl;&lt;BR /&gt; }&lt;BR /&gt; // set resolution &amp;amp; frame rate (FPS)&lt;BR /&gt; capture.set(CAP_PROP_FRAME_WIDTH, 640);&lt;BR /&gt; capture.set(CAP_PROP_FRAME_HEIGHT,480);&lt;BR /&gt; //capture.set(CAP_PROP_FPS, 30);&lt;BR /&gt; &lt;BR /&gt; while(1) &lt;BR /&gt; { &lt;BR /&gt; cout &amp;lt;&amp;lt; "####reading frame" &amp;lt;&amp;lt; endl;&lt;BR /&gt; capture &amp;gt;&amp;gt; frame; &lt;BR /&gt; if( frame.empty() ) &lt;BR /&gt; break; &lt;BR /&gt; Mat frame1 = frame.clone();&lt;BR /&gt; //detectAndDisplay( frame1, fullbodycascade, upperbodycascade);&lt;BR /&gt; detectAndDraw(frame1, facecascade, eyecascade, scale);&lt;BR /&gt; waitKey(1); &lt;BR /&gt; } &lt;BR /&gt; capture.release();&lt;BR /&gt; return 0; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*void detectAndDisplay( Mat&amp;amp; frame, CascadeClassifier&amp;amp; fullbodycascade, CascadeClassifier&amp;amp; upperbodycascade) &lt;BR /&gt;{ &lt;BR /&gt; std::vector&amp;lt;Rect&amp;gt; upperbodies, fullbodies;&lt;BR /&gt; Mat frame_gray;&lt;/P&gt;&lt;P&gt;cvtColor(frame, frame_gray, COLOR_BGR2GRAY);&lt;BR /&gt; equalizeHist(frame_gray, frame_gray);&lt;/P&gt;&lt;P&gt;//-- Detect upperbody&lt;BR /&gt; upperbodycascade.detectMultiScale(frame_gray, upperbodies, 1.1, 3, 0 | CASCADE_SCALE_IMAGE, Size(30, 30));&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "upperbody size: " &amp;lt;&amp;lt; upperbodies.size() &amp;lt;&amp;lt; endl;&lt;BR /&gt; for (size_t i = 0; i &amp;lt; upperbodies.size(); i++)&lt;BR /&gt; {&lt;BR /&gt; rectangle(frame, upperbodies[i], Scalar(255, 0, 255), 1, 8, 0);&lt;BR /&gt; &lt;BR /&gt; //-- Detect fullbody&lt;BR /&gt; fullbodycascade.detectMultiScale(frame_gray, fullbodies, 1.1, 3, 0 | CASCADE_SCALE_IMAGE, Size(30, 30));&lt;BR /&gt; cout &amp;lt;&amp;lt; "full body size: " &amp;lt;&amp;lt; fullbodies.size() &amp;lt;&amp;lt; endl;&lt;BR /&gt; for (size_t i = 0; i &amp;lt; fullbodies.size(); i++)&lt;BR /&gt; {&lt;BR /&gt; rectangle(frame, fullbodies[i], Scalar(255, 0, 255), 1, 8, 0);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; //-- Show what you got&lt;BR /&gt; imshow("pedestrian detection", frame);&lt;BR /&gt;}*/&lt;/P&gt;&lt;P&gt;void detectAndDraw( Mat&amp;amp; img, CascadeClassifier&amp;amp; cascade, &lt;BR /&gt; CascadeClassifier&amp;amp; nestedCascade, double scale) &lt;BR /&gt;{ &lt;BR /&gt; vector&amp;lt;Rect&amp;gt; faces; &lt;BR /&gt; Mat gray; //smallImg;&lt;/P&gt;&lt;P&gt;cvtColor( img, gray, COLOR_BGR2GRAY ); // Convert to Gray Scale &lt;BR /&gt; //double fx = 1 / scale;&lt;/P&gt;&lt;P&gt;// Resize the Grayscale Image &lt;BR /&gt; //resize( gray, smallImg, Size(), fx, fx, INTER_LINEAR ); &lt;BR /&gt; equalizeHist( gray, gray );&lt;/P&gt;&lt;P&gt;// Detect faces of different sizes using cascade classifier &lt;BR /&gt; cascade.detectMultiScale(gray, faces, 1.1, &lt;BR /&gt; 3, 0|CASCADE_SCALE_IMAGE, Size(30, 30));&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "face size: " &amp;lt;&amp;lt; faces.size() &amp;lt;&amp;lt; endl;&lt;BR /&gt; // Draw circles around the faces &lt;BR /&gt; for ( size_t i = 0; i &amp;lt; faces.size(); i++ ) &lt;BR /&gt; { &lt;BR /&gt; Rect r = faces[i]; &lt;BR /&gt; Mat smallImgROI; &lt;BR /&gt; vector&amp;lt;Rect&amp;gt; nestedObjects; &lt;BR /&gt; Point center; &lt;BR /&gt; Scalar color = Scalar(255, 0, 0); // Color for Drawing tool &lt;BR /&gt; int radius;&lt;/P&gt;&lt;P&gt;double aspect_ratio = (double)r.width/r.height; &lt;BR /&gt; if( 0.75 &amp;lt; aspect_ratio &amp;amp;&amp;amp; aspect_ratio &amp;lt; 1.3 ) &lt;BR /&gt; { &lt;BR /&gt; center.x = cvRound((r.x + r.width*0.5)*scale); &lt;BR /&gt; center.y = cvRound((r.y + r.height*0.5)*scale); &lt;BR /&gt; radius = cvRound((r.width + r.height)*0.25*scale); &lt;BR /&gt; circle( img, center, radius, color, 3, 8, 0 ); &lt;BR /&gt; } &lt;BR /&gt; else&lt;BR /&gt; rectangle( img, cv::Point(cvRound(r.x*scale), cvRound(r.y*scale)), &lt;BR /&gt; cv::Point(cvRound((r.x + r.width-1)*scale), &lt;BR /&gt; cvRound((r.y + r.height-1)*scale)), color, 3, 8, 0); &lt;BR /&gt; if( nestedCascade.empty() ) &lt;BR /&gt; continue; &lt;BR /&gt; smallImgROI = gray( r ); &lt;BR /&gt; &lt;BR /&gt; // Detection of eyes int the input image &lt;BR /&gt; nestedCascade.detectMultiScale( smallImgROI, nestedObjects, 1.1, 3, &lt;BR /&gt; 0|CASCADE_SCALE_IMAGE, Size(30, 30) );&lt;/P&gt;&lt;P&gt;// Draw circles around eyes &lt;BR /&gt; for ( size_t j = 0; j &amp;lt; nestedObjects.size(); j++ ) &lt;BR /&gt; { &lt;BR /&gt; Rect nr = nestedObjects[j]; &lt;BR /&gt; center.x = cvRound((r.x + nr.x + nr.width*0.5)*scale); &lt;BR /&gt; center.y = cvRound((r.y + nr.y + nr.height*0.5)*scale); &lt;BR /&gt; radius = cvRound((nr.width + nr.height)*0.25*scale); &lt;BR /&gt; circle( img, center, radius, color, 3, 8, 0 ); &lt;BR /&gt; } &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// Show Processed Image with detected faces &lt;BR /&gt; imshow( "Face Detection", img ); &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/*void detectAndDraw( Mat&amp;amp; image, CascadeClassifier&amp;amp; face_cascade) &lt;BR /&gt;{&lt;BR /&gt; // Detect faces&lt;BR /&gt; std::vector&amp;lt;Rect&amp;gt; faces;&lt;BR /&gt; face_cascade.detectMultiScale( image, faces, 1.1, 2, 0|CASCADE_SCALE_IMAGE, Size(30, 30) );&lt;/P&gt;&lt;P&gt;cout &amp;lt;&amp;lt; "body size: " &amp;lt;&amp;lt; faces.size() &amp;lt;&amp;lt; endl; &lt;BR /&gt; // Draw circles on the detected faces&lt;BR /&gt; for( unsigned int i = 0; i &amp;lt; faces.size(); i++ )&lt;BR /&gt; {&lt;BR /&gt; Point center( faces[i].x + faces[i].width*0.5, faces[i].y + faces[i].height*0.5 );&lt;BR /&gt; ellipse( image, center, Size( faces[i].width*0.5, faces[i].height*0.5), 0, 0, 360, Scalar( 255, 0, 255 ), 4, 8, 0 );&lt;BR /&gt; }&lt;BR /&gt; imshow( "Detected Face", image ); &lt;BR /&gt;}*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 15:46:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097868#M274</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-07-20T15:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097869#M275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/nxf60449"&gt;nxf60449&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check this ticket.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 18:06:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097869#M275</guid>
      <dc:creator>manish_bajaj</dc:creator>
      <dc:date>2020-07-20T18:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097870#M276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Object Detection using Haar feature-based cascade classifiers is relatively slow by nature. There is no GPU optimization for it.&lt;/P&gt;&lt;P&gt;However, trying to resize frames used in the methods detectMultiScale to a smaller size may improve performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alifer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2020 19:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1097870#M276</guid>
      <dc:creator>Alifer_Moraes</dc:creator>
      <dc:date>2020-07-20T19:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: Imx8mqevk GPU Applications.</title>
      <link>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1149758#M285</link>
      <description>&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;I am trying to inlcude meta-ml meta-sdk layers into agl linux build. I am using these layers from latest L5.4.24_2.1.0 release on imx8mqevk. But i do get error for armnn do_compile errors&amp;nbsp; . How to solve these merge issues ?&lt;/P&gt;&lt;P&gt;Can i merge these builds into other build environment?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: armnn-19.08-r1 do_compile: Execution of '/home/administrator/jellyfish5.4/build/tmp/work/aarch64-agl-linux/armnn/19.08-r1/temp/run.do_compile.19578' failed with exit code 127:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/home/administrator/jellyfish5.4/build/tmp/work/aarch64-agl-linux/armnn/19.08-r1/temp/run.do_compile.19578: 1: eval: cmake: not found&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WARNING: exit code 127 from a shell command.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ERROR: Logfile of failure stored in: /home/administrator/jellyfish5.4/build/tmp/work/aarch64-agl-linux/armnn/19.08-r1/temp/log.do_compile.19578&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:40:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/eIQ-Machine-Learning-Software/Imx8mqevk-GPU-Applications/m-p/1149758#M285</guid>
      <dc:creator>manizillion</dc:creator>
      <dc:date>2020-09-07T14:40:56Z</dc:date>
    </item>
  </channel>
</rss>

