Class OcrConfig (2.15.0)

Stay organized with collections Save and categorize content based on your preferences.
OcrConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Config for Document OCR.


Hints for the OCR model.
enable_native_pdf_parsing bool
Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
enable_image_quality_scores bool
Enables intelligent document quality scores after OCR. Can help with diagnosing why OCR responses are of poor quality for a given input. Adds additional latency comparable to regular OCR to the process call.
advanced_ocr_options MutableSequence[str]
A list of advanced OCR options to further fine-tune OCR behavior.
enable_symbol bool
Includes symbol level OCR information if set to true.



Hints(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Hints for OCR Engine