From db7f01d9565ac5ff7a1b79d75ce4af67560cc38e Mon Sep 17 00:00:00 2001 From: Ping-Lin Chang Date: Wed, 14 Sep 2022 07:45:34 +0800 Subject: [PATCH] chore(model): simplify list of objects naming --- vdp/model/v1alpha/detection_output.proto | 4 ++-- vdp/model/v1alpha/keypoint_output.proto | 4 ++-- vdp/model/v1alpha/ocr_output.proto | 5 ++--- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/vdp/model/v1alpha/detection_output.proto b/vdp/model/v1alpha/detection_output.proto index 23e99700..edf6d7b9 100644 --- a/vdp/model/v1alpha/detection_output.proto +++ b/vdp/model/v1alpha/detection_output.proto @@ -19,7 +19,7 @@ message DetectionObject { // DetectionOutput represents the output of detection task message DetectionOutput { - // A list of bounding box objects - repeated DetectionObject detection_objects = 1 + // A list of detection objects + repeated DetectionObject objects = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ]; } diff --git a/vdp/model/v1alpha/keypoint_output.proto b/vdp/model/v1alpha/keypoint_output.proto index 0c5247aa..cfffd433 100644 --- a/vdp/model/v1alpha/keypoint_output.proto +++ b/vdp/model/v1alpha/keypoint_output.proto @@ -29,7 +29,7 @@ message KeypointObject { // KeypointOutput represents the output of keypoint detection task message KeypointOutput { - // Keypoint Objects - repeated KeypointObject keypoint_objects = 1 + // A list of keypoint objects + repeated KeypointObject objects = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ]; } diff --git a/vdp/model/v1alpha/ocr_output.proto b/vdp/model/v1alpha/ocr_output.proto index ba9ccd93..70df4249 100644 --- a/vdp/model/v1alpha/ocr_output.proto +++ b/vdp/model/v1alpha/ocr_output.proto @@ -19,7 +19,6 @@ message OcrObject { // OcrOutput represents the output of ocr task message OcrOutput { - // A list of bounding box objects - repeated OcrObject ocr_objects = 1 - [ (google.api.field_behavior) = OUTPUT_ONLY ]; + // A list of OCR objects + repeated OcrObject objects = 1 [ (google.api.field_behavior) = OUTPUT_ONLY ]; }