Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
feat: added advanced_ocr_options field in OcrConfig (#451)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 504600937

Source-Link: googleapis/googleapis@91bee51

Source-Link: https://github.com/googleapis/googleapis-gen/commit/70424b9457d15ed852a0a0b9a4f032f2b309b32c
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzA0MjRiOTQ1N2QxNWVkODUyYTBhMGI5YTRmMDMyZjJiMzA5YjMyYyJ9

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jan 25, 2023
1 parent 055ae1f commit 5e1bb96
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions google/cloud/documentai_v1beta3/types/document_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,19 @@ class OcrConfig(proto.Message):
Enables special handling for PDFs with
existing text information. Results in better
text extraction quality in such PDF inputs.
advanced_ocr_options (MutableSequence[str]):
A list of advanced OCR options to further
fine-tune OCR behavior.
"""

enable_native_pdf_parsing: bool = proto.Field(
proto.BOOL,
number=3,
)
advanced_ocr_options: MutableSequence[str] = proto.RepeatedField(
proto.STRING,
number=5,
)


__all__ = tuple(sorted(__protobuf__.manifest))

0 comments on commit 5e1bb96

Please sign in to comment.