Skip to content

Instantly share code, notes, and snippets.

@gdunstone
Created January 19, 2017 06:00
Show Gist options
  • Select an option

  • Save gdunstone/ecfe83b50f2b6728ef36d2be595a2aff to your computer and use it in GitHub Desktop.

Select an option

Save gdunstone/ecfe83b50f2b6728ef36d2be595a2aff to your computer and use it in GitHub Desktop.
# stolen from http://stackoverflow.com/questions/21810452/cv2-imshow-command-doesnt-work-properly-in-opencv-python
import cv2
img = cv2.imread("image.jpg")
cv2.startWindowThread()
cv2.namedWindow("preview")
cv2.imshow("preview", img)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment