Class RawReferenceImage (1.75.0)

RawReferenceImage(
    reference_id,
    image: typing.Optional[
        typing.Union[bytes, vertexai.vision_models.Image, str]
    ] = None,
)

Raw reference image.

This encapsulates the raw reference image type.

Methods

RawReferenceImage

RawReferenceImage(
    reference_id,
    image: typing.Optional[
        typing.Union[bytes, vertexai.vision_models.Image, str]
    ] = None,
)

Creates a ReferenceImage object.

Parameter
Name Description
image typing.Union[bytes, vertexai.vision_models.Image, str, NoneType]

Either Image object or Image file bytes. Image can be in PNG or JPEG format.