bundles / scipy 1.17.1 / scipy / datasets / _fetchers / face
function
scipy.datasets._fetchers:face
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()⚠
import matplotlib.pyplot as plt plt.gray()✓
plt.imshow(face)
⚠plt.show()
✓
Aliases
-
scipy.datasets.face