mindspore/docs/api/api_python/dataset_vision/mindspore.dataset.vision.Im...

13 lines
507 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

mindspore.dataset.vision.ImageReadMode
======================================
.. py:class:: mindspore.dataset.vision.ImageReadMode
图像文件读取方式枚举类。
可选枚举值为ImageReadMode.UNCHANGED、ImageReadMode.GRAYSCALE、ImageReadMode.COLOR。
- **ImageReadMode.UNCHANGED** - 按照图像原始格式读取。
- **ImageReadMode.GRAYSCALE** - 读取并转为单通道灰度数据。
- **ImageReadMode.COLOR** - 读取并换为3通道RGB彩色数据。