Ask Your Question
0

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

asked 2020-03-30 07:45:07 -0600

CodeIn gravatar image

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

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-03-30 08:20:17 -0600

berak gravatar image

updated 2020-03-30 08:23:37 -0600

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

because you don't have the src code

anaconda

you're doomed ;(

The function is not implemented

there was a problem while building cv2.pyd. make an issue with whoever maintains it at conda

(there is nothing you can do about it locally now, downloading gtk or such won't help)

uninstall it, and try pip install opencv-python instead

edit flag offensive delete link more

Comments

thank you for your response

CodeIn gravatar imageCodeIn ( 2020-03-30 10:40:18 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-03-30 07:45:07 -0600

Seen: 3,091 times

Last updated: Mar 30 '20