From fcb23fd99d0f9c13d1d1961b77a9f25b8315b3d1 Mon Sep 17 00:00:00 2001 From: MediaPipe Team Date: Thu, 20 Jun 2019 22:51:29 -0700 Subject: [PATCH] Project import generated by Copybara. PiperOrigin-RevId: 254337988 --- README.md | 3 +-- mediapipe/framework/formats/rect.proto | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4034efefb..6e178acdc 100644 --- a/README.md +++ b/README.md @@ -20,8 +20,7 @@ See mobile and desktop [examples](mediapipe/docs/examples.md). A web-based visualizer is hosted on [MediaPipe Visualizer](https://mediapipe-viz.appspot.com/). Please also see instructions [here](mediapipe/docs/visualizer.md). ## Publications -* [MediaPipe: A Framework for Perceiving and Augmenting Reality](http://mixedreality.cs.cornell.edu/s/22_crv2_MediaPipe_CVPR_CV4ARVR_Workshop_2019_v2.pdf), extended abstract for [Third Workshop on Computer Vision for AR/VR](https://sites.google.com/corp/view/perception-cv4arvr/mediapipe). -* Full-length draft: [MediaPipe: A Framework for Building Perception Pipelines](https://tiny.cc/mediapipe_paper) +* [MediaPipe: A Framework for Building Perception Pipelines](https://tiny.cc/mediapipe_paper) (draft) ## Contributing We welcome contributions. Please follow these [guidelines](./CONTRIBUTING.md). diff --git a/mediapipe/framework/formats/rect.proto b/mediapipe/framework/formats/rect.proto index 1fe677977..9a33a0e39 100644 --- a/mediapipe/framework/formats/rect.proto +++ b/mediapipe/framework/formats/rect.proto @@ -30,3 +30,19 @@ message Rect { // Rotation angle is counter-clockwise in radian. optional float rotation = 5 [default = 0.0]; } + +// A rectangle with rotation in normalized coordinates. The values of box center +// location and size are within [0, 1]. +message NormalizedRect { + // Location of the center of the rectangle in image coordinates. + // The (0.0, 0.0) point is at the (top, left) corner. + required float x_center = 1; + required float y_center = 2; + + // Size of the rectangle. + required float height = 3; + required float width = 4; + + // Rotation angle is counter-clockwise in radian. + optional float rotation = 5 [default = 0.0]; +}