To find optical flow as ndarray using cv2.calcOpticalFlowPyrLK()
问题 I need to find the optical flow between every 2 adjacent frames of a video using Lucas Kanade optical flow. I'm using python and openCV for the project. As per my understanding Lucas Kanade is a sparse method to find optical flow. Is there a dense implementation of it? If so, how to use it in python? Using cv2.calcOpticalFlowFarneback(), which is a dense method, we get as output an ndarray ('flow' in below example) which contains the optical flow. cv2.calcOpticalFlowFarneback(prev, next, pyr