diff options
| author | Your Name <you@example.com> | 2021-08-17 08:56:06 -0400 | 
|---|---|---|
| committer | Your Name <you@example.com> | 2021-08-17 08:56:06 -0400 | 
| commit | 8a6b5564c0fc37e6e556d04e17ddba86d4bd3dc1 (patch) | |
| tree | 238d013eb3cfe2dc170a52dec3bfcd72a1e468ca /src/labeller.cc | |
| parent | 8c884838ced928d29a8436be8b2808766c5a1e53 (diff) | |
| download | annotator-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.cc | 6 | 
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);      } | 
