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
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