Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Parameters in the cv2.calcOpticalFlowFarneback() function

Hello,

I'm currently working on tracking objects and I've been reading tutorials like this: Optical flow. And in the section related to Dense Optical Flow in OpenCV, they do this:

flow = cv2.calcOpticalFlowFarneback(prvs,next, None, 0.5, 3, 15, 3, 5, 1.2, 0)

As I understood, prvs and next are corresponding frames, None means that there are no tracking points defined, but I still can't get what these numbers mean. I've read OpenCV documentation about this several times, but it didn't help me too much.

Thank you in advance.

click to hide/show revision 2
retagged

updated 2016-08-08 03:52:49 -0600

berak gravatar image

Parameters in the cv2.calcOpticalFlowFarneback() function

Hello,

I'm currently working on tracking objects and I've been reading tutorials like this: Optical flow. And in the section related to Dense Optical Flow in OpenCV, they do this:

flow = cv2.calcOpticalFlowFarneback(prvs,next, None, 0.5, 3, 15, 3, 5, 1.2, 0)

As I understood, prvs and next are corresponding frames, None means that there are no tracking points defined, but I still can't get what these numbers mean. I've read OpenCV documentation about this several times, but it didn't help me too much.

Thank you in advance.