Skip to content

Commit ad64930

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add TextDetectionParams.advanced_ocr_options
Advanced OCR options allow users to customize behavior for a specific OCR engine version. PiperOrigin-RevId: 465402148
1 parent 60a0fa7 commit ad64930

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

google/cloud/vision/v1/image_annotator.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,9 @@ message TextDetectionParams {
654654
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
655655
// score for TEXT_DETECTION as well.
656656
bool enable_text_detection_confidence_score = 9;
657+
658+
// A list of advanced OCR options to fine-tune OCR behavior.
659+
repeated string advanced_ocr_options = 11;
657660
}
658661

659662
// Image context and/or feature-specific parameters.

google/cloud/vision/v1p1beta1/image_annotator.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ message TextDetectionParams {
498498
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
499499
// score for TEXT_DETECTION as well.
500500
bool enable_text_detection_confidence_score = 9;
501+
502+
// A list of advanced OCR options to fine-tune OCR behavior.
503+
repeated string advanced_ocr_options = 11;
501504
}
502505

503506
// Image context and/or feature-specific parameters.

google/cloud/vision/v1p2beta1/image_annotator.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ message TextDetectionParams {
529529
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
530530
// score for TEXT_DETECTION as well.
531531
bool enable_text_detection_confidence_score = 9;
532+
533+
// A list of advanced OCR options to fine-tune OCR behavior.
534+
repeated string advanced_ocr_options = 11;
532535
}
533536

534537
// Image context and/or feature-specific parameters.

google/cloud/vision/v1p3beta1/image_annotator.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ message TextDetectionParams {
557557
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
558558
// score for TEXT_DETECTION as well.
559559
bool enable_text_detection_confidence_score = 9;
560+
561+
// A list of advanced OCR options to fine-tune OCR behavior.
562+
repeated string advanced_ocr_options = 11;
560563
}
561564

562565
// Image context and/or feature-specific parameters.

google/cloud/vision/v1p4beta1/image_annotator.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ message TextDetectionParams {
628628
// DOCUMENT_TEXT_DETECTION result. Set the flag to true to include confidence
629629
// score for TEXT_DETECTION as well.
630630
bool enable_text_detection_confidence_score = 9;
631+
632+
// A list of advanced OCR options to fine-tune OCR behavior.
633+
repeated string advanced_ocr_options = 11;
631634
}
632635

633636
// Image context and/or feature-specific parameters.

0 commit comments

Comments
 (0)