You are viewing an older version (1.17.1).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 1.17.1 / scipy / datasets / _fetchers / face

function

scipy.datasets._fetchers:face

source: /scipy/datasets/_fetchers.py:187

Signature

def face(gray = False)

Summary

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

Extended Summary

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

Parameters

gray : bool, optional

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

Returns

face : ndarray

image of a raccoon face

Notes

Array API Standard Support

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

See dev-arrayapi for more information.

Examples

import scipy.datasets
✓
face = scipy.datasets.face()
face.shape
face.max()
⚠
import matplotlib.pyplot as plt
plt.gray()
✓
plt.imshow(face)
⚠
plt.show()
✓
fig-2ad6efd658dc28c0.png

Aliases

  • scipy.datasets.face

Referenced by