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

Commit 5e1bb96

Browse files
feat: added advanced_ocr_options field in OcrConfig (#451)
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>
1 parent 055ae1f commit 5e1bb96

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

google/cloud/documentai_v1beta3/types/document_io.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,19 @@ class OcrConfig(proto.Message):
227227
Enables special handling for PDFs with
228228
existing text information. Results in better
229229
text extraction quality in such PDF inputs.
230+
advanced_ocr_options (MutableSequence[str]):
231+
A list of advanced OCR options to further
232+
fine-tune OCR behavior.
230233
"""
231234

232235
enable_native_pdf_parsing: bool = proto.Field(
233236
proto.BOOL,
234237
number=3,
235238
)
239+
advanced_ocr_options: MutableSequence[str] = proto.RepeatedField(
240+
proto.STRING,
241+
number=5,
242+
)
236243

237244

238245
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)