I'm having trouble with calcOpticalFlowPyrLK. Sometimes it returns an error, sometimes it doesn't. I've double-checked the input data, and it seems to be correct.
Please help me, thank you.
cv.calcOpticalFlowPyrLK(
preGray,
curGray,
p0,
p1,
st,
err,
winSize,
maxLevel,
criteria,
);
cv.exceptionFromPtr(err);
error
