diff options
| author | Stéphane Lenclud <github@lenclud.com> | 2019-04-16 12:23:22 +0200 |
|---|---|---|
| committer | Stéphane Lenclud <github@lenclud.com> | 2019-04-16 12:23:22 +0200 |
| commit | 7cb8067e3f6af0a61929f9049ff08a6b8642eb35 (patch) | |
| tree | 5b98daf8585810541634ef57e0e7ae4be1404691 /tracker-easy/preview.cpp | |
| parent | 6bd516592afa7e6c0a4181bd714accad693bd011 (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.cpp | 5 |
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; |
