Distance measuring device

By adjusting the resolution of the distance image and the background light image according to the background light intensity in the ranging device, the problem of resolution mismatch under environmental changes is solved and the ranging accuracy and accuracy are improved.

CN113646660BActive Publication Date: 2024-09-20DENSO CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080025163.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-03-28
Filing Date
2020-03-24
Publication Date
2024-09-20
Estimated Expiration
2040-03-24

AI Technical Summary

Technical Problem

It is difficult for existing ranging devices to appropriately set the resolutions of distance images and background light images in different environments, resulting in greater noise impact and affecting ranging accuracy. Especially in light and dark environments, it is easy to mistakenly detect background light when the resolutions do not match. for reflected light.

Method used

By introducing a resolution control unit into the ranging device, the pixel range sizes of the distance image and the background light image can be independently set based on the intensity information of the background light, and their resolutions can be adjusted to adapt to usage requirements in different environments.

Benefits of technology

It is possible to appropriately set the resolution of the ranging device in different environments, reduce the impact of noise, improve the accuracy of ranging, and ensure the correct detection of reflected light and background light.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113646660B_ABST
    Figure CN113646660B_ABST
Patent Text Reader

Abstract

The distance measuring device (10) of the present invention comprises: an irradiation unit (20); a light receiving unit (30) having a light receiving surface (S1) formed by arranging a plurality of light receiving elements (31) in a planar shape, taking a collection of light receiving elements within a pixel range as one pixel and outputting a light receiving signal corresponding to the light receiving state of the light receiving elements contained in each pixel; a distance image acquisition unit (50) acquiring a distance image representing the distance from each pixel to an object within the irradiation range of the irradiation light using the light receiving signal; a background light image acquisition unit (60) acquiring a background light image using the light receiving signal; an information acquisition unit (81) acquiring intensity-related information related to the intensity of the background light; and a resolution control unit (82) independently setting the size of the pixel range for the distance image and the background light image to control the resolution according to the intensity of the background light related to the intensity-related information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a distance measuring device for measuring the distance to an object. Background Art

[0002] In the past, as a distance measuring device, various irradiation lights are proposed, and reflected light of such irradiation lights reflected by objects is received, and the time from irradiation of irradiation light to receiving light (ToF: Time of Flight) is calculated, and the distance to the object is measured using the obtained time (refer to Patent Document 1). In such a distance measuring device, in addition to an image containing reflected light and having the value of the distance measured in various directions as the value of each pixel, that is, a distance image, the value of the light reflected by the object due to sunlight, street lamp light, etc. received by the distance measuring device is also taken as background light (also called ambient light), and an image having the intensity of the background light as the value of each pixel, that is, a background light image, is obtained. Moreover, a threshold intensity is determined based on the determined intensity of the background light, and the reflected light in the distance image is detected as light above such an intensity threshold.

[0003] Patent Document 1: Japanese Patent Application Publication No. 2017-173298

[0004] In the conventional distance measuring devices such as the distance measuring device of patent document 1, the distance image and the background light image are both acquired with the same resolution (resolving power). Therefore, for example, if the distance image is taken with high resolution on a clear day, there is a problem that the noise is large and it is difficult to acquire the distance with good accuracy. In addition, on the contrary, the influence of noise is less in a relatively dark environment such as the evening, night, and in a tunnel, so although a higher resolution distance image can be obtained while maintaining the measurement accuracy, only a low resolution distance image can be obtained. In addition, for example, in the case of acquiring a background light image with high resolution in a relatively dark environment, almost no light is detected in each pixel and the intensity of the background light is determined at a very low level. In this case, there is a concern that light other than the reflected light is also mistakenly detected as reflected light from an object. Therefore, it is desired to be able to appropriately set the resolution of the distance image and the background light image according to the use environment of the distance measuring device. Summary of the invention

[0005] The present invention can be implemented as the following aspects.

[0006] As one aspect of the present invention, a distance measuring device for measuring the distance to an object is provided. The distance measuring device comprises: an irradiating unit for irradiating irradiation light; a light receiving unit having a light receiving surface formed by arranging a plurality of light receiving elements capable of receiving reflected light of the irradiated irradiation light in a planar shape, wherein a set of the light receiving elements within a pixel range is regarded as one pixel, and a light receiving signal corresponding to the light receiving state of the light receiving elements included in each pixel is output, and the size of the pixel range is set to be changeable; a distance image acquisition unit for acquiring a distance image representing the distance to an object within the irradiation range of the irradiation light including the object in each pixel using the output light receiving signal; a background light image acquisition unit for acquiring a background light image representing the light receiving intensity of the background light in each pixel using the output light receiving signal; an information acquisition unit for acquiring intensity-related information related to the intensity of the background light; and a resolution control unit for independently setting the size of the pixel range for the distance image and the background light image according to the intensity of the background light related to the acquired intensity-related information, and controlling the resolution of the distance image and the resolution of the background light image.

[0007] According to the distance measuring device of the above-mentioned method, the size of the pixel range of the distance image and the background light image is set independently according to the intensity of the background light related to the acquired intensity-related information, and the resolution of the distance image and the resolution of the background light image are controlled. Therefore, the resolution of the distance image and the background light image can be appropriately set according to the use environment of the distance measuring device.

[0008] The present invention can be implemented in various forms other than the distance measuring device, for example, in the form of a vehicle equipped with a distance measuring device, a distance measuring method, a computer program for implementing these devices and methods, a storage medium storing such a computer program, and the like. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above-mentioned object and other objects, features and advantages of the present invention will become more apparent through the following detailed description with reference to the accompanying drawings. The accompanying drawings are:

[0010] Figure 1 It is an explanatory diagram showing a vehicle equipped with a distance measuring device as one embodiment of the present invention and an irradiation range of irradiation light.

[0011] Figure 2 It is a block diagram showing the structure of the distance measuring device according to the first embodiment.

[0012] Figure 3 This is an explanatory diagram showing an example of transition of the total value of the number of received light output from the MP adder.

[0013] Figure 4: is a flowchart showing the procedure of the distance measurement process according to the first embodiment.

[0014] Figure 5 It is an explanatory diagram showing an example of a distance image and a background light image in a bright environment in the first embodiment.

[0015] Figure 6 It is an explanatory diagram showing an example of a distance image and a background light image in a dark environment in the first embodiment.

[0016] Figure 7 : is a flowchart showing the procedure of distance measurement processing according to the third embodiment.

[0017] Figure 8 It is an explanatory diagram showing an example of the surrounding environment of the vehicle when the distance measurement process in the third embodiment is executed.

[0018] Fig. 9 It is an explanatory diagram showing an example of a distance image and a background light image in the third embodiment.

[0019] Fig.10 It is an explanatory diagram showing another example of the surrounding environment of the vehicle when the distance measurement process in the third embodiment is executed.

[0020] Fig.11 It is an explanatory diagram showing another example of the distance image and the background light image in the third embodiment.

[0021] Fig.12 It is a block diagram showing the structure of a distance measuring device according to a fourth embodiment.

[0022] Fig.13 : is a flowchart showing the procedure of distance measurement processing according to the fourth embodiment. DETAILED DESCRIPTION

[0023] A. First Implementation Method:

[0024] A1.Device composition:

[0025] like Figure 1 As shown, the distance measuring device 10 of this embodiment is mounted on a vehicle 500 and measures the distance to surrounding objects (hereinafter also referred to as "objects") existing in front of the vehicle 500, such as other vehicles, pedestrians, buildings, etc. The distance measuring device 10 irradiates the irradiation light Lz and receives the reflected light from the object. Figure 1 In FIG. 1 , the emission center position of the irradiation light Lz is represented as the origin, the front direction of the vehicle 500 is represented as the Y axis, the direction passing through the origin and from the left to the right in the width direction of the vehicle 500 is represented as the X axis, and the vertically upward direction passing through the origin is represented as the Z axis. Figure 1As shown, the irradiation light Lz is a light that is longitudinally long in the Z-axis direction and is irradiated by a one-dimensional scan in a direction parallel to the X-Y plane. In addition to the reflected light of the irradiation light Lz from the object, the distance measuring device 10 also receives background light. Background light refers to light different from the irradiation light Lz (direct light), or light that is reflected by the object and received by the distance measuring device 10. Light different from the irradiation light Lz corresponds to, for example, sunlight, street light, etc. The distance measuring device 10 determines the intensity of the background light using information related to the intensity of the light received from each specified range Ar, and sets a threshold based on such intensity. Then, the light with an intensity above the set threshold among the light received from each specified range Ar is determined as the reflected light from the object, and the time from irradiating the irradiation light Lz to receiving the reflected light, that is, the flight time TOF (Time of Flight) of the light is determined. Then, such flight time TOF is used as the time for light to go back and forth between the vehicle 500 and the object, and the distance to the object is calculated. The above-mentioned specified range Ar is a range corresponding to the pixel G described later.

[0026] like Figure 2 As shown, the distance measuring device 10 includes an irradiation unit 20 , a light receiving unit 30 , four macro pixel (MP) adders 41 , 42 , 43 , and 44 , a pixel adder 45 , a range image acquisition unit 50 , an information acquisition unit 81 , and a resolution control unit 82 .

[0027] The irradiation unit 20 irradiates the irradiation light Lz. The irradiation unit 20 includes a laser source 21, an irradiation control unit 22, and a scanning unit 23. The laser source 21 is composed of a semiconductor laser diode, and irradiates pulsed laser light as the irradiation light Lz at a predetermined period. For example, the predetermined period is determined and set in advance by experiments or the like for a period longer than a period required for the distance measuring device 10 to receive reflected light from an object within a predetermined range as the irradiation light Lz. In addition, the irradiation light Lz emitted from the laser source 21 is formed into a Figure 1 The irradiation control unit 22 controls the irradiation of the pulsed laser from the laser source 21 and the rotation of the reflector 232. The scanning unit 23 performs a one-dimensional scan of the irradiation light Lz in a specified measurement range by rotating the reflector 232 around the rotation axis 231. The reflector 232 is composed of a MEMS reflector, for example. The rotation of the reflector 232 is controlled by the irradiation control unit 22. By performing a one-dimensional scan of the irradiation light Lz by the scanning unit 23, the irradiation unit 20 irradiates the irradiation light Lz while changing the direction of irradiating the irradiation light Lz to the measurement range. In addition, as the laser source 21, other arbitrary types of laser sources such as solid lasers can be used instead of laser diode elements. In addition, the irradiation light Lz can also be horizontally long, and the scanning can also be a two-dimensional scan.

[0028] The irradiation light Lz irradiated by the irradiation unit 20 is reflected by the object OB within the measurement range. The reflected light reflected by the object OB is received by the light receiving unit 30. In the present embodiment, the light receiving unit 30 receives the reflected light through an optical system (not shown) configured so that the size of the reflected light on the light receiving surface S1 is smaller than the size of the light receiving surface S1. In addition, the reflected light can also be received by the light receiving unit 30 in a manner that a part of it (for example, the end in the long side direction) exceeds the light receiving surface S1.

[0029] The light receiving unit 30 includes a plurality of pixels G arranged two-dimensionally on the light receiving surface S1. Figure 2 In order to facilitate the illustration, only one pixel G is recorded. Figure 1 In the example of FIG. 1 , each pixel G includes four macro pixels MP1 to MP4, two in the vertical direction and two in the horizontal direction. Each macro pixel MP1 to MP4 includes twenty-five light receiving elements 31, five in the vertical direction and five in the horizontal direction. Figure 1 In the example, each pixel G has 10 light receiving elements 31, which are 10 in the vertical direction and 10 in the horizontal direction, totaling 100. In this embodiment, the light receiving element 31 has a SPAD (single photon avalanche diode). When the SPAD inputs light (photons), it outputs a pulsed output signal (hereinafter also referred to as a "light receiving signal") indicating the input of light with a constant probability. Figure 2 In the example of FIG. 1 , each macro pixel MP1 to MP4 outputs 0 to 25 light receiving signals according to the intensity of the received light. In addition, as a whole, the pixel G outputs 0 to 100 light receiving signals according to the intensity of the received light. Figure 2 The pixel range of the pixel G shown, that is, the size consisting of two vertical × two horizontal macro pixels and ten vertical × ten horizontal light receiving elements 31 is called the reference pixel range. However, the size (pixel range) of the pixel G is variable from the reference pixel range and is set according to the intensity of the background light in the distance measurement process described later.

[0030] The MP adder 41 is connected to each light receiving element 31 constituting the macro pixel MP1, and adds the number of light receiving signals outputted from the light receiving elements 31 in the macro pixel MP1. Similarly, the other MP adders 42 to 44 are connected to each light receiving element 31 constituting the macro pixels MP2 to MP4, and add the number of light receiving signals outputted from the light receiving elements 31 in the macro pixels MP2 to MP4 (hereinafter also referred to as "light receiving number") respectively. Figure 2 , only four MP adders 41 to 44 corresponding to four macro pixels MP1 to MP4 constituting one pixel G are shown, but the distance measuring device 10 includes a plurality of MP adders for macro pixels constituting other pixels G.

[0031] The pixel adder 45 adds the number of light received by one pixel G, that is, the number of light receiving signals outputted from the light receiving element 31 included in one pixel. Specifically, the pixel adder 45 is connected to the four MP adders 41 to 44, and inputs the addition results, that is, the total value of the number of light received in each macro pixel MP1 to MP4, from each MP adder 41 to 44, and adds them together. In addition, although the pixel adder 45 is provided for each pixel G, Figure 2 , only the pixel adder 45 corresponding to one pixel G is shown. When the pixel range is changed, the pixel adder 45 adds up the total values ​​input from the macro pixels in the changed pixel range.

