5. Read image pixel
2020-01-14 本文已影响0人
JaedenKil
import cv2
img = cv2.imread("C:\\Users\\zzheng\\Pictures\\tiger.png", cv2.IMREAD_UNCHANGED)
print(img[100][50])
[29 67 68]
The output is a pixel value at (100,50)th position. It contains three channels of data.