<?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のトピックrun opencl app on iMX6Q: openCV error</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/run-opencl-app-on-iMX6Q-openCV-error/m-p/796260#M123222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;we run the opencl test program(we want use GPU to accelate image processing speed) on the imx6q platform BSP Linux 3.14.52, and get the error infomation below(the same error happened in BSP Linux 4.1.15):&lt;/STRONG&gt;&lt;BR /&gt;In image read [1520 x 932]&lt;BR /&gt;loops: 0, detect face using gpu...&lt;/P&gt;&lt;P&gt;OpenCV Error: Assertion failed (localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize) in openCLVerifyKernel, file /home/tangb/yocto/imx-3.14.52-1.1.0_ga/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/ocl/src/cl_operations.cpp, line 349&lt;BR /&gt;terminate called after throwing an instance of 'cv::Exception'&lt;BR /&gt; what(): /home/tangb/yocto/imx-3.14.52-1.1.0_ga/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/ocl/src/cl_operations.cpp:349: error: (-215) localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize in function openCLVerifyKernel&lt;/P&gt;&lt;P&gt;Aborted&lt;BR /&gt;&lt;A href="mailto:root@imx6qsabresd:~"&gt;root@imx6qsabresd:~#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we test function is:&lt;/P&gt;&lt;P&gt;void detect( Mat&amp;amp; img, vector&amp;lt;Rect&amp;gt;&amp;amp; faces,&lt;BR /&gt; ocl::OclCascadeClassifier&amp;amp; cascade,&lt;BR /&gt; double scale, bool calTime)&lt;BR /&gt;{&lt;BR /&gt; printf("detect face using gpu...\n\n");&lt;BR /&gt; ocl::oclMat image(img);&lt;BR /&gt; ocl::oclMat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 );&lt;BR /&gt; if(calTime) workBegin();&lt;BR /&gt; ocl::cvtColor( image, gray, CV_BGR2GRAY );&lt;BR /&gt; ocl::resize( gray, smallImg, smallImg.size(), 0, 0, INTER_LINEAR );&lt;BR /&gt; ocl::equalizeHist( smallImg, smallImg );&lt;/P&gt;&lt;P&gt;cascade.detectMultiScale( smallImg, faces, 1.1,&lt;BR /&gt; 3, 0&lt;BR /&gt; |CV_HAAR_SCALE_IMAGE&lt;BR /&gt; , Size(30,30), Size(0, 0) );&lt;BR /&gt; printf("#### 6\n");&lt;BR /&gt; printf("detect %d faces:\n",faces.size());&lt;BR /&gt; for(int i = 0;i &amp;lt; faces.size();i++){&lt;BR /&gt; printf("face %d : (%d,%d,%d,%d)\n",i,faces[i].x,faces[i].y,faces[i].width,faces[i].height);&lt;BR /&gt; }&lt;BR /&gt; if(calTime) workEnd();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;someone can tell us how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2018 07:09:54 GMT</pubDate>
    <dc:creator>Gavin</dc:creator>
    <dc:date>2018-11-02T07:09:54Z</dc:date>
    <item>
      <title>run opencl app on iMX6Q: openCV error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/run-opencl-app-on-iMX6Q-openCV-error/m-p/796260#M123222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;we run the opencl test program(we want use GPU to accelate image processing speed) on the imx6q platform BSP Linux 3.14.52, and get the error infomation below(the same error happened in BSP Linux 4.1.15):&lt;/STRONG&gt;&lt;BR /&gt;In image read [1520 x 932]&lt;BR /&gt;loops: 0, detect face using gpu...&lt;/P&gt;&lt;P&gt;OpenCV Error: Assertion failed (localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize) in openCLVerifyKernel, file /home/tangb/yocto/imx-3.14.52-1.1.0_ga/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/ocl/src/cl_operations.cpp, line 349&lt;BR /&gt;terminate called after throwing an instance of 'cv::Exception'&lt;BR /&gt; what(): /home/tangb/yocto/imx-3.14.52-1.1.0_ga/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/ocl/src/cl_operations.cpp:349: error: (-215) localThreads[0] * localThreads[1] * localThreads[2] &amp;lt;= kernelWorkGroupSize in function openCLVerifyKernel&lt;/P&gt;&lt;P&gt;Aborted&lt;BR /&gt;&lt;A href="mailto:root@imx6qsabresd:~"&gt;root@imx6qsabresd:~#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And we test function is:&lt;/P&gt;&lt;P&gt;void detect( Mat&amp;amp; img, vector&amp;lt;Rect&amp;gt;&amp;amp; faces,&lt;BR /&gt; ocl::OclCascadeClassifier&amp;amp; cascade,&lt;BR /&gt; double scale, bool calTime)&lt;BR /&gt;{&lt;BR /&gt; printf("detect face using gpu...\n\n");&lt;BR /&gt; ocl::oclMat image(img);&lt;BR /&gt; ocl::oclMat gray, smallImg( cvRound (img.rows/scale), cvRound(img.cols/scale), CV_8UC1 );&lt;BR /&gt; if(calTime) workBegin();&lt;BR /&gt; ocl::cvtColor( image, gray, CV_BGR2GRAY );&lt;BR /&gt; ocl::resize( gray, smallImg, smallImg.size(), 0, 0, INTER_LINEAR );&lt;BR /&gt; ocl::equalizeHist( smallImg, smallImg );&lt;/P&gt;&lt;P&gt;cascade.detectMultiScale( smallImg, faces, 1.1,&lt;BR /&gt; 3, 0&lt;BR /&gt; |CV_HAAR_SCALE_IMAGE&lt;BR /&gt; , Size(30,30), Size(0, 0) );&lt;BR /&gt; printf("#### 6\n");&lt;BR /&gt; printf("detect %d faces:\n",faces.size());&lt;BR /&gt; for(int i = 0;i &amp;lt; faces.size();i++){&lt;BR /&gt; printf("face %d : (%d,%d,%d,%d)\n",i,faces[i].x,faces[i].y,faces[i].width,faces[i].height);&lt;BR /&gt; }&lt;BR /&gt; if(calTime) workEnd();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;someone can tell us how to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2018 07:09:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/run-opencl-app-on-iMX6Q-openCV-error/m-p/796260#M123222</guid>
      <dc:creator>Gavin</dc:creator>
      <dc:date>2018-11-02T07:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: run opencl app on iMX6Q: openCV error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/run-opencl-app-on-iMX6Q-openCV-error/m-p/796261#M123223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please look at this document regarding to face detection:&lt;BR /&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/message/1026448"&gt;https://community.nxp.com/message/1026448&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this one is related to i.MX6:&lt;BR /&gt;&lt;A href="http://imxcv.blogspot.com/2014/02/building-opencv-24x-for-freescales-imx6.html"&gt;http://imxcv.blogspot.com/2014/02/building-opencv-24x-for-freescales-imx6.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Victor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Tue, 06 Nov 2018 07:12:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/run-opencl-app-on-iMX6Q-openCV-error/m-p/796261#M123223</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2018-11-06T07:12:16Z</dc:date>
    </item>
  </channel>
</rss>

