From 49b9f42e35cec5d77c0845897f692a617e6e862c Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Fri, 29 Sep 2017 02:16:35 +0200 Subject: [PATCH] include `opencv2/video/tracking.hpp` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was getting this error when trying to build on Alpine Linux: ‘calcOpticalFlowPyrLK’ is not a member of ‘cv’ Including `tracking.hpp` fixes compilation for me. Related: https://stackoverflow.com/a/11641833/376773 --- src/OpenCV.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenCV.h b/src/OpenCV.h index cc9a2b91..7483fd49 100755 --- a/src/OpenCV.h +++ b/src/OpenCV.h @@ -23,6 +23,7 @@ #include #include #include +#include #endif #if ((CV_MAJOR_VERSION == 2) && (CV_MINOR_VERSION >=4) && (CV_SUBMINOR_VERSION>=4)) #define HAVE_OPENCV_FACE