geometry.proto 1.6 KB

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