https://medium.com/@monocosmo77/working-with-optical-flow-estimation-in-machine-learning-part1-c39901e352c