diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:08:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-19 07:38:37 +0200 |
commit | 0773f40c072bdf117fff9e7179849b65737e7491 (patch) | |
tree | 534d764580eb312ada0dea038a1632fac97c5e2a /tracker-pt/point_extractor.cpp | |
parent | 9296ed95961b846a13477581e2947b8be611b154 (diff) |
move nan check to compat
Diffstat (limited to 'tracker-pt/point_extractor.cpp')
-rw-r--r-- | tracker-pt/point_extractor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp index acba1c64..9dc1df6d 100644 --- a/tracker-pt/point_extractor.cpp +++ b/tracker-pt/point_extractor.cpp @@ -137,7 +137,7 @@ const std::vector<PointExtractor::vec2>& PointExtractor::extract_points(cv::Mat& sprintf(buf, "%.2fpx", radius); cv::putText(frame, buf, - cv::Point(std::round(b.pos[0]+30), std::round(b.pos[1]+20)), + cv::Point((int)std::round(b.pos[0]+30), (int)std::round(b.pos[1]+20)), cv::FONT_HERSHEY_DUPLEX, 1, cv::Scalar(0, 0, 255), |