Class TextDetectionParams (3.6.0)

public final class TextDetectionParams extends GeneratedMessageV3 implements TextDetectionParamsOrBuilder

Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.

Protobuf type google.cloud.vision.v1p3beta1.TextDetectionParams

Static Fields

ADVANCED_OCR_OPTIONS_FIELD_NUMBER

public static final int ADVANCED_OCR_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER

public static final int ENABLE_TEXT_DETECTION_CONFIDENCE_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TextDetectionParams getDefaultInstance()
Returns
TypeDescription
TextDetectionParams

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TextDetectionParams.Builder newBuilder()
Returns
TypeDescription
TextDetectionParams.Builder

newBuilder(TextDetectionParams prototype)

public static TextDetectionParams.Builder newBuilder(TextDetectionParams prototype)
Parameter
NameDescription
prototypeTextDetectionParams
Returns
TypeDescription
TextDetectionParams.Builder

parseDelimitedFrom(InputStream input)

public static TextDetectionParams parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TextDetectionParams parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TextDetectionParams parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TextDetectionParams parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TextDetectionParams parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TextDetectionParams parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TextDetectionParams parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TextDetectionParams
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TextDetectionParams> parser()
Returns
TypeDescription
Parser<TextDetectionParams>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdvancedOcrOptions(int index)

public String getAdvancedOcrOptions(int index)

A list of advanced OCR options to fine-tune OCR behavior.

repeated string advanced_ocr_options = 11;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The advancedOcrOptions at the given index.

getAdvancedOcrOptionsBytes(int index)

public ByteString getAdvancedOcrOptionsBytes(int index)

A list of advanced OCR options to fine-tune OCR behavior.

repeated string advanced_ocr_options = 11;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the advancedOcrOptions at the given index.

getAdvancedOcrOptionsCount()

public int getAdvancedOcrOptionsCount()

A list of advanced OCR options to fine-tune OCR behavior.

repeated string advanced_ocr_options = 11;

Returns
TypeDescription
int

The count of advancedOcrOptions.

getAdvancedOcrOptionsList()

public ProtocolStringList getAdvancedOcrOptionsList()

A list of advanced OCR options to fine-tune OCR behavior.

repeated string advanced_ocr_options = 11;

Returns
TypeDescription
ProtocolStringList

A list containing the advancedOcrOptions.

getDefaultInstanceForType()

public TextDetectionParams getDefaultInstanceForType()
Returns
TypeDescription
TextDetectionParams

getEnableTextDetectionConfidenceScore()

public boolean getEnableTextDetectionConfidenceScore()

By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence score for TEXT_DETECTION as well.

bool enable_text_detection_confidence_score = 9;

Returns
TypeDescription
boolean

The enableTextDetectionConfidenceScore.

getParserForType()

public Parser<TextDetectionParams> getParserForType()
Returns
TypeDescription
Parser<TextDetectionParams>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TextDetectionParams.Builder newBuilderForType()
Returns
TypeDescription
TextDetectionParams.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TextDetectionParams.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TextDetectionParams.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TextDetectionParams.Builder toBuilder()
Returns
TypeDescription
TextDetectionParams.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException