Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 17, 2021 11:57
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 amankharwal/aef307b1b0ff366b7ffeb86f5fb3a9b2 to your computer and use it in GitHub Desktop.
Save amankharwal/aef307b1b0ff366b7ffeb86f5fb3a9b2 to your computer and use it in GitHub Desktop.
def viewImage(img, name_of_window):
cv2.namedWindow(name_of_window, cv2.WINDOW_NORMAL)
cv2.imshow(name_of_window, img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment