OpenLabeling icon indicating copy to clipboard operation
OpenLabeling copied to clipboard

The library is compiled without QT support in function displayOverlay

Open ryukinix opened this issue 7 years ago • 23 comments

~/Desktop/yolo-boundingbox-labeler-GUI master
❯ 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
python: 3.6.4
numpy: 1.14.0 
cv2: 3.4.0
distro: Artix Linux (4.9.77-1-lts #1 SMP Wed Jan 17 16:57:30 UTC 2018 x86_64 GNU/Linux)

ryukinix avatar Feb 10 '18 00:02 ryukinix

Could you recompile OpenCV using WITH_QT=ON ?

Cartucho avatar Feb 10 '18 07:02 Cartucho

@ryukinix Did it work?

Cartucho avatar Feb 11 '18 08:02 Cartucho

sir!!! i also getting same erroro please help !!!! also tell me hoe to solve ethis error ? also how can we recompile OpenCV using WITH_QT=ON ?

please help !!!!!!! ############################################### i m using python 3.6.3 version error !!!!!!!!!!!!!!!!!!!!!!! OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in cv::displayOverlay, file D:\Build\OpenCV\opencv-3.4.0\modules\highgui\src\window.cpp, line 528 Traceback (most recent call last): File "C:\Users\admin\Desktop\yolo-boundingbox-labeler-GUI\try.py", line 221, in change_img_index(0) File "C:\Users\admin\Desktop\yolo-boundingbox-labeler-GUI\try.py", line 22, in change_img_index "" + str(last_img_index), 1000) cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\highgui\src\window.cpp:528: error: (-213) The library is compiled without QT support in function cv::displayOverlay

[Finished in 0.357s]

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

INNFINITEMINDS avatar Feb 15 '18 10:02 INNFINITEMINDS

@INNFINITEMINDS How did you install OpenCV? Which method?

I uploaded the question on StackOverflow

Cartucho avatar Feb 15 '18 13:02 Cartucho

@INNFINITEMINDS Qt has this tutorial on how to set Qt and OpenCV on Windows.

Cartucho avatar Feb 15 '18 14:02 Cartucho

I installed opencv with pip and things are working for me:

pip install opencv-python

My environment:

Ubuntu 16.04, Python 3.6.3, Anaconda 5.0.1

MattKleinsmith avatar Feb 16 '18 15:02 MattKleinsmith

hello!! i have installed opencv by downloading windows binary and then i use commAND PROPMT TO INSTALL THEM!!

HOW TO SOLVE THIS ERROR??

INNFINITEMINDS avatar Feb 22 '18 10:02 INNFINITEMINDS

@INNFINITEMINDS

Try this guide: https://wiki.qt.io/How_to_setup_Qt_and_openCV_on_Windows

If that doesn't work, here are some more pages I found on google via "OpenCV using WITH_QT=ON windows":

  • https://docs.opencv.org/3.0-beta/doc/tutorials/introduction/windows_install/windows_install.html
  • https://www.youtube.com/watch?v=ox6NFWE8xg4
  • https://www.google.com/search?q=OpenCV+using+WITH_QT%3DON+windows&oq=OpenCV+using+WITH_QT%3DON+windows

MattKleinsmith avatar Feb 22 '18 10:02 MattKleinsmith

Using pip install opencv-python on Windows 10 seems to install a version that also doesn't have QT support compiled into it.

timonsku avatar Feb 28 '18 23:02 timonsku

@PTS93 this weekend I will make a video on: "How to Install OpenCV3.4 on Windows with Qt"; I will share it here as soon as I have it.

Cartucho avatar Mar 01 '18 11:03 Cartucho

So I managed to install it but it took 4 hours...
Turns OpenCV did not make things easy for Windows users ... :-1:

I decided that I will implement the functions using QT by myself (Zoom in and Zoom out).

It turns out that OpenCV wants to drop QT anyway.

This way you can simply do pip install

Cartucho avatar Mar 04 '18 16:03 Cartucho

ARE U GOING TO MAKE A VIDEO ON IT ?

INNFINITEMINDS avatar Mar 22 '18 02:03 INNFINITEMINDS

@INNFINITEMINDS could you please download the latest release and run that code?

This error shouldn't be occurring anymore. Without QT there is no ZOOM feature but the rest works fine.

Cartucho avatar Mar 22 '18 12:03 Cartucho

again i have tried and i m geting same error!! error as follows >:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in cv::displayOverlay, file D:\Build\OpenCV\opencv-3.3.1\modules\highgui\src\window.cpp, line 528 Traceback (most recent call last): File "C:\Users\INFINITY\Desktop\yolo-boundingbox-labeler-GUI-master\run.py", line 327, in change_img_index(0) File "C:\Users\INFINITY\Desktop\yolo-boundingbox-labeler-GUI-master\run.py", line 37, in change_img_index "" + str(last_img_index), 1000) cv2.error: D:\Build\OpenCV\opencv-3.3.1\modules\highgui\src\window.cpp:528: error: (-213) The library is compiled without QT support in function cv::displayOverlay

