Öffnen Sie das Bild in Numpy
image = PIL.Image.open(pathToImage)
frame = numpy.asarray(image)
Agreeable Angelfish
image = PIL.Image.open(pathToImage)
frame = numpy.asarray(image)
print('# of dims: ',img.ndim) # dimension of an image
print('Img shape: ',img.shape) # shape of an image
print('Dtype: ',img.dtype)
print(img[20, 20]) # pixel value at [R, G, B]
print(img[:, :, 2].min()) # min pixel value at channel B