Interface TextDetectionParamsOrBuilder (3.11.0)

public interface TextDetectionParamsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdvancedOcrOptions(int index)

public abstract 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 abstract 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 abstract 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 abstract List<String> getAdvancedOcrOptionsList()

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

repeated string advanced_ocr_options = 11;

Returns
TypeDescription
List<String>

A list containing the advancedOcrOptions.

getEnableTextDetectionConfidenceScore()

public abstract 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.