What Actually WaitKey is doing

waitKey() does the actual drawing, imshow() just copies an image pointer.

so if you sleep() 10 seconds between imshow() and waitKey(), it won’t draw anything in the meantime

1 Like