From fbf7ba6f1a5259c93ff3b32a968643e2f7b4b454 Mon Sep 17 00:00:00 2001 From: kinaryml Date: Tue, 25 Oct 2022 23:15:16 -0700 Subject: [PATCH] Reverted some changes to rect --- mediapipe/tasks/python/components/containers/rect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mediapipe/tasks/python/components/containers/rect.py b/mediapipe/tasks/python/components/containers/rect.py index 4b943a551..510561592 100644 --- a/mediapipe/tasks/python/components/containers/rect.py +++ b/mediapipe/tasks/python/components/containers/rect.py @@ -26,6 +26,7 @@ _NormalizedRectProto = rect_pb2.NormalizedRect @dataclasses.dataclass class Rect: """A rectangle with rotation in image coordinates. + Attributes: x_center : The X coordinate of the top-left corner, in pixels. y_center : The Y coordinate of the top-left corner, in pixels. width: The width of the rectangle, in pixels. @@ -80,8 +81,11 @@ class Rect: @dataclasses.dataclass class NormalizedRect: """A rectangle with rotation in normalized coordinates. + The values of box + center location and size are within [0, 1]. + Attributes: x_center : The X normalized coordinate of the top-left corner. y_center : The Y normalized coordinate of the top-left corner. width: The width of the rectangle.