Skip to content

Instantly share code, notes, and snippets.

@CT83
Created July 17, 2018 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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