Last active
July 12, 2018 01:17
-
-
Save zkan/5443995617b4abaaf5cbe7eb10d2093a to your computer and use it in GitHub Desktop.
Load Image using OpenCV for Python - mentioned in https://medium.com/prontotools/%E0%B8%94%E0%B8%B9-data-structure-%E0%B8%82%E0%B8%AD%E0%B8%87%E0%B8%A3%E0%B8%B9%E0%B8%9B%E0%B8%A0%E0%B8%B2%E0%B8%9E%E0%B9%82%E0%B8%94%E0%B8%A2%E0%B9%83%E0%B8%8A%E0%B9%89-opencv-for-python-74cf85941a50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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