Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv.calcOpticalFlowPyrLK in OpenCV.js

I'd like to use cv.calcOpticalFlowPyrLK to track points clicked on by a user in an image, and I can identify the coordinates of the click on an image no problem. I generate a cv.Point(x,y) with the values, but how can I convert this to what's needed for the current position input for the flow? I've seen the box tracking example but have no idea what data type the p0 is there or how to convert to it from a point in Javascript. I'm using the most recent master build of OpenCV.js

Thanks!