summaryrefslogtreecommitdiffhomepage
path: root/tracker-easy/preview.cpp
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.cpp
parent5e2f6182f41d7c027f58b110bc8c6e539a50ac2c (diff)
Easy Tracker: Cheap way to dramatically improve CPU usage. Now displaying FPS info on frame preview.
Diffstat (limited to 'tracker-easy/preview.cpp')
-rw-r--r--tracker-easy/preview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tracker-easy/preview.cpp b/tracker-easy/preview.cpp
index 364e45ca..4d6b7c61 100644
--- a/tracker-easy/preview.cpp
+++ b/tracker-easy/preview.cpp
@@ -100,6 +100,11 @@ namespace EasyTracker
QImage::Format_ARGB32);
}
+ void Preview::DrawInfo(const std::string& aString)
+ {
+ cv::putText(iFrameRgb, aString, cv::Point(4,iFrameRgb.size().height-4), cv::FONT_HERSHEY_PLAIN, 2, cv::Scalar(0, 255, 0),2);
+ }
+
void Preview::DrawCross(cv::Point aPoint)
{
constexpr int len = 9;