I can’t use the opencv command like cv2.imshow or cv2.imread to display image, and its giving me the error below.
error Traceback (most recent call last)
Cell In[13], line 10
7 print(‘Unable to read camera’)
8 break
—> 10 cv2.imshow(‘frame’, frame)
11 if cv2.waitkey(1) == ord(‘q’): # this is trigger only when i press the lower
12 break
error: OpenCV(4.10.0) D:aopencv-pythonopencv-pythonopencvmoduleshighguisrcwindow.cpp:1301: 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 wanted to know how to fix this issue, i have did some research, that it is dur to not having opencv GUI on my pc, but i still couldn’t fix the problem. I would please need you to assist me in solving this issue, thank you.