[Finished in 8.026s] Linter Severity Provider Description Line run.py000419:1 LF1 deprecationUTF-8Python0 files9:22

INNFINITEMINDS avatar Mar 22 '18 16:03 INNFINITEMINDS

@INNFINITEMINDS are you sure you are using the latest release code? Your error message shows otherwise. E.g: "" + str(last_img_index), 1000) is not in line 37 .

Cartucho avatar Mar 22 '18 16:03 Cartucho

can u please make a video on it i m unabel to start this:..i m getting same error

INNFINITEMINDS avatar Mar 23 '18 04:03 INNFINITEMINDS

i have insatalled python 3 on windows with the help of anaconda now what should i have to do to run your script ? help required

INNFINITEMINDS avatar Mar 23 '18 04:03 INNFINITEMINDS

I was getting this error with png images but works fine with jpg.

arvind-cp avatar Apr 20 '18 20:04 arvind-cp

@arvind-cp I think YOLO only supports jpg images for training

Cartucho avatar Apr 21 '18 10:04 Cartucho

Right. Thx.

arvind-cp avatar Apr 21 '18 13:04 arvind-cp

sir!!! i also getting same erroro please help !!!! also tell me hoe to solve ethis error ? also how can we recompile OpenCV using WITH_QT=ON ?

please help !!!!!!! ############################################### i m using python 3.6.3 version error !!!!!!!!!!!!!!!!!!!!!!! OpenCV Error: The function/feature is not implemented (The library is compiled without QT support) in cv::displayOverlay, file D:\Build\OpenCV\opencv-3.4.0\modules\highgui\src\window.cpp, line 528 Traceback (most recent call last): File "C:\Users\admin\Desktop\yolo-boundingbox-labeler-GUI\try.py", line 221, in change_img_index(0) File "C:\Users\admin\Desktop\yolo-boundingbox-labeler-GUI\try.py", line 22, in change_img_index "" + str(last_img_index), 1000) cv2.error: D:\Build\OpenCV\opencv-3.4.0\modules\highgui\src\window.cpp:528: error: (-213) The library is compiled without QT support in function cv::displayOverlay

[Finished in 0.357s]

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Hey Could you tell me how you solved this problem? Facing the same error right now!

aishkul1012 avatar Dec 14 '20 05:12 aishkul1012

Same for me. Still get the same error. Install OpenCV from pyCharm terminal pip install. Any solutions?

DragonDoctor2033 avatar Jun 18 '21 12:06 DragonDoctor2033

I know the post is quite old. But I am running into the same problem. Anyone who got it solved? Based on another post on how to use qt with opencv, i downgraded the opencv version, but it's not working.

reemastha706 avatar Mar 22 '22 20:03 reemastha706