简体   繁体   中英

Calculating optical flow with opencv

I am using the function:

cvCalcOpticalFlowBM

To calculate the optical flow. The code is running, but the velocity matrices are zero (both x and y), although the input video clearly changes. Does anyone have an idea why would the velocity matrices be zero (black)?

This tutorial shows how to use optical flow in opencv from scratch. It explains how to draw velocity vectors etc.

http://robots.stanford.edu/cs223b05/notes/CS%20223-B%20T1%20stavens_opencv_optical_flow.pdf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM