Distance measuring apparatus, mobile device, and control method
By setting a search window based on the optical characteristic value of the image height in the stereo camera device, the problem of distance measurement accuracy under the influence of vignetting of the optical system is solved, and high-precision parallax calculation under different image height conditions is achieved.
Patent Information
- Application Number
- CN202410192949.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-22
- Filing Date
- 2024-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
When existing stereo camera devices have vignetting in the optical system, the accuracy of distance measurement is affected by the image height, making it difficult to reduce errors in parallax calculations.
By setting the search window based on the optical characteristic value of the image height in the parallax calculation unit, and using the beam center gap on the exit pupil to determine the size and shape of the search window, the change in baseline length is reduced and the accuracy of distance measurement is improved.
It effectively reduces the error in parallax calculation, improves the accuracy of distance measurement, and ensures measurement accuracy under different image height conditions.
Smart Images

Figure CN118533134A
Abstract
Description
Technical Field
[0001] The invention relates to a distance measuring device, a movable device, a control method and the like. Background Art
[0002] Regarding the imaging device, there are stereo camera devices that calculate the amount of parallax of a set of images that have parallax with each other and are captured from different viewpoints, and measure the distance to the subject. The amount of parallax is calculated by extracting a region called a search window from each image from different viewpoints and obtaining the amount of movement of the search window between images having a consistent pattern within the search window region using a known correlation calculation method.
[0003] Japanese Patent 5365387 discloses a technique for changing the size and shape of a search window during parallax calculation according to image height in a stereo camera, specifically, a technique for changing the size and shape according to a distortion correction amount depending on image height.
[0004] In addition, Japanese Patent No. 6921500 discloses a configuration that can acquire a set of images having parallax with one another using one camera. Each pixel of the imaging element is configured to have a divided photoelectric conversion unit while sharing a microlens, and each photoelectric conversion unit receives one of the light beams (luminous flux) that pass through different pupil regions in one optical system, thereby acquiring a set of images having parallax with one another. This is called a pupil division phase difference distance measurement method.
[0005] In the pupil division phase difference method disclosed in Japanese Patent 6921500, in the presence of vignetting of the optical system, the value of the baseline length varies according to the image height, and the accuracy of distance measurement varies according to the image height. However, in the technology disclosed in Japanese Patent 5365387, since the size and shape of the search window are set according to the distortion correction amount, it is difficult to reduce this variation in the accuracy of distance measurement. Summary of the invention
[0006] A distance measuring device according to an embodiment of the present invention includes: a camera unit, which is configured to be able to capture first image information and second image information having parallax to each other from one optical system; and at least one processor or circuit, which is configured to serve as a parallax calculation unit, the parallax calculation unit being configured to extract image information within a search window from each of the first image information and the second image information, and calculate the parallax amount using the correlation between the extracted image information of the first image information within the search window and the image information of the second image information within the search window, wherein the parallax calculation unit sets the search window based on an optical characteristic value of an image height used for parallax calculation, and wherein the optical characteristic value corresponds to a center of gravity gap between the center of gravity of a first light beam forming the first image information and the center of gravity of a second light beam forming the second image information on an exit pupil of the optical system.
[0007] Further features of the present invention will become apparent from the following description of embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 1 is a diagram showing a configuration of a distance measuring device according to a first embodiment of the present invention.
[0009] Figure 2A , Figure 2B and Figure 2C 2 is a diagram showing a detailed configuration of the imaging unit 101 .
[0010] Figure 3A and Figure 3B 1 is an explanatory diagram of a method for acquiring a set of images having parallax with each other and captured from different viewpoints using the imaging unit 101 .
[0011] Figure 4A , Figure 4B and Figure 4C It is an explanatory diagram of the outline that the base line length differs depending on the viewing angle in the pupil division phase difference method.
[0012] Figure 5 1 is a flowchart of a distance measurement value calculation process performed by the distance measurement device 100 according to the first embodiment.
[0013] Fig. 6A and Figure 6B is an explanatory diagram regarding a method for setting a search window.
[0014] Figure 7 is an explanatory diagram related to an image pickup unit according to the second embodiment.
[0015] Figure 8: is a diagram showing the size of the search window set at the time of correlation calculation according to the second embodiment.
[0016] Fig. 9 The optical characteristics of the imaging unit and Figure 7 The examples in the figure are different examples.
[0017] Fig. 10A , Fig. 10B and Fig. 10C is a diagram showing a detailed configuration of an image pickup unit according to a third embodiment.
[0018] Fig.11A and Fig. 11B 1 is a diagram showing a utilization form of a distance measuring device according to a fifth embodiment. DETAILED DESCRIPTION
[0019] Hereinafter, with reference to the accompanying drawings, advantageous modes of the present invention will be explained using embodiments. In the respective drawings, the same reference numerals are applied to the same members or elements, and repeated explanations will be omitted or simplified.
[0020] [First embodiment]
[0021] In the first embodiment of the present invention, a distance measuring device using a pupil division phase difference method and a technique for setting a condition of a search window based on an optical characteristic value of an image height for calculating parallax will be described.
[0022] <Device Configuration>
[0023] Figure 1 1 is a diagram showing a configuration of a distance measurement device according to a first embodiment of the present invention. The distance measurement device 100 includes an imaging unit 101, a parallax calculation unit 102, and a distance measurement value calculation unit 103. The imaging unit 101 includes an imaging optical system 111, an imaging element 112, and a memory 113.
[0024] FIG. 2A to FIG. 2C It is shown Figure 1 FIG. 2 is a diagram showing a detailed configuration of the imaging unit 101. Figure 2A 1 is a diagram showing an overview of the arrangement of the components of the imaging unit 101. Figure 2A As shown, the imaging unit 101 includes an imaging optical system 111 , an imaging element 112 , and a memory 113 .
[0025] The memory 113 may be configured to include a central processing unit (hereinafter, to be referred to as a CPU) provided together with a memory storing an arithmetic processing program.
[0026] The imaging optical system 111 is an imaging lens of the imaging unit 101, and has a function of forming a subject image on the imaging element 112. The imaging optical system 111 may be composed of a plurality of lens groups (not shown). In this specification, the z axis is parallel to the optical axis 114 of the imaging optical system 111. In addition, the x axis and the y axis are axes perpendicular to each other and perpendicular to the optical axis.
[0027] The imaging element 112 is an imaging element that is composed of a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) and has a distance measurement function by a pupil division phase difference distance measurement method. The subject image formed on the imaging element 112 by the imaging optical system 111 is photoelectrically converted by the imaging element 112. An image signal based on the subject image is acquired due to the photoelectric conversion, and the image signal is stored in the memory 113.
[0028] Figure 2B is an xy cross-sectional view of the imaging element 112. That is, Figure 2B 1 is a diagram showing the image pickup element 112 cut along a plane perpendicular to the z-axis. The image pickup element 112 is configured by arranging a plurality of pixels 120 in a matrix. Figure 2B Some pixels 120 of the image sensor 112 are shown in an enlarged manner, and Figure 2C The I-I' cutting plane of the cross-sectional view.
[0029] Figure 2C 1 is a diagram schematically showing an II′ cross section of a pixel 120 . Each of the plurality of pixels 120 includes a light absorbing layer 130 and a light guiding layer 140 .
[0030] The light receiving layer 130 includes two photoelectric conversion units such as a first photoelectric conversion unit 131 and a second photoelectric conversion unit 132 as photoelectric conversion units for photoelectrically converting received light. The light guiding layer 140 includes a microlens 150, a color filter (not shown) through which light of a predetermined wavelength band passes, and wiring (not shown) for image reading and pixel driving.
[0031] The microlens 150 is a lens for efficiently guiding a light beam incident on the pixel 120 to the first photoelectric conversion portion 131 and the second photoelectric conversion portion 132 .
[0032] The first photoelectric conversion unit 131 and the second photoelectric conversion unit 132 are formed of a raw material sensitive to a wavelength band to be detected, and in particular, when the wavelength band to be detected is in the visible range, Si is used. However, the raw material is not limited thereto, and the first photoelectric conversion unit 131 and the second photoelectric conversion unit 132 are formed of any raw material according to the target wavelength band.
[0033] Figure 3A and Figure 3B 1 is an explanatory diagram of a method for acquiring a set of images having parallax with each other and captured from different viewpoints using the imaging unit 101 . Figure 3A 1 is a diagram showing a state in which an image of a subject 301 is formed in the imaging element 112 .
[0034] For the principal ray 310, the first light beam 311 passes through a first region of an exit pupil (not shown) of the imaging optical system 111 and reaches the imaging element 112. Similarly, for the principal ray 310, the second light beam 312 passes through a second region of an exit pupil (not shown) of the imaging optical system 111 and reaches the imaging element 112.
[0035] Figure 3B 3 is a diagram showing the relationship between the exit pupil and the pixel 120 of the imaging element 112. The light 331 is a centroidal light ray of the first light beam 311 which passes through the first pupil region 321 in the exit pupil 320 and reaches the first photoelectric conversion portion 131 via the microlens 150. The light 332 is a centroidal light ray of the second light beam 312 which passes through the second pupil region 322 in the exit pupil 320 and reaches the second photoelectric conversion portion 132 via the microlens 150.
[0036] In this way, regardless of the viewing angle, at any image height of the imaging element 112, the centroidal rays of the respective light beams that have passed through different pupil regions reach the first photoelectric converter 131 or the second photoelectric converter 132 of the pixel 120 and are converted into image signals.
[0037] For this reason, a set of images from different viewpoints can be acquired by reading only the image signal obtained in one of the first photoelectric conversion section 131 and the second photoelectric conversion section 132. Only the image signal of the first photoelectric conversion section 131 is read from all pixels, and a first image from a first viewpoint is acquired.
[0038] On the other hand, only the image signal of the second photoelectric conversion unit 132 is read from all the pixels, and a second image from a second viewpoint is acquired. Since the first image and the second image are images formed by light beams that have passed through different regions of the exit pupil, the first image and the second image are equivalent to a set of images captured from different viewpoints and are sets of images having parallax with each other.
[0039] At this time, the centroid gap 330 between the centroid 331 of the first beam 311 and the centroid 332 of the second beam 312 on the exit pupil becomes the distance between different viewpoints (ie, the base line length).
[0040] FIG. 4A to FIG. 4C It is an explanatory diagram of the outline that the base line length differs depending on the viewing angle in the pupil division phase difference method. Figure 4A is a diagram showing the image pickup element 112 of the image pickup unit 101 according to the present embodiment.
[0041] Figure 4B 1 is a diagram showing the exit pupil and the distribution of the light beam at the center image height 410 on the imaging element 112 .
[0042] Figure 4C 1 is a diagram showing the distribution of the exit pupil and light beams at the peripheral image height 420 on the imaging element 112 .
[0043] exist Figure 4B In the exit pupil 411 of the central image height 410 shown, a center of gravity gap 416 between a center of gravity 413 in a light quantity distribution 412 of the first light beam 331 and a center of gravity 415 in a light quantity distribution 414 of the second light beam 332 becomes a base line length of the central image height 410. The first light beam 331 is a light beam that can be received by the first photoelectric conversion portion 131. The second light beam 332 is a light beam that can be received by the second photoelectric conversion portion 132.
[0044] Similarly, in Figure 4C In the exit pupil 421 of the peripheral image height 420 shown, a centroid gap 426 between a centroid 423 of a light quantity distribution 422 of the first beam 331 and a centroid 425 of a light quantity distribution 424 of the second beam 332 becomes the base line length of the peripheral image height 420 .
[0045] In the peripheral image height 420, due to the influence of vignetting caused by the lens barrel of the optical system (not shown), the shape of the exit pupil 421 changes compared with the shape of the exit pupil 411 of the central image height 410. As a result, the center of gravity position of each light beam on the exit pupil 421 moves. For this reason, the center of gravity gap 426 of the peripheral image height 420 changes relative to the center of gravity gap 416 of the central image height 410.
[0046] In this way, in the pupil division phase difference method, the value of the baseline length changes according to the image height. On the other hand, in a stereo camera using two cameras, the gap between the cameras becomes the baseline length, and the value does not change according to the image height. Therefore, a change in the baseline length depending on the image height does not occur.
[0047] Figure 5 1 is a flowchart of the distance measurement value calculation process performed by the distance measurement device 100 according to the first embodiment. Hereinafter, the processes performed by the imaging unit 101, the parallax calculation unit 102, and the distance measurement value calculation unit 103 will be described. Each step of the process is realized when the CPU provided in the distance measurement device 100 executes the software program. In addition, each step of the process can be performed by the CPU provided together with the memory 113 provided in the imaging unit 101.
[0048] In step S501, the imaging unit 101 performs a parallax image acquisition process. With regard to the parallax image acquisition process, the imaging unit 101 acquires a first image from a first viewpoint and a second image from a second viewpoint having parallax with each other.
[0049] In step S502, the parallax calculation unit 102 performs parallax calculation preprocessing. Regarding the parallax calculation preprocessing, the parallax calculation unit 102 performs light amount difference correction processing and band pass filter processing using a band pass filter on the first image and the second image acquired in step S501.
[0050] In the light amount difference correction process, the light amount difference as an imbalance between the light amounts of the first and second images caused by the imaging optical system 111 is corrected. The parallax calculation unit 102 corrects the light amount difference by modifying the signal values of the first and second images using a pre-designed light amount correction value.
[0051] In the bandpass filter processing, as the spatial frequency of the band increases, the SN ratio (the ratio of the signal component to the noise component) decreases, so the transmittance in the high spatial frequency area decreases. In addition, even after the above-mentioned light amount difference correction processing, since the DC components of the first image and the second image are not completely consistent due to manufacturing errors, etc., the transmittance near the spatial frequency 0 is set to zero in the bandpass filter processing.
[0052] In step S503, the parallax calculation unit 102 performs a parallax calculation process. In the parallax calculation process, a parallax amount corresponding to the distance of the subject is calculated from the first image and the second image that have undergone the parallax calculation preprocessing.
[0053] In the disparity calculation process, a focus point (which is the image coordinate used to calculate the disparity amount relative to the input first image) is first set, and a verification area is set, which is centered on the focus point and has a horizontal width and vertical width equal to the size of a search window corresponding to the same image height (to be described below).
[0054] Next, in the parallax calculation process, a reference point is set for the second image, and a reference area is set with the reference point as the center and having a horizontal width and a vertical width equal to the size of a search window corresponding to the same image height (described below). The reference area has the same size and shape as the verification area.
[0055] Next, in the parallax calculation process, while continuously moving the reference point, the correlation between the signal of the first image included in the verification area and the signal of the second image included in the reference area is calculated, and the reference point with the highest correlation is set as the corresponding point corresponding to the point of interest. The deviation amount of the relative position between the point of interest and the corresponding point is the parallax amount at the point of interest. The parallax amount at all pixel positions on the image can be calculated by calculating the parallax amount while continuously changing the image coordinates of the point of interest.
[0056] Any known technique can be used as a method for calculating the correlation. For example, techniques called NCC for evaluating normalized cross-correlation between image signals, SSD for evaluating the sum of squares of differences in image signalization, and SAD for evaluating the absolute value of differences can be used.
[0057] NCC is the abbreviation of Normalized Cross Correlation. SSD is the abbreviation of Sum of Squared Difference. SAD is the abbreviation of Sum of Absolute Difference.
[0058] Here, we will use Fig. 6A and Figure 6B To illustrate the method for setting the search window. Fig. 6A and Figure 6B is an explanatory diagram regarding a method for setting a search window. Fig. 6A is a diagram showing a first image 601 . Figure 6B : is a graph on which a baseline length 621 in the horizontal direction of an image and a baseline length 622 in the vertical direction of an image are plotted.
[0059] Fig. 6A 6 shows a search window 611 at a center image height, a search window 612 at a horizontal peripheral image height, and a search window 613 at a vertical peripheral image height set in the first image 601 according to this embodiment. Figure 6B In , the horizontal and vertical directions are normalized and superimposed using the maximum positive and negative image heights.
[0060] Since the first photoelectric conversion portion 131 and the second photoelectric conversion portion 132 described above are generated by dividing the image in the horizontal direction, the change in the base line length 621 increases in the horizontal direction toward the peripheral image height. On the other hand, since the vertical direction of the image is perpendicular to the separation direction of the first photoelectric conversion portion 131 and the second photoelectric conversion portion 132, there is almost no change in the center of gravity gap between the corresponding light beams, and even if the image height changes to the peripheral image height in the vertical direction, the change in the base line length 622 is small.
[0061] The amount of parallax between the first image and the second image is determined by the value of the baseline length. For this reason, as shown by the change in the baseline length 621 in the horizontal direction of the image, when the size of the search window is large, there is a high possibility that even the same subject will have different amounts of parallax within the search window area at the peripheral image height, and the calculation error of the parallax increases.
[0062] On the other hand, from the viewpoint of S / N in correlation calculation, the larger the search window size, the better, and the calculation accuracy of the correlation value improves. Therefore, a trade-off problem arises when setting the search window size.
[0063] In addition, the present embodiment is characterized in that a search window is set based on an optical characteristic value of an image height for performing parallax calculation. Specifically, with respect to the optical characteristic value, the search window is set based on a value (i.e., a baseline length) determined by a gap between the center of gravity of a first light beam forming a first image and the center of gravity of a second light beam forming a second image on an exit pupil of the optical system.
[0064] The search window 611 at the center image height is set to have the size of the initial setting search window, the size in the horizontal direction is set to wh0, and the size in the vertical direction is set to wv0. Conversely, the size of the search window at each image height in each of the horizontal and vertical directions is set by Figure 6B The values of the base line length shown are values obtained by multiplying the coefficient k.
[0065] The size wh(u, v) of the search window in the horizontal direction at a certain image height (u, v) is set using the coefficient k1, the change A1(u, v) of the baseline length in the horizontal direction, and the size wh0 of the initially set search window in the horizontal direction by the following Expression 1. The size of the search window is set to the number of pixels (i.e., an integer).
[0066] wh(u,v)=[k1×A1(u,v)×wh0]...(Expression 1)
[0067] Similarly, through the following Expression 2, the coefficient k2, the change in the baseline length in the vertical direction A2(u, v), and the size wv0 of the initially set search window in the vertical direction are used to set the size wv(u, v) of the search window in the vertical direction at a certain image height (u, v).
[0068] wv(u,v)=[k2×A2(u,v)×wv1]...(Expression 2)
[0069] The coefficient k1 and the coefficient k2 are determined according to the size of the subject or the distribution of the distances assumed when the distance measurement device 100 of the present embodiment is used. They are determined by preset values, or lookup table values corresponding to the scene, or the like.
[0070] Fig. 6A A search window 611 at the center image height, a search window 612 at the horizontal peripheral image height, and a search window 613 at the vertical peripheral image height are shown, each having the size of the search window set as described above. Search window 612 at the horizontal peripheral image height is set smaller than search window 611 at the center image height by an amount corresponding to a change in the baseline length in the horizontal direction.
[0071] In addition, since the change in the base line length is small, the search window 613 at the vertical peripheral image height is set to a search window size that hardly changes compared to the search window size at the center. In the parallax calculation process, the parallax amount is calculated using the search window set as described above.
[0072] By setting the size of the search window as described above, the change in the baseline length within the search window area is reduced. As a result, the change in the parallax amount of the same object included in the search window area is reduced. Therefore, according to this embodiment, the error in the above-mentioned parallax calculation can be reduced.
[0073] In step S504, the distance measurement value calculation unit 103 performs a distance measurement value calculation process. Regarding the distance measurement value calculation process, the distance measurement value calculation unit 103 calculates a distance measurement value by converting the parallax amount calculated in step S503 into a distance measurement value using a known technique.
[0074] In the distance measurement value calculation process, the parallax amount is converted into the defocus amount using the baseline length. Next, in the distance measurement value calculation process, the defocus amount is converted into the distance measurement value from the imaging optical system to the subject using the focal length and the imaging formula. The distance measurement value of the entire image is obtained by performing this process at all viewing angles.
[0075] As described above, according to the first embodiment, it is possible to provide a distance measuring device that reduces the error in parallax calculation by determining the setting of the search window in the correlation calculation in the parallax calculation process based on the baseline length that varies according to the image height. That is, even in the case where the value of the baseline length varies according to the image height, it is possible to provide a distance measuring device that can reduce the variation in the accuracy of the distance measurement corresponding to the image height.
[0076] [Second embodiment]
[0077] Next, a second embodiment of the present invention will be described. In the second embodiment, an example will be described in which a value obtained by dividing a value of a baseline length for each image height by a focal length for each image height is used as an optical characteristic value for determining the size of a search window. The configuration of the second embodiment is similar to that of the first embodiment, and the differences will be described below.
[0078] In the case where the exit pupil distance is different for each image height, since the base line length is the distance between the centers of gravity of each light beam on the exit pupil, the value changes when it is affected by the exit pupil distance. Therefore, in the case where the focal length for each image height changes significantly, it is more accurate to express the center of gravity of each light beam by a ray angle rather than the distance between the centers of gravity of each light beam, and to express the center of gravity of each light beam by an optical characteristic value of the base line length corresponding to the F value of the optical system.
[0079] In this embodiment, when the focal length for each image height is f(u,v), the size of the search window in the horizontal direction wh(u,v) and the size of the search window in the vertical direction wv(u,v) at a certain image height (u,v) can be set as shown in Expressions 3 and 4.
[0080]
[0081]
[0082] According to the present embodiment, by configuring as described above, it is possible to provide a distance measuring device that can reduce variations in the accuracy of distance measurement corresponding to image height with higher accuracy even if variations in the focal length corresponding to image height are significant.
[0083] Figure 7 is an explanatory diagram related to an image pickup unit according to the second embodiment. Figure 7 (A) and (B) show characteristics of the optical system according to the present embodiment. Figure 7 (A) shows the distribution of the light beam for the viewing angle on the exit pupil. Figure 7 In (B), the vertical axis represents the image height of the imaging element, and the horizontal axis represents the received light beam range (ie, the viewing angle) per unit image height.
[0084] The first region 701 corresponding to the central image height included in the range of the first angle of view smaller than the angle of view θa Figure 7 The increase rate (= image height / viewing angle) in the graph of (B) will be regarded as the first change rate. The image height in the second region 702 corresponding to the peripheral image height included in the range of the second viewing angle equal to or greater than the viewing angle θa is Figure 7 The increase rate (= image height / viewing angle) in the graph of (B) will be regarded as the second change rate.
[0085] At this time, regarding the magnitude relationship between the increase rates, first change rate>second change rate holds. The optical characteristics of the imaging unit according to the present embodiment have distortion characteristics that differ between the center and the periphery, and images the angle of view on the periphery in a compressed manner.
[0086] Here, the first change rate is the change rate of the number of pixels included per unit angle of view at the first angle of view in the first area corresponding to the central image height relative to the image height. In addition, the second change rate is the change rate of the number of pixels included per unit angle of view at the second angle of view in the second area corresponding to the peripheral image height relative to the image height.
[0087] In the present embodiment, the first change rate is greater than the second change rate. In this way, in the optical system according to the present embodiment, the distortion characteristics differ between the central image height and the peripheral image height.
[0088] In this embodiment, the variation in the accuracy of distance measurement can be reduced by performing the above-mentioned parallax calculation method according to the present invention (i.e., performing search window setting) in such a camera unit configuration. Figure 7 When the optical characteristics shown in (A) and (B) are considered, since the change in focal length relative to the change in image height is also significant, in this embodiment, the size of the search window is set using the value obtained by dividing the above-mentioned baseline length by the focal length.
[0089] Figure 7 (C) is a graph in which a value 721 obtained by dividing the baseline length in the horizontal direction of the image by the focal length at each image height and a value 722 obtained by dividing the baseline length in the vertical direction of the image by the focal length at each image height are plotted. Figure 7 In (C), the horizontal and vertical positive and negative maximum image heights are used to normalize and overlay the horizontal axis. Figure 7 The value 721 and the value 722 shown in (C) and Expression 3 and Expression 4 are used to set the size of the search window through the above-mentioned technology.
[0090] Figure 8 2 is a diagram showing the size of the search window set at the time of correlation calculation according to the present embodiment. Figure 8 A search window 811 at a central image height, a search window 812 at a horizontal peripheral image height, and a search window 813 at a vertical peripheral image height are shown.
[0091] According to the present embodiment, as described above, a distance measuring device can be provided in which, by setting the size of the search window based on an optical characteristic value obtained by dividing the baseline length by the focal length at each image height, changes in the accuracy of distance measurement can be reduced even when changes in the focal length are significant relative to changes in the image height.
[0092] In addition, according to the present embodiment, since a wide-angle image is obtained but the size of the search window becomes smaller at the peripheral image height where the focal length changes significantly and the value becomes smaller, the probability of including different subjects in the search window is reduced, which is advantageous from the perspective of in-plane resolution.
[0093] In this embodiment, the optical characteristics of the image pickup unit are not limited to the described configuration. Fig. 9 The optical characteristics of the imaging unit and Figure 7 The examples in the figure are different examples. Fig. 9 (A) shows the distribution of the light beam for the viewing angle on the exit pupil. Fig. 9 In (B), the vertical axis represents the image height of the imaging element, and the horizontal axis represents the received light beam range (ie, the viewing angle) per unit image height.
[0094] This embodiment can also be applied to Fig. 9 (A) and (B) show the optical characteristics of the optical system of the imaging unit. Fig. 9 The examples in (A) and (B) show a configuration in which the rate of change of image height / angle of view is greater in the peripheral area 902 than in the central area 901, that is, a configuration in which the angle of view on the periphery is imaged in an enlarged manner.
[0095] In this embodiment, the first rate of change, which is the rate of change at the center, is smaller than the second rate of change, which is the rate of change on the periphery. Fig. 9 In the configurations of (A) and (B), the variation in the accuracy of distance measurement can also be reduced by setting the size of the search window based on the optical characteristic value obtained by dividing the base line length by the focal length at each image height.
[0096] [Third embodiment]
[0097] In the present invention, the configuration of the imaging element 112 is not limited to that described in the first embodiment. FIG. 2A to FIG. 2C The compositions shown are different examples.
[0098] The photoelectric converter within the pixel 120 may be configured in any division direction, and the size of the search window may be set based on changes in optical characteristic values in directions defining the size of the search window (ie, image horizontal and image vertical directions).
[0099] FIG. 10A to FIG. 10C is a diagram showing a detailed configuration of an image pickup unit according to a third embodiment. Fig. 10A The camera unit 101 shown is Figure 2A In this embodiment, the configuration of the imaging element 112 is different from that in the first embodiment.
[0100] Fig. 10B is an xy cross-sectional view of the image pickup element 112 according to the third embodiment. That is, Fig. 10B 1 is a diagram showing the image pickup element 112 cut along a plane perpendicular to the z-axis.
[0101] According to this embodiment, the imaging element 112 includes a first photoelectric conversion unit 1031, a second photoelectric conversion unit 1032, a third photoelectric conversion unit 1033 and a fourth photoelectric conversion unit 1034 which are divided in the horizontal direction (first direction) and the vertical direction (second direction) of the image within the pixel 120.
[0102] In this embodiment, the pixel is divided into four equal parts. According to such a configuration, by combining the photoelectric conversion units for generating the first image and the second image among the four photoelectric conversion units, distance measurement can be performed in any direction where parallax exists (such as the horizontal direction of the image, the vertical direction of the image, and the diagonal direction of the image).
[0103] Here, the first image is regarded as an image read by adding the outputs of the first photoelectric conversion unit 1031 and the second photoelectric conversion unit 1032. In addition, the second image is regarded as an image read by adding the outputs of the third photoelectric conversion unit 1033 and the fourth photoelectric conversion unit 1034. In the case of using the first image and the second image, a set of images having parallax with each other in the horizontal direction of the image can be acquired.
[0104] In addition, the third image is regarded as an image read by adding the outputs of the first photoelectric conversion unit 1031 and the third photoelectric conversion unit 1033. In addition, the fourth image is regarded as an image read by adding the outputs of the second photoelectric conversion unit 1032 and the fourth photoelectric conversion unit 1034. In the case of using the third image and the fourth image, a set of images having parallax with each other in the vertical direction of the images can be acquired.
[0105] In addition, when the fifth image obtained by reading the output of the first photoelectric converter 1031 and the sixth image obtained by reading the output of the fourth photoelectric converter 1034 are used, a set of images having parallax with each other in the image diagonal direction can be acquired.
[0106] In addition, when using the seventh image obtained by reading the output of the second photoelectric conversion unit 1032 and the eighth image obtained by reading the output of the third photoelectric conversion unit 1033, a set of images having parallax with each other in the image diagonal direction that is 90 degrees different from the fifth and sixth images can be obtained.
[0107] According to the present embodiment, similar to the above example, the variation in the accuracy of distance measurement can be reduced by setting a search window for a set of images having parallax with each other as described above. The search window with parallax in the horizontal direction of the image and the vertical direction of the image is set as described above.
[0108] Fig. 10C 1031 and 1034. It is an explanatory diagram of an example of setting a search window in the case of using a fifth image obtained by reading the output of the first photoelectric conversion portion 1031 and a sixth image obtained by reading the output of the fourth photoelectric conversion portion 1034.
[0109] In this case, since the direction in which the baseline length changes significantly becomes the diagonal direction, the search window 1011 at the center image height, the search window 1012 at the horizontal peripheral image height, the search window 1013 at the vertical peripheral image height, and the search window 1014 at the diagonal peripheral image height are as shown in FIG. Fig. 10C shown.
[0110] According to the present embodiment, in this way, even in the case of a set of images having parallax with each other in the diagonal direction, it is possible to provide a distance measurement device in which variation in accuracy of distance measurement is reduced.
[0111] The configuration of the imaging element is not limited to that of this embodiment. For example, a configuration including a first photoelectric converter and a second photoelectric converter divided in the vertical direction of the image inside the pixel 120 may be adopted so that the direction of parallax becomes the vertical direction of the image.
[0112] According to such a configuration, a set of images having parallax in the vertical direction of the images can be acquired, and the distance measurement of a subject having texture in the horizontal direction of the images can be performed. A distance measurement device can be provided as follows: even in such a configuration, the variation in the accuracy of distance measurement can be reduced by setting a search window using the technology of the present invention.
[0113] [Fourth embodiment]
[0114] There are multiple factors for the accuracy of the correlation calculation, and the accuracy of the correlation calculation is affected by the amount of texture included in the search window depending on the subject and the image S / N. However, from the perspective of the statistics of the image S / N, the total number of pixels included in the search window affects the accuracy of the correlation calculation.
[0115] The present embodiment shows an example in which the accuracy of correlation calculation becomes constant by making the total number of pixels within the search window constant regardless of the image height. The total number of pixels S0 included in the search window at the center image height serving as a reference is expressed by Expression 5.
[0116] S0=wh0×wv0
[0117] ...(Expression 5)
[0118] When the direction in which parallax exists is the image horizontal direction, since the image horizontal direction affects the change in accuracy of distance measurement in a similar manner, the size of the search window in the horizontal direction is determined by Expression 6 as described above.
[0119]
[0120] Furthermore, the size of the search window in the vertical direction of the image is set to a value obtained by dividing S0 by wh(u, v) so that the total number of pixels becomes constant, and is determined by Expression 7 so that it becomes an integer.
[0121]
[0122] According to this embodiment, as described above, the following distance measurement device can be provided: by setting the size of the search window so that the total number of pixels included in the search window becomes constant, the fluctuation of distance measurement caused by the statistics of image S / N during correlation calculation is also reduced.
[0123] [Fifth embodiment]
[0124] In the fifth embodiment, an example of a form of utilization of the distance measuring device according to the present invention will be described. Fig.11A and Fig. 11B 1 is a diagram showing a utilization form of a distance measuring device according to a fifth embodiment. Fig.11A 11 is a diagram showing an overview of a case where a distance measurement device 1110 according to the fifth embodiment is used by being installed in a vehicle 1100 (movable device).
[0125] Fig. 11B yes Fig.11A The movable device on which the distance measuring device 1110 is installed is not limited to a vehicle (car), and may be various public transportation such as a train or an airplane, or may be various robots such as a small mover or an automatic guided vehicle (AGV).
[0126] exist Fig.11AIn the embodiment, a vehicle 1100 includes a distance measurement device 1110 according to the fifth embodiment. The distance measurement device 1110 includes the respective constituent parts of the distance measurement device 100 described above in the respective examples.
[0127] The vehicle 1100 further includes a vehicle information measuring instrument 1120, a route generating ECU 1130, and a vehicle control ECU 1140. The vehicle information measuring instrument 1120 is a measuring instrument for detecting the travel speed and steering angle of the vehicle 1100. ECU is an abbreviation of an electronic control unit.
[0128] Regarding another form of the route generation ECU 1130 and the vehicle control ECU 1140, they may be constituted by a CPU and a memory storing an arithmetic processing program. In addition, the vehicle 1100 may include an HMI 1150. HMI is an abbreviation of a human machine interface.
[0129] The distance measurement device 1110 captures an image of the surrounding environment including the travel road of the vehicle 1100 , generates image information representing the captured image and distance image information having information representing the distance to the subject for each pixel, and outputs them to the route generation ECU 1130 .
[0130] like Fig.11A As shown, the distance measuring device 1110 is arranged near the upper end of the windshield of the vehicle 1100, and captures an image of an area within a predetermined angle range (hereinafter referred to as a camera angle of view) toward the front side of the vehicle 1100.
[0131] The information indicating the distance to the subject only needs to be information that can be converted into the distance from the imaging device 1110 to the subject within the imaging angle of view, and the information may be a predetermined reference table, or information that can be converted using a predetermined conversion coefficient and conversion formula.
[0132] For example, the camera 1110 may assign the distance value as a predetermined integer value and output it to the route generation ECU 1130. In addition, the camera 1110 may output the following information to the route generation ECU 1130, which can be converted into the distance to the subject and can be converted into an optical conjugate distance value (the distance from the imaging element to the conjugate point (the so-called defocus amount)).
[0133] In addition, the camera 1110 can output the following information to the route generation ECU 1130, which can be converted into the distance to the subject and can be converted into the distance from the optical system to the conjugate point (the distance from the image side principal point to the conjugate point).
[0134] The route generation ECU 1130 is configured using a logic circuit, for example, and generates target route information about at least one of a target driving trajectory and a target driving speed of the vehicle 1100 based on the measurement signal from the vehicle information measuring instrument 1120 and the image information and distance image information from the distance measuring device 1110 .
[0135] The route generation ECU 1130 sequentially outputs the generated target route information to the vehicle control ECU 1140. The vehicle control ECU 1140 controls the moving operation of the vehicle 1100 so that the travel speed and the steering amount of the vehicle 1100 have control target values.
[0136] Specifically, the vehicle control ECU 1140 controls engine braking and steering according to the target route information. The vehicle control ECU 1140 can warn the driver 1001 according to the target route information without controlling the moving operation of the vehicle 1100. The vehicle control ECU 1140 can perform both warning and control of the moving operation of the vehicle 1100.
[0137] In addition, in the case where the vehicle 1100 includes the HMI 1150, the target route information generated by the route generation ECU 1130 may be notified to the driver 1001 through the HMI 1150. The HMI 1150 notifies the driver 1001 by displaying an image or by audio.
[0138] By applying the technique of setting the size of the search window according to the present invention to the distance measuring device 1110, the accuracy of the distance information output regardless of the image height (i.e., the viewing angle) is improved, thereby improving the accuracy of the target route information output from the route generation ECU 1130. Due to the improvement in the accuracy of the target route information, safer vehicle driving control can be achieved.
[0139] In the case where the distance measurement device is installed in a movable device such as a vehicle, different measurement conditions are expected depending on the driving scene and state. Specifically, examples of driving scenes include: driving scenes where the amount of ambient light is low under a strict S / N ratio, such as in a tunnel or at night; high-speed driving scenes requiring a high frequency of information updates; and driving scenes on streets or at intersections where the accuracy of distance measurement at a height of the surrounding image is particularly required.
[0140] In such a case, by setting the size of the search window in consideration of the viewpoint corresponding to the driving scene in addition to the viewpoint of the optical characteristic values described above, safer vehicle driving control is achieved, which is advantageous.
[0141] The recognition of the driving scene can be performed by the route generation ECU 1130 through recognition processing on the captured image acquired by the distance measurement device 1110. That is, the route generation ECU 1130 has a recognition unit that recognizes the driving scene.
[0142] The recognition section may be provided in the distance measurement device 1110, and the distance measurement device 1110 may perform recognition of the driving scene. The parallax calculation unit 102 sets a search window according to the recognized driving scene, and calculates the parallax amount using the search window.
[0143] In driving scenarios where the amount of ambient light is low under strict S / N ratio conditions such as in a tunnel or at night, coefficients k1 and k2, which are coefficients related to the setting of the above-mentioned search window, are set to values larger than those during daytime outdoor driving and are adjusted in the direction of increasing the total number of pixels within the search window.
[0144] Therefore, the accuracy of the correlation calculation due to the total number of pixels included in the search window at the time of the correlation calculation can be adjusted in a favorable direction, and the variation in the accuracy of the distance measurement can be reduced.
[0145] In addition, in a high-speed driving scenario, by setting the values of the coefficients k1 and k2 to values smaller than those during normal speed driving to reduce the total number of pixels within the search window, the calculation time required for the correlation calculation per pixel is shortened, and the updating frequency of the distance measurement result is increased. Therefore, the updating frequency of the control result based on the distance measurement result relative to the movement amount of the host vehicle is increased, and thus safer vehicle driving control can be achieved.
[0146] In addition, in driving scenarios on streets or at intersections, since it is desired to detect subjects that jump out from the surrounding area, it is also advantageous to prioritize the presence or absence of detection even if variations in the accuracy of distance measurement are allowed, and to make the values of coefficients k1 and k2 larger than those during normal speed driving so that the search window does not become too small.
[0147] According to the present embodiment, as described above, the optimal search window can be set while reducing the variation in the accuracy of distance measurement according to the traveling scene of the vehicle, and thus safer vehicle driving control can be achieved.
[0148] While the present invention has been described with reference to exemplary embodiments, it is to be understood that the invention is not limited to the disclosed exemplary embodiments. The scope of the following claims is to be accorded the broadest interpretation so as to encompass all such modifications, equivalent structures and functions.
[0149] In addition, as part or all of the control according to the embodiment, a computer program that realizes the functions of the above-described embodiment may be supplied to a distance measuring device, etc., through a network or various storage media. Then, a computer (or CPU or MPU, etc.) of the distance measuring device, etc. may be configured to read and execute the program. In this case, the program and the storage medium storing the program constitute the present invention.
[0150] In addition, the present invention includes, for example, those implemented using at least one processor or circuit configured to perform the functions of the above-described embodiments. A plurality of processors may be used to perform distributed processing.
[0151] This application claims the benefit of Japanese Patent Application No. 2023-025887, filed on February 22, 2023, which is hereby incorporated by reference herein in its entirety.
Claims
1. A distance measuring device, comprising: An imaging unit configured to be capable of imaging first image information and second image information having parallax with each other from one optical system; as well as at least one processor or circuit configured to function as a disparity calculation unit configured to extract image information within a search window from each of the first image information and the second image information, and calculate a disparity amount using a correlation between the extracted image information within the search window of the first image information and the image information within the search window of the second image information, wherein the parallax calculation unit sets the search window based on an optical characteristic value of an image height used for parallax calculation, and The optical characteristic value corresponds to a center-of-gravity gap between a center of gravity of a first light beam forming the first image information and a center of gravity of a second light beam forming the second image information on an exit pupil of the optical system.
2. The distance measuring device according to claim 1, in, The optical characteristic value is a value obtained by dividing the centroid gap by the focal length at each image height.
3. The distance measuring device according to claim 1, wherein: The optical system has different distortion characteristics between the central image height and the peripheral image height, The first change rate is a change rate of the number of pixels per unit angle of view at a first angle of view in a first area corresponding to the central image height relative to the image height, The second change rate is a change rate of the number of pixels included per unit angle of view at a second angle of view in a second area corresponding to the peripheral image height relative to the image height, and The first change rate is greater than the second change rate.
4. The distance measuring device according to claim 1, wherein: The optical system has different distortion characteristics between the central image height and the peripheral image height, The first change rate is a change rate of the number of pixels per unit angle of view at a first angle of view in a first area corresponding to the central image height relative to the image height, The second change rate is a change rate of the number of pixels included per unit angle of view at a second angle of view in a second area corresponding to the peripheral image height relative to the image height, and The first change rate is smaller than the second change rate.
5. The distance measuring device according to claim 1, wherein: The imaging unit includes a photoelectric conversion unit of an imaging element, and The photoelectric conversion portion includes a first photoelectric conversion portion and a second photoelectric conversion portion divided in a vertical direction.
6. The distance measuring device according to claim 1, wherein: The imaging unit includes a photoelectric conversion unit of an imaging element, and The photoelectric conversion portion includes a first photoelectric conversion portion and a second photoelectric conversion portion divided in a horizontal direction.
7. The distance measuring device according to claim 1, wherein: The imaging unit includes a photoelectric conversion unit of an imaging element, and The photoelectric conversion portion includes a first photoelectric conversion portion, a second photoelectric conversion portion, a third photoelectric conversion portion, and a fourth photoelectric conversion portion divided in a first direction and a second direction different from the first direction.
8. The distance measuring device according to claim 1, in, Regardless of the image height, the total number of pixels included in the search window is constant.
9. A movable device comprising: An imaging unit configured to be capable of imaging first image information and second image information having parallax with each other from one optical system; as well as at least one processor or circuit configured to function as: a disparity calculation unit configured to extract image information within a search window from each of the first image information and the second image information, and calculate a disparity amount using a correlation between the extracted image information of the first image information within the search window and the image information of the second image information within the search window, The disparity calculation unit sets the search window based on an optical characteristic value of an image height used for disparity calculation. The optical characteristic value corresponds to a center-of-gravity gap between a center of gravity of a first light beam forming the first image information and a center of gravity of a second light beam forming the second image information on an exit pupil of the optical system, and A control unit configured to issue a warning or control a moving operation of the movable device based on a distance measurement result using the parallax amount calculated by the parallax calculation unit.
10. The movable device according to claim 9, wherein: The at least one processor or circuit is further configured to function as a recognition unit configured to recognize a driving scene, and The disparity calculation unit sets the search window in response to the driving scene recognized by the recognition unit.
11. A method for controlling a distance measuring device, comprising: Camera, for capturing first image information and second image information having parallax with each other from one optical system; as well as disparity calculation, for extracting image information within a search window from each of the first image information and the second image information, and calculating a disparity amount using a correlation between the extracted image information of the first image information within the search window and the image information of the second image information within the search window, wherein the parallax calculation sets the search window based on an optical characteristic value of an image height used for performing the parallax calculation, and The optical characteristic value corresponds to a center-of-gravity gap between a center of gravity of a first light beam forming the first image information and a center of gravity of a second light beam forming the second image information on an exit pupil of the optical system.
