OpenCV Windows - 该库在函数 displayOverlay 中编译时没有 QT 支持
OpenCV Windows - The library is compiled without QT support in function displayOverlay
我收到以下错误:
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
并重新编译(参考 here),但是如果我使用 预建库安装 ?
我来到这个页面是因为我遇到了同样的问题。我正在尝试 运行 python run.py
用于 this Github 项目。
我实际上在 this issue's thread 中的项目页面上找到了问题的解决方案。按照 MattKleinsmith 提供的关于安装 opencv-python 使用的说明:
pip install opencv-python
脚本能够立即运行。
我收到以下错误:
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
并重新编译(参考 here),但是如果我使用 预建库安装 ?
我来到这个页面是因为我遇到了同样的问题。我正在尝试 运行 python run.py
用于 this Github 项目。
我实际上在 this issue's thread 中的项目页面上找到了问题的解决方案。按照 MattKleinsmith 提供的关于安装 opencv-python 使用的说明:
pip install opencv-python
脚本能够立即运行。