Skip to content

Adding support for image and table annotation for DocAI #13329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
6 changes: 4 additions & 2 deletions documentai/snippets/handle_response_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# file_path = "/path/to/local/pdf"
# mime_type = "application/pdf" # Refer to https://cloud.google.com/document-ai/docs/file-types for supported file types


# [END documentai_process_ocr_document]
# [END documentai_process_form_document]
# [END documentai_process_specialized_document]
Expand Down Expand Up @@ -469,7 +468,10 @@ def process_document_layout_sample(
chunking_config=documentai.ProcessOptions.LayoutConfig.ChunkingConfig(
chunk_size=1000,
include_ancestor_headings=True,
)
),
https://cloud.google.com/document-ai/docs/layout-parse-chunk#layout_parser_features
enable_image_annotation=True, # Optional
enable_table_annotation=True, # Optional
)
)

Expand Down