I am running an image processing loop with OpenCV in Python and I would like to display the most recent image mask in my `imshow` window. So whenever the loop calculates a new mask, it updates the `imshow` window (at about 6Hz). However, I can't get `imshow` to return control without waiting for a keyboard interrupt. Any suggestions? Is there a better library to use for this?