Ranging device
The device improves distance measurement accuracy by using a histogram to differentiate between desired signals and clutter, and accounting for the number of reflections, thereby reducing inaccuracies caused by multiple reflections.
Patent Information
- Application Number
- JP2023065559
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-13
- Publication Date
- 2024-10-25
AI Technical Summary
Distance measuring devices face inaccuracies in measuring flight time due to multiple reflections and clutter, which can degrade ranging accuracy.
A distance measuring device that includes a light emitting unit, light receiving unit, and a calculation unit to calculate object distance based on the flight time of pulsed light, utilizing a histogram to distinguish between desired signals and clutter, and determining the number of reflections to suppress inaccuracies.
The device enhances ranging accuracy by suppressing the effects of multiple reflections and clutter, allowing for precise distance measurements.
Smart Images

Figure 2024151827000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a distance measuring device. [Background technology]
[0002] Distance measuring devices are known that measure the distance to an object by emitting pulsed light from an emitter, detecting the reflected light from the object with a receiver, and measuring the time of flight (TOF) of the light from irradiation to reception (for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2001-74827 A Summary of the Invention [Problem to be solved by the invention]
[0004] In a distance measuring device, signals different from the desired signal for measuring the distance to an object, such as signals due to multiple reflections and clutter, may be generated. The clutter here refers to pulsed light reflected by the window of the housing that houses the light emitting unit and the light receiving unit. Moreover, multiple reflections mean that the pulsed light emitted from the light emitting unit is reflected back and forth between the object and the light receiving unit multiple times. Due to the effects of such multiple reflections and clutter, the flight time cannot be measured correctly, and there is a risk of a decrease in distance measurement accuracy. [Means for solving the problem]
[0005] The present disclosure can be realized in the following forms.
[0006] According to a first embodiment of the present disclosure, a distance measuring device (100, 100b) is provided. The distance measuring device includes 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. The calculation unit includes a histogram generation unit (230) that generates a histogram (HG) representing the received light intensity of the reflected light by the light receiving unit for each time of flight based on the output signal, a close-distance determination unit (240) that determines whether the object is in a predetermined close-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 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 based on the histogram, and a distance calculation unit (260, 260b) that calculates the object distance based on the feature and the fall timing (FT) of the peak when the object is in the close-distance range.
[0007] 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, the deterioration of the 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, the deterioration of the distance measurement accuracy due to the influence of multiple reflections is suppressed. Therefore, the deterioration of the distance measurement accuracy due to the influence of multiple reflections and clutter can be suppressed. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is an explanatory diagram showing a schematic configuration of a distance measuring device according to a first embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating a schematic configuration of a light receiving array. [Diagram 3] FIG. 1 is a circuit diagram showing a schematic configuration of a SPAD circuit. [Figure 4]FIG. 1 is a block diagram showing a schematic configuration of a distance measuring device according to a first embodiment. [Diagram 5] FIG. 11 is an explanatory diagram showing an example of a histogram. [Figure 6] Schematic diagram of a histogram. [Figure 7] FIG. 13 is a schematic diagram showing an example of a histogram when a target object is in a long distance range. [Figure 8] 4 is a flowchart of a distance measurement process. [Figure 9] 13 is a flowchart of a reflection count determination process. [Figure 10] FIG. 4 is a diagram for explaining first relationship data. [Figure 11] FIG. 11 is a diagram for explaining second relationship data. [Figure 12] FIG. 11 is a first schematic diagram showing an example of a histogram when a target object is in a close distance range. [Figure 13] FIG. 2 is a second schematic diagram showing an example of a histogram when the object is in the close distance range. [Figure 14] FIG. 11 is a block diagram showing a schematic configuration of a distance measuring device according to a second embodiment. [Figure 15] FIG. 11 is a view for explaining correction data in the second embodiment. [Figure 16] FIG. 10 is a diagram illustrating correction data according to another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] 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 visual field range 80, and a light receiving unit 60 that receives incident light including reflected light from an external object and disturbance light. The distance measuring device 100 is housed in a housing 90 having 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 part of it.
[0010] The distance measuring device 100 is, for example, an in-vehicle LiDAR (Laser Imaging Detection and Ranging) 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.
[0011] 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 collimator lens 45 that converts the laser light emitted from the laser element 41 into parallel light. The laser element 41 is a laser diode capable of oscillating a so-called short pulse laser. In this embodiment, the laser element 41 forms a rectangular laser emission region by arranging a plurality of laser diodes in the vertical direction. The intensity of the laser light output by the laser element 41 is configured to be adjustable according to the voltage supplied to the laser element 41.
[0012] The scanning unit 50 is configured by a so-called one-dimensional scanner. The scanning unit 50 is configured by a mirror 54, a rotary solenoid 58, and a rotating unit 56. The mirror 54 reflects the laser light that has been collimated by the collimating lens 45. The rotary solenoid 58 repeats normal and reverse rotation within a predetermined angle range upon receiving a control signal from the control device 200. The rotating unit 56 is driven by the rotary solenoid 58 and repeats normal and reverse rotation on 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 constitutes a kind 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 to each position within the scanning range, that is, each pixel position within the field of view 80. Then, the irradiation of this pulsed light and the distance measurement process described below based on the reflected light from each pixel position are executed for each pixel position at a predetermined time interval.
[0013] When an external object (reflecting object) such as a person or a car is present, the laser light output from the light-emitting unit 40 is diffusely reflected by the surface of the object, and a 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 enters the light-receiving lens 61 of the light-receiving unit 60 as incident light together with the external light, and is collected by the light-receiving lens 61 and enters the light-receiving array 65. The laser light output from the distance measuring device 100 is diffusely reflected not only by external objects but also by objects inside the distance measuring device 100, such as the window 92, and a part of the reflected light enters the light-receiving array 65.
[0014] 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 so that H pixels are arranged in the horizontal direction and V pixels are arranged in the vertical direction. H and V are each an integer of 1 or more. In this embodiment, H=V=5, and five SPAD circuits 68 are arranged in each of the horizontal and vertical directions. The number of SPAD circuits 68 constituting the pixel 66 may be any number, and for example, the pixel 66 may be composed of one SPAD circuit 68. The light receiving result of one pixel 66 is the light receiving intensity at one pixel position within the field of view range 80.
[0015] 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, and inputs the voltage at the connection point to an inverting element INV, which is one of the logic operation elements, and converts it 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 a FET, and when the selection signal SC is active, its on-resistance functions as the quench resistor Rq. When the selection signal SC becomes inactive, the quench resistor Rq becomes in a high impedance state, so that even if light is incident on the avalanche diode Da, no quench current flows, and as a result, the SPAD circuit 68 does not operate. The selection signal SC is output collectively to the 5×5 SPAD circuits 68 in the 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 the Geiger mode, but the avalanche diode Da may be used in the linear mode and its output may be treated as an analog signal. Also, a PIN photodiode may be used instead of the avalanche diode Da.
[0016] If no light is incident on the SPAD circuit 68, the avalanche diode Da is kept in a non-conducting state. Therefore, the input side of the inverting element INV is pulled up through the quench resistor Rq, that is, kept at a high level. Therefore, the output of the inverting element INV is kept at a low level. When light is incident on each SPAD circuit 68 from the outside, the avalanche diode Da is turned on by the incident light (photons). As a result, a large current flows through the quench resistor Rq, the input side of the inverting element INV becomes a low level once, and the output of the inverting element INV is inverted 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, and the power supply to the avalanche diode Da is stopped, and the avalanche diode Da returns to a non-conducting state. As a result, the output signal of the inverting element INV is also inverted 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. If the selection signal SC goes high in synchronization with the timing at which each SPAD circuit 68 receives light, the output signal of the inverting element INV, that is, 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 including reflected light and disturbance light that is irradiated light reflected and returned by external objects or windows 92 that are present in the scanning range.
[0017] 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 in both directions. 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 the light emission control unit 206 and the 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 , the 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.
[0018] The light emission control unit 206 controls the light emission 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 emission unit 40 and transmission of an angle control signal to the scanning unit 50.
[0019] The calculation unit 210 calculates the object distance using the flight time 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 due to 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 due to the pulsed light P1 is output from the window 92. In this specification, the reflected light obtained by reflecting the pulsed light P1 on the inner surface of the window 92, such as the reflected light P3, is called "clutter". In addition, in the distance measuring device 100, reflected light P4 due to multiple reflections may occur. "Multiple reflections" means that the pulsed light P1 emitted from the light emitting unit 40 is reflected 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 P1 to the reception of the reflected light beams P2, P3, and P4 is determined as the flight time of the light. The calculation unit 210 uses this flight time to calculate the object distance.
[0020] Note that multiple reflections are likely to occur when the object is an object with high reflectivity (for example, a reflector provided at the rear of a vehicle). Also, multiple reflections usually occur when the reflected light from the object is reflected back to the object by the light receiving unit 60, and sometimes occur when the reflected light from the object is reflected back to the object by the window 92. Hereinafter, the number of times that the pulsed light is reflected back and forth between the object and the light receiving unit 60 is also referred to as the number of reflections. It can also be said that the number of reflections represents the number of times that the pulsed light is reflected by the 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.
[0021] 4, the calculation unit 210 includes an adder 220, a histogram generator 230, a close distance determiner 240, a feature amount acquirer 250, and a distance calculator 260. The calculation unit 210 in this embodiment further includes a reflection count determiner 270.
[0022] 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 is incident on 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, in the SPAD circuit 68, detection of the limited light output from the external object OBJ is inevitably probabilistic. Therefore, the adder 220 adds the output signals Sout from the SPAD circuits 68 that can only detect incident light probabilistically.
[0023] The histogram generating unit 230 generates a histogram HG that represents the light receiving intensity of the reflected light by the light receiving unit 60 for each flight time based on the output signal Sout. More specifically, the histogram generating unit 230 acquires the addition result by the adding unit 220, and generates a histogram HG based on the result of recording the addition result in a time series at a predetermined time interval Ti (for example, 1 nanosecond), and stores the histogram in the storage unit 290. The light receiving intensity in the histogram HG is represented by the total number of SPAD circuits 68 that received light in one pixel 66. In FIG. 5, the histogram HG is represented by a schematic graph with the flight time on the horizontal axis and the light receiving intensity on the vertical axis. The histogram generating unit 230 generates such a histogram HG by linearly interpolating each light receiving intensity ss recorded at the time interval 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.
[0024] FIG. 5 shows an example of a histogram HG generated when the object is in a short distance range described later. In the histogram HG shown in FIG. 5, a peak PK of the received light intensity appears. 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 said to be a portion of the peak PK whose received light intensity rises toward the 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 said to be a portion whose received light intensity falls from the peak intensity TPv. Hereinafter, the timing when the rising portion PR occurs is also called the rising timing RT, and the timing when the falling portion PF occurs is also called the falling timing FT. In this embodiment, the rising timing RT and the falling timing FT are each expressed by a time of flight.
[0025] 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 at which the received light intensity takes the first threshold value TS1 during the rising timing RT. The second rising timing RT2 is the timing at which the received light intensity takes the second threshold value TS2 during the rising timing RT. 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 at which the received light intensity takes the first threshold value TS1 during the falling timing FT. The second falling timing FT2 is the timing at which the received light intensity takes the second threshold value TS2 during the falling timing FT. The first threshold value TS1 and the second threshold value TS2 will be described in detail later.
[0026] 5 shows a first time span PW1 and a second time span PW2. The first time span PW1 represents the time span between the first rising timing RT1 and the first falling timing FT1 in the histogram HG. The second time span PW2 represents the time span between the second rising timing RT2 and the second falling timing FT2 in the histogram HG.
[0027] In FIG. 6, the peak PK in FIG. 5 is shown in a schematic manner. As shown in FIG. 6, the peak PK shown in FIG. 5 is a peak obtained by combining the clutter peak Pc, the desired signal peak Pd, and the multiple reflection peak Pm, which are superimposed on each other. The clutter peak Pc represents a peak based on the reflected light P3, that is, a peak due to clutter. The desired signal peak Pd represents a peak based on the reflected light P2. More specifically, the desired signal peak Pd is a peak based on the reflected light with one reflection, and is a peak different from the clutter peak Pc and the multiple reflection peak Pm. The multiple reflection peak Pm2 represents a peak based on the reflected light P4, that is, 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 light receiving intensity for convenience, but the light receiving intensity of the clutter peak Pc is usually lower than the light receiving intensity of the desired signal peak Pd. Also, the light receiving intensity of the multiple reflection peak Pm may be the same as the light receiving intensity of the desired signal peak Pd, or it may be lower than the light receiving intensity of the desired signal peak Pd.
[0028] 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. When the number of reflections is three or more, peaks resulting from the third and subsequent reflections appear later in time than the multiple reflection peak Pm2 and may be superimposed on the multiple reflection peak Pm2. In this specification, the meaning of "multiple reflection peak Pm superimposed on desired signal peak Pd" includes not only the multiple reflection peak Pm directly superimposed on the desired signal peak Pd, but also the multiple reflection peak Pm being further superimposed on the multiple reflection peak Pm superimposed on the desired signal peak Pd. When the number of reflections is one, the multiple reflection peak Pm does not appear.
[0029] The short distance determination unit 240 shown in Fig. 4 determines whether or not the object 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 degree 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 with the desired signal peak Pd. In this specification, a range farther than the short distance range is also referred to as a long distance range.
[0030] FIG. 7 shows a histogram HG2, which is generated when the object is in the long distance range, as an example of a histogram. In the histogram HG2, unlike the histograms HG shown in FIG. 5 and FIG. 6, the clutter peak Pc 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 after a relatively long time has passed since the clutter was received. Also, if the distance between the object and the distance measuring device 100 is relatively long in this way, even if multiple reflections occur, the light receiving unit 60 receives the reflected light due to multiple reflections after a relatively long time has passed since 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 is 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.
[0031] The feature acquisition unit 250 shown in FIG. 4 acquires various feature amounts related to the peak PK based on the histogram HG generated by the histogram generation unit 230. The feature amounts include a reflection count feature amount, which is a feature amount related to the reflection count. In this embodiment, the feature acquisition unit 250 acquires a first time width PW1 and a second time width PW2, which are feature amounts correlated with the reflection count, as the reflection count feature amount. When the object is in a short distance range, the first time width PW1 and the second time width PW2 tend to become larger as the reflection count increases. This is because, in a short distance range, the more the reflection count increases, the more multiple reflection peaks Pm are superimposed on the desired signal peak Pd.
[0032] As described below, when the object is in the close range, the reflection count determination section 270 determines the number of reflections based on the reflection count feature amount.
[0033] 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 and the falling timing FT. As 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 reflection count determined based on the reflection count feature. Also, 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.
[0034] 8 is executed to measure the object distance. The distance measurement process is started by the calculation unit 210, for example, at the timing when the histogram generation unit 230 generates a histogram.
[0035] 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 values of flight times representing each timing. In addition, the feature acquisition unit 250 acquires the first time width PW1 and the second time width PW2 by calculating them based on these acquired values. For example, the feature acquisition unit 250 identifies two flight times at which the received light intensity at the peak PK takes the first threshold value TS1, and of the two identified flight times, identifies the earlier time as the first rising timing RT1 and the later time as the first falling timing FT1. Similarly, the feature amount acquiring section 250 identifies a second rising timing RT2 and a second falling timing FT2 based on two times of flight at which the received light intensity at the peak PK reaches the second threshold value TS2.
[0036] In step S20, the close distance determination unit 240 determines whether the object is in the close distance range. In step S20 in this embodiment, the close distance determination unit 240 determines whether the object is in the close distance range based on the second rising timing RT2. In step S20, the close distance determination unit 240 determines that the object is in the close distance range, for example, when 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 a distance based on the second rising timing RT2, and determine that the object is in the close distance range, for example, when the distance is equal to or less than a predetermined distance threshold.
[0037] 5 is preferably set to a value between 80% and 100% of the peak intensity TPv, and in this embodiment, it is set to 100% of the peak intensity TPv. As described above, the light intensity of the clutter peak Pc is generally smaller than the light intensity of the desired signal peak Pd. Therefore, by setting the second threshold TS2 to 80% or more of the peak intensity TPv, the second rising timing RT2 is less likely to be affected by the clutter peak Pc.
[0038] If it is determined in step S20 that the object is not in 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 using a value calculated by adding a time value Δt1 to the time represented by the first rising timing RT1 as the flight time 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.
[0039] The first threshold value TS1 shown in FIG. 5 is preferably set to a value of 40% or more and 70% or less of the peak intensity TPv, and in this embodiment, it is set to a value of 50% of the peak intensity TPv. In the range of the rising timing RT where the received light intensity is 40% or more and 70% or less of the peak intensity TPv, the accuracy of linear interpolation is higher. 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. Note that the accuracy of linear interpolation at the first rising timing RT1 is usually higher than the accuracy of linear interpolation at the second rising timing RT2. Therefore, by using the first rising timing RT1, the object distance can be calculated more accurately than when the second rising timing RT2 is used. Similarly, the accuracy of linear interpolation at the first falling timing FT1 is usually higher than the accuracy of linear interpolation at the second falling timing FT2.
[0040] 8, when it is determined that the object is in the close 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.
[0041] In step S405 in FIG. 9, the reflection count determination unit 270 determines whether the second rising timing RT2 identified in step S10 in FIG. 8 is before the reference timing ST shown in FIG. 10 or 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 reflection count using the second rising timing RT2 and the reflection count feature. As will be described later, when 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, when 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.
[0042] When the second rising timing RT2 is later than the reference timing ST, in steps S410 to S430 in 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 In this embodiment, the first determination value J 1 is defined as a function of the second rising timing RT2 and is expressed by the following equation (1). J 1 =a 1 t+b 1 …(1) The time t represents the second rising timing RT2. 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.
[0043] The first time width PW1 is the first judgment value J 1 If it is equal to or smaller than the first determination value J, the reflection count determination unit 270 determines in step S415 that the reflection count is one. 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 In this embodiment, the second determination value J 2 is the first judgment value J 1 Similarly, it is defined as a function of the second rising timing RT2 and is expressed by the following equation (2). J 2 =a 2 t+b 2 …(2) Coefficient a 2 and coefficient b 2 is the coefficient a above 1 and coefficient b 1 The first time width PW1 is determined based on the first relation data RD1 in substantially the same manner as the second judgment value J 2If the first time width PW1 is equal to or smaller than the second determination value J, the reflection count determination unit 270 determines in step S425 that the reflection count is two. 2 If it is greater, reflection count determination section 270 determines in step S430 that the reflection count is three.
[0044] The first relationship data RD1 shown in FIG. 10 is data representing the relationship between the second rising timing RT2 and the first time width PW1 for each distance measurement when the target object is in the short distance range. Hereinafter, the relationship between the second rising timing RT2 and the first time width PW1 is also referred to as the first relationship RP1. The first relationship data RD1 is data relating to distance measurement performed in advance by an experiment or a simulation, and is generated, for example, by recording the second rising timing RT2 and the first time width PW1 for each distance measurement in association with each other based on the results of an experiment or a simulation. 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 width PW1 on the vertical axis, more specifically, by a scatter diagram representing each first relationship RP1 as a data point. Note that in FIG. 10, only a portion of the data points representing the first relationship RP1 are representatively shown. The first relationship data RD1 includes not only the first relationship RP1 when multiple reflections do not occur, but also the first relationship RP1 when multiple reflections occur. For example, the first relationship data RD1 shown in Fig. 10 includes first relationships RP1 when the number of reflections is 1, 2, and 3. The first relationship data RD1 shown in Fig. 10 also includes first relationships RP1 when a clutter peak Pc overlaps a desired signal peak Pd. In the first relationship data RD1 in this embodiment, each first relationship RP1 is associated with the number of reflections.
[0045] FIG. 10 shows a first group Gp1, a second group Gp2, and a third group Gp3, each of which includes a plurality of data points. In FIG. 10, the first group Gp1 is shown by hatching that slopes upward to the right, the second group Gp2 is shown by hatching that slopes downward to the right, and the third group Gp3 is shown by hatching with a dot 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 is larger. This is because the longer the distance to the target object, the later the multiple reflection peak Pm overlaps with the desired signal peak Pd in time, and the larger the increment of the first time width PW1 due to the increase in the number of reflections.
[0046] The above-mentioned first judgment value J 1 Coefficient a of 1 and coefficient b 1 is the first judgment value J in a range later in time than the reference timing ST in the first relationship data RD1. 1 A line representing the coefficient a is determined to be located between the first group Gp1 and the second group Gp2. 1 and coefficient b 1 In the first relation data RD1, the first judgment value J 1 is determined so that the straight line representing the second judgment value J is located between the first group Gp1 and the second group Gp2 and is located farther away from each data point included in the first group Gp1 and the second group Gp2. 2 Coefficient a of 2 and coefficient b 2 When the second rising timing RT2 is later than the reference timing ST, the second judgment value J is determined based on the first relationship data RD1. 2 A line representing the coefficient a is determined to be 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 judgment value J 2The line representing the coefficient a is determined so as to be located between the second group Gp2 and the third group Gp3 and to be located farther away from each data point included in the second group Gp2 and the third group Gp3. 2 is the coefficient a 1 is greater than the coefficient b 2 is the coefficient b 1 is greater than
[0047] If the second rising timing RT2 is before the reference timing ST, in steps S435 to S455 in 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 In this embodiment, the third determination value J 3 is the first judgment value J 1 or the second judgment value J 2 Similarly, it is defined as a function of the second rising timing RT2 and is expressed by the following equation (3). J 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.
[0048] The second time width PW2 is the third judgment value J 3 If it is equal to or smaller than the third determination value J, the reflection count determination unit 270 determines in step S440 of FIG. 3 If it is greater than the fourth judgment value J, in step S445, the reflection count judgment unit 270 judges whether the second time width PW2 is greater than the fourth judgment value J. 4 In this embodiment, the fourth determination value J 4 is the first judgment value J 1 From the third judgment value J 3Similarly, it is defined as a function of the second rising timing RT2 and is expressed by the following equation (4). J 4 =a 4 t+b 4 …(4) Coefficient a 4 and coefficient b 4 is the coefficient a 3 and coefficient b 3 Similarly, it is determined based on the second relationship data RD2. When the second time width PW2 is equal to or smaller than the fourth judgment value J4, the reflection count determination unit 270 determines in step S450 that the number of reflections is two. When the second time width PW2 is greater than the fourth judgment value J4, the reflection count determination unit 270 determines in step S455 that the number of reflections is three.
[0049] The second relationship data RD2 shown in FIG. 11 is data representing the relationship between the second rising timing RT2 and the second time width PW2 for each distance measurement when the target object is in the close range. Hereinafter, this relationship between the second rising timing RT2 and the second time width PW2 is also referred to as the second relationship RP2. The second relationship data RD2 is data relating to distance measurement performed in advance by experimental simulation, similar to the first relationship data RD1, and is generated, for example, by recording the second rising timing RT2 and the second time width PW2 for each distance measurement in association with each other, substantially similar to the first relationship data RD1. In FIG. 11, the second relationship data RD2 is represented by a scatter diagram representing each second relationship RP2 as a data point, substantially similar to FIG. 10.
[0050] 11 shows a fourth group Gp4, a fifth group Gp5, and a sixth group Gp6, each of which includes a plurality of data points. In FIG. 11, the fourth group Gp4 is shown by hatching that slopes upward to the right, the fifth group Gp5 is shown by hatching that slopes downward to the right, and the sixth group Gp6 is shown by hatching with a dot pattern. The fourth group Gp4, the fifth group Gp5, and the sixth group Gp6 represent groups of the second relationship RP2 when the number of reflections is 1, 2, and 3, 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 is larger, similar to the first group Gp1 to the third group Gp3 in FIG. 10.
[0051] The third judgment value J 3 When the second rising timing RT2 is before the reference timing ST, the coefficients of the third judgment value J are calculated based on the second relationship data RD2. 3 The line representing the fourth group Gp 4 and Group 5 Gp 5 The fourth judgment value J 4 When the second rising timing RT2 is before the reference timing ST, the coefficients of the fourth judgment value J are calculated based on the second relationship data RD2. 4 These coefficients are determined so that a straight line representing the first judgment value J 1 Each coefficient and the second judgment value J 2 The coefficients a 4 is the coefficient a 3 Greater than and by a factor a 2 The coefficient b is smaller than 4 is the coefficient b 3 Larger than and with 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 smaller.
[0052] In another embodiment, the first judgment value J 1or 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.
[0053] Fig. 12 shows a histogram HG3 as an example of the histogram HG. The histogram HG3 shows a peak PK3 that is a combination of a desired signal peak Pd, a multiple reflection peak Pm2, and a multiple reflection peak Pm3 that overlap each other. The multiple reflection peak Pm3 is a multiple reflection peak Pm resulting from a 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.
[0054] In the example shown in FIG. 12, the multiple reflection peak Pm is excluded from the range of the second time width PW2 due to the fact that the light receiving 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, there is a high possibility that the reflection count will 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 in the case where the reflection count is two and the light receiving 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. The seventh group Gp7 overlaps with the fourth group Gp4 in FIG. 11. Therefore, when the light receiving 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 judgment value J is not determined to be higher than the third judgment value J. 3Based on this, it may be determined that the number of reflections is one. The eighth group Gp8 represents the group of the second relationship RP2 when the number of reflections is three and the peak light receiving intensity caused by 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, when the peak light receiving intensity caused by the third reflection is lower than the second threshold value TS2, the third determination value J is not set to the third determination value J even if the actual number of reflections is three. 3 and the fourth judgment value J 4 Based on this, it may be determined that the number of reflections is two.
[0055] As shown in Fig. 11, the second relationship RP2 represented by the seventh group Gp7 and the eighth group Gp8 is likely to occur when the second rising timing RT2 is later in time. This is because the peak light receiving intensity due to multiple reflections is more likely to decrease due to attenuation of the pulsed light between the distance measuring device 100 and the object as the distance to the object increases. Therefore, it is preferable that the above-mentioned reference timing ST is set as a timing that is early enough to prevent the number of reflections from being determined to be less than the actual number. In other words, it is preferable that the reference timing ST is set as a timing at which the second time width PW2 is not selected as the reflection amount feature amount when the number of reflections is likely to be determined to be less than the actual number by using the second time width PW2.
[0056] Fig. 13 shows a histogram HG4 as an example of the histogram HG. The histogram HG4 shows a peak PK4 that is a combination of the clutter peak Pc, the desired signal peak Pd, and the multiple reflection peak Pm2 that overlap each other. 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.
[0057] In the example shown in FIG. 13, the clutter peak Pc is included in the range of the first time width PW1 due to the fact that the light receiving intensity of the clutter peak Pc is higher than the first threshold value TS1. In this case, if the first time width PW1 is used as the reflection number feature, there is a possibility that the reflection number will be determined to be higher than the actual number. In particular, when the distance to the target object is short, the clutter peak Pc and the desired signal peak Pd are close in time, and therefore, due to the light receiving intensity of the clutter peak Pc being higher than the first threshold value TS1, the reflection number is likely to be determined to be higher than the actual number. Therefore, it is preferable that the above-mentioned reference timing ST is determined to be a timing that is late in time to such an extent that it is possible to suppress the reflection number being determined to be higher than the actual number when the first time width PW1 is used as the reflection number feature. In other words, it is preferable that the reference timing ST is determined to be 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 reflection number will be determined to be higher than the actual number by using the first time width PW1.
[0058] 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 subtracting a time value Δt2 from a value obtained by dividing the time represented by the first falling timing FT1 by the number of reflections as the flight time 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.
[0059] According to the distance measuring device 100 of the present 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 falling timing FT of the peak. According to this embodiment, when the object is in the short distance range, the object distance is calculated based on the falling timing FT of the peak, so that it is possible to suppress the deterioration of the distance measuring accuracy caused by the overlapping of the clutter peak Pc on the desired signal peak Pd. Also, since the object distance is calculated based on the reflection count feature, it is possible to suppress the deterioration of the distance measuring accuracy caused by the overlapping of the multiple reflection peak Pm on the desired signal peak Pd. Therefore, it is possible to suppress the deterioration of the distance measuring accuracy caused by the overlapping of the clutter peak Pc and the multiple reflection peak Pm.
[0060] 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.
[0061] 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 at which the received light intensity has a second threshold value TS2 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 has the first threshold value TS1 when the object is not in the short distance range. In this way, it is possible to determine whether the object distance is in the short distance range based on the second rising timing RT2, which is less affected by the clutter peak Pc compared to the first rising timing RT1. In addition, when the object distance is not in the short distance range, the object distance is calculated based on the first rising timing RT1, so that the object distance can be calculated more accurately than when the object distance is calculated based on, for example, the second rising timing RT2.
[0062] In this embodiment, the reflection count determination section 270 determines the reflection count based on the reflection count feature amount when the object is in the short distance range, and the distance calculation section 260 calculates the object distance based on the determined reflection count and the falling edge timing FT when the object is in the short distance range. Therefore, the reflection count can be determined based on the reflection count feature amount, and the object distance can be calculated based on the determined reflection count.
[0063] In addition, in this embodiment, the reflection count determination unit 270 determines the reflection count based on the correspondence between the second rising timing RT2 and the first time width PW1 when the second rising timing RT2 is later than the reference timing ST, and determines the reflection count based on the correspondence between the second rising timing RT2 and the second time width PW2 when the second rising timing RT2 is earlier than the reference timing ST. Then, the distance calculation unit 260 calculates the object distance based on the reflection count and the first falling timing FT1. In this way, the reflection count can be determined more appropriately by taking into account the influence of the light receiving intensity of the clutter peak Pc on the first time width PW1 and the influence of the light receiving intensity of the multiple reflection peak Pm on the second time width PW2, and the reflection count determined in this way can be used to calculate the object distance. In addition, since the reflection count is determined based on the first falling timing FT1, the object distance can be calculated more accurately compared to, for example, the case where the reflection count is determined based on the second falling timing FT2. Therefore, the object distance can be calculated more appropriately.
[0064] 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. Also, the distance calculation unit 260b in this embodiment corrects the object distance based on the received light intensity in the histogram HG, as described later. The configuration of the distance measuring device 100b in the second embodiment is the same as that of the first embodiment except for the points not specifically described.
[0065] The correction data CD is data for correcting the object distance based on the intensity of the received light. In the distance measuring device 100, even if the distance to the object is the same, the shape of the peak PK may 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 the 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 (for example, when the object is an object with high reflectance), many SPAD circuits 68 detect the light even in the early stage or final stage of the reflected light reaching the pixel 66, so the rising timing RT becomes earlier in time and the falling timing FT becomes later in time. On the other hand, when the intensity of the reflected light is relatively low, only a small number of SPAD circuits 68 detect the light in the early stage or final stage of the reflected light reaching the pixel 66, so the rising timing RT becomes later in time and the falling timing FT becomes earlier in time. 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 the change in the rise timing RT and fall timing FT depending on the intensity of the reflected light as described above.
[0066] The inventors of the present application also found that the tendency of change due to the intensity of the reflected light is different between the rising timing RT and the falling timing FT. More specifically, the inventors of the present application found that the amount of change in the falling timing FT due to the intensity of the reflected light is smaller than the amount of change in the rising timing RT due to the intensity of the reflected light P2. In response to the difference in the tendency, the correction data CD in this embodiment is defined so that the object distance can be corrected with different intensities when the rising timing RT is used to calculate the object distance and when the falling timing FT is used.
[0067] As shown in FIG. 15, the correction data CD in this embodiment is data for correcting the time value Δt1 and the time value Δ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. In the following, when the time value Δt1 and the time value Δt2 are not distinguished from each other, they are simply referred to as the time value Δ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. Also, the correction value cv2 is defined as a negative linear function of the peak intensity TPv. In other embodiments, the correction value cv1 and the correction value cv2 may be defined as, for example, a quadratic or higher function or an exponential function of the peak intensity TPv.
[0068] The correction value cv1 and the correction value 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 a value c1, and the correction value cv2 is a value c2. The absolute value of the value c1 is greater than the absolute value of the value c2. In this embodiment, such a difference in the correction intensities is realized 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.
[0069] In this embodiment, 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 S30 of Fig. 8. In addition, the distance calculation unit 260b calculates the object distance using the time value Δt2 corrected based on the correction value cv2 in step S50. In this way, 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. In addition, the object distance is corrected so that the strength of correction differs between when the rising timing RT is used to calculate the object distance and when the falling timing FT is used.
[0070] According to the second embodiment described above, the distance calculation unit 260b corrects the object distance based on the received light intensity. In this way, the object distance can be corrected based on the received light intensity. Therefore, it is possible to suppress the effect of the rise timing RT and fall timing FT changing depending on the intensity of the reflected light on the calculation result of the object distance. Therefore, it is possible to calculate the object distance with higher accuracy.
[0071] In this embodiment, the distance calculation unit 260b uses different correction strengths for the object distance depending on whether the rising timing RT is used to calculate the object distance or the falling timing FT is used to calculate the object distance. Therefore, whether the rising timing RT is used to calculate the object distance or the falling timing FT is used to calculate the object distance, the object distance is more likely to be corrected more appropriately.
[0072] In the second embodiment, the distance calculation unit 260b corrects the object distance by correcting the time value Δt1 and the time value Δt2 based on the received light intensity. In other embodiments, the object distance may be corrected based on the received light intensity in a manner 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. 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. 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. Such correction may be used not only for calculating the object distance, but also for determining whether the object is in the close range in step S20 and for determining in various steps in FIG. 9.
[0073] Also, the correction data CDb in the other embodiment shown in FIG. 16 is different from the correction data CD, and includes 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 as the correction value of the time value Δt2. 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 from each other. More specifically, the absolute values of the slopes of the correction values are larger in the order of the correction values cv2a, cv2b, and cv2c. Note that the correction value of the time value Δt1 is omitted in FIG. 16. By using this correction data CDb in step S50 in FIG. 8, the distance calculation unit 260b can vary the strength of the correction of the object distance according to the determined number of reflections. For example, when the received light intensity is intensity ss2, the correction value cv2a takes a value c3, the correction value cv2b takes a value c4, and the correction value cv2c takes a value c5. The absolute values of these values are largest in the order of c3, c4, and c5.
[0074] C. Other embodiments: (C-1) In the above embodiment, the distance calculation section 260 calculates the object distance based on the first rising timing RT1 when the object is not in the short distance range, but the object distance does not have to be calculated in this manner. For example, the distance calculation section 260 may calculate the object distance based on the second rising timing RT2. Furthermore, the distance calculation section 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.
[0075] (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 in 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, regardless of whether the second rising timing RT2 is before or after the reference timing ST, the number of reflections may be determined by using the second rising timing RT2 as a reflection number feature. More specifically, for example, in the example of FIG. 12, as described above, when 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), it is possible to suppress a decrease in distance measurement accuracy caused by the number of reflections being determined to be less than the actual number.
[0076] (C-3) In the above embodiment, for example, the number of reflections may be determined using a machine learning model generated in advance. This machine learning model is generated by machine learning the relationship between various feature quantities including the reflection number feature quantity and the number of reflections in advance so that the number of reflections can be determined based on various feature quantities including the reflection number feature quantity. As such a machine learning model, for example, a neural network, a decision tree, a support vector machine, or the like can be applied. In addition, various machine learning algorithms such as supervised learning, unsupervised learning, and reinforcement learning may be used for the machine learning.
[0077] (C-4) In the above embodiment, calculation section 210 has reflection count determination section 270, but it is not necessary to have reflection count determination section 270. For example, in a distance measurement process, when an object is in a close range, the object distance may be calculated based on the falling timing FT and the reflection count feature amount without determining the number of reflections.
[0078] D. Other forms: The present disclosure is not limited to the above-described embodiments, and can be realized in various configurations without departing from the spirit of the present disclosure. For example, the technical features in the embodiments can be appropriately replaced or combined in order 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.
[0079] The control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor and a memory programmed to execute one or more functions embodied in a computer program. Alternatively, the control unit and the method described in the present disclosure may be realized by a special-purpose computer provided by configuring a processor with one or more dedicated hardware logic circuits. Alternatively, the control unit and the method described in the present disclosure may be realized by one or more special-purpose computers configured by a combination of a processor and a memory programmed to execute one or more functions and a processor configured with one or more hardware logic circuits. In addition, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by a computer.
[0080] <Form 1> A distance measuring device (100, 100b) includes an emitter (40) that emits pulsed light, a light receiver (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 calculator (210) that uses the flight time of the pulsed light to calculate an object distance, which is the distance to the object. The calculation unit includes a histogram generation unit (230) that generates a histogram (HG) representing the received light intensity of the reflected light by the light receiving unit for each time of flight based on the output signal, a close-distance determination unit (240) that determines whether the object is in a predetermined close-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 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 based on the histogram, and a distance calculation unit (260, 260b) that calculates the object distance based on the feature and the fall timing (FT) of the peak when the object is in the close-distance range.
[0081] <Mode 2> In the distance measuring device of Mode 1, the distance calculation section may calculate the object distance based on the rise timing when the object is not within the short distance range.
[0082] <Form 3> In the distance measuring device of Form 2 described above, the rising timing includes 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 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.
[0083] <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, 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 in the short distance range.
[0084] <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 either a first time width (PW1) representing a time width between the first rising timing and the first falling timing or a second time width (PW2) representing a time width between the second rising timing and the second falling timing as the feature.
[0085] <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.
[0086] <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.
[0087] <Mode 8> In the distance measuring device according to Mode 7, the distance calculation section 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. [Explanation of symbols]
[0088] 40...light emitting unit, 60...light receiving unit, 100, 100b...distance measuring device, 210...calculating unit, 230...histogram generating unit, 240...close distance determining unit, 250...feature amount acquiring unit, 260, 260b...distance calculating unit, 270...reflection count determining unit, FT...rise timing, HG...histogram, PK...peak, RT...rise timing, Sout...output signal
Claims
1. A distance measuring device (100, 100b), 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; A calculation unit (210) that calculates an object distance, which is a distance to the object, by using a flight time of the pulsed light, The calculation unit is a histogram generating unit (230) for generating a histogram (HG) representing the received 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 or not the object is within a predetermined short-distance range based on a rising timing (RT) of the peak (PK) of the received light intensity in the histogram; a feature acquisition unit (250) that acquires a feature related to a number of reflections representing 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; and a distance calculation unit (260, 260b) that calculates the object distance based on the feature amount and the fall timing (FT) of the peak when the object is in the short distance range. Ranging device.
2. 2. A distance measuring device according to claim 1, The distance calculation unit calculates the object distance based on the rise timing when the object is not in the short distance range.
3. 3. A distance measuring device according to claim 2, the rising timing includes a first rising timing (RT1) at which the received light intensity is a first threshold (TS1) and a second rising timing (RT2) at which the received light intensity is a second threshold (TS2) that is greater than the first threshold, the short distance determination unit determines whether the object is within the short distance range based on the second rise timing, The distance calculation unit calculates the object distance based on the first rise timing when the object is not within the short distance range.
4. 4. A distance measuring device according to claim 3, The calculation unit further includes a reflection number determination unit (270) that determines the reflection number based on the feature amount, 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. 5. A distance measuring device according to claim 4, the falling timing includes a first falling timing (FT1) at which the received light intensity reaches the first threshold value, and a second falling timing (FT2) at which the received light intensity reaches the second threshold value; A ranging device in which 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. 6. A distance measuring device according to claim 5, The reflection count determination unit When the object is within the short distance range, it is determined whether or not the second rising timing is before a predetermined reference timing (ST); If the second rising timing is later than the reference timing, the number of reflections is determined based on a correspondence relationship between the second rising timing and the first time width; If the second rising timing is equal to or earlier than the reference timing, the number of reflections is determined based on a correspondence relationship between the second rising timing and the second time duration; The distance calculation unit calculates the object distance based on the determined number of reflections and the first falling timing.
7. A distance measuring device according to any one of claims 1 to 6, The distance calculation unit corrects the object distance based on the received light intensity.
8. 8. A distance measuring device according to claim 7, The distance calculation unit calculates the object distance using different strengths of correction of the object distance depending on whether the rising timing is used or the falling timing is used.
Citation Information
Patent Citations
Range finder
JP2001074827A
