scipy.misc.face

scipy.misc.face(gray=False)[source]

Get a 1024 x 768, color image of a raccoon face.

raccoon-procyon-lotor.jpg at http://www.public-domain-image.com

Deprecated since version 1.10.0: face has been deprecated from scipy.misc.face in SciPy 1.10.0 and it will be completely removed in SciPy 1.12.0. Dataset methods have moved into the scipy.datasets module. Use scipy.datasets.face instead.

Parameters
graybool, optional

If True return 8-bit grey-scale image, otherwise return a color image

Returns
facendarray

image of a racoon face

Examples

>>> import scipy.misc
>>> face = scipy.misc.face()
>>> face.shape
(768, 1024, 3)
>>> face.max()
255
>>> face.dtype
dtype('uint8')
>>> import matplotlib.pyplot as plt
>>> plt.gray()
>>> plt.imshow(face)
>>> plt.show()
../../_images/scipy-misc-face-1.png