# Class TextDetectionParams (3.15.0)

3.15.0 (latest) 3.14.0 3.13.0 3.12.1 3.11.0 3.10.2 3.9.0 3.8.1 3.7.4 3.6.0 3.5.0 3.4.5 3.3.1 3.2.0 3.1.4 3.0.0 2.8.0 2.7.3 2.6.3 2.5.0 2.4.4 2.3.2 2.2.0 2.1.0 2.0.0 1.0.2 0.42.0 0.41.0 0.40.0 0.39.0 0.38.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 ||
|---|---|
| **Name** | **Description** |
| `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. |