Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfig (googly_document_ai v0.1.0)

Copy Markdown View Source

Config for Document OCR.

Attributes

  • advanced_ocr_options (type: list(String.t())) - 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.
  • compute_style_info (type: boolean()) - Turn on font identification model and return font style information. Deprecated, use PremiumFeatures.compute_style_info instead.
  • disable_character_boxes_detection (type: boolean()) - Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.
  • enable_image_quality_scores (type: boolean()) - 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.
  • enable_native_pdf_parsing (type: boolean()) - Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
  • enable_symbol (type: boolean()) - Includes symbol level OCR information if set to true.
  • hints (type: Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfigHints.t()) - Hints for the OCR model.
  • premium_features (type: Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.t()) - Configurations for premium OCR features.

Summary

Types

t()

@type t() :: %Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfig{
  advanced_ocr_options: [String.t()] | nil,
  compute_style_info: boolean() | nil,
  disable_character_boxes_detection: boolean() | nil,
  enable_image_quality_scores: boolean() | nil,
  enable_native_pdf_parsing: boolean() | nil,
  enable_symbol: boolean() | nil,
  hints:
    Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfigHints.t() | nil,
  premium_features:
    Googly.DocumentAI.Model.GoogleCloudDocumentaiV1OcrConfigPremiumFeatures.t()
    | nil
}