public interface OcrConfigOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
String |
getAdvancedOcrOptions(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
|
com.google.protobuf.ByteString |
getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to further fine-tune OCR behavior.
|
int |
getAdvancedOcrOptionsCount()
A list of advanced OCR options to further fine-tune OCR behavior.
|
List<String> |
getAdvancedOcrOptionsList()
A list of advanced OCR options to further fine-tune OCR behavior.
|
boolean |
getComputeStyleInfo()
Deprecated.
google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
google/cloud/documentai/v1beta3/document_io.proto;l=165
|
boolean |
getDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine.
|
boolean |
getEnableImageQualityScores()
Enables intelligent document quality scores after OCR.
|
boolean |
getEnableNativePdfParsing()
Enables special handling for PDFs with existing text information.
|
boolean |
getEnableSymbol()
Includes symbol level OCR information if set to true.
|
OcrConfig.Hints |
getHints()
Hints for the OCR model.
|
OcrConfig.HintsOrBuilder |
getHintsOrBuilder()
Hints for the OCR model.
|
OcrConfig.PremiumFeatures |
getPremiumFeatures()
Configurations for premium OCR features.
|
OcrConfig.PremiumFeaturesOrBuilder |
getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
|
boolean |
hasHints()
Hints for the OCR model.
|
boolean |
hasPremiumFeatures()
Configurations for premium OCR features.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;OcrConfig.Hints getHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;OcrConfig.HintsOrBuilder getHintsOrBuilder()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;boolean getEnableNativePdfParsing()
Enables special handling for PDFs with existing text information. Results in better text extraction quality in such PDF inputs.
bool enable_native_pdf_parsing = 3;boolean getEnableImageQualityScores()
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.
bool enable_image_quality_scores = 4;List<String> getAdvancedOcrOptionsList()
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.
repeated string advanced_ocr_options = 5;int getAdvancedOcrOptionsCount()
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.
repeated string advanced_ocr_options = 5;String getAdvancedOcrOptions(int index)
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.
repeated string advanced_ocr_options = 5;index - The index of the element to return.com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index)
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.
repeated string advanced_ocr_options = 5;index - The index of the value to return.boolean getEnableSymbol()
Includes symbol level OCR information if set to true.
bool enable_symbol = 6;@Deprecated boolean getComputeStyleInfo()
Turn on font identification model and return font style information. Deprecated, use [PremiumFeatures.compute_style_info][google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures.compute_style_info] instead.
bool compute_style_info = 8 [deprecated = true];boolean getDisableCharacterBoxesDetection()
Turn off character box detector in OCR engine. Character box detection is enabled by default in OCR 2.0 (and later) processors.
bool disable_character_boxes_detection = 10;boolean hasPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;OcrConfig.PremiumFeatures getPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;OcrConfig.PremiumFeaturesOrBuilder getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;Copyright © 2024 Google LLC. All rights reserved.