From 0773f40c072bdf117fff9e7179849b65737e7491 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Jul 2016 07:08:03 +0200 Subject: move nan check to compat --- tracker-pt/point_extractor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracker-pt/point_extractor.cpp') 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::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), -- cgit v1.2.3