'cv2.imshow() doesnt work when easyocr installed
I installed easyocr in a newly created python environment using pip install easyocr.
Then i installed opencv-python.
when i try to execute the code -
import cv2
img = cv2.imread('2.jpg')
cv2.imshow('sd',img)
cv2.waitKey(0)
It's giving error
OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\highgui\src\window.cpp:1268: 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'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
