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