Distance measurement method, distance measurement device, and program recording medium

By measuring the illumination of the background light and setting an appropriate ranging range, and utilizing the emission conditions of multiple APDs and light sources, the problem of distance measurement under background light interference is solved, and accurate distance measurement under different lighting conditions is achieved.

CN113614566BActive Publication Date: 2024-09-10PANASONIC INTELLECTUAL PROPERTY MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080022948.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-27
Filing Date
2020-03-19
Publication Date
2024-09-10
Estimated Expiration
2040-03-19

AI Technical Summary

Technical Problem

It is difficult for existing distance measuring devices to accurately detect reflected light when the background light is strong, resulting in the inability to measure the distance of an object.

Method used

By measuring the illumination of the background light, setting an appropriate distance measurement range, and using the emission conditions of multiple APDs and light sources, the camera unit and light source are controlled to achieve distance measurement.

Benefits of technology

It effectively solves the problem of distance measurement under background light interference, improves the accuracy and reliability of distance measurement, and can appropriately measure distance under different lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113614566B_ABST
    Figure CN113614566B_ABST
Patent Text Reader

Abstract

The distance measurement method involved in the present disclosure includes the following steps: measuring the illumination of the background light in an environment where the object is irradiated with background light (step S300); setting the distance measurement range based on the illumination of the background light (step S310); setting the imaging conditions of the imaging unit including multiple pixels each having an APD (Avalanche Photo Diode) and the emission conditions of the light source based on the set distance measurement range (step S320); and measuring the distance to the object by controlling the imaging unit and the light source based on the set imaging conditions and emission conditions (step S330).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to a distance measurement method, a distance measurement device, and a program recording medium. Background Art

[0002] Conventionally, there is a distance measuring device that uses light such as near-infrared light to measure the distance to a target object (for example, refer to Patent Document 1).

[0003] The radar device as a distance measuring device described in Patent Document 1 comprises: a laser diode for irradiating an object with irradiation light; a first light receiving circuit and a second light receiving circuit for converting the incident reflected light into a signal, which is light obtained by reflecting the irradiation light on the object; and a CPU (Central Processing Unit). In addition, the CPU generates a composite signal based on two signals respectively output from the two light receiving circuits, so that the range of the light quantity value that can be output in the signal proportional to the light quantity value of the incident reflected light, that is, the active area (energy field) is wider than the original two signals.

[0004] In this way, in the existing distance measuring device, even the reflected light with a wide dynamic range can measure the correct distance. In addition, in the existing distance measuring device, APD (Avalanche Photo Diode) is used in one of the two light receiving circuits. APD is a photodiode that improves the light detection sensitivity by multiplying the charge generated by the photoelectric conversion of light incident on the photoelectric conversion layer by avalanche breakdown (i.e., avalanche multiplication). According to the APD, even if low-brightness reflected light is incident, a signal proportional to the amount of light of the reflected light can be output from the light receiving circuit.

[0005] Prior art literature

[0006] Patent Literature

[0007] Patent Document 1: Japanese Patent Application Publication No. 2008-20203 Summary of the invention

[0008] Problems to be solved by the invention

[0009] In the past, in order to detect reflected light with high accuracy, there was a technology that used external light such as sunlight, i.e., background light, to correct the amount of light incident on the light receiving circuit. Here, for example, when the background light is sunlight, the amount of background light varies depending on the time of day or the weather. If the amount of background light varies, the difference between the amount of reflected light and the amount of background light becomes too small, and the reflected light cannot be detected depending on the situation. In the existing distance measuring device, there is a problem of calculating the distance that cannot be measured based on the amount of background light.

[0010] The present disclosure provides a distance measurement method and the like that can appropriately measure a distance.

[0011] Means for solving problems

[0012] A distance measurement method according to one embodiment of the present invention includes the following steps: measuring the illumination of background light in an environment where an object is irradiated with background light; setting a distance measurement range based on the illumination of the background light; setting, based on the set distance measurement range, imaging conditions of an imaging unit including a plurality of pixels each having an APD (Avalanche Photo Diode) and emission conditions for emitting light from a light source; and measuring the distance to the object by controlling the imaging unit and the light source based on the set imaging conditions and emission conditions.

[0013] In addition, a distance measuring device involved in one embodiment of the present invention includes: a photometric unit, which measures the illumination of the background light in an environment where the object is irradiated with background light; a calculation unit, which sets the distance measuring range based on the illumination of the background light; and a control unit, which sets the imaging conditions of the imaging unit including a plurality of pixels each having an APD (Avalanche PhotoDiode) and the emission conditions of the light emitted from the light source based on the set distance measuring range, and measures the distance to the object by controlling the imaging unit and the light source based on the set imaging conditions and the emission conditions.

[0014] In addition, the present disclosure may also be implemented as a program recording medium that causes a computer to execute the steps contained in the above-mentioned ranging method. In addition, the present disclosure may also be implemented as a non-temporary recording medium such as a CD-ROM that records the program and can be read by a computer. In addition, the present disclosure may also be implemented as information, data or signals representing the program. Furthermore, these programs, information, data and signals may also be released via a communication network such as the Internet.

[0015] Effects of the Invention

[0016] According to the present disclosure, it is possible to provide a distance measuring device or the like that can appropriately measure a distance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 This is a diagram for explaining an overview of the distance measuring device according to the first embodiment.

[0018] Figure 2 This is a diagram for explaining a distance measuring method executed by the distance measuring device according to Embodiment 1.

[0019] Figure 3 This is a block diagram showing a characteristic functional structure of the distance measuring device according to the first embodiment.

[0020] Figure 4 This is a flowchart for explaining a distance measuring method executed by the distance measuring device according to the first embodiment.

[0021] Figure 5 This is a diagram for explaining a method in which the distance measuring device according to the first embodiment calculates a limit distance measuring range based on the number of occurrences of avalanche multiplication.

[0022] Figure 6 This is a flowchart for explaining an example of a method for selecting table information used when calculating a limiting distance measurement range by the distance measuring device according to Embodiment 1.

[0023] Figure 7 This is a diagram for explaining an example of a method of selecting table information used when the distance measuring device according to Embodiment 1 calculates the limit distance measuring range.

[0024] Figure 8 This is a diagram showing an example of the number of occurrences of avalanche multiplication in each of a plurality of APDs acquired when the distance measuring device according to the first embodiment measures the distance to an object.

[0025] Fig. 9 This is a diagram for explaining a specific example of a method of calculating illuminance executed by the distance measuring device according to the first embodiment.

[0026] Fig.10 This is a block diagram showing a characteristic functional structure of a distance measuring device according to the second embodiment.

[0027] Fig.11 This is a flowchart for explaining a distance measuring method executed by the distance measuring device according to the second embodiment.

[0028] Fig.12 This is a flowchart for explaining the details of the photometry method executed by the distance measuring device involved in Embodiment 2.

[0029] Fig.13 This is a flowchart for explaining the details of the distance measurement range setting process executed by the distance measurement device according to the second embodiment.

[0030] Fig.14 This is a flowchart for explaining the details of the setting process of the imaging condition and the emission condition executed by the distance measuring device according to the second embodiment. DETAILED DESCRIPTION

[0031] The following drawings are used to illustrate the embodiments of the present disclosure. In addition, the embodiments described below all represent a preferred specific example of the present disclosure. Therefore, the numerical values, constituent elements, configuration positions and connection forms of constituent elements, processes (steps) and the order of processes shown in the following embodiments are examples and are not intended to limit the present disclosure.

[0032] In addition, each figure is a schematic diagram and may not be strictly illustrated. Therefore, the scales in each figure may not be consistent. In each figure, the same reference numerals are given to substantially the same structure, and repeated descriptions are sometimes omitted or simplified.

[0033] (Implementation Method 1)

[0034] [structure]

[0035] First reference Figure 1 to Figure 3 The structure of the distance measuring device according to Embodiment 1 will be described.

[0036] Figure 1 This is a diagram for explaining an overview of the distance measuring device 100 according to the first embodiment. Figure 2 This is a diagram for explaining a distance measurement method executed by the distance measurement device 100 according to the first embodiment. Figure 3 This is a block diagram showing a characteristic functional structure of the distance measuring device 100 according to the first embodiment.

[0037] The distance measuring device 100 is a device for measuring the distance to an object. Specifically, the distance measuring device 100 emits an outgoing light 300 to the object, and uses a camera unit 110 having a plurality of APDs (Avalanche Photo Diodes) 111 to detect the light obtained by reflecting the outgoing light 300 from the object, that is, the reflected light 310, thereby measuring the distance between the distance measuring device 100 and the object. More specifically, the distance measuring device 100 calculates the distance to the object by a TOF (Time Of Flight) method.

[0038] The so-called TOF method is a method in which the distance is calculated based on the time taken from when the light source 120 emits the outgoing light 300 to when the outgoing light 300 emitted by the light source 120 hits an object and the reflected light 310 obtained by the outgoing light 300 reflecting on the object is detected. The distance measuring device 100 emits the outgoing light 300 to the object 400 such as a person. The outgoing light 300 becomes the reflected light 310 reflected by the object 400. The reflected light 310 enters the distance measuring device 100. The distance measuring device 100 measures the distance to the object 400 based on the time taken from when the outgoing light 300 is emitted to when the reflected light 310 is detected.

[0039] like Figure 2As shown, for example, the distance measuring device 100 exposes the camera unit 110 for a given exposure time (first exposure time), during which the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 is counted. For example, the distance measuring device 100 determines that an object exists in the first interval when the counted number of occurrences of avalanche multiplication is greater than a given number of occurrences arbitrarily determined in advance, and determines that an object does not exist in the first interval when the counted number of occurrences of avalanche multiplication is less than the given number of occurrences.

[0040] When the distance measuring device 100 determines that there is no object in the first interval, the imaging unit 110 is further exposed for a given exposure time (second exposure time) longer than the first exposure time, during which the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 is counted. For example, when the counted number of occurrences of avalanche multiplication is greater than the given number of occurrences, the distance measuring device 100 determines that there is an object in the second interval, and when it is less than the given number of occurrences, the distance measuring device 100 determines that there is no object in the second interval. By repeating such processing, the distance measuring device 100 determines in which interval the object is located, that is, when the object exists, it measures the distance to the object.

[0041] Here, for example, a limit of the distance that can be measured in the distance measuring device 100 (specifically, the camera unit 110), that is, a limit distance measuring range, is set for the distance measuring device 100. When the object 410 is located farther from the distance measuring device 100 than the limit distance measuring range, the distance measuring device 100 cannot measure the distance to the object because, for example, the light emitted by the light source 120 does not reach the object. Figure 2 In the case where the object is located in the first to sixth intervals, the distance measuring device 100 can determine which interval the object is located in. On the other hand, when the object is located in the seventh interval, the distance measuring device 100 cannot determine whether the object exists, and of course cannot measure the distance to the object.

[0042] Specifically, for example, the distance measuring device 100 is Figure 1 As shown, the outgoing light 300 is emitted toward the object 400. In this case, since the object 400 is located closer to the distance measuring device 100 than the limit distance measuring range, the distance measuring device 100 measures the distance to the object 400 by detecting the reflected light 310, for example.

[0043] On the other hand, the distance measuring device 100 emits the outgoing light 301 toward the object 410 such as a vehicle that is located farther away than the object 400. In this case, when the object 410 is located farther from the distance measuring device 100 than the limit distance measuring range, the distance measuring device 100 cannot measure the distance to the object 410 because, for example, the outgoing light 301 does not reach the object 410 and the reflected light cannot be detected.

[0044] As described above, there is a limit to the distance that can be measured in the distance measuring device 100. For this reason, the conventional distance measuring device predetermines the limit distance measuring range, that is, predetermines the maximum time (maximum exposure time) for exposing the imaging unit 110 calculated based on the limit distance measuring range. For example, the shorter the limit distance measuring range, the shorter the maximum exposure time. On the other hand, the longer the limit distance measuring range, the longer the maximum exposure time.

[0045] However, the limit distance measurement range may change depending on the illumination of the background light 320 emitted from the light source 120 such as sunlight, which is not the emitted light 300. For example, when the illumination of the background light 320 is very strong, the illumination of the reflected light 310 becomes relatively significantly lower than the illumination of the background light 320, and the reflected light 310 cannot be detected by the camera unit 110. That is, in this case, the limit distance measurement range that can actually be measured becomes shorter than the predetermined limit distance measurement range. For this reason, in the existing distance measurement device, since the limit distance measurement range is predetermined, the distance that cannot be measured due to the illumination of the background light 320 is calculated. The distance measurement device 100 involved in the present disclosure calculates the limit distance measurement range, and does not calculate the distance at a distance where the illumination of the background light 320 is too strong and a lot of noise is detected, and the distance to the object cannot be measured, but performs calculation for measuring an appropriate distance.

[0046] like Figure 3 As shown, the distance measuring device 100 includes an imaging unit 110 , a light source 120 , a processing unit 200 , and a storage unit 240 .

[0047] The imaging unit 110 is a camera having a plurality of APDs 111. The APDs 111 are photodiodes that increase light detection sensitivity by avalanche multiplying charges generated by photoelectric conversion of light incident on a photoelectric conversion layer. The imaging unit 110 has, for example, a plurality of APDs 111 arranged in a matrix.

[0048] In addition, the number of APDs 111 included in the imaging unit 110 may be plural and is not particularly limited.

[0049] The light source 120 is a light source for emitting the emission light 300. The light source 120 is, for example, an LED (Light Emitting Diode), an LD (Laser Diode), etc. In addition, the wavelength emitted by the light source 120 is not particularly limited. The light source 120 emits, for example, near-infrared light with a central wavelength of about 800nm ​​to 1200nm.

[0050] The processing unit 200 is a processing unit that controls the imaging unit 110 and the light source 120 to measure the distance to an object (for example, the target object 400 ).

[0051] The processing unit 200 is realized by, for example, a CPU (Central Processing Unit) and a control program executed by the CPU and stored in the storage unit 240. The processing unit 200 is communicatively connected to the imaging unit 110 and the light source 120 via a control line or the like.

[0052] The processing unit 200 functionally includes an acquisition unit 210 , a calculation unit 220 , and a control unit 230 .

[0053] The acquisition unit 210 is connected to the camera unit 110, and acquires information of the reflected light 310 detected in the camera unit 110. Specifically, the acquisition unit 210 acquires the number of occurrences of avalanche multiplication occurring in each of the plurality of APDs 111 provided in the camera unit 110 from the camera unit 110 in an environment where the background light 320 is irradiated on the object. In addition, the acquisition unit 210 may acquire the number of occurrences of avalanche multiplication occurring in each of the plurality of APDs 111 from the camera unit 110, and may also acquire information indicating that avalanche multiplication has occurred. When acquiring information indicating that avalanche multiplication has occurred, the acquisition unit 210 acquires the number of avalanche multiplication occurring in each of the plurality of APDs 111, for example, by counting the number of times the information is acquired.

[0054] The operation unit 220 calculates the limit distance measurement range indicating the distance that can be measured using the camera unit 110 based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111 obtained by the acquisition unit 210. Specifically, the operation unit 220 calculates the limit distance measurement range based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111 obtained by the acquisition unit 210 in an environment where the light source 120 does not emit the emission light 300 and irradiates the background light 320.

[0055] For example, the operation unit 220 calculates the illuminance of the background light 320 based on the number of avalanche multiplications of each of the plurality of APDs 111, and calculates the limiting distance measurement range based on the calculated illuminance of the background light 320. For example, the operation unit 220 calculates the illuminance of the background light 320 based on the number of avalanche multiplications based on the illuminance information 253.

[0056] The illuminance information 253 is a table showing the correspondence between the number of occurrences of avalanche multiplication and illuminance. The illuminance information 253 is stored in, for example, the storage unit 240. The operation unit 220 calculates the illuminance of the background light 320 based on the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 acquired by the acquisition unit 210 and the illuminance information 253 in an environment where the light source 120 does not emit the emission light 300 but irradiates the background light 320. Next, the operation unit 220 calculates the limit ranging range based on the calculated illuminance.

[0057] For example, the calculation unit 220 calculates the illuminance of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of at least two APDs 111 among the plurality of APDs 111 .

[0058] Alternatively, the calculation unit 220 calculates the illuminance of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of all the APDs 111 among the plurality of APDs 111 .

[0059] In addition, for example, the calculation unit 220 calculates the limit distance measurement range based on the calculated illuminance of the background light 320 and the table information 250 .

[0060] The table information 250 is a table showing the correspondence between the illuminance and the limit distance measurement range (that is, the limit distance measurement range with respect to the illuminance). The table information 250 is stored in the storage unit 240, for example.

[0061] The table information 250 includes, for example, the first table information 251 and the second table information 252 whose correspondence between the illuminance and the limit distance measurement range is different from that of the first table information 251. For example, the operation unit 220 calculates the ratio of the illuminance of the light emitted from the light source 120 and obtained by reflection from an object to the illuminance of the background light 320 (specifically, the ratio of the magnitude of the illuminance), i.e., the S / N ratio, based on the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 when the control unit 230 causes the light source 120 to emit light and the number of occurrences of avalanche multiplication of the plurality of APDs 111 when the control unit 230 does not cause the light source 120 to emit light. The operation unit 220 further selects, based on the calculated S / N ratio, whether to calculate the limit distance measurement range based on the first table information 251 or the second table information 252. For example, the calculation unit 220 calculates the illuminance of the background light 320 and the difference between the illuminance of the reflected light 310 and the illuminance of the background light 320. Next, the calculation unit 220 calculates the ratio of the calculated difference to the illuminance of the background light 320 to calculate the S / N ratio.

[0062] For example, the first table information 251 indicates that, at an illumination between a first threshold indicating illumination and a second threshold indicating illumination higher than the first threshold, the limit distance measurement range corresponding to the illumination becomes longer than that of the second table information 252. For example, the operation unit 220 determines the limit distance measurement range based on the first table information 251 when the illumination of the background light 320 is lower than the first threshold, and calculates the limit distance measurement range based on the second table information 252 when the illumination of the background light 320 is higher than the second threshold.

[0063] The control unit 230 controls exposure of the imaging unit 110 and emission of the emission light 300 from the light source 120. The control unit 230 controls exposure of the imaging unit 110 and emission of the emission light 300 from the light source 120 by, for example, the TOF method, and calculates the distance to the object based on the number of occurrences of avalanche multiplication in each of the plurality of APDs 111.

[0064] In addition, the control unit 230 calculates the maximum exposure time for exposing the imaging unit 110 based on the limiting ranging range calculated by the operation unit 220, causes the imaging unit 110 to be exposed for an exposure time within the calculated maximum exposure time, and calculates the distance to the object based on the number of occurrences of avalanche multiplication of each of the plurality of APDs 111. More specifically, the control unit 230 calculates the maximum value of the exposure time (maximum exposure time) based on the limiting ranging range. The control unit 230 causes the imaging unit 110 to be exposed for a given exposure time, further increases the exposure time by a given time, and causes the imaging unit 110 to be exposed again, and repeats such processing until the maximum exposure time based on the limiting ranging range is reached.

[0065] In addition, the control unit 230 may perform the exposure process, which is the process of exposing the imaging unit 110 when measuring the distance to the object, multiple times for one distance measurement. Figure 2 For example, the operation unit 220 can determine (calculate) whether there is an object in the first interval, that is, the distance to the object, based on the average number of occurrences of avalanche multiplication in each exposure process.

[0066] In addition, the conversion method used by the control unit 230 to calculate the maximum exposure time based on the limiting ranging range is not particularly limited as long as it is set so that the shorter the limiting ranging range is, the shorter the maximum exposure time is. The conversion method can be stored in the storage unit 240 as a table representing the maximum exposure time relative to the limiting ranging range, or the conversion formula used to calculate the maximum exposure time based on the limiting ranging range can be stored in the storage unit 240.

[0067] In addition, for example, the control unit 230 selects a given exposure time that is within the maximum exposure time from among a plurality of different given exposure times, causes the camera unit 110 to expose with the selected given exposure time that is within the maximum exposure time, and calculates the distance to the object based on the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 at each given exposure time that is within the maximum exposure time.

[0068] For example Figure 2As shown in FIG. 1 , a plurality of given exposure times (a first exposure time, a second exposure time, etc.) are stored in the storage unit 240 so that when the distance measurement is performed in the first section, the control unit 230 causes the imaging unit 110 to expose with the first exposure time, and when the distance measurement is performed in the second section, the control unit 230 causes the imaging unit 110 to expose with the second exposure time. That is, different given exposure times are pre-assigned to the respective distance measurement sections.

[0069] The control unit 230 selects a given exposure time that is within the maximum exposure time from among a plurality of given exposure times based on the maximum exposure time, that is, based on the limiting distance measurement range. Figure 2 As shown in FIG. 1 , the maximum exposure time is set to be greater than the exposure time (the sixth exposure time) for measuring the distance of the sixth section and less than the exposure time for measuring the distance of the seventh section. In this case, the control unit 230 selects six given exposure times from the first exposure time to the sixth exposure time among a plurality of predetermined given exposure times. Furthermore, the control unit 230 causes the imaging unit 110 to expose at the selected given exposure time that is within the maximum exposure time. For example, the control unit 230 performs an exposure process for exposing the imaging unit 110 at the first exposure time, and then performs an exposure process for exposing the imaging unit 110 at the second exposure time, and changes the exposure time as described above and repeatedly performs the exposure process until the exposure process for exposing the imaging unit 110 at the sixth exposure time is performed.

[0070] The control unit 230 calculates the distance to the object based on the number of avalanche multiplications of each of the plurality of APDs 111 during each exposure process performed multiple times. For example, the control unit 230 causes the light source 120 to emit light (emission light 300) a predetermined number of times while the imaging unit 110 is exposed.

[0071] In addition, the exposure time, the number of exposures for each exposure time, and the number of times light is emitted from the light source 120 can be determined arbitrarily.

[0072] In addition, the control unit 230 can calculate the given exposure time, the number of exposures, and the number of emission times based on the maximum exposure time. For example, the control unit 230 causes the camera unit 110 to repeatedly expose the calculated number of exposures at each of the calculated multiple given exposure times, and causes the light source 120 to emit light of the calculated number of emission times.

[0073] For example, the control unit 230 causes the exposure process to be performed for a predetermined number of exposures with the same exposure time. The number of exposures can be arbitrarily determined in advance, and can be one or more times. The number of exposures is stored in the storage unit 240, for example.

[0074] Here, for example, the control unit 230 may calculate the number of exposures to be performed based on the maximum exposure time. For example, the control unit 230 may change the number of exposures stored in the storage unit 240 based on the maximum exposure time.

[0075] For example, the control unit 230 controls the camera unit 110 so that the exposure time for one distance measurement is not substantially changed (i.e., the time taken for one distance measurement). Figure 2 In the case of the sixth interval shown in FIG. 1 , the camera unit 110 is exposed once at each exposure time from the first exposure time to the sixth exposure time, and the maximum exposure time is Figure 2 In the case of the fourth section shown in FIG. 1 , the imaging unit 110 is caused to expose twice at each of the first exposure time to the fourth exposure time.

[0076] In this way, the control unit 230 can change the number of exposures in each exposure time based on the maximum exposure time. For example, the control unit 230 reduces the number of exposures as the maximum exposure time is longer and increases the number of exposures as the maximum exposure time is shorter, so that the time spent in one distance measurement is roughly the same regardless of the maximum exposure time.

[0077] In addition, each interval within the limit distance measurement range does not need to be divided equally. For example, when the measurement distance is 50m and divided into three intervals, the intervals can be divided into 0 to 5m for the first interval, 5 to 15m for the second interval, and 15 to 50m for the third interval. That is, the control unit 230 can arbitrarily determine the exposure time of the camera unit 110.

[0078] In addition, for example, the control unit 230 may also change the distance scale width by increasing the number of intervals within the limit distance measurement range (ie, increasing the number of exposures with different exposure times) based on the limit distance measurement range. Thus, the distance is measured in detail, thereby improving the distance measurement accuracy.

[0079] In addition, for example, the number of times (for example, the number of laser pulses when the light is laser) emitted by the light source 120 may be different in each interval (i.e., exposure time). In other words, the exposure time (exposure time corresponding to one emission of light x number of times) in each interval may also be different.

[0080] For example, when the distance between the distance measuring device 100 and the object is close, since the reflected light 310 is easy to detect, even if the number of emission is small, it is easy to measure the distance with high accuracy. On the other hand, for example, when the distance between the distance measuring device 100 and the object is far, since it is difficult to detect the reflected light 310, it is difficult to measure the distance with high accuracy. For this reason, the control unit 230 calculates that, for example, the longer the distance from the distance measuring device 100 (that is, the longer the exposure time), the more the number of emission. In particular, in the interval at the boundary of the extreme distance measuring range, since the accuracy of distance measurement (in other words, the S / N ratio) becomes low, for example, the control unit 230 allocates the time that becomes unnecessary outside the extreme distance measuring range so that the number of emission (trial number) is increased in such an interval. In other words, the control unit 230 increases the number of times the light source 120 emits light for the exposure time closer to the maximum exposure time. For example, the control unit 230 performs calculations such that the number of shots is set to 2 for the first section (0 to 5 m), 5 for the second section (5 to 15 m), and 10 for the third section (15 to 50 m).

[0081] As a result, the ranging accuracy of each section, especially the section close to the limit ranging range, is improved.

[0082] In addition, for example, the control unit 230 may cause the camera unit 110 to perform exposure processing for the calculation unit 220 to calculate the limit ranging range multiple times. Specifically, for example, the control unit 230 causes the camera unit 110 to perform exposure processing for exposing the camera unit 110 multiple times. In this case, for example, the acquisition unit 210 acquires the number of occurrences of avalanche multiplication of each of the multiple APDs 111 in each exposure processing. In addition, the calculation unit 220 calculates the illumination of the background light 320 based on the average number of occurrences of avalanche multiplication of each of the multiple APDs 111 in each exposure processing acquired by the acquisition unit 210, for example.

[0083] The storage unit 240 is a storage device that stores a control program and the like executed by the processing unit 200 .

[0084] The storage unit 240 is implemented by, for example, a HDD (Hard Disk Drive), a flash memory, or the like.

[0085] In addition, the storage unit 240 stores, for example, table information 250 indicating a predetermined correspondence relationship between illuminance and the limiting ranging range. Specifically, for example, the storage unit 240 stores, as the table information 250, first table information 251 and second table information 252 whose correspondence relationship between illuminance and the limiting ranging range is different from that of the first table information 251.

[0086] Furthermore, the storage unit 240 stores illuminance information 253 indicating the correspondence between the number of occurrences of avalanche multiplication and illuminance.

[0087] In addition, for example, the storage unit 240 stores, as the threshold information 254 , a first threshold indicating illuminance and a second threshold indicating illuminance higher than the first threshold.

[0088] [Distance measurement method]

[0089] Next, refer to Figures 4 to 9 The distance measurement method performed by the distance measurement device 100 is described below.

[0090] Figure 4 This is a flowchart for explaining the distance measuring method executed by the distance measuring device 100 according to the first embodiment.

[0091] First, the control unit 230 controls the imaging unit 110 to expose the imaging unit 110 (step S101). The time for the control unit 230 to expose the imaging unit 110 can be arbitrarily determined.

[0092] Next, the acquisition unit 210 acquires the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 included in the imaging unit 110 from the imaging unit 110 (step S102 ).

[0093] Next, the calculation unit 220 calculates the illuminance of the background light 320 based on the number of avalanche multiplications acquired by the acquisition unit 210 (step S103). In step S103, the calculation unit 220 calculates the illuminance of the background light 320 based on the number of avalanche multiplications acquired by the acquisition unit 210 based on the illuminance information 253, for example.

[0094] Next, the calculation unit 220 calculates the limit distance measurement range based on the table information 250 (step S104 ). In step S104 , for example, the calculation unit 220 calculates the limit distance measurement range based on the calculated illumination of the background light 320 based on the table information 250 .

[0095] Figure 5 1 is a diagram for explaining a method for calculating a limiting distance measurement range based on the number of occurrences of avalanche multiplication by the distance measurement device 100 according to the first embodiment. Specifically, Figure 5 (a) is a diagram showing the number of occurrences of avalanche multiplication that occurs in each of the plurality of APDs 111 included in the imaging unit 110. Figure 5 (a) of FIG. 1 illustrates, as an example, the number of occurrences of avalanche multiplication in each of the nine APDs 111 when the imaging unit 110 includes nine APDs 111 arranged in a matrix of three rows and three columns. Figure 5 (b) is a diagram showing an example of the illumination information 253. Figure 5(c) is a diagram showing an example of the table information 250.

[0096] For example, the acquisition unit 210 acquires from the imaging unit 110 Figure 5 The number of avalanche multiplications occurring in each of the nine APDs 111 as shown in (a).

[0097] In this case, the operation unit 220 calculates the average number of occurrences of avalanche multiplication of each of the nine APDs 111, for example. Here, the operation unit 220, for example, discards the decimal point from the calculated result and calculates the average value as 5. Of course, the calculated result may be used as it is. Next, the operation unit 220 calculates the average value according to Figure 5 The illumination information 253 shown in (b) of FIG. 1 calculates the illumination of the background light 320 as 2000 lux. Next, the calculation unit 220 calculates the illumination of the background light 320 as 2000 lux. Figure 5 The table information 250 shown in (c) calculates the limit distance measurement range as 100m.

[0098] In this way, in steps S103 to S104 , the calculation unit 220 calculates the limit distance measurement range based on the number of occurrences of avalanche multiplication that occurred in each of the plurality of APDs 111 acquired by the acquisition unit 210 .

[0099] Here, the operation unit 220 counts the number of avalanche multiplications of all APDs 111 of the imaging unit 110, and calculates the illumination of the background light 320 based on the average number of avalanche multiplications of all APDs of the imaging unit 110. The operation unit 220 may also count the number of avalanche multiplications of at least two APDs 111 among the plurality of APDs 111, and calculate the illumination of the background light 320 based on the average number of avalanche multiplications of at least two APDs. For example, the operation unit 220 uses Figure 5 The number of avalanche multiplication occurrences of each of the five APD111, namely the APD111 located in the center and the four APD111 located above, below, left and right of the APD111 on the paper, among the multiple APD111 shown in (a), is counted, and the illumination of the background light 320 is calculated based on the average value of the number of avalanche multiplication occurrences of the five APD111.

[0100] Alternatively, the control unit 230 may repeatedly expose each APD 111, thereby allowing the acquisition unit 210 to acquire the number of occurrences of avalanche multiplication multiple times, and to acquire the average value of the acquired number of occurrences of avalanche multiplication multiple times in step S102. Figure 5 The number of occurrences of avalanche multiplication in each of the plurality of APDs 111 shown in (a) is an average value of the number of occurrences of avalanche multiplication when each of the APDs 111 is exposed 10 times.

[0101] In the present embodiment, the storage unit 240 stores first table information 251 and second table information 252, which have different correspondences with respect to the limit distance measurement range of the illumination, as the table information 250. The operation unit 220 changes the table information used from the first table information 251 and the second table information 252 based on the illumination of the background light 320 and the illumination of the reflected light 310.

[0102] Figure 6 This is a flowchart for explaining an example of a method in which the distance measuring device 100 according to the first embodiment selects the table used when calculating the limit distance measuring range as the first table information 251 or the second table information 252 . Figure 7 This is a diagram for explaining an example of a method in which the distance measuring device 100 according to the first embodiment selects the table used when calculating the limit distance measuring range as the first table information 251 or the second table information 252 .

[0103] like Figure 6 As shown in FIG. 1 , first, the calculation unit 220 calculates the illumination of the background light 320 (step S201). In step S201, the calculation unit 220 performs, for example, Figure 4 Step S103 shown.

[0104] Next, the operation unit 220 calculates the ratio of the illuminance of the light emitted from the light source 120 and obtained by reflecting the light from the object to the illuminance of the background light 320, i.e., the S / N ratio, based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111 counted when the control unit 230 causes the light source 120 to emit light and the number of occurrences of avalanche multiplication of the multiple APDs 111 counted when the control unit 230 does not cause the light source 120 to emit light (step S202).

[0105] Next, the calculation unit 220 determines whether the S / N ratio calculated in step S202 is equal to or greater than a predetermined value (step S203 ).

[0106] When the calculation unit 220 determines that the S / N ratio calculated in step S202 is equal to or greater than a predetermined value (step S203 : Yes), the calculation unit 220 selects the first table information 251 (step S204 ).

