1 | initial version |
Check the optical flow methods in OpenCV.
For this application you can use a sparse optical flow (much faster than the dense optical flows).
To detect the impact, check the high values in the derivatives of the path.
Another idea would be to use a PCA based optical flow analysis and check when the Lambda2 increases. (maybe check this code I found on google? https://github.com/jswulff/pcaflow)