OPENING AN IMAGE IN PYTHON

Photo of author

By Jackson Taylor

import cv2
img = cv2.imread(‘IMAGE_1.PNG’,0) #reads the image
cv2.imshow(‘image’,img)
cv2.waitKey(0)
cv2.destroyAllWindows()
more examples