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