I am trying to track landmarks along the facial features obtained through dsift using python 2.7 and openCV 2.4.11. I want to track these functions between frames.
However, I get the following error. I checked the input images as single-channel equal sizes (and unsigned 8-bit type), as well as with the previous points:
OpenCV Error: Assertion failed ((npoints = prevPtsMat.checkVector(2, CV_32F, tru e)) >= 0) in cv::calcOpticalFlowPyrLK, file ..\..\..\modules\video\src\lkpyramid.cpp cv2.error: ..\..\..\modules\video\src\lkpyramid.cpp:845: error: (-215) (npoints = prevPtsMat.checkVector(2, CV_32F, true)) >= 0 in function cv::calcOpticalFlowP yrLK
The resulting string:
new_pts, ttl, err = cv2.calcOpticalFlowPyrLK(self.old_img, i_img, i_old_pts, None)
Does anyone know where I can start debugging this?
source share