Class ImageSegmentationResponse (1.71.1)

ImageSegmentationResponse(
    _prediction_response: typing.Any,
    masks: typing.List[vertexai.preview.vision_models.GeneratedMask],
)

Image Segmentation response.

Attribute

Name Description
masks List[vertexai.preview.vision_models.GeneratedMask]
The list of generated masks.

Methods

__getitem__

__getitem__(idx: int) -> vertexai.preview.vision_models.GeneratedMask

Gets the generated masks by index.

__iter__

__iter__() -> typing.Iterator[vertexai.preview.vision_models.GeneratedMask]

Iterates through the generated masks.