Package com.google.cloud.vision.v1
Interface TextDetectionParamsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
TextDetectionParams
,TextDetectionParams.Builder
public interface TextDetectionParamsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAdvancedOcrOptions(int index)
A list of advanced OCR options to fine-tune OCR behavior.com.google.protobuf.ByteString
getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to fine-tune OCR behavior.int
getAdvancedOcrOptionsCount()
A list of advanced OCR options to fine-tune OCR behavior.List<String>
getAdvancedOcrOptionsList()
A list of advanced OCR options to fine-tune OCR behavior.boolean
getEnableTextDetectionConfidenceScore()
By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getEnableTextDetectionConfidenceScore
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:
- The enableTextDetectionConfidenceScore.
-
getAdvancedOcrOptionsList
List<String> getAdvancedOcrOptionsList()
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
- Returns:
- A list containing the advancedOcrOptions.
-
getAdvancedOcrOptionsCount
int getAdvancedOcrOptionsCount()
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
- Returns:
- The count of advancedOcrOptions.
-
getAdvancedOcrOptions
String getAdvancedOcrOptions(int index)
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
- Parameters:
index
- The index of the element to return.- Returns:
- The advancedOcrOptions at the given index.
-
getAdvancedOcrOptionsBytes
com.google.protobuf.ByteString getAdvancedOcrOptionsBytes(int index)
A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the advancedOcrOptions at the given index.
-
-