How do i install OpenCV?

11,361

Solution 1

I haven't done any developments on python but try to follow this tutorials I hope you may be able to identify the reason.

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

Solution 2

The correct import is

import cv2

Also, I've been doing a lot of opencv in python this month, and found this was a great tutorial for getting started: http://trevorappleton.blogspot.com/2013/11/python-getting-started-with-opencv.html

Share:
11,361
Jason94
Author by

Jason94

Feed me technology!

Updated on June 04, 2022

Comments

  • Jason94
    Jason94 almost 2 years

    Im trying to install 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 fetched from a tutorial. What is the correct syntax?

    • karlphillip
      karlphillip almost 12 years
      Have you tried import cv2 ?
    • liori
      liori almost 12 years
      What version of that package have you installed? (apt-cache policy python-opencv, the number with stars)