如何在Ubuntu上使用Python在OpenCV上运行CVtypes

时间:2011-03-02 11:32:41

标签: python ubuntu opencv

我已经下载了CVtypes并尝试了示例脚本,但无法使其正常运行。我得到的错误是:

pete@pete-MacBookPro:~/python_scratch/cvtypes$ python showcam.py 
Traceback (most recent call last):
  File "showcam.py", line 1, in <module>
    from CVtypes import cv
  File "/home/pete/python_scratch/cvtypes/CVtypes.py", line 580, in <module>
    _cxDLL = cdll.cxcore100
  File "/usr/lib/python2.6/ctypes/__init__.py", line 423, in __getattr__
    dll = self._dlltype(name)
  File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: cxcore100: cannot open shared object file: No such file or directory

我已经安装了所有这些软件包,我认为它们包含了所需的库:

libcv-dev - development files for libcv
libcv2.1 - computer vision library
libcvaux-dev - development files for libcvaux
libcvaux2.1 - computer vision extension library
libhighgui-dev - development files for libhighgui
libhighgui2.1 - computer vision GUI library
opencv-doc - OpenCV documentation and examples
python-opencv - Python bindings for the computer vision library

1 个答案:

答案 0 :(得分:0)

原来CVtypes是ooooold。我需要PyOpenCV代替。作为Perl编码员,他是Python的新手,我发现不稳定和弃用有点烦人。