Interface TextDetectionParamsOrBuilder (3.49.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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

The enableTextDetectionConfidenceScore.