[0107] On the other hand, when the calculation unit 220 determines that the S / N ratio calculated in step S202 is not equal to or greater than a predetermined value (step S203: No), the calculation unit 220 selects the second table information 252 (step S208).

[0108] like Figure 7As shown in (a) of FIG. 1 , the first table information 251 and the second table information 252 have different conversion methods for the limit ranging range relative to the illumination of the background light 320. Specifically, the first table information 251 has a different conversion method from the second table information 252 between a predetermined first threshold value and a second threshold value indicating an illumination higher than the first threshold value. More specifically, the first table information 251 is a table in which the operation unit 220 converts the limit ranging range between the first threshold value and the second threshold value to be longer than that of the second table information 252.

[0109] For example, the calculation unit 220 calculates the illumination of the background light 320 as 2000 lux in step S202. Figure 7 When the S / N ratio is determined to be greater than a predetermined given value as shown in (a) of FIG. 2 , the limiting ranging range is calculated as 100 m based on the first table information 251. On the other hand, when the calculation unit 220 determines that the S / N ratio is not greater than a predetermined given value, the limiting ranging range is calculated as 90 m based on the second table information 252. In this way, when the S / N ratio is not high, the calculation unit 220 calculates the limiting ranging range to be low.

[0110] Reference again Figure 6 For example, after a given time from executing step S204, the operation unit 220 calculates the illumination of the background light 320 again (step S205). In this way, the distance measuring device 100 can repeatedly calculate the illumination of the background light 320 at a given time. Thus, the operation unit 220 can calculate an appropriate limit distance measurement range even when the background light 320 changes according to the time or weather.

[0111] Next, the calculation unit 220 determines whether the calculated illuminance is higher than the second threshold value (step S206). Figure 7 As shown in (b) of FIG. 2 , the illuminance of the background light 320 calculated in step S202 is 2000 lux, and the illuminance of the background light 320 calculated in step S205 is 3000 lux. In this case, in step S206, the operation unit 220 determines that the calculated illuminance is higher than the second threshold value (step S206 "Yes"), and selects the second table information 252 (step S207). On the other hand, when the operation unit 220 determines that the calculated illuminance is not higher than the second threshold value (step S206 "No"), the first table information 251 is kept selected.

[0112] In addition, for example, after a given time has passed since the execution of step S208, the calculation unit 220 calculates the illuminance of the background light 320 again (step S209).

[0113] Next, the calculation unit 220 determines whether the calculated illuminance is lower than the first threshold value (step S210). Figure 7 As shown in (c) of FIG. 2 , the illuminance of the background light 320 calculated in step S202 is 3000 lux, and the illuminance of the background light 320 calculated in step S209 is 1000 lux. In this case, in step S210, the operation unit 220 determines that the calculated illuminance is lower than the first threshold value (step S210 "Yes"), and selects the first table information 251 (step S211). On the other hand, when the operation unit 220 determines that the calculated illuminance is not lower than the first threshold value (step S210 "No"), the second table information 252 is kept selected.

[0114] In this way, the calculation unit 220 changes the table used to calculate the limit distance measurement range according to the calculated illumination intensity and S / N ratio of the background light 320 .

[0115] In addition, the number of tables included in the table information 250 stored in the storage unit 240 is not limited to two, and may be three or more.

[0116] Reference again Figure 4 After step S104, the control unit 230 calculates the exposure time (maximum exposure time) for exposing the imaging unit 110 based on the limiting distance range calculated by the operation unit 220 (step S105). In step S105, for example, the limiting distance range calculated by the operation unit 220 in step S104 is as follows: Figure 2 When the distance is up to the sixth interval as shown, the exposure time for measuring the distance of the object located in the sixth interval is calculated. The method for calculating the exposure time according to the limit ranging range is not particularly limited. For example, the storage unit 240 may store an exposure time table indicating the correspondence relationship between the exposure time and the limit ranging range. For example, the control unit 230 may calculate the maximum exposure time for exposing the camera unit 110 according to the limit ranging range calculated by the calculation unit 220 based on the exposure time table.

[0117] Next, the control unit 230 measures the distance to the object by the TOF method (step S106). Specifically, in step S106, the control unit 230 causes the light source 120 to emit the outgoing light 300 until the exposure time calculated in step S105, and repeatedly changes the exposure time and exposes the camera unit 110 until the maximum exposure time calculated based on the limit ranging range. Thus, the control unit 230 measures the distance to the object based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111.

[0118] In addition, in step S106, the control unit 230 may select a given exposure time that is within the maximum exposure time from among multiple given exposure times stored in the storage unit 240, and cause the camera unit 110 to expose at the selected given exposure time that is within the maximum exposure time.

[0119] In step S106 , the control unit 230 may calculate the exposure time of the imaging unit 110 , the number of exposures of the imaging unit 110 , and the number of light emissions of the light source 120 based on the maximum exposure time, and control the imaging unit 110 and the light source 120 based on the calculation results.

[0120] Figure 8 1 is a diagram showing an example of the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 obtained when the distance measuring device 100 according to the first embodiment measures the distance of an object. Figure 8 In (a) to (c) of FIG. 1 , as an example, the number of occurrences of avalanche multiplication in each of the nine APDs 111 is illustrated when the imaging unit 110 includes nine APDs 111 arranged in a matrix of three rows and three columns.

[0121] Specifically, Figure 8 (a) is a diagram showing an example of the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 when the control unit 230 causes the light source 120 to emit the emission light 300 . Figure 8 (b) is a diagram showing an example of the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 when the control unit 230 does not cause the light source 120 to emit the emission light 300 . Figure 8 (c) means Figure 8 The number of avalanche multiplications of each of the multiple APD111 shown in (a) is Figure 8 (b) is a graph showing the difference in the number of occurrences of avalanche multiplication for each of the plurality of APDs 111 .

[0122] For example, the control unit 230 controls the imaging unit 110 and the light source 120, and the acquisition unit 210 acquires Figure 8 The number of avalanche multiplications of each of the multiple APDs 111 shown in (a) and Figure 8 Next, the control unit 230 calculates the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 obtained by the acquisition unit 210. Figure 8Next, the control unit 230 determines whether the difference is greater than a predetermined number of occurrences. If the control unit 230 determines that the difference is greater than a predetermined number of occurrences, it determines that the object exists in a given interval corresponding to the exposure time, and measures the distance to the given interval as the distance to the object. For example, if the predetermined number of occurrences is "2", the control unit 230 measures that the object exists in a given interval corresponding to the exposure time. Figure 8 APD111a and APD111b shown in (c) indicate that there is an object in the direction of the detection light, and the object is located in a given interval corresponding to the exposure time.

[0123] Furthermore, when calculating the illuminance of the background light 320 in step S103 , the calculation unit 220 may calculate an average value of illuminances calculated at a plurality of different times.

[0124] Fig. 9 This is a diagram for explaining a specific example of a method of calculating illuminance executed by the distance measuring device 100 according to the first embodiment.

[0125] For example, the control unit 230 and the acquisition unit 210 repeat the Figure 4 Step S101 and step S102 are shown. Thus, the calculation unit 220 can calculate the illumination of the background light 320 at a plurality of times.

[0126] For example, Fig. 9 As shown in FIG. 1 , the operation unit 220 repeats four times according to the control unit 230 and the acquisition unit 210. Figure 4 The calculation unit 220 calculates the illumination of the background light 320 at time t1, t2, t3, and t4 by calculating the average of the illumination of the background light 320 at time t1, t2, t3, and t4. The calculation unit 220 calculates the illumination at time T1 by calculating the average of the illumination of the background light 320 at time t1, t2, t3, and t4. The calculation unit 220 uses the illumination at time T1 to calculate the illumination of the background light 320 at time t1. Figure 4 The processing after step S104 is shown.

[0127] In this way, the control unit 230, for example, performs exposure processing for exposing the imaging unit 110 multiple times. In this case, the calculation unit 220, for example, counts the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 in each exposure processing, and calculates the illumination of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 in each exposure processing.

[0128] For example, Fig. 9 As shown in FIG. 1 , at time t6, the illumination drops sharply from time t5 due to the blocking of the imaging unit 110. In this case, since it is related to, for example, Figure 7The calculation unit 220 changes the table information used in the calculation of the limit ranging range from the first table information 251 to the second table information 252 because the change is the same as the change shown in (c) of FIG. 1 . Furthermore, for example, at time t7, since the camera unit 110 recovers from the blocked state to the original unblocked state, the illumination increases sharply from time t6. In this case, the calculation unit 220 changes the table information used in the calculation of the limit ranging range from the second table information 252 to the first table information 251. In this way, depending on the timing at which the calculation unit 220 calculates the illumination, there is a possibility that the calculated illumination fluctuates greatly. For this reason, the calculation unit 220 calculates the average value of the illumination of the background light 320 at multiple times, for example, using the illumination of the average value to perform Figure 4 The processing after step S104 is shown.

[0129] In addition, the control unit 230 and the acquisition unit 210 can arbitrarily determine the repeated Figure 4 The number of steps S101 and S102 is shown.

[0130] [Effects, etc.]

[0131] As described above, the distance measuring device 100 involved in embodiment 1 is a distance measuring device for measuring the distance to an object, and comprises: a control unit 230, which exposes a camera unit 110 having multiple APDs 111 in an environment where background light 320 is irradiated on the object; an acquisition unit 210, which acquires the number of occurrences of avalanche multiplication of each of the multiple APDs 111; and a calculation unit 220, which calculates a limit distance measuring range representing the distance that can be measured using the camera unit 110 based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111 acquired by the acquisition unit 210.

[0132] According to such a structure, the operation unit 220 can calculate an appropriate limit distance measurement range according to the illumination of the background light 320. Therefore, the distance measuring device 100 can measure an appropriate distance according to the illumination of the background light 320. For example, when the distance measuring device 100 is mounted on a moving object such as a vehicle, the maximum value that can be measured, such as the inter-vehicle distance, can be appropriately set according to the illumination of the background light 320 such as sunlight.

[0133] For example, the distance measuring device 100 includes the light source 120 and the imaging unit 110. In this case, the control unit 230 exposes the imaging unit 110 and emits light from the light source 120 by the TOF method, and calculates the distance to the object based on the number of occurrences of avalanche multiplication in each of the plurality of APDs 111.

[0134] With such a configuration, the control unit 230 can measure an appropriate distance based on an appropriate limiting distance measurement range. For example, the control unit 230 can measure an appropriate distance by appropriately changing the light amount of the emission light 300 emitted by the light source 120 based on the limiting distance measurement range.

[0135] In addition, for example, the control unit 230 calculates the exposure time for exposing the camera unit 110 based on the limit ranging range calculated by the operation unit 220, exposes the camera unit 110 for the calculated exposure time, and calculates the distance to the object based on the number of avalanche multiplications of each of the multiple APDs 111.

