The present invention relates to a measurement apparatus, a ranging apparatus, and a measurement method.
There is a known ranging method called a direct time of flight (ToF) technique as one of ranging techniques for measuring a distance to an object to be measured by using light. In a ranging process using the direct ToF technique, a distance to an object to be measured is obtained on the basis of a time period between an emission timing that indicates emission of light emitted by a light source and a light receiving timing at which the emitted light is reflected by the object to be measured and is received as reflected light by a light receiving element.
More specifically, a time period between the emission timing and the light receiving timing at which the light is received by the light receiving element is measured, and then, time information that indicates the measured time period is stored in a memory. This measurement is performed several times and a histogram is generated on the basis of the time information that is obtained from the measurements that have been performed several times and that is stored in the memory. The distance to the object to be measured is obtained on the basis of this histogram.
Patent Literature 1: Japanese Laid-open Patent Publication No. 2016-176750
In a configuration that performs ranging using the dToF technique, there is a need to reduce the capacity of the memory that stores therein a plurality of pieces of time information for generating a histogram.
Accordingly, it is an object in one aspect of an embodiment of the present disclosure to provide a measurement apparatus, a ranging apparatus, and a measurement method capable of reducing the capacity of a memory that stores therein a plurality of pieces of time information for generating a histogram in a configuration in which ranging is performed by using the dToF technique.
For solving the problem described above, a measurement apparatus according to one aspect of the present disclosure has a first pixel; a light source; a control unit that controls emission of light emitted from the light source by generating light emission commands that allow the light source to emit light; a first measuring unit that measures a first time period between a first light emission command timing at which the control unit generates a first light emission command out of the light emission commands and a light emission timing at which the light source emits light in accordance with the first light emission command; a second measuring unit that measures a second time period between a second light emission command timing at which the control unit generates a second light emission command out of the light emission commands and a time at which the light is received by the first pixel; and a generating unit that generates a histogram on the basis of the second time period that is measured by the second measuring unit, wherein the generating unit generates the histogram of which a starting point is a time when the first period elapses from the second light emission command.
Preferred embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings. Furthermore, in each of the embodiments, by assigning the same reference numerals to components having the same functional configuration, overlapping descriptions thereof will be omitted.
(Configuration Common to Each Embodiment)
The present disclosure is suitable for use in a technique for detecting a photon. Before a description of each of the embodiments according to the present disclosure, in order to facilitate understanding, a technique for performing ranging on the basis of detection of photons will be described as one of techniques that are applicable to each of the embodiments. As a ranging technique in this case, a direct time of flight (ToF) technique will be used. The direct ToF technique is a technique for performing ranging on the basis of a difference between a light emission timing and a light receiving timing of light that is emitted from a light source is reflected by an object to be measured and the obtained reflected light is received by a light receiving element.
An outline of ranging performed by using the direct ToF technique will be described with reference to
Here, it is assumed that a clock time (light emission timing) at which the light source unit 301 emits light is denoted by time t0 and a clock time (light receiving timing) at which the light emitted from the light source unit 301 is reflected by the object to be measured 303 and is received as reflected light by the light receiving unit 302 is denoted by time t1. If a constant c is a speed of light (2.9979×108 [m/sec]), a distance D between the ranging apparatus 300 and the object to be measured 303 is calculated by Equation (1) as follows.
D=(c/2)×(t1−t0) (1)
The ranging apparatus 300 repeatedly performs the process described above several times. The light receiving unit 302 may include a plurality of light receiving elements and calculate each of the distances D on the basis of the respective light receiving timings at each of which the reflected light is received by each of the light receiving elements. The ranging apparatus 300 classifies time tm (hereinafter, referred to as light receiving time tm) between time t0, which is the light emission timing, and the light receiving timing, at which the light is received by the light receiving unit 302, on the basis of categories (bins), and generates a histogram.
Furthermore, the light received by the light receiving unit 302 in a period of time indicated by the light receiving time tm is not limited to the reflected light of the light that is emitted by the light source unit 301 and is reflected by the object to be measured. For example, ambient light that is present around the ranging apparatus 300 (the light receiving unit 302) is also received by the light receiving unit 302.
The ranging apparatus 300 counts the number of acquisitions of the light receiving time tm on the basis of the bins, obtains a frequency 310 for each bin, and generates a histogram. Here, the light receiving unit 302 also receives light other than the reflected light of the light emitted from the light source unit 301. An example of the light other than the reflected light to be targeted includes the ambient light described above. The portion indicated by a region 311 in the histogram includes an ambient light component due to the ambient light. The ambient light is light that is randomly incident into the light receiving unit 302 and causes noise with respect to the target reflected light.
In contrast, the reflected light to be targeted is the light that is received in accordance with a specific distance and appears as an active light component 312 in the histogram. The bins associated with the peak of the frequency in the active light component 312 are the bins corresponding to the distance D of the object to be measured 303. The ranging apparatus 300 acquires representative time of the subject bins (for example, the time at the center of the bins) as the time t1 described above, so that the ranging apparatus 300 is able to calculate the distance D to the object to be measured 303 in accordance with Equation (1) described above. In this way, by using a plurality of light receiving results, it is possible to perform appropriate ranging with respect to random noise.
The light source unit 2 corresponds to the light source unit 301 described above, is a laser diode, and is driven so as to emit, for example, pulsed laser light. For the light source unit 2, a vertical-cavity surface-emitting laser (VCSEL) that emits laser light can be used as surface light source. However, the embodiment is not limited to this. The light source unit 2 may also be configured to use an array unit in which laser diodes are arranged in the form of a line and scan the laser light emitted from the laser diode array in a vertical direction relative to the line. Furthermore, the light source unit 2 may also be configured to use a laser diode as a single light source and scan the laser light emitted from the laser diode in a horizontal and vertical directions.
The ranging apparatus 1 includes a plurality of light receiving elements corresponding to the light receiving unit 302 described above. The plurality of light receiving elements forms a light receiving surface by being arranged, for example, in a two-dimensional grid manner. The optical system 5 guides the light that is incident from the outside onto the light receiving surface that is included in the ranging apparatus 1.
The control unit 4 performs overall control of the electronic device 6. For example, the control unit 4 supplies a light emission trigger that is a trigger to cause the light source unit 2 to emit light to the ranging apparatus 1. The ranging apparatus 1 allows the light source unit 2 to emit light at the timing on the basis of this light emission trigger and stores time tem that indicates the light emission timing. Furthermore, the control unit 4 sets, for example, in accordance with an instruction from the outside, a pattern at the time of ranging to the ranging apparatus 1.
The ranging apparatus 1 counts the number of acquisitions of the time information (the light receiving time tm), which indicates the timing at which the light is received on the light receiving surface, within a predetermined time range, and then, generates a histogram described above by obtaining the frequency for each bin. The ranging apparatus 1 further calculates the distance D to the object to be measured on the basis of the generated histogram. Information that indicates the calculated distance D is stored in the storage unit 3.
However, the configuration is not limited to this. The ranging apparatus 1 may also have a configuration in which a first semiconductor chip and a second semiconductor chip are laminated. In this case, for example, it is conceivable to use a configuration in which a part of the pixel array unit 100 (the light receiving unit, or the like) is arranged on the first semiconductor chip and the other parts of the ranging apparatus 1 are arranged on the second semiconductor chip.
In
The pixel array unit 100 includes a plurality of pixels 10, 10, and . . . each of which includes a light receiving element that is arrayed in a two-dimensional grid manner. Operations of each of the pixels 10 are controlled by the pixel control unit 102 in accordance with an instruction from the overall control unit 103. For example, the pixel control unit 102 is able to control reading of a pixel signal from each of the pixels 10 for each block that includes (p×q) pieces of pixels 10 having p pieces of pixels in a row direction and q pieces of pixels in a column direction. Furthermore, the pixel control unit 102 scans each of the pixels 10 in the row direction in units of blocks, and furthermore, scans each of the pixels 10 in the column direction, so that the pixel control unit 102 is able to read a pixel signal from each of the pixels 10. The embodiment is not limited to this and the pixel control unit 102 is able to individually control each of the pixels 10. Furthermore, the pixel control unit 102 is able to use, by defining a predetermined area of the pixel array unit 100 as a target area, the pixels 10 included in the target area as the pixels 10 that are targeted for reading the pixel signals. Furthermore, the pixel control unit 102 is able to read a pixel signal from each of the pixels 10 by collectively scanning a plurality of rows (plurality of lines) and by further scanning the scanned portion in the column direction.
Furthermore, in the following, it is assumed that scanning indicates a process of allowing the light source unit 2 to emit light and reading a signal Vpls that is associated with the light received from the pixel 10, which is continuously performed on each of the pixels 10 designated as a scanning target in a single scanning area. It is possible to perform the process of emitting light and reading the signal Vpls several times in a single scanning process.
The pixel signal that has been read from each of the pixels 10 is supplied to the ranging processing unit 101. The ranging processing unit 101 includes a converting unit 110, a generating unit 111, and a signal processing unit 112.
The pixel signals that are read from the respective pixels 10 and are output from the pixel array unit 100 are supplied to the converting unit 110. Here, the pixel signals are asynchronously read from the respective pixels 10 and are supplied to the converting unit 110. Namely, the pixel signals are read from the light receiving elements in accordance with the timing at which the light is received by the associated pixels 10 and are then output.
The converting unit 110 converts the pixel signals supplied from the pixel array unit 100 to the digital information. Namely, a pixel signal supplied from the pixel array unit 100 is output in accordance with the timing at which the light is received by the light receiving element included in the associated pixel 10 that is associated with the subject pixel signal. The converting unit 110 converts the supplied pixel signals to the time information that indicates the subject timing.
The generating unit 111 generates a histogram on the basis of the time information that indicates the time at which a pixel signal is converted by the converting unit 110. Here, the generating unit 111 counts the pieces of time information on the basis of the unit time d that is set by a setting unit 113 and generates a histogram. The histogram generating process performed by the generating unit 111 will be described in detail later.
The signal processing unit 112 performs predetermined arithmetic processing on the basis of the data on the histogram generated by the generating unit 111 and obtains, for example, distance information. The signal processing unit 112 generates curve approximation on the subject histogram on the basis of, for example, the data on the histogram generated by the generating unit 111. The signal processing unit 112 is able to detect the peak of the curved line obtained by approximating this histogram and obtain the distance D on the basis of the detected peak.
At the time of performing the curve approximation of the histogram, the signal processing unit 112 is able to perform a filter process on the curved line that is obtained by approximating the histogram. For example, the signal processing unit 112 is able to reduce a noise component by performing a low-pass filtering process on the curved line that is obtained by approximating the histogram.
The distance information obtained by the signal processing unit 112 is supplied to the interface 106. The interface 106 outputs the distance information supplied from the signal processing unit 112 to the outside as output data. For example, a mobile industry processor interface (MIPI) may be used for the interface 106.
Furthermore, in the above description, the distance information obtained by the signal processing unit 112 is output to the outside via the interface 106; however, the embodiment is not limited to this example. Namely, histogram data that is the data on the histogram generated by the generating unit 111 may also be configured to output the distance information to the outside from the interface 106. In this case, the ranging condition information that is set by the setting unit 113 may omit information that indicates a filter coefficient. The histogram data that is output from the interface 106 is supplied to, for example, an externally provided information processing apparatus and is then appropriately processed.
The light receiving element 1000 converts the incident light to an electrical signal by performing photoelectric conversion. In each of the embodiments, the light receiving element 1000 converts the incident photon to the electrical signal by performing photoelectric conversion, and then, outputs a pulse that is in accordance with the incident photon. In each of the embodiments, as the light receiving element 1000, a single-photon avalanche diode is used. Hereinafter, the single-photon avalanche diode is referred to as a single photon avalanche diode (SPAD). The SPAD exhibits a characteristic in which, if a large negative voltage that generates avalanche multiplication is applied to a cathode, electrons that are generated in accordance with a single incident photon generates avalanche multiplication and thus a large electric current flows. By using the characteristic of the SPAD, it is possible to detect a single incident photon with a high degree of sensitivity.
In
More specifically, in the light receiving element 1000, if a photon is incident in a charged state due to an electric potential (−Vdb) after a voltage (−Vbd) is applied to an anode, avalanche multiplication is started, so that an electric current flows in the direction from the cathode toward the anode and a voltage drop is accordingly generated in the light receiving element 1000. If a voltage between the anode and the cathode of the light receiving element 1000 drops to the voltage (−Vbd) due to this voltage drop, avalanche multiplication is stopped (quenching operation). After that, the light receiving element 1000 is charged by the electric current (recharge electric current) that is output from the transistor 1001 that is the electric current source, and then, the state of the light receiving element 1000 returns to the state in which the photon is not yet incident (recharge operation).
A voltage Vs acquired from the connection point between the drain of the transistor 1001 and the cathode of the light receiving element 1000 is input to the inverter 1002. The inverter 1002 performs, for example, threshold judgement on the signal Vpls, which is to be output, with respect to the input voltage Vs, and then, inverts the signal Vpls every time the subject voltage Vs exceeds a threshold voltage Vth in the positive direction or the negative direction.
More specifically, in a voltage drop due to avalanche multiplication in accordance with incidence of the photon onto the light receiving element 1000, the inverter 1002 inverts the signal Vpls at a first timing at which the voltage Vs crosses the threshold voltage Vth. Then, the light receiving element 1000 is charged by the recharge operation, and thus, the voltage Vs is increased. The inverter 1002 again inverts the signal Vpls at a second timing at which the increasing voltage Vs crosses the threshold voltage Vth. The width of the time direction between the first timing and the second timing corresponds to an output pulse that is in accordance with incidence of the photon onto the light receiving element 1000.
The output pulse corresponds to the pixel signal that is asynchronously output from the pixel array unit 100 described above with reference to
On the light receiving chip 20, the light receiving elements 1000 included in the respective pixels 10 are arrayed in the area of the pixel array unit 100 in a two-dimensional grid manner. Furthermore, the transistor 1001 and the inverter 1002 are formed in the pixel 10 on the logic chip 21. Both ends of the light receiving element 1000 are connected between the light receiving chip 20 and the logic chip 21 via a connecting unit 1105 formed of, for example, a copper-copper connection (CCC) or the like.
The logic chip 21 is provided with a logic array unit 2000 that includes a signal processing unit that processes the signal acquired by the light receiving element 1000. It is possible to further provide, on the logic chip 21, a signal processing circuit unit 2010, which processes the signal acquired by the light receiving element 1000, and an apparatus control unit 2030, which controls an operation as the ranging apparatus 1, at a position close to the logic array unit 2000.
For example, the signal processing circuit unit 2010 is able to include the ranging processing unit 101 described above. Furthermore, the apparatus control unit 2030 is able to include the pixel control unit 102, the overall control unit 103, the clock generating unit 104, the light emission timing control unit 105, and the interface 106, which are described above.
Furthermore, the configuration on each of the light receiving chip 20 and the logic chip 21 is not limited to this. Furthermore, in addition to controlling the logic array unit 2000, it is possible to arrange the apparatus control unit 2030 at a position close to, for example, the light receiving element 1000 for the purpose of driving or controlling the other elements. In addition to the arrangement illustrated in
Furthermore, the example illustrated in
In the pixel array unit 100, it is assumed that the area other than the reference pixel area 121 is a measurement pixel area 120 in which each of the measurement purpose pixels 10 that are used to perform ranging measurement. In this way, the pixel array unit 100 includes the measurement pixel area 120, in which each of the measurement purpose pixels 10 is arranged, and the reference pixel area 121, in which the pixels 10 that are used as the reference pixels are arranged. Accordingly, it is possible to perform, temporally in parallel, a process that uses the pixels 10 that are the reference pixels and the process that uses each of the measurement purpose pixels 10.
(Example of Ranging Process Performed Using Existing Technique)
In contrast, each of the signals Vpls that are output from the respective pixels 10 included in the measurement pixel area 120 of the pixel array unit 100 is supplied to a time to digital converter (TDC) 133. Similarly, each of the signals Vpls that are output from the respective pixels 10 included in the reference pixel area 121 of the pixel array unit 100 is supplied to the TDC 133.
The TDC 133 has a function corresponding to the function of the converting unit 110 described with reference to
If the TDC 133 stops the count in accordance with the supplied signal Vpls, the TDC 133 passes the time t indicated by the stopped count to the processing unit 134. The processing unit 134 generates a histogram on the basis of the time t at which the signal Vpls that is output from each of the pixels 10 is converted.
Here, in the direct ToF technique, as described above by using Equation (1), ranging is performed on the basis of a difference between the time to of the light emission timing at which the LD 131 that is the light source emits light and the time t1 of the light receiving timing at which the pixel 10 receives the light.
As described above, the LD 131 emits light by being driven by the LDD 130 in accordance with the light emission command that is output from the processing unit 134. At this time, a time lag is present in a period of time between a time point at which the LDD 130 drives the LD 131 in accordance with the light emission command and a time point at which the light emission timing at which the LD 131 actually emits light. The time lag is caused by a time constant on a path from the processing unit 134 to the LD 131, temperature of the LD 131 itself, or aged deterioration of the LD 131, and it is thus difficult to predict. Consequently, it is difficult to accurately the light emission timing on the basis of the information that can be acquired on the path from the processing unit 134 to the LD 131.
Accordingly, in the configuration illustrated in
Here, by shortening, to the max, an optical path length to the point at which the pixels 10 included in the reference pixel area 121 is irradiated with the light emitted from the LD 131 via the mirror 122, the period of time between the measured light receiving timing and the light emission timing of the LD 131 can be assumed as a zero time. Accordingly, this makes it possible to assume that the subject light receiving timing is the light emission timing of the LD 131. Consequently, the processing unit 134 is able to acquire the period of time of the time lag between a time point at which the light emission command is output and a time point at which the LD 131 emits light, and is able to detect the light emission timing of the LD 131 on the basis of the light emission command timing at which the light emission command is output.
In contrast, in the measurement pixel area 120, light that includes reflected light of light that is emitted from the LD 131 and that is reflected by an object to be measured 160 is received by each of the pixels 10 included in the measurement pixel area 120. The TDC 133 obtains clock time information on each of the signals Vpls that are output in accordance with the light received from each of the pixels 10 included in the measurement pixel area 120. The processing unit 134 generates a histogram by performing this operation several times (for example, several thousands of times to several tens of thousands of times), performs calculation on the basis of Equation (1) described above using the generated histogram, and obtains the distance D to the object to be measured 160.
At this time, the processing unit 134 is able to use the time, as the time t0 that indicates the light emission timing in Equation (1), that is obtained by adding the time of the time lag described above to the light emission command timing.
In the histogram 200a, the processing unit 134 outputs a light emission command to the LDD 130. The time tcom at which the light emission command is output is assumed as the light emission command timing. Furthermore, for example, at time thistst that is the same time at which the light emission command is output, the processing unit 134 starts to generate a histogram on the basis of the signal Vpls that is output from each of the pixels 10 included in the reference pixel area 121. The processing unit 134 stores time tst at which a peak 201 of the frequency is detected as the light emission timing at which the LD 131 emits light.
If the time tst that indicates the light emission timing at which the LD 131 emits light is acquired, the processing unit 134 starts to perform measurement by using the pixels 10 included in the measurement pixel area 120. The histogram 200b indicates an example of the histogram generated on the basis of the pixels 10 included in the measurement pixel area 120. The processing unit 134 outputs the light emission command to the LDD 130 at the time tcom=the time thistst, and also, starts to generate a histogram on the basis of the signals Vpls that are output from the pixels 10 included in the measurement pixel area 120. The processing unit 134 recognizes that time tpk at which a peak 202 of the frequency is detected is the peak time of the reflected light of light that is emitted from the LD 131 and that is reflected by the object to be measured 160.
The processing unit 134 applies the pieces of time tst and tpk described above to the pieces of time t0 and t1, respectively, in Equation (1) and calculates the distance D.
In the histogram 200b, the bins included in a range 203 that is located temporally before the time tst that indicates the light emission timing of the LD 131 are information that is irrelevant to ranging. Namely, in the range 203, each of the pixels 10 included in the measurement pixel area 120 only receives light of, for example, ambient light and the signal Vpls that is output from each of the pixels 10 does not contribute the ranging.
In this way, the information on the bins included in the range 203 is information that is useless for ranging. In contrast, the processing unit 134 generates a histogram for each of the pixels 10 included in the measurement pixel area 120. Accordingly, as the number of the pixels 10 included in the measurement pixel area 120 is increased, a larger amount of the memory capacity for storing information on the useless bins included in the range 203 is needed.
(Outline of Ranging Process According to Each Embodiment)
In the following, the ranging process according to each of the embodiments will be schematically described.
As indicated at the upper part illustrated in
The pixels 10 included in the reference pixel area 121 receive ambient light in addition to the reflected light of the light emitted by the LD 131. Accordingly, as indicated by the third graph from the top illustrated in
In each of the embodiments according to the present disclosure, the generation of a histogram on the basis of the light receiving timing of the pixels 10 included in the measurement pixel area 120 is started at the above described time t12 as a starting point that is obtained by delaying the time t10 at which the light emission command is output by the processing unit 134. As an example, as indicated by the graph at the lowest portion illustrated in
As described above, if the optical path length to the point at which the pixels 10 included in the reference pixel area 121 is irradiated with the light emitted from the LD 131 via the mirror 122 is extremely short, it is assumed that the time Δt that corresponds to a difference between the time t11, which is the actual light emission timing of the LD 131 and the time t12, at which the reflected light of the light that is reflected by the mirror 122 and that is emitted at the time t11 is received by the pixels 10 included in the reference pixel area 121, is zero. Therefore, in the measurement performed on the basis of the pixels 10 included in the measurement pixel area 120, it is possible to calculate the distance D to the object to be measured 160 by applying the time t12, as the light emission timing at which the LD 131 emits the light, to the time to in Equation (1) described above and applying the time t13 to the time t1 in Equation (1).
In the measurement performed on the basis of the pixels 10 included in the measurement pixel area 120, as an example, the time t12 can be obtained as follows. Before the measurement performed on the basis of the pixels 10 included in the measurement pixel area 120, the processing unit 134 measures on the basis of the pixels 10 included in the reference pixel area 121 and acquires the time t12. The processing unit 134 obtains time t12-10 that is a difference between the acquired time t12 and the time t10 that is the light emission command timing at which the processing unit 134 outputs the light emission command, and then, stores the obtained time t12-10. If the time t12 is measured on the basis of the time t10 as a reference (assuming that the time t10 is a zero time), the time t12-10 that indicates the difference is equal to the value of the time t12.
Then, the processing unit 134 performs measurement on the basis of the pixels 10 in the measurement pixel area 120. At this time, the processing unit 134 obtains, on the basis of the time t10 in the subject measurement and the time t12-10 that is previously measured and stored, the time t12 as the light emission timing at which the LD 131 has actually emitted light.
In this way, in each of the embodiments according to the present disclosure, at the time of generating a histogram that is in accordance with the light receiving timing of the pixels 10 in the measurement pixel area 120, there is no need to store information on the bins in a period of time between the time t10 and the time t12. Thus, according to the ranging process used in the present disclosure, it is possible to reduce the memory capacity needed to generate a histogram.
Here, the processing unit 134 assumes that the light emitted from the LD 131 on the basis of the first light emission command that is output at Step S300 is reflected by the mirror 122 that is arranged in an immediate vicinity of the LD 131, and assumes that the timing at which the reflected light is received by the pixels 10 included in the reference pixel area 121 is the light emission timing at which the LD 131 emits the light. If the processing unit 134 judges that the light source does not emit light (“No” at Step S301), the processing unit 134 returns the process to Step S301.
In contrast, if the processing unit 134 judges that the light source emits light at Step S301 (“Yes” at Step S301), the processing unit 134 proceeds to the process at Step S302. At Step S302, the processing unit 134 measures, as a first time period, a period of time between the timing at which the first light emission command is output at Step S300 and a time point at which the LD 131 emits light.
At subsequent Step S303, the processing unit 134 outputs the second light emission command to the LDD 130. At subsequent Step S304, the processing unit 134 judges whether the light is received by the pixels 10 included in the measurement pixel area 120. If the processing unit 134 judges that the light is not received (“No” at Step S304), the processing unit 134 returns the process to Step S304. In contrast, if the processing unit 134 judges that the light is received by the pixels 10 included in the measurement pixel area 120 at Step S304 (“Yes” at Step S304), the processing unit 134 proceeds to the process at Step S305.
At Step S305, the processing unit 134 measures a period of time, as a second time period, between the timing at which the second light emission command is output and a time point at which the light is received by the pixels 10 in the measurement pixel area 120 at Step S304.
At subsequent Step S306, the processing unit 134 generates a histogram on the basis of the timing at which the second light emission command is output and the second time period. At this time, the processing unit 134 generates a histogram on the basis of the second time period with respect to the timing at which the second light emission command is output by using, as the starting point, the timing at which the first time period that is measured at Step S302 has elapsed.
If the histogram is generated at Step S306, a series of processes indicated by the flowchart illustrated in
In the following, a first embodiment according to the present disclosure will be described. In the first embodiment, the time tst that indicates the light emission timing is detected on the basis of the signals Vpls that are output from the pixels 10 included in the reference pixel area 121. Then, the timing at which a histogram is started to be generated on the basis of the signal Vpls that is output from each of the pixels 10 included in the measurement pixel area 120 is delayed in accordance with the detected time tst. Consequently, the information on the bins that are included in the range 203 indicated by the histogram 200b illustrated in
The controller 150 outputs a light emission command at a predetermined light emission command timing (the time tcom). Furthermore, the controller 150 outputs a time count start command start almost at the same time as an output of the light emission command. The LDD 130 drives the LD 131 in accordance with the light emission command that is output from the controller 150. The LD 131 emits light at the time tst in accordance with the driving, and then, emits light that is laser light. The light emitted from the LD 131 irradiates the mirror 122 as, for example, reference light 51 and is then received by the pixel 10 included in the reference pixel area 121 as reflected light 52 that is reflected by the mirror 122. Here, the mirror 122, the LD 131, and the pixel 10 that is included in the reference pixel area 121 are arranged, as described above, such that the optical path length t to the point at which the pixel 10 included in the reference pixel area 121 is irradiated with the light emitted from the LD 131 via the mirror 122 is less than or equal to a predetermined length. This means that a period of time between a time point at which the light is emitted from the LD 131 and a time point at which the pixel 10 included in the reference pixel area 121 is irradiated with the light via the mirror 122 is less than or equal to the predetermined period of time. The period of time until the pixel 10 included in the reference pixel area 121 is irradiated with the light via the mirror 122 is ideally a zero time; however, in practice, it is desirable to set the time that is just about zero time. For example, the mirror 122 is arranged in the vicinity of the LD 131 such that the distance to the LD 131 is close to a zero distance to a maximum extent.
As an example, it is conceivable to set the optical path length to a distance such that a period of time for which the light emitted from the LD 131 irradiates the pixel 10 included in the reference pixel area 121 via the mirror 122 can be assumed as zero relative to a period of time for which the subject light is reflected by the supposed object to be measured 160 and irradiates the pixels 10 included in the measurement pixel area 120.
Furthermore, the mirror 122 may also use another waveguide means as long as the light emitted from the LD 131 can be guided to the pixel 10 included in the reference pixel area 121. For example, it is conceivable to use, instead of the mirror 122, a prism or an optical fiber.
The ranging apparatus 1a further includes a reference-side configuration in which a process is performed on the pixel 10 that is included in the reference pixel area 121 and a measurement-side configuration in which a process is performed on the pixels 10 that are included in the measurement pixel area 120.
The reference-side configuration includes a TDC 133ref, a histogram generating unit 140ref, a memory 141ref, a peak detecting unit 142ref, a peak register 143, and a delay unit 144. The TDC 133ref receives the time count start command start from the controller 150. Furthermore, the TDC 133ref receives an input of the signal Vpls that is output from the pixel 10 included in the reference pixel area 121. The TDC 133ref starts to count in accordance with the time based on the time count start command start received from the controller 150, stops the count in accordance with the signal Vpls that is received from the pixel 10 included in the reference pixel area 121, and delivers the clock time information indicated by the stopped count to the histogram generating unit 140ref.
The histogram generating unit 140ref classifies, on the basis of a histogram, the clock time information delivered from the TDC 133ref, and then, increments a value of each of the bins associated with the histogram. The data on the histogram generated by the histogram generating unit 140ref is stored in the memory 141ref.
A series of processes of outputting the light emission command to the LDD 130, emitting light in accordance with the light emission command performed by the LD 131, converting the signal Vpls to the clock time information performed by the TDC 133ref, incrementing the bin associated with the histogram on the basis of the clock time information performed by the histogram generating unit 140ref is repeated a predetermined number of times (for example, several thousands of times to several tens of thousands of times), and then, the generation of the histogram performed by the histogram generating unit 140ref has been completed.
If the generation of the histogram has been completed, the peak detecting unit 142ref reads the data on the histogram from the memory 141ref and detects the peak on the basis of the read data on the histogram. A peak detecting unit 142 delivers the information associated with the position (bin) of the detected peak on the histogram to the peak register 143. The peak register 143 stores therein the information delivered from the peak detecting unit 142.
Here, the information stored in the peak register 143 is information that indicates a period of time, for the detected peak, since the time tcom of the light emission command timing at which the light emission command is output. Namely, the information stored in the peak register 143 is information that indicates the time tst of the light emission timing at which the LD 131 emits light in accordance with the light emission command. More accurately, the time tst corresponds to a period of time (time t12-10) between a time point at which the light emission command is output (the time t10) and a time point at which the reference light 51 emitted by the LD 131 due to the light emission command is reflected by the mirror 122 and the reflected light 52 is received by the pixel 10 included in the reference pixel area 121 (the time t12).
The delay unit 144 reads, in accordance with the command output from the controller 150, information that indicates the time tst (hereinafter, simply referred to as the “time tst”) stored in the peak register 143.
The measurement-side configuration includes, on a one-to-one basis, TDCs 1331, 1332, 1333, and . . . , histogram generating units 1401, 1402, 1403, and . . . , and peak detecting units 1421, 1422, 1423, and . . . associated with the respective pixels 10 included in the measurement pixel area 120 in the pixel array unit 100. For example, the TDC 1331, the histogram generating unit 1401, and the peak detecting unit 1421 are associated with one of the pixels 10 included in the measurement pixel area 120.
In a similar manner, the TDC 1332, the histogram generating unit 1402, and the peak detecting unit 1422; and the TDC 1333, the histogram generating unit 1403, and the peak detecting unit 1423; and . . . are associated with the corresponding one of the pixels 10.
Similarly to the reference-side configuration described above, the controller 150 outputs the light emission command at a predetermined light emission command timing (the time tcom). Furthermore, the controller 150 outputs the time count start command start at the same time at which the light emission command is output. The LDD 130 drives the LD 131 in accordance with the light emission command that is output from the controller 150. The LD 131 emits light at the time tst in accordance with the driving, and then, ejects light that is laser light.
The light ejected from the LD 131 is ejected to the outside of the ranging apparatus 1a as, for example, measurement light 53, is reflected by, for example, the object to be measured 160, which is not illustrated, and is then received by each of the pixels 10 included in the measurement pixel area 120 as reflected light 54. In addition to the reflected light 54, ambient light is also received by each of the pixels 10 in the measurement pixel area 120.
In contrast, the time count start command start that is output from the controller 150 is supplied to the delay unit 144. If the time count start command start is supplied, the delay unit 144 reads, from the peak register 143, the time tst at which the LD 131 emits light in accordance with the light emission command. The delay unit 144 allows the time count start command start to be delayed in accordance with the time tst that is read from the peak register 143, and then, supplies the delayed time count start command start to each of the TDCs 1331, 1332, 1333, and . . . .
Consequently, each of the TDCs 1331, 1332, 1333, and . . . starts a count at the timing that is delayed by the time tst from the time tcom of the light emission command timing. Therefore, the signal Vpls that is output from each of the pixels 10 before the time tst is ignored by each of the TDCs 1331, 1332, 1333, and . . . .
The operation performed in each of the histogram generating units 1401, 1402, 1403, and . . . , and each of the peak detecting units 1421, 1422, 1423, and . . . is substantially the same as the operation performed in the histogram generating unit 140ref and the peak detecting unit 142ref included in the reference-side configuration described above.
Namely, if a description will be given by using, as an example, the histogram generating unit 1401 and the peak detecting unit 1421, the histogram generating unit 1401 classifies the clock time information delivered from the TDC 1331 in accordance with the histogram, and then, increments a value of each of the bins associated with the histogram. The data on the histogram generated by the histogram generating unit 1401 is stored in a memory 141. Furthermore, in the example illustrated in
A series of processes of outputting the light emission command to the LDD 130, emitting light in accordance with the light emission command performed by the LD 131, converting the signal Vpls to the clock time information performed by the TDC 1331, incrementing each of the bins associated with the histogram on the basis of the clock time information performed by the histogram generating unit 1401 is repeated a predetermined number of times (for example, several thousands of times to several tens of thousands of times) and the generation of the histogram performed by the histogram generating unit 1401 has been completed.
If the generation of the histogram has been completed, the peak detecting unit 1421 reads the data on the histogram generated by the histogram generating unit 1401 from the memory 141 and detects the peak on the basis of the read data on the histogram.
The peak detecting unit 1421 delivers the information that is associated with the position (bin) of the detected peak in the histogram to an arithmetic unit 145. The arithmetic unit 145 also receives a supply of the information that is associated with the position (bin) of the peak in the histogram and that is detected by the other peak detecting units 1422, 1423, and . . . . The arithmetic unit 145 calculates the distance D for each output of each of the pixels 10 on the basis of the information supplied from each of the peak detecting units 1421, 1422, 1423, and . . . .
(Specific Example of Ranging Process According to First Embodiment)
In
First, the process at Step S10 will be described. In Step S10, at Step S100, the controller 150 outputs the light emission command for allowing the LD 131 to emit light (the time tcom in
In the reference-side configuration, the TDC 133ref starts a count that is performed in accordance with the time according to the time count start command start supplied from the controller 150 at Step S101. In accordance with the start of the count, the generation of the histogram 200a′ is started in the histogram generating unit 140ref (the time thist_st ref in
The TDC 133ref stops the count in accordance with the signal Vpls that is input from the pixel 10 included in the reference pixel area 121 (Step S102). The TDC 133ref delivers the clock time information indicated by the count that is stopped at Step S103 to the histogram generating unit 140ref. The histogram generating unit 140ref increments the value of each of the bins that are associated with the time information delivered from the TDC 133ref by 1 and that are included in the histogram stored in the memory 141ref, and then, updates the histogram (Step S103).
At subsequent Step S104, the controller 150 judges whether the processes at Step S100 to Step S103 have been completed by a predetermined number of times (for example, several thousands of times to several tens of thousands of times). If the controller 150 judges that the processes are not completed (“No” at Step S104), the controller 150 returns the process to Step S100. In contrast, if the controller 150 judges that a processes at Step S100 to Step S103 have been completed by a predetermined number of times (“Yes” at Step S104), the controller 150 proceeds the process to Step S105.
At Step S105, in the reference-side configuration, the peak detecting unit 142ref detects the peak position of the frequency on the basis of the histogram generated by the histogram generating unit 140ref at the processes performed at Step S100 to Step S104. At subsequent Step S106, the peak detecting unit 142ref allows the peak register 143 to store the information that indicates the time associated with the peak position detected at Step S105 as the delay time tdly. The delay time tdly is associated with the time t12-10 described above with reference to
In the process performed at Step S10, as indicated by the histogram 200a′ illustrated in
If the process at Step S106 has been ended, the process at the Step S10 has been completed, and then, the process proceeds to Step S11. In Step S11, at Step S107, the controller 150 outputs the light emission command for allowing the LD 131 to emit light (the time tcom in
At subsequent Step S108, the controller 150 outputs the time count start command start to the TDCs 1331, 1332, 1333, and . . . associated with the respective pixels 10 included in the measurement pixel area 120. At this time, the controller 150 outputs the time count start command start by delaying the time tcom of the light emission command timing by the delay time tdly stored in the peak register 143 at Step S106. The time count start command start, in which the time tcom is delayed by the delay time tdly, is supplied to each of the TDCs 1331, 1332, 1333, and . . . associated with the corresponding pixels 10 included in the measurement pixel area 120.
Furthermore, in accordance with the start of the count, in the histogram generating units TDC 1401, 1402, 1403, and . . . associated with the TDCs 1331, 1332, 1333, and . . . , respectively, on a one-to-one basis, the generation of each of the histograms 200c is started (the time thist_st in the histogram 200c illustrated in
Each of the TDCs 1331, 1332, 1333, and . . . stops the associated counts in accordance with the associated signals Vpls that are input from the associated pixels 10 included in the measurement pixel area 120 (Step S109). Each of the TDCs 1331, 1332, 1333, and . . . delivers the clock time information indicated by the count that is stopped at Step S109 to the associated histogram generating units 1401, 1402, 1403, and . . . that are associated with, one to one, the TDCs 1331, 1332, 1333, and . . . . Each of the histogram generating units 1401, 1402, 1403, and . . . increments the value of each of the bins that are associated with the time information delivered from the respective TDCs 1331, 1332, 1333, and . . . and that are associated with the respective histograms stored in the memory 141 by 1, and then, updates each of the histograms (Step S110).
At subsequent Step S111, the controller 150 judges whether the processes at Step S107 to Step S110 have been ended by a predetermined number of times (for example, several thousands of times to several tens of thousands of times). If the controller 150 judges that the process have not been ended (“No” at Step S111), the controller 150 returns the process to Step S107. In contrast, if the controller 150 judges that the processes at Step S107 to Step S110 have been ended by a predetermined number of times (“Yes” at Step S111), the controller 150 proceeds the process to Step S112.
At Step S112, each of the peak detecting units 1421, 1422, 1423, and . . . detects, on the basis of each of the histograms 200c generated by the associated with histogram generating units 1401, 1402, 1403, and . . . performed by the processes at Step S107 to Step S111, the time tpk that is associated with the position of the peak 202 of the frequency. The time tpk is a period of time between the time thist_st and a time point of the position of the peak 202 and is the time obtained by subtracting the delay time tdly from the time t at the position of the peak 202 from the time tcom.
At subsequent Step S113, each of the peak detecting units 1421, 1422, 1423, and . . . outputs each of the corresponding pieces of the time tpk that is associated with, one to one, the detected peak positions as the measurement result of the ranging. Each of the pieces of the time tpk that are output from the associated peak detecting units 1421, 1422, 1423, and . . . is supplied to the arithmetic unit 145. The arithmetic unit 145 calculates each of the distances D associated with the respective pixels 10 included in the measurement pixel area 120 by using the time thist_st as the time t0 represented in Equation (1) described above and using each of the pieces of the time tpk as the time t1 represented in Equation (1).
In this way, in the first embodiment, the time tst at which the LD 131 emits light is measured on the basis of the signal Vpls that is output from the pixel 10 included in the reference pixel area 121. Then, in the ranging process performed on the basis of the signal Vpls that is output from each of the pixels 10 included in the measurement pixel area 120, the generation of the histogram is started by delaying the time tcom by the time tst (=the delay time tdly) that is measured on the basis of the output of the pixel 10 included in the reference pixel area 121. Accordingly, in the memory 141 that stores therein the data on the histogram with respect each of the pixels 10 included in the measurement pixel area 120, there is no need to store the data related to the period of time between the time tcom and the time tst, and it is thus possible to reduce the capacity of the memory 141.
(Example of Performing Ranging Process in Units of Frames)
In the following, an example of a case in which the ranging process according to the first embodiment is performed in units of frame will be described.
The process at Step S101 includes repetition processes performed at Step S100 to Step S104 indicated by flowchart illustrated in
Similarly, the process at Step 111 includes repetition processes performed at Step S107 to Step S111 indicated by the flowchart illustrated in
Here, in the process on each of the frames of the frames #1, #2, #3, and . . . , the process at Step 111 is performed by using the delay time tdly that is obtained in the immediately before frame performed at Step S102. More specifically, by using the delay time tdly in the frame #1 obtained at Step S102, the process at Step 111 is performed in the subsequent frame #2. Furthermore, in the frame #2, the processes at Step S101 and Step S102 are performed in parallel with the processes at Step S111 and Step S112.
Similarly, by using the delay time tdly that is obtained in the frame #2 performed at Step S102, the process at Step S111 is performed in the subsequent frame #3. Furthermore, in the frame #3, the processes at Step S101 and Step S102 are performed in parallel with the processes at Step S111 and Step S112.
In this way, in the first embodiment, in each of the frames, by using the delay time tdly that is obtained in the frame immediately before, the processes at Step S111 and Step S112 are performed, and furthermore, the process at Step S101 and Step S102 for obtaining the delay time tdly that is used in the subsequent frame is performed.
In the following, a second embodiment according to the present disclosure will be described. In the second embodiment, similarly to the first embodiment described above, the time tst that indicates the light emission timing is detected on the basis of the signal Vpls that is output from the pixel 10 included in the reference pixel area 121. A histogram is generated in each of the histogram generating units 1401, 1402, 1403, and . . . on the basis of the signal Vpls that is output each of the pixels 10 included in the measurement pixel area 120, by using the time obtained by subtracting the time tst from each time t that is converted by each of the TDCs 1331, 1332, 1333, and . . . . Consequently, the information on the bins included in the range 203 indicated by the histogram 200b illustrated in
In the reference-side configuration, the TDC 133ref starts a count that is in accordance with the time based on the time count start command start received from the controller 150. The TDC 133ref stops the count in accordance with the signal Vpls that is input from the pixel 10 included in the reference pixel area 121 and delivers the clock time information indicated by the stopped count to the histogram generating unit 140ref. The histogram generating unit 140ref increments the value of each of the bins in the histogram on the basis of the clock time information that is delivered from the TDC 133ref, and then, stores the updated data on the histogram in the memory 141ref.
A series of processes of outputting the light emission command to the LDD 130, emitting light performed in accordance with the light emission command by the LD 131, converting the signal Vpls to the clock time information performed by the TDC 133ref, incrementing the bins included in the histogram on the basis of the clock time information performed by the histogram generating unit 140ref is repeated a predetermined number of times and the generation of the histogram performed by the histogram generating unit 140ref has been completed.
When the generation of the histogram has been completed, the peak detecting unit 142ref reads the data on the histogram from the memory 141ref and detects the peak on the basis of the read data on the histogram. The peak detecting unit 142 delivers the information associated with the position (bin) of the detected peak in the histogram to the peak register 143. The peak register 143 stores the information delivered from the peak detecting unit 142. Here, similarly to the case described in the first embodiment, the information stored in the peak register 143 is the time tst that indicates the light emission timing at which the LD 131 emits light and that is obtained by detecting the peak performed by the peak detecting unit 142ref.
In contrast, in the ranging apparatus 1b illustrated in
The time tst that is stored in the peak register 143 is input to each of the subtraction input ends of the associated subtracter 1461, 1462, 1463, and . . . .
For example, the TDC 1331 inputs, to the subtracted input end of the subtracter 1461, the clock time information (defined as the time t100) that is obtained by converting the signal Vpls supplied from the associated pixel 10 included in the measurement pixel area 120. The subtracter 1461 subtracts the time tst, which is input to the subtraction input end, from the time t, which is input to the subtracted input end, and then, outputs the time (t110−tst) that is the subtraction result. The time (t110−tst) is supplied to the histogram generating unit 1401.
The operation of the TDC 1331 is the same in the other TDCs 1332, 1333, and . . . that are associated with the respective pixels 10 included in the measurement pixel area 120.
Namely, for example, the TDC 1332 and 1333 inputs, to the subtracted input end of each of the subtracter 1462 and 1463, the clock time information (defined as the time t101 and t102) obtained by converting each of the signals Vpls supplied from the associated pixels 10 included in the measurement pixel area 120. Each of the subtracter 1462 and 1463 subtracts the time tst, which is input to the subtraction input end, from the time tin and t102, which are input to the respective subtracted input ends, and then, outputs the time (t101−tst) and the time (t102−tst) that are the respective subtraction results. The time (t101−tst) and the time (t102−tst are supplied to the histogram generating units 1402 and 1403, respectively.
The operation of each of the histogram generating units 1401, 1402, 1403, and . . . , and each of the peak detecting units 1421, 1422, 1423, and . . . is the same as the operation of each of the histogram generating units 1401, 1402, 1403, and . . . , and each of the peak detecting units 1421, 1422, 1423, and . . . described above with reference to
Each of the peak detecting units 1421, 1422, 1423, and . . . delivers the information that is associated with the position (bin) of the detected peak of the histogram to the arithmetic unit 145. The arithmetic unit 145 calculates the distance D for each output of the corresponding pixels 10 on the basis of the information supplied from each of the peak detecting units 1421, 1422, 1423, and . . . .
(More Specific Example of Ranging Process According to Second Embodiment)
In
In each of the processes indicated by the flowchart illustrated in
Namely, in Step S20, at Step S200, the controller 150 outputs the light emission command for allowing the LD 131 to emit light (the time tcom in the histogram 200a′ in
The TDC 133ref starts a count that is performed in accordance with the time on the basis of the time count start command start, and then, generation of the histogram 200a′ is started in the histogram generating unit 140ref (the time thist_st ref in the histogram 200a′ in
The TDC 133ref stops the count in accordance with the signal Vpls that is input from the pixel 10 included in the reference pixel area 121 (Step S202). The TDC 133ref delivers the clock time information indicated by the count that is stopped at Step S203 to the histogram generating unit 140ref. The histogram generating unit 140ref increments the value of the bin that is associated with the time information delivered from the TDC 133ref by 1 in the histogram stored in the memory 141ref, and then, updates the histogram (Step S203).
At subsequent Step S204, the controller 150 judges whether the processes at Step S200 to Step S203 have been ended a predetermined number of times (for example, several thousands of times to several tens of thousands of times). If the controller 150 judges that the processes have not been ended (“No” at Step S204), the controller 150 returns the process to Step S200. In contrast, if the controller 150 judges that the processes at Step S200 to Step S203 have been ended a predetermined number of times (“Yes” at Step S204), the controller 150 proceeds the process to Step S205.
At Step S205, the peak detecting unit 142ref detects the peak position of the frequency on the basis of the histogram generated from the processes performed at Step S200 to Step S204 by the histogram generating unit 140ref. The peak position detected here is the time tst of the light emission timing at which the LD 131 emits light. At subsequent Step S206, the peak detecting unit 142ref allows the peak register 143 to store the time tst that is detected at Step S205. The time tst corresponds to the time t12-10 described above with reference to
If the process at Step S206 is ended, the process at Step S20 has been completed, and the process proceeds to Step S21. In Step S21, at Step S207, the controller 150 outputs the light emission command for allowing the LD 131 to emit light (the time tcom in a histogram 200d in
At subsequent Step S208, the controller 150 outputs the time count start command start to each of the TDCs 1331, 1332, 1333, and . . . that are associated with the respective pixels 10 included in the measurement pixel area 120. The time count start command start is output at substantially the same time as the process of outputting the light emission command performed at Step S207. Each of the TDCs 1331, 1332, 1333, and . . . stops the count in accordance with each of the signals Vpls that are input, on a one-to-one basis, from the respective pixels 10 included in the measurement pixel area 120 (Step S209).
The TDCs 1331, 1332, 1333, and . . . outputs the time t100, t101, t102, and . . . , respectively, that are the clock time information indicated by the count that is stopped at Step S209. The time t100, t101, t102, and . . . that are output from the TDCs 1331, 1332, 1333, and . . . , respectively, is input to the respective subtracted input ends of the subtracter 1461, 1462, 1463, and . . . that are associated with, on a one-to-one basis, the TDCs 1331, 1332, 1333, and . . . .
Here, the time tst that is stored in the peak register 143 is input to each of the subtraction input ends of the subtracter 1461, 1462, 1463, and . . . . Each of the subtracter 1461, 1462, 1463, and . . . performs a subtraction process of subtracting the time tst that is input to the associated subtraction input ends from the respective time t100, t101, t102, and . . . that are input to the respective subtracted input ends (Step S210). Each of the subtracter 1461, 1462, 1463, and . . . outputs the time (t100−tst), the time (t101−tst), and the time (t102−tst), respectively, that are the respective subtraction results. The time (t110−tst), the time (t101−tst), and the time (t102−tst) are supplied to the histogram generating units 1401, 1402, and 1403, respectively.
At subsequent Step S211, each of the histogram generating units 1401, 1402, 1403, and . . . updates the histograms on the basis of the time (t100−tst), the time (t101−tst), and the time (t102−tst). Namely, each of the histogram generating units 1401, 1402, 1403, and . . . increments the value of the bin associated with each of the time (t100−tst), time (t101−tst), and the time (t101−tst) that are output from the subtracter 1461, 1462, 1463, and . . . , respectively, by 1 in each of the associated histograms stored in the memory 141, and then, updates each of the histograms.
Furthermore, in
As an example, in a case of the histogram generating unit 1401 as an example, if the time t100 that is output from the associated TDC 1331 matches the time indicated by the time tst, the subtraction result that is output from the associated subtracter 1461 indicates time tst−time tst=0. In contrast, the controller 150 outputs the time count start command start to the TDC 1331 at substantially the same time as the light emission command performed at Step S20.
Even if the signal Vpls is input from the associated pixel 10 before the time tst at which an input is received by the subtraction input end of the subtracter 1461, the TDC 1331 stops the count and outputs the time tx that indicates the subject clock time. If the time tx is input to the subtracted input end of the subtracter 1461, the subtraction result of the subtracter 1461 indicates a negative value. However, at this time, if the bin that is associated with the negative value is set to be undefined in the histogram that is generated by the histogram generating unit 1401, the subtraction result indicating the negative value is ignored by the histogram generating unit 1401.
Therefore, the histogram generating unit 1401 generates a histogram by setting the time tst, which is stored at Step S206 in the peak register 143, as the starting point. In this case, this corresponds to the case in which the histogram generating unit 1401 generates the histogram 200d that is started from the time histst that is delayed by the time tst.
Furthermore, the histogram 200d is generated by each of the histogram generating units 1401, 1402, 1403, and . . . regarding each of the pixels 10 included in the measurement pixel area 120 on a one-to-one basis.
At subsequent Step S212, the controller 150 judges whether the processes at Step S207 to Step S211 have been ended a predetermined number of times (for example, several thousands of times to several tens of thousands of times). If the controller 150 judges that the processes have not been ended (“No” at Step S212), the controller 150 returns the process to Step S207. In contrast, if the controller 150 judges that the processes at Step S207 to Step S211 have been ended a predetermined number of times (“Yes” at Step S212), the controller 150 proceeds the process to Step S213.
At Step S213, each of the peak detecting units 1421, 1422, 1423, and . . . detects the time tpk that is associated with the position of the peak 202 of the frequency on the basis of each of the histograms 200d generated by the histogram generating units 1401, 1402, 1403, and . . . associated with the processes at Step S207 to Step S212. The time tpk is the period of time from the time tcom to the peak 202. Accordingly, for example, each of the peak detecting units 1421, 1422, 1423, and . . . outputs, as the measurement result of the ranging, the time (tpk−tst) obtained by subtracting the time tst that is detected as the light emission timing of the LD 131 from each of the time tpk acquired at Step S214.
Each of the time (tpk−tst) output from the corresponding peak detecting units 1421, 1422, 1423, and . . . is supplied to the arithmetic unit 145. The arithmetic unit 145 calculates each of the distances D associated with the corresponding pixels 10 included in the measurement pixel area 120 by using the time [0] as the time t0 represented in Equation (1) described above and using each of the time (tpk−tst) as the time t1 represented in Equation (1) described above.
In this way, in the second embodiment, the time tst at which the LD 131 emits light is measured on the basis of the signal Vpls that is output from the pixel 10 included in the reference pixel area 121. Then, in the ranging process performed on the basis of the signal Vpls that is output from each of the pixels 10 included in the measurement pixel area 120, a histogram is generated by using the time obtained by subtracting the time tst at which the LD 131 emits light from the time tpk that is based on an output of each of the pixels 10 included in the measurement pixel area 120. Accordingly, in the memory 141 that stores therein the data on the histogram associated with each of the pixels 10 included in the measurement pixel area 120, there is no need to store the data obtained in a period of time between the time tcom and the time tst, and it is thus possible to reduce the capacity of the memory 141.
Furthermore, in also the ranging apparatus 1b according to the second embodiment, the example that is described with reference to
In the following, as a third embodiment according to the present disclosure, an example of application of the first embodiment and the second embodiment according to the present disclosure will be described.
The ranging apparatuses 1a and 1b described above are applicable to various cases in which, for example, light, such as visible light, infrared light, ultraviolet light, and X-ray, is sensed as described below.
[Additional Application Example of Technique According to Present Disclosure] (Example of Application to Movable Body)
The technique according to the present disclosure may further be applied to a device that is mounted on various movable bodies, such as a vehicle, an electric vehicle, a hybrid electric vehicle, an automatic two-wheel vehicle, a bicycle, a personal mobility, an airplane, a drone, boats and ships, and a robot.
A vehicle control system 12000 includes a plurality of electronic control units that are connected to each another via a communication network 12001. In the example illustrated in
The driving system control unit 12010 controls operation of devices related to a driving system of a vehicle in accordance with various programs. For example, the driving system control unit 12010 functions as a control device for a driving force generation device, such as an internal combustion engine or a driving motor, that generates a driving force of the vehicle, a driving force transmission mechanism for transmitting the driving force to wheels, a steering mechanism for adjusting a rudder angle of the vehicle, and a braking device that generates a braking force of the vehicle.
The body system control unit 12020 controls operation of various devices mounted on a vehicle body in accordance with various programs. For example, the body system control unit 12020 functions as a control device for a keyless entry system, a smart key system, a power window device, and various lamps, such as a head lamp, a back lamp, a brake lamp, a direction indicator, and a fog lamp. In this case, radio waves transmitted from a mobile terminal that is used as a substitute for a key or signals from various switches may be input to the body system control unit 12020. The body system control unit 12020 receives input of the radio waves or the signals, and controls a door lock device, a power window device, lamps, and the like of the vehicle.
A vehicle exterior information detecting unit 12030 detects information on the outside of the vehicle on which the vehicle control system 12000 is mounted. For example, an imaging unit 12031 is connected to the vehicle exterior information detecting unit 12030. The vehicle exterior information detecting unit 12030 allows the imaging unit 12031 to capture an image of the outside of the vehicle, and receives the captured image. The vehicle exterior information detecting unit 12030 may perform an object detection process or a distance detection process on a person, a vehicle, an obstacle, a sign, or characters on a road, on the basis of the received image. For example, the vehicle exterior information detecting unit 12030 performs image processing on the received image, and performs the object detection process or the distance detection process on the basis of a result of the image processing.
The imaging unit 12031 is an optical sensor that receives light and outputs an electrical signal corresponding to intensity of the received light. The imaging unit 12031 is also able to output the electrical signal as an image or information on a measured distance. Furthermore, the light that is received by the imaging unit 12031 may also be visible light or non-visible light, such as infrared light.
The vehicle interior information detecting unit 12040 detects information on the inside of the vehicle. For example, a driver state detecting unit 12041 that detects a state of a driver is connected to the vehicle interior information detecting unit 12040. The driver state detecting unit 12041 includes a camera that captures an image of the driver for example, and the vehicle interior information detecting unit 12040 may also calculate a degree of fatigue or a degree of concentration of the driver or may also determine whether the driver is sleeping on the basis of detection information that is input from the driver state detecting unit 12041.
The microcomputer 12051 is able to calculate a control target value of the driving force generation device, the steering mechanism, or the braking device on the basis of the information on the outside or the inside of the vehicle that is acquired by the vehicle exterior information detecting unit 12030 or the vehicle interior information detecting unit 12040, and issue a control command to the driving system control unit 12010. For example, the microcomputer 12051 is able to perform cooperation control to realize an advance driver assistance system (ADAS) function including vehicle crash avoidance, vehicle impact relaxation, following traveling on the basis of an inter-vehicular distance, vehicle crash warning, or vehicle lane deviation warning.
Furthermore, the microcomputer 12051 is able to perform cooperation control aiming at automatic driving in which a vehicle autonomously travels independent of operation of a driver for example, by controlling the driving force generation device, the steering mechanism, the braking device, or the like on the basis of information on the surroundings of the vehicle that is acquired by the vehicle exterior information detecting unit 12030 or the vehicle interior information detecting unit 12040.
Furthermore, the microcomputer 12051 is able to output a control command to the body system control unit 12020 on the basis of the information on the outside of the vehicle that is acquired by the vehicle exterior information detecting unit 12030. For example, the microcomputer 12051 is able to control the head lamp in accordance with a position of a preceding vehicle or an oncoming vehicle detected by the vehicle exterior information detecting unit 12030, and is able to perform cooperation control to implement anti-glare, such as switching from high beam to low beam.
The voice image output unit 12052 transmits an output signal of at least one of voice and an image to an output device capable of visually or aurally information to a passenger of the vehicle or to the outside of the vehicle. In the example in
The imaging units 12101, 12102, 12103, 12104, and 12105 are arranged at positions of, for example, a front nose, side mirrors, a rear bumper, a back door, or an upper part of a windshield inside the vehicle, and the like of the vehicle 12100. The imaging unit 12101 mounted on the front nose and the imaging unit 12105 mounted on the upper part of the windshield inside the vehicle mainly acquire images of the front of the vehicle 12100. The imaging units 12102 and 12103 mounted on the side mirrors mainly acquire images of the sides of the vehicle 12100. The imaging unit 12104 mounted on the rear bumper or the back door mainly acquires an image of the rear of the vehicle 12100. The front image acquired by the imaging units 12101 and 12105 is mainly used to detect a preceding vehicle, a pedestrian, an obstacle, a traffic signal, a traffic sign, a traffic lane, or the like.
Furthermore,
At least one of the imaging units 12101 to 12104 may also have a function to acquire distance information. For example, at least one of the imaging units 12101 to 12104 may be a stereo camera including a plurality of imaging elements, or may be an imaging element including a pixel for detecting a phase difference.
For example, by obtaining a distance to each of stereoscopic objects in the imaging ranges 12111 to 12114 and obtaining a temporal change in the distance (relative speed with respect to the vehicle 12100) on the basis of the distance information obtained from the imaging units 12101 to 12104, the microcomputer 12051 is able to particularly detect, as a preceding vehicle, a stereoscopic object that is located closest to the vehicle 12100 on a road on which the vehicle 12100 travels and that travels at a predetermined speed (for example, 0 km/h or higher) in approximately the same direction as the vehicle 12100. Furthermore, the microcomputer 12051 is able to set, in advance, an inter-vehicular distance that needs to be ensured on the near side of the preceding vehicle, and perform automatic braking control (including following stop control), automatic acceleration control (including following starting control), and the like. In this way, it is possible to perform cooperation control aiming at automatic driving or the like in which running is autonomously performed independent of operation of a driver.
For example, the microcomputer 12051 is able to classify and extract stereoscopic object data related to a stereoscopic object as a two-wheel vehicle, a normal vehicle, a heavy vehicle, a pedestrian, or other stereoscopic objects, such as a power pole, on the basis of the distance information obtained from the imaging units 12101 to 12104, and use the stereoscopic object data to automatically avoid an obstacle. For example, the microcomputer 12051 identifies an obstacle around the vehicle 12100 as an obstacle that can be viewed by the driver of the vehicle 12100 or an obstacle that can hardly be viewed by the driver. Then, the microcomputer 12051 determines a crash risk indicating a degree of risk of crash with each of objects, and if the crash risk is equal to or larger than a set value and there is the possibility that crash occurs, it is possible to support driving to avoid crash by outputting an alarm to the driver via the audio speaker 12061 or the display unit 12062 or performing forcible deceleration or avoidance steering via the driving system control unit 12010.
At least one of the imaging units 12101 to 12104 may also be an infrared camera that detects infrared light. For example, the microcomputer 12051 is able to recognize a pedestrian by determining whether a pedestrian is present in the captured images of the imaging units 12101 to 12104. The pedestrian recognition described above is performed by, for example, a process of extracting feature points in the captured images of the imaging units 12101 to 12104 that serve as the infrared cameras and a process of performing pattern matching on a series of feature points representing a contour of an object to determine whether the object is a pedestrian. If the microcomputer 12051 determines that a pedestrian is present in the captured images of the imaging units 12101 to 12104 and recognizes the pedestrian, the voice image output unit 12052 causes the display unit 12062 to display a rectangular contour line for enhancing the recognized pedestrian in a superimposed manner. Furthermore, the voice image output unit 12052 may also cause the display unit 12062 to display an icon or the like that represents the pedestrian at a desired position.
In the above, an example of the vehicle control system to which the technique according to the present disclosure is applicable has been described. The technique according to the present disclosure is applicable to, for example, the imaging unit 12031 in the configuration described above. Specifically, the ranging apparatus 1a according to the first embodiment described above and the ranging apparatus 1b according to the second embodiment described above are applicable to the imaging unit 12031. By applying the technique according to the present disclosure to the imaging unit 12031, it is possible to reduce the capacity of the memory that stores therein a histogram used for ranging.
Furthermore, the effects described in this specification are only exemplified and are not limited, and other effects may also be possible.
Furthermore, the present technology can also be configured as follows.
(1) A measurement apparatus comprising:
a first pixel;
a light source;
a control unit that controls emission of light emitted from the light source by generating light emission commands that allow the light source to emit light;
a first measuring unit that measures a first time period between a first light emission command timing at which the control unit generates a first light emission command out of the light emission commands and a light emission timing at which the light source emits light in accordance with the first light emission command;
a second measuring unit that measures a second time period between a second light emission command timing at which the control unit generates a second light emission command out of the light emission commands and a time at which the light is received by the first pixel; and
a generating unit that generates a histogram on the basis of the second time period that is measured by the second measuring unit, wherein
the generating unit generates the histogram of which a starting point is a time when the first period elapses from the second light emission command.
(2) The measurement apparatus according to the above (1), wherein the generating unit generates the histogram on the basis of the time obtained by subtracting the first time period from the second time period.
(3) The measurement apparatus according to the above (1), wherein the generating unit generates the histogram of which a starting point is a time that is delayed by the first period from the second light emission command.
(4) The measurement apparatus according to any one of the above (1) to (3), wherein
the first measuring unit performs measurement of the first time period in units of frames, and
the second measuring unit further performs measurement of the second time period in the frame.
(5) The measurement apparatus according to the above (4), wherein the generating unit starts to generate the histogram in a first frame from among the frames on the basis of the first time period that is measured, by the first measuring unit, in a second frame that is located immediately before the first frame from among the frames.
(6) The measurement apparatus according to any one of the above (1) to (5), further comprising:
a second pixel; and
a waveguide unit that guides the light emitted by the light source to the second pixel, wherein
the first measuring unit measures, as the first time period, a time period between the first light emission command timing and a time at which the light emitted from the light source is received by the second pixel via the waveguide unit due to the first light emission command related to the first light emission command timing.
(7) The measurement apparatus according to the above (6), wherein the waveguide unit is a mirror that reflects light and is arranged at a position close to the light source and the second pixel such that a period of time until the light emitted from the light source is received by the second pixel via the waveguide unit is less than or equal to a predetermined period of time.
(8) A ranging apparatus comprising:
a first pixel;
a light source;
a control unit that controls emission of light emitted from the light source by generating light emission commands that allow the light source to emit light;
a first measuring unit that measures a first time period between a first light emission command timing at which the control unit generates a first light emission command out of the light emission commands and a light emission timing at which the light source emits light in accordance with the first light emission command;
a second measuring unit that measures a second time period between a second light emission command timing at which the control unit generates a second light emission command out of the light emission commands and a time at which the light is received by the first pixel;
a generating unit that generates a histogram on the basis of the second time period measured by the second measuring unit; and
an arithmetic unit that performs an arithmetic operation of calculating a distance to an object to be measured on the basis of the histogram, wherein
the generating unit generates the histogram of which a starting point is a time when the first period elapses from the second light emission command.
(9) The ranging apparatus according to the above (8), wherein the generating unit generates the histogram on the basis of the time obtained by subtracting the first time period from the second time period.
(10) The ranging apparatus according to the above (8), wherein the generating unit starts to generate the histogram by setting, as the starting point of the second light emission command timing, a timing that is delayed by the first time period.
(11) The ranging apparatus according to any one of the above (8) to (10), wherein
the first measuring unit performs measurement of the first time period in units of frames, and
the second measuring unit further performs measurement of the second time period in the frame.
(12) The ranging apparatus according to the above (11), wherein the generating unit starts to generate the histogram in a first frame from among the frames on the basis of the first time period that is measured, by the first measuring unit, in a second frame that is located immediately before the first frame from among the frames.
(13) The ranging apparatus according to any one of the above (8) to (12), further comprising:
a second pixel; and
a waveguide unit that guides the light emitted by the light source to the second pixel, wherein
the first measuring unit measures, as the first time period, a time period between the first light emission command timing the a time at which the light emitted from the light source is received by the second pixel via the waveguide unit due to the first light emission command related to the first light emission command timing.
(14) The ranging apparatus according to the above (13), wherein the waveguide unit is a mirror that reflects light and is arranged at a position close to light source and the second pixel such that a period of time until the light emitted from the light source is received by the second pixel via the waveguide unit is less than or equal to a predetermined period of time.
(15) A measurement method comprising:
a first measuring step of measuring a first time period between a first light emission command timing at which a control unit, which controls emission of light emitted from a light source by generating light emission commands that allow the light source to emit light, generates a first light emission command out of the light emission commands and a light emission timing at which the light source emits light in accordance with the first light emission command;
a second measuring step of measuring a second time period between a second light emission command timing at which the control unit generates a second light emission command out of the light emission commands and a time at which the light is received by a first pixel; and
a generating step of generating a histogram on the basis of the second time period that is measured at the second measuring step, wherein
the generating step includes generating the histogram of which a starting point is a time when the first period elapses from the second light emission command.
Number | Date | Country | Kind |
---|---|---|---|
2019-034683 | Feb 2019 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/006378 | 2/18/2020 | WO | 00 |