feat: Add TextDetectionParams.enable_text_detection_confidence_score

Add TextDetectionParams.enable_text_detection_confidence_score to ImageContext proto so customer can optionally get confidence score for TEXT_DETECTION feature

PiperOrigin-RevId: 344839236
This commit is contained in:
Google APIs 2020-11-30 10:25:20 -08:00 committed by Copybara-Service
parent 88ad4d34ce
commit 80a56e032b
5 changed files with 65 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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