com.google.cloud.documentai.v1beta3.OcrConfigOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-document-ai-v1beta3 Show documentation
Show all versions of proto-google-cloud-document-ai-v1beta3 Show documentation
PROTO library for proto-google-cloud-document-ai-v1beta3
/*
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/documentai/v1beta3/document_io.proto
// Protobuf Java Version: 3.25.2
package com.google.cloud.documentai.v1beta3;
public interface OcrConfigOrBuilder
extends
// @@protoc_insertion_point(interface_extends:google.cloud.documentai.v1beta3.OcrConfig)
com.google.protobuf.MessageOrBuilder {
/**
*
*
*
* Hints for the OCR model.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;
*
* @return Whether the hints field is set.
*/
boolean hasHints();
/**
*
*
*
* Hints for the OCR model.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;
*
* @return The hints.
*/
com.google.cloud.documentai.v1beta3.OcrConfig.Hints getHints();
/**
*
*
*
* Hints for the OCR model.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;
*/
com.google.cloud.documentai.v1beta3.OcrConfig.HintsOrBuilder getHintsOrBuilder();
/**
*
*
*
* 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;
*
* @return The enableNativePdfParsing.
*/
boolean getEnableNativePdfParsing();
/**
*
*
*
* 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;
*
* @return The enableImageQualityScores.
*/
boolean getEnableImageQualityScores();
/**
*
*
*
* 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;
*
* @return A list containing the advancedOcrOptions.
*/
java.util.List 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;
*
* @return The count of advancedOcrOptions.
*/
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;
*
* @param index The index of the element to return.
* @return The advancedOcrOptions at the given index.
*/
java.lang.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;
*
* @param index The index of the value to return.
* @return The bytes of the advancedOcrOptions at the given index.
*/
com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index);
/**
*
*
*
* Includes symbol level OCR information if set to true.
*
*
* bool enable_symbol = 6;
*
* @return The enableSymbol.
*/
boolean getEnableSymbol();
/**
*
*
*
* 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];
*
* @deprecated google.cloud.documentai.v1beta3.OcrConfig.compute_style_info is deprecated. See
* google/cloud/documentai/v1beta3/document_io.proto;l=165
* @return The computeStyleInfo.
*/
@java.lang.Deprecated
boolean getComputeStyleInfo();
/**
*
*
*
* 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;
*
* @return The disableCharacterBoxesDetection.
*/
boolean getDisableCharacterBoxesDetection();
/**
*
*
*
* Configurations for premium OCR features.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
*
* @return Whether the premiumFeatures field is set.
*/
boolean hasPremiumFeatures();
/**
*
*
*
* Configurations for premium OCR features.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
*
* @return The premiumFeatures.
*/
com.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures getPremiumFeatures();
/**
*
*
*
* Configurations for premium OCR features.
*
*
* .google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;
*/
com.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeaturesOrBuilder
getPremiumFeaturesOrBuilder();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy