Skip to content

Commit

Permalink
feat: Add TextDetectionParams.advanced_ocr_options
Browse files Browse the repository at this point in the history
Advanced OCR options allow users to customize behavior for a specific OCR engine
version.

PiperOrigin-RevId: 465402148
  • Loading branch information
Google APIs authored and Copybara-Service committed Aug 4, 2022
1 parent 60a0fa7 commit ad64930
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions google/cloud/vision/v1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,9 @@ message TextDetectionParams {
// 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;

// A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
}

// Image context and/or feature-specific parameters.
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/vision/v1p1beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,9 @@ message TextDetectionParams {
// 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;

// A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
}

// Image context and/or feature-specific parameters.
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/vision/v1p2beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ message TextDetectionParams {
// 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;

// A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
}

// Image context and/or feature-specific parameters.
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/vision/v1p3beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@ message TextDetectionParams {
// 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;

// A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
}

// Image context and/or feature-specific parameters.
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/vision/v1p4beta1/image_annotator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,9 @@ message TextDetectionParams {
// 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;

// A list of advanced OCR options to fine-tune OCR behavior.
repeated string advanced_ocr_options = 11;
}

// Image context and/or feature-specific parameters.
Expand Down

0 comments on commit ad64930

Please sign in to comment.