-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because - support OCR task This commit - add OCR task output format
- Loading branch information
Showing
4 changed files
with
42 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package vdp.model.v1alpha; | ||
|
||
// Google api | ||
import "google/api/field_behavior.proto"; | ||
|
||
// BoundingBox represents the bounding box data structure | ||
message BoundingBox { | ||
// Bounding box top y-axis value | ||
float top = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
// Bounding box left x-axis value | ||
float left = 2 [ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
// Bounding box width value | ||
float width = 3 [ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
// Bounding box height value | ||
float height = 4 [ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
syntax = "proto3"; | ||
|
||
package vdp.model.v1alpha; | ||
|
||
import "vdp/model/v1alpha/common.proto"; | ||
|
||
// Google api | ||
import "google/api/field_behavior.proto"; | ||
|
||
// OcrOutput represents the output of ocr task | ||
message OcrOutput { | ||
// A list of bounding box text | ||
repeated BoundingBox bounding_boxes = 1 | ||
[ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
// A list of ocr texts | ||
repeated string texts = 2 | ||
[ (google.api.field_behavior) = OUTPUT_ONLY ]; | ||
} | ||
|