DSVM: Ubuntu 18.4 - NC Series K80 VM
The following python code fails but should display an image (obviously need to change paths to suite to repro). This is causing me a lot of issues with samples I'm trying to run.
import cv2 image = cv2.imread("image1.jpg") cv2.imshow("test", image) cv3.waitKey(0)
CV2 is installed and will read the image data, but the show method fails, with the following error:
OpenCV(3.4.2) /tmp/build/80754af9/opencv-suite_1535558553474/work/modules/highgui/src/window.cpp:632: error: (-2:Unspecified error) 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' File "/home/garrm/Desktop/PyImageSearch/SB_Code/chapter22-smile_detection/cv_test.py", line 5, in <module> cv2.imshow("test", image)
> Btw this form is terrible - I couldn't copy paste code in, I had to rewrite it.