aboutsummaryrefslogtreecommitdiff
path: root/src/labeller.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-08-17 08:56:06 -0400
committerYour Name <you@example.com>2021-08-17 08:56:06 -0400
commit8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1 (patch)
tree238d013eb3cfe2dc170a52dec3bfcd72a1e468ca /src/labeller.cc
parent8c884838ced928d29a8436be8b2808766c5a1e53 (diff)
downloadannotator-8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1.tar.gz
annotator-8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1.tar.bz2
annotator-8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1.zip
Started work on bounding boxes
Diffstat (limited to 'src/labeller.cc')
-rw-r--r--src/labeller.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/labeller.cc b/src/labeller.cc
index 64da2d7..024b720 100644
--- a/src/labeller.cc
+++ b/src/labeller.cc
@@ -6,6 +6,7 @@
namespace backend {
struct labeller_impl {
std::vector<std::string> labels;
+ std::vector<std::string> rectangleLabels;
std::vector<label> annotations;
// Bool in undo/redo buffers is whether was applied or deleted
std::vector<std::pair<bool, label>> undoBuffer;
@@ -16,6 +17,7 @@ namespace backend {
labeller::labeller(const std::filesystem::path& savepath) {
data = std::shared_ptr<labeller_impl>(new labeller_impl);
data->labels = settings::getLabels();
+ data->rectangleLabels = settings::getRectangleLabels();
data->savepath = savepath;
}
@@ -39,6 +41,10 @@ namespace backend {
return data->labels;
}
+ std::vector<std::string> labeller::getRectangleLabels() const {
+ return data->rectangleLabels;
+ }
+
void appLab(std::vector<label>& annotations, label lab) {
annotations.push_back(lab);
}