Skip to content

Instantly share code, notes, and snippets.

@CT83
Created July 17, 2018 14:04
Show Gist options
  • Save CT83/e7eef9692c4eeb8c22813c33f051f0ce to your computer and use it in GitHub Desktop.
Save CT83/e7eef9692c4eeb8c22813c33f051f0ce to your computer and use it in GitHub Desktop.
Quickest way to preview OpenCV image
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