gpt4 book ai didi

qt - OpenCV Windows-在函数displayOverlay中编译该库时没有QT支持

转载 作者:行者123 更新时间:2023-12-02 17:37:29 25 4
gpt4 key购买 nike

我收到以下错误:

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),但是如果我使用 预制库安装该怎么办?

最佳答案

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

实际上,我在项目页面this issue's thread中找到了解决该问题的方法。遵循MattKleinsmith提供的有关使用以下命令安装opencv-python的说明:
pip install opencv-python
该脚本能够立即运行。

关于qt - OpenCV Windows-在函数displayOverlay中编译该库时没有QT支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48808179/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com