Ask Your Question

sonar's profile - activity

2020-02-03 14:22:21 -0600 received badge  Notable Question (source)
2019-02-26 05:25:10 -0600 received badge  Popular Question (source)
2017-11-25 17:27:14 -0600 commented answer cv2.imshow() raises segmentation fault (core dumped) error

Thank you! It turned out that cmake failed at 44% and I installed without noticing so. Reinstalling the thing solved the

2017-11-25 17:25:57 -0600 marked best answer cv2.imshow() raises segmentation fault (core dumped) error

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?

2017-11-25 17:25:57 -0600 received badge  Scholar (source)
2017-11-19 15:31:06 -0600 commented question cv2.imshow() raises segmentation fault (core dumped) error

I followed procedures listed here: https://docs.opencv.org/trunk/d7/d9f/tutorial_linux_install.html

2017-11-19 01:37:56 -0600 asked a question cv2.imshow() raises segmentation fault (core dumped) error

cv2.imshow() raises segmentation fault (core dumped) error Hello, I installed opencv 3.3.0 with python 3.6.3 on Ubuntu