diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-27 09:57:17 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-27 09:57:17 +0200 |
commit | 418c2f4f98ecac56098153e61e38d9694c4eb32c (patch) | |
tree | 60f42dd5aed760f8caa45f0c1a72c8e84e71ae2e /ftnoir_tracker_pt/point_extractor.cpp | |
parent | 8aac02ae5e90fe39b44f86d17098828aaea29ee8 (diff) |
pt: fix type mismatch
Diffstat (limited to 'ftnoir_tracker_pt/point_extractor.cpp')
-rw-r--r-- | ftnoir_tracker_pt/point_extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftnoir_tracker_pt/point_extractor.cpp b/ftnoir_tracker_pt/point_extractor.cpp index 65ac653a..c1dd9a54 100644 --- a/ftnoir_tracker_pt/point_extractor.cpp +++ b/ftnoir_tracker_pt/point_extractor.cpp @@ -131,7 +131,7 @@ std::vector<cv::Vec2f> PointExtractor::extract_points(cv::Mat& frame) ret.push_back(b_); char buf[64]; - sprintf(buf, "%d%% %d px", b_.pos.size()*100/successes, (int)(2.*sqrt(b_.effective_area()) / sqrt(3.14))); + sprintf(buf, "%d%% %d px", (int)(b_.pos.size()*100/successes), (int)(2.*sqrt(b_.effective_area()) / sqrt(3.14))); const auto pos = b_.effective_pos(); cv::putText(frame, buf, cv::Point(pos[0]+30, pos[1]+20), cv::FONT_HERSHEY_DUPLEX, 1, cv::Scalar(0, 0, 255), 1); } |