diff --git a/google/cloud/vision/v1/image_annotator.proto b/google/cloud/vision/v1/image_annotator.proto index e75ca766..7f13e35c 100644 --- a/google/cloud/vision/v1/image_annotator.proto +++ b/google/cloud/vision/v1/image_annotator.proto @@ -664,6 +664,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // 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; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -687,6 +697,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/google/cloud/vision/v1p1beta1/image_annotator.proto b/google/cloud/vision/v1p1beta1/image_annotator.proto index 4f5ada70..daf6a2d2 100644 --- a/google/cloud/vision/v1p1beta1/image_annotator.proto +++ b/google/cloud/vision/v1p1beta1/image_annotator.proto @@ -490,6 +490,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // 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; +} + // Image context and/or feature-specific parameters. message ImageContext { // lat/long rectangle that specifies the location of the image. @@ -510,6 +520,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/google/cloud/vision/v1p2beta1/image_annotator.proto b/google/cloud/vision/v1p2beta1/image_annotator.proto index 87ae9f2c..eaf5abf0 100644 --- a/google/cloud/vision/v1p2beta1/image_annotator.proto +++ b/google/cloud/vision/v1p2beta1/image_annotator.proto @@ -521,6 +521,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // 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; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -541,6 +551,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/google/cloud/vision/v1p3beta1/image_annotator.proto b/google/cloud/vision/v1p3beta1/image_annotator.proto index b63aa2b2..c865ff53 100644 --- a/google/cloud/vision/v1p3beta1/image_annotator.proto +++ b/google/cloud/vision/v1p3beta1/image_annotator.proto @@ -549,6 +549,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // 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; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -572,6 +582,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided diff --git a/google/cloud/vision/v1p4beta1/image_annotator.proto b/google/cloud/vision/v1p4beta1/image_annotator.proto index 9c18cccd..07217f39 100644 --- a/google/cloud/vision/v1p4beta1/image_annotator.proto +++ b/google/cloud/vision/v1p4beta1/image_annotator.proto @@ -620,6 +620,16 @@ message WebDetectionParams { bool include_geo_results = 2; } +// Parameters for text detections. This is used to control TEXT_DETECTION and +// DOCUMENT_TEXT_DETECTION features. +message TextDetectionParams { + + // 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; +} + // Image context and/or feature-specific parameters. message ImageContext { // Not used. @@ -646,6 +656,9 @@ message ImageContext { // Parameters for web detection. WebDetectionParams web_detection_params = 6; + + // Parameters for text detection and document text detection. + TextDetectionParams text_detection_params = 12; } // Request for performing Google Cloud Vision API tasks over a user-provided