geometry.proto 1.7 KB

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