Package com.google.cloud.documentai.v1
Interface OcrConfig.HintsOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OcrConfig.Hints
,OcrConfig.Hints.Builder
- Enclosing class:
- OcrConfig
public static interface OcrConfig.HintsOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getLanguageHints(int index)
List of BCP-47 language codes to use for OCR.com.google.protobuf.ByteString
getLanguageHintsBytes(int index)
List of BCP-47 language codes to use for OCR.int
getLanguageHintsCount()
List of BCP-47 language codes to use for OCR.List<String>
getLanguageHintsList()
List of BCP-47 language codes to use for OCR.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getLanguageHintsList
List<String> getLanguageHintsList()
List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
repeated string language_hints = 1;
- Returns:
- A list containing the languageHints.
-
getLanguageHintsCount
int getLanguageHintsCount()
List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
repeated string language_hints = 1;
- Returns:
- The count of languageHints.
-
getLanguageHints
String getLanguageHints(int index)
List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
repeated string language_hints = 1;
- Parameters:
index
- The index of the element to return.- Returns:
- The languageHints at the given index.
-
getLanguageHintsBytes
com.google.protobuf.ByteString getLanguageHintsBytes(int index)
List of BCP-47 language codes to use for OCR. In most cases, not specifying it yields the best results since it enables automatic language detection. For languages based on the Latin alphabet, setting hints is not needed. In rare cases, when the language of the text in the image is known, setting a hint will help get better results (although it will be a significant hindrance if the hint is wrong).
repeated string language_hints = 1;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the languageHints at the given index.
-
-