Distance measurement device and distance measurement method

The distance measuring device corrects for delays and environmental factors to enhance the accuracy of TOF distance measurements, addressing the inaccuracies in existing TOF methods by incorporating a comprehensive delay correction and temperature compensation mechanism.

WO2024202430A1PCT designated stage expired Publication Date: 2024-10-03CANON KK

Patent Information

Application Number
PCT/JP2024/001419
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-01-19
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The Time-Of-Flight (TOF) distance measurement method in existing technologies faces inaccuracies due to delays in light emission and reception, which affect the accuracy of distance calculations to objects.

Method used

A distance measuring device and method that account for and correct delays in light emission and reception times, using a light emitting part, a light receiving part, and a correction mechanism to generate accurate distance data by considering first, second, third, and fourth delay times, as well as temperature and optical system parameters.

Benefits of technology

This approach enables more accurate distance measurements by compensating for delays and environmental factors, resulting in improved precision in TOF distance measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024001419_03102024_PF_FP_ABST
    Figure JP2024001419_03102024_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] To acquire a precise distance to an object in distance measurement via a TOF method. [Solution] A distance measurement device comprises: a light emission unit 101 that emits light with which to irradiate an object; a light reception unit 102 that detects a portion of the light which has been reflected by the object and measures the time of flight from the light emission unit, and that generates distance data on the basis of the time of flight; and a correction means 106 that corrects the distance data on the basis of a first delay time from an instruction for the light emission unit to emit light to when the light emission unit emits light and a second delay time from the instruction to emit light to the commencement of measurement of the time of flight in the light reception unit.
Need to check novelty before this filing date? Find Prior Art

Description

Distance measuring device and distance measuring method

[0001] The present invention relates to a time-of-flight (TOF) distance measurement technique.

[0002] The TOF method measures the distance to a subject based on the time between irradiating light onto the subject and detecting the light reflected from the subject (time of flight of light). Patent document 1 discloses a distance measuring device in which light-emitting elements and light-receiving elements are arranged in a two-dimensional array, and three-dimensional distance information is obtained by irradiating light onto the subject through an imaging lens and receiving the light reflected from the subject.

[0003] JP 2019-60652 A

[0004] However, in the TOF method, which measures the round-trip time of light, various delays, such as the delay between when an instruction to emit light is issued to the light-emitting element and when the light-emitting element actually emits light, and the delay between when an instruction to emit light is issued and when measurement of the flight time through the light-receiving element begins, make it impossible to obtain an accurate distance to the target object.

[0005] The present invention provides a distance measuring device that can obtain a more accurate distance to an object in TOF distance measurement.

[0006] A distance measuring device according to one aspect of the present invention is characterized by having an emitter that emits light to be irradiated onto an object, a light receiver that detects light reflected from the object to measure the time of flight from the emitter and generate distance data based on the time of flight, and a correction means that corrects the distance data based on a first delay time from when the emitter is instructed to emit light until the light emitter actually emits light, and a second delay time from when the emitter is instructed to emit light until the light receiver starts measuring the time of flight.

[0007] Another aspect of the present invention is a distance measuring device that includes an emitter that emits light to be irradiated onto an object, a light receiver that detects light reflected from the object, measures the time of flight of the light from the emitter, and generates distance data based on the time of flight, and a correction means that makes corrections to the distance data. The correction means includes at least one of: a first correction means that performs correction based on a first delay time from when an instruction to emit light is given to the light emitter until the light emitter actually emits light and a second delay time from when the instruction to emit light is given until measurement of the time of flight is started in the light receiving unit; a second correction means that performs correction based on a third delay time from when a drive voltage for causing the light emitting element to emit light in the light emitting unit is output from the drive means until the light emitting element emits light; a third correction means that performs correction based on a fourth delay time until a signal output from the light receiving element in the light receiving unit reaches a measurement means that measures the time of flight; a fourth correction means that, when an imaging optical system through which light emitted from the light emitting unit and light reflected by an object pass is provided, performs correction in accordance with an image height in the light receiving unit and a focal length of the imaging optical system; and a fifth correction means that performs correction based on a fifth delay time in accordance with the temperature of at least one of the light emitting unit and the light receiving unit. Note that another aspect of the present invention also includes a processing device that includes the above-mentioned distance measuring device and performs processing using distance data from the distance measuring device.

[0008] Another aspect of the present invention provides a distance measurement method that uses a light-emitting unit that emits light to be irradiated onto an object, and a light-receiving unit that detects light of the light reflected by the object, measures the time of flight of the light from the light-emitting unit, and generates distance data based on the time of flight. The distance measurement method is characterized in that it corrects the distance data based on a first delay time from when the light-emitting unit is instructed to emit light until the light-emitting unit actually emits light, and a second delay time from when the light-emitting unit is instructed to emit light until the light-receiving unit starts measuring the time of flight.

[0009] Furthermore, a distance measurement method as another aspect of the present invention includes a light-emitting unit that emits light to be irradiated onto an object, and a light-receiving unit that detects light from the light-emitting unit that is reflected by the object, measures the time of flight of the light from the light-emitting unit, and generates distance data based on the time of flight, and performs corrections to the distance data. The distance measuring method is characterized in that the correction includes at least one of: a first correction performed based on a first delay time from when an instruction to emit light is given to the light emitter until the light emitter actually emits light and a second delay time from when the instruction to emit light is given until measurement of the time of flight is started in the light receiving unit; a second correction performed based on a third delay time from when a drive voltage for causing the light emitting element in the light emitting unit to emit light is output from the drive means until the light emitting element emits light; a third correction performed based on a fourth delay time until a signal output from the light receiving element in the light receiving unit reaches a measurement means that measures the time of flight; a fourth correction performed in accordance with an image height in the light receiving unit and a focal length of an imaging optical system in the case where an imaging optical system through which light emitted from the light emitting unit and light reflected by an object pass; and a fifth correction performed based on a fifth delay time depending on the temperature of at least one of the light emitting unit and the light receiving unit. Note that a program for causing a computer to execute processing in accordance with the distance measuring method also constitutes another aspect of the present invention.

[0010] According to the present invention, a more accurate distance to an object can be obtained in TOF distance measurement.

[0011] 1 is a block diagram showing the configuration of a distance measuring device according to a first embodiment. 2 is a diagram showing the configuration of a light emitting unit according to the first embodiment. 3 is a diagram showing the configuration of a light receiving unit according to the first embodiment. 4 is a diagram showing the configuration of a pixel of the light receiving unit according to the first embodiment. 5 is a diagram showing the configuration of an optical system according to the first embodiment. 6 is a flowchart showing processing according to the first embodiment. 7 is a timing chart showing the operation of a TDC array unit according to the first embodiment. 8 is a diagram showing an optical path length difference according to the first embodiment. 9 is a diagram showing a histogram according to the first embodiment. 10 is a block diagram showing the configuration of a distance measuring device according to a second embodiment. 11 is a flowchart showing processing according to the second embodiment. 12 is a block diagram showing the configuration of a distance measuring device according to a third embodiment. 13 is a block diagram showing a configuration for temperature compensation of a light receiving unit according to the third embodiment. 14 is a graph showing fluctuation components of the delay amount according to the third embodiment. 15 is a diagram showing coefficients for expressing a correction value by an approximate formula according to the third embodiment.

[0012] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0013] 1 shows the configuration of a distance measuring device according to Example 1. The distance measuring devices according to this example and other examples described later perform distance measurement using a TOF method in LiDAR (Light Detection and Ranging) technology.

[0014] [Overall Configuration] The distance measuring device is composed of a light emitting unit 101, a light receiving unit 102, an optical system 113, and a signal processing circuit 114. The light emitting unit 101 causes a plurality of light emitting elements arranged in a two-dimensional array to emit light based on a light emission instruction output from a light emission / reception control unit 103 in the signal processing circuit 114. The light emission instruction is also output to the light receiving unit 102.

