summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/preview.h
diff options
context:
space:
mode:
authorStéphane Lenclud <github@lenclud.com>2019-04-16 12:23:22 +0200
committerStéphane Lenclud <github@lenclud.com>2019-04-24 18:46:12 +0200
commit1fb6122dce1a5bc117e925006d87828a52cfecb6 (patch)
tree0c6250bc59b93cdc92a4df75ab77d0e88690e8b2 /tracker-easy/preview.h
parent5e2f6182f41d7c027f58b110bc8c6e539a50ac2c (diff)
Easy Tracker: Cheap way to dramatically improve CPU usage. Now displaying FPS info on frame preview.
Diffstat (limited to 'tracker-easy/preview.h')
-rw-r--r--tracker-easy/preview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tracker-easy/preview.h b/tracker-easy/preview.h
index 979d272b..74ef89aa 100644
--- a/tracker-easy/preview.h
+++ b/tracker-easy/preview.h
@@ -22,10 +22,11 @@ namespace EasyTracker
Preview& operator=(const cv::Mat& frame);
QImage get_bitmap();
void DrawCross(cv::Point aPoint);
+ void DrawInfo(const std::string& aString);
operator cv::Mat&() { return iFrameResized; }
operator cv::Mat const&() const { return iFrameResized; }
-
+
private:
static void ensure_size(cv::Mat& frame, int w, int h, int type);