0

我收到以下错误:

python run.py
OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in displayOverlay, file /build/opencv/src/opencv-3.4.0/modules/highgui/src/window.cpp, line 528
Traceback (most recent call last):
  File "run.py", line 203, in <module>
    change_img_index(0)
  File "run.py", line 25, in change_img_index
    "" + str(last_img_index), 1000)
cv2.error: /build/opencv/src/opencv-3.4.0/modules/highgui/src/window.cpp:528: error: (-213) The library is compiled without QT support in function displayOverlay

如果我是通过 cmake 安装的,我想我只需要确保将WITH_QT标志设置为并重新编译(如此处所WITH_QT=ON引用),但如果我使用预构建的库安装怎么办?

4

1 回答 1

1

我来到这个页面是因为我遇到了同样的问题。我正在尝试python run.py这个Github 项目运行它。

我实际上在这个问题的线程中找到了项目页面上问题的解决方案。按照 MattKleinsmith 提供的关于使用以下方式安装 opencv-python 的说明:

pip install opencv-python

该脚本能够立即运行。

于 2018-02-24T15:19:48.813 回答