mindspore.dataset.vision.get_image_size
- mindspore.dataset.vision.get_image_size(image)[源代码]
Get the size of input image as [height, width].
- Parameters
image (Union[numpy.ndarray, PIL.Image.Image]) – The image to get size.
- Returns
list[int, int], the image size.
Examples
>>> image_size = vision.get_image_size(image)