Skip to content

Commit

Permalink
Update py_image_display.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
xgvargas committed Feb 18, 2014
1 parent 44cc51d commit 0d199b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ A screenshot of the window will look like this (in Fedora-Gnome machine):

**cv2.waitKey()** is a keyboard binding function. Its argument is the time in milliseconds. The function waits for specified milliseconds for any keyboard event. If you press any key in that time, the program continues. If **0** is passed, it waits indefinitely for a key stroke. It can also be set to detect specific key strokes like, if key `a` is pressed etc which we will discuss below.

.. note:: Besides binding keyboard events this function also process other GUI events, so it's a must to use it to process ``WM_PAINT`` (which actually prints the image), and even to process the close window event.
.. note:: Besides binding keyboard events this function also processes many other GUI events, so you MUST use it to actually display the image.

**cv2.destroyAllWindows()** simply destroys all the windows we created. If you want to destroy any specific window, use the function **cv2.destroyWindow()** where you pass the exact window name as the argument.

Expand Down

0 comments on commit 0d199b4

Please sign in to comment.