<?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 Quote:Rohit J. (Intel) wrote: in Intel® Distribution for Python*</title>
    <link>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175187#M1286</link>
    <description>&lt;P style="font-size: 13.008px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Rohit J. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hi Hui,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;We don't build OpenCV with GTK support; you can build using sources with support for GTK. You need to have libgtk / libgtk2.x installed at a path that could be discovered by build script. Depending on the version of libgtk installed, passing "&lt;SPAN style="font-weight: 700;"&gt;-DWITH_GTK=1&lt;/SPAN&gt;" /&amp;nbsp;"&lt;SPAN style="font-weight: 700;"&gt;-DWITH_GTK_2_X=1&lt;/SPAN&gt;" to cmake would ensure that built OpenCV has GTK support, and you'd be able to use "&lt;SPAN style="font-weight: 700;"&gt;cv.ShowImage()&lt;/SPAN&gt;" from the interpreter.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Rohit&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hi Rohit,&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks for your reply. I know how to compile OpenCV with a GUI support, but is the OpenCV module from Intel's channel optimized with MKL and other routines ?&amp;nbsp; This is the reason why I use intel's python distribution. I wonder what's the difference between intel's OpenCV module and the one I could build from source codes ?&amp;nbsp; If there's no big difference, I could build it myself.&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks,&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hui&lt;/P&gt;</description>
    <pubDate>Sat, 28 Apr 2018 03:33:34 GMT</pubDate>
    <dc:creator>HL2</dc:creator>
    <dc:date>2018-04-28T03:33:34Z</dc:date>
    <item>
      <title>The cv2 GUI doesn't work. How could I fix it ?</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175185#M1284</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am using Debian 9. Using conda installed the intel python distribution. The OpenCV package's GUI module doesn't work.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;The error messages are:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;error: (-2) 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-run cmake or configure script in function cvShowImage&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;How could I fix it ? Thanks!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 14:05:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175185#M1284</guid>
      <dc:creator>HL2</dc:creator>
      <dc:date>2018-04-26T14:05:32Z</dc:date>
    </item>
    <item>
      <title>Hi Hui,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175186#M1285</link>
      <description>&lt;DIV&gt;Hi Hui,&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;We don't build OpenCV with GTK support; you can build using sources with support for GTK. You need to have libgtk / libgtk2.x installed at a path that could be discovered by build script. Depending on the version of libgtk installed, passing "&lt;STRONG&gt;-DWITH_GTK=1&lt;/STRONG&gt;" /&amp;nbsp;&lt;/SPAN&gt;"&lt;STRONG&gt;-DWITH_GTK_2_X=1&lt;/STRONG&gt;" to cmake would ensure that built OpenCV has GTK support, and you'd be able to use "&lt;STRONG&gt;cv.ShowImage()&lt;/STRONG&gt;" from the interpreter.&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Rohit&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Apr 2018 13:32:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175186#M1285</guid>
      <dc:creator>Rohit_J_Intel</dc:creator>
      <dc:date>2018-04-27T13:32:09Z</dc:date>
    </item>
    <item>
      <title>Quote:Rohit J. (Intel) wrote:</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175187#M1286</link>
      <description>&lt;P style="font-size: 13.008px;"&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Rohit J. (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hi Hui,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;We don't build OpenCV with GTK support; you can build using sources with support for GTK. You need to have libgtk / libgtk2.x installed at a path that could be discovered by build script. Depending on the version of libgtk installed, passing "&lt;SPAN style="font-weight: 700;"&gt;-DWITH_GTK=1&lt;/SPAN&gt;" /&amp;nbsp;"&lt;SPAN style="font-weight: 700;"&gt;-DWITH_GTK_2_X=1&lt;/SPAN&gt;" to cmake would ensure that built OpenCV has GTK support, and you'd be able to use "&lt;SPAN style="font-weight: 700;"&gt;cv.ShowImage()&lt;/SPAN&gt;" from the interpreter.&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks,&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Rohit&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hi Rohit,&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks for your reply. I know how to compile OpenCV with a GUI support, but is the OpenCV module from Intel's channel optimized with MKL and other routines ?&amp;nbsp; This is the reason why I use intel's python distribution. I wonder what's the difference between intel's OpenCV module and the one I could build from source codes ?&amp;nbsp; If there's no big difference, I could build it myself.&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Thanks,&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px;"&gt;Hui&lt;/P&gt;</description>
      <pubDate>Sat, 28 Apr 2018 03:33:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175187#M1286</guid>
      <dc:creator>HL2</dc:creator>
      <dc:date>2018-04-28T03:33:34Z</dc:date>
    </item>
    <item>
      <title>Hui,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175188#M1287</link>
      <description>&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Hui,&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;We build opencv with icc/icpc and link against runtimes from Intel IPP and Intel TBB, besides linking against runtimes from zlib, hdf5, libtiff, libpng and libjpeg. Since you have IDP installed, you can create a conda-env with all the prerequisites and can build opencv in that environment.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;1. In order to create a conda-env with all the prerequisites: &lt;STRONG&gt;&amp;lt;IDP_installation&amp;gt;/bin/conda create -n opencv_build_env -c intel python=3.6 ipp-devel numpy hdf5 jpeg libtiff libpng protobuf -y&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;2. Activate conda-env: &lt;STRONG&gt;source &amp;lt;IDP_installation&amp;gt;/bin/activate opencv_build_env&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;3. Install tbb-devel from the beta channel : &lt;STRONG&gt;conda install -c intel/label/beta2019 tbb-devel -y&lt;/STRONG&gt; #Please note that this package is a beta package. We would soon be pushing a stable release.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;In the activated environment, all your runtimes and header-files would be placed under &lt;STRONG&gt;`python3-config --exec-prefix`/lib&lt;/STRONG&gt; and &lt;STRONG&gt;`python3-config --exec-prefix`/include&lt;/STRONG&gt;, respectively. You can pass appropriate arguments to cmake to ensure that all the header files and runtimes are being utilized during build.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;Rohit&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;DIV&gt;&lt;SPAN style="font-size: 13.008px;"&gt;(p.s. You can deactivate a conda-env by running the following: &lt;STRONG&gt;source deactivate)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 02 May 2018 15:23:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-for-Python/The-cv2-GUI-doesn-t-work-How-could-I-fix-it/m-p/1175188#M1287</guid>
      <dc:creator>Rohit_J_Intel</dc:creator>
      <dc:date>2018-05-02T15:23:34Z</dc:date>
    </item>
  </channel>
</rss>

