xref: /aosp_15_r20/external/googleapis/google/cloud/automl/v1/geometry.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2021 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.automl.v1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.AutoML.V1";
20*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/automl/apiv1/automlpb;automlpb";
21*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
22*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.automl.v1";
23*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\AutoMl\\V1";
24*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::AutoML::V1";
25*d5c09012SAndroid Build Coastguard Worker
26*d5c09012SAndroid Build Coastguard Worker// A vertex represents a 2D point in the image.
27*d5c09012SAndroid Build Coastguard Worker// The normalized vertex coordinates are between 0 to 1 fractions relative to
28*d5c09012SAndroid Build Coastguard Worker// the original plane (image, video). E.g. if the plane (e.g. whole image) would
29*d5c09012SAndroid Build Coastguard Worker// have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
30*d5c09012SAndroid Build Coastguard Worker// be at the position (1, 6) on that plane.
31*d5c09012SAndroid Build Coastguard Workermessage NormalizedVertex {
32*d5c09012SAndroid Build Coastguard Worker  // Required. Horizontal coordinate.
33*d5c09012SAndroid Build Coastguard Worker  float x = 1;
34*d5c09012SAndroid Build Coastguard Worker
35*d5c09012SAndroid Build Coastguard Worker  // Required. Vertical coordinate.
36*d5c09012SAndroid Build Coastguard Worker  float y = 2;
37*d5c09012SAndroid Build Coastguard Worker}
38*d5c09012SAndroid Build Coastguard Worker
39*d5c09012SAndroid Build Coastguard Worker// A bounding polygon of a detected object on a plane.
40*d5c09012SAndroid Build Coastguard Worker// On output both vertices and normalized_vertices are provided.
41*d5c09012SAndroid Build Coastguard Worker// The polygon is formed by connecting vertices in the order they are listed.
42*d5c09012SAndroid Build Coastguard Workermessage BoundingPoly {
43*d5c09012SAndroid Build Coastguard Worker  // Output only . The bounding polygon normalized vertices.
44*d5c09012SAndroid Build Coastguard Worker  repeated NormalizedVertex normalized_vertices = 2;
45*d5c09012SAndroid Build Coastguard Worker}
46