| CPC G01S 17/48 (2013.01) [G01S 7/4808 (2013.01)] | 17 Claims |

|
1. A distance measurement device, comprising:
a light source, configured to project a linear light section toward a moving direction;
an image sensor, configured to capture an image frame containing an image of the linear light section; and
a processor, configured to
calculate a gravity center of the image of the linear light section in the image frame,
use a first algorithm to calculate a first object depth upon the gravity center being smaller than a position threshold, and
use a second algorithm to calculate a second object depth upon the gravity center being larger than the position threshold, wherein
in the first algorithm, the first object depth is calculated according to a relationship between gravity centers and a reciprocal of depths, as well as a linear interpolation method, and
in the second algorithm, the second object depth is calculated according to a relationship between gravity centers and depths, as well as a linear extrapolation method.
|