Interface TextDetectionParamsOrBuilder

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

@Generated public interface TextDetectionParamsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    A list of advanced OCR options to further fine-tune OCR behavior.
    com.google.protobuf.ByteString
    A list of advanced OCR options to further fine-tune OCR behavior.
    int
    A list of advanced OCR options to further fine-tune OCR behavior.
    A list of advanced OCR options to further fine-tune OCR behavior.
    boolean
    By default, Cloud Vision API only includes confidence score for DOCUMENT_TEXT_DETECTION result.

    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 Details

    • 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 further fine-tune OCR behavior.
       Current valid values are:
      
       - `legacy_layout`: a heuristics layout detection algorithm, which serves as
       an alternative to the current ML-based layout detection algorithm.
       Customers can choose the best suitable layout algorithm based on their
       situation.
       
      repeated string advanced_ocr_options = 11;
      Returns:
      A list containing the advancedOcrOptions.
    • getAdvancedOcrOptionsCount

      int getAdvancedOcrOptionsCount()
       A list of advanced OCR options to further fine-tune OCR behavior.
       Current valid values are:
      
       - `legacy_layout`: a heuristics layout detection algorithm, which serves as
       an alternative to the current ML-based layout detection algorithm.
       Customers can choose the best suitable layout algorithm based on their
       situation.
       
      repeated string advanced_ocr_options = 11;
      Returns:
      The count of advancedOcrOptions.
    • getAdvancedOcrOptions

      String getAdvancedOcrOptions(int index)
       A list of advanced OCR options to further fine-tune OCR behavior.
       Current valid values are:
      
       - `legacy_layout`: a heuristics layout detection algorithm, which serves as
       an alternative to the current ML-based layout detection algorithm.
       Customers can choose the best suitable layout algorithm based on their
       situation.
       
      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 further fine-tune OCR behavior.
       Current valid values are:
      
       - `legacy_layout`: a heuristics layout detection algorithm, which serves as
       an alternative to the current ML-based layout detection algorithm.
       Customers can choose the best suitable layout algorithm based on their
       situation.
       
      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.