[0032] The distance image acquisition unit 50 acquires a distance image. The distance image is an image showing the distance to the object in each pixel G calculated based on the received light intensity of each pixel G. The distance image acquisition unit 50 includes a distance measurement histogram memory 51, a peak detection unit 52, a threshold determination unit 53, and a distance calculation unit 54.

[0033] The memory 51 for ranging histogram stores a histogram (hereinafter referred to as "ranging histogram") in which the light intensity of each pixel G, i.e., the number of light received in each pixel G, is arranged in unit periods. The memory 51 for ranging histogram receives and stores the total value of the pixels G received from the pixel adder 45, i.e., the number of light received in the pixels G. In addition, a memory 51 for ranging histogram is provided for each pixel G. The memory 51 for ranging histogram can also be composed of a rewritable non-volatile memory such as an EEPROM (Electrically Erasable Programmable Read-Only Memory).

[0034] The peak detection unit 52 detects the peak value of the number of received light that is greater than the determination threshold value determined by the threshold determination unit 53 in each irradiation cycle T of each pixel G based on the distance measurement histogram (number of received light) stored in the distance measurement histogram memory 51, and determines the time at this time. Figure 3 In the example, the peak at time t11 and the peak at time t21 are detected.

[0035] The threshold determination unit 53 determines a threshold (hereinafter also referred to as a "determination threshold") used when determining whether the peak of the distance measurement histogram (number of received light) detected by the peak detection unit 52 is a peak of the reflected light based on the irradiation light Lz. The determination threshold is determined based on the background light image. The details of the determination method of the determination threshold will be described later.

[0036] The distance calculation unit 54 calculates the distance to the object. Specifically, the distance to the object is calculated by taking the time from the irradiation time of the irradiation light Lz to the time of the peak value detected by the peak detection unit 52 as the flight time TOF. Figure 3 In the example, the peak detection unit 52 determines the judgment threshold Thr, and the distance calculation unit 54 calculates the distance to the object by taking the period Δt1 from time t0 to time t11 as the flight time TOF because the number of received light is greater than the judgment threshold Thr at time t11. Similarly, the distance calculation unit 54 calculates the distance to the object by taking the period Δt2 from time t2 to time t21 as the flight time TOF because the number of received light is greater than the judgment threshold Thr at time t21.

[0037] The background light image acquisition unit 60 acquires a background light image, which is an image indicating the light intensity of the background light in each pixel G. The background light image acquisition unit 60 includes a first counter 61 and a second counter 62. Each of the counters 61 and 62 is connected to the four MP adders 41 to 44, respectively. The first counter 61 adds the number of light receptions output from the four MP adders 41 to 44 during the first half of the irradiation cycle of the irradiation light Lz. The second counter 62 adds the number of light receptions output from the four MP adders 41 to 44 during the second half of the irradiation cycle of the irradiation light Lz.

[0038] exist Figure 3 In FIG. 6 , the horizontal axis represents time, and the vertical axis represents the total value of the number of light receptions output from the four MP adders 41 to 44. The period from time t0 to time t2 and the period from time t2 to time t4 respectively represent the irradiation cycle T of the irradiation light Lz. Time t1 is a time of 1 / 2 of the period from time t0 to time t2, and time t3 is a time of 1 / 2 of the period from time t2 to time t4. The first counter 61 adds up the number of light receptions in the first half period Ta (time t0 to t1) of the irradiation cycle T from time t0 to time t2. Similarly, the first counter 61 adds up the number of light receptions in the first half period Ta (time t2 to t3) of the irradiation cycle T from time t2 to time t4. In addition, the second counter 62 adds up the number of light receptions in the second half period Tb (time t1 to t2) of the irradiation cycle T from time t0 to time t2. Similarly, the second counter 62 adds the number of light receptions in the second half period Tb (time t3 to t4) of the irradiation cycle T from time t2 to time t4.

[0039] exist Figure 3In the example, a peak value of the number of received light occurs at time t11 in the irradiation cycle T from time t0 to time t2. This peak value is a peak value generated by receiving reflected light. The period Δt1 from time t0 to time t11 at this time corresponds to the time of flight TOF. Similarly, a peak value of the number of received light occurs at time t21 in the irradiation cycle T from time t2 to time t4. This peak value is a peak value generated by receiving reflected light. The period Δt2 from time t2 to time t21 at this time corresponds to the time of flight TOF. In the present embodiment, the peak value of the number of received light is also generated at time t21. Figure 3 In the example, time t11 and time t21 are called peak times. In addition, in each irradiation cycle T, the number of light receptions that is not 0 (zero) is also measured at times other than the peak. This is the number of light receptions based on background light.

[0040] When the peak value is detected by the peak detection unit 52, the background light image acquisition unit 60 acquires the background light image using the number of light received during the first half period Ta and the second half period Tb, which does not include the time when the peak value is detected. The details of such acquisition of the background light image will be described later. In addition, although the background light image acquisition unit 60 includes a set of the first counter 61 and the second counter 62 for each pixel G, Figure 2 For the convenience of illustration, only the group of counters 61 and 62 corresponding to one pixel G is shown.

[0041] Figure 2 The information acquisition unit 81 shown acquires information related to the intensity of the background light (hereinafter referred to as "intensity-related information"). In the present embodiment, the intensity-related information corresponds to the following (i) to (iv).

[0042] (i) Information on the number of light receptions indicating the intensity of the background light image.

[0043] (ii) indicates that the vehicle 500 has Figure 1 Information on the lighting state of the headlight 511 is shown.

[0044] (iii) indicates that the vehicle 500 has Figure 1 Information on the detection results of the sunlight sensor 512 is shown.

[0045] (iv) indicates that the vehicle 500 has Figure 1 Information on the operating status of the wiper device 513 shown.

[0046] The above information (i) is obtained from the background light image acquisition unit 60. In the background light image acquisition unit 60, the average number of light received by the background light image is calculated in the same manner as the threshold value determination unit 53, and the information of such average number of light received is sent to the information acquisition unit 81 as information indicating the intensity of the background light image. The above information (ii) refers to information indicating whether the headlight 511 is on or off, and is obtained from the ECU (Electronic Control Unit) that controls the headlight 511. The above information (iii) refers to the amount of sunlight detected by the sunlight sensor 512, and is obtained from the ECU that controls the sunlight sensor 512. The above information (iv) refers to information indicating whether the wiper device 513 is in operation, and is obtained from the ECU that controls the wiper device 513.

[0047] The resolution control unit 82 sets the size of the pixel range for the distance image and the background light image independently according to the intensity of the background light related to the intensity-related information obtained by the information acquisition unit 81, and controls the resolution of the distance image and the resolution of the background light image. The pixel adder 45 obtains the number of light receptions from all the MPs included in one pixel according to the pixel range set by the resolution control unit 82 and adds them up. In addition, the background light image acquisition unit 60 obtains the number of light receptions from all the MPs included in one pixel according to the pixel range set by the resolution control unit 82 and adds them up through the first counter 61 or the second counter 62. In addition, the details of the processing performed by the resolution control unit 82 will be described later.

[0048] A2. Ranging Processing:

[0049] Figure 4 The distance measurement process shown is a process for measuring the distance to the object. Such distance measurement process is performed when the ignition switch of the vehicle 500 is turned on. In addition, in the vehicle 500, the distance measurement process may be started when an interface that accepts the user's instructions for starting and ending the distance measurement process in advance, such as a physical button set on the instrument panel, or a menu screen displayed on the monitor accepts the user's start instruction. The steps S105 to S150 described later included in the distance measurement process are repeatedly executed every irradiation period T.

[0050] The information acquisition unit 81 acquires information related to the intensity of the background light (step S105). Specifically, all of the above-mentioned information (i) to (iv) are acquired. Regarding the information (i), the average number of light receptions of the entire background light image obtained in the previous cycle is acquired.

[0051] The resolution control unit 82 determines the brightness environment of the irradiation range of the irradiation light Lz based on the intensity-related information obtained in step S105 (step S110). In the present embodiment, the brightness environment refers to any one of a bright environment (hereinafter referred to as a "bright environment") and an environment darker than the bright environment (hereinafter referred to as a "dark environment"). The resolution control unit 82 determines that it is a bright environment when the average number of light received by the background light is greater than the threshold, and determines that it is a dark environment when it is less than the threshold. In step S110, when the above information (i) shows that the average number of light received by the background light image is greater than the threshold, the above information (ii) indicates that the headlight 511 is off, the above information (iii) indicates that the detection result of the sunlight sensor 12 is greater than the prescribed sunlight amount threshold, and the above information (iv) indicates that the wiper device 513 is not operating, it is determined to be a bright environment, and in other cases it is determined to be a dark environment. Generally speaking, when the vehicle 500 is traveling in a place different from the shadow of a building, a tunnel, etc. on a sunny day, it is determined to be a bright environment. In contrast, situations at night, in the shadow of a building, while driving in a tunnel, etc. are determined to be dark environments.

[0052] The resolution control unit 82 determines the resolutions of the distance image and the background light image independently according to the brightness environment determined in step S110 (step S115 ).

[0053] In step S115, the resolution control unit 82 reduces the resolution of the distance image Fd1 by making the pixel range larger than the reference pixel range in a bright environment, and makes the pixel range of the background light image Fb1 the reference pixel range. Figure 5 As shown, the size of the pixel Gd1 of the distance image Fd1 of the bright environment is larger than the size of the pixel Gb1 of the background light image Fb1, that is, the size of the pixel G. In other words, the distance image has a lower resolution than the background light image. In this embodiment, the horizontal length of the pixel Gd1 is three times the horizontal length of the pixel G, and the vertical length of the pixel Gd1 is four times the vertical length of the pixel G. In addition, the specific size of the pixel Gd1 is not limited to the size of this embodiment, and can also be any size larger than the pixel G.

[0054] Furthermore, in step S115 , the resolution control unit 82 sets the pixel range of the distance image Fd2 as the reference pixel range in a dark environment, and reduces the resolution of the background light image Fb2 by increasing the pixel range. Figure 6 The pixel range of the background light image Fb2 of the dark environment shown is Figure 5The pixel range of the background light image Fb2 of the dark environment is the same as that of the distance image Fd1 of the bright environment shown. In addition, the pixel range of the background light image Fb2 of the dark environment can be different from the pixel range of the distance image Fd1 of the bright environment. However, it should be larger than the size of the reference pixel range (pixel G). In other words, the background light image has a lower resolution than the distance image. The reason for setting such a resolution in step S115 will be described later. In addition, Figure 5 , 6 In FIG. 1 , only the size of each pixel (pixel range) is shown, and the light intensity in each pixel is omitted.

[0055] like Figure 4 As shown, the resolution control unit 82 establishes a correspondence between the MP adder and the pixel adder 45 according to the resolution of the distance image determined in step S115, that is, the pixel range of the distance image, and the background light image acquisition unit 60 establishes a correspondence between the MP adder and the two counters 61 and 62 according to the resolution of the distance image determined in step S115, that is, the pixel range of the distance image (step S120). Figure 5 For the distance image of the bright environment shown in Figure 2 Compared with the reference pixel range (pixel G) shown in FIG. 1 , a correspondence relationship is established between the MP adders tripled in number horizontally and the MP adders quadrupled in number vertically and one pixel adder 45. In addition, for example, Figure 5 For the background light image of the bright environment shown in FIG. Figure 2 In this way, the four MP adders 41 to 44 are associated with the two counters 61 and 62, respectively.

[0056] like Figure 4 As shown, the irradiation unit 20 irradiates the irradiation light Lz (step S125). When there is an object OB, the light receiving element 31 receives the reflected light from the object OB and outputs a light receiving signal. Then, in step S120, the pixel adder 45 corresponding to the MP adder adds the number of received light, and the two counters 61 and 62 add the number of received light.

[0057] The distance image acquisition unit 50 acquires the distance image, i.e., information indicating the number of light received by each pixel (step S130). The background light image acquisition unit 60 acquires the background light image (step S135). The method for acquiring the background light image is described. First, the background light image acquisition unit 60 determines for each pixel G in which of the first half period Ta and the second half period Tb of the previous illumination cycle T the peak value was detected. Next, the first counter 61 and the second counter 62 are used to determine the number of light received during the period in this illumination cycle T corresponding to the period determined as the period in which the peak value was detected. For example, Figure 3 As shown, Figure 2The pixel G shown in the figure detects a peak value in the first half period Ta in the illumination cycle T from time t0 to t2, so the number of light received in the second half period Tb, that is, the value of the second counter 62, is determined as the number of light received in the background light image in the next illumination cycle T from time t2 to t4. Then, the background light image acquisition unit 60 converts the number of light received determined in the current illumination cycle T to determine the number of light received in the entire illumination cycle T for each pixel G. For example, as described above, when the number of light received in the second half period Tb, that is, the value of the second counter 62, is determined, the number of light received in the entire illumination cycle T is determined by doubling such value. Conversely, the same is true when the number of light received in the first half period Ta, that is, the value of the first counter 61, is determined, and the number of light received in the entire illumination cycle T is determined by doubling such value. And, assuming that no peak is detected in either the first half period Ta or the second half period Tb, the value obtained by adding the value of the first counter 61 to the value of the second counter 62 is determined as the number of light received in the entire illumination cycle T. In addition, the background light may use an averaged value instead of the added value. The first half period Ta and the second half period Tb, which are 1 / 2 of the irradiation cycle T, correspond to a subordinate concept of the unit period in the present invention.

[0058] like Figure 4 As shown, the threshold determination unit 53 determines the determination threshold using the background light image acquired in step S135 (step S140). At this time, the determination threshold is determined for each pixel G according to the resolution of the distance image. Figure 5 For one pixel Gd1 of the distance image Fd1 shown, the average value of the number of light receptions of twelve pixels Gb1 in the background light image existing at the corresponding position in the background light image is calculated, and the determination threshold is determined to be a value larger than the average value.

[0059] The peak detection unit 52 applies the determination threshold determined in step S140 to the range image acquired in step S130 to determine the peak time (step S145). Figure 3 In the example, times t11 and t21 are determined as peak times.

[0060] The distance calculation unit 54 calculates the distance to the object OB using the peak time identified in step S145 (step S150 ).

[0061] Here, the reason for reducing the resolution by making the pixel range of the distance image in a bright environment and the pixel range of the background light image in a dark environment larger than the reference pixel range in the above-mentioned step S115 is explained. In a bright environment, the background light is strong, so when a pixel is composed of fewer SPADs, the intensity of the reflected light detected in each pixel is relatively small compared to the background light. In other words, the S / N ratio is degraded, and the reflected light (object OB) cannot be correctly determined. Therefore, in this embodiment, for the distance image in a bright environment, the resolution is reduced by making the pixel range larger than the reference pixel range, thereby constituting a pixel with more SPADs, thereby suppressing the influence of noise (background light) and correctly determining the reflected light (object OB).

[0062] In addition, in a dark environment, the brightness of the background light is weak, so when a pixel is composed of fewer SPADs, there is a concern that the background light may hardly be detected. Therefore, in this embodiment, for the background light image in a dark environment, the resolution is reduced by making the pixel range larger than the reference pixel range, thereby forming a pixel with more SPADs, thereby correctly determining the background light.

[0063] According to the distance measuring device 10 of the first embodiment described above, the size of the pixel range of the distance image and the background light image is set independently according to the intensity of the background light related to the acquired intensity-related information, and the resolution of the distance image and the resolution of the background light image are controlled. Therefore, the resolution of the distance image and the background light image can be appropriately set according to the use environment of the distance measuring device.

[0064] In addition, in the case of a bright environment, that is, when the intensity of the background light is high, the size of the pixel range of the distance image is set larger to reduce the resolution compared to the case where the intensity is low, so that the influence of noise (background light) is suppressed and the reflected light (object OB) is accurately determined. Therefore, even if the object OB is far away from the vehicle 500, the distance to the object OB can be accurately measured.

[0065] In addition, in the case of a dark environment, that is, when the intensity of the background light is low, the size of the pixel range of the background light image is set larger to reduce the resolution compared to the case of a high intensity, so that the background light can be correctly determined. Therefore, an appropriate value can be set as the determination threshold, and the reflected light (peak) from the object OB can be correctly detected.

[0066] Furthermore, since the brightness environment, that is, the intensity of the background light, is determined using the above four pieces of information (i) to (iv), such a brightness environment can be accurately determined.

[0067] Furthermore, since the SPAD is provided as the light receiving element 31 , the presence or absence of light reception in each pixel G can be determined with high accuracy.

[0068] In addition, since the background light image used in determining the judgment threshold is obtained by using the number of light received during the period in which no peak is detected in the two first half periods Ta and the second half period Tb constituting the irradiation cycle T, the intensity of the background light can be determined with good accuracy without being affected by the reflected light. In addition, in order to obtain the background light image, there is no need for a period different from the irradiation cycle T, such as the period before the irradiation of the irradiation light Lz, so the background light image can be efficiently obtained. In addition, since the background light image is obtained in each irradiation cycle T, the judgment threshold can be set to an appropriate value even when the brightness environment partially changes within the irradiation range.

[0069] B. Second Implementation Method:

[0070] The device configuration of the distance measuring device 10 of the second embodiment is the same as that of the distance measuring device 10 of the first embodiment, so the same components are denoted by the same reference numerals and their detailed description is omitted. Figure 4 The distance measurement process of the first embodiment shown is the same, so the same steps are denoted by the same reference numerals and their detailed description is omitted.

[0071] In the distance measuring device 10 of the second embodiment, the detailed process of step S115 of the distance measuring process is different from that of the first embodiment. Specifically, the resolution control unit 82 makes the pixel range of the distance image the reference pixel range in a bright environment, and improves the resolution by reducing the pixel range for the background light image. In addition, the resolution control unit 82 improves the resolution of the distance image by making the pixel range smaller than the reference pixel range in a dark environment, and makes the pixel range of the background light image the reference pixel range.

[0072] In bright environments, the background light is strong, so even a small number of SPADs can fully detect the intensity of the background light. Therefore, by reducing the pixel range, the intensity of the background light can be acquired with a higher resolution.

[0073] In addition, in a dark environment, the background light as noise is weak, so it is easy to identify the reflected light from the object. Therefore, even if the pixel range is reduced, the reflected light can be correctly determined, and a high-precision and high-resolution distance image can be obtained. Therefore, the object OB existing at a long distance can be correctly determined, and the smaller object OB existing at a close distance can be correctly determined.

[0074] The distance measuring device 10 of the second embodiment described above has the same effect as the distance measuring device 10 of the first embodiment. In addition, in a bright environment, the resolution of the background light image is improved by reducing the pixel range, so the intensity of the background light can be obtained with a higher resolution. In addition, in a dark environment, the resolution of the distance image is improved by making the pixel range smaller than the reference pixel range, so the distance image can be obtained with a higher resolution. Therefore, the object OB existing at a long distance can be correctly determined, and the smaller object OB existing at a close distance can be correctly determined.

[0075] C. Third Implementation Method:

[0076] The device configuration of the distance measuring device 10 of the third embodiment is the same as that of the distance measuring device 10 of the first embodiment, and therefore the same components are denoted by the same reference numerals and detailed description thereof will be omitted. Figure 7 The distance measurement process of the third embodiment shown in the figure is different from the distance measurement process of the first embodiment in that steps S105a, S110a, S115a, S140a, S145a, and S150 are executed instead of steps S105, S110, S115, S140, S145, and S150. The other steps of the distance measurement process of the third embodiment are the same as those of the distance measurement process of the first embodiment, so the same reference numerals are attached to the same steps and their detailed description is omitted.