[0015] Light emitted from the light emitting unit 101 is irradiated onto an object (not shown) via the optical system 113. The optical system 113 has a half mirror function that transmits part of the incident light and reflects the rest, and a reflection suppression function.

[0016] Of the light emitted by the light emitting unit 101, reflected light from the object is received by the light receiving unit 102 via the optical system 113. The light receiving unit 102 generates distance data from the time from when the light emitting unit 101 emits light to when the reflected light is received by the light receiving unit 102 (time of flight of light TOF), based on an emission instruction (or a light receiving instruction output simultaneously) output from the light emission and reception control unit 103. The signal processing circuit 114 has the above-mentioned light emission and reception control unit 103, and performs signal processing (correction, etc.), which will be described later, on the distance data output from the light receiving unit 102.

[0017] [Configuration of Signal Processing Circuit] The signal processing circuit 114 has a light emission / reception control unit 103, a CPU 104, a memory 105, a skew correction unit 106, a light reception correction unit 107, an light emission correction unit 108, an optical correction unit 109, a histogram generation unit 110, and a storage unit 111. The skew correction unit 106 corresponds to a first correction means, the light reception correction unit 107 corresponds to a third correction means, the light emission correction unit 108 corresponds to a second correction means, and the optical correction unit 109 corresponds to a fourth correction means.

[0018] The light emission and reception control unit 103 outputs control signals at predetermined timing to the light emission unit 101 and the light reception unit 102. The CPU 104 as a computer controls the light emission and reception control unit 103, the skew correction unit 106, the light reception correction unit 107, the light emission correction unit 108, the optical correction unit 109, and the histogram generation unit 110 via a bus 112. The CPU 104 operates according to a program stored in the memory 105, and executes the processing described below.

[0019] The skew correction unit 106 performs skew correction as a first correction on the distance data output from the light receiving unit 102 using skew correction data stored in the storage unit 111. The light reception correction unit 107 performs light reception correction as a second correction on the distance data after skew correction by the skew correction unit 106 using light reception correction data stored in the storage unit 111. The light emission correction unit 108 performs light emission correction as a third correction on the distance data after light reception correction by the light reception correction unit 107 using light emission correction data stored in the storage unit 111. The optical correction unit 109 performs optical correction as a fourth correction on the distance data after light emission correction by the light emission correction unit 108 using optical correction data stored in the storage unit 111. The histogram generation unit (histogram generation means) 110 creates a histogram of the distance data after optical correction by the optical correction unit 109 or light emission correction by the light emission correction unit 108, removes noise components, and averages the distance measurement results. By substituting the time of flight TOF thus obtained into the following equation (1), the distance L to the target object can be obtained: In equation (1), c is the speed of light.

[0020] 2 shows an example of the configuration of the light emitting section 101. The light emitting section 101 includes a light source unit 203 and a light source control section 204.

[0021] The light source unit 203 has a light emitting element array 201 and a light emitting element drive circuit 202 as a drive means. The light emitting element array 201 is a two-dimensional array of VCSELs (Vertical Cavity Surface Emitting Lasers) that are light emitting elements 208 and 209 arranged on a substrate. The light emitting element drive circuit 202 is a one-dimensional array of light emitting element row drive circuits 205, 206, and 207.

[0022] The light-emitting element may be other than a VCSEL, but is preferably one that can be integrated into a one-dimensional array or a two-dimensional array. Examples include edge-emitting lasers and LEDs (light-emitting diodes). When an edge-emitting laser is used instead of a VCSEL as the light-emitting element, the light-emitting element array may be a laser bar array in which laser bars are arranged one-dimensionally on a substrate, or a laser bar stack formed by stacking these to form a two-dimensional light-emitting element array. When an LED is used as the light-emitting element, a substrate in which LEDs are arranged in a two-dimensional array may be used.

[0023] Furthermore, in the distance measuring device of this embodiment, the wavelength of light emitted by the light-emitting element is preferably in the near-infrared band to suppress the effects of ambient light. However, light in a band other than the near-infrared band may also be used. VCSELs are fabricated using semiconductor processes using materials used in conventional edge-emitting lasers and surface-emitting lasers. When configured to emit light in the near-infrared band, GaAs-based semiconductor materials can be used as the main material. In this case, the dielectric multilayer film forming the DBR (Distributed Bragg Reflector) reflector constituting the VCSEL can be composed of two thin films made of materials with different refractive indices alternately and periodically stacked (GaAs / AlGaAs). The wavelength of the emitted light can be changed by adjusting the element combination and composition of the compound semiconductor.

[0024] The VCSELs constituting the VCSEL array are provided with electrodes for injecting current and holes into the active layer, and the electrodes are shared in the row direction and connected to light-emitting element row drive circuits 205, 206, and 207 arranged in each row. By operating only a specific light-emitting element row drive circuit among the light-emitting element drive circuits 202, current is injected (voltage is applied) only to the VCSELs belonging to a specific row, making it possible to cause the light-emitting elements in the specific row to emit light.

[0025] 3 shows an example configuration of the light receiving unit 102. The light receiving unit 102 has a light receiving element array 301 consisting of a plurality of pixels 307 and 308 arranged in a two-dimensional array, a TDC (Time-to-Digital Converter) array unit 302, a signal processing unit 303, and a measurement control unit 304. The light receiving unit 102 also has a row selection circuit 309 for enabling only specific rows, row selection pulse wiring 306 for outputting an output signal of the row selection circuit 309 to the pixels 307 and 308, and a pixel output line 305 for outputting a pixel output signal to the TDC array unit 302.

[0026] 4 shows an example of the configuration of each pixel. Each pixel is composed of a SPAD (Single Photon Avalanche Diode) element 401, which is a light receiving element, a load transistor 402, an inverter 403, a pixel output circuit 404, a row selection pulse wiring 306, and a pixel output line 305.

[0027] The SPAD element 401 is composed of a light-receiving region and an avalanche region. When light is incident on the SPAD element 401, photoelectric conversion occurs in the light-receiving region, generating electrons and holes. The positively charged holes are discharged via the anode electrode Vbd. The negatively charged electrons are transported as signal charges to the avalanche region by an electric field set in the light-receiving region so that the potential decreases toward the avalanche region. The signal charges that reach the avalanche region undergo avalanche breakdown due to the strong electric field in the avalanche region, generating an avalanche current.

[0028] When no avalanche current is flowing, the voltage of the anode electrode Vbd is set so that a reverse bias equal to or greater than the breakdown voltage is applied to the avalanche region. At this time, no current flows through the load transistor 402, so the cathode potential Vc is close to the power supply voltage Vdd, and the output signal of the inverter 403 is "0".

[0029] When an avalanche current is generated by the arrival of a photon, the voltage of Vc drops, and the output of the inverter 403 is inverted. That is, the inverter output changes from "0" to "1." When the potential of Vc drops, the reverse bias applied to the SPAD element 401 decreases, and when the reverse bias becomes equal to or lower than the breakdown voltage, the generation of the avalanche current stops.

[0030] Thereafter, a hole current flows from Vdd to Vc via the load transistor 402, the cathode potential Vc rises, and the inverter output returns from "1" to "0", returning to the state before the arrival of the photon.

[0031] Furthermore, in pixels where the row selection pulse wiring 306 is on, the output of the inverter 403 is controlled to be output to the pixel output line 305, and in pixels where the row selection pulse wiring 306 is off, the inverter output is controlled to be disconnected from the pixel output line 305. Therefore, it is possible to detect only light incident on pixels belonging to a specific row selected by the row selection circuit 309.

[0032] In this way, the light output signals (detection signals) from the pixels belonging to the row selected by the row selection circuit 309 are output as digital signals to the TDC array unit 302. In the TDC array unit 302, a counter generation circuit (not shown) counts up in synchronization with a clock signal of a predetermined frequency from the time when the light emitting element in the light emitting unit 101 starts to emit light, and stops counting at the time when light reception starts at the light receiving unit 102 when light is detected. In this way, the TDC array unit 302 calculates the time of flight TOF as a counter value TOFcnt. When the counter frequency is F, the distance L to the target is calculated from equation (1) using the following equation (2):

[0033] L=TOFcnt×1 / F×c / 2 (2) [Optical System] Figures 5A to 5C show the configuration (cross section) of the optical system 113. The optical system 113 is composed of a beam splitter 501 and an imaging lens 504. Figures 5A to 5C also show cross sections of the light-emitting element array 201 and the light-receiving element array 301.

[0034] The light-emitting element array 201 and the light-receiving element array 301 are in a conjugate relationship via the half mirror 502 of the beam splitter 501, and each light-emitting element and light-receiving element are also in a conjugate relationship. While the light-emitting element array 201 and the light-receiving element array 301 are each shown as having eight rows in Fig. 5A, the number of rows is not limited to this. Furthermore, although the light-emitting elements and light-receiving elements are shown as having a one-to-one conjugate relationship, the number of light-receiving elements may be n x n times the number of light-emitting elements, and the elements may be arranged so that one light-emitting element and n x n light-receiving elements are in a conjugate relationship.

[0035] The row numbers of the light-emitting element rows are assigned in ascending order from smaller to larger Yv in Fig. 5A. The row numbers of the light-receiving element rows are assigned in ascending order from smaller to larger Y in Fig. 5A. The light-emitting element rows and light-receiving element rows with the same row number have a conjugate relationship.

[0036] 5B shows the optical path of light 505 emitted from a light-emitting element in row number 0 of the light-emitting element array 201. The light 505 emitted from the light-emitting element is split into light 506 that is reflected by the half mirror 502 and irradiated onto an object, and light 507 that passes through the half mirror 502 and travels toward the reflection suppressing structure 503.

[0037] 5C shows light 508 reflected from the object and light 509 reflected from the anti-reflection structure 503. The reflected light 508 is incident on a light-receiving element that is in a conjugate relationship with the light-emitting element that emitted the light.

[0038] On the other hand, the surface of the anti-reflection structure 503 is structured to transmit or absorb at least one of the wavelengths of light emitted from the light-emitting element, reducing the reflectance of the wavelength. Such a surface structure may be a laminated structure of dielectrics with different refractive indices, or may be a structure finer than the wavelength. Diffusive reflection by the anti-reflection structure 503 prevents the light reflected by the beam splitter 501 from entering a light-receiving element that is conjugate with the light-emitting element that emitted the light. This reduces erroneous ranging.

[0039] Furthermore, instead of the anti-reflection structure 503, a rectangular structure with a period twice the spacing of the light-emitting elements in the row direction is used, and erroneous distance measurement can be suppressed by directing the light reflected by the beam splitter 501 to the light-receiving elements in a row that is not conjugate with the light-emitting element that emitted the light. In this embodiment, the output from the pixels in the light-receiving element row that is conjugate with the light-emitting element row that emitted the light is output to the TDC. The TDC detects the time from the light emission timing to the light reception timing at which light is incident on the light-receiving element row that is conjugate with the light-emitting element row that emitted the light, and does not react to light incident on other light-receiving element rows. Furthermore, although the first row has been described so far, the same applies to the other rows.

[0040] 6 shows a process (distance measurement method) executed by the CPU 104 in this embodiment. "S" in the figure indicates a step.

[0041] In step 601, the CPU 104 sets to 0 a row counter that determines which rows are to emit and receive light.

[0042] Next, in step 602, the CPU 104 sets to 0 a histogram counter that determines the number of measurements to be taken to obtain a histogram.

[0043] Next, in step 603, the CPU 104 acquires distance data from the light receiving unit 102. Here, the CPU 104 causes the row selection circuit 309 to select a row corresponding to the row counter via the light emission and reception control unit 103, and sets the detection signals from the pixels in the corresponding row to be output to the TDC array unit 302 via the pixel output lines 305. The CPU 104 then operates the light emitting element row drive circuit for the row corresponding to the row counter, and applies a drive voltage to the light emitting elements belonging to the corresponding row, causing the light emitting elements to emit short pulses. Light reflected and returned by the object is incident on a light receiving element that is conjugate with the light emitting element that emitted the light. When the detection signal becomes "1" due to light reception, the CPU 104 causes the TDC to measure the time from light emission (FOT) via the light emission and reception control unit 103.

[0044] 7 shows the operation of the light-receiving unit 102 from the time when a light-emitting element belonging to a specific row of the light-emitting element array 201 emits light until the SPAD element 401, which is a light-receiving element in the corresponding row, receives reflected light and the TDC count ends. From top to bottom, the diagram shows changes in the SPAD cathode potential Vc, pixel output signal (detection signal), synchronous clock, synchronous clock count, oscillator start / stop signal, oscillator output, and oscillator count. The SPAD cathode potential Vc is an analog voltage, with the upper side in the diagram indicating a higher voltage. The synchronous clock, oscillator start / stop signal, and oscillator output are digital signals, with the upper side in the diagram indicating an on state and the lower side indicating an off state. The synchronous clock count and oscillator count are digital values, expressed as decimal numbers.

[0045] In the light-emitting unit 101, the corresponding light-emitting element row drive circuit is driven so that light-emitting elements belonging to a specific row of the light-emitting element array 201 emit light at rising time 701 (second time) of the synchronous clock supplied from the light-emitting and light-receiving control unit 103. The TDC array unit 302 of the light-receiving unit 102 starts counting rising edges of the synchronous clock from time 701 when the light-emitting element emits light. Time 702 is the last rising time of the synchronous clock before reflected light from an object is detected by the light-receiving unit 102 at time 703, which will be described next.

[0046] At time 703, light reflected by the object is received by the pixel, causing the SPAD cathode potential Vc to drop, and the pixel output signal changes from "0" to "1." In response to the pixel output signal becoming "1," the oscillator start / stop signal changes from "0" to "1." When the oscillation switch provided in the TDC array unit 302 is turned on, oscillation operation begins, and a rising edge appears in the oscillator output every time the signal makes two revolutions in the oscillator, and the oscillator count is performed. Also, at time 703, counting of the rising edges of the synchronous clock stops, and the count value DG at that time clk (2 in the figure) is held.

[0047] Time 705 is the time when the synchronous clock rises for the first time after the oscillator has started. In response to this rising edge of the synchronous clock, the oscillator start / stop signal becomes "0", the oscillation switch is turned off, and the count value DRO of the oscillator count is reset. clk (3 in the figure) is kept as is.

[0048] In this embodiment, the number of stages of the oscillator buffer is eight, and the resolution ratio of the delay time tbuff for one stage to the synchronous clock is 1 / 128. This makes it possible to obtain an oscillator count that can be counted at a resolution of 1 / 16 of the synchronous clock, and an oscillator internal signal that can be counted at a resolution of 1 / 128 of the synchronous clock.

[0049] By doing this, the synchronous clock count value DG clk The time from time 701 to time 702 is 2 7 The oscillator count value DRO is the value counted with a time resolution of tbuff. clk The time from time 703 to time 704 is 2 4 The value is counted with a time resolution of tbuff × tbuff. in is a value obtained by counting the time from time 704 to time 705 with the time resolution of tbuff. clk and the oscillator internal signal count value DRO inOne TDC operation is completed by outputting the DRO obtained by performing the process shown in the following equation (3) on the signal processor 303. The DRO is a value obtained by counting the time from time 703 to time 705 using tbuff.

[0050] DRO=2 4 ×DRO clk +DRO in      (3) On the other hand, the time from time 702 to time 705 is one cycle of the synchronous clock. 7 Therefore, as shown in the following formula (4), the value obtained by subtracting DRO from the count value corresponding to one cycle of the synchronous clock is DG clk By adding these, the value DTOF obtained by counting the time from time 701 to time 703, which is the time of flight of light, by tbuff can be obtained.

[0051] DTOF=2 7 ×DG clk + (2 7 -DRO) = 2 7 ×DG clk + (2 7 -2 4 ×DRO clk -DRO in ) (4) The DTOF thus obtained by the TDC array unit 302 becomes distance data. The obtained distance data is shaped into an output format by the signal processing unit 303 and output to the signal processing circuit 114.

[0052] Next, in step 604, the CPU 104 causes the skew correction unit 106 to perform skew correction on the distance data DTOF obtained in step 603. In Fig. 7, it is necessary to cause light-emitting elements belonging to a specific row of the light-emitting element array 201 to emit light at time 701, and to start counting by the TDC array unit 302 at the same time. However, because the light-emitting unit 101 and the light-receiving unit 102 are mounted as different devices on a substrate (not shown), there is a possibility that, relative to the time (first time) when a light-emitting instruction is issued from the light-emitting and light-receiving control unit 103, there may be a relative delay between the time (second time) when the light-emitting instruction reaches the light-emitting unit 101 and the time (third time) when the light-emitting instruction reaches the light-receiving unit 102 as a count start instruction.

[0053] In this embodiment, Tvd denotes a first delay time from a first time when a light emission instruction is issued from the light emission and reception control unit 103 to a time when the light emission instruction reaches the light source control unit 204 of the light emitter 101, i.e., a second time when the light emitting element array 201 starts emitting light. Tsd denotes a second delay time from the first time to a time when the light emission instruction reaches the measurement control unit 304 of the light receiver 102, i.e., a third time when the light receiver 102 starts measuring the time of flight (counting the rising edges of the synchronization clock in the TDC array unit 302). In this case, if F denotes the frequency of the counter that counts at a predetermined cycle tbuff, the delay times Tvd and Tsd are converted into distance data Dvd and Dsd, respectively, using equations (5) and (6).

[0054] Dvd=F×Tvd (5) Dsd=F×Tsd (6) Therefore, the distance data DTOF′ obtained by the TDC array unit 302 after skew correction taking into account the above delay times is expressed by the following equation (7).

[0055] DTOF' = DTOF + (Dsd - Dvd) (7) The delay times Tvd and Tsd may be obtained in advance by simulation calculations using parameters such as the wiring length and impedance on the substrate. Alternatively, the delay times Tvd and Tsd may be obtained by converting distance data DTOF obtained by actual measurement using an object whose distance is known into a spatial distance and extracting the difference between this and the actual distance. The delay times Tvd and Tsd can be provided to the skew correction unit 106 as skew correction data by storing the delay times Tvd and Tsd in the memory 105 and then storing them in the storage unit 111 from the CPU 104 via the bus 112.

[0056] Furthermore, if the light-emitting unit 101 has multiple light source control units 204, the delay time may differ for each light-emitting element controlled by each light source control unit 204. For this reason, by acquiring the delay time for each light source control unit 204, such as Tvd1 for the first light source control unit, Tvd2 for the second light source control unit, and correcting the distance data for each light source control unit 204, it is possible to reduce errors in the distance data due to delays in the light-emitting instruction and the light-receiving instruction.

[0057] In step 604, skew correction was performed on the distance data DTOF using distance data Dvd and Dsd converted from delay times Tvd and Tsd. Alternatively, delay times Tvd and Tsd may be converted into count values ​​at tbuf, and skew correction may be performed on the count values ​​as DTOF using these converted count values.

[0058] Next, in step 605, the CPU 104 causes the light reception correction section 107 to perform light reception correction on the skew-corrected distance data DTOF' to correct the delay occurring within the light reception section 102.

[0059] The delay occurring in the light receiving unit 102 will be explained using FIG. 3 . The light receiving element array 301 is configured in a matrix to acquire distance data to the target in a two-dimensional area. Meanwhile, the TDC array unit 302, which serves as a measurement means, is provided at the end of the pixel output line 305 to receive the output from each column of pixels in the light receiving element array 301. In this case, if the distances to the corresponding targets are equal for pixels 307 and 308, which are positioned differently in FIG. 3 , the time from when the light emitting element array 201 in the light emitting unit 101 starts emitting light to when the SPAD cathode potential Vc drops is the same. However, the wiring length from pixel 307 to the TDC array unit 302 is different from the wiring length from pixel 308 to the TDC array unit 302. Therefore, there is a difference in the time between when an output signal is output from the pixel 307 or 308 that detected the reflected light (fourth time) and when the output signal reaches the TDC array unit 302 and measurement of the time of flight begins (fifth time). This time difference appears as a difference in the count value of the counter provided in the TDC array unit 302, that is, a difference in the acquired distance data.

[0060] For this reason, the light-receiving correction unit 107 corrects the distance data corrected by the skew correction unit 106 for each pixel in the light-receiving unit 102. In this embodiment, the row selection circuit 309 of the light-receiving unit 102 selects pixels row by row, and output signals from these pixels belonging to the same row reach the TDC array unit 302 at the same time. For this reason, performing correction row by row can reduce errors. When the row number is n (n=0, 1, 2, ..., N-1) and the delay amount as the fourth delay time for the pixels belonging to the selected row is Ts(n), the delay amount Ts(n) is converted to distance data (delay distance) shown in the following equation (8).

[0061] Ds(n)=F×Ts(n) (8) The distance data corrected by the skew correction unit 106 is defined as DTOF′(n) using the row number n. At this time, the corrected distance data DTOF″(n) taking into account the delay distance Ds(n) occurring in the light receiving unit 102 is expressed by the following equation (9).

[0062] DTOF"(n) = DTOF'(n) - Ds(n) (9) The delay amount Ts(n) may be obtained in advance by simulation calculation using parameters such as the wiring length and impedance on the light receiving unit 102. Alternatively, the skew-corrected distance data DTOF' obtained by actual measurement using an object whose distance is known may be converted into a spatial distance, and the delay amount Ts(n) may be obtained by extracting the difference between this and the actual distance. The delay amount Ts(n) can be provided to the light receiving correction unit 107 as light receiving correction data by storing the delay amount Ts(n) in the memory 105 and then storing it in the storage unit 111 from the CPU 104 via the bus 112.

[0063] There may be cases where the storage capacity becomes too large by storing the delay amount Ts(n) for all N rows in the storage unit 111. In this case, it is possible to reduce the storage capacity in the storage unit 111 by storing only two values, Ts(0) and Ts(N-1), in the storage unit 111 and generating the delay amount Ts(n) by the linear interpolation shown in the following equation (10) in the light reception correction unit 107.

[0064] Ts(n)=Ts(0)+n{Ts(0)-Ts(N-1)} / (N-1) (10) Furthermore, the delay amount is not limited to two, Ts(0) and Ts(N-1), and any delay amount that is smaller than N can have the effect of reducing the storage capacity of the storage unit 111. If the delay amount cannot be approximated linearly, it can be approximated by a more complex polynomial and the storage unit 111 can store the coefficients of the polynomial, thereby reducing the storage capacity of the storage unit 111.

[0065] Next, in step 606, the CPU 104 causes the light emission correction unit 108 to perform light emission correction on the distance data DTOF"(n) after light reception correction, in order to correct for delays that occur within the light emitter 101. In this embodiment, light emission correction is performed after light reception correction. For example, if pixels in the first row of the light emitter 101 are incident on pixels in the second row of the light receiving unit 102, the obtained distance data and the coordinate relationship of each pixel will be different between the light receiving unit 102 and the light emitter 101. In such a case, it is the light receiving unit 102 that has had the delay amount superimposed last. For this reason, it is possible to perform correction with higher accuracy by first correcting the delay amount of the light receiving unit 102, then performing coordinate transformation to return to the coordinate system of the light emitter 101, and then correcting the delay amount of the light emitter 101. However, light reception correction may also be performed after light emission correction by performing coordinate transformation on the correction value that corrects for the delay of the light emitter 102.

[0066] The delay occurring in the light-emitting unit 101 will be explained using FIG. 2 . The light-emitting element array 201 is configured in a matrix to acquire distance data to an object in a two-dimensional area. Meanwhile, the light-emitting element drive circuit 202 has light-emitting element row drive circuits 205, 206, and 207 arranged one-dimensionally for each row. The wiring lengths to the light-emitting elements 208 and 209 connected to the light-emitting element row drive circuit 205 are different. This results in a difference in the time between the time when the drive voltage is output from the light-emitting element row drive circuit 205 (time 6) and the time when the light-emitting elements 208 and 209 actually emit light (time 7). Furthermore, the light-receiving unit 102 performs the aforementioned counting of pixels connected to the corresponding rows under the assumption that the light-emitting elements 208 and 209 emit light at the same timing, which results in errors in the acquired distance data.

[0067] For this reason, the light emission correction unit 108 corrects the distance data corrected by the light reception correction unit 107 for each light emitting element of the light emitting unit 101. In this embodiment, the light emitting element drive circuit 202 of the light emitting unit 101 selects light emitting elements on a column-by-column basis, so that light emitting elements belonging to the same column emit light at the same time. Therefore, by performing correction for each column, it is possible to reduce errors. When the column number is m (m=0, 1, 2, ..., M-1) and the delay amount as the third delay time for the light emitting elements belonging to the selected column is Tv(m), the delay amount Tv(m) is converted to distance data shown in the following equation (11).

[0068] Dv(m) = F × Tv(m) (11) The distance data after light reception correction by the light reception correction unit 107 is defined as DTOF''(m) using column number m. In this case, the corrected distance data DTOF'''(m) taking into account the delay distance Dv(m) generated by the light emitting unit 101 is expressed by the following equation (12).

[0069] DTOF'''(m) = DTOF''(m) - Dv(m) (12) The delay amount Tv(m) may be found in advance by simulation calculation using parameters such as the wiring length and impedance on the light-emitting unit 101. Alternatively, the distance data DTOF'' obtained by actual measurement using an object whose distance is known may be converted into a spatial distance, and the delay amount Tv(m) may be found by extracting the difference between this and the actual distance. The delay amount Tv(m) can be provided to the light-emission correction unit 108 as light-emission correction data by storing the delay amount Tv(m) in the memory 105 and then storing it in the storage unit 111 from the CPU 104 via the bus 112.

[0070] There may be cases where the storage capacity becomes too large when delay amounts Tv(m) for all M columns are stored in the storage unit 111. In this case, it is possible to reduce the storage capacity in the storage unit 111 by storing only two, Tv(0) and Tv(M-1), in the storage unit 111 and generating delay amount Tv(m) by linear interpolation in the light emission correction unit 108 shown in the following equation (13).

[0071] Tv(m)=Tv(0)+m{Tv(0)-Tv(M-1)} / (M-1) (13) Furthermore, the delay amount is not limited to two, Tv(0) and Tv(M-1), and any delay amount less than M can have the effect of reducing the storage capacity of storage unit 111. If the delay amount cannot be approximated linearly, it can be approximated by a more complex polynomial and the storage unit 111 can store the coefficients of the polynomial, thereby reducing the storage capacity of storage unit 111.

[0072] Furthermore, if there is misalignment between the light-emitting element array 201 of the light-emitting unit 101 and the light-receiving element array 301 of the light-receiving unit 102 on an element-by-element basis, appropriate correction can be performed by adjusting the correction data used to match the amount of misalignment. For example, if the pixel pitch of the light-receiving element array 301 differs from the pitch of the received light, the acquired distance data is generated based on the arrangement of the light-receiving element array 301. For this reason, the light-receiving correction unit 107 first corrects the delay occurring in the light-receiving unit 102 for the distance data after skew correction, and then performs geometric transformation processing on the corrected distance data to account for the pitch misalignment. Then, the light-emission correction unit 108 corrects the delay occurring in the light-emitting unit 101. This makes it possible to acquire distance data with higher accuracy.

[0073] Next, in step 607, the CPU 104 causes the optical corrector 109 to perform optical correction on the distance data DTOF''(m) after light emission correction as a correction for the optical path length difference occurring in the optical system 113.

[0074] FIG. 8 schematically illustrates the optical paths of light irradiated onto an object 805 located at the same distance. Optical path 801 represents the optical path of light emitted from the light-emitting element in row number 0 of the light-emitting element array 201. Optical path 802 represents the optical path of light emitted from the light-emitting element in row number 3 of the light-emitting element array 201. The laser light emitted as parallel light from these light-emitting elements is irradiated onto the object at a predetermined angle relative to its optical axis via the image-side telecentric imaging lens 504 of the optical system 113. The light traveling along optical path 801 and the light traveling along optical path 802 have different optical path lengths, i.e., flight distances, from when the light is emitted from the light-emitting element to when it reaches the object 805, is reflected there, and reaches the light-receiving element of the light-receiving element array 301. This difference in flight distance results in a difference in flight time. This results in a difference in distance data calculated from the flight time of light traveling along optical path 801 and the flight time of light traveling along optical path 802. The angle of view φ of the imaging lens 504 is expressed by the following equation (14), where f is the focal length 803 of the imaging lens 504 and d is the diagonal length 804 of the light receiving section 102.

[0075] φ=2×arctan(d / 2f) (14) When the angle of view φ is replaced with the distance (image height) r from the optical center of the light-emitting element, the angle θ(r) from the optical axis of the optical path of each light-emitting element is expressed by the following equation (15).

[0076] θ(r)=2×arctan(r / 2f) (15) The distance data acquired from the output signal of the pixel corresponding to image height r in the light-receiving element array 301 is defined as DTOF″′(r), and the distance on the optical axis from the light-receiving element array 301 to the imaging lens 504 is defined as Dofst. In this case, the distance L(r) to the object after optical correction can be calculated by the following equation (16).

[0077] L(r) = {DTOF'''(r) - 2 x Dofst} / 2 x cos{arctan(r / 2f)} + Dofst (16) The distance L(r) to the object obtained in this way has a high affinity for focus control when acquiring a two-dimensional plane image signal captured by a camera using an imaging optical system (imaging optical system) similar to a distance measuring device. On the other hand, when using the distance L(r) to obtain three-dimensional position information (distance map), it is better not to perform optical correction on the obtained distance data, as distance data based on the focus of the imaging lens 504 has a higher affinity. For this reason, by making it possible to select whether or not to perform optical correction by the optical correction unit 109 depending on the purpose of use of the distance data, it is possible to obtain distance data that is suitable for the purpose of use.

[0078] In this embodiment, a common optical system 113 is used for the light irradiated from the light emitting unit 101 to the object and the light reflected by the object and received by the light receiving unit 102, but the same effect can be obtained even if different optical systems are used for each light.

[0079] Next, in step 608, the CPU 104 causes the histogram generating unit 110 to generate a histogram with a predetermined class width binw for the distance data (distance L(r)) after optical correction or after emission correction when no optical correction is performed.

[0080] When the generation of the histogram is completed, in step 609, the CPU 104 increments the histogram counter by one.

[0081] Next, in step 610, the CPU 104 determines whether the histogram counter has reached a predetermined value (number of times) Hmax, and if so, the generation of the histogram is complete, and the process proceeds to step 611. If the predetermined value Hmax has not been reached, the process returns to step 603, and the acquisition of distance data is repeated.

[0082] In step 611, the CPU 104 causes the histogram generating unit 110 to perform histogram processing on the histogram. Specifically, the CPU 104 searches the histogram for a peak class whose frequency is higher than the surrounding classes, and determines the distance corresponding to the class with the highest frequency among at least one peak class as the distance to the object.

[0083] FIG. 9 is a schematic diagram showing a histogram of distance data acquired by a specific pixel in the light-receiving element array 301. This diagram shows Hmax pieces of distance data, divided into 16 classes with a class width binw. Distance data acquired by the distance measuring device may be affected by ambient light, such as ambient light, in addition to the light emitted from the light-emitting unit 101. For this reason, statistical processing is performed in the histogram generation unit 110 to identify the most likely distance data. In the histogram shown in FIG. 9 , class 8, indicated by 901, has the highest frequency, so the distance data for class 8 is used as the distance to the target object. The CPU 104 calculates the distance data Lh as the average value using the following equation (17), where L(i) represents the distance data group belonging to class i and num(i) represents the frequency:

[0084] Lh=L(i) / num(i) (17) The distance data output from the histogram generating unit 110 is Lh(m, n), where m is the column number of the light receiving element in the light receiving element array 301 and n is the row number.

[0085] Next, in step 612, the CPU 104 increments the row counter by one since processing for one row has been completed.

[0086] Next, in step 613, the CPU 104 determines whether the row counter has reached a predetermined number of rows N. If the predetermined number of rows N has been reached, the CPU 104 ends this process because acquisition of distance data for all rows has been completed. If the predetermined number of rows N has not yet been reached, the CPU 104 returns to step 602 and acquires distance data for the next row.

[0087] In this embodiment, the delay amount between different devices (the light-emitting unit 101 and the light-receiving unit 102) and the delay amount within each device, which can be a cause of errors in the acquired distance data, are converted into distance data, and the distance data is corrected using this. This makes it possible to obtain more accurate distance data. Moreover, in this embodiment, correction is performed on the distance data output from the light-receiving unit. Therefore, even if there are many locations where delays occur due to the use of a light-emitting element array and a light-receiving element array, there is no need to incorporate circuits or the like for correcting delays into the light-emitting unit or the light-receiving unit, and the configuration of the light-emitting unit or the light-receiving unit can be kept from becoming too complicated.

[0088] Note that, as long as the positional relationship between the light-emitting elements of the light-emitting unit 101 and the pixels (light-receiving elements) of the light-receiving unit 102 is conjugate, a configuration in which light is emitted for each column and light is received for each column may be adopted. Furthermore, if delays occur in both the row and column directions in the light-emitting unit 101 and the light-receiving unit 102, it is preferable to have correction data for each direction. This makes it possible to obtain highly accurate distance data even if there is a difference in the amount of delay between the row and column directions.

[0089] Hereinafter, a description will be given of Example 2. In Example 2, an error in the distance data due to a time delay is corrected after a histogram of the distance data is acquired.

[0090] 10 shows the configuration of a distance measuring device according to embodiment 2. In this embodiment, components common to those in the distance measuring device shown in embodiment 1 (FIG. 1) are designated by the same reference numerals as in FIG. 1, and a description thereof will be omitted. In this embodiment, a signal processing circuit 114′ has a histogram generating unit 1001 that generates a histogram for distance data before it is input to the skew correcting unit 106.

[0091] 11 is a flowchart showing the processing executed in this embodiment by the CPU 104. The processing in steps 1101 to 1103 is the same as the processing in steps 601 to 603 in the first embodiment (FIG. 6).

[0092] Next, in step 1104, the CPU 104 causes the histogram generator 1001 to generate a histogram with a predetermined binw interval for the distance data (DTOF) obtained in step 1103. The histogram is as described in step 608 in FIG.

[0093] When the generation of the histogram is completed, in step 1105, the CPU 104 increments the histogram counter by one.

[0094] Next, in step 1106, the CPU 104 determines whether the histogram counter has reached a predetermined value Hmax, and if so, the generation of the histogram is complete, and the process proceeds to step 1107. If the predetermined value Hmax has not been reached, the process returns to step 1103, and the acquisition of distance data is repeated.

[0095] In step 1107, the CPU 104 causes the histogram generation unit 1001 to perform histogram processing on the histogram, similar to step 611 in Fig. 6. Here, the CPU 104 calculates distance data DTOFh as an average value using the following equation (18), where DTOF(i) is the distance data group belonging to class i and num(i) is the frequency.

[0096] DTOFh=DTOF(i) / num(i) (18) The distance data output from the histogram generating unit 1001 is DTOFh(m,n) where m is the column number of the light receiving element in the light receiving element array 301 and n is the row number.

[0097] Next, in step 1108, the CPU 104 causes the skew correction unit 106 to perform skew correction on the distance data DTOFh(m,n) obtained in step 1107. The distance data DTOFh(m,n) obtained from the histogram in step 1107 includes distance data corresponding to the time of flight of light and distance data representing error components due to time delay. Therefore, the distance data is corrected using delay amounts (delay times) Tvd and Tsd. As in step 604 of FIG. 6 , the delay amounts Tvd and Tsd are converted to distance data Dvd and Dsd using equations (5) and (6), and DTOFh(m,n) is corrected using the following equation (19):

[0098] DTOFh'(m, n) = DTOFh(m, n) + (Dsd - Dvd) (19) Next, in step 1109, the CPU 104 causes the light-reception correction unit 107 to perform light-reception correction on the skew-corrected distance data DTOFh'(m, n) to correct for delays occurring in the light-receiving unit 102. The skew-corrected distance data DTOFh'(m, n) includes distance data corresponding to the time of flight of light and distance data corresponding to delays occurring in the light-receiving unit 102. Therefore, similar to step 605 in Fig. 6 , the delay amount Ts(n) is converted to distance data Ds(n) using equation (8), and DTOFh'(m, n) is corrected using the following equation (20).

[0099] DTOFh"(m,n) = DTOFh'(m,n) - Ds(n) (20) Next, in step 1110, the CPU 104 causes the light emission correction unit 108 to perform light emission correction on the distance data DTOFh"(m,n) after light reception correction to correct for the delay occurring in the light emitter 101. The distance data DTOFh"(m,n) after light reception correction contains distance data corresponding to the time of flight of light and distance data corresponding to the delay occurring in the light emitter 101. For this reason, as in step 606 in Figure 6, the delay amount Tv(m) is converted to distance data using equation (11), and DTOFh"(m,n) is corrected using the following equation (21).

[0100] DTOFh'''(m,n)=DTOFh''(m,n)-Dv(m) (21) Next, in step 1111, the CPU 104 causes the optical correction unit 109 to perform optical correction on the distance data DTOFh'''(m,n) after the light emission correction, as a correction for the optical path length difference generated in the optical system 113. Here, as in step 607 in Figure 6, the correction shown in equation (16) is performed when the distance data is to be used for focusing when acquiring an image signal of a two-dimensional plane captured by a camera using an imaging optical system.

[0101] The processing in the next steps 612 and 613 is the same as that in steps 612 and 613 in FIG.

[0102] In this embodiment, histogram processing is performed on the distance data acquired by the light receiving unit 102, and then the delay between devices and the delay within a device, which may be a cause of errors in the distance data, are converted into distance data, and the distance data is corrected using this. This makes it possible to obtain highly accurate distance data with a small amount of calculation.

[0103] Next, a description will be given of Example 3. In Example 3, an error in distance data due to a time delay in the distance data caused by the temperature of the light emitting unit 101 and the light receiving unit 102 is corrected.

[0104] Fig. 12 shows the configuration of a distance measuring device of Example 3. In this example, components common to those of the distance measuring device shown in Example 1 (Fig. 1) are denoted by the same reference numerals as in Fig. 1, and their explanations will be omitted. In this example, a light emitting unit 1201 and a light receiving unit 1202, which correspond to the light emitting unit 101 in Examples 1 and 2, respectively include a light emitting unit temperature detector 1203 and a light receiving unit temperature detector 1204 as temperature acquisition means.

[0105] Since the light-emitting element array 201 is constantly emitting light, the temperature inside the light-emitting unit 1201 is likely to rise. A rise in temperature inside the light-emitting unit 1201 can reduce the light-emitting efficiency of the light-emitting elements and cause deterioration of the electrical characteristics of the wiring, transistors, etc. If the amount of delay inside the light-emitting unit 1201 changes due to these factors, an error will occur in the obtained distance data. Therefore, the light-emitting unit temperature detector 1203 acquires the temperature of the light-emitting element array 201 and transmits the temperature information to the light emission and reception control unit 103.

[0106] Meanwhile, within the light receiving unit 1202, a current due to avalanche breakdown is constantly generated in the light receiving element array 301, which tends to increase the temperature within the light receiving unit 1202. An increase in temperature within the light receiving unit 1202 can lead to a decrease in the light receiving efficiency of the pixels (light receiving elements) and can cause degradation of the electrical characteristics of the wiring, transistors, etc. If the amount of delay within the light receiving unit 1202 changes due to these factors, errors will occur in the obtained distance data. Therefore, the light receiving unit temperature detector 1204 acquires the temperature of the light receiving element array 301, and transmits this temperature information to the light emission and reception control unit 103.

[0107] Furthermore, the signal processing circuit 114'' in this embodiment has a histogram generation unit 1001 and correction units 106 to 109, similar to the signal processing circuit 114' in the second embodiment. However, the signal processing circuit 114'' has a light-receiving temperature compensation unit 1205 in the subsequent stage of the light-receiving correction unit 107, and an emission temperature compensation unit 1206 in the subsequent stage of the emission correction unit 108.

[0108] The light-receiving temperature compensation unit 1205 as a fifth correction means corrects errors in the distance data due to a delay amount (fifth delay time) within the light-receiving unit 1202 that occurs in the light-receiving unit 1202 and changes depending on the temperature. Specifically, the light-receiving temperature compensation unit 1205 corrects the distance data (fifth correction) after the light-receiving correction by the light-receiving correction unit 107 using a light-receiving temperature correction value according to the amount of change in the temperature of the light-receiving unit 1202.

[0109] The light emission temperature compensation unit 1206 corrects errors in the distance data caused by the amount of delay in the light receiving unit 1202, which occurs in the light emitting unit 1201 and changes depending on the temperature. Specifically, the light emission temperature compensation unit 1206 corrects the distance data after the light emission correction in the light emission correction unit 108, using a light emission temperature correction value according to the amount of change in the temperature of the light emitting unit 1201.

[0110] 13 shows the configuration of the light-receiving temperature compensation unit 1205. The light-receiving temperature compensation unit 1205 is composed of a temperature correction unit 1301, a correction value estimation unit 1302, and a memory interface 1303. It is possible to store light-receiving temperature correction values ​​for all temperatures in the memory unit 111. However, since the amount of data for light-receiving temperature correction values ​​would be enormous, in this embodiment, the light-receiving temperature correction value for each temperature is estimated (acquired) using a function that is an approximate formula. The correction value estimation unit 1302 acquires coefficients for the approximate function that are stored in advance in the memory unit 111 via the memory interface 1303.

[0111] FIG. 14 shows an example of the fluctuation component of the delay amount due to temperature change, plotted for each row number of the light-receiving element array 301. This figure shows the fluctuation component of the delay amount measured in advance at 50 K intervals from the reference temperature of 250 K in picoseconds (ps). The delay amount at the reference temperature of 250 K is corrected by the light-receiving correction unit 107, and the delay amount at temperatures different from 250 K is corrected by the light-receiving temperature compensation unit 1205. The fluctuation component (fluctuation amount) of the delay amount for each temperature is approximated by a quadratic polynomial approximation function (first function). The following equation (22) shows the approximation function at 300 K, equation (23) shows the approximation function at 350 K, and equation (24) shows the approximation function at 400 K.

[0112] P(n)_300K=f_300K×n 2 +g_300K×n+h_300K (22) P(n)_350K=f_350K×n 2 +g_350K×n+h_350K (23) P(n)_400K=f_400K×n 2 +g_400K×n+h_400K (24) In the above equations (22) to (24), f_300K, g_300K, h_300K, f_350K, g_350K, h_350K, f_400K, g_400K, and h_400K are coefficients of the approximation function at each temperature. The correction value estimation unit 1302 selects an approximation function to use based on the temperature information obtained from the light receiving unit temperature detector 1204, reads the coefficients of the approximation function from the storage unit 111, and estimates the light receiving temperature correction value. Furthermore, when correcting the amount of delay due to temperature changes at a temperature other than the above temperatures, the approximation function shown in the following equation (25) is used.

[0113] P(n)_t=f(t)×n 2 +g(t)×n+h(t) (25) In the above equation, t represents temperature, and P(n)_t represents the fluctuation component of the delay amount of the nth row at temperature t.

[0114] Furthermore, f(t) is a function indicating a quadratic coefficient at temperature t, g(t) is a function indicating a linear coefficient at temperature t, and h(t) is a function indicating a zeroth-order coefficient at temperature t, and they are approximated by quadratic functions (second functions) as shown in the following equations (26) to (28).

[0115] f(t) = a × t 2 +b×t+c (26) g(t)=a×t 2 +b×t+c (27) h(t)=a×t 2 +b×t+c (28) Combinations of coefficients a, b, and c in equations (26) to (28) are calculated in advance, and the calculation results are written to memory 105. CPU 104 reads coefficients a, b, and c from memory 105 and stores them as table data in storage unit 111 via bus 112. Fig. 15 shows examples of coefficients a, b, and c in approximate functions of the coefficients of equations (26) to (28).

[0116] In this way, by approximating the coefficients of the approximation function with a multidimensional function and pre-storing the approximated coefficients in the memory unit 111, it is no longer necessary to store the light receiving temperature correction values ​​for the number of rows of the light receiving element array 301 for all temperatures in the memory unit 111.

[0117] The correction value estimation unit 1302 references the data on the coefficients a, b, and c of the approximation function stored in the storage unit 111, and also obtains the temperature t obtained by the light-receiving unit temperature detector 1204 from the light emission and reception control unit 103. Then, using the approximation functions of equations (26) to (28), it calculates the coefficients f(t), g(t), and h(t) at temperature t. Next, the correction value estimation unit 1302 calculates the fluctuation component P(n)_t of the delay amount in the nth row using the calculated coefficients f(t), g(t), and h(t) and equation (25), and sends the data on the fluctuation component to the temperature correction unit 1301.

[0118] The temperature correction unit 1301 converts the input delay fluctuation component P(n)_t into distance data P'(n)_t using the speed of light c. Then, using the converted P'(n)_t, the distance data DTOFh''(m,n) after light reception correction by the light reception correction unit 107 is corrected as shown in the following equation (29).

[0119] DTOFh"(m, n) = DTOFh"(m, n) - P'(n)_t (29) The light emission temperature compensation unit 1206 has a similar configuration to the light reception temperature compensation unit 1205. The light emission temperature compensation unit 1206 estimates a light emission temperature correction value as correction data using temperature information obtained by the light emission unit temperature detector 1203 serving as a temperature acquisition means and data on coefficients for approximate functions stored in advance in the memory unit 111. Then, the distance data DTOFh"'(m, n) after light emission correction by the light emission correction unit 10108 is corrected using an equation similar to equation (29). This makes it possible to correct the distance data for the amount of delay within the light emission unit 1201, which changes depending on the temperature.

[0120] In this embodiment, the distance data is corrected by estimating the amount of change in delay due to temperature change using information on temperature change of the light-emitting unit 101 and the light-receiving unit 102 and coefficients for an approximate function that have been calculated in advance and stored in the storage unit 111. This makes it possible to obtain highly accurate distance data with a small amount of calculation.

[0121] In this embodiment, we have described the case where distance data is corrected according to temperature in both the light-emitting unit 1201 and the light-receiving unit 1202, but it is sufficient to correct distance data according to temperature in at least one of the light-emitting unit 1201 and the light-receiving unit 1202.

[0122] In the above embodiment, the case where skew correction, light reception correction, light emission correction, optical correction, and temperature correction are performed on the distance data has been described, but at least one of these corrections may be performed.

[0123] The distance measuring device described in the above embodiments can be included in a processing device that performs processing using distance data obtained from the distance measuring device and is installed in various devices, including imaging devices such as cameras, electronic devices such as smartphones, and mobile devices such as automobiles. For example, in imaging devices and electronic devices, the processing device can perform focus control (AF) using the distance data or generate a distance map within the angle of view, as described above. In mobile devices, the processing device can also form part of an ECU (Electronic Control Unit) that measures the distance to a leading vehicle, controls the brakes and steering wheel by detecting obstacles, and issues warnings.

[0124] The present invention can also be realized by a process in which a program that realizes one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., an ASIC) that realizes one or more functions.

[0125] The embodiments described above are merely representative examples, and various modifications and alterations are possible to each embodiment when implementing the present invention.

Claims

1. A distance measuring device comprising: a light-emitting unit that emits light to be irradiated onto an object; a light-receiving unit that detects light of the light reflected by the object, measures the time of flight of the light from the light-emitting unit, and generates distance data based on the time of flight; and a correction means that corrects the distance data based on a first delay time from when the light-emitting unit is instructed to emit light to when the light-emitting unit actually emits light, and a second delay time from when the light-emitting unit is instructed to emit light to when measurement of the time of flight begins in the light-receiving unit.

2. A distance measuring device according to claim 1, wherein said correction means performs said correction using data obtained by converting said first delay time and said second delay time into distance.

3. A distance measuring device as described in claim 1 or 2, characterized in that the light receiving unit has a counter that counts at a predetermined cycle, and the distance data is generated based on the flight time count value by the counter.

4. A distance measuring device according to claim 3, wherein said correction means performs said correction using a count value converted from said first delay time and said second delay time.

5. A distance measuring device according to any one of claims 1 to 4, wherein said correction means performs said correction based on said first delay time after performing said correction based on said second delay time.

6. A distance measuring device as described in any one of claims 1 to 5, characterized in that the light emitting section has a light emitting element and a driving means for outputting a driving voltage for causing the light emitting element to emit light, and the correction means performs the correction based on a third delay time from when the driving voltage is output from the driving means to when the light emitting element emits light.

7. The distance measuring device according to claim 6, wherein the light emitting section has a plurality of light emitting elements, and the correction means performs the correction based on the third delay time for each of the light emitting elements.

8. A distance measuring device as described in any one of claims 1 to 7, characterized in that the light receiving unit has a light receiving element and a measurement means for detecting a signal output from the light receiving element and measuring the flight time, and the correction means performs the correction based on a fourth delay time taken for the signal output from the light receiving element to reach the measurement means.

9. The distance measuring device according to claim 8, wherein the light receiving section has a plurality of light receiving elements, and the correction means performs the correction based on the fourth delay time for each of the light receiving elements.

10. A distance measuring device as described in any one of claims 1 to 9, characterized in that it has an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass, and the correction means performs the correction depending on the image height at the light receiving unit and the focal length of the imaging optical system.

11. A distance measuring device as described in any one of claims 1 to 10, further comprising a temperature acquisition means for acquiring the temperature of at least one of the light emitting unit and the light receiving unit, and the correction means performs the correction based on a fifth delay time corresponding to the temperature of at least one of the light emitting unit and the light receiving unit.

12. The distance measuring device according to claim 11, characterized in that the light emitting unit and the light receiving unit each have a plurality of light emitting elements and a plurality of light receiving elements, and the correction means performs the correction based on the fifth delay time for each of the light emitting elements or for each of the light emitting elements.

13. A distance measuring device according to claim 11 or 12, characterized in that the correction means estimates a correction value corresponding to the fifth delay time using an approximation function, and performs the correction using the estimated correction value.

14. A distance measuring device as claimed in any one of claims 1 to 13, further comprising a histogram generating means for generating a histogram of a plurality of distance data after said correction by said correction means, and outputting distance data determined based on said histogram.

15. A distance measuring device as described in any one of claims 1 to 13, further comprising a histogram generating means for generating a histogram of multiple distance data generated by the light receiving unit and outputting distance data determined based on the histogram, and wherein the correction means performs the correction on the distance data determined based on the histogram.

16. A light emitting unit that emits light to be irradiated onto an object; a light receiving unit that detects light reflected by the object, measures the time of flight of the light from the light emitting unit, and generates distance data based on the time of flight; and a correction means that performs a correction on the distance data, the correction means comprising: a first correction means that performs the correction based on a first delay time from when the light emitting unit is instructed to emit light until the light emitting unit actually emits light, and a second delay time from when the light emitting unit is instructed to emit light until the light receiving unit starts measuring the time of flight; a second correction means that performs the correction based on a third delay time from when a drive voltage for causing a light emitting element to emit light is output from a drive means in the light emitting unit until the light emitting element emits light; and a third correction means that performs the correction based on a fourth delay time until a signal output from a light receiving element in the light receiving unit reaches a measurement means that measures the time of flight. A distance measuring device characterized in that it includes at least one of: a fourth correction means that performs the correction in accordance with the image height at the light receiving unit and the focal length of the imaging optical system when the device has an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass; and a fifth correction means that performs the correction based on a fifth delay time in accordance with the temperature of at least one of the light emitting unit and the light receiving unit.

17. A processing device comprising the distance measuring device according to any one of claims 1 to 16, and performing processing using the distance data from the distance measuring device.

18. A distance measuring method using a light emitting unit that emits light to be irradiated onto an object, and a light receiving unit that detects light of the light reflected by the object, measures the flight time of the light from the light emitting unit, and generates distance data based on the flight time, characterized in that the distance data is corrected based on a first delay time from when the light emitting unit is instructed to emit light until the light emitting unit actually emits light, and a second delay time from when the light is instructed to emit light until the light receiving unit starts measuring the flight time.

19. A distance measuring method having a light emitting unit that emits light to be irradiated onto an object, and a light receiving unit that detects light of the light reflected by the object, measures the time of flight of the light from the light emitting unit, and generates distance data based on the time of flight, and making corrections to the distance data, comprising: a first correction made based on a first delay time from when the light emitting unit is instructed to emit light until the light emitting unit emits light, and a second delay time from when the light emitting unit is instructed to emit light until the light receiving unit starts measuring the time of flight; a second correction made based on a third delay time from when a drive voltage for causing the light emitting unit to emit light is output from a drive means until the light emitting unit emits light; a third correction made based on a fourth delay time until a signal output from a light receiving element in the light receiving unit reaches a measurement means that measures the time of flight; and in the case of an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass, a fourth correction made in accordance with an image height at the light receiving unit and a focal length of the imaging optical system. A distance measuring method comprising: a fifth correction performed based on a fifth delay time according to a temperature of at least one of the light emitting unit and the light receiving unit.

20. A program for causing a computer to execute processing according to the distance measuring method according to claim 18 or 19.

Citation Information

Patent Citations

  • Time-of-flight arrangement and method for a time-of-flight measurement

    EP3521856A1

  • Circuit device, distance measuring device, movable body device, and distance measuring method

    JP2017224879A

  • Measuring device and range finder

    JP2020139810A

  • Distance measuring device and skew correction method

    JP2020148682A

  • Time to digital converter and applications thereof

    US20150041625A1

Cited By

  • Light detection device and ranging system

    WO2026038405A1

  • Distance measurement device, distance measurement method, and program

    WO2026088713A1