- 3.0.1 (latest)
- 3.0.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.3
- 2.28.0
- 2.27.1
- 2.26.0
- 2.25.0
- 2.24.2
- 2.23.0
- 2.22.0
- 2.21.1
- 2.20.2
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.1
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.1
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.3
- 1.5.1
- 1.4.2
- 1.3.0
- 1.2.1
- 1.1.0
- 1.0.0
- 0.5.2
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
OcrConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Config for Document OCR.
Attributes | |
---|---|
Name | Description |
hints |
google.cloud.documentai_v1.types.OcrConfig.Hints
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. Current valid values are: - legacy_layout : a heuristics layout detection
algorithm, which serves as an alternative to the current
ML-based layout detection algorithm. Customers can choose
the best suitable layout algorithm based on their
situation.
|
enable_symbol |
bool
Includes symbol level OCR information if set to true. |
compute_style_info |
bool
Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead. |
disable_character_boxes_detection |
bool
Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0+ processors. |
premium_features |
google.cloud.documentai_v1.types.OcrConfig.PremiumFeatures
Configurations for premium OCR features. |
Classes
Hints
Hints(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Hints for OCR Engine
PremiumFeatures
PremiumFeatures(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Configurations for premium OCR features.