aboutsummaryrefslogtreecommitdiff
path: root/src/playback.cc
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/playback.cc
parentab5e941dcaedcf2cc896eed1ea257c59780fdb59 (diff)
downloadannotator-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.cc4
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) {