Hello,
I installed opencv 3.3.0 with python 3.6.3 on Ubuntu 16.04 today, but opencv does not seem to work. Whenever I use cv2.imshow the code raises an error:
Segmentation fault (core dumped)
The minimal code to reproduce the error (for me) is: [code] import cv2 cap = cv2.VideoCapture(0) _, img = cap.read()
cv2.imshow('image', img) cv2.waitKey(0) cv2.destroyAllWindows() [/code]
Apart from cv2.imshow() everything else was working fine. I was able to plot the output from cap.read() with matplotlib, but once cv2.imshow() or cv2.imread() was used there will be an error.
I was wondering what could cause such a minimal code to cease to work. Could it be result of an unsuccessful installation? Should I consider rolling back to precious version of opencv?