public static interface OcrConfig.HintsOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and 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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofList<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;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;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;index - The index of the element to return.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;index - The index of the value to return.Copyright © 2024 Google LLC. All rights reserved.