Distance measuring device and distance measuring method

The device and method address inaccuracies in TOF distance measurements by incorporating correction mechanisms for delays in light emission and reception, enhancing measurement accuracy.

JP2024141097APending Publication Date: 2024-10-10CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023052560
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-10

AI Technical Summary

Technical Problem

Existing TOF distance measurement methods suffer from delays in light emission and reception, leading to inaccurate distance measurements due to various delays such as those before light emission and reception, which cannot be accurately accounted for.

Method used

A distance measuring device and method that includes a light emitting part, a light receiving section, and correction means to account for delays in light emission and reception, using skew, light reception, light emission, optical path, and temperature corrections to improve accuracy.

Benefits of technology

The device and method provide more accurate distance measurements by correcting for delays, resulting in improved precision and reliability in TOF distance measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024141097000001_ABST
    Figure 2024141097000001_ABST
Patent Text Reader

Abstract

To obtain a more accurate distance to an object in TOF-type distance measurement.SOLUTION: A distance measuring device has: a light-emitting unit 101 that emits light with which an object is irradiated; a light receiving unit 102 that detects light reflected by the object, of the light emitted from the light-emitting unit, to measure the time of flight from the light-emitting unit, and generates distance measurement data on the basis of the time of flight; and correction means 106 that performs correction on the distance measurement data on the basis of a first delay time from when the light-emitting unit is instructed to emit light until when the light-emitting unit emits light, and a second delay time from when the light-emitting unit is instructed to emit light until when measurement of the time of flight is started in the light receiving unit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a distance measurement technique using a Time-Of-Flight (TOF) method. [Background technology]

[0002] The TOF method measures the distance to a subject based on the time between when light is irradiated onto the object and when the reflected light from the object is detected (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, light is irradiated onto the object via an imaging lens, and the reflected light from the object is received to obtain three-dimensional distance information. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2019-60652 A Summary of the Invention [Problem to be solved by the invention]

[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 given 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 given 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 is capable of obtaining a more accurate distance to an object in TOF distance measurement. [Means for solving the problem]

[0006] A distance measuring device as one aspect of the present invention is characterized by having an emitter that emits light to be irradiated onto an object, a light receiving unit that detects light from the light emitting unit that is reflected by the object, measures the flight time from the light emitting unit, and generates distance data based on the flight time, 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 flight time begins in the light receiving unit.

[0007] Another aspect of the present invention is a distance measuring device that has an emitter that emits light to be irradiated onto an object, a light receiving unit that detects light that is reflected from the object to measure the flight time of the light from the emitter, and generates distance data based on the flight time, and a correction means that performs corrections on the distance data. The correction means includes at least one of a first correction means for performing correction 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 means for performing correction based on a third delay time from when the driving means outputs a drive voltage for causing the light emitting unit to emit light until the light emitting unit emits light, a third correction means for performing correction based on a fourth delay time until the signal output from the light receiving element in the light receiving unit reaches a measuring means for measuring the time of flight, a fourth correction means for performing correction according to the image height in the light receiving unit and the focal length of the imaging optical system when the imaging optical system includes 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 for performing correction based on a fifth delay time according to the temperature of at least one of the light emitting unit and the light receiving unit. Note that a processing device including the above-mentioned distance measuring device and performing processing using distance data from the distance measuring device also constitutes another aspect of the present invention.

[0008] A distance measuring method according to another aspect of the present invention uses a light emitting unit that emits light to be irradiated to an object, and a light receiving unit that detects light reflected by the object from the light emitting unit, measures the flight time of the light from the light emitting unit, and generates distance data based on the flight time. The distance measuring method is 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 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 flight time.

[0009] Furthermore, a distance measurement method as another aspect of the present invention has 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 includes, as the correction, at least one of a first correction performed 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 performed based on a third delay time from when the driving means outputs a drive voltage for causing the light emitting unit to emit light until the light emitting unit emits light, a third correction performed based on a fourth delay time until the signal output from the light receiving element in the light receiving unit reaches a measuring means for measuring the time of flight, a fourth correction performed according to the image height in the light receiving unit and the focal length of the imaging optical system when the imaging optical system includes an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the target object pass, and a fifth correction performed based on a fifth delay time according to 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 a process according to the distance measuring method also constitutes another aspect of the present invention. Effect of the Invention

[0010] According to the present invention, it is possible to obtain a more accurate distance to an object in TOF distance measurement. [Brief description of the drawings]

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

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

[0013] 1 shows the configuration of a distance measuring device of Example 1. The distance measuring devices of this example and other examples described later perform distance measurement by 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] The 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 from the light emitting unit 101, the reflected light reflected by the target 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 emission of light by the light emitting unit 101 to reception of the reflected light by the light receiving unit 102 (time of flight TOF of light) based on an emission instruction (or a light receiving instruction output simultaneously) output from the light emitting and receiving control unit 103. The signal processing circuit 114 has the above-mentioned light emitting and receiving control unit 103, and performs signal processing (correction, etc.) described later on the distance data output from the light receiving unit 102.

[0017] [Signal processing circuit configuration] Signal processing circuit 114 has light emission / reception control unit 103, CPU 104, memory 105, skew correction unit 106, light reception correction unit 107, light emission correction unit 108, optical correction unit 109, histogram generation unit 110, and storage unit 111. Skew correction unit 106 corresponds to first correction means, light reception correction unit 107 corresponds to third correction means, light emission correction unit 108 corresponds to second correction means, and optical correction unit 109 corresponds to 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 processes 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 the skew correction data stored in the storage unit 111. The light receiving correction unit 107 performs light reception correction as a second correction on the distance data after the skew correction in the skew correction unit 106 using the 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 the light reception correction in the light receiving correction unit 107 using the 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 the light emission correction in the light emission correction unit 108 using the 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 the optical correction in the optical correction unit 109 or after the light emission correction in the light emission correction unit 108, removes noise components, and averages the distance measurement results. By substituting the time of flight TOF thus calculated into the following equation (1), the distance L to the target object can be calculated. In equation (1), c is the speed of light.

[0020] L = TOF × c / 2 (1) [Light-emitting part] 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 configured by arranging VCSELs (Vertical Cavity Surface Emitting Lasers) as light emitting elements 208 and 209 in a two-dimensional array on a substrate. The light emitting element drive circuit 202 is configured by arranging light emitting element row drive circuits 205, 206, and 207 in a one-dimensional array.

[0022] The light-emitting element may be other than VCSEL, but is preferably one that can be integrated in a one-dimensional array or two-dimensional array. Examples include edge-emitting lasers and LEDs (light-emitting diodes). When an edge-emitting laser is used as the light-emitting element instead of a VCSEL, the light-emitting element array may be a laser bar 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] In addition, in the distance measuring device of this embodiment, it is preferable that the wavelength of the light emitted by the light emitting element is in the near infrared band in order to suppress the influence of ambient light. However, light in a band other than the near infrared band may be used. The VCSEL is manufactured by a semiconductor process using materials used in conventional edge-emitting lasers and surface-emitting lasers, and GaAs-based semiconductor materials can be used as the main material when configured to emit light in the near infrared band. 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 indexes alternately and periodically laminated (GaAs / AlGaAs). The wavelength of the emitted light can be changed by adjusting the element combination and composition of the compound semiconductor.

