Ranging device

WO2024214669A1PCT designated stage expired Publication Date: 2024-10-17DENSO CORP
View PDF -1 Cites -1 Cited by

Patent Information

Application Number
PCT/JP2024/014248
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-04-08
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

Distance measuring devices face inaccuracies due to multiple reflections and clutter, which affect the measurement of flight time and subsequently the accuracy of distance calculations.

Method used

The device employs a histogram generating unit to analyze the intensity of reflected light over time, a short distance determination unit to assess the rise and fall timings of peaks, and a feature amount acquisition unit to determine the number of reflections, allowing for accurate distance calculation based on these features, especially in short distance ranges.

Benefits of technology

This approach effectively suppresses errors caused by multiple reflections and clutter, enhancing the accuracy of distance measurements by using the falling timing and reflection count features when objects are in short distance ranges.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024014248_17102024_PF_FP_ABST
    Figure JP2024014248_17102024_PF_FP_ABST
Patent Text Reader

Abstract

A ranging device (100) comprises: a light emitting unit (40) that emits pulsed light; a light receiving unit (60) that receives reflected light of the pulsed light from an object and outputs an output signal (Sout); and a calculation unit (210) that calculates an object distance by using the time of flight of the pulsed light. The calculation unit has: a histogram generation part (230) that generates, on the basis of the output signal, a histogram (HG) representing the light reception intensity of the reflected light for each time of flight; a short distance determination part (240) that determines whether or not the object is in a distance range on the basis of a rising timing (RT) of a peak (PK) in the histogram; a feature amount acquisition part (250) that acquires a feature amount related to the number of times of reflection on the basis of the histogram; and a distance calculation part (260, 260b) that calculates an object distance on the basis of the feature amount and a fall timing (FT) of the peak when the object is in a short distance range.
Need to check novelty before this filing date? Find Prior Art

Description

distance measuring device CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is based on Japanese Application No. 2023-065559, filed on April 13, 2023, the contents of which are incorporated herein by reference.

[0002] The present disclosure relates to a distance measuring device.

[0003] Distance measuring devices are known that measure the distance to an object by emitting pulsed light from a light emitting unit, detecting the light reflected from the object with a light receiving unit, and measuring the time of flight (TOF) of the light from irradiation to reception (see, for example, Patent Document 1).

[0004] Japanese Patent Application Laid-Open No. 2001-74827

[0005] Distance measuring devices may generate signals that differ from the desired signal for measuring the distance to an object, such as signals due to multiple reflections or clutter. Clutter here refers to pulsed light reflected by windows in the housing that houses the light-emitting unit and the light-receiving unit. Multiple reflections mean that the pulsed light emitted from the light-emitting unit travels back and forth between the object and the light-receiving unit multiple times due to reflections. The effects of such multiple reflections and clutter can lead to inaccurate measurement of the time of flight, potentially reducing distance measurement accuracy.

[0006] The present disclosure can be realized in the following forms.

[0007] According to a first aspect of the present disclosure, there is provided a distance measuring device including: a light emitting unit that emits pulsed light; a light receiving unit that receives reflected light of the pulsed light reflected by an object and outputs an output signal based on the reflected light; and a calculation unit that calculates an object distance, which is the distance to the object, using a time-of-flight of the pulsed light. The calculation unit includes: a histogram generating unit that generates a histogram representing the light intensity received by the light receiving unit for each time-of-flight based on the output signal; a short-distance determining unit that determines whether the object is within a predetermined short-distance range based on rising timings of peaks of the received-light intensity in the histogram; a feature acquiring unit that acquires, based on the histogram, a feature related to the number of reflections indicating the number of times the pulsed light has reflected back and forth between the object and the light receiving unit; and a distance calculating unit that calculates the object distance based on the feature and falling timings of the peaks if the object is within the short-distance range.

[0008] According to this embodiment, when the object is in the short distance range, the object distance is calculated based on the feature amount related to the number of reflections and the falling timing of the peak. By calculating the object distance based on the falling timing, a decrease in distance measurement accuracy due to the influence of clutter is suppressed. Furthermore, by calculating the object distance based on the feature amount related to the number of reflections, a decrease in distance measurement accuracy due to the influence of multiple reflections is suppressed. Therefore, a decrease in distance measurement accuracy due to the influence of multiple reflections and clutter can be suppressed.

[0009] The above and other objects, features, and advantages of the present disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which Fig. 1 is an explanatory diagram showing a schematic configuration of a distance measuring device according to a first embodiment, Fig. 2 is an explanatory diagram showing a schematic configuration of a light receiving array, Fig. 3 is a circuit diagram showing a schematic configuration of a SPAD circuit, Fig. 4 is a block diagram showing a schematic configuration of the distance measuring device according to the first embodiment, Fig. 5 is an explanatory diagram showing an example of a histogram, Fig. 6 is a schematic diagram of a histogram, Fig. 7 is a schematic diagram showing an example of a histogram when an object is in a long distance range, Fig. 8 is a flowchart of distance measuring processing, and Fig. 9 is a flowchart of reflection count determination processing. 12 is a first schematic diagram showing an example of a histogram when the object is in the short distance range; FIG. 13 is a second schematic diagram showing an example of a histogram when the object is in the short distance range; FIG. 14 is a block diagram showing a schematic configuration of a distance measuring device of the second embodiment; FIG. 15 is a diagram explaining correction data in the second embodiment; and FIG. 16 is a diagram explaining correction data in another embodiment.

[0010] A. First Embodiment: The distance measuring device 100 shown in FIG. 1 includes an optical system 30 that emits pulsed light for distance measurement and receives reflected light from an external object, and a control device 200. The optical system 30 includes a light emitting unit 40 that emits laser light as pulsed light, a scanning unit 50 that scans the laser light within a predetermined field of view 80, and a light receiving unit 60 that receives incident light including reflected light from external objects and ambient light. The distance measuring device 100 is housed in a housing 90 that has a window 92 on the front. The pulsed light is emitted to the outside of the distance measuring device 100 through the window 92, and the reflected light enters the distance measuring device 100 through the window 92. The window 92 transmits most of the pulsed light and reflects a portion of it.

[0011] The distance measuring device 100 is, for example, an on-board LiDAR (Laser Imaging Detection and Ranging) device mounted on a vehicle such as an automobile. When the vehicle is traveling on a horizontal road surface, the horizontal direction of the field of view 80 coincides with the horizontal direction X, and the vertical direction coincides with the vertical direction Y.

[0012] The light-emitting unit 40 includes a laser element 41 that emits laser light as pulsed light, a circuit board 43 incorporating a drive circuit for the laser element 41, and a collimating lens 45 that collimates the laser light emitted from the laser element 41. The laser element 41 is a laser diode capable of oscillating a so-called short-pulse laser. In this embodiment, the laser element 41 has a rectangular laser emission region formed by arranging multiple laser diodes in the vertical direction. The intensity of the laser light output by the laser element 41 is adjustable according to the voltage supplied to the laser element 41.

[0013] The scanning unit 50 is configured as a so-called one-dimensional scanner. The scanning unit 50 is composed of a mirror 54, a rotary solenoid 58, and a rotating unit 56. The mirror 54 reflects the laser light collimated by the collimating lens 45. The rotary solenoid 58 receives a control signal from the control device 200 and repeatedly rotates forward and backward within a predetermined angular range. The rotating unit 56 is driven by the rotary solenoid 58 and repeatedly rotates forward and backward about a rotation axis whose axial direction is the vertical direction, causing the mirror 54 to scan in one direction along the horizontal direction. The laser light emitted from the laser element 41 through the collimating lens 45 is reflected by the mirror 54 and scanned along the horizontal direction by the rotation of the mirror 54. The field of view 80 shown in FIG. 1 corresponds to the entire scanning range of this laser light. Since the received light intensity is obtained at each pixel position within the field of view 80, the distribution of the received light intensity within the field of view 80 forms a type of image. It is also possible to omit the scanning unit 50 and have the light-emitting unit 40 emit pulsed light over the entire field of view 80, while the light-receiving unit 60 receives reflected light over the entire field of view 80. In this embodiment, pulsed light is irradiated onto each position within the scanning range, that is, each pixel position within the field of view 80. Then, this irradiation of pulsed light and distance measurement processing (described below) based on reflected light from each pixel position are executed for each pixel position at predetermined time intervals.

[0014] When an external object (reflector) such as a person or a vehicle comes into contact with the laser light output from the light-emitting unit 40, the laser light is diffused by the surface of the object, and part of the reflected light returns to the mirror 54 of the scanning unit 50. This reflected light is reflected by the mirror 54 and, together with external light, enters the light-receiving lens 61 of the light-receiving unit 60 as incident light, where it is collected and incident on the light-receiving array 65. Note that the laser light output from the distance measuring device 100 is diffused not only by external objects but also by objects inside the distance measuring device 100, such as a window 92, and part of the reflected light enters the light-receiving array 65.

[0015] As shown in FIG. 2 , the light receiving array 65 is composed of a plurality of pixels 66 arranged two-dimensionally. Each pixel 66 is composed of a plurality of SPAD (Single Photon Avalanche Diode) circuits 68 arranged such that H circuits are arranged in the horizontal direction and V circuits are arranged in the vertical direction. H and V are each integers of 1 or greater. In this embodiment, H=V=5, and five SPAD circuits 68 are arranged in each of the horizontal and vertical directions. Note that the number of SPAD circuits 68 constituting a pixel 66 may be any number; for example, a pixel 66 may be composed of one SPAD circuit 68. The light receiving result of one pixel 66 is the received light intensity at one pixel position within the field of view 80.

[0016] As shown in FIG. 3 , the SPAD circuit 68 connects an avalanche diode Da and a quench resistor Rq in series between a power supply Vcc and a ground line. The voltage at their junction is input to an inverting element INV, a logic operation element, and converted into a digital signal with an inverted voltage level. The output signal Sout of the inverting element INV is output directly to the outside. In this embodiment, the quench resistor Rq is configured as an FET, and when the selection signal SC is active, its on-resistance functions as the quench resistor Rq. When the selection signal SC is inactive, the quench resistor Rq enters a high-impedance state. Therefore, even if light is incident on the avalanche diode Da, no quench current flows, and the SPAD circuit 68 does not operate. The selection signal SC is output collectively to the 5×5 SPAD circuits 68 in each pixel 66 and is used to specify whether or not to read out a signal from each pixel 66. In this embodiment, the avalanche diode Da is operated in Geiger mode, but the avalanche diode Da may be used in linear mode and its output may be handled as an analog signal. Also, a PIN photodiode may be used instead of the avalanche diode Da.

[0017] When no light is incident on the SPAD circuit 68, the avalanche diode Da remains non-conductive. Therefore, the input side of the inverting element INV is pulled up via the quench resistor Rq, i.e., maintained at a high level. Therefore, the output of the inverting element INV remains low. When external light is incident on each SPAD circuit 68, the avalanche diode Da becomes conductive due to the incident light (photons). As a result, a large current flows through the quench resistor Rq, the input side of the inverting element INV temporarily becomes low, and the output of the inverting element INV inverts to a high level. As a result of the large current flowing through the quench resistor Rq, the voltage applied to the avalanche diode Da decreases, cutting off the power supply to the avalanche diode Da and returning the avalanche diode Da to a non-conductive state. As a result, the output signal of the inverting element INV also inverts and returns to a low level. As a result, when light (photons) is incident on each SPAD circuit 68, the inverting element INV outputs a pulse signal that goes high for a very short time. Therefore, if the selection signal SC is set to high in synchronization with the timing at which each SPAD circuit 68 receives light, the output signal of the inverting element INV, i.e., the output signal Sout from each SPAD circuit 68, becomes a digital signal that reflects the state of the avalanche diode Da. This output signal Sout corresponds to a pulse signal generated by receiving incident light that includes reflected light that is emitted from an external object or window 92 within the scanning range and returns, and ambient light.

[0018] As shown in FIG. 4 , the control device 200 includes a CPU 205, a storage unit 290, and an input / output interface 295. The CPU 205, the storage unit 290, and the input / output interface 295 are connected to each other via a bus 299 so as to be able to communicate bidirectionally. The light-emitting unit 40, the scanning unit 50, and the light-receiving unit 60 are connected to the input / output interface 295 via control signal lines. The storage unit 290 includes, for example, a ROM, a RAM, and an EEPROM. The CPU 205 functions as a light-emitting control unit 206 and a calculation unit 210 by executing various programs 291 stored in the storage unit 290. In addition to the program 291, the storage unit 290 stores various information such as first relationship data RD1, second relationship data RD2, and judgment value data JD, which will be described later. The judgment value data JD includes a first judgment value J, which will be described later. 1 , second judgment value J 2 , the third judgment value J 3 and the fourth judgment value J 4 In other embodiments, some or all of the functions of the control device 200 may be realized by a hardware circuit. Also, for example, the calculation unit 210 may be configured separately from the control device 200.

[0019] The light emission control unit 206 controls the light emitting unit 40 and the scanning unit 50. More specifically, the light emission control unit 206 executes, for example, transmission of a light emission control signal to the light emitting unit 40 and transmission of an angle control signal to the scanning unit 50.

[0020] The calculation unit 210 calculates the object distance using the time of flight of the pulsed light P1. The object distance refers to the distance from the distance measuring device 100 to the object. As shown in FIG. 4 , the pulsed light P1 emitted from the light-emitting unit 40 is reflected by an external object, and reflected light P2 of the pulsed light P1 is output from the external object. The pulsed light P1 is also reflected by the inner surface of the window 92, and reflected light P3 of the pulsed light P1 is output from the window 92. In this specification, reflected light obtained by reflection of the pulsed light P1 on the inner surface of the window 92, such as reflected light P3, is referred to as "clutter." In addition, the distance measuring device 100 may generate reflected light P4 due to multiple reflections. "Multiple reflections" means that the pulsed light P1 emitted from the light-emitting unit 40 reflects back and forth between the object and the light-receiving unit 60 multiple times. The reflected light P4 corresponds to the pulsed light P1 that reaches the light-receiving unit 60 after being reflected multiple times by the object. The reflected light beams P2, P3, and P4 reach the light receiving unit 60. The time from the emission of the pulsed light beam P1 to the reception of the reflected light beams P2, P3, and P4 is determined as the time of flight of the light. The calculation unit 210 uses this time of flight to calculate the distance to the object.

[0021] Note that multiple reflections are likely to occur when the target object is an object with high reflectivity (e.g., a reflector provided at the rear of a vehicle). Furthermore, multiple reflections usually occur when light reflected from the target object is reflected back toward the target by the light-receiving unit 60, and sometimes when light reflected from the target object is reflected back toward the target by the window 92. Hereinafter, the number of times that the pulsed light travels back and forth between the target object and the light-receiving unit 60 is also referred to as the number of reflections. The number of reflections can also be said to represent the number of times the pulsed light is reflected by the target object before being received by the light-receiving unit 60. A state in which multiple reflections occur corresponds to a state in which the number of reflections is two or more.

[0022] 4, the calculation unit 210 includes an adder 220, a histogram generator 230, a short distance determiner 240, a feature acquirer 250, and a distance calculator 260. The calculation unit 210 in this embodiment further includes a reflection count determiner 270.

[0023] The adder 220 adds the outputs of the SPAD circuits 68 included in the pixels 66 that make up the light receiving array 65. When an incident light pulse strikes one pixel 66, the SPAD circuit 68 included in the pixel 66 operates. The SPAD circuit 68 is capable of detecting even a single incident photon. However, the SPAD circuit 68 inevitably detects the limited light output from the external object OBJ probabilistically. Therefore, the adder 220 adds the output signals Sout from the SPAD circuits 68 that can only detect incident light probabilistically.

[0024] The histogram generator 230 generates a histogram HG representing the light intensity of reflected light received by the light receiving unit 60 for each time of flight based on the output signal Sout. More specifically, the histogram generator 230 acquires the summation results from the adder 220 and generates a histogram HG based on the summation results recorded in time series at predetermined time intervals Ti (e.g., 1 nanosecond), and stores the histogram HG in the storage unit 290. The received light intensity in the histogram HG is represented by the total number of SPAD circuits 68 that received light within one pixel 66. In FIG. 5 , the histogram HG is represented by a schematic graph with the time of flight on the horizontal axis and the received light intensity on the vertical axis. The histogram generator 230 generates the histogram HG by linearly interpolating the received light intensities ss recorded at the time intervals Ti. By performing this linear interpolation, the time resolution of the histogram HG becomes higher than the time resolution based on the time interval Ti.

[0025] FIG. 5 shows an example of a histogram HG generated when the target is in the short distance range described below. The histogram HG shown in FIG. 5 shows a peak PK of received light intensity. The peak PK has a rising portion PR, which is a portion rising toward the apex TP of the peak PK, and a falling portion PF, which is a portion falling from the apex TP. The rising portion PR can also be considered to be the portion of the peak PK where the received light intensity rises toward a peak intensity TPv. The peak intensity TPv refers to the received light intensity at the apex TP of the peak PK. The falling portion PF can also be considered to be the portion where the received light intensity falls from the peak intensity TPv. Hereinafter, the timing at which the rising portion PR occurs will be referred to as rising timing RT, and the timing at which the falling portion PF occurs will be referred to as falling timing FT. In this embodiment, the rising timing RT and the falling timing FT are each expressed by a time of flight.

[0026] As shown in FIG. 5 , the rising timing RT includes a first rising timing RT1 and a second rising timing RT2. The first rising timing RT1 is the timing during the rising timing RT when the received light intensity reaches a first threshold value TS1. The second rising timing RT2 is the timing during the rising timing RT when the received light intensity reaches a second threshold value TS2. The second threshold value TS2 is greater than the first threshold value TS1. The second falling timing FT2 includes a first falling timing FT1 and a second falling timing FT2. The first falling timing FT1 is the timing during the falling timing FT when the received light intensity reaches the first threshold value TS1. The second falling timing FT2 is the timing during the falling timing FT when the received light intensity reaches the second threshold value TS2. Details of the first threshold value TS1 and the second threshold value TS2 will be described later.

[0027] 5 shows a first time width PW1 and a second time width PW2. The first time width PW1 represents the time width between the first rising timing RT1 and the first falling timing FT1 in the histogram HG. The second time width PW2 represents the time width between the second rising timing RT2 and the second falling timing FT2 in the histogram HG.

[0028] FIG. 6 schematically illustrates the peak PK in FIG. 5 . As shown in FIG. 6 , the peak PK in FIG. 5 is a composite peak of the overlapping clutter peak Pc, desired signal peak Pd, and multiple reflection peak Pm. The clutter peak Pc is a peak based on the reflected light P3, i.e., a peak due to clutter. The desired signal peak Pd is a peak based on the reflected light P2. More specifically, the desired signal peak Pd is a peak based on reflected light that has been reflected once, and is a peak different from the clutter peak Pc and the multiple reflection peak Pm. The multiple reflection peak Pm2 is a peak based on the reflected light P4, i.e., a peak due to multiple reflections. More specifically, the multiple reflection peak Pm2 is a multiple reflection peak due to the second reflection. Hereinafter, the peak due to multiple reflections will also be simply referred to as the multiple reflection peak Pm, regardless of the number of reflections. 6 shows an example in which the clutter peak Pc and the desired signal peak Pd have the same received light intensity, but the received light intensity of the clutter peak Pc is usually lower than the received light intensity of the desired signal peak Pd. Also, the received light intensity of the multiple reflection peak Pm may be approximately the same as the received light intensity of the desired signal peak Pd, or it may be lower than the received light intensity of the desired signal peak Pd.

[0029] The clutter peak Pc appears earlier in time than the desired signal peak Pd, and the multiple reflection peak Pm appears later in time than the desired signal peak Pd. Note that if the number of reflections is three or more, peaks resulting from the third and subsequent reflections may appear later in time than the multiple reflection peak Pm2 and may be superimposed on the multiple reflection peak Pm2. In this specification, the term "multiple reflection peak Pm superimposed on the desired signal peak Pd" refers not only to the multiple reflection peak Pm being directly superimposed on the desired signal peak Pd, but also to a multiple reflection peak Pm being superimposed on the multiple reflection peak Pm superimposed on the desired signal peak Pd. Note that if the number of reflections is one, the multiple reflection peak Pm will not appear.

[0030] The short-distance determination unit 240 shown in FIG. 4 determines whether the target is within a predetermined short-distance range based on the rising timing RT in the histogram HG. The short-distance range refers to a range that is closer than a predetermined distance from the distance measuring device 100. More specifically, the short-distance range is determined based on experiments and simulations as a range in the histogram HG that is close enough that the clutter peak Pc overlaps the desired signal peak Pd. In this specification, a range farther than the short-distance range is also referred to as the long-distance range.

[0031] FIG. 7 shows a schematic example of a histogram, HG2, generated when the object is in the long distance range. Unlike the histograms HG shown in FIGS. 5 and 6 , the clutter peak Pc in histogram HG2 is not superimposed on the desired signal peak Pd. This is because, in the long distance range, the distance between the object and the distance measuring device 100 is relatively long, and therefore the light receiving unit 60 receives the reflected light from the object a relatively long time after the clutter is received. Furthermore, when the distance between the object and the distance measuring device 100 is relatively long, even if multiple reflections occur, the light receiving unit 60 receives the reflected light from the object a relatively long time after the light receiving unit 60 receives the reflected light from the object. As a result, in the long distance range, not only the clutter peak Pc but also the multiple reflection peak Pm are not superimposed on the desired signal peak Pd. For example, in the histogram HG2 shown in FIG. 7, the multiple reflection peak Pm2 does not overlap with the desired signal peak Pd.

[0032] The feature acquisition unit 250 shown in FIG. 4 acquires various feature quantities related to the peak PK based on the histogram HG generated by the histogram generation unit 230. These feature quantities include a reflection count feature quantity, which is a feature quantity related to the number of reflections. In this embodiment, the feature acquisition unit 250 acquires, as the reflection count feature quantity, a first time width PW1 and a second time width PW2, which are feature quantities correlated with the number of reflections. When the target object is in the short distance range, the first time width PW1 and the second time width PW2 tend to become larger as the number of reflections increases. This is because, in the short distance range, the greater the number of reflections, the greater the number of multiple reflection peaks Pm that are superimposed on the desired signal peak Pd.

[0033] As will be described later, when the object is in the short distance range, the reflection count determination unit 270 determines the number of reflections based on the reflection count feature amount.

[0034] The distance calculation unit 260 calculates the object distance. When the object is in the short distance range, the distance calculation unit 260 calculates the object distance based on the reflection count feature amount and the falling timing FT. As will be described later, in this embodiment, when the object is in the short distance range, the distance calculation unit 260 calculates the object distance based on the falling timing FT and the number of reflections determined based on the reflection count feature amount. Furthermore, in this embodiment, when the object is not in the short distance range, the distance calculation unit 260 calculates the object distance based on the rising timing RT.

[0035] 8 is executed to measure the distance to the object. The distance measurement process is started by the calculation unit 210, for example, when the histogram generation unit 230 generates a histogram.

[0036] In step S10, the feature acquisition unit 250 identifies a peak PK in the generated histogram HG and acquires various feature quantities related to the peak PK. More specifically, in step S10, the feature acquisition unit 250 identifies a first rising timing RT1, a second rising timing RT2, a first falling timing FT1, and a second falling timing FT2, and acquires time-of-flight values ​​representing each timing. The feature acquisition unit 250 also acquires a first time width PW1 and a second time width PW2 by calculating them based on the acquired values. For example, the feature acquisition unit 250 identifies two times-of-flight at which the received light intensity at the peak PK reaches a first threshold value TS1, and identifies the earlier of the two identified times-of-flight as the first rising timing RT1 and the later as the first falling timing FT1. Similarly, the feature acquisition section 250 identifies the second rising timing RT2 and the second falling timing FT2 based on the two times of flight at which the received light intensity at the peak PK reaches the second threshold value TS2.

[0037] In step S20, the short distance determination unit 240 determines whether the object is in the short distance range. In step S20 in this embodiment, the short distance determination unit 240 determines whether the object is in the short distance range based on the second rising timing RT2. In step S20, the short distance determination unit 240 determines that the object is in the short distance range, for example, if the time representing the second rising timing RT2 is equal to or less than a predetermined time threshold. Note that in other embodiments, the calculation unit 210 may calculate the distance based on the second rising timing RT2, and determine that the object is in the short distance range if the distance is equal to or less than a predetermined distance threshold.

[0038] 5 is preferably set to a value greater than or equal to 80% and less than or equal to 100% of the peak intensity TPv, and in this embodiment, it is set to 100% of the peak intensity TPv. As described above, the received light intensity of the clutter peak Pc is generally smaller than the received light intensity of the desired signal peak Pd. Therefore, by setting the second threshold TS2 to a value greater than or equal to 80% of the peak intensity TPv, the clutter peak Pc is less likely to affect the second rising timing RT2.

[0039] If it is determined in step S20 that the object is not within the short distance range, in step S30, the distance calculation unit 260 calculates the object distance based on the rising timing RT. More specifically, in step S30 in this embodiment, the distance calculation unit 260 calculates the object distance based on the first rising timing RT1. For example, the distance calculation unit 260 calculates the object distance by adding a time value Δt1 to the time represented by the first rising timing RT1, and uses this value as the time of flight of the pulsed light P1 and the reflected light P2. The time value Δt1 is determined in advance based on, for example, the waveform of the pulsed light P1 as a value for calculating the center position of the desired signal peak Pd based on the first rising timing RT1.

[0040] The first threshold value TS1 shown in FIG. 5 is preferably set to a value between 40% and 70% of the peak intensity TPv, for example. In this embodiment, it is set to 50% of the peak intensity TPv. The accuracy of linear interpolation is higher within the range of the rising timing RT where the received light intensity is between 40% and 70% of the peak intensity TPv. Therefore, by setting the first threshold value TS1 as described above, the object distance can be calculated more accurately based on the first rising timing RT1. Typically, the accuracy of linear interpolation at the first rising timing RT1 is higher than the accuracy of linear interpolation at the second rising timing RT2. Therefore, using the first rising timing RT1 allows for more accurate calculation of the object distance compared to using the second rising timing RT2. Similarly, the accuracy of linear interpolation at the first falling timing FT1 is typically higher than the accuracy of linear interpolation at the second falling timing FT2.

[0041] 8, if it is determined that the object is in the short distance range, the reflection count determination unit 270 determines the number of reflections in step S40. In step S40 in this embodiment, the reflection count determination unit 270 determines the number of reflections by executing the reflection count determination process shown in FIG.

[0042] In step S405 of FIG. 9 , the reflection count determination unit 270 determines whether the second rising timing RT2 identified in step S10 of FIG. 8 is before the reference timing ST shown in FIGS. 10 and 11 . The reference timing ST is used to determine whether to use the first time width PW1 or the second time width PW2 as the reflection count feature when determining the number of reflections using the second rising timing RT2 and the reflection count feature. As will be described later, if the second rising timing RT2 is after the reference timing ST, the reflection count determination unit 270 uses the first time width PW1 as the reflection count feature. On the other hand, if the second rising timing RT2 is before the reference timing ST, the reflection count determination unit 270 uses the second rising timing RT2 as the reflection count feature.

[0043] If the second rising timing RT2 is later than the reference timing ST, in steps S410 to S430 of Fig. 9, the reflection count determination unit 270 determines the number of reflections based on the correspondence between the second rising timing RT2 and the first time width PW1 as the reflection count feature. 1 The first determination value J in this embodiment is 1 is defined as a function of the second rising timing RT2 and is expressed by the following equation (1): 1 = a 1 t+b 1 ...(1) where time t represents the second rising timing RT2. Coefficient a 1 and coefficient b 1 is determined based on the first relationship data RD1 shown in Fig. 10. The first relationship data RD1 will be described in detail later.

[0044] The first time width PW1 is equal to the first determination value J 1 If the first time width PW1 is equal to or less than the first determination value J, the reflection count determination unit 270 determines in step S415 that the reflection count is 1. 1 If it is greater than the second determination value J, in step S420 of FIG. 8, the reflection count determination unit 270 determines whether the first time width PW1 is greater than the second determination value J. 2 The second determination value J in this embodiment is 2 is the first judgment value J 1 Similarly, J is defined as a function of the second rising timing RT2 and is expressed by the following equation (2): 2 = a 2 t+b 2 ...(2) Coefficient a 2 and coefficient b 2 is the above coefficient a 1 and coefficient b 1 The first time width PW1 is determined based on the first relational data RD1 in substantially the same manner as the second determination value J 2 If the first time width PW1 is equal to or less than the second determination value J, the reflection count determination unit 270 determines in step S425 that the number of reflections is two.2 If it is greater than this, the reflection count determination unit 270 determines in step S430 that the reflection count is three.

[0045] The first relationship data RD1 shown in FIG. 10 represents the relationship between the second rising timing RT2 and the first time duration PW1 for each distance measurement when the target object is in the close range. Hereinafter, this relationship between the second rising timing RT2 and the first time duration PW1 will also be referred to as the first relationship RP1. The first relationship data RD1 is data related to distance measurements performed in advance through experiments or simulations, and is generated, for example, by recording the second rising timing RT2 and the first time duration PW1 for each distance measurement in association with each other based on the results of experiments or simulations. In FIG. 10, the first relationship data RD1 is represented by a graph with the second rising timing RT2 on the horizontal axis and the first time duration PW1 on the vertical axis, more specifically, a scatter plot in which each first relationship RP1 is represented as a data point. Note that FIG. 10 representatively shows only a portion of the data points representing the first relationship RP1. The first relationship data RD1 includes not only the first relationship RP1 when no multiple reflections occur, but also the first relationship RP1 when multiple reflections occur. For example, the first relationship data RD1 shown in Fig. 10 includes the first relationship RP1 when the number of reflections is one, two, and three. The first relationship data RD1 shown in Fig. 10 also includes the first relationship RP1 when the clutter peak Pc overlaps the desired signal peak Pd. Note that in the first relationship data RD1 of this embodiment, the number of reflections is associated with each first relationship RP1.

[0046] FIG. 10 shows the first group Gp1, the second group Gp2, and the third group Gp3, each containing multiple data points. In FIG. 10, the first group Gp1 is indicated by hatching slanting upward to the right, the second group Gp2 by hatching slanting downward to the right, and the third group Gp3 by hatching with a dotted pattern. The first group Gp1, the second group Gp2, and the third group Gp3 represent groups of the first relationship RP1 when the number of reflections is one, two, and three, respectively. As shown in FIG. 10, the first group Gp1, the second group Gp2, and the third group Gp3 are distributed farther apart from each other as the second rising timing RT2 increases. This is because the longer the distance to the target, the later in time the multiple reflection peak Pm overlaps with the desired signal peak Pd, and the larger the increase in the first time width PW1 due to the increase in the number of reflections.

[0047] The above-mentioned first determination value J 1 Coefficient a 1 and coefficient b 1 is the first determination value J within a range later in time than the reference timing ST in the first relationship data RD1. 1 The coefficient a is determined so that a line representing the coefficient a is located between the first group Gp1 and the second group Gp2. 1 and coefficient b 1 is the first determination value J in the first relationship data RD1. 1 is determined so that the line representing the second determination value J is located between the first group Gp1 and the second group Gp2 and is located farther away from the data points included in the first group Gp1 and the second group Gp2. 2 Coefficient a 2 and coefficient b 2 When the second rising timing RT2 is later than the reference timing ST, the second determination value J is 2 is determined so that a line representing the coefficient a is located between the second group Gp2 and the third group Gp3. 2 and coefficient b 2 is the coefficient a 1 and coefficient b 1 Similarly, the second determination value J 2is determined so that the line representing the coefficient a is located between the second group Gp2 and the third group Gp3 and is located farther away from the data points included in the second group Gp2 and the third group Gp3. 2 is the coefficient a 1 is a value greater than the coefficient b 2 is the coefficient b 1 is a value greater than

[0048] If the second rising timing RT2 is before the reference timing ST, in steps S435 to S455 of Fig. 9, the reflection count determination unit 270 determines the number of reflections based on the correspondence between the second rising timing RT2 and the second time width PW2 as the reflection count feature. 3 The third determination value J in this embodiment is 3 is the first judgment value J 1 and the second judgment value J 2 Similarly, J is defined as a function of the second rising timing RT2 and is expressed by the following equation (3): 3 = a 3 t+b 3 ...(3) Coefficient a 3 and coefficient b 3 is determined based on the second relationship data RD2 shown in Fig. 11. The second relationship data RD2 will be described in detail later.

[0049] The second time width PW2 is equal to the third judgment value J 3 If the second time width PW2 is equal to or smaller than the third determination value J, the reflection count determination unit 270 determines that the number of reflections is one in step S440 of FIG. 3 If it is greater than the fourth determination value J, then in step S445, the reflection count determination unit 270 determines whether the second time width PW2 is greater than the fourth determination value J. 4 The fourth determination value J in this embodiment is 4 is the first judgment value J 1 to the third judgment value J 3 Similarly, J is defined as a function of the second rising timing RT2 and is expressed by the following equation (4): 4 = a4 t+b 4 ...(4) Coefficient a 4 and coefficient b 4 is the coefficient a 3 and coefficient b 3 Similarly, the reflection count determination unit 270 determines in step S450 that the number of reflections is 2 when the second time width PW2 is equal to or smaller than the fourth determination value J4. When the second time width PW2 is greater than the fourth determination value J4, the reflection count determination unit 270 determines in step S455 that the number of reflections is 3.

[0050] The second relationship data RD2 shown in FIG. 11 represents the relationship between the second rising timing RT2 and the second time duration PW2 for each distance measurement when the target object is in the short distance range. Hereinafter, this relationship between the second rising timing RT2 and the second time duration PW2 will also be referred to as the second relationship RP2. Like the first relationship data RD1, the second relationship data RD2 is data related to distance measurements performed in advance by experimental simulation. For example, the second relationship data RD2 is generated by recording the second rising timing RT2 and the second time duration PW2 for each distance measurement in association with each other, similar to the first relationship data RD1. In FIG. 11, the second relationship data RD2 is represented by a scatter plot in which each second relationship RP2 is represented as a data point, similar to FIG. 10.

[0051] Fig. 11 shows the fourth group Gp4, the fifth group Gp5, and the sixth group Gp6, each including a plurality of data points. In Fig. 11, the fourth group Gp4 is indicated by hatching slanting upward to the right, the fifth group Gp5 is indicated by hatching slanting downward to the right, and the sixth group Gp6 is indicated by hatching with a dotted pattern. The fourth group Gp4, the fifth group Gp5, and the sixth group Gp6 represent groups with the second relationship RP2 when the number of reflections is one, two, and three, respectively. As shown in Fig. 11, the fourth group Gp4, the fifth group Gp5, and the sixth group Gp6 are distributed farther apart from each other as the second rising timing RT2 increases, similar to the first group Gp1 to the third group Gp3 in Fig. 10.

[0052] The above-mentioned third determination value J 3When the second rising timing RT2 is before the reference timing ST, the coefficients of the third determination value J 3 The straight line representing the fourth lens unit Gp 4 and the fifth group Gp 5 The fourth determination value J 4 When the second rising timing RT2 is before the reference timing ST, the coefficients of the fourth determination value J 4 These coefficients are determined so that a line representing the first determination value J 1 Each coefficient and the second judgment value J 2 The coefficients a are determined in the same manner as the coefficients a 4 is the coefficient a 3 is greater than the coefficient a 2 The coefficient b is smaller than 4 is the coefficient b 3 is greater than the coefficient b 2 The coefficient a is smaller than 3 is the coefficient a 1 is smaller than the coefficient b 3 is the coefficient b 1 is a smaller value.

[0053] In another embodiment, the first determination value J 1 and the second judgment value J 2 and the third judgment value J 3 and the fourth judgment value J 4 For example, these determination values ​​may be defined as a quadratic or higher function or an exponential function with respect to the second rising timing RT2.

[0054] 12 shows a histogram HG3 as an example of the histogram HG. The histogram HG3 shows a peak PK3 that is a combination of the desired signal peak Pd, multiple reflection peak Pm2, and multiple reflection peak Pm3, which are superimposed on each other. The multiple reflection peak Pm3 is a multiple reflection peak Pm resulting from the third reflection. In FIG. 12, the intensity of the multiple reflection peak Pm3 is higher than the first threshold value TS1 and lower than the second threshold value TS2.

[0055] In the example shown in FIG. 12 , the multiple reflection peak Pm is excluded from the range of the second time width PW2 because the received light intensity of the multiple reflection peak Pm is lower than the second threshold value TS2. Therefore, if the second time width PW2 is used as the reflection count feature in this case, the number of reflections is likely to be determined to be lower than the actual number. For example, the seventh group Gp7 shown in FIG. 11 represents a group of the second relationship RP2 when the number of reflections is two and the received light intensity of the multiple reflection peak Pm is lower than the second threshold value TS2. In FIG. 11 , the seventh group Gp7 is indicated by hatching slanting upward to the right, similar to the fifth group Gp5. In FIG. 11 , the seventh group Gp7 overlaps with the fourth group Gp4. Therefore, when the received light intensity of the multiple reflection peak Pm is lower than the second threshold value TS2, even if the actual number of reflections is two, the third determination value J 3 , it may be determined that the number of reflections is one based on the second relationship RP2. The eighth group Gp8 represents the group that satisfies the second relationship RP2 when the number of reflections is three and the peak received light intensity resulting from the third reflection is lower than the second threshold value TS2. In FIG. 11, the eighth group Gp8 is indicated by dotted hatching, similar to the sixth group Gp6. The eighth group Gp8 overlaps with the fifth group Gp5 in FIG. 11. Therefore, if the peak received light intensity resulting from the third reflection is lower than the second threshold value TS2, the third determination value J is not determined even if the actual number of reflections is three. 3 and the fourth judgment value J 4 It is possible that the number of reflections is determined to be two based on the above.

[0056] As shown in FIG. 11 , the second relationship RP2 represented by the seventh group Gp7 and the eighth group Gp8 is more likely to occur when the second rising timing RT2 is later in time. This is because the peak received light intensity due to multiple reflections is more likely to decrease as the distance to the target increases due to attenuation of the pulsed light between the distance measuring device 100 and the target. Therefore, it is preferable to set the reference timing ST as a timing early enough to prevent the number of reflections from being determined to be lower than the actual number. In other words, it is preferable to set the reference timing ST as a timing at which the second time width PW2 is not selected as the reflection amount feature when using the second time width PW2 is likely to result in the number of reflections being determined to be lower than the actual number.

[0057] 13 shows a histogram HG4 as an example of the histogram HG. The histogram HG4 shows a peak PK4 that is a composite of the clutter peak Pc, the desired signal peak Pd, and the multiple reflection peak Pm2, which are all superimposed on one another. In FIG. 13, the intensity of the clutter peak Pc is higher than the first threshold value TS1 and lower than the second threshold value TS2.

[0058] In the example shown in FIG. 13 , the clutter peak Pc is included within the range of the first time width PW1 because the received light intensity of the clutter peak Pc is higher than the first threshold value TS1. In this case, using the first time width PW1 as the reflection count feature may result in the number of reflections being determined to be higher than the actual number. In particular, when the distance to the target is short, the clutter peak Pc and the desired signal peak Pd are temporally close to each other, and the received light intensity of the clutter peak Pc is higher than the first threshold value TS1, which may result in the number of reflections being determined to be higher than the actual number. Therefore, it is preferable to set the reference time ST as a timing that is sufficiently late in time to prevent the number of reflections from being determined to be higher than the actual number when the first time width PW1 is used as the reflection count feature. In other words, it is preferable to set the reference time ST as a timing at which the first time width PW1 is not selected as the reflection amount feature when there is a high possibility that the number of reflections will be determined to be higher than the actual number by using the first time width PW1.

[0059] 8 , the distance calculation unit 260 calculates the object distance based on the number of reflections determined in step S40 and the second falling timing FT2. For example, the distance calculation unit 260 calculates the object distance by using a value calculated by dividing the time represented by the first falling timing FT1 by the number of reflections and subtracting a time value Δt2 from the result, as the time of flight of the pulsed light P1 and the reflected light P2. The time value Δt2 is determined in advance based on, for example, the waveform of the pulsed light P1 as a value for calculating the center position of the desired signal peak Pd based on the first falling timing FT1.

[0060] According to the distance measuring device 100 of this embodiment described above, when the object is in the short distance range, the distance calculation unit 260 calculates the object distance based on the reflection count feature and the peak fall timing FT. According to this configuration, when the object is in the short distance range, the object distance is calculated based on the peak fall timing FT, which makes it possible to suppress a decrease in distance measurement accuracy caused by the clutter peak Pc superimposing on the desired signal peak Pd. Furthermore, since the object distance is calculated based on the reflection count feature, it is possible to suppress a decrease in distance measurement accuracy caused by the clutter peak Pc superimposing on the desired signal peak Pd. Therefore, it is possible to suppress a decrease in distance measurement accuracy caused by the clutter peak Pc and the multiple reflection peak Pm superimposing on the desired signal peak Pd.

[0061] In this embodiment, when the object is not in the short distance range, the distance calculation unit 260 calculates the object distance based on the rising timing RT. Therefore, when the object is not in the short distance range, the object distance can be easily calculated based on the rising timing RT.

[0062] Furthermore, in this embodiment, the short-distance determination unit 240 determines whether the object is within the short-distance range based on the second rising timing RT2 at which the received light intensity reaches a second threshold value TS2 that is greater than the first threshold value TS1, and the distance calculation unit 260 calculates the object distance based on the first rising timing RT1 at which the received light intensity reaches the first threshold value TS1 if the object is not within the short-distance range. In this manner, it is possible to determine whether the object distance is within the short-distance range based on the second rising timing RT2, which is less affected by the clutter peak Pc than the first rising timing RT1. Furthermore, because the object distance is calculated based on the first rising timing RT1 when the object distance is not within the short-distance range, the object distance can be calculated more accurately than, for example, when the object distance is calculated based on the second rising timing RT2.

[0063] In this embodiment, when the object is in the short distance range, the reflection count determination unit 270 determines the number of reflections based on the reflection count feature amount, and the distance calculation unit 260 calculates the object distance based on the determined number of reflections and the fall timing FT when the object is in the short distance range. Therefore, the number of reflections can be determined based on the reflection count feature amount, and the object distance can be calculated based on the determined number of reflections.

[0064] Furthermore, in this embodiment, if the second rising timing RT2 is after the reference timing ST, the reflection count determination unit 270 determines the number of reflections based on the correspondence between the second rising timing RT2 and the first time width PW1. If the second rising timing RT2 is before the reference timing ST, the reflection count determination unit 270 determines the number of reflections based on the correspondence between the second rising timing RT2 and the second time width PW2. The distance calculation unit 260 then calculates the object distance based on the number of reflections and the first falling timing FT1. This allows for a more accurate determination of the number of reflections by taking into account the influence of the received light intensity of the clutter peak Pc on the first time width PW1 and the influence of the received light intensity of the multiple reflection peak Pm on the second time width PW2. The thus determined number of reflections can be used to calculate the object distance. Furthermore, since the number of reflections is determined based on the first falling timing FT1, the object distance can be calculated more accurately compared to, for example, determining the number of reflections based on the second falling timing FT2. This allows for a more accurate calculation of the object distance.

[0065] B. Second Embodiment: As shown in FIG. 14 , unlike the first embodiment, the storage unit 290b of the distance measuring device 100b in the second embodiment stores correction data CD. Furthermore, the distance calculation unit 260b in this embodiment corrects the object distance based on the received light intensity in the histogram HG, as will be described later. The configuration of the distance measuring device 100b in the second embodiment is the same as that in the first embodiment unless otherwise specifically described.

[0066] The correction data CD is data for correcting the object distance based on the intensity of received light. In the distance measuring device 100, even if the distance to the object is the same, the shape of the peak PK can change depending on the intensity of the reflected light. This is because the number of SPAD circuits 68 constituting the pixel 66 is finite and the detection of reflected light by the SPAD circuits 68 constituting the pixel 66 is probabilistic. For example, when the intensity of the reflected light is relatively high (e.g., when the object has high reflectivity), many SPAD circuits 68 detect the light even in the early and final stages of the reflected light reaching the pixel 66, resulting in an earlier rise time RT and a later fall time FT. On the other hand, when the intensity of the reflected light is relatively low, only a few SPAD circuits 68 detect the light in the early and final stages of the reflected light reaching the pixel 66, resulting in a later rise time RT and an earlier fall time FT. In this embodiment, the distance calculation unit 260b corrects the object distance using the correction data CD, thereby preventing the calculation result of the object distance from being affected by changes in the rise timing RT and fall timing FT depending on the intensity of the reflected light as described above.

[0067] The inventors have also found that the rising edge timing RT and the falling edge timing FT exhibit different trends in change due to the intensity of the reflected light. More specifically, the inventors have found that the amount of change in the falling edge timing FT due to the intensity of the reflected light is smaller than the amount of change in the rising edge timing RT due to the intensity of the reflected light P2. In response to this difference in trends, the correction data CD in this embodiment is defined so that the object distance can be corrected with different intensities when the rising edge timing RT is used to calculate the object distance and when the falling edge timing FT is used.

[0068] As shown in FIG. 15 , the correction data CD in this embodiment is data for correcting the time values ​​Δt1 and Δt2 based on the peak intensity TPv. As described in the first embodiment, the time value Δt1 is used to calculate the object distance based on the first rising timing RT1, and the time value Δt2 is used to calculate the object distance based on the first falling timing FT1. Hereinafter, when the time values ​​Δt1 and Δt2 are not distinguished, they are also simply referred to as the time values ​​Δt. The correction data CD shown in FIG. 15 includes a correction value cv1 for correcting the time value Δt1 and a correction value cv2 for correcting the time value Δt2. In this embodiment, the correction value cv1 is defined as a positive linear function of the peak intensity TPv. Furthermore, the correction value cv2 is defined as a negative linear function of the peak intensity TPv. Note that in other embodiments, the correction values ​​cv1 and cv2 may be defined as, for example, quadratic or higher functions or exponential functions of the peak intensity TPv.

[0069] The correction values ​​cv1 and cv2 are defined so that their correction intensities are different. For example, when the peak intensity TPv is intensity ss1, the correction value cv1 is value c1, and the correction value cv2 is value c2. The absolute value of value c1 is greater than the absolute value of value c2. In this embodiment, this difference in correction intensity is achieved by making the absolute value of the slope of the correction value cv1 greater than the absolute value of the slope of the correction value cv2.

[0070] In this embodiment, in step S30 of FIG. 8 , the distance calculation unit 260b calculates the object distance using the time value Δt1 corrected based on the correction value cv1 included in the correction data CD. In step S50, the distance calculation unit 260b calculates the object distance using the time value Δt2 corrected based on the correction value cv2. In this manner, the object distance calculated by the distance calculation unit 260b is corrected based on the received light intensity, more specifically, based on the peak intensity TPv. Furthermore, the object distance is corrected so that the strength of the correction differs depending on whether the rising timing RT is used to calculate the object distance or the falling timing FT is used.

[0071] According to the second embodiment described above, the distance calculation unit 260b corrects the object distance based on the intensity of received light. In this way, the object distance can be corrected based on the intensity of received light. Therefore, the object distance calculation result can be prevented from being affected by changes in the rising timing RT and falling timing FT that depend on the intensity of reflected light. Therefore, the object distance can be calculated more accurately.

[0072] In this embodiment, the distance calculation unit 260b uses different correction strengths for the object distance depending on whether the rising timing RT or the falling timing FT is used to calculate the object distance, which increases the likelihood that the object distance can be more appropriately corrected whether the rising timing RT or the falling timing FT is used to calculate the object distance.

[0073] In the second embodiment, the distance calculation unit 260b corrects the object distance by correcting the time values ​​Δt1 and Δt2 based on the received light intensity. However, in other embodiments, the object distance may be corrected based on the received light intensity using a method different from the above. For example, the object distance calculated by the distance calculation unit 260b may be corrected based on the received light intensity. Furthermore, the object distance may be corrected by correcting the first rising timing RT1 and the first falling timing FT1 based on the received light intensity. Furthermore, the second rising timing RT2 and the second falling timing FT2 may be corrected based on the received light intensity, or the distance to an external object calculated using the second rising timing RT2 and the second falling timing FT2 may be corrected based on the received light intensity. Furthermore, such corrections may be used not only for calculating the object distance but also for, for example, determining whether the object is in the short distance range in step S20 and for the determinations in various steps of FIG. 9 .

[0074] Furthermore, the correction data CDb in another embodiment shown in FIG. 16 differs from the correction data CD in that it includes, as correction values ​​for the time value Δt2, a correction value cv2a when the number of reflections is one, a correction value cv2b when the number of reflections is two, and a correction value cv2c when the number of reflections is three. The correction values ​​cv2a, cv2b, and cv2c are each defined as a negative function of the peak intensity TPv, similar to the correction value cv2 in FIG. 15 , and the slopes of the correction values ​​are different. More specifically, the absolute values ​​of the slopes of the correction values ​​are greatest for the correction values ​​cv2a, cv2b, and cv2c, in that order. Note that the correction value for the time value Δt1 is omitted in FIG. 8 . By using this correction data CDb in step S50 of FIG. 8 , the distance calculation unit 260b can vary the strength of the correction of the object distance depending on the determined number of reflections. For example, when the received light intensity is intensity ss2, the correction value cv2a takes the value c3, the correction value cv2b takes the value c4, and the correction value cv2c takes the value c5. The absolute values ​​of these values ​​are larger in the order of c3, c4, and c5.

[0075] C. Other Embodiments: (C-1) In the above embodiment, the distance calculation unit 260 calculates the object distance based on the first rising timing RT1 when the object is not in the short distance range. However, the object distance does not have to be calculated in this manner. For example, the distance calculation unit 260 may calculate the object distance based on the second rising timing RT2. Furthermore, the distance calculation unit 260 may calculate the object distance based on the first falling timing FT1 or the second falling timing FT2 instead of the rising timing RT.

[0076] (C-2) In the above embodiment, the distance calculation unit 260 calculates the object distance based on the first falling timing FT1 when the object is not within the short distance range. However, for example, the object distance may be calculated based on the second falling timing FT2. In this case, for example, the number of reflections may be determined using the second rising timing RT2 as a reflection count feature, regardless of whether the second rising timing RT2 occurs before or after the reference timing ST. More specifically, for example, in the example of FIG. 12 , as described above, if the number of reflections is determined based on the correspondence between the second rising timing RT2 and the second time width PW2, the number of reflections is determined to be two. However, in this case, the second falling timing FT2 corresponds to the falling timing of the multiple reflection peak Pm2. Therefore, in this case, if the object distance is measured based on the second falling timing FT2 and the number of reflections (two), a decrease in distance measurement accuracy due to an error in determining the number of reflections to be lower than the actual number can be prevented.

[0077] (C-3) In the above embodiment, for example, the number of reflections may be determined using a pre-generated machine learning model. This machine learning model is generated by pre-training the relationship between the number of reflections and various feature quantities, including the reflection number feature quantity, so that the number of reflections can be determined based on various feature quantities, including the reflection number feature quantity. Examples of such machine learning models that can be used include neural networks, decision trees, and support vector machines. Furthermore, various machine learning algorithms, such as supervised learning, unsupervised learning, and reinforcement learning, may be used for the machine learning.

[0078] (C-4) In the above embodiment, the calculation unit 210 includes the reflection count determination unit 270, but it does not have to include the reflection count determination unit 270. For example, in the distance measurement process, when the object is in the short distance range, the object distance may be calculated based on the fall timing FT and the reflection count feature amount without determining the number of reflections.

[0079] D. Other Aspects: The present disclosure is not limited to the above-described embodiments and can be realized in various configurations without departing from the spirit thereof. For example, the technical features in the embodiments can be appropriately replaced or combined to solve some or all of the above-described problems or to achieve some or all of the above-described effects. Furthermore, if a technical feature is not described as essential in this specification, it can be appropriately deleted.

[0080] The control unit and the method described herein may be implemented by a special-purpose computer configured by configuring a processor and memory programmed to perform one or more functions embodied in a computer program. Alternatively, the control unit and the method described herein may be implemented by a special-purpose computer configured by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described herein may be implemented by one or more special-purpose computers configured by combining a processor and memory programmed to perform one or more functions with a processor configured with one or more hardware logic circuits. Furthermore, the computer program may be stored as instructions executed by a computer on a computer-readable non-transitory tangible storage medium.

[0081] <Form 1> The distance measuring device (100, 100b) comprises an emitter (40) that emits pulsed light, a receiver (60) that receives the reflected light of the pulsed light reflected by an object and outputs an output signal (Sout) based on the reflected light, and a calculator (210) that uses the flight time of the pulsed light to calculate the object distance, which is the distance to the object. The calculation unit includes a histogram generation unit (230) that generates a histogram (HG) that represents the received light intensity of the reflected light by the light receiving unit for each time of flight based on the output signal; a short-distance determination unit (240) that determines whether the object is within a predetermined short-distance range based on the rise timing (RT) of the peak (PK) of the received light intensity in the histogram; a feature acquisition unit (250) that acquires, based on the histogram, a feature related to the number of reflections that represents the number of times the pulsed light has reflected back and forth between the object and the light receiving unit; and a distance calculation unit (260, 260b) that calculates the object distance based on the feature and the fall timing (FT) of the peak if the object is within the short-distance range.

[0082] <Mode 2> In the distance measuring device of Mode 1, the distance calculation section may calculate the object distance based on the rising timing when the object is not within the short distance range.

[0083] <Form 3> In the distance measuring device of Form 2 described above, the rising timing may include a first rising timing (RT1) at which the received light intensity takes a first threshold value (TS1) and a second rising timing (RT2) at which the received light intensity takes a second threshold value (TS2) that is greater than the first threshold value, and the short distance determination unit may determine whether the object is within the short distance range based on the second rising timing, and the distance calculation unit may calculate the object distance based on the first rising timing if the object is not within the short distance range.

[0084] <Form 4> In the distance measuring device of Form 3, the calculation unit may further have a reflection count determination unit (270) that determines the number of reflections based on the feature amount, and the distance calculation unit may calculate the object distance based on the determined number of reflections and the fall timing when the object is within the short distance range.

[0085] <Form 5> In the distance measuring device of Form 4, the falling timing includes a first falling timing (FT1) at which the received light intensity takes the first threshold value and a second falling timing (FT2) at which the received light intensity takes the second threshold value, and the reflection count determination unit may determine the number of reflections using, as the feature, either a first time width (PW1) representing the time width between the first rising timing and the first falling timing or a second time width (PW2) representing the time width between the second rising timing and the second falling timing.

[0086] <Form 6> In the distance measuring device of Form 5 described above, the reflection count determination unit, when the object is within the short distance range, determines whether the second rise timing is before a predetermined reference timing (ST), and if the second rise timing is after the reference timing, determines the reflection count based on the correspondence between the second rise timing and the first time width, and if the second rise timing is before the reference timing, determines the reflection count based on the correspondence between the second rise timing and the second time width, and the distance calculation unit may calculate the object distance based on the determined number of reflections and the first fall timing.

[0087] <Mode 7> In the distance measuring device according to any one of modes 1 to 6, the distance calculation section may correct the object distance based on the intensity of the received light.

[0088] <Form 8> In the distance measuring device of form 7, the distance calculation unit may use different strengths of correction of the object distance depending on whether the rising timing is used to calculate the object distance or the falling timing is used to calculate the object distance.

[0089] Although the present disclosure has been described with reference to the embodiments, it is understood that the present disclosure is not limited to the embodiments or structures. The present disclosure also encompasses various modifications and equivalent modifications. In addition, various combinations and forms, including only one element, more than one element, or less than one element, are also within the scope and spirit of the present disclosure.

Claims

1. A distance measuring device (100, 100b), comprising: a light emitting unit (40) that emits pulsed light; a light receiving unit (60) that receives reflected light of the pulsed light reflected by an object and outputs an output signal (Sout) based on the reflected light; and a calculation unit (210) that uses the flight time of the pulsed light to calculate an object distance, which is the distance to the object, wherein the calculation unit comprises: a histogram generating unit (230) that generates a histogram (HG) that represents the received light intensity of the reflected light by the light receiving unit for each flight time based on the output signal; a close distance determining unit (240) that determines whether the object is within a predetermined close distance range based on the rise timing (RT) of a peak (PK) of the received light intensity in the histogram; and a feature acquiring unit (250) that acquires a feature related to the number of reflections that represents the number of times the pulsed light has been reflected back and forth between the object and the light receiving unit based on the histogram; a distance calculation unit (260, 260b) that calculates the object distance based on the feature amount and a fall timing (FT) of the peak when the object is in the short distance range.

2. A distance measuring device according to claim 1, wherein the distance calculation unit calculates the object distance based on the rising timing when the object is not within the short distance range.

3. A distance measuring device as described in claim 2, wherein the rising timing includes a first rising timing (RT1) at which the received light intensity is a first threshold value (TS1) and a second rising timing (RT2) at which the received light intensity is a second threshold value (TS2) greater than the first threshold value, the close-distance determination unit determines whether or not the object is within the close-distance range based on the second rising timing, and the distance calculation unit calculates the object distance based on the first rising timing if the object is not within the close-distance range.

4. A distance measuring device as described in claim 3, wherein the calculation unit further has a reflection count determination unit (270) that determines the number of reflections based on the characteristic amount, and the distance calculation unit calculates the object distance based on the determined number of reflections and the fall timing when the object is within the short distance range.

5. A distance measuring device as described in claim 4, wherein the falling timing includes a first falling timing (FT1) at which the received light intensity takes the first threshold value and a second falling timing (FT2) at which the received light intensity takes the second threshold value, and the reflection count determination unit determines the number of reflections using either a first time width (PW1) representing the time width between the first rising timing and the first falling timing or a second time width (PW2) representing the time width between the second rising timing and the second falling timing as the feature.

6. A distance measuring device as described in claim 5, wherein the reflection count determination unit, when the object is within the close range, determines whether the second rise timing is before a predetermined reference timing (ST), and if the second rise timing is after the reference timing, determines the reflection count based on the correspondence between the second rise timing and the first time width, and if the second rise timing is before the reference timing, determines the reflection count based on the correspondence between the second rise timing and the second time width, and the distance calculation unit calculates the object distance based on the determined number of reflections and the first fall timing.

7. A distance measuring device according to any one of claims 1 to 6, wherein the distance calculation section corrects the object distance based on the intensity of the received light.

8. A distance measuring device according to claim 7, wherein the distance calculation section varies the strength of correction of the object distance between when the rising timing is used to calculate the object distance and when the falling timing is used.