[0136] According to such a configuration, the control unit 230 can calculate the exposure time based on the limit distance measurement range. Therefore, the control unit 230 can further measure an appropriate distance according to the illumination of the background light 320.

[0137] In addition, for example, the control unit 230 selects a given exposure time that is within the maximum exposure time from among a plurality of different given exposure times, executes exposure processing to cause the camera unit 110 to expose at the selected given exposure time that is within the maximum exposure time, and calculates the distance to the object based on the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 in the exposure processing of each given exposure time that is within the maximum exposure time.

[0138] According to such a structure, the control unit 230 can determine (more specifically, reduce) the number of exposure processes based on the maximum exposure time, for example, when a plurality of exposure times are predetermined. Therefore, since the control unit 230 does not perform distance measurement for areas deviating from the limit distance measurement range, the time spent on distance measurement can be shortened, that is, the frame rate can be increased.

[0139] In addition, for example, the control unit 230 calculates multiple given exposure times, the number of exposures, and the number of times the light source 120 emits light based on the maximum exposure time, and causes the camera unit 110 to repeat the exposure the calculated number of exposures at each of the multiple given exposure times calculated to be an exposure time within the maximum exposure time, and causes the light source 120 to emit light the calculated number of times.

[0140] According to such a structure, for example, if the exposure time spent in the whole is not changed for one distance measurement, when the exposure processing under a part of the predetermined multiple given exposure times is not performed, for one distance measurement, the exposure time spent in the whole can have a surplus of the given exposure time corresponding to the exposure processing. To this end, for example, by increasing the number of exposures for each given exposure time, the S / N ratio in each distance measurement interval can be improved, that is, the distance measurement accuracy can be improved. In addition, for example, when the light source 120 is driven by pulses, the control unit 230 can also increase the number of pulses based on the maximum exposure time. Accordingly, for example, the closer the exposure time is to the maximum exposure time, the more the number of light emissions from the light source 120 is increased, so that the distance measurement accuracy of the interval close to the limit distance measurement range is improved.

[0141] Furthermore, for example, the calculation unit 220 calculates the illuminance of the background light 320 based on the number of occurrences of avalanche multiplication in each of the plurality of APDs 111 , and calculates the limit distance measurement range based on the calculated illuminance of the background light 320 .

[0142] According to such a configuration, the calculation unit 220 calculates the illuminance of the background light 320 based on the number of occurrences of avalanche multiplication. Therefore, the calculation unit 220 can appropriately calculate the limit distance measurement range based on the illuminance of the background light 320.

[0143] Furthermore, for example, the calculation unit 220 calculates the illuminance of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of at least two or more APDs 111 among the plurality of APDs 111 .

[0144] For example, it is assumed that the imaging unit 110 has a large number of APDs 111. In this case, a large amount of data must be processed in order to calculate the average value of all APDs 111. Therefore, according to such a configuration, the amount of data used in calculating the background light 320 can be reduced.

[0145] Furthermore, for example, the calculation unit 220 calculates the illuminance of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of all the APDs 111 among the plurality of APDs 111 .

[0146] With such a configuration, the calculation unit 220 can calculate the illuminance of the background light 320 with high accuracy.

[0147] In addition, for example, the calculation unit 220 calculates the limit distance measurement range based on the table information 250 indicating the correspondence relationship between the illuminance and the limit distance measurement range and the calculated illuminance of the background light 320 .

[0148] According to such a structure, the limit distance measurement range can be simply calculated based on the number of occurrences of avalanche multiplication in APD 111. In addition, according to such a structure, when a plurality of distance measuring devices 100 are manufactured, if there is a deviation in the light detection accuracy in the imaging unit 110, by appropriately setting the table information 250, the measurement deviation of each of the plurality of distance measuring devices 100 can be suppressed.

[0149] In addition, for example, the table information 250 includes the first table information 251 and the second table information 252 whose correspondence between the illuminance and the limit distance measurement range is different from that of the first table information 251. In this case, for example, the operation unit 220 calculates the ratio of the illuminance of the light emitted from the light source 120 and obtained by reflection from an object to the illuminance of the background light 320, i.e., the S / N ratio, based on the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 when the control unit 230 causes the light source 120 to emit light and the number of occurrences of avalanche multiplication of the plurality of APDs 111 when the control unit 230 does not cause the light source 120 to emit light. Furthermore, the operation unit 220 selects whether to calculate the limit distance measurement range based on the first table information 251 or the second table information 252, for example, based on the calculated S / N ratio.

[0150] According to such a configuration, the calculation unit 220 selects an appropriate table according to the magnitude of the illumination of the background light 320. Therefore, according to such a configuration, the calculation unit 220 can calculate the limit distance measurement range with higher accuracy.

[0151] In addition, for example, the first table information 251 has a longer limit ranging range corresponding to the illumination at an illumination between a first threshold indicating illumination and a second threshold indicating illumination higher than the first threshold than the second table information 252. For example, the operation unit 220 calculates the limit ranging range based on the first table information 251 when the illumination of the background light 320 is lower than the first threshold, and calculates the limit ranging range based on the second table information 252 when the illumination of the background light 320 is higher than the second threshold.

[0152] According to such a structure, even when the calculated illumination changes within a very short period of time, the operation unit 220 is prevented from changing the table used multiple times. For example, if the operation unit 220 changes the referenced table according to whether the illumination is higher or lower than a threshold value, the referenced table will be changed multiple times due to the slight fluctuation of the illumination of the background light 320. In this way, since the limit ranging range calculated by the operation unit 220 changes repeatedly, many processes are required. Therefore, by appropriately changing the referenced table in the first table information 251 and the second table information 252 as in the present embodiment, the limit ranging range with respect to the illumination can be changed with a delay. As a result, the limit ranging range calculated by the operation unit 220 is prevented from being changed multiple times with respect to the slight change in illumination.

[0153] In addition, for example, the control unit 230 performs exposure processing for exposing the imaging unit 110 multiple times. In this case, for example, the acquisition unit 210 acquires the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 in each exposure processing. In addition, the calculation unit 220 calculates the illumination of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 in each exposure processing acquired by the acquisition unit 210, for example.

[0154] According to such a configuration, even when the illuminance calculated in a very short period of time is large and the illuminance changes, the calculation unit 220 can select a table using an appropriate illuminance.

[0155] In addition, the ranging method involved in embodiment 1 is a ranging method for measuring the distance to an object, including: a control step of exposing a camera unit 110 having multiple APDs 111 in an environment where background light 320 is irradiated on the object; an acquisition step of acquiring the number of occurrences of avalanche multiplication of each of the multiple APDs 111 from the camera unit 110 having the multiple APDs 111; and a calculation step of calculating a limit ranging range representing the distance that can be measured using the camera unit 110 based on the number of occurrences of avalanche multiplication of each of the multiple APDs 111 acquired in the acquisition step.

[0156] According to such a method, an appropriate limit distance measurement range can be calculated according to the illuminance of the background light 320. Therefore, according to such a method, an appropriate distance can be measured according to the illuminance of the background light 320.

[0157] In addition, the present disclosure may also be implemented as a program recording medium that causes a computer to execute the steps contained in the above-mentioned ranging method. In addition, the present disclosure may also be implemented as a non-temporary recording medium such as a CD-ROM that records the program and can be read by a computer. In addition, the present disclosure may also be implemented as information, data or signals representing the program. Furthermore, these programs, information, data and signals may also be released via a communication network such as the Internet.

[0158] (Implementation Method 2)

[0159] The following describes the distance measuring device involved in Embodiment 2. In the description of the distance measuring device involved in Embodiment 2, the description is centered on the differences from the distance measuring device involved in Embodiment 1, and the same reference numerals are given to the same structures as the distance measuring device involved in Embodiment 1, and the description is sometimes partially simplified or omitted.

[0160] [structure]

[0161] Fig.10 This is a block diagram showing a characteristic functional structure of the distance measuring device 101 according to the second embodiment.

[0162] Distance measuring device 101 is a device that measures the distance to an object and includes imaging unit 110 including a plurality of pixels each having APD 111 , similarly to distance measuring device 100 . Distance measuring device 101 includes imaging unit 110 , light source 120 , processing unit 201 , and storage unit 240 .

[0163] The processing unit 201 controls the imaging unit 110 and the light source 120 to measure the distance to an object (eg, the target object 400 ).

[0164] The processing unit 201 is implemented by, for example, an input / output port for communicating with the imaging unit 110 and the light source 120, a CPU, and a control program executed by the CPU stored in the storage unit 240. The processing unit 201 is communicatively connected to the imaging unit 110 and the light source 120 via a control line or the like.

[0165] The processing unit 201 functionally includes a photometric unit 211 , a calculation unit 221 , and a control unit 231 .

