Distance measuring device, moving object, control method and program
By setting the search window based on optical characteristics like centroid intervals and focal length, the device stabilizes measurement accuracy across varying image heights, addressing inaccuracies in existing technologies.
Patent Information
- Application Number
- JP2023025887
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-02-22
- Publication Date
- 2026-01-05
- Estimated Expiration
- 2043-02-22
AI Technical Summary
Existing distance measurement technologies using the split-pupil phase difference method suffer from changes in measurement accuracy due to variations in baseline length and focal length with image height, particularly when vignetting occurs.
A distance measuring device that sets the search window based on optical characteristic values such as the centroid interval between light beams on the exit pupil and focal length for each image height, thereby stabilizing the baseline length and focal length variations.
This approach reduces changes in distance measurement accuracy by aligning the search window size with the optical characteristics, ensuring consistent measurement precision across different image heights.
Smart Images

Figure 0007793563000008 
Figure 0007793563000009 
Figure 0007793563000010
Abstract
Description
[Technical Field]
[0001] The present invention relates to a distance measuring device, a moving object, a control method, and a program. [Background technology]
[0002] Among imaging devices, there is a stereo camera device that calculates the amount of parallax between a pair of images captured from different viewpoints and measures the distance to a subject. The amount of parallax is calculated by extracting an area called a search window from each image captured from different viewpoints and using a known correlation calculation method to determine the amount of movement of the search window between images where the patterns within the search window area match.
[0003] Patent Document 1 discloses a method for modifying the size and shape of a search window when calculating parallax in a stereo camera according to the image height, specifically, a method for modifying the size and shape according to the amount of distortion correction that depends on the image height.
[0004] Furthermore, Patent Document 2 discloses a configuration that can acquire a set of images with parallax using a single camera. Each pixel of the image sensor shares a microlens, but the photoelectric conversion unit is divided, and each photoelectric conversion unit receives light beams that have passed through different pupil regions of a single optical system, thereby acquiring a set of images with parallax. This is called a split-pupil phase difference ranging method. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] Patent No. 5365387 [Patent Document 2] Patent No. 6921500 Summary of the Invention [Problem to be solved by the invention]
[0006] In the pupil division phase difference method disclosed in Patent Document 2, when vignetting of the optical system is present, the value of the base line length changes according to the image height, and the distance measurement accuracy changes according to the image height. However, in the method disclosed in Patent Document 1, the size and shape of the search window are set according to the amount of distortion correction, making it difficult to reduce this change in distance measurement accuracy.
[0007] SUMMARY OF THE INVENTION It is therefore an object of the present invention to provide a distance measuring device that can reduce changes in distance measurement accuracy. [Means for solving the problem]
[0008] A distance measuring device according to one embodiment of the present invention is a distance measuring device comprising: an imaging means capable of capturing first image information and second image information having a parallax from one optical system; and a parallax calculation means for extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on a correlation between the image information within the search window of the extracted first image information and the image information within the search window of the second image information, wherein the parallax calculation means sets the search window based on an optical characteristic value of an image height for which parallax calculation is performed, and the optical characteristic value is a centroid interval between a centroid of a first light beam forming the first image information and a centroid of a second light beam forming the second image information on an exit pupil of the optical system. and focal length for each image height The value is determined by [Effects of the Invention]
[0009] According to the present invention, it is possible to provide a distance measuring device that can reduce changes in distance measurement accuracy. [Brief explanation of the drawings]
[0010] [Figure 1] 1 is a diagram illustrating a configuration of a distance measuring device according to a first embodiment of the present invention. [Figure 2] FIG. 2 is a diagram showing a detailed configuration of an imaging unit 101. [Figure 3] 1 is a schematic diagram illustrating a method for acquiring a set of images having parallax captured from different viewpoints using the image capturing unit 101. FIG. [Figure 4] 10A and 10B are diagrams for explaining an outline of how the base length varies depending on the angle of view in the pupil division phase difference method. [Figure 5] 1 is a flowchart of a distance measurement value calculation process performed by the distance measuring device 100 according to the first embodiment. [Figure 6] FIG. 10 is a diagram illustrating a method for setting a search window. [Figure 7] FIG. 10 is a diagram illustrating an imaging unit according to a second embodiment. [Figure 8] FIG. 10 is a diagram illustrating the size of a search window set during correlation calculation according to the second embodiment. [Figure 9] 8 is a diagram showing another example of the optical characteristics of the imaging unit, different from that shown in FIG. 7. FIG. [Figure 10] FIG. 10 is a diagram illustrating a detailed configuration of an imaging unit according to a third embodiment. [Figure 11] FIG. 10 is a diagram illustrating a usage form of a distance measuring device according to a fifth embodiment. DETAILED DESCRIPTION OF THE INVENTION
[0011] The present invention will be described in detail using embodiments and drawings. The present invention is not limited to the contents described in each example. In addition, each embodiment may be combined as appropriate. In the description with reference to the drawings, even if the figure numbers are different, the same reference numerals will be used to indicate the same parts, and redundant explanations will be avoided as much as possible. [Example]
[0012] In the first embodiment of the present invention, a distance measuring device using a split-pupil phase difference method and a method for setting search window conditions based on optical characteristic values of an image height for calculating parallax will be described.
[0013] <Device configuration> 1 is a diagram showing the configuration of a distance measuring device according to a first embodiment of the present invention. The distance measuring 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 image sensor 112, and a memory 113.
[0014] Fig. 2 is a diagram showing a detailed configuration of the imaging unit 101 shown in Fig. 1. Fig. 2(A) is a diagram showing an outline of the arrangement of each component of the imaging unit 101. As shown in Fig. 2(A), the imaging unit 101 includes an imaging optical system 111, an imaging element 112, and a memory 113.
[0015] The memory 113 may be configured to include both a central processing unit (hereinafter referred to as a CPU) and a memory that stores a processing program.
[0016] The imaging optical system 111 is a photographing lens of the imaging unit 101, and has the function of forming an image of a subject on the imaging element 112. The imaging optical system 111 may be composed of a group of multiple lenses (not shown). In this specification, the z-axis is parallel to the optical axis 114 of the imaging optical system 111. Furthermore, the x-axis and y-axis are perpendicular to each other and to the optical axis.
[0017] The image sensor 112 is configured with a CMOS (complementary metal oxide semiconductor) or a CCD (charge-coupled device) and has a distance measurement function using a pupil division phase difference distance measurement method. The subject image formed on the image sensor 112 via the imaging optical system 111 is photoelectrically converted by the image sensor 112. An image signal based on the subject image is acquired by this photoelectric conversion, and this image signal is stored in the memory 113.
[0018] Fig. 2(B) is an xy cross-sectional view of the image sensor 112. That is, Fig. 2(B) is a diagram showing the image sensor 112 cut along a plane perpendicular to the z-axis. The image sensor 112 is configured by arranging a plurality of pixels 120 in a matrix. Fig. 2(B) shows an enlarged view of some of the pixels 120 of the image sensor 112, and illustrates I-I', which is the cross-section of the cross-sectional view of Fig. 2(C).
[0019] 2C is a diagram schematically illustrating a cross section taken along line II' of the pixel 120. Each of the plurality of pixels 120 is composed of a light receiving layer 130 and a light guide layer 140.
[0020] The light receiving layer 130 includes two photoelectric conversion units, a first photoelectric conversion unit 131 and a second photoelectric conversion unit 132, as photoelectric conversion units for photoelectrically converting received light. The light guide layer 140 includes a microlens 150, a color filter (not shown) that transmits light in a predetermined wavelength band, and wiring (not shown) for reading images and driving pixels. The microlens 150 is a lens for efficiently guiding the light beam incident on the pixel 120 to the first photoelectric conversion unit 131 and the second photoelectric conversion unit 132.
[0021] The first photoelectric conversion unit 131 and the second photoelectric conversion unit 132 are formed from a material that is sensitive to the wavelength band to be detected, and in particular, when the wavelength band to be detected is in the visible range, they are made of Si, but are not limited to this and can be formed from any material depending on the target wavelength band.
[0022] 3A and 3B are schematic diagrams illustrating a method for acquiring a set of images having parallax captured from different viewpoints using the image capture unit 101. FIG. 3A is a diagram illustrating how an image of a subject 301 is formed on the image capture element 112. For the chief ray 310, a first light beam 311 passes through a first region of the exit pupil (not shown) of the imaging optical system 111 and reaches the image capture element 112. Similarly, for the chief ray 310, a second light beam 312 passes through a second region of the exit pupil (not shown) of the imaging optical system 111 and reaches the image capture element 112.
[0023] 3(B) is a diagram showing the relationship between the exit pupil and the pixels 120 of the image sensor 112. Light ray 331 is the centroid ray of the first light beam 311, and passes through a first pupil region 321 in the exit pupil 320, via the microlens 150, to reach the first photoelectric conversion unit 131. Light ray 332 is the centroid ray of the second light beam 312, and passes through a second pupil region 322 in the exit pupil 320, via the microlens 150, to reach the second photoelectric conversion unit 132.
[0024] In this way, regardless of the angle of view, at any image height of the image sensor 112, the centroid ray of each light beam that passes through different pupil regions reaches the first photoelectric conversion unit 131 or the second photoelectric conversion unit 132 of the pixel 120 and is converted into an image signal. Therefore, a set of images from different viewpoints can be acquired by reading out only the image signal obtained by either the first photoelectric conversion unit 131 or the second photoelectric conversion unit 132. By reading out only the image signal of the first photoelectric conversion unit 131 from all pixels, a first image from the first viewpoint is acquired. On the other hand, by reading out only the image signal of the second photoelectric conversion unit 132 from all pixels, a second image from the second viewpoint is acquired. Since these first and second images are images formed by light beams that pass through different regions of the exit pupil, they are equivalent to a set of images captured from different viewpoints and have parallax. In this case, the distance 330 between the center of gravity 331 of the first light beam 311 and the center of gravity 332 of the second light beam 312 on the exit pupil is the distance between the different viewpoints, that is, the base length.
[0025] 4A and 4B are diagrams for explaining an outline of how the base length varies depending on the angle of view in the pupil division phase difference method. Fig. 4A is a diagram showing the image sensor 112 of the image capturing unit 101 according to this embodiment. Fig. 4B is a diagram showing the exit pupil and light flux distribution at a central image height 410 on the image sensor 112. Fig. 4C is a diagram showing the exit pupil and light flux distribution at a peripheral image height 420 on the image sensor 112.
[0026] 4B, a center-of-gravity interval 416 between a center 413 of a light intensity distribution 412 of the first light beam 331 and a center 415 of a light intensity distribution 414 of the second light beam 332 is the base 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 unit 131. The second light beam 332 is a light beam that can be received by the second photoelectric conversion unit 132.
[0027] Similarly, at the exit pupil 421 of the peripheral image height 420 shown in Figure 4(C), the center of gravity distance 426 between the center of gravity 423 of the light intensity distribution 422 of the first light beam 331 and the center of gravity 425 of the light intensity distribution 424 of the second light beam 332 is the base length of the peripheral image height 420.
[0028] At the peripheral image height 420, the shape of the exit pupil 421 is deformed compared to the exit pupil 411 at the central image height 410 due to the effect of vignetting by a lens barrel of an optical system (not shown). As a result, the position of the center of gravity of each light beam moves on the exit pupil 421. Therefore, the center-of-gravity interval 426 at the peripheral image height 420 changes relative to the center-of-gravity interval 416 at the central image height 410.
[0029] In this way, in the split-pupil phase difference method, the value of the baseline length changes depending on the image height. On the other hand, in a stereo camera using two cameras, the distance between the cameras is the baseline length, and this value does not change depending on the image height, so the baseline length does not change depending on the image height.
[0030] 5 is a flowchart of a distance measurement value calculation process performed by the distance measuring device 100 according to the first embodiment. The following describes the processes performed by the imaging unit 101, the parallax calculation unit 102, and the distance measurement value calculation unit 103. Each process is realized by executing a software program on a CPU provided in the distance measuring device 100. Each process may also be executed by a CPU provided together with the memory 113 provided in the imaging device 101.
[0031] In step S501, the imaging unit 101 executes a parallax image acquisition process. As 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 that have a parallax with each other.
[0032] In step S502, the disparity calculation unit 102 executes a pre-processing for disparity calculation. As the pre-processing for disparity calculation, the disparity calculation unit 102 performs a light intensity difference correction process and a band-pass filter process using a band-pass filter on the first image and the second image acquired in step S501.
[0033] The light intensity difference correction process corrects the light intensity difference that causes an imbalance in the light intensity between the first image and the second image due to the imaging optical system 111. The parallax calculation unit 102 performs the light intensity difference correction by correcting the signal values of the first image and the second image using a light intensity correction value that is designed in advance.
[0034] In band-pass filtering, the higher the spatial frequency band, the lower the SN ratio (ratio of signal components to noise components), so the transmittance in high spatial frequency regions is reduced. Also, even after the aforementioned light intensity correction process, the DC components of the first and second images do not perfectly match due to manufacturing errors, etc., so in band-pass filtering, the pass rate near a spatial frequency of 0 is set to 0.
[0035] In step S503, the parallax calculation unit 102 executes a parallax calculation process, which calculates the amount of parallax according to the distance to the subject from the first image and the second image that have been subjected to the parallax calculation pre-processing.
[0036] In the parallax calculation process, a focus point, which is the image coordinate for calculating the amount of parallax in the input first image, is first set, and a matching area is set with the focus point as its center and width in the horizontal and vertical directions equal to the size of a search window corresponding to the image height, which will be described later.
[0037] Next, in the parallax calculation process, a reference point is set in the second image, and a reference area is set with the reference point as the center and width in the horizontal and vertical directions equal to the size of a search window corresponding to the image height (described later). The reference area has the same size and shape as the matching area.
[0038] Next, in the disparity calculation process, the degree of correlation between the signal of the first image contained in the matching area and the signal of the second image contained in the reference area is calculated while sequentially moving the reference point, and the reference point with the highest correlation is designated as the corresponding point of the point of interest. The amount of disparity in the relative positions between the point of interest and the corresponding point is the amount of disparity at the point of interest. By calculating the amount of disparity while sequentially changing the image coordinates of the point of interest, the amount of disparity can be calculated for all pixel positions on the image.
[0039] Any known method may be used to calculate the degree of correlation. For example, a method called NCC, which evaluates the normalized cross-correlation between image signals, SSD, which evaluates the sum of squares of the differences between image signals, or SAD, which evaluates the absolute value of the differences, can be used. NCC is an abbreviation for Normalized Cross-Correlation. SSD is an abbreviation for Sum of Squared Difference. SAD is an abbreviation for Sum of Absolute Difference.
[0040] Here, a method for setting a search window will be described with reference to Fig. 6. Fig. 6 is a diagram for explaining a method for setting a search window. Fig. 6(A) is a diagram showing a first image 601. Fig. 6(B) is a graph plotting a baseline length 621 in the horizontal direction of the image and a baseline length 622 in the vertical direction of the image.
[0041] 6(A) shows a search window 611 for a central image height, a search window 612 for a horizontal peripheral image height, and a search window 613 for a vertical peripheral image height, which are set according to this embodiment, in a first image 601. In FIG. 6(B), the horizontal axis is normalized and superimposed by the maximum positive and negative image heights in the horizontal and vertical directions.
[0042] Because the aforementioned first photoelectric conversion unit 131 and second photoelectric conversion unit 132 are fabricated by being separated in the horizontal direction of the image, the change in base length 621 increases toward the peripheral image height in the horizontal direction. On the other hand, because the vertical direction of the image is perpendicular to the separation direction of the first photoelectric conversion unit 131 and the second photoelectric conversion unit 132, the change in the center of gravity interval between the corresponding light beams is small, and the change in base length 622 is small even when the image height changes in the peripheral image height in the vertical direction.
[0043] The amount of parallax between the first and second images is determined by the value of the base line length. Therefore, as shown by the change in base line length 621 in the horizontal direction of the image, when the size of the search window is large, there is a high possibility that the same subject within the search window area at the peripheral image height will have different amounts of parallax, increasing the error in the parallax calculation. On the other hand, from the perspective of the S / N ratio during correlation calculation, a larger search window size is more desirable, as it improves the accuracy of calculating the correlation value. Therefore, a trade-off issue arises when setting the size of the search window.
[0044] Therefore, this embodiment is characterized in that the search window is set based on an optical characteristic value of the image height for which parallax calculation is performed. Specifically, the search window is set based on a value determined by the distance between the center of gravity of the first light beam that forms the first image and the center of gravity of the second light beam that forms the second image on the exit pupil of the optical system, that is, the base length.
[0045] The search window 611 at the central image height is set to the initial setting search window size, with the horizontal size set as wh0 and the horizontal size set as wv0. In contrast, the horizontal and vertical sizes of the search window at each image height are set as values obtained by multiplying the value of the base line length shown in FIG. 6B by a coefficient k. The horizontal search window size wh(u,v) at a certain image height (u,v) is set by the following equation 1, where k1 is the coefficient, A1(u,v) is the change in horizontal base line length, and wh0 is the initial setting horizontal size of the search window. The search window size is set in number of pixels, that is, as an integer.
number
[0046] Similarly, the size wv(u,v) of the search window in the vertical normal direction at a certain image height (u,v) is set by the following Expression 2, where k2 is a coefficient, A2(u,v) is the change in baseline length in the vertical direction, and wv0 is the size of the search window in the vertical direction at the initial setting.
number
[0047] The coefficients k1 and k2 are determined according to the size of the subject, the distance distribution, etc. that are expected when using the distance measuring device 100 of this embodiment, or are determined by preset values, lookup table values according to the scene, etc.
[0048] 6(A) shows a central image height search window 611, a horizontal peripheral image height search window 612, and a vertical peripheral image height search window 613, which are the sizes of the search windows set as described above. The horizontal peripheral image height search window 612 is set to be smaller in the horizontal direction than the central image height search window 611 by the amount of change in base line length. Furthermore, the vertical peripheral image height search window 613 is set to have a search window size that is almost unchanged compared to the center because the change in base line length is small. In the parallax calculation process, the search windows set as described above are used to calculate the amount of parallax.
[0049] By setting the size of the search window as described above, the amount of change in the base line length within the search window area is reduced, and as a result, the change in the amount of parallax for the same subject included within the search window area is reduced. Therefore, according to this embodiment, it is possible to reduce the above-mentioned parallax calculation error.
[0050] In step S504, the distance measurement value calculation unit 103 executes a distance measurement value calculation process. As the distance measurement value calculation process, the distance measurement value calculation unit 103 converts the amount of parallax calculated in step S503 into a distance measurement value using a known method, thereby calculating the distance measurement value.
[0051] In the distance measurement value calculation process, the amount of parallax is converted into the amount of defocus using the base line 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 imaging formula. By performing this process over the entire angle of view, the distance measurement value for the entire image can be obtained.
[0052] As described above, according to the first embodiment, the setting of the search window used in the correlation calculation in the parallax calculation process is determined based on the base line length that varies with the image height, thereby providing a distance measuring device that reduces errors in the calculation of parallax. In other words, even when the base line length value varies with the image height, it is possible to provide a distance measuring device that can reduce changes in distance measurement accuracy depending on the image height. [Example]
[0053] 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 the base line length value for each image height by the focal length for each image height is used as an optical characteristic value for determining the size of the search window. The configuration of the second embodiment is the same as that of the first embodiment, and differences will be described below.
[0054] When the exit pupil distance differs for each image height, the value of the base line length, which is the distance between the centers of gravity of each light beam on the exit pupil, changes due to the influence of the exit pupil distance. Therefore, when the focal length varies significantly for each image height, it is more accurate to express the center of gravity of each light beam using a ray angle rather than the distance between the centers of gravity of each light beam and to express it using an optical characteristic value of the base line length equivalent to the F-number of the optical system. In this embodiment, the focal length for each image height is f(u,v), and the size of the search window in the horizontal normal direction, wh(u,v), and the size of the search window in the vertical normal direction, wv(u,v), at a certain image height (u,v) can be set as shown in Equations 3 and 4.
number
number
[0055] According to this embodiment, by setting as described above, it is possible to provide a distance measuring device that can reduce the change in distance measurement accuracy according to image height with higher accuracy, even if the change in focal length according to image height is large.
[0056] 7A and 7B are diagrams illustrating an image capturing unit according to Example 2. The characteristics of the optical system according to this Example are shown in Fig. 7A and Fig. 7B. Fig. 7A shows the light flux distribution with respect to the angle of view on the exit pupil, and Fig. 7B shows the image height of the image sensor on the vertical axis and the light flux range received per unit image height, that is, the angle of view, on the horizontal axis.
[0057] The first change rate is the increase rate (=image height / angle of view) of the graph in FIG. 7B for a first region 701 corresponding to a central image height included in a first angle of view range less than the angle of view θa. The second change rate is the increase rate (=image height / angle of view) of the graph in FIG. 7B for a second region 702 corresponding to a peripheral image height included in a second angle of view range equal to or greater than the angle of view θa. The magnitude relationship between the increase rates is first change rate > second change rate. The optical characteristics of the image capture unit according to this embodiment have different distortion characteristics between the center and the periphery, resulting in a compressed image capture of the peripheral angle of view. Here, the first change rate is the rate of change of the number of pixels included per unit angle of view at the first angle of view in the first region corresponding to the central image height relative to the image height. The second change rate is the rate of change of the number of pixels included per unit angle of view at the second angle of view in the second region corresponding to the peripheral image height relative to the image height. In this embodiment, the first change rate is greater than the second change rate. In this way, the optical system according to this embodiment has different distortion characteristics at the central image height and at the peripheral image height.
[0058] In this embodiment, the change in distance measurement accuracy can be reduced by using the parallax calculation method according to the present invention, i.e., by setting a search window, in such an imaging unit configuration. When the imaging unit has the optical characteristics shown in Figures 7(A) and 7(b), the change in focal length is large relative to the change in image height, so in this embodiment, the size of the search window is set using the value obtained by dividing the base length by the focal length.
[0059] 7C is a graph plotting values 721 obtained by dividing the baseline length in the horizontal direction of the image by the focal length at each image height, and values 722 obtained by dividing the baseline length in the vertical direction of the image by the focal length at each image height. In FIG. 7C, the horizontal axis is normalized and superimposed by the maximum positive and negative image heights in the horizontal and vertical directions. In this embodiment, the size of the search window is set by the above-described method using values 721 and 722 shown in FIG. 7C and Equations 3 and 4.
[0060] Fig. 8 is a diagram showing the sizes of search windows set during correlation calculation according to this embodiment, showing a search window 811 for the central image height, a search window 812 for the horizontal peripheral image height, and a search window 813 for the vertical peripheral image height.
[0061] According to this embodiment, as described above, 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, it is possible to provide a distance measuring device that can reduce changes in distance measurement accuracy even when the change in focal length is large relative to the change in image height.
[0062] Furthermore, according to this embodiment, a wide-angle image is obtained at peripheral image heights where the focal length changes significantly and the value becomes small, and the size of the search window is therefore small, which reduces the probability that a different subject will be included within the search window, which is also preferable from the viewpoint of in-plane resolution.
[0063] It should be noted that in this embodiment, the optical characteristics of the image capturing unit are not limited to the described configuration. Fig. 9 is a diagram showing another example of the optical characteristics of the image capturing unit, different from Fig. 7. Fig. 9(A) shows the light flux distribution with respect to the angle of view on the exit pupil, and Fig. 9(B) shows the image height of the image sensor on the vertical axis and the light flux range received per unit image height, i.e., the angle of view, on the horizontal axis.
[0064] This embodiment can also be applied to an imaging unit of an optical system having the optical characteristics shown in FIGS. 9A and 9B. The examples of FIGS. 9A and 9B are configurations in which the rate of change in image height / angle of view is larger in a peripheral region 902 than in a central region 901, that is, a configuration in which the angle of view in the periphery is expanded and imaged. 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 at the periphery. According to this embodiment, even in the configurations of FIGS. 9A and 9B, changes in distance measurement accuracy can be reduced by setting the size of the search window based on optical characteristic values obtained by dividing the base length by the focal length at each image height. [Example]
[0065] In the present invention, the configuration of the image sensor 112 is not limited to the configuration described in Example 1. In Example 3, an example different from the configuration shown in Fig. 2 will be described. The photoelectric conversion unit in the pixel 120 can be configured in any division direction, and the size of the search window can be set based on the direction that defines the size of the search window, that is, the change in optical characteristic value in the horizontal direction and vertical direction of the image.
[0066] 10A and 10B are diagrams illustrating a detailed configuration of an imaging unit according to Example 3. The imaging unit 101 illustrated in FIG. 10A is the same as that of Example 1 illustrated in FIG. 2A. In this example, the configuration of the imaging element 112 differs from that of Example 1. FIG. 10B is an xy cross-sectional view of the imaging element 112 according to Example 3. That is, FIG. 10B is a diagram illustrating the imaging element 112 cut along a plane perpendicular to the z-axis.
[0067] The image sensor 112 according to this embodiment 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, each of which is divided into a first direction, which is the horizontal direction of the image, and a second direction, which is the vertical direction of the image. In this embodiment, the pixel 120 is divided into four parts. With this configuration, distance measurement is possible in any direction having parallax, including the horizontal direction of the image, the vertical direction of the image, and the diagonal direction of the image, depending on how the photoelectric conversion units used to generate the first and second images are combined among the four photoelectric conversion units.
[0068] Here, the first image is defined as an image read out by adding together the outputs of the first photoelectric conversion unit 1031 and the second photoelectric conversion unit 1032. Furthermore, the second image is defined as an image read out by adding together the outputs of the third photoelectric conversion unit 1033 and the fourth photoelectric conversion unit 1034. When these first and second images are used, a pair of images having parallax in the horizontal direction of the image can be obtained.
[0069] Furthermore, the third image is an image read out by adding together the outputs of the first photoelectric conversion unit 1031 and the third photoelectric conversion unit 1033. Furthermore, the fourth image is an image read out by adding together the outputs of the second photoelectric conversion unit 1032 and the fourth photoelectric conversion unit 1034. When these third and fourth images are used, a pair of images having parallax in the vertical direction of the image can be obtained.
[0070] Furthermore, when a fifth image obtained by reading out the output of the first photoelectric conversion unit 1031 and a sixth image obtained by reading out the output of the fourth photoelectric conversion unit 1034 are used, a pair of images having parallax in the diagonal direction of the image can be obtained.
[0071] Furthermore, when a seventh image obtained by reading out the output of the second photoelectric conversion unit 1032 and an eighth image obtained by reading out the output of the third photoelectric conversion unit 1033 are used, a pair of images can be obtained that has a parallax in the image diagonal direction that is 90 degrees different from the fifth and sixth images.
[0072] According to this embodiment, by setting a search window for an image pair having the above-described parallax, it is possible to reduce changes in distance measurement accuracy in the same way as in the above-described embodiment. The setting of the search window when there is parallax in the horizontal and vertical directions of the image is as described above.
[0073] Fig. 10C is a diagram illustrating an example of setting search windows when using a fifth image obtained by reading out the output of the first photoelectric conversion unit 1031 and a sixth image obtained by reading out the output of the fourth photoelectric conversion unit 1034. In this case, the direction in which the change in base line length is greatest is the diagonal direction, so search window 1011 for the central image height, search window 1012 for the horizontal peripheral image height, search window 1013 for the vertical peripheral image height, and search window 1014 for the diagonal peripheral image height are as shown in Fig. 10C. In this way, this embodiment can provide a distance measuring device that reduces changes in distance measurement accuracy even in the case of a pair of images having parallax in the diagonal direction.
[0074] The configuration of the image sensor is not limited to that of this embodiment. For example, the pixel 120 may be configured to include a first photoelectric conversion unit and a second photoelectric conversion unit that are divided in the vertical direction of the image so that the direction of parallax is the vertical direction of the image. This configuration makes it possible to acquire a pair of images with parallax in the vertical direction of the image, enabling distance measurement of a subject that has texture in the horizontal direction of the image. Even with such a configuration, a distance measurement device with reduced changes in distance measurement accuracy can be provided by setting the search window using the method of the present invention. [Example]
[0075] There are multiple factors that affect the accuracy of correlation calculations, including the amount of texture contained within the search window, which is dependent on the subject, and the image S / N ratio, but from the perspective of image S / N statistics, the total number of pixels contained within the search window has an effect. This embodiment shows an example in which the accuracy of correlation calculations is constant by keeping the total number of pixels within the search window constant regardless of image height. The total number of pixels S0 contained within the search window at the reference central image height is expressed by Equation 5.
number
[0076] When the direction having parallax is the horizontal direction of the image, it is the horizontal direction of the image that also affects the change in distance measurement accuracy, so the size of the horizontal search window is determined by Equation 6 as described above.
number
[0077] Then, the size of the search window in the vertical direction of the image is determined by dividing S0 by wh(u, v) so that the total number of pixels is constant, and is an integer using Equation 7.
number
[0078] According to this embodiment, as described above, by setting the size of the search window so that the total number of pixels contained within the search window is constant, it is possible to provide a distance measuring device that reduces distance measurement fluctuations caused by the image S / N statistics during correlation calculations. [Example]
[0079] In the fifth embodiment, an example of a usage form of the distance measuring device according to the present invention will be described. FIG. 11 is a diagram illustrating a usage form of the distance measuring device according to the fifth embodiment. FIG. 11(A) is a diagram illustrating an outline of a state in which a distance measuring device 1110 according to the fifth embodiment is mounted on a vehicle 1100, which is a moving body, and used. FIG. 11(B) is a block diagram of the configuration shown in FIG. 11(A). The moving body on which the distance measuring device 1110 is mounted is not limited to a vehicle (automobile), and may be various public transportation means such as a train or an airplane, or various robots such as small mobility vehicles or AGVs (Automatic Guided Vehicles).
[0080] In FIG. 11(A), a vehicle 1100 includes a distance measuring device 1110 according to a fifth embodiment. The distance measuring device 1110 includes each of the components of the distance measuring device 100 described in each of the above-described embodiments. The vehicle 1100 further includes a vehicle information measuring device 1120, a route generation ECU 1130, and a vehicle control ECU 1140. The vehicle information measuring device 1120 is a measuring device that detects the traveling speed and steering angle of the vehicle 1100. ECU is an abbreviation for Electronic Control Unit. Alternatively, the route generation ECU 1130 and the vehicle control ECU 1140 may be configured with a CPU and a memory that stores a calculation processing program. The vehicle 1100 may also include an HMI 1150. HMI is an abbreviation for Human Machine Interface.
[0081] The distance measuring device 1110 captures an image of the surrounding environment including the road on which the vehicle 1100 is traveling, generates image information representing the captured image, and distance image information having information representing the distance to the subject for each pixel, and outputs the information to the route generation ECU 1130. The distance measuring device 1110 is placed near the top edge of the windshield of the vehicle 1100 as shown in Fig. 11, and captures an image of an area in a predetermined angular range (hereinafter referred to as the photographing angle of view) facing forward of the vehicle 1100.
[0082] The information indicating the distance to the subject may be information that can be converted into the distance from the image capture device 1110 to the subject within the imaging angle of view, and may be information that can be converted using a predetermined lookup table or a predetermined conversion coefficient and conversion formula. For example, the image capture device 1110 may assign a distance value to a predetermined integer value and output the result to the route generation ECU 1130. The image capture device 1110 may also output information that can be converted into an optically conjugate distance value (the distance from the image capture element to a conjugate point (so-called defocus amount)) that can be converted into the distance to the subject to the route generation ECU 1130. The image capture device 1110 may also output information that can be converted into the distance from the optical system to a conjugate point (the distance from the image-side principal point to the conjugate point) that can be converted into the distance to the subject to the route generation ECU 1130.
[0083] The route generation ECU 1130 is configured using, for example, a logic circuit. The route generation ECU 1130 generates target route information related to at least one of a target travel trajectory and a target travel speed of the vehicle 1100 based on measurement signals from the vehicle information measuring device 1120 and image information and distance image information from the distance measuring device 1110. 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 movement of the vehicle 1100 so that the travel speed and steering amount of the vehicle 1100 become control target values. Specifically, the vehicle control ECU 1140 controls engine braking and steering in accordance with the target route information. The vehicle control ECU 1140 may not control the movement of the vehicle 1100, but may instead issue a warning to the driver 1001 in accordance with the target route information. The vehicle control ECU 1140 may both issue a warning and control the movement of the vehicle 1100.
[0084] Furthermore, if the vehicle 1100 is equipped with an HMI 1150, the target route information generated by the route generation ECU 1130 can be notified to the driver 1001 via the HMI 1150. The HMI 1150 notifies the driver 1001 by displaying an image or by voice.
[0085] Applying the search window size setting method according to the present invention to the distance measuring device 1110 improves the accuracy of distance information output regardless of image height, i.e., angle of view, and improves the accuracy of target route information output from the route generation ECU 1130. This improvement in the accuracy of the target route information achieves safer vehicle driving control.
[0086] When a distance measuring device is mounted on a moving object such as a vehicle, various measurement conditions are expected depending on the driving scene and state. Specific examples include driving scenes with low ambient light such as inside a tunnel or at night, which presents a difficult S / N ratio, high-speed driving scenes requiring frequent information updates, and driving scenes in cities and at intersections that require high distance measurement accuracy, particularly for peripheral image heights. In such cases, it is preferable to set the size of the search window taking into account the driving scene in addition to the above-mentioned optical characteristic values, as this will enable safer vehicle driving control.
[0087] The recognition of the driving scene can be performed by the route generation ECU 1130 through recognition processing of the captured image acquired by the distance measuring device 1110. That is, the route generation ECU 1130 has a recognition unit that recognizes the driving scene. This recognition unit may be included in the distance measuring device 1110, or the distance measuring device 1110 may recognize the driving scene. The parallax calculation unit 102 sets a search window according to the recognized driving scene and calculates the amount of parallax using this search window.
[0088] In driving situations where the amount of ambient light is low, such as inside a tunnel or at night, and where the S / N ratio is poor, coefficients k1 and k2, which are coefficients related to setting the search window described above, are set to larger values than when driving outdoors during the day, and the total number of pixels within the search window is adjusted to increase. This makes it possible to favorably adjust the accuracy of the correlation calculation caused by the total number of pixels included in the search window during correlation calculation, and reduce changes in distance measurement accuracy.
[0089] In addition, in high-speed driving scenes, the total number of pixels in the search window is reduced by setting the values of coefficients k1 and k2 smaller than those used when driving at normal speeds, shortening the calculation time required for correlation calculations per pixel and improving the update frequency of the distance measurement results. This improves the update frequency of the control results based on the distance measurement results relative to the amount of movement of the vehicle, enabling safer vehicle driving control.
[0090] Furthermore, when driving in town or at intersections, it is desirable to detect objects suddenly appearing from the surroundings, so it is preferable to prioritize whether or not a detection is detected, even if it means allowing for changes in distance measurement accuracy, and to set the values of coefficients k1 and k2 to values larger than those used when driving at normal speeds so that the search window does not become too small.
[0091] According to this embodiment, as described above, it is possible to set an optimum search window while reducing the change in distance measurement accuracy depending on the vehicle driving scene, thereby realizing safer vehicle driving control.
[0092] (Other embodiments) The present invention can also be realized by supplying a program that realizes one or more functions of the above-described embodiments to a system or device via a network or a storage medium, and having one or more processors in the computer of the system or device read and execute the program.The present invention can also be realized by a circuit (e.g., ASIC) that realizes one or more functions.
[0093] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments and various modifications and changes are possible within the scope of the gist of the present invention.
[0094] The disclosure of this embodiment includes the following configurations and methods. (Configuration 1) an imaging means capable of capturing first image information and second image information having a parallax from one optical system; a parallax calculation means for extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on a correlation between the extracted image information within the search window of the first image information and the extracted image information within the search window of the second image information; A distance measuring device comprising: the parallax calculation means sets the search window based on an optical characteristic value of an image height for which parallax calculation is performed, the optical characteristic value is a value determined by a centroid interval between a centroid of a first light beam forming the first image information and a centroid of a second light beam forming the second image information on an exit pupil of the optical system. A distance measuring device characterized by: (Configuration 2) the optical characteristic value is a value obtained by dividing the distance between the centers of gravity by a focal length for each image height; 2. The distance measuring device according to configuration 1, (Configuration 3) the optical system has different distortion characteristics at a central image height and a peripheral image height, the first rate of change is a rate of change with respect to the image height of the number of pixels included per unit angle of view at the first angle of view of the first region corresponding to the central image height, the second rate of change is a rate of change in the number of pixels included per unit angle of view at the second angle of view of the second region corresponding to the peripheral image height, with respect to the image height; The first rate of change is greater than the second rate of change. 3. The distance measuring device according to configuration 1 or 2. (Configuration 4) the optical system has different distortion characteristics at a central image height and a peripheral image height, the first rate of change is a rate of change with respect to the image height of the number of pixels included per unit angle of view at the first angle of view of the first region corresponding to the central image height, the second rate of change is a rate of change in the number of pixels included per unit angle of view at the second angle of view of the second region corresponding to the peripheral image height, with respect to the image height; the first rate of change is smaller than the second rate of change; 3. The distance measuring device according to configuration 1 or 2. (Configuration 5) the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit includes a first photoelectric conversion unit and a second photoelectric conversion unit that are divided in a vertical direction; 5. The distance measuring device according to any one of configurations 1 to 4. (Configuration 6) the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit includes a first photoelectric conversion unit and a second photoelectric conversion unit that are divided in a horizontal direction; 5. The distance measuring device according to any one of configurations 1 to 4. (Configuration 7) the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit is divided into four parts in a first direction and a second direction different from the first direction, and includes a first photoelectric conversion unit, a second photoelectric conversion unit, a third photoelectric conversion unit, and a fourth photoelectric conversion unit; 5. The distance measuring device according to any one of configurations 1 to 4. (Configuration 8) The total number of pixels included in the search window is constant regardless of the image height. 8. The distance measuring device according to any one of configurations 1 to 7, (Configuration 9) A moving body equipped with the distance measuring device according to any one of configurations 1 to 8, a control unit that issues a warning or controls the movement of the moving object based on a distance measurement result using the amount of parallax calculated by the parallax calculation unit; A moving object characterized by: (Configuration 10) A moving body equipped with the distance measuring device according to any one of configurations 1 to 8, Equipped with a recognition means for recognizing driving scenes, the disparity calculation means sets the search window in accordance with the traveling scene recognized by the recognition means. A moving object characterized by: (Method 1) an imaging step of capturing first image information and second image information having a parallax from one optical system; a parallax calculation step of extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on a correlation between the extracted image information within the search window of the first image information and the extracted image information within the search window of the second image information; A method for controlling a distance measuring device comprising: the parallax calculation step sets the search window based on an optical characteristic value of an image height at which parallax calculation is performed, the optical characteristic value is a value determined by a centroid interval between a centroid of a first light beam forming the first image information and a centroid of a second light beam forming the second image information on an exit pupil of the optical system. A method for controlling a distance measuring device. (Program 1) A program for causing a computer to function as each of the means according to any one of configurations 1 to 10. [Explanation of symbols]
[0095] 100 Rangefinder 101 Imaging unit 102 Parallax calculation unit 103 Distance measurement value calculation unit
Claims
1. an imaging means capable of capturing first image information and second image information having a parallax from one optical system; a parallax calculation means for extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on 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; A distance measuring device comprising: the parallax calculation means sets the search window based on an optical characteristic value of an image height for which parallax calculation is performed, the optical characteristic value is a value determined by a center-of-gravity interval 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 focal length for each image height. A distance measuring device characterized by:
2. the optical characteristic value is a value obtained by dividing the centroid interval by the focal length for each image height; 2. The distance measuring device according to claim 1.
3. the optical system has different distortion characteristics at a central image height and a peripheral image height, the first rate of change is a rate of change with respect to the image height of the number of pixels included per unit angle of view at the first angle of view of the first region corresponding to the central image height, the second rate of change is a rate of change in the number of pixels included per unit angle of view at the second angle of view of the second region corresponding to the peripheral image height, with respect to the image height; the first rate of change is greater than the second rate of change; 2. The distance measuring device according to claim 1.
4. the optical system has different distortion characteristics at a central image height and a peripheral image height, the first rate of change is a rate of change with respect to the image height of the number of pixels included per unit angle of view at the first angle of view of the first region corresponding to the central image height, the second rate of change is a rate of change in the number of pixels included per unit angle of view at the second angle of view of the second region corresponding to the peripheral image height, with respect to the image height; the first rate of change is smaller than the second rate of change; 2. The distance measuring device according to claim 1.
5. the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit includes a first photoelectric conversion unit and a second photoelectric conversion unit that are divided in a vertical direction; 2. The distance measuring device according to claim 1.
6. the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit includes a first photoelectric conversion unit and a second photoelectric conversion unit that are divided in a horizontal direction; 2. The distance measuring device according to claim 1.
7. the imaging means has a photoelectric conversion unit of an imaging element, the photoelectric conversion unit is divided into four parts in a first direction and a second direction different from the first direction, and includes a first photoelectric conversion unit, a second photoelectric conversion unit, a third photoelectric conversion unit, and a fourth photoelectric conversion unit; 2. The distance measuring device according to claim 1.
8. An imaging means capable of capturing first image information and second image information having a parallax from one optical system; a parallax calculation means for extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on 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; A distance measuring device comprising: the parallax calculation means sets the search window based on an optical characteristic value of an image height for which parallax calculation is performed, the optical characteristic value is a value determined by a centroid interval between a centroid of a first light beam forming the first image information and a centroid of a second light beam forming the second image information on an exit pupil of the optical system, The total number of pixels included in the search window is constant regardless of the image height. A distance measuring device characterized by:
9. A moving body equipped with the distance measuring device according to claim 1, a control unit that issues a warning or controls the movement of the moving object based on a distance measurement result using the amount of parallax calculated by the parallax calculation unit; A moving object characterized by:
10. A moving body equipped with the distance measuring device according to claim 1, Equipped with a recognition means for recognizing driving scenes, the disparity calculation means sets the search window in accordance with the traveling scene recognized by the recognition means. A moving object characterized by:
11. an imaging step of capturing first image information and second image information having a parallax from one optical system; a parallax calculation step of extracting image information within a search window from each of the first image information and the second image information, and calculating a parallax amount based on 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; A method for controlling a distance measuring device comprising: the parallax calculation step sets the search window based on an optical characteristic value of an image height at which parallax calculation is performed, the optical characteristic value is a value determined by a center-of-gravity interval 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 focal length for each image height. A method for controlling a distance measuring device.
12. A program for causing a computer to function as each of the means according to any one of claims 1 to 10.
Citation Information
Patent Citations
Process for producing improved polybutadiene
JP1978065387A
Position detector
JP2011022072A
Distance measurement device, imaging device and distance measurement method
JP2018017568A
Imaging device, control method for the same, and program
JP2019197140A
Imaging apparatus, control method of imaging apparatus, and program
JP2020134624A
