summaryrefslogtreecommitdiffhomepage
path: root/tracker-pt
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-pt')
-rw-r--r--tracker-pt/CMakeLists.txt2
-rw-r--r--tracker-pt/point_extractor.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/tracker-pt/CMakeLists.txt b/tracker-pt/CMakeLists.txt
index 79405b4d..a7aee1d4 100644
--- a/tracker-pt/CMakeLists.txt
+++ b/tracker-pt/CMakeLists.txt
@@ -1,4 +1,4 @@
-find_package(OpenCV 3.0 QUIET)
+find_package(OpenCV 4.0 QUIET)
if(OpenCV_FOUND)
opentrack_boilerplate(opentrack-tracker-pt STATIC)
target_link_libraries(opentrack-tracker-pt ${OpenCV_LIBS})
diff --git a/tracker-pt/point_extractor.cpp b/tracker-pt/point_extractor.cpp
index 52cbd7a7..8b2982ae 100644
--- a/tracker-pt/point_extractor.cpp
+++ b/tracker-pt/point_extractor.cpp
@@ -81,7 +81,7 @@ void PointExtractor::extract_points(cv::Mat& frame, std::vector<cv::Vec2d>& poin
//val *= 240./256.;
//qDebug() << "thres" << thres;
- cv::threshold(frame_gray, frame_bin, thres, 255, CV_THRESH_BINARY);
+ cv::threshold(frame_gray, frame_bin, thres, 255, cv::THRESH_BINARY);
}
blobs.clear();