A Distance Measuring Method Using Visual Image Processing