<?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: How to use Vivante for face recognition on imx6q Saber Lite board?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731291#M113769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OpenCV works,&amp;nbsp;only that code doesn't work.&lt;/P&gt;&lt;P&gt;I recompiled Ot with options in qmake.conf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMX6_CFLAGS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= -mthumb -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mvectorize-with-neon-quad -mfpu=neon -mfloat-abi=hard -DLINUX=1 -DEGL_API_FB=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I recompiled OpenCV with options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cmake CMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DWITH_OPENGL=ON -DENABLE_NEON=ON -DENABLE_VFPV3=ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out operation&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;frame=frameCpu in code gives error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2018 08:40:38 GMT</pubDate>
    <dc:creator>ivanskl</dc:creator>
    <dc:date>2018-04-18T08:40:38Z</dc:date>
    <item>
      <title>How to use Vivante for face recognition on imx6q Saber Lite board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731289#M113767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use OpenCL for face recognition enhancement.&lt;/P&gt;&lt;P&gt;I am using code OpenCV-2.x from OpenCV documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VideoCapture vcap(...);&lt;BR /&gt;ocl::OclCascadeClassifier fd("haar_ff.xml");&lt;BR /&gt;ocl::oclMat frame, frameGray;&lt;BR /&gt;Mat frameCpu;&lt;BR /&gt;vector&amp;lt;Rect&amp;gt; faces;&lt;BR /&gt;for(;;){&lt;BR /&gt;// processing loop&lt;BR /&gt;vcap &amp;gt;&amp;gt; frameCpu;&lt;BR /&gt;frame = frameCpu;&lt;BR /&gt;ocl::cvtColor(frame, frameGray, BGR2GRAY);&lt;BR /&gt;ocl::equalizeHist(frameGray, frameGray);&lt;BR /&gt;fd.detectMultiScale(frameGray, faces, ...);&lt;BR /&gt;// draw rectangles&lt;BR /&gt;// show image&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;That code compiles well, but program don't work with error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OpenCV Error: Assertion failed (localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize) in openCLVerifyKernel, &lt;BR /&gt;file /root/Downloads/opencv-2.4.9/modules/ocl/src/cl_operations.cpp, line 349&lt;BR /&gt;terminate called after throwing an instance of 'cv::Exception'&lt;BR /&gt; what(): /root/Downloads/opencv-2.4.9/modules/ocl/src/cl_operations.cpp:349: &lt;BR /&gt;error: (-215) localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize in function openCLVerifyKernel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My board is imx6q Saber Lite with Ubuntu Xenial for i.MX6/7 boards&amp;nbsp; August 2016 (kernel 4.1.15) image.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find how to resolve this problem. And if it's not possible at all to use OpenCL, there is a question: how can I speed up a face recognition on imx6q Saber Lite?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 08:26:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731289#M113767</guid>
      <dc:creator>ivanskl</dc:creator>
      <dc:date>2018-04-13T08:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Vivante for face recognition on imx6q Saber Lite board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731290#M113768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like OpenCV is not using floating point, needs to install again, OpenCV works on Sabre board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 14:50:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731290#M113768</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2018-04-16T14:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Vivante for face recognition on imx6q Saber Lite board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731291#M113769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OpenCV works,&amp;nbsp;only that code doesn't work.&lt;/P&gt;&lt;P&gt;I recompiled Ot with options in qmake.conf:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMX6_CFLAGS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= -mthumb -O3 -march=armv7-a -mcpu=cortex-a9 -mtune=cortex-a9 -mvectorize-with-neon-quad -mfpu=neon -mfloat-abi=hard -DLINUX=1 -DEGL_API_FB=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I recompiled OpenCV with options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cmake CMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DWITH_OPENGL=ON -DENABLE_NEON=ON -DENABLE_VFPV3=ON&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the same error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out operation&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;frame=frameCpu in code gives error.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:40:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731291#M113769</guid>
      <dc:creator>ivanskl</dc:creator>
      <dc:date>2018-04-18T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Vivante for face recognition on imx6q Saber Lite board?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731292#M113770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;imx6q&lt;SPAN&gt;&amp;nbsp;only supports OpenCL 1.1 Embedded Profile not the Full Profile therefore it cant' be enabled for OpenCV. Ideally OpenCV&amp;nbsp; requires a SOC with OpenCL 1.2 Full Profile support. If you can move to imx6q plus then OpenGL 1.2 support should be available.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The only optimization would be&amp;nbsp; to ENABLE_NEON=ON&amp;nbsp;and&amp;nbsp;ENABLE_VFPV3=ON .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:05:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-use-Vivante-for-face-recognition-on-imx6q-Saber-Lite/m-p/731292#M113770</guid>
      <dc:creator>mtx512</dc:creator>
      <dc:date>2018-04-24T14:05:09Z</dc:date>
    </item>
  </channel>
</rss>