[0024] Furthermore, 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 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] [Light receiving section] 3 shows an example of the 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 a specific row, 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 an output signal of the pixel 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 is performed 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 that is set so that the potential in the light-receiving region is lowered 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, which generates an avalanche current.

[0028] When no avalanche current flows, 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, since no current flows through the load transistor 402, 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 of 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 a pixel 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 a pixel where the row selection pulse wiring 306 is off, the inverter output is controlled to be disconnected from the pixel output line 305. For this reason, it is possible to detect only light incident on a pixel belonging to a specific row selected by the row selection circuit 309.

[0032] In this way, the light output signal (detection signal) from the pixel belonging to the row selected by the row selection circuit 309 is output as a digital signal to the TDC array unit 302. In the TDC array unit 302, a counter generation circuit (not shown) counts up from the emission start time of the light emitting element in the light emitting unit 101 in synchronization with a clock signal of a predetermined frequency, and the count stops at the light receiving start time when the light is detected by the light receiving unit 102. 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) by the following equation (2).

[0033] L = TOFcnt × 1 / F × c / 2 (2) [Optical system] 5(A) to (C) 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. 5(A) to (C) 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. Note that, although the light emitting element array 201 and the light receiving element array 301 are each shown as having eight rows in Fig. 5(A), the number of rows is not limited to this. Also, although the light emitting elements and the 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 one light emitting element and n x n light receiving elements may be arranged 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. 5(A). The row numbers of the light receiving element rows are assigned in ascending order from smaller to larger Y in the figure. The light emitting element rows and light receiving element rows with the same row number are in a conjugate relationship.

[0036] 5(B) 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 proceeds toward the reflection suppression structure 503.

