python - OpenCV's waitKey() alternative in IPython Notebook -
i'm trying show images cv2 library in jupiter notebook cv2.imshow(img)
, shows expected, can not use or don't know how use cv2.waitkey(0)
, hence cell not stop executing.
cv2.waitkey(0)
works in script, not in notebook.
here's snippet:
cv2.imshow('image', img) cv2.waitkey(0) cv2.destroyallwindows()
how stop executing cell without restarting whole kernel?
so, @micka, here's solution:
you must write cv2.startwindowthread()
first, explained here.
Comments
Post a Comment