Class TextDetectionParams (3.7.1)

TextDetectionParams(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
enable_text_detection_confidence_score bool
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.
advanced_ocr_options MutableSequence[str]
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.