繁体   English   中英

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并重新编译(如此处所述 ),但是如果我使用预构建的库安装怎么办?

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

实际上,我在该项目的线程中的项目页面上找到了解决问题的方法 遵循MattKleinsmith提供的有关使用以下命令安装opencv-python的说明:

pip install opencv-python

该脚本能够立即运行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM