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>You've likely installed opencv 3, which doesn't have the <code>cv2.cv</code> module. It's all in <code>cv2</code> now. </p>

<p>To verify run this in a python interpreter </p>

<pre><code>import cv2
print cv2.__version__ 
</code></pre>

<p>Anything like <code>3.0.0</code> or <code>3.1.0</code> means that the <code>cv2.cv</code> module doesn't exist.</p>

python opencv