Using cv.imshow() in Jupyter Notebook

1. Only using cv.imshow() in Jupyter Notebook does not display pictures, and it will freeze:

Figure 1 using only cv.imshow()

2. It needs to be used with cv.waitKey(0), cv.destroyAllWindows():

Figure 2 with cv.waitKey()

 

Guess you like

Origin blog.csdn.net/qq_27677599/article/details/115407592