[0077] The information acquisition unit 81 acquires information related to the intensity of the background light according to the specified area (step S105a). In the present embodiment, the specified area is a rectangular area that is four times the pixel G (reference pixel range) in the vertical direction and three times the pixel G (reference pixel range) in the horizontal direction. In addition, in step S105a, only the above-mentioned (i) of the above-mentioned information (i) to (iv) is acquired according to the specified area, and the other three information (ii) to (iv) are acquired in the same way as the first embodiment. For information (i), the pixel value of the background light of each pixel G contained in the specified area is acquired (the total value of the number of light received during the period when the peak value was not detected in the previous irradiation cycle T).

[0078] The resolution control unit 82 determines the brightness environment (bright environment or dark environment) of the irradiation range of the irradiation light Lz for each specified area based on the intensity-related information obtained in step S105a (step S110a). In the present embodiment, the brightness environment is determined by dividing it into three stages, which is different from the first embodiment. That is, it is determined by dividing it into three stages: a bright environment in which the average number of light received by the background light is higher than the first threshold, a medium environment in which the average number of light received by the background light is less than the first threshold and greater than the second threshold, and a dark environment less than the second threshold. In addition, the second threshold is a value lower than the first threshold.

[0079] The resolution control unit 82 determines the resolution of each of the distance image and the background light image independently for each predetermined area based on the brightness environment determined in step S110 a (step S115 a ).

[0080] Figure 8 The image Fg0 shown shows an example of the surrounding environment in front of the vehicle 500 when the distance measurement process is executed. In this example, in front of the vehicle 500, there are the sun SN and the oncoming vehicle CA traveling in the opposite lane of the road RD.

[0081] In the area where the sun SN is present as viewed from the vehicle 500, the background light is strong. Therefore, the predetermined area included in such an area is determined to be a bright environment. Fig. 9 As shown in the upper part of , in the distance image Fg1, for the specified area included in the area P11 corresponding to the sun SN, a larger pixel range is determined as one pixel Gd3. In contrast, for the specified area included in the area P12 other than the area P11 in the distance image Fg1, it is determined as a medium environment, and a medium-sized pixel range is determined as one pixel Gd4. In the present embodiment, the pixel range of the specified area determined as a bright environment in the distance image is the same as the specified area, which is a rectangular area that is four times the pixel G (reference pixel range) in the vertical direction and three times the pixel G (reference pixel range) in the horizontal direction. In addition, the pixel range of the specified area determined as a medium environment in the distance image is a rectangular area that is twice the pixel G (reference pixel range) in the vertical direction and one time the pixel G (reference pixel range) in the horizontal direction.

[0082] like Fig. 9As shown in the lower part of , in the background light image Fg2, for the specified area included in the area P11 determined as the bright environment, a smaller pixel range is determined as one pixel Gb3. In contrast, for the specified area included in the area P12 other than the area P11 in the background light image Fg2, a medium pixel range is determined as one pixel Gb4. In the present embodiment, the pixel range of the specified area determined as the bright environment in the background light image is the same as the reference pixel range. In addition, the pixel range of the specified area determined as the medium environment in the background light image is a rectangular area that is twice the pixel G (reference pixel range) in the vertical direction and once the pixel G (reference pixel range) in the horizontal direction. In addition, the area P11 in the background light image Fg2 is equivalent to the subordinate concept of the bright part in the present invention. In addition, the area P12 in the background light image Fg2 is equivalent to the subordinate concept of the other parts except the bright part in the present invention. In addition, the area P11 in the distance image Fg1 is equivalent to the subordinate concept of the corresponding part of the bright part in the present invention. The region P12 in the distance image Fg1 corresponds to a subordinate concept of other parts except the bright part corresponding part in the present invention.

[0083] Fig.10 The image Fg3 shown shows another example of the surrounding environment in front of the vehicle 500 when the distance measurement process is performed. In this example, there are a building BD and an oncoming vehicle CA traveling in the opposite lane of the road RD in front of the vehicle 500. The shadow SD of the building BD extends to the road RD.

[0084] When viewed from the vehicle 500, the background light is weak in the area where the shadow SD exists. Therefore, the predetermined area included in such an area is determined to be a dark environment. Fig.11 As shown in the upper part of FIG. 1 , in the distance image Fg4, for the specified area included in the area P41 corresponding to the shadow SD, a smaller pixel range is determined as one pixel Gd5. In contrast, for the specified area included in the area P42 other than the area P41 in the distance image Fg4, it is determined as a medium environment, and a medium-sized pixel range is determined as one pixel Gd6. In this embodiment, the pixel range of the specified area determined as a dark environment in the distance image is the same as the reference pixel range.

[0085] like Fig.11As shown in the lower part of , in the background light image Fg5, for the specified area included in the area P41 determined as a dark environment, a larger pixel range is determined as one pixel Gb5. In contrast, for the specified area included in the area P42 other than the area P41 in the background light image Fg5, it is determined to be a medium environment, and a medium-sized pixel range is determined as one pixel Gb6. In addition, the area P42 in the background light image Fg5 is equivalent to the subordinate concept of the bright part in the present invention. In addition, the area P41 in the background light image Fg5 is equivalent to the subordinate concept of the other parts other than the bright part in the present invention. In addition, the area P42 in the distance image Fg4 is equivalent to the subordinate concept of the corresponding part of the bright part in the present invention. In addition, the area P41 in the distance image Fg4 is equivalent to the subordinate concept of the other parts other than the corresponding part of the bright part in the present invention.

[0086] like Figure 7 As shown, after step S115a is executed, the above steps 120 to S150 are executed.

[0087] The distance measuring device 10 of the third embodiment described above has the same effect as the distance measuring device 10 of the first embodiment. In addition, since the brightness environment is determined according to the specified area and the resolution of the distance image is set, the distance and reflected light can be measured with higher resolution in the area where the background light (noise) is weak, and the distance and reflected light can be determined with good accuracy even in the area where the background light is strong. In addition, since the brightness environment is determined according to the specified area and the resolution of the background light image is set, the background light can be determined with good accuracy even in the area where the background light (noise) is weak, and a more appropriate value can be set as the determination threshold in the area where the background light (noise) is strong.

[0088] D. Fourth Implementation Method:

[0089] like Fig.12 As shown, the distance measuring device 10a of the fourth embodiment is different from the distance measuring device 10 of the first embodiment in that it includes distance measuring histogram memories 91, 92, 93, 94 instead of the MP adders 41 to 44, and includes a distance image acquisition unit 50a instead of the distance image acquisition unit 50. The other configurations of the distance measuring device 10a of the fourth embodiment are the same as those of the distance measuring device 10 of the first embodiment, so the same reference numerals are attached to the same components, and their detailed descriptions are omitted.

[0090] The distance measurement histogram memory 91 is connected to each light receiving element 31 constituting the macro pixel MP1, and stores a histogram of the macro pixel MP1, that is, a histogram in which the number of light receiving signals output from the light receiving elements 31 in the macro pixel MP1 is arranged in unit period. Similarly, the other distance measurement histogram memories 91 to 94 store histograms about the macro pixels MP2 to MP4, that is, a histogram in which the number of light receiving signals output from the light receiving elements 31 in the macro pixels MP2 to MP4 is arranged in unit period.

[0091] The distance image acquisition unit 50a is different from the distance image acquisition unit 50 of the first embodiment in that it does not include the distance measurement histogram memory 51 and includes the pixel adder 45. The other configurations of the distance image acquisition unit 50a of the fourth embodiment are the same as those of the distance image acquisition unit 50 of the first embodiment, so the same reference numerals are attached to the same components and their detailed descriptions are omitted.

[0092] In the fourth embodiment, the pixel adder 45 is connected to the above-mentioned distance histogram memories 91 to 94. The pixel adder 45 obtains a histogram from the distance histogram memories selected from the distance histogram memories 91 to 94 according to the pixel range set by the resolution control unit 82, and adds (totals) these histograms to generate a distance histogram. For example, in the case of a bright environment, for a distance image, all the histograms of the four macro pixels MP1 to MP4 can be added to form a distance histogram of one pixel. On the other hand, for a background light image of a bright environment, the histogram of the macro pixel MP1 and the histogram of the macro pixel MP4 can be added to form a distance histogram of one pixel, and similarly, the histogram of the macro pixel MP2 and the histogram of the macro pixel MP3 can be added to form a distance histogram of one pixel.

[0093] Fig.13 The distance measurement process of the fourth embodiment shown is different from the distance measurement process of the first embodiment in that step S120a is executed instead of step S120, steps S125 to S135 are omitted, and steps S126 and S128 are additionally executed. The other processes in the distance measurement process of the fourth embodiment are the same as the distance measurement process of the first embodiment, so the same reference numerals are attached to the same processes and their detailed descriptions are omitted.

[0094] After completing step S115, the resolution control unit 82 establishes a correspondence between the distance measurement histogram memory and the pixel adder 45 according to the resolution of the distance image determined in step S115, that is, the pixel range of the distance image, and the background light image acquisition unit 60 establishes a correspondence between the distance measurement histogram memory and the two counters 61 and 62 according to the resolution of the distance image determined in step S115, that is, the pixel range of the distance image (step S120a). After such step S120a, the irradiation of the irradiation light Lz is omitted (step S125), and the background light of the selected macro pixel MP is added according to the resolution set in step S115 to acquire the background light image (step S126). Similarly, based on the histogram generated by the pixel adder 45 based on the resolution set in step S115, the distance image is acquired (step S128). As described above, in the distance measuring device 10a of the fourth embodiment, the distance measuring histogram memories 91 to 94 are provided for each macro pixel MP1 to MP4, so that the information of the number of light received in each macro pixel MP1 to MP4 has been obtained. Therefore, after the resolution is determined for the distance image and the background light image respectively in step S115, even if the irradiation light Lz is not re-irradiated, the judgment threshold can be determined based on the data (distance measuring histogram) stored in the distance measuring histogram memories 91 to 94, the peak time can be determined, and the distance can be calculated. After completing step S128, the above steps S140 to S150 are executed.

[0095] The distance measuring device 10 a according to the fourth embodiment described above has the same effects as those of the distance measuring device 10 according to the first embodiment.

[0096] E. Other implementation methods:

[0097] (E1) In each embodiment, when determining the judgment threshold in step S140, the judgment threshold is determined for each pixel G, but the present invention is not limited to this. For example, a judgment threshold may also be determined for the entire image. In such a configuration, for example, the average value of the pixel values ​​(number of light received) of all the pixels G may be calculated, and the judgment threshold may be determined as a value greater than such an average value. In addition, in each embodiment, the judgment threshold is the average value of the number of light received of all the pixels at the corresponding position in the background light image relative to a pixel of the distance image, but the present invention is not limited to this. For example, it may also be a statistical value such as the variance or median of all the pixels at the corresponding position in the background light image relative to a pixel of the distance image.

[0098] (E2) In each embodiment, the information (i) in the intensity-related information used to determine the brightness environment is the number of light receptions representing the intensity of the background light image in the last illumination cycle T, but the present invention is not limited to this. For example, the number of light receptions representing the intensity of the background light image in the last illumination cycle T may also be used. In addition, for example, statistical values ​​such as the average value, total value, median, and variance of the intensity of the background light image in multiple illumination cycles T before the last may also be used.

[0099] (E3) In each embodiment, the intensity-related information used to determine the brightness environment is four pieces of information (i) to (iv), but the present invention is not limited to this. For example, it can also be configured so that the user determines the brightness environment through visual confirmation, etc., and inputs the judgment result from a specified user interface to the vehicle 500. In such a configuration, the information representing the brightness environment input from the specified user interface is equivalent to the intensity-related information. In addition, for example, a part of the information (i) to (iv) can also be omitted. In addition, for example, the size, pitch, etc. of the sound obtained by a microphone mounted on the vehicle 500 can also be used as the intensity-related information. In such a configuration, for example, when the sound intensity is greater than a threshold value, it can be inferred that it is daytime and determined as a bright environment, and when the intensity is below the threshold value, it can be inferred that it is nighttime and determined as a dark environment.

[0100] (E4) In each embodiment, in the distance measurement process, the resolution of the distance image and the resolution of the background light image are determined, but such resolution determination may be performed as a process different from the distance measurement process. Specifically, as the resolution determination process, the irradiation light Lz and the reception of the reflected light are first performed, and then the above-mentioned steps S105 to S120 and S140 are performed. In the distance measurement process, steps S125, S130, S135, S145, and S150 are performed. In such a configuration, the same effects as those of the embodiments are achieved.

[0101] (E5) In each embodiment, the images acquired in the distance measurement process are two types: the distance image and the background light image. However, in addition to these images, an image representing the reflectivity from the object OB in each pixel (hereinafter referred to as a "reflection intensity image") may also be acquired. In addition, in such a reflection intensity image, the same resolution as that of the distance image may be determined.

[0102] (E6) The distance measuring device 10 of each embodiment can be applied to the following devices, for example. For example, it can be applied to a path generation device that generates a driving path of the vehicle 500. In such a configuration, the distance to the object OB detected by the distance measuring device 10 can also be used when generating a path that avoids obstacles on the road during driving. In addition, for example, it can be applied to an automatic driving control device. In such a configuration, the speed and steering amount of the vehicle 500 can also be determined by using the distance to the object OB detected by the distance measuring device 10. In addition, for example, it can be applied to a detection result display device for displaying the distance to the object OB to the passengers of the vehicle 500. In such a configuration, the passengers of the vehicle 500 can visually confirm the distance to the object existing in front of the vehicle 500. In addition, for example, it can be applied to a remote information acquisition device that notifies the remote operation control device of the surrounding conditions of the vehicle 500. In such a configuration, in addition to the information on the distance to the object OB, a distance image and a background light image can also be sent to the remote operation control device (for example, a server device) on the operator side who remotely operates the vehicle 500. In addition, for example, the distance measuring device 10 may be fixedly installed instead of being mounted on the vehicle 500. For example, the distance measuring device 10 may be mounted on a monitoring camera (fixed-point camera) to acquire an image and measure the distance to the object OB.

