Class LayoutImageBlock (3.5.0)

LayoutImageBlock(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents an image type block.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
blob_asset_id str
Optional. Asset id of the inline image. If set, find the image content in the blob_assets field. This field is a member of oneof_ image_source.
gcs_uri str
Optional. Google Cloud Storage uri of the image. This field is a member of oneof_ image_source.
data_uri str
Optional. Data uri of the image. It is composed of four parts: a prefix (data:), a MIME type indicating the type of data, an optional base64 token if non-textual, and the data itself: data:[][;base64], This field is a member of oneof_ image_source.
mime_type str
Mime type of the image. An IANA published [media type (MIME type)] (https://www.iana.org/assignments/media-types/media-types.xhtml).
image_text str
Text extracted from the image using OCR or alt text describing the image.
annotations google.cloud.documentai_v1beta3.types.Document.Annotations
Annotation of the image block.