snipplets.dev/snipplets/code/Python/opencv/open-image.py

8 lines
119 B
Python

import cv2
img = cv2.imread('image.png')
cv2.imshow('Images from Files', img)
cv2.waitKey(0)
cv2.destroyAllWindows()