In [1]:
import PIL.Image as Image
import numpy as np
In [2]:
img = Image.open('d:/tmp/1.png')
In [3]:
img.size
Out[3]:
In [4]:
img = img.convert('RGB')
In [5]:
img = np.array(img)
print(img.shape)
In [ ]: