error:
cv2.error: OpenCV(4.10.0) /io/opencv/modules/highgui/src/window.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'
solution:
- sudo apt install libgtk2.0-dev pkg-config as the prompt says for Ubuntu users -> [Same Error]
- pip uninstall opencv-python-headless -> [Other Error]
- pip uninstall opencv-python; pip install opencv-python -> [Solved]