Interface OcrParamsOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    OcrParams, OcrParams.Builder

    public interface OcrParamsOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getLanguageHints​(int index)
      List of languages to use for OCR.
      com.google.protobuf.ByteString getLanguageHintsBytes​(int index)
      List of languages to use for OCR.
      int getLanguageHintsCount()
      List of languages to use for OCR.
      List<String> getLanguageHintsList()
      List of languages to use for OCR.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • 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 languages to use for OCR. In most cases, an empty value
         yields the best results since it enables automatic language detection. For
         languages based on the Latin alphabet, setting `language_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). Document processing returns an
         error if one or more of the specified languages is not one of the
         supported languages.
         
        repeated string language_hints = 1;
        Returns:
        A list containing the languageHints.
      • getLanguageHintsCount

        int getLanguageHintsCount()
         List of languages to use for OCR. In most cases, an empty value
         yields the best results since it enables automatic language detection. For
         languages based on the Latin alphabet, setting `language_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). Document processing returns an
         error if one or more of the specified languages is not one of the
         supported languages.
         
        repeated string language_hints = 1;
        Returns:
        The count of languageHints.
      • getLanguageHints

        String getLanguageHints​(int index)
         List of languages to use for OCR. In most cases, an empty value
         yields the best results since it enables automatic language detection. For
         languages based on the Latin alphabet, setting `language_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). Document processing returns an
         error if one or more of the specified languages is not one of the
         supported languages.
         
        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 languages to use for OCR. In most cases, an empty value
         yields the best results since it enables automatic language detection. For
         languages based on the Latin alphabet, setting `language_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). Document processing returns an
         error if one or more of the specified languages is not one of the
         supported languages.
         
        repeated string language_hints = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the languageHints at the given index.