简体   繁体   中英

OpenCV Windows - The library is compiled without QT support in function displayOverlay

I'm getting the following error:

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

If I had installed via cmake I think I would only need to make sure the WITH_QT flag is set to WITH_QT=ON and recompile (as referenced here ) but what if I installed using the pre-built libraries ?

I came to this page because I had the same problem. I was having it trying to run python run.py for this Github project.

I actually found the solution to the problem on the project's page, in this issue's thread . Following the instructions provided by MattKleinsmith about installing opencv-python using:

pip install opencv-python

the script was able to run immediately.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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