sklearn.datasets.load_sample_image(image_name) [source]
Load the numpy array of a single sample image
Read more in the User Guide.
| Parameters: |
|
|---|---|
| Returns: |
|
>>> from sklearn.datasets import load_sample_image
>>> china = load_sample_image('china.jpg')
>>> china.dtype
dtype('uint8')
>>> china.shape
(427, 640, 3)
>>> flower = load_sample_image('flower.jpg')
>>> flower.dtype
dtype('uint8')
>>> flower.shape
(427, 640, 3)
sklearn.datasets.load_sample_image
© 2007–2018 The scikit-learn developers
Licensed under the 3-clause BSD License.
http://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_sample_image.html