开发者

How can I get CVtypes for OpenCV working in Python on Ubuntu

I have downloaded CVtypes and tried the example scripts with it but cannot get it working. The error I get is:

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/开发者_StackOverflow社区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

I have installed all these packages for good measure which I thought would contain the required libs:

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


Turns out CVtypes is ooooold. I needed PyOpenCV instead. As a Perl coder who is a newbie to Python I find the instability and deprecation a bit annoying.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