Ask Your Question

Revision history [back]

i don't find C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp

Hello,

i am using anaconda, in windows, Open CV 4.2 , Python 3.7 when my code comes to this line cv2.imshow("Text detection",orig) it gives this error

error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:651: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage'

I tried looking for the file so i can rebuild it, but i can not find the file in the mentionned path.

I tried installing GTK but it is only for python 3.4 or less