bundles / scipy 1.18.0 / scipy / datasets / _fetchers / face
function
scipy.datasets._fetchers:face
source: /scipy/datasets/_fetchers.py:183
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, optionalIf True return 8-bit grey-scale image, otherwise return a color image
Returns
face: ndarrayimage 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()✓
np.uint8(255)
import matplotlib.pyplot as plt plt.gray()✓
plt.imshow(face)
✗<matplotlib.image.AxesImage object at 0x7fa8fe6ca490>
plt.show()
✓
Aliases
scipy.datasets.face