[0103] (E7) In each embodiment, the background light image used in determining the judgment threshold is obtained by using the number of light received during the period in which no peak is detected in the two first half periods Ta and the second half period Tb constituting the irradiation cycle T, but the present invention is not limited to this. For example, it is also possible to obtain the background light image used in determining the judgment threshold by using the total number of light received during all periods of the irradiation cycle T regardless of the presence or absence of a peak. In such a configuration, for example, the value obtained by multiplying the total number of light received during all periods of the irradiation cycle T by a predetermined ratio can be set as the judgment threshold. In addition, although in each embodiment, the first half period Ta and the second half period Tb are evenly divided into two equal parts, the present invention is not limited to this. For example, it is also possible to divide it into ten equal parts, so that the first half period Ta is 9 / 10, and the second half period Tb is the remainder (1 / 10). In addition, in this way, the light received during the second half period Tb can be limited to the light received by the reflected light from a very long distance where the object is almost certainly not present, that is, the light received during the non-irradiation period. Therefore, the peak determination of the background light image acquisition unit 60 can be omitted, and the total number of light received during the second half period Tb can be used as the background light intensity. In addition, instead of the total number of received light, any type of statistical value such as the average value, median value, standard deviation, and variance of the number of received light may be used as the background light.

[0104] (E8) The configuration of the distance measuring device 10 in each embodiment is only an example and can be subjected to various changes. For example, in the first and second embodiments, the brightness environment is in two stages, and in the third embodiment, the brightness environment is in three stages, but it can also be any number of stages. In addition, the resolution (size of the pixel range) of each image (distance image and background light image) under each brightness environment can also be set to an arbitrary value. In addition, the size of the prescribed area in the third embodiment can also be an arbitrary size. For example, the entire distance image and background light image can be divided into four equal parts as a prescribed area. In addition, any light receiving element other than SPAD can also be used as the light receiving element 31.

[0105] (E9) The distance measuring device 10 and the method thereof described in the present invention may also be implemented by a dedicated computer provided by a processor and a memory programmed to execute one or more functions embodied by a computer program. Alternatively, the distance measuring device 10 and the method thereof described in the present invention may also be implemented by a dedicated computer provided by a processor composed of one or more dedicated hardware logic circuits. Alternatively, the distance measuring device 10 and the method thereof described in the present invention may also be implemented by one or more dedicated computers composed of a combination of a processor and a memory programmed to execute one or more functions and a processor composed of one or more hardware logic circuits. In addition, the computer program may also be stored as an instruction executed by a computer in a non-transitory tangible recording medium that can be read by a computer.

[0106] The present invention is not limited to the above-mentioned embodiments, and can be implemented in various configurations within the scope of the main purpose. For example, in order to solve part or all of the above-mentioned problems, or to achieve part or all of the above-mentioned effects, the technical features in each embodiment corresponding to the technical features in the method described in the invention content column can be appropriately replaced or combined. In addition, if the technical feature is not described as a necessary feature in this specification, it can be appropriately deleted.

Claims

1. A distance measuring device for measuring a distance to an object, comprising: The irradiation part irradiates the irradiation light; The light receiving unit has a light receiving surface formed by arranging a plurality of light receiving elements in a planar shape, a set of the light receiving elements within a pixel range is regarded as one pixel, and a light receiving signal corresponding to the light receiving state of the light receiving elements included in each pixel is output, and the size of the pixel range is set to be changeable; a distance image acquisition unit that acquires a distance image, which indicates the distance in each pixel to an object within an irradiation range of the irradiation light including the object, using the output light reception signal; A background light image acquisition unit, which uses the output light reception signal to acquire a background light image representing the light reception intensity of the background light in each pixel; An information acquisition unit, which acquires intensity-related information related to the intensity of the background light; and The resolution control unit sets the size of the pixel range for the distance image and the background light image independently according to the intensity of the background light related to the acquired intensity-related information, and controls the resolution of the distance image and the resolution of the background light image.

2. The distance measuring device according to claim 1, wherein: The resolution control unit sets the size of the pixel range to be smaller for at least a part of the background light image when the intensity of the background light related to the intensity-related information is high, compared to when the intensity is low.

3. The distance measuring device according to claim 2, wherein: The resolution control unit sets the size of the pixel range in a bright portion, which is a portion of the background light image where the intensity of the background light is greater than a predetermined threshold, to be smaller than the size of the pixel range in other portions of the background light image except the bright portion.

4. The distance measuring device according to any one of claims 1 to 3, wherein: The resolution control unit sets a larger size of the pixel range for at least a portion of the range image when the intensity of the background light related to the intensity-related information is high than when the intensity is low.

5. The distance measuring device according to claim 4, wherein: The resolution control unit sets a size of the pixel range of a portion of the range image corresponding to a bright portion, ie, a bright portion corresponding portion, to be larger than a size of the pixel range of other portions of the range image except for the bright portion corresponding portion.

6. The distance measuring device according to any one of claims 1 to 3, wherein: The strength-related information includes at least one of the following information: Information indicating the intensity of the background light; Information indicating a lighting state of a headlamp of a vehicle equipped with the distance measuring device; information indicating a detection result of a sunlight sensor provided in the vehicle and detecting an amount of sunlight; and Information indicating an operating state of a wiper device included in the vehicle.

7. The distance measuring device according to any one of claims 1 to 3, wherein: The light receiving element includes a single photon avalanche diode that outputs an output signal indicating incident light as the light receiving signal.

8. The distance measuring device according to claim 7, wherein: The background light image acquisition unit performs the following processing: dividing an irradiation period during which the irradiation unit irradiates the irradiation light into unit periods of equal time length, and finding a total value of the number of the single-photon avalanche diodes that output the output signal in each unit period; determining whether or not there is a unit period in which the total value of the number of the single-photon avalanche diodes obtained is greater than a predetermined threshold value; In the case where it is determined that there is a unit period in which the total value of the number of the single-photon avalanche diodes obtained is greater than the threshold value, the background light image is acquired using the total value of the number of the single-photon avalanche diodes that output the output signal in the other unit periods except the determined unit period; as well as When it is determined that there is no unit period in which the total value of the number of the single-photon avalanche diodes is greater than the threshold value, the background light image is acquired using the total value of the number of the single-photon avalanche diodes that output the output signals in all the unit periods.