Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
include opencv2/video/tracking.hpp
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
  • Loading branch information
TooTallNate committed Sep 29, 2017
commit 49b9f42e35cec5d77c0845897f692a617e6e862c
1 change: 1 addition & 0 deletions src/OpenCV.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <opencv2/imgproc.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/opencv_modules.hpp>
#include <opencv2/video/tracking.hpp>
#endif
#if ((CV_MAJOR_VERSION == 2) && (CV_MINOR_VERSION >=4) && (CV_SUBMINOR_VERSION>=4))
#define HAVE_OPENCV_FACE
Expand Down