1

I have tried compiling and installing from the 2.0.0 release source, the SVN head, and from a PPA. After each, I still get the following from a Python console:

>>> import cv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named cv

Starting with the "new" Python interface in 2.0, that import is supposed to work.

| |
0

I downloaded the python-opencv package in Lucid Lynx and this worked:

from opencv import cv
from opencv import highgui

Then you should be able to check what functions are available by using dir(cv) and dir(highgui).

| |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.