scipy.datasets.

face#

scipy.datasets.face(gray=False)[source]#

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

The image is derived fromhttps://pixnio.com/fauna-animals/raccoons/raccoon-procyon-lotor

Parameters:
graybool, optional

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

Returns:
facendarray

image of a raccoon face

Notes

Array API Standard Support

face is not in-scope for support of Python Array API Standard compatiblebackends other than NumPy.

SeeSupport for the array API standard for more information.

Examples

>>>importscipy.datasets>>>face=scipy.datasets.face()>>>face.shape(768, 1024, 3)>>>face.max()np.uint8(255)
>>>importmatplotlib.pyplotasplt>>>plt.gray()>>>plt.imshow(face)>>>plt.show()
../../_images/scipy-datasets-face-1.png
On this page