In [27]:
import numpy as np
from PIL import Image, ImageOps, ImageStat
In [28]:
img = Image.open("../../home/media/poker/4h.png")
img
Out[28]:
In [22]:
stat = ImageStat.Stat(img)
In [23]:
type(stat)
Out[23]:
In [24]:
stat.extrema
Out[24]:
In [25]:
stat.mean
Out[25]:
In [26]:
stat.count
Out[26]:
In [14]:
stat.sum
Out[14]:
In [15]:
stat.sum2
Out[15]:
In [16]:
stat.median
Out[16]:
In [17]:
stat.rms
Out[17]:
In [19]:
stat.stddev
Out[19]:
In [ ]: