Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
feat: Add TextDetectionParams.enable_text_detection_confidence_score (#…
Browse files Browse the repository at this point in the history
…850)

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

PiperOrigin-RevId: 344839236

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Nov 30 10:25:20 2020 -0800
Source-Repo: googleapis/googleapis
Source-Sha: 80a56e032bcc6a52cc41091c9a9ab527ec233f1f
Source-Link: googleapis/googleapis@80a56e0

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
  • Loading branch information
yoshi-automation and bcoe committed Jan 6, 2021
1 parent f354a9d commit c8f51a2
Show file tree
Hide file tree
Showing 9 changed files with 1,677 additions and 2 deletions.
13 changes: 13 additions & 0 deletions protos/google/cloud/vision/v1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions protos/google/cloud/vision/v1p1beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions protos/google/cloud/vision/v1p2beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions protos/google/cloud/vision/v1p3beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down
13 changes: 13 additions & 0 deletions protos/google/cloud/vision/v1p4beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit c8f51a2

Please sign in to comment.