Answer the question
In order to leave comments, you need to log in
Why does the kernel crash when working with opencv?
When executing the command:
cv2.imshow("camera", img)
Jupiter thinks for a long time and throws out an error:
The kernel appears to have died. It will restart automatically.
I work under Linux Mint, Python version 3.7.4
Actually, the whole program:
import cv2
cap = cv2.VideoCapture(0)
while True:
ret, img = cap.read()
cv2.imshow("camera", img)
if cv2.waitKey(10) == 27: # Клавиша Esc
break
cap.release()
cv2.destroyAllWindows()
[email protected]:~/ftp/python/face_detector$ python3 z2.py
QObject::moveToThread: Current thread (0x2509890) is not the object's thread (0x25f4450).
Cannot move to target thread (0x2509890) Segmentation
error
[email protected]:~/ftp/python/face_detector$
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question