Skip to content

Instantly share code, notes, and snippets.

@zkan
Last active July 12, 2018 01:17
Show Gist options
  • Save zkan/5443995617b4abaaf5cbe7eb10d2093a to your computer and use it in GitHub Desktop.
Save zkan/5443995617b4abaaf5cbe7eb10d2093a to your computer and use it in GitHub Desktop.
import cv2
image = cv2.imread('simplesat.png')
print(type(image)) # <class 'numpy.ndarray'>
print(image.shape) # (224, 224, 3)
b, g, r = image[46, 46]
print(b, g, r) # 152 222 148
cv2.imshow('SimpleSat Logo', image)
cv2.waitKey(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment