aboutsummaryrefslogtreecommitdiff
path: root/src/labeller.h
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-08-17 16:29:44 -0400
committerYour Name <you@example.com>2021-08-17 16:29:44 -0400
commite4ec24000b7ed45490eaa988c94546f480114933 (patch)
treeed8a9bb992c2ffc3e49fdec2abd478d1c07f90e2 /src/labeller.h
parentab5e941dcaedcf2cc896eed1ea257c59780fdb59 (diff)
downloadannotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.gz
annotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.bz2
annotator-e4ec24000b7ed45490eaa988c94546f480114933.zip
Finished rectangle annotation code
Diffstat (limited to 'src/labeller.h')
-rw-r--r--src/labeller.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/labeller.h b/src/labeller.h
index cf108f5..37a2eda 100644
--- a/src/labeller.h
+++ b/src/labeller.h
@@ -13,6 +13,9 @@ namespace backend {
bool nonzero() const {
return (x1 != 0 || x1 != 0 || y1 != 0 || y2 != 0);
}
+ std::string string() {
+ return std::to_string(x1) + "," + std::to_string(y1) + "," + std::to_string(x2) + "," + std::to_string(y2);
+ }
};
struct label {