OpenCV error: the function is not implemented
本帖最后由 神龙教 于 2018-10-12 16:57 编辑我在Ubuntu中安装了opencv,但是我在运行下面的代码是确报错:
import cv
cv.NamedWindow("w1", cv.CV_WINDOW_AUTOSIZE)
capture = cv.CaptureFromCAM(0)
def repeat():
frame = cv.QueryFrame(capture)
cv.ShowImage("w1", frame)
time.sleep(10)
while True:
repeat()
The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or
Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and
pkg-config, then re-run cmake or configure script我按照要求安装了包,并且把它移到了Opencv的文件夹下运行
sudo make uninstall
make
sudo make install
但是还是得到的刚刚的问题
本帖最后由 lovelylucky 于 2018-10-12 16:55 编辑
如果gtk会有错误,试一试qt
sudo apt-get install libqt4-dev
cmake -D WITH_QT=ON ..
make
sudo make install如果还是不可以的话还有一个简单的方法
sudo apt-get install libopencv-*这将下载所有所需的依赖项
页:
[1]