cvCalcOpticalFlowHS not being recognised C++
-
12-06-2021 - |
Pregunta
I've recently installed OpenCV and everything so far has been working, but for some reason even if I include: cv.h, highgui.h I get this error when I want to use the function:
cvCalcOpticalFlowHS: error C2065: 'cvCalcOpticalFlowHS' : undeclared identifier.
I've tried to look up which header file needs to be included, but I've had no succes so far.
Solución
Do
#include "opencv2/legacy/legacy.hpp"
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow