Class: Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1beta3::Document::DocumentLayout::DocumentLayoutBlock::LayoutImageBlock
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1beta3/document.rb
Overview
Represents an image type block.
Instance Attribute Summary collapse
-
#annotations ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
Annotation of the image block.
-
#blob_asset_id ⇒ ::String
Optional.
-
#data_uri ⇒ ::String
Optional.
-
#gcs_uri ⇒ ::String
Optional.
-
#image_text ⇒ ::String
Text extracted from the image using OCR or alt text describing the image.
-
#mime_type ⇒ ::String
Mime type of the image.
Instance Attribute Details
#annotations ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::Annotations
Returns Annotation of the image block.
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#blob_asset_id ⇒ ::String
Returns Optional. Asset id of the inline image. If set, find the image content in the blob_assets field.
Note: The following fields are mutually exclusive: blob_asset_id
, gcs_uri
, data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#data_uri ⇒ ::String
Returns 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:[
Note: The following fields are mutually exclusive: data_uri
, blob_asset_id
, gcs_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#gcs_uri ⇒ ::String
Returns Optional. Google Cloud Storage uri of the image.
Note: The following fields are mutually exclusive: gcs_uri
, blob_asset_id
, data_uri
. If a field in that set is populated, all other fields in the set will automatically be cleared.
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#image_text ⇒ ::String
Returns Text extracted from the image using OCR or alt text describing the image.
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#mime_type ⇒ ::String
Returns Mime type of the image. An IANA published media type (MIME type).
1264 1265 1266 1267 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1264 class LayoutImageBlock include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |