geometry.proto 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2021 Google LLC
  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.automl.v1;
  16. option csharp_namespace = "Google.Cloud.AutoML.V1";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/automl/v1;automl";
  18. option java_multiple_files = true;
  19. option java_package = "com.google.cloud.automl.v1";
  20. option php_namespace = "Google\\Cloud\\AutoMl\\V1";
  21. option ruby_package = "Google::Cloud::AutoML::V1";
  22. // A vertex represents a 2D point in the image.
  23. // The normalized vertex coordinates are between 0 to 1 fractions relative to
  24. // the original plane (image, video). E.g. if the plane (e.g. whole image) would
  25. // have size 10 x 20 then a point with normalized coordinates (0.1, 0.3) would
  26. // be at the position (1, 6) on that plane.
  27. message NormalizedVertex {
  28. // Required. Horizontal coordinate.
  29. float x = 1;
  30. // Required. Vertical coordinate.
  31. float y = 2;
  32. }
  33. // A bounding polygon of a detected object on a plane.
  34. // On output both vertices and normalized_vertices are provided.
  35. // The polygon is formed by connecting vertices in the order they are listed.
  36. message BoundingPoly {
  37. // Output only . The bounding polygon normalized vertices.
  38. repeated NormalizedVertex normalized_vertices = 2;
  39. }