Installation of OpenCV in Ubuntu 14.04
<p>I built OpenCV from Source but I can't manage to use it. Every time I try to even load an image with the next code I get <code>No module named cv2.cv</code>. Why is that happening? How can I fix it?</p>

<pre><code>from cv2.cv import *

img = LoadImage("/home/User/Desktop/Image.png")
NamedWindow("opencv")
ShowImage("opencv",img)
WaitKey(0)
</code></pre>

<p>The procedure I did was the following...</p>

<p>I downloaded the zip file from the main page of GitHub and while being in a destination directory I created, I built OpenCV using</p>

<p><code>cmake OpenCV_Source_Directory</code></p>

<p>Then on the destination directory I run</p>

<p><code>make</code></p>

<p><code>sudo make install</code></p>

<p>I found the solution to my problem. I had to install <code>python-opencv</code> as follows:</p>

<pre><code>sudo apt-get install python-opencv
</code></pre>

<p>After that OpenCV works fine.</p>

python opencv