What you are looking for is an optical stream. Searching for these conditions will give you numerous results.
In OpenCV, there is a calcOpticalFlowFarneback () function (in the video module) that does what you want. The C API still has an implementation of the classic paper by Horn and Schunk (1981) called "Optical Flow Definition".
, , ( , opencl . .): http://lts2www.epfl.ch/people/dangelo/opticalflow
OpenCV ( ;-), ITK itk.org ( ).
(matlab, C/++...), google, cs.brown.edu/~dqsun/research/software.html, gpu4vision ..
- EDIT: -
: .
, .
- ( opencv) , , , ( TV-L1 ..).
KLT, opencv Lucas-Kanade.
, , . , , /, ( ). , . , , , , .
, , , , . / , ., , , "" .