|
| 1 | +// Copyright 2018 Google Inc. |
| 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 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.cloud.vision.v1p2beta1; |
| 18 | + |
| 19 | +option cc_enable_arenas = true; |
| 20 | +option go_package = "google.golang.org/genproto/googleapis/cloud/vision/v1p2beta1;vision"; |
| 21 | +option java_multiple_files = true; |
| 22 | +option java_outer_classname = "GeometryProto"; |
| 23 | +option java_package = "com.google.cloud.vision.v1p2beta1"; |
| 24 | + |
| 25 | + |
| 26 | +// A vertex represents a 2D point in the image. |
| 27 | +// NOTE: the vertex coordinates are in the same scale as the original image. |
| 28 | +message Vertex { |
| 29 | + // X coordinate. |
| 30 | + int32 x = 1; |
| 31 | + |
| 32 | + // Y coordinate. |
| 33 | + int32 y = 2; |
| 34 | +} |
| 35 | + |
| 36 | +// A bounding polygon for the detected image annotation. |
| 37 | +message BoundingPoly { |
| 38 | + // The bounding polygon vertices. |
| 39 | + repeated Vertex vertices = 1; |
| 40 | +} |
| 41 | + |
| 42 | +// A 3D position in the image, used primarily for Face detection landmarks. |
| 43 | +// A valid Position must have both x and y coordinates. |
| 44 | +// The position coordinates are in the same scale as the original image. |
| 45 | +message Position { |
| 46 | + // X coordinate. |
| 47 | + float x = 1; |
| 48 | + |
| 49 | + // Y coordinate. |
| 50 | + float y = 2; |
| 51 | + |
| 52 | + // Z coordinate (or depth). |
| 53 | + float z = 3; |
| 54 | +} |
0 commit comments