|
本帖最后由 神龙教 于 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
复制代码
但是还是得到的刚刚的问题
|
|