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.
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.
本文标题:5. Read image pixel
本文链接:https://www.haomeiwen.com/subject/lsqaactx.html
网友评论