Cloud Vision V1 API - Class Google::Cloud::Vision::V1::TextDetectionParams (v1.0.1)

Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::TextDetectionParams.

Parameters for text detections. This is used to control TEXT_DETECTION and DOCUMENT_TEXT_DETECTION features.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#advanced_ocr_options

def advanced_ocr_options() -> ::Array<::String>
Returns
  • (::Array<::String>) —

    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.

#advanced_ocr_options=

def advanced_ocr_options=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) —

    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.
Returns
  • (::Array<::String>) —

    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.

#enable_text_detection_confidence_score

def enable_text_detection_confidence_score() -> ::Boolean
Returns
  • (::Boolean) — 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.

#enable_text_detection_confidence_score=

def enable_text_detection_confidence_score=(value) -> ::Boolean
Parameter
  • value (::Boolean) — 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.
Returns
  • (::Boolean) — 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.