Created
July 17, 2018 14:04
-
-
Save CT83/e7eef9692c4eeb8c22813c33f051f0ce to your computer and use it in GitHub Desktop.
Quickest way to preview OpenCV image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def preview_image(image, name="window", time=1000): | |
import cv2 | |
cv2.imshow(name, image) | |
if cv2.waitKey(time): | |
cv2.destroyAllWindows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment