Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / google-proto-files / google / cloud / vision / v1p2beta1 / geometry.proto
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 // A vertex represents a 2D point in the image.
26 // NOTE: the vertex coordinates are in the same scale as the original image.
27 message Vertex {
28   // X coordinate.
29   int32 x = 1;
30
31   // Y coordinate.
32   int32 y = 2;
33 }
34
35 // A vertex represents a 2D point in the image.
36 // NOTE: the normalized vertex coordinates are relative to the original image
37 // and range from 0 to 1.
38 message NormalizedVertex {
39   // X coordinate.
40   float x = 1;
41
42   // Y coordinate.
43   float y = 2;
44 }
45
46 // A bounding polygon for the detected image annotation.
47 message BoundingPoly {
48   // The bounding polygon vertices.
49   repeated Vertex vertices = 1;
50
51   // The bounding polygon normalized vertices.
52   repeated NormalizedVertex normalized_vertices = 2;
53 }
54
55 // A 3D position in the image, used primarily for Face detection landmarks.
56 // A valid Position must have both x and y coordinates.
57 // The position coordinates are in the same scale as the original image.
58 message Position {
59   // X coordinate.
60   float x = 1;
61
62   // Y coordinate.
63   float y = 2;
64
65   // Z coordinate (or depth).
66   float z = 3;
67 }