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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -