python - I have installed opencv on ubuntu. I was trying to use function imshow() . it is giving an error -


i have installed opencv on ubuntu. trying use function imshow(). giving error, please find below.

opencv error: unspecified error (the function not implemented. rebuild library windows, gtk+ 2.x or carbon support. if on ubuntu or debian, install libgtk2.0-dev , pkg-config, re-run cmake or configure script) in cvshowimage, file /io/opencv/modules/highgui/src/window.cpp, line 545

error traceback (most recent call last) in () ----> 1 cv2.imshow('mask',img)

error: /io/opencv/modules/highgui/src/window.cpp:545: error: (-2) function not implemented. rebuild library windows, gtk+ 2.x or carbon support. if on ubuntu or debian, install libgtk2.0-dev , pkg-config, re-run cmake or configure script in function cvshowimage

you can try use option in cmake with_gtk=on

opencv needs compiled gtk support (with_gtk=on).


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -