2
0

geometry.proto 1.5 KB

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