How to install opencv?

I am trying to install the OpenCV package for Python on my debian. I ran sudo apt-get install python-opencv and accepted it.

But when I import cv my application says that there is no module named cv :(

import cv was extracted from the tutorial. What is the correct syntax?

+4
source share
2 answers

I have not made any changes to python, but try to follow these tutorials. I hope you can determine the cause.

http://www.neuroforge.co.uk/index.php/getting-started-with-python-a-opencv

+2
source

Proper import

 import cv2 

In addition, I have been doing a lot of python opencv in this month and found it to be an excellent tutorial to get you started: http://trevorappleton.blogspot.com/2013/11/python-getting-started-with-opencv.html

+2
source

All Articles