<?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 To run OpenCV facedetect on Yocto in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/To-run-OpenCV-facedetect-on-Yocto/m-p/575465#M87935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;CPU: IMX6Q&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;Yocto jethro Image: fsl-image-qt5&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;I have appended below on conf/local.conf&amp;nbsp; and got opencv libs and xml on the target rootfs and got a facedetect binary in /usr/bin/ of target.&amp;nbsp; thanks to yocto .. but.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;CORE_IMAGE_EXTRA_INSTALL += " libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev opencv opencv-samples "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;LICENSE_FLAGS_WHITELIST = "commercial"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;I tried to run facedetect with this command..&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;facedetect --cascade="/usr/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --nested-cascade="/usr/share/OpenCV/haarcascades/haarcascade_eye.xml" --scale=1.3 %1 lena.jpg&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;and faced this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;"OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-ru3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;terminate called after throwing an instance of 'cv::Exception'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt; what():&amp;nbsp; /home/smart/yocto/var-som-mx6-yocto-jethro/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/highgui/src/window.cpp:483: error: (-2) The fuw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Aborted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;It seems that I need to install "libgtk2.0-dev and pkg-config" into my Yoto rootfs and tried to add them on the local.conf and run bitbake again. but, it syas .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;ERROR: Nothing RPROVIDES 'libgtk2.0-dev' (but /home/smart/yocto/var-som-mx6-yocto-jethro/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-qt5.bb RDEPENDS on or otherwise requires it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;Please let me know how I can solve this problem. if you don't recommend to use Yocto for OpenCV, pls let me move to Ubuntu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;and, I have to change some code on facedetect.cpp and build for IMX6.. but, it is not easy to cross-compile OpenCV samples in the host by using pocky..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;please let me know any good recommendation by you..&amp;nbsp; thanks a lot..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2016 03:09:06 GMT</pubDate>
    <dc:creator>hjpark71</dc:creator>
    <dc:date>2016-07-15T03:09:06Z</dc:date>
    <item>
      <title>To run OpenCV facedetect on Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/To-run-OpenCV-facedetect-on-Yocto/m-p/575465#M87935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;Hi Guys,&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;CPU: IMX6Q&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;Yocto jethro Image: fsl-image-qt5&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;I have appended below on conf/local.conf&amp;nbsp; and got opencv libs and xml on the target rootfs and got a facedetect binary in /usr/bin/ of target.&amp;nbsp; thanks to yocto .. but.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;" &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;CORE_IMAGE_EXTRA_INSTALL += " libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev opencv opencv-samples "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;LICENSE_FLAGS_WHITELIST = "commercial"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;I tried to run facedetect with this command..&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;facedetect --cascade="/usr/share/OpenCV/haarcascades/haarcascade_frontalface_alt.xml" --nested-cascade="/usr/share/OpenCV/haarcascades/haarcascade_eye.xml" --scale=1.3 %1 lena.jpg&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 14.6667px; font-family: Arial; color: #000000;"&gt;and faced this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;"OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-ru3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;terminate called after throwing an instance of 'cv::Exception'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt; what():&amp;nbsp; /home/smart/yocto/var-som-mx6-yocto-jethro/build-fb/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/git/modules/highgui/src/window.cpp:483: error: (-2) The fuw&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;Aborted&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;It seems that I need to install "libgtk2.0-dev and pkg-config" into my Yoto rootfs and tried to add them on the local.conf and run bitbake again. but, it syas .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #2873ee;"&gt;ERROR: Nothing RPROVIDES 'libgtk2.0-dev' (but /home/smart/yocto/var-som-mx6-yocto-jethro/sources/meta-fsl-bsp-release/imx/meta-sdk/recipes-fsl/images/fsl-image-qt5.bb RDEPENDS on or otherwise requires it)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;Please let me know how I can solve this problem. if you don't recommend to use Yocto for OpenCV, pls let me move to Ubuntu.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;and, I have to change some code on facedetect.cpp and build for IMX6.. but, it is not easy to cross-compile OpenCV samples in the host by using pocky..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #606060;"&gt;please let me know any good recommendation by you..&amp;nbsp; thanks a lot..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 03:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/To-run-OpenCV-facedetect-on-Yocto/m-p/575465#M87935</guid>
      <dc:creator>hjpark71</dc:creator>
      <dc:date>2016-07-15T03:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: To run OpenCV facedetect on Yocto</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/To-run-OpenCV-facedetect-on-Yocto/m-p/575466#M87936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nerver tried with QT, however please check &lt;A href="http://imxcv.blogspot.com/2014/02/building-opencv-24x-for-freescales-imx6.html" title="http://imxcv.blogspot.com/2014/02/building-opencv-24x-for-freescales-imx6.html"&gt;Computer Vision on i.MX Processors: Building OpenCV-2.4.X for Freescale's i.MX6 BSP (Yocto) &lt;/A&gt;&lt;/P&gt;&lt;P&gt;to enable Opencv with FB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2016 14:39:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/To-run-OpenCV-facedetect-on-Yocto/m-p/575466#M87936</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2016-07-18T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

