View Source GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfig (google_api_document_ai v0.39.0)
Config for Document OCR.
Attributes
-
advancedOcrOptions
(type:list(String.t)
, default:nil
) - 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. -
computeStyleInfo
(type:boolean()
, default:nil
) - Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead. -
disableCharacterBoxesDetection
(type:boolean()
, default:nil
) - Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors. -
enableImageQualityScores
(type:boolean()
, default:nil
) - 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. -
enableNativePdfParsing
(type:boolean()
, default:nil
) - Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs. -
enableSymbol
(type:boolean()
, default:nil
) - Includes symbol level OCR information if set to true. -
hints
(type:GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfigHints.t
, default:nil
) - Hints for the OCR model. -
premiumFeatures
(type:GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.t
, default:nil
) - Configurations for premium OCR features.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfig{ advancedOcrOptions: [String.t()] | nil, computeStyleInfo: boolean() | nil, disableCharacterBoxesDetection: boolean() | nil, enableImageQualityScores: boolean() | nil, enableNativePdfParsing: boolean() | nil, enableSymbol: boolean() | nil, hints: GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfigHints.t() | nil, premiumFeatures: GoogleApi.DocumentAI.V1.Model.GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.