Patent attributes
With a ranging device and a ranging method according to the present embodiment, occurrence of a first event in which the intensity of a detection signal corresponding to reflected light output from a detection unit exceeds a first threshold and occurrence of a second event in which the intensity falls below a second threshold smaller or larger than the first threshold are counted for each predetermined elapsed time after the measuring beam emission from a projector. Based on integration results (i.e., histograms) obtained by integrating the counts for a plurality of times of light emission, a target signal derived from the reflected light can be extracted from the detection signal including random noise derived from external light, a detection time from the light emission to the detection by the detection unit can be determined, and a distance to an object can be precisely determined.