Open namnetko opened 2 months ago
try this
if (typeof err === "number") {
throw cv.exceptionFromPtr(err);
}
try this
if (typeof err === "number") { throw cv.exceptionFromPtr(err); }
it will return an error
are the objects (passed as cv.calcOpticalFlowPyrLK
parameters) reused between different function calls?
are the objects (passed as
cv.calcOpticalFlowPyrLK
parameters) reused between different function calls?
i deleted them and not reused between different function calls
preImg.delete();
preGray.delete();
curImg.delete();
curGray.delete();
p0.delete();
p1.delete();
err.delete();
mask.delete();
st.delete()
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.
error![image](https://github.com/TechStark/opencv-js/assets/111344265/ae7c38ad-1326-436c-a74d-a4ce45f9d74d)