1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
""" Created on 2018/5/9 @author: Maf """
import cv2 import numpy as np
img = cv2.imread('D:\\1.jpg')
print (img.item(10,10,2)) img.itemset((10,10,2),100) print (img.item(10,10,2))
print (img.shape)
print (img.size)
print (img.dtype)
|