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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -