Calculating Distance With Vision Sensor

check this thread