https://medium.com/@monocosmo77/working-with-optical-flow-estimation-in-machine-learning-part2-9f077a15bc62