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

17 lines
854 B
ReStructuredText
Raw 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.BoundingBoxAugment
===========================================
.. py:class:: mindspore.dataset.vision.BoundingBoxAugment(transform, ratio=0.3)
对图像的随机标注边界框区域,应用给定的图像变换处理。
参数:
- **transform** (TensorOperation) - 对图像的随机标注边界框区域应用的变换处理。
- **ratio** (float, 可选) - 要应用变换的边界框的比例。范围:[0.0, 1.0]默认值0.3。
异常:
- **TypeError** - 如果 `transform` 不是 :class:`mindspore.dataset.vision.transforms` 模块中的图像变换处理。
- **TypeError** - 如果 `ratio` 不是float类型。
- **ValueError** - 如果 `ratio` 不在 [0.0, 1.0] 范围内。
- **RuntimeError** - 如果给定的边界框无效。