A featurelees method to calculate time-to-contact based on consecutive images. The code is developed based on Time to Contact Relative to a Planar Surface https://ieeexplore.ieee.org/document/4290093
Then this ttc is used to control a mobile to brake before hitting the obstacles based on image feedback