Skip to content

Commit 3bc2597

Browse files
Google APIscopybara-github
authored andcommitted
feat: Added a field for enabling returning images and bounding boxes from layout parser processor
PiperOrigin-RevId: 750248234
1 parent 1422653 commit 3bc2597

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

google/cloud/documentai/v1/document.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,9 @@ message Document {
987987

988988
// Page span of the block.
989989
LayoutPageSpan page_span = 5;
990+
991+
// Identifies the bounding box for the block.
992+
BoundingPoly bounding_box = 6;
990993
}
991994

992995
// List of blocks in the document.
@@ -1061,6 +1064,9 @@ message Document {
10611064
bytes content = 2 [(google.api.field_behavior) = OPTIONAL];
10621065
}
10631066

1067+
// Optional. An internal identifier for document. Should be loggable (no PII).
1068+
string docid = 15 [(google.api.field_behavior) = OPTIONAL];
1069+
10641070
// An IANA published [media type (MIME
10651071
// type)](https://www.iana.org/assignments/media-types/media-types.xhtml).
10661072
string mime_type = 3;

google/cloud/documentai/v1/document_processor_service.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,13 @@ message ProcessOptions {
347347

348348
// Optional. Config for chunking in layout parser processor.
349349
ChunkingConfig chunking_config = 1 [(google.api.field_behavior) = OPTIONAL];
350+
351+
// Optional. Whether to include images in layout parser processor response.
352+
bool return_images = 2 [(google.api.field_behavior) = OPTIONAL];
353+
354+
// Optional. Whether to include bounding boxes in layout parser processor
355+
// response.
356+
bool return_bounding_boxes = 3 [(google.api.field_behavior) = OPTIONAL];
350357
}
351358

352359
// A list of individual page numbers.

0 commit comments

Comments
 (0)