diff options
author | Your Name <you@example.com> | 2021-08-17 16:29:44 -0400 |
---|---|---|
committer | Your Name <you@example.com> | 2021-08-17 16:29:44 -0400 |
commit | e4ec24000b7ed45490eaa988c94546f480114933 (patch) | |
tree | ed8a9bb992c2ffc3e49fdec2abd478d1c07f90e2 /src/playback.cc | |
parent | ab5e941dcaedcf2cc896eed1ea257c59780fdb59 (diff) | |
download | annotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.gz annotator-e4ec24000b7ed45490eaa988c94546f480114933.tar.bz2 annotator-e4ec24000b7ed45490eaa988c94546f480114933.zip |
Finished rectangle annotation code
Diffstat (limited to 'src/playback.cc')
-rw-r--r-- | src/playback.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playback.cc b/src/playback.cc index bbc2649..700567a 100644 --- a/src/playback.cc +++ b/src/playback.cc @@ -33,12 +33,12 @@ namespace frontend { } void playback::display(const std::string& windowName, const backend::rect &r) const { - cv::Mat curr(data->images[data->frameNum]); + cv::Mat curr = data->images[data->frameNum].clone(); if(r.nonzero()) { // Update with the rectangle cv::rectangle(curr, cv::Point(r.x1, r.y1), cv::Point(r.x2, r.y2), cv::Scalar(255, 0, 0), 2, cv::LINE_8); } - cv::imshow(windowName, data->images[data->frameNum]); + cv::imshow(windowName, curr); } bool playback::seekFrame(std::size_t frameNum) { |