[0037] 5C shows reflected light 508 from the object and reflected light 509 from the reflection suppressing 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 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 two so that the reflectance of the wavelength of light emitted from the light-emitting element is reduced. Such a surface structure may be a structure in which dielectrics with different refractive indices are laminated, or may be a structure finer than the wavelength. The anti-reflection structure 503 diffuses and reflects the light, thereby preventing the light reflected by the beam splitter 501 from entering the light-receiving element that is in a conjugate relationship with the light-emitting element that emitted the light. This makes it possible to prevent erroneous distance measurement.

[0039] Also, instead of the reflection suppression structure 503, a rectangular structure with a period twice the spacing of the light emitting elements in the row direction is used, and the light reflected by the beam splitter 501 is made incident on the light receiving elements of a row that is not in a conjugate relationship with the light emitting element that emitted light, thereby suppressing erroneous distance measurement. In this embodiment, the output from the pixels of the light receiving element row that is in a conjugate relationship with the light emitting element row that emitted 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 in a conjugate relationship with the light emitting element row that emitted light, and does not react to light incident on other light receiving element rows. Also, although the first row has been described so far, the same applies to the other rows.

[0040] [process] 6 is a flowchart showing the process (distance measuring method) executed by the CPU 104 in this embodiment. In the figure, "S" indicates a step.

[0041] In step 601, the CPU 104 sets to zero a row counter that determines which rows are to be light-emitting and light-receiving.

[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 through the light emission and reception control unit 103, and sets the detection signal from the pixel of the corresponding row to be output to the TDC array unit 302 through the pixel output line 305. Then, the light emitting element row drive circuit of the row corresponding to the row counter is operated, and a drive voltage is applied to the light emitting element belonging to the corresponding row, causing the light emitting element to emit a short pulse. The light reflected by the object and returned is incident on the light receiving element that is in a conjugate relationship 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) through 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 the top, 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 high 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, and are shown as decimal numbers.

[0045] In the light-emitting unit 101, a corresponding light-emitting element row drive circuit is driven so that a light-emitting element belonging to a specific row of the light-emitting element array 201 emits light at rising time 701 (second time) of a synchronous clock supplied from the light emission and reception control unit 103. The TDC array unit 302 of the light-receiving unit 102 starts counting the 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 described next.

[0046] At time 703, the light reflected by the object is received by a 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 every time the signal makes two revolutions within the oscillator, a rising edge appears in the oscillator output, 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 point in time is clk (2 in the figure) is retained.

[0047] Time 705 is the time when the synchronous clock rises for the first time after the oscillator starts. 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 clk (3 in the figure) remains the same.

[0048] In this embodiment, the number of stages of the oscillator buffer is 8 stages, and the delay time tbuff for one stage has a resolution ratio of 1 / 128 to the synchronous clock. This makes it possible to obtain an oscillator count that can be counted with a resolution of 1 / 16 of the synchronous clock, and an oscillator internal signal that can be counted with 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 value is counted with the time resolution of ×tbuff. Also, the oscillator count value DRO clk The time from time 703 to time 704 is 2 4 The value is counted with the time resolution of ×tbuff. Furthermore, the oscillator internal signal count value DRO in is a value obtained by counting the time from time 704 to time 705 with the time resolution of tbuff. clk and oscillator internal signal count value DRO inOne TDC operation is completed by outputting the DRO, which is the result of performing the process shown in the following equation (3), to the signal processing unit 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 2 of the synchronous clock. 7 × tbuff. 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 this, the value DTOF, which is the time of flight of light, counted in tbuff from time 701 to time 703, can be obtained.

[0051] DTOF=2 7 ×D.G. clk +(2 7 -DRO) =2 7 ×D.G. 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 in the TDC array unit 302 at the same time. However, since the light-emitting unit 101 and the light-receiving unit 102 are mounted on a board (not shown) as different devices, there is a possibility that the time (second time) at which the light-emitting instruction reaches the light-emitting unit 101 and the time (third time) at which the light-emitting instruction reaches the light-receiving unit 10 as a count start instruction may be relatively different from the time (first time) at which the light-emitting instruction is issued from the light-emitting / receiving control unit 103.

[0053] In this embodiment, a first delay time from a first time when a light emission instruction is issued from the light emission / reception control unit 103 to a time when the light emission instruction reaches the light source control unit 204 of the light emission unit 101, i.e., a second time when the light emitting element array 201 starts emitting light, is defined as Tvd. 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 receiving unit 102, i.e., a third time when the light receiving unit 102 starts measuring the time of flight (counting the rising edges of the synchronous clock in the TDC array unit 302) is defined as Tsd. At this time, if the frequency of the counter that counts at a predetermined period tbuff is F, the delay times Tvd and Tsd are converted into distance data Dvd and Dsd by equations (5) and (6), respectively.

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

[0055] DTOF′=DTOF+(Dsd-Dvd) (7) The delay times Tvd and Tsd may be calculated in advance by simulation calculation using parameters such as the wiring length and impedance on the substrate. Alternatively, the delay times Tvd and Tsd may be calculated by converting distance data DTOF obtained by actual measurement using an object whose distance is known into a distance in space 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 storing them in the storage unit 111 via the bus 112 from the CPU 104.

[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 the delay time for the first light source control unit being Tvd1, the delay time for the second light source control unit being Tvd2, ... 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 emission instruction and the light reception instruction.

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

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

[0059] The delay occurring in the light receiving unit 102 will be described with reference to FIG. 3. The light receiving element array 301 is configured in a matrix shape to obtain distance data to an object in a two-dimensional area. On the other hand, the TDC array unit 302 as a measuring means is provided at the end of the pixel output line 305 in order to receive the output from the pixels in each column of the light receiving element array 301. In this case, when the distance to the corresponding object is equal for each of the pixels 307 and 308, which are located at different positions in FIG. 3, the time from the start of light emission of the light emitting element array 201 in the light emitting unit 101 to the time when the SPAD cathode potential Vc drops is the same. However, the wiring length from the pixel 307 to the TDC array unit 302 and the wiring length from the pixel 308 to the TDC array unit 302 are different from each other. Therefore, a difference occurs in the time from the time (fourth time) when an output signal is output from the pixels 307 and 308 that detect reflected light to the time (fifth time) when the output signal reaches the TDC array unit 302 and measurement of the time of flight is started. 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 reception correction unit 107 performs correction for each pixel of the light receiving unit 102 on the distance data corrected by the skew correction unit 106. In this embodiment, pixels are selected row by row in the row selection circuit 309 of the light receiving unit 102, and output signals from these pixels belonging to the same row reach the TDC array unit 302 at the same time. For this reason, if correction is performed row by row, it is possible to reduce errors. When the row number is n (n=0, 1, 2, ..., N-1) and the delay amount as the fourth delay time of the pixels belonging to the selected row is Ts(n), the delay amount Ts(n) is converted into distance data (delay distance) shown in the following formula (8).

[0061] Ds(n) = F × Ts(n) (8) The distance data corrected by the skew correction unit 106 is denoted as DTOF′(n) using 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 calculated in advance by a simulation calculation using parameters such as the wiring length and impedance on the light receiving unit 102. Alternatively, the delay amount Ts(n) may be calculated by converting the skew-corrected distance data DTOF' obtained by actual measurement using an object whose distance is known into a distance in space and 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) stored in the memory 105 in the storage unit 111 via the bus 112 from the CPU 104.

[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 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 formula (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 less 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 complicated 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 after light reception correction DTOF″(n) to correct for delays that occur within the light emitter 101. In this embodiment, the light emission correction is performed after the light reception correction. For example, if a pixel in the first row of the light emitter 101 is incident on a pixel in the second row of the light receiver 102, the obtained distance data and the coordinate relationship of each pixel will be different between the light receiver 102 and the light emitter 101. In such a case, it is the light receiver 102 that has the delay amount superimposed last. For this reason, it is possible to perform a more accurate correction by first correcting the delay amount of the light receiver 102, then performing coordinate conversion to return to the coordinate system of the light emitter 101 and correcting the delay amount of the light emitter 101. However, the light reception correction may be performed after the light emission correction by performing coordinate conversion on the correction value that corrects the delay of the light emitter 102.

[0066] The delay occurring in the light emitting unit 101 will be described with reference to FIG. 2. The light emitting element array 201 is configured in a matrix shape in order to obtain distance data to an object in a two-dimensional area. On the other hand, in the light emitting element driving circuit 202, the light emitting element row driving circuits 205, 206, and 207 are arranged one-dimensionally for each row. At this time, the wiring lengths to the light emitting element 208 and the light emitting element 209 connected to the light emitting element row driving circuit 205 are different from each other. Therefore, a difference occurs in the time from the time (sixth time) when the driving voltage is output from the light emitting element row driving circuit 205 to the time (seventh time) when the light emitting elements 208 and 209 actually emit light. In addition, in the light receiving unit 102, the aforementioned counting is performed for the pixels connected to the corresponding rows on the premise that the light emitting elements 208 and 209 have the same light emission timing, and therefore an error occurs in the obtained distance data.

[0067] For this reason, the light emission correction unit 108 performs correction for each light emitting element of the light emitting unit 101 on the distance data corrected by the light reception correction unit 107. In this embodiment, the light emitting element drive circuit 202 of the light emitting unit 101 selects light emitting elements on a column basis, so that light emitting elements belonging to the same column emit light at the same time. Therefore, if correction is performed 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 formula (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 emission unit 101 is expressed by the following equation (12).

[0069] DTOF″′(m)=DTOF″(m)-Dv(m) (12) The delay amount Tv(m) may be obtained in advance by a simulation calculation using parameters such as the wiring length and impedance on the light-emitting unit 101. Alternatively, the delay amount Tv(m) may be obtained by converting distance data DTOF″ obtained by actual measurement using an object whose distance is known into a distance in space and extracting the difference between this and the actual distance. The delay amount Tv(m) can be provided to the light-emitting correction unit 108 as light-emitting 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 by storing the delay amounts Tv(m) for all M columns in the storage unit 111. In this case, it is possible to reduce the storage capacity in the storage unit 111 by storing only Tv(0) and Tv(M-1) in the storage unit 111 and generating the delay amount Tv(m) by the linear interpolation shown in the following equation (13) in the light emission correction unit 108.

[0071] Tv(m)=Tv(0)+m{Tv(0)-Tv(M-1)} / (M-1)(13) Furthermore, the effect of reducing the storage capacity of the storage unit 111 can be obtained for any delay amount less than M, not limited to two, Tv(0) and Tv(M-1). If the delay amount cannot be approximated linearly, it is possible to reduce the storage capacity of the storage unit 111 by approximating it with a more complicated polynomial and storing the coefficients of the polynomial in the 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, the correction data used can be adjusted to the amount of misalignment, making it possible to perform appropriate correction. 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 standard 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 performs geometric transformation processing for the pitch misalignment on the corrected distance data. After that, 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 emission correction as a correction related to the optical path length difference occurring in the optical system 113.

[0074] FIG. 8 shows a schematic diagram of the optical path when light is irradiated to an object 805 located at the same distance. Optical path 801 shows the optical path of light emitted from a light-emitting element of row number 0 in the light-emitting element array 201. Optical path 802 shows the optical path of light emitted from a light-emitting element of row number 3 in the light-emitting element array 201. The laser light emitted as parallel light from these light-emitting elements is irradiated to the object at a predetermined angle with respect to the optical axis through the image-side telecentric imaging lens 504 as the optical system 113. The light following the optical path 801 and the light following the optical path 802 have different optical path lengths, that is, 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. The difference in this flight distance is the difference in flight time. Therefore, a difference occurs in the distance data calculated from the flight time of the light following the optical path 801 and the flight time of the light following the optical path 802. The angle of view φ of the imaging lens 504 is expressed by the following formula (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 denoted as DTOF″′(r), and the distance on the optical axis from the light-receiving element array 301 to the imaging lens 504 is denoted as Dofst. In this case, the distance to the object after optical correction, L(r), can be calculated by the following equation (16).

[0077] L(r)={DTOF″′(r)-2×Dofst} / 2×cos{arctan(r / 2f)}+Dofst (16) The distance L(r) to the object obtained in this manner 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 that of 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, since 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 becomes possible to obtain distance data 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. However, the same effect can be obtained even when 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 of a predetermined binw size 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, CPU 104 determines whether or not 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, CPU 104 causes histogram generating unit 110 to perform histogram processing on the histogram. Specifically, the histogram is searched for a peak class having a frequency higher than the surrounding classes, and the distance corresponding to the class having the highest frequency among at least one peak class is determined as the distance to the object.

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

[0084] Lh = L(i) / num(i) (17) The distance data output from the histogram generating unit 110 is expressed as 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, CPU 104 increments the row counter by one since processing for one row has been completed.

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

[0087] In this embodiment, the amount of delay between different devices (light emitting unit 101 and light receiving unit 102) and the amount of delay 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 places where delays occur because a light emitting element array and a light receiving element array are used, there is no need to incorporate circuits for correcting delays within the light emitting unit or the light receiving unit, and the configuration of the light emitting unit and the light receiving unit can be prevented from becoming 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 a conjugate relationship, the light may be emitted for each column and received for each column. 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. EXAMPLES

[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] Fig. 10 shows the configuration of a distance measuring device of Example 2. In this example, components common to the distance measuring device shown in Example 1 (Fig. 1) are given the same reference numerals as in Fig. 1, and their explanation will be omitted. In this example, 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 correction 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 generating unit 1001 to generate a histogram with a predetermined class width binw 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, CPU 104 determines whether or not 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 generating unit 1001 to perform histogram processing on the histogram, similarly to step 611 in Fig. 6. Here, the CPU 104 calculates distance data DTOFh as an average value by the following formula (18), with the distance data group belonging to class i as DTOF(i) and the frequency as num(i).

[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 as an error component caused by time delay. Therefore, the distance data is corrected using delay amounts (delay times) Tvd and Tsd. As in step 604 in 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 the delay occurring in the light receiving unit 102. The skew-corrected distance data DTOFh'(m,n) contains distance data corresponding to the time of flight of light and distance data corresponding to the delay 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) by equation (8), and DTOFh'(m,n) is corrected by 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 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. Therefore, 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 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 used for focus alignment when acquiring an image signal of a two-dimensional plane captured by a camera using an imaging optical system.

[0101] The processes in the next steps 612 and 613 are the same as those 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 the 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. EXAMPLES

[0103] Next, a description will be given of embodiment 3. In embodiment 3, an error in distance data caused by a time delay in accordance with 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 the distance measuring device shown in Example 1 (Fig. 1) are given the same reference numerals as in Fig. 1, and a description thereof 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. The rise in temperature inside the light-emitting unit 1201 can cause a decrease in the light-emitting efficiency of the light-emitting elements and degradation of the electrical characteristics of 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 obtains 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, in the light receiving unit 1202, a current due to avalanche breakdown is constantly generated in the light receiving element array 301, and the temperature inside the light receiving unit 1202 is likely to rise. The rise in temperature inside the light receiving unit 1202 can cause a decrease in the light receiving efficiency of the pixels (light receiving elements) and degradation of the electrical characteristics of wiring, transistors, etc. If the amount of delay inside the light receiving unit 1202 changes due to these factors, an error will occur in the obtained distance data. Therefore, the light receiving unit temperature detector 1204 obtains the temperature of the light receiving element array 301 and transmits the temperature information to the light emission and reception control unit 103.

[0107] Moreover, 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 received light temperature compensation unit 1205 following the received light correction unit 107, and has an emission temperature compensation unit 1206 following the emission correction unit 108.

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

[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 that 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 also possible to store the light-receiving temperature correction values ​​for all temperatures in the storage unit 111. However, since the amount of data for the 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 approximation formula. The correction value estimation unit 1302 acquires a coefficient for the approximation function that is stored in advance in the storage 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. In this figure, the temperature 250K is set as the reference temperature, and the fluctuation component of the delay amount measured in advance at 50K intervals from the reference temperature is shown in picoseconds (ps). The delay amount at 250K as the reference is corrected by the light receiving correction unit 107, and the delay amount at a temperature different from 250K 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 formula (22) shows the approximation function at 300K, formula (23) shows the approximation function at 350K, and formula (24) shows the approximation function at 400K, respectively.

[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 formulas (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 be used based on temperature information obtained from the light receiving unit temperature detector 1204, reads out the coefficient of the approximation function from the storage unit 111, and estimates the light receiving temperature correction value. When the delay amount due to the change in temperature is corrected at a temperature other than the above temperatures, the approximation function shown in the following formula (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 the quadratic coefficient at temperature t, g(t) is a function indicating the linear coefficient at temperature t, and h(t) is a function indicating the 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 in 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 the approximation functions of the coefficients of equations (26) to (28).

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

[0117] The correction value estimation unit 1302 refers to the data of coefficients a, b, and c of the approximation function stored in the storage unit 111, and obtains the temperature t obtained by the light receiving unit temperature detector 1204 from the light emission and reception control unit 103. Then, the correction value estimation unit 1302 calculates the coefficients f(t), g(t), and h(t) at the temperature t using the approximation functions of equations (26) to (28). 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 of 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 as a temperature acquisition means and data of coefficients for approximate functions stored in advance in the memory unit 111. Then, the light emission correction unit 10108 corrects the distance data DTOFh'''(m,n) after light emission correction using an equation similar to equation (29). This makes it possible to correct the distance data for the amount of delay in the light emission unit 1201 that 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 approximate functions 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, the case has been described 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 the 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 embodiment can be included in a processing device that performs processing using distance data obtained from the distance measuring device and is mounted on an imaging device such as a camera, an electronic device such as a smartphone, a mobile device such as an automobile, and other various devices. In the imaging device or electronic device, for example, 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 the mobile device, the processing device can be used to configure a part of an ECU (Electronic Control Unit) that measures the distance to the vehicle ahead, controls the brakes and steering wheel by detecting obstacles, and outputs warnings.

[0124] The above embodiment includes the following configurations.

[0125] (Configuration 1) a light emitting unit that emits light to be irradiated onto an object; a light receiving unit that detects light reflected from the object out of the light, measures a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight; a correction means for correcting 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 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. (Configuration 2) 2. The distance measuring device according to configuration 1, wherein the correction means performs the correction using data obtained by converting the first delay time and the second delay time into distances. (Configuration 3) The light receiving unit is A counter that counts at a predetermined interval is provided. 3. The distance measuring device according to claim 1, wherein the distance data is generated based on a count value of the flight time by the counter. (Configuration 4) 4. The distance measuring device according to configuration 3, wherein the correction means performs the correction using a count value converted from the first delay time and the second delay time. (Configuration 5) 5. The distance measuring device according to any one of configurations 1 to 4, wherein the correction means performs the correction based on the first delay time after performing the correction based on the second delay time. (Configuration 6) the light-emitting unit includes a light-emitting element and a driving means for outputting a driving voltage for causing the light-emitting element to emit light; The distance measuring device according to any one of configurations 1 to 5, wherein 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. (Configuration 7) The light emitting unit has a plurality of light emitting elements, 7. The distance measuring device according to configuration 6, wherein the correction means performs the correction based on the third delay time for each of the light-emitting elements. (Configuration 8) the light receiving unit has a light receiving element and a measuring means for measuring the time of flight by detecting a signal output from the light receiving element, The distance measuring device according to any one of configurations 1 to 7, wherein the correction means performs the correction based on a fourth delay time until the signal output from the light receiving element reaches the measurement means. (Configuration 9) The light receiving unit has a plurality of light receiving elements, 9. The distance measuring device according to configuration 8, wherein the correction means performs the correction based on the fourth delay time for each of the light receiving elements. (Configuration 10) an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass; 10. The distance measuring device according to any one of configurations 1 to 9, wherein the correction means performs the correction in accordance with an image height at the light receiving unit and a focal length of the imaging optical system. (Configuration 11) a temperature acquisition unit for acquiring a temperature of at least one of the light-emitting unit and the light-receiving unit, 11. The distance measuring device according to any one of configurations 1 to 10, wherein the correction means performs the correction based on a fifth delay time according to the temperature in at least one of the sensors. (Configuration 12) the light emitting section and the light receiving section each have a plurality of light emitting elements and a plurality of light receiving elements, 12. The distance measuring device according to configuration 11, wherein 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. (Configuration 13) 13. The distance measuring device according to claim 11, wherein the correction means estimates a correction value corresponding to the fifth delay time by using an approximation function, and performs the correction by using the estimated correction value. (Configuration 14) 14. The distance measuring device according to any one of configurations 1 to 13, further comprising a histogram generating means for generating a histogram of the plurality of distance data corrected by the correction means, and outputting distance data determined based on the histogram. (Configuration 15) a histogram generating means for generating a histogram of the plurality of distance data generated by the light receiving unit and outputting distance data determined based on the histogram; 14. The distance measuring device according to any one of configurations 1 to 13, wherein the correction means performs the correction on distance data determined based on the histogram. (Configuration 16) a light emitting unit that emits light to be irradiated onto an object; a light receiving unit that detects light reflected from the object out of the light, measures a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight; a correction means for correcting the distance data, The correction means is a first correction means for performing the correction 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 means for performing the correction based on a third delay time from when a drive voltage for causing a light emitting element to emit light in the light emitting unit is output from a drive means to when the light emitting element emits light; a third correction means for performing 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 for measuring the time of flight; a fourth correction means for performing the correction in accordance with an image height at the light receiving unit and a focal length of the imaging optical system when the imaging optical system includes an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass; A distance measuring device comprising: at least one fifth correction means configured to perform the correction based on a fifth delay time according to a temperature of at least one of the light emitting section and the light receiving section. (Configuration 17) A distance measuring device according to any one of configurations 1 to 16, A processing device which performs processing using the distance data from the distance measuring device. (Configuration 18) The distance measuring device according to configuration 13, wherein the correction means estimates a fluctuation amount of the fifth delay time using a first function that approximates a fluctuation amount of the fifth delay time with respect to a change in the temperature from a reference temperature and a coefficient of the first function for each temperature, and estimates the correction value from the estimated fluctuation amount. (Configuration 19) 19. The distance measuring device according to configuration 18, wherein the correction means estimates a fluctuation amount of the fifth delay time by further using a second function that approximates a coefficient in the first function that changes depending on the temperature.

[0126] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the 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., ASIC) that implements one or more of the functions.

[0127] The embodiments described above are merely representative examples, and various modifications and alterations are possible for each embodiment when implementing the present invention. [Explanation of symbols]

[0128] 101 Light emitting part 102 Light receiving section 103 Light emission and reception control unit 104 CPU 106 Skew correction section 107 Light receiving correction unit 108 Light emission correction section 109 Optical correction section 110,1001 Histogram generation unit 113 Optical system 114,114',114" Signal processing circuit

Claims

1. a light emitting unit that emits light to be irradiated onto an object; a light receiving unit that detects light reflected from the object out of the light, measures a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight; A distance measuring device characterized by having 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 emits light, and a second delay time from when the light emitting unit is instructed to emit light to when the light receiving unit starts measuring the flight time.

2. 2. The 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 distances.

3. The light receiving unit is A counter that counts at a predetermined interval is provided.

2. The distance measuring device according to claim 1, wherein the distance data is generated based on a count value of the flight time by the counter.

4. 4. The 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. 2. The distance measuring device according to claim 1, wherein the correction means performs the correction based on the first delay time after performing the correction based on the second delay time.

6. the light-emitting unit includes a light-emitting element and a driving means for outputting a driving voltage for causing the light-emitting element to emit light; 2. The distance measuring device according to claim 1, wherein the correction means performs the correction based on a third delay time from when the drive voltage is output from the drive means to when the light emitting element emits light.

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

8. the light receiving unit has a light receiving element and a measuring means for measuring the time of flight by detecting a signal output from the light receiving element, 2. The distance measuring device according to claim 1, wherein 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 measuring means.

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

10. an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass; 2. The distance measuring device according to claim 1, wherein the correction means performs the correction in accordance with an image height at the light receiving portion and a focal length of the imaging optical system.

11. a temperature acquisition unit for acquiring a temperature of at least one of the light-emitting unit and the light-receiving unit, 2. The distance measuring device according to claim 1, wherein the correction means performs the correction based on a fifth delay time that depends on the temperature of at least one of the sensors.

12. the light emitting section and the light receiving section each have a plurality of light emitting elements and a plurality of light receiving elements, 12. The distance measuring device according to claim 11, wherein 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. 12. The distance measuring device according to claim 11, wherein the correction means estimates a correction value corresponding to the fifth delay time by using an approximation function, and performs the correction by using the estimated correction value.

14. 2. The distance measuring device according to claim 1, further comprising a histogram generating means for generating a histogram of the plurality of distance data after said correction by said correcting means, and outputting distance data determined based on said histogram.

15. a histogram generating means for generating a histogram of the plurality of distance data generated by the light receiving unit and outputting distance data determined based on the histogram; 2. The distance measuring device according to claim 1, wherein said correction means performs said correction on distance data determined based on said histogram.

16. a light emitting unit that emits light to be irradiated onto an object; a light receiving unit that detects light reflected from the object out of the light, measures a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight; a correction means for correcting the distance data, The correction means is a first correction means for performing the correction 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 means for performing the correction based on a third delay time from when a drive voltage for causing a light emitting element in the light emitting unit to emit light to when the light emitting element emits light; a third correction means for performing 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 for measuring the time of flight; a fourth correction means for performing the correction in accordance with an image height at the light receiving unit and a focal length of the imaging optical system when the imaging optical system includes an imaging optical system through which the light emitted from the light emitting unit and the light reflected by the object pass; a fifth correction means for performing the correction based on a fifth delay time according to a temperature of at least one of the light emitting portion and the light receiving portion,

17. A distance measuring device according to any one of claims 1 to 16, A processing device which performs 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 a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight, A distance measuring method characterized by making corrections to 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 the light-receiving unit starts measuring the time of flight.

19. A distance measuring method comprising: 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 a time of flight of the light from the light emitting unit, and generates distance data based on the time of flight, the distance measuring unit correcting the distance data, As the correction, a first correction 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 that performs the correction based on a third delay time from when a drive voltage for causing a light-emitting element to emit light in the light-emitting unit is output from a drive means to when the light-emitting element emits light; a third correction based on a fourth delay time until a signal output from a light receiving element in the light receiving unit reaches a measuring means for measuring the time of flight; a fourth correction that is performed in a case where an imaging optical system through which the light emitted from the light-emitting unit and the light reflected by the object pass is included, 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. 20. A program for causing a computer to execute a process according to the distance measuring method according to claim 18 or 19.

Citation Information

Patent Citations

  • Distance measuring sensor

    JP2019060652A