public final class OcrConfig extends com.google.protobuf.GeneratedMessageV3 implements OcrConfigOrBuilder
Config for Document OCR.Protobuf type
google.cloud.documentai.v1beta3.OcrConfig| Modifier and Type | Class and Description |
|---|---|
static class |
OcrConfig.Builder
Config for Document OCR.
|
static class |
OcrConfig.Hints
Hints for OCR Engine
Protobuf type
google.cloud.documentai.v1beta3.OcrConfig.Hints |
static interface |
OcrConfig.HintsOrBuilder |
static class |
OcrConfig.PremiumFeatures
Configurations for premium OCR features.
|
static interface |
OcrConfig.PremiumFeaturesOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ADVANCED_OCR_OPTIONS_FIELD_NUMBER |
static int |
COMPUTE_STYLE_INFO_FIELD_NUMBER |
static int |
DISABLE_CHARACTER_BOXES_DETECTION_FIELD_NUMBER |
static int |
ENABLE_IMAGE_QUALITY_SCORES_FIELD_NUMBER |
static int |
ENABLE_NATIVE_PDF_PARSING_FIELD_NUMBER |
static int |
ENABLE_SYMBOL_FIELD_NUMBER |
static int |
HINTS_FIELD_NUMBER |
static int |
PREMIUM_FEATURES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
com.google.protobuf.ProtocolStringList |
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
|
static OcrConfig |
getDefaultInstance() |
OcrConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<OcrConfig> |
getParserForType() |
OcrConfig.PremiumFeatures |
getPremiumFeatures()
Configurations for premium OCR features.
|
OcrConfig.PremiumFeaturesOrBuilder |
getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
|
int |
getSerializedSize() |
int |
hashCode() |
boolean |
hasHints()
Hints for the OCR model.
|
boolean |
hasPremiumFeatures()
Configurations for premium OCR features.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static OcrConfig.Builder |
newBuilder() |
static OcrConfig.Builder |
newBuilder(OcrConfig prototype) |
OcrConfig.Builder |
newBuilderForType() |
protected OcrConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static OcrConfig |
parseDelimitedFrom(InputStream input) |
static OcrConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OcrConfig |
parseFrom(byte[] data) |
static OcrConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OcrConfig |
parseFrom(ByteBuffer data) |
static OcrConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OcrConfig |
parseFrom(com.google.protobuf.ByteString data) |
static OcrConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OcrConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OcrConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OcrConfig |
parseFrom(InputStream input) |
static OcrConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OcrConfig> |
parser() |
OcrConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int HINTS_FIELD_NUMBER
public static final int ENABLE_NATIVE_PDF_PARSING_FIELD_NUMBER
public static final int ENABLE_IMAGE_QUALITY_SCORES_FIELD_NUMBER
public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER
public static final int ENABLE_SYMBOL_FIELD_NUMBER
public static final int COMPUTE_STYLE_INFO_FIELD_NUMBER
public static final int DISABLE_CHARACTER_BOXES_DETECTION_FIELD_NUMBER
public static final int PREMIUM_FEATURES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;hasHints in interface OcrConfigOrBuilderpublic OcrConfig.Hints getHints()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;getHints in interface OcrConfigOrBuilderpublic OcrConfig.HintsOrBuilder getHintsOrBuilder()
Hints for the OCR model.
.google.cloud.documentai.v1beta3.OcrConfig.Hints hints = 2;getHintsOrBuilder in interface OcrConfigOrBuilderpublic 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;getEnableNativePdfParsing in interface OcrConfigOrBuilderpublic 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;getEnableImageQualityScores in interface OcrConfigOrBuilderpublic com.google.protobuf.ProtocolStringList 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;getAdvancedOcrOptionsList in interface OcrConfigOrBuilderpublic 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;getAdvancedOcrOptionsCount in interface OcrConfigOrBuilderpublic 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;getAdvancedOcrOptions in interface OcrConfigOrBuilderindex - The index of the element to return.public 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;getAdvancedOcrOptionsBytes in interface OcrConfigOrBuilderindex - The index of the value to return.public boolean getEnableSymbol()
Includes symbol level OCR information if set to true.
bool enable_symbol = 6;getEnableSymbol in interface OcrConfigOrBuilder@Deprecated public 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];getComputeStyleInfo in interface OcrConfigOrBuilderpublic 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;getDisableCharacterBoxesDetection in interface OcrConfigOrBuilderpublic boolean hasPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;hasPremiumFeatures in interface OcrConfigOrBuilderpublic OcrConfig.PremiumFeatures getPremiumFeatures()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;getPremiumFeatures in interface OcrConfigOrBuilderpublic OcrConfig.PremiumFeaturesOrBuilder getPremiumFeaturesOrBuilder()
Configurations for premium OCR features.
.google.cloud.documentai.v1beta3.OcrConfig.PremiumFeatures premium_features = 11;getPremiumFeaturesOrBuilder in interface OcrConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OcrConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OcrConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static OcrConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OcrConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OcrConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OcrConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OcrConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OcrConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OcrConfig.Builder newBuilder()
public static OcrConfig.Builder newBuilder(OcrConfig prototype)
public OcrConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OcrConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OcrConfig getDefaultInstance()
public static com.google.protobuf.Parser<OcrConfig> parser()
public com.google.protobuf.Parser<OcrConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OcrConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.