blob: 39748c9d1f67264d3d9d101f9ead79f561c13695 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/python3
import cv2
#read image
img = cv2.imread('/usr/share/wallpapers/Next/contents/images/360x720.png')
#show image
cv2.imshow('Example - Show image in window',img)
cv2.waitKey(0) # waits until a key is pressed
cv2.destroyAllWindows() # destroys the window showing image
|