[0166] The light measuring unit 211 measures the object (eg Figure 1 In an environment where a background light 320 is irradiated by an object 400 (shown in FIG. 1 ), the illumination of the background light 320 is measured. The light measuring unit 211 obtains, for example, the number of occurrences of avalanche multiplication of each of the plurality of APDs 111 provided in the imaging unit 110, and calculates the illumination of the background light 320 based on the obtained number of occurrences of avalanche multiplication. That is, the light measuring unit 211 performs the processing performed by the acquisition unit 210 and part of the processing performed by the calculation unit 220. In this way, the processing performed by a specific processing unit may also be performed by another processing unit.

[0167] The light measuring unit 211, for example, does not use the light source 120 that emits light toward an object but exposes the camera unit 110 only with the background light 320. When the camera unit 110 is exposed only with the background light 320 (i.e., the light source 120 is not emitted), the number of occurrences of avalanche multiplication of multiple pixels (multiple APDs 111) is obtained, and the illumination of the background light 320 is calculated based on the illumination information 253 that is pre-digitized and indicates the correspondence between the illumination of the background light 320 and the number of occurrences of avalanche multiplication, and the number of occurrences of avalanche multiplication of multiple pixels.

[0168] In addition, for example, the light measuring unit 211 obtains the number of occurrences of avalanche multiplication of at least two or more pixels among the plurality of pixels, and calculates the illumination of the background light based on the average value of the number of occurrences of avalanche multiplication of the two or more pixels obtained. Alternatively, for example, the light measuring unit 211 obtains the number of occurrences of avalanche multiplication of all pixels among the plurality of pixels, and calculates the illumination of the background light 320 based on the average value of the number of occurrences of avalanche multiplication of all pixels obtained.

[0169] In these cases, for example, the correspondence between the illumination of the background light 320 and the average value of the occurrence frequency of avalanche multiplication is included in the illumination information 253. The light measuring unit 211 obtains the occurrence frequency of avalanche multiplication for each of the plurality of pixels from the imaging unit 110, calculates the average value of the occurrence frequency of avalanche multiplication for each of the plurality of pixels obtained, and calculates the background light 320 based on the calculated average value and the illumination information 253.

[0170] For example, the light metering unit 211 performs exposure processing to expose the camera unit 110 multiple times, obtains the number of avalanche multiplication occurrences of each of the multiple pixels in each exposure processing, and repeatedly calculates the illumination of the background light 320 based on the average value of the number of avalanche multiplication occurrences of each of the multiple pixels in each exposure processing.

[0171] The calculation unit 221 sets (calculates) the distance measurement range (limit distance measurement range) based on the illumination of the background light 320 measured (calculated) by the light measuring unit 211. As described above, the distance measurement range is the range of the distance from the distance measuring device 101 when the distance measuring device 101 measures the distance to the object (limit value of the distance). The distance measuring device 101 measures the distance to the object within the distance measurement range. Therefore, conditions such as the maximum exposure time (maximum exposure time) of the camera unit 110 are determined according to the distance measurement range.

[0172] The calculation unit 221 sets the distance measurement range based on, for example, the table information 250 that is pre-digitized and indicates the correspondence between the illumination of the background light 320 and the distance measurement range. For example, the calculation unit 221 selects the distance measurement range corresponding to the illumination of the background light 320 measured by the light measuring unit 211 from the table information 250, and sets the selected distance measurement range as the distance measurement range (limit distance measurement range) used in measuring the distance to the object.

[0173] For example, the table information 250 includes first table information 251 and second table information 252 .

[0174] The first table information 251 and the second table information 252 are tables containing the correspondence between the illumination of the background light 320 and the distance measurement range. In addition, the correspondence between the illumination of the background light 320 and the distance measurement range in the second table information 252 is different from that in the first table information 251. For example, as described above (for example, refer to Figure 7 ), the ranging range of the illumination relative to the background light 320 in the first table information 251 is set to be longer than the ranging range of the illumination relative to the background light 320 in the second table information 252 at an illumination between a first threshold value representing the illumination and a second threshold value representing an illumination higher than the first threshold value.

[0175] For example, the calculation unit 221 selects one of the first table information 251 and the second table information 252 , and sets the distance measurement range based on the selected table information.

[0176] For example, the operation unit 221 calculates the ratio of the illuminance of the light (outgoing light 300) emitted from the light source 120 and obtained by reflection of the light (reflected light 310) from the object to the illuminance of the background light 320, that is, the S / N ratio, based on the number of avalanche multiplication occurrences of each of the multiple pixels when the light source 120 emits light and the number of avalanche multiplication occurrences of the multiple pixels when the light source 120 does not emit light, and selects one of the first table information 251 and the second table information 252 based on the calculated S / N ratio, and sets the ranging range based on the selected table information.

[0177] In addition, for example, the operation unit 221 is as described above (for example, refer to Figure 7 ), when the illumination of the background light 320 is lower than the first threshold, the ranging range is set based on the first table information 251, and when the illumination of the background light 320 is higher than the second threshold, the ranging range is set based on the second table information 252.

[0178] Information indicating threshold values ​​such as the first threshold value and the second threshold value is stored in advance in the storage unit 240 as, for example, threshold value information 254 .

[0179] Furthermore, for example, the calculation unit 221 selects one of the first table information 251 and the second table information 252 based on the change in the illumination of the background light 320 repeatedly calculated by the photometry unit 211, and sets the distance measurement range based on the selected table information.

[0180] In addition, in the present embodiment, the table information 250 includes two table information, namely, the first table information 251 and the second table information 252. The table information 250 may also include three or more table information having different correspondence relationships with respect to the ranging range of the illumination. The calculation unit 221 selects one table information from among the three or more table information by the above-mentioned method, for example, and sets the ranging range based on the selected table information.

[0181] The control unit 231 sets (determines) the imaging conditions of the imaging unit 110 including a plurality of pixels each having an APD 111 and the emission conditions for causing the light source 120 to emit light based on the distance measurement range set by the operation unit 221. In addition, the control unit 231 measures the distance to the object by controlling the imaging unit 110 and the light source 120 based on the set imaging conditions and emission conditions.

[0182] For example, the control unit 231 sets the light quantity, emission time, and emission number of light emitted by the light source 120 as emission conditions. In addition, the control unit 231 sets multiple exposure times and exposure numbers (for example, the exposure numbers for each of the multiple exposure times) of the camera unit 110 as imaging conditions based on the distance measurement range set by the calculation unit 221. For example, the control unit 231 causes the camera unit 110 to repeatedly expose the set exposure number of times at multiple exposure times calculated to be within the maximum exposure time predetermined corresponding to the set distance measurement range, and causes the light source 120 to emit light of the emission number, thereby measuring the distance to the object (for example, the distance between the object and the distance measurement device 101). Information indicating the maximum exposure time corresponding to the distance measurement range (exposure time information) is stored in advance in the storage unit 240, for example. For example, the control unit 231 sets multiple exposure times that are within (or less than) the maximum exposure time and are different from each other.

[0183] For example, the control unit 231 calculates the first exposure time and the second exposure time in a manner that is less than the maximum exposure time as described above. Next, the control unit 231 controls the camera unit 110, for example, to expose the camera unit 110 for the first exposure time, and controls the light source 120 to emit light. The control unit 231 performs this control for the set number of exposures. Furthermore, the control unit 231 controls the camera unit 110 to expose the camera unit 110 for the second exposure time, and controls the light source 120 to emit light. The control unit 231 performs this control for the set number of exposures. As described above, the control unit 231 measures the distance to the object by controlling the camera unit 110 and the light source 120 based on the set imaging conditions and emission conditions.

[0184] For example, the control unit 231 exposes the camera unit 110 and causes the light source 120 to emit light using the TOF method to obtain (calculate) the number of avalanche multiplications of each of the multiple APDs 111 , and measures the distance to the object based on the number of avalanche multiplications of each of the multiple APDs 111 .

[0185] The distance measuring device 101 may measure the distance between an object and the distance measuring device 101 , or may measure the distance between an object and a vehicle or the like on which the distance measuring device 101 is installed using a predetermined calculation method.

[0186] In addition, for example, the distance measuring device 101 may include a display, a speaker, or other presentation unit for presenting information of the measured distance to a user, etc. For example, the distance measuring device 101 measures the distance to an object, and causes the presentation unit to present information indicating the measured distance.

[0187] [Distance measurement method]

[0188] Fig.11 This is a flowchart for explaining a distance measurement method executed by the distance measurement device 101 according to the second embodiment.

[0189] First, the light measuring unit 211 measures the illuminance of the background light 320 (step S300 ).

[0190] Next, the calculation unit 221 sets the distance measurement range based on the illumination of the background light 320 measured by the light measuring unit 211 (step S310 ).

[0191] Next, the control unit 231 sets the imaging conditions, which are conditions for the imaging unit 110 to capture images, and the emission conditions, which are conditions for the light source 120 to emit light, based on the distance measurement range set by the calculation unit 221 (step S320 ).

[0192] Next, the control unit 231 controls the imaging unit 110 and the light source 120 based on the set imaging conditions and emission conditions, thereby measuring the distance to the object using, for example, the TOF method (step S330 ).

[0193] The distance measuring device 101 repeats the process of step S300 to step S330 N times (N is an arbitrarily determined natural number) (step S340). For example, after repeating the process of step S300 to step S330 N times, the distance measuring device 101 ends the process.

[0194] Fig.12 This is a flowchart for explaining the details of the photometry method (step S300 ) executed by the distance measuring device 101 according to the second embodiment.

[0195] First, the photometric unit 211 exposes the imaging unit 110 only with the background light 320 without using the light source 120 (step S301). That is, the photometric unit 211 does not cause the light source 120 to emit light, but exposes the imaging unit 110 only with the background light 320.

[0196] Next, the light measuring unit 211 obtains the number of occurrences of avalanche multiplication from the imaging unit 110 (step S302 ).

[0197] Next, the photometric unit 211 refers to the illuminance information 253 indicating the correspondence between the illuminance of the background light 320 and the number of occurrences of avalanche multiplication (step S303 ).

[0198] Next, the photometric unit 211 calculates the illuminance of the background light 320 from the number of occurrences of avalanche multiplication based on the illuminance information 253 (step S304 ).

[0199] Fig.13 This is a flowchart for explaining the details of the distance measurement range setting process (step S310 ) executed by the distance measurement device 101 according to the second embodiment.

[0200] First, the calculation unit 221 refers to the table information 250 indicating the correspondence between the illumination of the background light 320 and the distance measurement range (step S311). When there are multiple table information (for example, when the table information 250 includes multiple table information such as the first table information 251 and the second table information 252), the multiple table information is referred to (that is, the multiple table information is obtained from the storage unit 240).

[0201] Next, for example, when a plurality of table information is stored in the storage unit 240 , the calculation unit 221 selects one piece of table information from the plurality of table information (step S312 ).

[0202] Here, as a method for the operation unit 221 to select one table information from a plurality of table information, as described above, a method based on the S / N of the illumination of the background light 320 and the illumination of the reflected light 310, a method based on a sudden illumination change of the background light 320 (using Figure 7 The method using hysteresis threshold control as described above) or the method based on the rapid change of the illumination of the background light 320 (using Fig. 9 A method utilizing the time-averaged change in the illumination intensity of the background light 320 will be described below.

[0203] For example, the operation unit 221 calculates the ratio of the illuminance of the light emitted from the light source 120 and the light reflected by the object to the illuminance of the background light 320, i.e., the S / N ratio, based on the number of occurrences of avalanche multiplication of each of the plurality of pixels when the light source 120 emits light and the number of occurrences of avalanche multiplication of the plurality of pixels when the light source 120 does not emit light, selects one of the first table information 251 and the second table information 252 based on the calculated S / N ratio, and sets the distance measurement range based on the selected table information. Alternatively, the operation unit 221 performs, for example, hysteresis threshold control, and sets the distance measurement range based on the first table information 251 when the illuminance of the background light 320 is lower than the first threshold, and sets the distance measurement range based on the second table information 252 when the illuminance of the background light 320 is higher than the second threshold. Alternatively, the operation unit 221 selects one of the first table information 251 and the second table information 252 based on repeatedly calculated changes in the illumination of the background light 320 (e.g., time-averaged changes in the illumination of the background light 320), and sets the ranging range based on the selected table information.

[0204] Next, the calculation unit 221 sets the distance measurement range based on the selected table information (step S313 ).

[0205] Fig.14 This is a flowchart for explaining the details of the process of setting the imaging conditions and the emission conditions (step S320 ) executed by the distance measuring device 101 according to the second embodiment.

[0206] First, the control unit 231 sets (determines) the control content of the light source 120, i.e., the emission condition (e.g., the amount of light emitted by the light source 120, the time for emitting light from the light source 120, i.e., the emission time, and the number of times the light source 120 emits light, i.e., the emission count) based on the distance measurement range set by the operation unit 221 (step S321). The emission condition relative to the distance measurement range can be set arbitrarily, and can be pre-stored in the storage unit 240 as emission condition information, for example.

[0207] Next, the control unit 231 sets (determines) the control content of the imaging unit 110, that is, the imaging condition (for example, the exposure time indicating the time to expose a plurality of pixels and the number of exposures indicating the number of times to expose a plurality of pixels) based on the ranging range set by the calculation unit 221 (step S322). The imaging condition with respect to the ranging range can be set arbitrarily, and can be stored in advance in the storage unit 240 as imaging condition information, for example.

[0208] For example, Fig.11 In step S330 shown, the control unit 231 controls the imaging unit 110 and the light source 120 based on the emission conditions and imaging conditions set in steps S321 and S322 to calculate the distance to the object using the TOF method.

[0209] [Effects, etc.]

[0210] As described above, the distance measurement method involved in embodiment 2 includes the following steps: measuring the illumination of the background light 320 in an environment where the background light 320 is irradiated on the object (step S300); setting the distance measurement range based on the illumination of the background light 320 (step S310); setting the camera conditions of the camera unit 110 including multiple pixels each having an APD 111 and the emission conditions for the light source 120 to emit light based on the set distance measurement range (step S320); and measuring the distance to the object by controlling the camera unit 110 and the light source 120 based on the set camera conditions and emission conditions (step S330).

[0211] Accordingly, a suitable distance measurement range (limit distance measurement range) can be set (calculated) corresponding to the illumination of the background light 320. For this reason, according to the distance measurement method involved in Embodiment 2, the distance to an object existing in the range can be measured within a suitable distance range corresponding to the illumination of the background light 320. For example, when the distance measurement device 101 is mounted on a moving body such as a vehicle, the maximum value (distance measurement range) that can be measured, such as the vehicle-to-vehicle distance, can be appropriately set in accordance with the illumination of the background light 320 such as sunlight. In the existing distance measurement device (distance measurement method) that uses light to measure the distance based on the TOF method, there is a problem of calculating (measuring) the distance that cannot be measured based on the light amount (illuminance) of the background light 320. For example, in the existing distance measurement device, in order to measure the distance to an object located at a distance that cannot be measured based on the light amount (illuminance) of the background light 320, light is emitted. Here, in the existing distance measuring device, since the reflected light of the emitted light cannot be detected, even if there is an object at the position where the distance is to be measured, there is a possibility that the distance cannot be measured because the object is erroneously measured as not existing. For example, in the existing distance measuring device, when the above-mentioned prompting unit prompts the user or the like of the measured distance, there is a case where erroneous information such as the object does not exist at the measured distance is prompted. Here, in the distance measuring method involved in embodiment 2, the limit value (distance measuring range) of the distance to the object is set based on the illumination of the background light 320. Thus, in the distance measuring method involved in embodiment 2, the distance to the object can be appropriately measured within the range of the distance. Accordingly, in the distance measuring method involved in embodiment 2, for example, the processing of the distance that cannot be measured due to the excessive illumination of the background light 320 to be measured can be omitted.

[0212] In addition, for example, the process of measuring the illuminance of the background light 320 (step S300) includes the following processes: exposing the camera unit 110 only with the background light 320 without using the light source 120 that emits light to the object (step S301); obtaining the number of occurrences of avalanche multiplication of multiple pixels when the camera unit 110 is exposed only with the background light 320 (step S302); and calculating the illuminance of the background light 320 based on the pre-digitized illuminance information 253 indicating the correspondence between the illuminance of the background light 320 and the number of occurrences of avalanche multiplication and the number of occurrences of avalanche multiplication of multiple pixels (steps S303 and S304).

[0213] Thus, the illuminance of the background light 320 can be calculated with high accuracy based on the number of occurrences of avalanche multiplication. In addition, instead of using an illuminance sensor for measuring the illuminance of the background light 320, the illuminance of the background light 320 and the distance to the object can be measured using an optical sensor (camera 110) for measuring the distance to the object.

[0214] In addition, for example, in the process of obtaining the number of occurrences of avalanche multiplication of multiple pixels (step S302), the number of occurrences of avalanche multiplication of at least two or more pixels among the multiple pixels is obtained, and in the process of calculating the illuminance of the background light 320 (step S303 and step S304), the illuminance of the background light 320 is calculated based on the average value of the number of occurrences of avalanche multiplication of the two or more pixels obtained.

[0215] For example, assume that the imaging unit 110 has a large number of pixels (APDs 111). In this case, since the number of occurrences of avalanche multiplication in all APDs 111 is obtained and the average value is calculated, a large amount of data needs to be processed. Therefore, the amount of data used in the calculation of the background light 320 can be reduced.

[0216] In addition, for example, in the process of obtaining the number of occurrences of avalanche multiplication of multiple pixels (step S302), the number of occurrences of avalanche multiplication of all pixels among the multiple pixels is obtained, and in the process of calculating the illuminance of the background light 320 (step S303 and step S304), the illuminance of the background light 320 is calculated based on the average value of the obtained number of occurrences of avalanche multiplication of all pixels.

[0217] According to this, the number of occurrences of avalanche multiplication in all APDs 111 is acquired and the average value is calculated, so that the background light 320 can be calculated with high accuracy.

[0218] For example, in the process of setting the distance measurement range (step S310 ), the distance measurement range is set based on the table information 250 that indicates the correspondence relationship between the illumination of the background light 320 and the distance measurement range in advance (steps S311 to S313 ).

[0219] For example, when a plurality of distance measuring devices 101 that perform the distance measuring method according to Embodiment 2 are manufactured, there may be a case where the light detection accuracy in the imaging unit 110 varies in each distance measuring device 101. Therefore, the plurality of distance measuring devices 101 calculate the distance measuring range from the measured illuminance based on common information such as the table information 250. Accordingly, the distance measuring range corresponding to the light detection accuracy of the imaging unit 110 of each of the plurality of distance measuring devices 101 is set.

[0220] In addition, for example, the table information 250 includes the first table information 251 and the second table information 252 whose correspondence between the illumination of the background light 320 and the ranging range is different from that of the first table information 251. In the process of setting the ranging range based on the table information 250 (steps S311 to S313), one of the table information of the first table information 251 and the second table information 252 is selected, and the ranging range is set based on the selected table information.

[0221] Depending on the magnitude of the illumination of the background light 320 or the magnitude of the temporal change of the illumination, there may be different cases where the appropriate distance measurement range for the illumination is different. For this reason, based on a plurality of table information with different correspondences between illumination and distance measurement ranges, for example, appropriate table information is selected from a plurality of table information corresponding to the magnitude of the illumination of the background light 320 or the temporal change of illumination, and the distance measurement range is set based on the selected table information, so that the distance to the object can be measured within a more appropriate distance range.

[0222] In addition, for example, in the process of setting the ranging range based on the table information 250 (steps S311 to S313), the ratio of the illuminance of the light emitted from the light source 120 and obtained by reflection from an object to the illuminance of the background light 320, i.e., the S / N ratio, is calculated based on the number of occurrences of avalanche multiplication of each of the multiple pixels when the light source 120 emits light and the number of occurrences of avalanche multiplication of the multiple pixels when the light source 120 does not emit light, and based on the calculated S / N ratio, one of the table information 251 and the second table information 252 is selected, and the ranging range is set based on the selected table information.

[0223] Accordingly, appropriate table information is selected from a plurality of table information in accordance with the magnitude of the illumination of the background light 320 and the magnitude of the illumination of the reflected light 310. Therefore, an appropriate distance measurement range can be further set.

[0224] In addition, for example, the ranging range relative to the illumination of the background light 320 in the first table information 251 is made longer than the ranging range relative to the illumination of the background light 320 in the second table information 252 at an illumination between a first threshold indicating illumination and a second threshold indicating illumination higher than the first threshold, and the process of setting the ranging range based on the table information 250 (steps S311 to S313) includes the following process: when the illumination of the background light 320 is lower than the first threshold, the ranging range is set based on the first table information 251, and when the illumination of the background light 320 is higher than the second threshold, the ranging range is set based on the second table information 252.

[0225] Accordingly, even when the illumination of the background light 320 (specifically, the magnitude of the illumination) calculated within a very short period of time changes, it is possible to suppress multiple changes in the table information used. For example, if the referenced table information is changed based on whether the illumination of the background light 320 is greater or less than a threshold value, the referenced table information will be changed multiple times due to slight fluctuations in the illumination of the background light 320. In this way, since the set distance measurement range will change repeatedly, a lot of processing is required. For this reason, two thresholds are set as in the present embodiment, and the distance measurement range relative to the illumination is changed with a lag, so that changes are made in the first table information 251 and the second table information 252 according to how the illumination of the background light 320 changes relative to the two thresholds. Thus, it is possible to suppress multiple changes in the set distance measurement range due to slight changes in the illumination of the background light 320.

[0226] In addition, for example, in the process of measuring the background light 320 (step S300), the exposure process of exposing the camera unit 110 is performed multiple times, and the number of occurrences of avalanche multiplication for each of the multiple pixels is obtained in each exposure process. The illuminance of the background light 320 is repeatedly calculated based on the average value of the number of occurrences of avalanche multiplication for each of the multiple pixels in each exposure process. In the process of setting the ranging range based on the table information 250 (steps S311 to S313), one of the table information 151 and the second table information 252 is selected based on the change in the repeatedly calculated illuminance of the background light 320, and the ranging range is set based on the selected table information.

[0227] Accordingly, appropriate table information is selected from a plurality of table information in accordance with the change in the illumination of the background light 320 , and the distance measurement range is set based on the selected table information, thereby being able to measure the distance to the object within a more appropriate distance range.

[0228] In addition, for example, the process of setting the imaging conditions and the emission conditions (step S320) includes the following processes: setting the light quantity, emission time, and emission number of the light emitted by the light source 120 based on the set distance measurement range (step S321); and setting multiple exposure times and exposure numbers of the imaging unit 110 based on the maximum exposure time within the set distance measurement range. In the process of measuring the distance (step S330), the imaging unit 110 is repeatedly exposed for the set exposure number of times at multiple exposure times calculated to be within the maximum exposure time predetermined corresponding to the set distance measurement range, and the light source 120 is caused to emit light for the set emission number of times, thereby measuring the distance to the object.

[0229] According to this, since the control contents of the imaging unit 110 and the light source 120 are determined based on the distance measurement range, the distance to an object existing within an appropriate distance range can be measured with high accuracy.

[0230] In addition, the distance measuring device 101 involved in embodiment 2 includes: a photometric unit 211, which measures the illumination of the background light 320 in an environment where the background light 320 is irradiated on the object; a calculation unit 221, which sets the distance measuring range based on the illumination of the background light 320 measured by the photometric unit 211; and a control unit 231, which sets the camera conditions of the camera unit 110 including a plurality of pixels each having an APD 111 and the emission conditions for causing the light source 120 to emit light based on the distance measuring range set by the calculation unit 221, and controls the camera unit 110 and the light source 120 based on the set camera conditions and emission conditions, thereby measuring the distance to the object.

[0231] According to this, the operation unit 221 can set (calculate) a suitable distance measurement range (limit distance measurement range) according to the illumination of the background light 320. For this reason, the distance measuring device 101 can measure the distance to an object existing in the range within a suitable distance range according to the illumination of the background light 320. For example, when the distance measuring device 101 is mounted on a moving body such as a vehicle, the maximum value (distance measurement range) that can measure the distance between vehicles can be appropriately set in accordance with the illumination of the background light 320 such as sunlight. In the existing distance measuring device that uses light to measure the distance based on the TOF method, there is a problem of calculating (measuring) the distance that cannot be measured according to the light amount (illuminance) of the background light 320. For example, in the existing distance measuring device, in order to measure the distance to an object located at a distance that cannot be measured according to the light amount (illuminance) of the background light 320, light is emitted. Here, in the existing distance measuring device, since the reflected light of the emitted light cannot be detected, even if there is an object at the position where the distance is to be measured, there is a possibility that the object is erroneously measured as not existing and the distance cannot be measured. For example, in the conventional distance measuring device, when the above-mentioned prompting unit prompts the user etc. of the measured distance, there is a case where erroneous information such as the absence of an object at the measured distance is prompted. Here, the distance measuring device 101 sets the limit value (distance measuring range) of the distance to the object based on the illumination of the background light 320. Thus, the distance measuring device 101 can appropriately measure the distance to the object within the range of the distance. Accordingly, the distance measuring device 101 can, for example, omit the processing of measuring the distance that cannot be measured due to the excessive illumination of the background light 320.

[0232] For example, the distance measuring device 101 includes a light source 120 and an imaging unit 110. For example, the control unit 231 exposes the imaging unit 110 and emits light from the light source 120 by the TOF method, and measures the distance to the object based on the number of occurrences of avalanche multiplication in each of the plurality of APDs 111.

[0233] Thus, the control unit 231 can measure the distance to an object at an appropriate distance based on an appropriate distance measurement range. For example, the control unit 231 can measure the distance to an object within an appropriate distance range by appropriately changing the amount of light emitted from the light source 120 based on the distance measurement range.

[0234] In addition, the present disclosure may also be implemented as a program recording medium that causes a computer to execute the steps contained in the above-mentioned ranging method. In addition, the present disclosure may also be implemented as a non-temporary recording medium such as a CD-ROM that records the program and can be read by a computer. In addition, the present disclosure may also be implemented as information, data or signals representing the program. Furthermore, these programs, information, data and signals may also be released via a communication network such as the Internet.

[0235] (Other embodiments)

[0236] The distance measuring device and the like involved in the embodiments are described above based on each embodiment, but the present disclosure is not limited to each embodiment. As long as it does not depart from the main purpose of the present disclosure, the various modifications that a person skilled in the art may think of in the present embodiment, or the forms constructed by combining the constituent elements in different embodiments are also included in the scope of one or more methods.

[0237] For example, in the above-mentioned embodiment, the processing performed by a specific processing unit such as a computing unit and a control unit may also be performed by another processing unit. In addition, the order of multiple processing may be changed, or multiple processing may be performed in parallel. In addition, the division of the components possessed by the distance measuring device into multiple devices is an example. For example, other devices may also possess the components possessed by one device. For example, the camera unit may also possess a part of the components possessed by the processing unit. In addition, the distance measuring device may also be implemented as a single device.

[0238] For example, the processing described in the above embodiment can be implemented by using a single device (system) for centralized processing, or can also be implemented by using multiple devices for distributed processing. In addition, the processor that executes the above program can be single or multiple. That is, centralized processing can be performed, or distributed processing can be performed.

[0239] In addition, in the above-mentioned embodiment, all or part of the components of the processing unit may be formed by dedicated hardware, or may be implemented by executing a software program suitable for each component. Each component may be implemented by a program execution unit such as a CPU (Central Processing Unit) or a processor reading and executing a software program recorded on a recording medium such as a HDD (Hard Disk Drive) or a semiconductor memory.

[0240] In addition, for example, components such as a processing unit may be composed of one or more electronic circuits. One or more electronic circuits may be general-purpose circuits or dedicated circuits. One or more electronic circuits may include, for example, semiconductor devices, ICs (Integrated Circuits) or LSIs (Large Scale Integrations). ICs or LSIs may be integrated into one chip or into multiple chips. Here, they are referred to as ICs or LSIs, but the names may change depending on the degree of integration, and may be referred to as system LSIs, VLSIs (Very Large Scale Integrations) or ULSIs (Ultra Large Scale Integrations). In addition, FPGAs (Field Programmable Gate Arrays) programmed after the manufacture of LSIs can also be used for the same purpose.

[0241] In addition, the general or specific aspects of the present disclosure may be implemented by a system, device, method, integrated circuit or computer program. Alternatively, it may be implemented by a computer-readable non-temporary recording medium such as an optical disk, HDD (Hard Disk Drive) or semiconductor memory storing the computer program. In addition, it may be implemented by any combination of a system, device, method, integrated circuit, computer program and recording medium.

[0242] Industrial Applicability

[0243] The distance measuring device according to the present disclosure can be applied to a distance measuring device that uses an APD to measure the distance to an object.

[0244] Description of Reference Numerals

[0245] 100, 101 Distance measuring device

[0246] 110 Camera Department

[0247] 111, 111a, 111b APD

[0248] 120 Light Source

[0249] 200, 201 Processing Department

[0250] 210 Acquisition Department

[0251] 211 Light Metering Unit

[0252] 220, 221 Operation unit

[0253] 230, 231 Control Unit

[0254] 240 Storage

[0255] 250 Table Information

[0256] 251 Information in Table 1

[0257] 252 Table 2 Information

[0258] 253 Illuminance information

[0259] 254 Threshold Information

[0260] 300, 301 emerging light

[0261] 310 Reflected Light

[0262] 320 Background light

[0263] 400, 410 Objects

[0264] Time t1, t2, t3, t4, t5, t6, t7, T1.

Claims

1. A distance measurement method, comprising the following steps: Measuring the illumination of the background light in an environment where the object is irradiated with the background light; Setting a ranging range based on the illumination of the background light; Setting an imaging condition of an imaging unit including a plurality of pixels each having an APD (avalanche photodiode) and an emission condition for causing a light source to emit light based on the set distance measurement range; and The distance to the object is measured by controlling the imaging unit and the light source based on the set imaging condition and the emission condition.

2. The distance measurement method according to claim 1, wherein: The process of measuring the illumination of the background light includes the following steps: exposing the imaging unit with only the background light without using the light source to emit light toward the object; acquiring the number of occurrences of avalanche multiplication of the plurality of pixels in a state where the imaging unit is exposed only to the background light; and The illuminance of the background light is calculated based on illuminance information indicating a correspondence relationship between the illuminance of the background light and the number of occurrences of avalanche multiplication, which is digitized in advance, and the number of occurrences of avalanche multiplication of the plurality of pixels.

3. The distance measurement method according to claim 2, wherein: In the step of obtaining the number of occurrences of avalanche multiplication of the plurality of pixels, the number of occurrences of avalanche multiplication of at least two pixels among the plurality of pixels is obtained. In the step of calculating the illuminance of the background light, the illuminance of the background light is calculated based on an average value of the acquired number of occurrences of avalanche multiplication of the two or more pixels.

4. The distance measurement method according to claim 2, wherein: In the step of obtaining the number of occurrences of avalanche multiplication of the plurality of pixels, the number of occurrences of avalanche multiplication of all pixels among the plurality of pixels is obtained. In the step of calculating the illuminance of the background light, the illuminance of the background light is calculated based on an average value of the number of occurrences of avalanche multiplication of all the pixels acquired.

5. The distance measurement method according to claim 1, wherein: In the step of setting the distance measurement range, the distance measurement range is set based on table information that is previously digitized and indicates a correspondence relationship between the illumination of the background light and the distance measurement range.

6. The distance measurement method according to claim 5, wherein: The table information includes: first table information; and second table information having a different correspondence relationship between the illumination of the background light and the distance measurement range than the first table information, In the step of setting the distance measurement range based on the table information, one of the first table information and the second table information is selected, and the distance measurement range is set based on the selected table information.

7. The distance measurement method according to claim 6, wherein: In the process of setting the ranging range based on the table information, the ratio of the illuminance of the light emitted from the light source and reflected by the object to the illuminance of the background light, i.e., the S / N ratio, is calculated based on the number of occurrences of avalanche multiplication of each of the multiple pixels when the light source is caused to emit light and the number of occurrences of avalanche multiplication of the multiple pixels when the light source is not caused to emit light. Based on the calculated S / N ratio, one of the first table information and the second table information is selected, and the ranging range is set based on the selected table information.

8. The distance measurement method according to claim 6, wherein: The ranging range of the illumination relative to the background light in the first table information is set longer than the ranging range of the illumination relative to the background light in the second table information at an illumination between a first threshold indicating illumination and a second threshold indicating illumination higher than the first threshold, The process of setting the distance measurement range based on the table information includes the following steps: When the illumination of the background light is lower than the first threshold, setting the distance measurement range based on the first table information; and When the illuminance of the background light is higher than the second threshold, a distance measurement range is set based on the second table information.

9. The distance measurement method according to claim 6, wherein: In the process of measuring the background light, the exposure process of exposing the camera unit is performed multiple times, the number of occurrences of avalanche multiplication of each of the multiple pixels is obtained in each exposure process, and the illumination of the background light is repeatedly calculated based on the average value of the number of occurrences of avalanche multiplication of each of the multiple pixels in each exposure process. In the step of setting the distance measurement range based on the table information, one of the first table information and the second table information is selected based on the repeatedly calculated change in the illumination intensity of the background light, and the distance measurement range is set based on the selected table information.

10. The distance measurement method according to any one of claims 1 to 9, wherein: The process of setting the imaging conditions and the emission conditions includes the following steps: The light quantity, emission time and emission number of the light emitted by the light source are set as the emission condition based on the set distance measurement range; and Based on the set ranging range, a plurality of exposure times and exposure times are set as the imaging conditions, In the step of measuring the distance, The imaging unit is caused to repeatedly expose the exposure times with the plurality of exposure times calculated to be exposure times within a maximum exposure time predetermined corresponding to the set ranging range, and the light source is caused to emit light the number of times, thereby measuring the distance to the object.

11. A distance measuring device comprising: A light measuring unit for measuring the illumination of background light in an environment where the object is irradiated with background light; a calculation unit that sets a distance measurement range based on the illumination of the background light; and A control unit sets the imaging conditions of an imaging unit including a plurality of pixels each having an APD, i.e., avalanche photodiode, and the emission conditions for causing a light source to emit light based on a set ranging range, and measures the distance to the object by controlling the imaging unit and the light source based on the set imaging conditions and the emission conditions.

12. The distance measuring device according to claim 11, wherein: The distance measuring device includes the light source and the imaging unit. The control unit causes the imaging unit to expose and the light source to emit light by using a TOF (time of flight) method, and measures the distance to the object based on the number of occurrences of avalanche multiplication in each of the plurality of APDs.

13. A program recording medium for causing a computer to execute the distance measuring method according to any one of claims 1 to 10.