From 8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 17 Aug 2021 08:56:06 -0400 Subject: Started work on bounding boxes --- src/labeller.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/labeller.h') diff --git a/src/labeller.h b/src/labeller.h index 4248e2a..e0dc090 100644 --- a/src/labeller.h +++ b/src/labeller.h @@ -8,11 +8,16 @@ namespace backend { struct labeller_impl; + struct rect { + int x1=0, x2=0, y1=0, y2=0; + }; + struct label { label() {} label(const std::string& name, double time) : name(name), time(time) {} std::string name; double time; + rect location; }; class labeller { @@ -20,6 +25,7 @@ namespace backend { labeller(const std::filesystem::path& savepath); std::pair getSurrounding(double time) const; std::vector getLabels() const; + std::vector getRectangleLabels() const; void applyLabel(std::string name, double time); void deleteLabel(double time); // Deletes closest to time, last added if ties void undo(); -- cgit v1.2.3