I see problem unsolvable.I get this error when I try to import numpy
import cv2
import numpy as np
img=cv2.imread('image.jpg',1)
cv2.imshow('image', img)
cv2.waitkey()
cv2.destroyAllWwindows()
when I run attribute imread is not working
cv2.error: OpenCV(3.4.1) C:projectsopencv-pythonopencvmoduleshighguisrcwindow.cpp:636: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon 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
Please help, Python version 3.6
OpenCV version :3.4.1
matplotlib version : 2.2.2
Advertisement
Answer
I had the same issue too. Despite they were installed before, I’ve installed them again via:
pip install opencv-python pip install opencv-contrib-python
and problem solved.