您好我正在尝试使用新的 PythonInterface 安装 OpenCV 2.0。但我总是失败。只有 SWIG python 接口。而且似乎没有安装 PythonInterface。要构建我使用的 OpenCV:
- ./configure --without-ffmpeg(我也试过 --with-python 和 without-swig)
- 制作
须藤使安装
import sys
sys.path.append('/usr/local/lib/python2.6/dist-packages/opencv')
import cv
im = cv.LoadImage("PIL04.JPG",1)
错误是:
im = cv.LoadImage("PIL04.JPG",1)
AttributeError: 'module' object has no attribute 'LoadImage'