Cartucho / OpenLabeling

Label images and video for Computer Vision applications
Apache License 2.0
926 stars 265 forks source link

The library is compiled without QT support in function displayOverlay #2

Open ryukinix opened 6 years ago

ryukinix commented 6 years ago
~/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)
Cartucho commented 6 years ago

Could you recompile OpenCV using WITH_QT=ON ?

Cartucho commented 6 years ago

@ryukinix Did it work?

INNFINITEMINDS commented 6 years ago

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]

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

Cartucho commented 6 years ago

@INNFINITEMINDS How did you install OpenCV? Which method?

I uploaded the question on StackOverflow

Cartucho commented 6 years ago

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

MattKleinsmith commented 6 years ago

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

INNFINITEMINDS commented 6 years ago

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

HOW TO SOLVE THIS ERROR??

MattKleinsmith commented 6 years ago

@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":

timonsku commented 6 years ago

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

Cartucho commented 6 years ago

@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 commented 6 years ago

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

INNFINITEMINDS commented 6 years ago

ARE U GOING TO MAKE A VIDEO ON IT ?

Cartucho commented 6 years ago

@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.

INNFINITEMINDS commented 6 years ago

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

Cartucho commented 6 years ago

@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 .

INNFINITEMINDS commented 6 years ago

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

INNFINITEMINDS commented 6 years ago

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

arvind-cp commented 6 years ago

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

Cartucho commented 6 years ago

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

arvind-cp commented 6 years ago

Right. Thx.

aishkul1012 commented 3 years ago

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!

DragonDoctor2033 commented 3 years ago

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

reemastha706 commented 2 years ago

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.