Distance measurement device, movable body, control method and program

By setting search windows based on optical characteristic values, the device stabilizes baseline length and reduces measurement errors, ensuring accurate distance measurements across varying image heights.

JP2024119171AActive Publication Date: 2024-09-03CANON KK
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023025887
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-09-03
Estimated Expiration
2043-02-22

AI Technical Summary

Technical Problem

Existing distance measurement methods, such as the pupil division phase difference method, suffer from changes in baseline length and measurement accuracy due to vignetting, which affects image height, while methods adjusting search window size based on distortion correction fail to adequately address this issue.

Method used

A distance measuring device that captures images with parallax using one optical system, sets search windows based on the optical characteristic value, specifically the center-of-gravity interval between light beams on the exit pupil, to stabilize baseline length and reduce measurement errors across varying image heights.

Benefits of technology

The device achieves consistent distance measurement accuracy by dynamically adjusting search window sizes based on optical characteristics, reducing errors caused by changes in baseline length and image height.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024119171000001
    Figure 2024119171000001
Patent Text Reader

Abstract

To provide a distance measurement device that can reduce a change in distance measurement accuracy.SOLUTION: A distance measurement device includes: imaging means which can image first image information and second image information that have a parallax with each other from one optical system; and parallax calculation means which extracts image information in a search window from each of the first image information and the second image information, and calculates a parallax amount by the correlation between the extracted image information in the search window of the first image information and the image information in the search window of the second image information. The parallax calculation means sets the search window on the basis of an optical characteristic value of the image height for which the parallax calculation is performed. The optical characteristic value is the value determined by the gravity center interval between the gravity center of a first luminous flux forming the first image information and the gravity center of a second luminous flux forming the second image information on the exit pupil of the optical system.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

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 find the amount of movement of the search window between images in which the patterns in the search window area match.

[0003] Patent Document 1 discloses a method of modifying the size and shape of a search window when calculating parallax in a stereo camera according to the image height, specifically, a method of modifying the size and shape according to a distortion correction amount that depends on the image height.

[0004] Patent Document 2 discloses a configuration that can obtain a set of images with parallax using a single camera. Each pixel of the image sensor shares a microlens while the photoelectric conversion unit is divided, and each photoelectric conversion unit receives light beams that have passed through different pupil regions of an optical system to obtain 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 exists, 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 distortion correction amount, so it is difficult to reduce this change in distance measurement accuracy.

[0007] SUMMARY OF THE PRESENT EMBODIMENTS Accordingly, an object of the present invention is to provide a distance measuring device capable of reducing changes in distance measuring 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 imaging first image information and second image information having parallax from each other from a single 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 an amount of parallax 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 value determined by the center-of-gravity distance 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 the exit pupil of the optical system. Effect of the Invention

[0009] According to the present invention, it is possible to provide a distance measuring device capable of reducing changes in distance measuring accuracy. [Brief description 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. [Diagram 2] FIG. 2 is a diagram showing a detailed configuration of an imaging unit 101. [Diagram 3] FIG. 1 is a schematic diagram for explaining a method for acquiring a set of images having parallax captured from different viewpoints using the imaging unit 101. [Figure 4]1 is a diagram for explaining an overview of how the base length varies depending on the angle of view in a pupil division phase difference method. [Diagram 5] 4 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. 13 is a diagram illustrating a method for setting a search window. [Figure 7] FIG. 11 is a diagram illustrating an imaging unit according to a second embodiment. [Figure 8] FIG. 11 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 optical characteristics of the imaging section, different from that shown in FIG. 7. [Figure 10] FIG. 11 is a diagram illustrating a detailed configuration of an imaging unit according to a third embodiment. [Figure 11] FIG. 13 is a diagram showing a usage form of a distance measuring device according to a fifth embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] The present invention will be described in detail with reference to the embodiments and drawings. The present invention is not limited to the contents described in each embodiment. In addition, each embodiment may be appropriately combined. In the description with reference to the drawings, the same reference numerals are used to indicate the same parts in principle even if the drawing numbers are different, and duplicated descriptions are avoided as much as possible. EXAMPLES

[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 conditions of a search window 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 a function of forming an image of a subject 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. Furthermore, the x-axis and y-axis are perpendicular to each other and to the optical axis.

[0017] The image sensor 112 is composed of a CMOS (complementary metal oxide semiconductor) or a CCD (charge-coupled device) and has a distance measurement function using a split-pupil 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 obtained 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 cut surface of the cross-sectional view of Fig. 2(C).

[0019] 2C is a schematic diagram showing a cross section taken along line II' of the pixel 120. Each of the pixels 120 includes a light receiving layer 130 and a light guide layer 140.

[0020] The light receiving layer 130 includes two photoelectric conversion sections, a first photoelectric conversion section 131 and a second photoelectric conversion section 132, as photoelectric conversion sections for photoelectrically converting received light. The light guide layer 140 includes a microlens 150, a color filter (not shown) that passes 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 a light flux incident on the pixel 120 to the first photoelectric conversion section 131 and the second photoelectric conversion section 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 are formed from any material depending on the target wavelength band.

[0022] 3 is a schematic diagram for explaining a method for acquiring a set of images having parallax captured from different viewpoints using the imaging unit 101. FIG. 3(A) is a diagram showing a state in which an image of a subject 301 is formed on an imaging element 112. For a chief ray 310, a 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 chief ray 310, a 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.

[0023] 3B is a diagram showing the relationship between the exit pupil and the pixels 120 of the image sensor 112. A ray 331 is a centroid ray of the first light beam 311, passes through a first pupil region 321 in the exit pupil 320, passes through the microlens 150, and reaches the first photoelectric conversion unit 131. A ray 332 is a centroid ray of the second light beam 312, passes through a second pupil region 322 in the exit pupil 320, passes through the microlens 150, and reaches 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 has passed 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. For this reason, a set of images with different viewpoints can be acquired by reading only the image signal obtained by one of the first photoelectric conversion unit 131 and the second photoelectric conversion unit 132. Only the image signal of the first photoelectric conversion unit 131 is read from all pixels to acquire a first image of the first viewpoint. On the other hand, only the image signal of the second photoelectric conversion unit 132 is read from all pixels to acquire a second image of the second viewpoint. These first and second images are equivalent to a set of images taken from different viewpoints because they are images by light beams that have passed through different regions of the exit pupil, and are a set of images having parallax. At this time, 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] Fig. 4 is a diagram for explaining an outline of how the base length differs depending on the angle of view in the pupil division phase difference method. Fig. 4(A) is a diagram showing the image sensor 112 of the image capturing unit 101 according to this embodiment. Fig. 4(B) is a diagram showing the exit pupil and light flux distribution at a central image height 410 on the image sensor 112. Fig. 4(C) 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 distance 416 between a center 413 of a light amount distribution 412 of the first light beam 331 and a center 415 of a light amount 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 becomes the base line 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 with respect 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 camera interval is the baseline length, and this value does not change depending on the image height, so there is no change in the baseline length due to the image height.

[0030] 5 is a flowchart of distance measurement value calculation processing by the distance measuring device 100 according to the first embodiment. Processing performed by the imaging unit 101, the parallax calculation unit 102, and the distance measurement value calculation unit 103 will be described below. Each process is realized by executing a software program by a CPU provided in the distance measuring device 100. Each process may 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 having parallax with each other.

[0032] In step S502, the parallax calculation unit 102 executes a pre-processing for parallax calculation. As the pre-processing for parallax calculation, the parallax 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 amount difference correction process corrects the light amount difference that causes the light amount balance between the first image and the second image to be lost due to the imaging optical system 111. The parallax calculation unit 102 performs the light amount difference correction by modifying the signal values ​​of the first image and the second image using a light amount correction value designed in advance.

[0034] In bandpass filter processing, the higher the spatial frequency band, the lower the SN ratio (ratio of signal components to noise components), so the transmittance in areas with high spatial frequencies is reduced. Also, even after the above-mentioned light intensity correction process, the DC components of the first and second images do not completely match due to manufacturing errors, etc., so in bandpass filter processing, the pass rate near spatial frequency 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 of 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, first, a focus point, which is the image coordinate at which the amount of parallax is calculated for the input first image, is set, and then a matching area is set with the focus point as its center and a width in both the horizontal and vertical directions equal to the size of a search window corresponding to the image height described below.

[0037] Next, in the parallax calculation process, a reference point is set in the second image, and a reference area is set that is centered on the reference point and has a width in both the horizontal and vertical directions equal to the size of a search window according to the image height described below. The reference area has the same size and shape as the matching area.

[0038] Next, in the parallax calculation process, the degree of correlation between the signal of the first image contained in the collation 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 set as the corresponding point corresponding to the attention point. The amount of disparity in the relative positions between the attention point and the corresponding point is the amount of parallax at the attention point. By calculating the amount of parallax while sequentially changing the image coordinates of the attention point, the amount of parallax can be calculated at 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 that evaluates normalized cross-correlation between image signals, SSD that evaluates the sum of squares of the difference between image signals, or SAD that evaluates the absolute value of the difference may 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] Fig. 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 set in this embodiment in a first image 601. Fig. 6(B) shows the horizontal axis normalized by the maximum positive and negative image heights in the horizontal and vertical directions and superimposed.

[0042] The above-mentioned first photoelectric conversion unit 131 and second photoelectric conversion unit 132 are fabricated by being divided in the horizontal direction of the image, so the change in base length 621 increases toward the peripheral image height in the horizontal direction. On the other hand, 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, so the change in the center of gravity interval of the corresponding light beams is small, and the change in base length 622 is small even if the image height changes to the peripheral image height in the vertical direction.

[0043] 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 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 the same subject will have different amounts of parallax in the search window area at the peripheral image height, and the calculation error of the parallax increases. On the other hand, from the viewpoint of the S / N ratio during correlation calculation, the larger the search window size, the more desirable it is, and the calculation accuracy of the correlation value improves. Therefore, a trade-off issue arises in setting the size of the search window.

[0044] Therefore, in this embodiment, the search window is set based on the optical characteristic value of the image height for which the parallax is calculated. Specifically, the search window is set based on the optical characteristic value, which is a value determined by the distance between the center of gravity of the first light beam that forms the first image on the exit pupil of the optical system and the center of gravity of the second light beam that forms the second image, that is, the base length.

[0045] The search window 611 at the central image height is set to the initial 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 the value of the baseline length shown in FIG. 6B multiplied 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, with coefficient k1, horizontal baseline length change A1(u,v), and the initial horizontal size of the search window wh0. The size of the search window is set in number of pixels, that is, an integer.

number

[0046] Similarly, the size wv(u,v) of the search window in the vertical 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 initial setting vertical size of the search window.

number

[0047] The coefficients k1 and k2 are determined according to the size of the subject, the distance distribution, etc., assumed 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 search window sizes 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 baseline length. In addition, the vertical peripheral image height search window 613 is set to a search window size that is almost unchanged compared to the center because the change in baseline 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 of 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 by a known method, thereby calculating the distance measurement value.

[0051] In the distance measurement calculation process, the amount of parallax is converted into the amount of defocus using the base line length. Next, in the distance measurement calculation process, the amount of defocus is converted into the distance measurement value from the imaging optical system to the subject using the focal length and the imaging formula. By performing this process at the full angle of view, the distance measurement value for the entire image is obtained.

[0052] As described above, according to the first embodiment, a distance measuring device that reduces errors in disparity calculation can be provided by determining the setting of a search window during correlation calculation in the disparity calculation process based on the base line length that changes with the image height. In other words, even if the base line length value changes with the image height, it is possible to provide a distance measuring device that can reduce changes in distance measurement accuracy according to the image height. EXAMPLES

[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 value of the base line length 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 is affected by the exit pupil distance because it is the distance between the centers of gravity of each light beam on the exit pupil. Therefore, when the focal length change for each image height is large, it is more accurate to express the center of gravity of each light beam as a ray angle instead of the distance between the centers of gravity of each light beam and to express it as an optical characteristic value of the base line length corresponding 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 Equation 3 and Equation 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 measuring accuracy according to image height with higher accuracy even if the change in focal length according to image height is large.

[0056] Fig. 7 is a diagram for explaining an imaging unit according to Example 2. The characteristics of the optical system according to this Example are shown in Fig. 7(A) and Fig. 7(B). Fig. 7(A) shows a light flux distribution with respect to the angle of view on the exit pupil, and Fig. 7(B) 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 rate of change is the increase rate=image height / angle of view in the graph of FIG. 7B in the first region 701 corresponding to the central image height included in the range of the first angle of view less than the angle of view θa. The second rate of change is the increase rate=image height / angle of view in the graph of FIG. 7B in the second region 702 corresponding to the peripheral image height included in the range of the second angle of view equal to or greater than the angle of view θa. At this time, the magnitude relationship between the increase rates is first rate of change>second rate of change, and the optical characteristics of the imaging unit according to this embodiment have different distortion characteristics at the center and the periphery, and the peripheral angle of view is compressed and captured. Here, the first rate of change is the rate of change of the number of pixels included per unit angle of view in the first angle of view of the first region corresponding to the central image height with respect to the image height. Moreover, the second rate of change is the rate of change of the number of pixels included per unit angle of view in the second angle of view of the second region corresponding to the peripheral image height with respect to the image height. In this embodiment, the first rate of change is larger than the second rate of change. 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 performing the parallax calculation method according to the present invention, that is, 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 above-mentioned base length by the focal length.

[0059] Fig. 7C is a graph plotting 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. 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-mentioned method using the 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 baseline 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, at peripheral image heights where the focal length changes significantly and the value becomes small, a wide-angle image is obtained, and the size of the search window is reduced, thereby reducing the probability that a different subject is included within the search window, which is also preferable from the standpoint of in-plane resolution.

[0063] In this embodiment, the optical characteristics of the imaging unit are not limited to the described configuration. Fig. 9 is a diagram showing another example of the optical characteristics of the imaging 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 imaging element on the vertical axis and the light flux range received per unit image height, that is, the angle of view, on the horizontal axis.

[0064] This embodiment can also be applied to an imaging section of an optical system having the optical characteristics shown in Fig. 9(A) and Fig. 9(B). The examples of Fig. 9(A) and Fig. 9(B) are configurations in which the rate of change of 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 peripheral angle of view is enlarged and imaging is performed. 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 Fig. 9(A) and Fig. 9(B), the change in distance measurement accuracy can 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 of each image height. EXAMPLES

[0065] In the present invention, the configuration of the image sensor 112 is not limited to the configuration described in the first embodiment. In the third embodiment, 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 the optical characteristic value in the horizontal direction and vertical direction of the image.

[0066] Fig. 10 is a diagram showing a detailed configuration of an imaging unit according to Example 3. The imaging unit 101 shown in Fig. 10(A) is similar to that of Example 1 in Fig. 2(A). In this example, the configuration of the imaging element 112 differs from that of Example 1. Fig. 10(B) is an xy cross-sectional view of the imaging element 112 according to Example 3. That is, Fig. 10(B) is a diagram showing 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, in which the inside of a pixel 120 is divided in a first direction, which is the image horizontal direction, and a second direction, which is the image vertical direction. In this embodiment, the pixel 120 is divided into four parts. With this configuration, depending on how the photoelectric conversion units used to generate the first image and the second image are combined among the four photoelectric conversion units, distance measurement is possible in any direction having parallax, including the image horizontal direction, the image vertical direction, and the image diagonal direction.

[0068] Here, the first image is 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 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] Moreover, 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 the third image and the fourth image 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 image diagonal direction 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 having a parallax in the image diagonal direction that is 90 degrees different from the fifth and sixth images can be obtained.

[0072] According to this embodiment, by setting a search window for an image pair having the above-mentioned parallax, it is possible to reduce the change in distance measurement accuracy in the same manner as in the above-mentioned 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 for explaining an example of setting the search window 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, since the direction in which the change in the base line length is large is the diagonal direction, the search window 1011 for the central image height, the search window 1012 for the horizontal peripheral image height, the search window 1013 for the vertical peripheral image height, and the search window 1014 for the diagonal peripheral image height are as shown in Fig. 10C. In this way, according to this embodiment, it is possible to provide a distance measuring device that reduces changes in distance measuring accuracy even in the case of an image pair having parallax in the diagonal direction.

[0074] The configuration of the image sensor is not limited to that of this embodiment, and may be, for example, a configuration in which the inside of pixel 120 is divided into a first photoelectric conversion unit and a second photoelectric conversion unit in the image vertical direction so that the direction with parallax is the image vertical direction. With such a configuration, it is possible to acquire an image pair with parallax in the image vertical direction, and distance measurement of a subject having texture in the image horizontal direction is possible. Even with such a configuration, a distance measurement device with reduced changes in distance measurement accuracy can be provided by setting a search window using the method according to the present invention. EXAMPLES

[0075] There are multiple factors that affect the accuracy of correlation calculation, including the amount of texture contained in the search window that depends on the subject and the image S / N, but from the viewpoint of image S / N statistics, the total number of pixels contained in the search window affects it. In this embodiment, an example is shown in which the accuracy of correlation calculation is constant by making the total number of pixels in the search window constant regardless of image height. The total number of pixels S0 contained in 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 image S / N statistics during correlation calculation. EXAMPLES

[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 showing a usage form of the distance measuring device according to the fifth embodiment. FIG. 11(A) is a diagram showing 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 trains and airplanes, or various robots such as small mobility vehicles and AGVs (Automatic Guided Vehicles).

[0080] In FIG. 11(A), the vehicle 1100 includes a distance measuring device 1110 according to the fifth embodiment. The distance measuring device 1110 includes each of the components of the distance measuring device 100 described in each of the above-mentioned embodiments. The vehicle 1100 further includes a vehicle information measuring device 1120, a route generating 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. As an alternative form, the route generating 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 disposed 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 imaging angle of view) toward the front of the vehicle 1100.

[0082] The information indicating the distance to the subject may be information that can be converted from the imaging device 1110 to the distance to the subject within the imaging angle of view, and may be information that can be converted using a predetermined reference table or a predetermined conversion coefficient and conversion formula. For example, the imaging device 1110 may assign a distance value to a predetermined integer value and output the distance value to the route generation ECU 1130. The imaging device 1110 may also output information that can be converted into an optically conjugate distance value (distance from the imaging 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 imaging device 1110 may also output information that can be converted into a distance from the optical system to a conjugate point (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 a measurement signal 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 operation 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 according to the target route information. The vehicle control ECU 1140 may not control the movement operation of the vehicle 1100, but may issue a warning to the driver 1001 according to the target route information. The vehicle control ECU 1140 may be a unit that issues a warning and controls the movement operation 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] By applying the method for setting the size of a search window according to the present invention to the distance measuring device 1110, the accuracy of distance information outputted regardless of image height, i.e., angle of view, is improved, and the accuracy of target route information outputted from the route generating ECU 1130 is improved. 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. Specifically, there are driving scenes such as inside a tunnel or at night where the amount of ambient light is low and the S / N ratio is poor, high-speed driving scenes where high information update frequency is required, and driving scenes in towns and at intersections where distance measurement accuracy is particularly required for the peripheral image height. In such cases, it is preferable to set the size of the search window taking into account the viewpoint according to the driving scene in addition to the viewpoint of the optical characteristic values ​​described above, since this will achieve safer vehicle driving control.

[0087] The recognition of the traveling 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 traveling scene. This recognition unit may be included in the distance measuring device 1110, or the distance measuring device 1110 may recognize the traveling scene. The disparity calculation unit 102 sets a search window according to the recognized traveling scene, and calculates the amount of disparity using this search window.

[0088] In driving scenes where the amount of ambient light is low and the S / N ratio is poor, such as inside a tunnel or at night, the coefficients k1 and k2 related to the setting of the above-mentioned search window are set to larger values ​​than when driving outdoors during the day, and the total number of pixels in the search window is adjusted to be larger. This makes it possible to adjust the accuracy of the correlation calculation caused by the total number of pixels included in the search window during correlation calculation in a favorable direction, and to 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 for normal speed driving, shortening the calculation time required for correlation calculation 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 in relation to the amount of movement of the vehicle, realizing safer vehicle driving control.

[0090] Furthermore, when driving in town or at intersections, it is desirable to detect objects jumping out from the surroundings, so it is also preferable to prioritize detection 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 optimal 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 a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a 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 implements one or more of the 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 disparity 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 disparity 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. A distance measuring device comprising: (Configuration 2) The optical characteristic value is a value obtained by dividing the center-of-gravity interval 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 in the first region corresponding to the central image height, the second 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 in the second angle of view of the second region corresponding to the peripheral 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 in the first region corresponding to the central image height, the second 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 in the second angle of view of the second region corresponding to the peripheral 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 includes a first photoelectric conversion unit, a second photoelectric conversion unit, a third photoelectric conversion unit, and a fourth photoelectric conversion unit, which are divided into four parts in a first direction and a second direction different from the first direction. 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 is provided for issuing a warning or controlling a moving operation 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 driving 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 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. 23. A method for controlling a distance measuring device comprising: (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 section 103 Distance measurement calculation unit

Claims

1. an imaging means capable of imaging a first image information and a 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. A distance measuring device comprising:

2. The optical characteristic value is a value obtained by dividing the center-of-gravity interval by a focal length for each image height.

2. A 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 in the first region corresponding to the central image height, the second 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 in the second angle of view of the second region corresponding to the peripheral image height, The first rate of change is greater than the second rate of change.

2. A 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 in the first region corresponding to the central image height, the second 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 in the second angle of view of the second region corresponding to the peripheral image height, The first rate of change is smaller than the second rate of change.

2. A 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. A 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. A distance measuring device according to claim 1.

7. The imaging means has a photoelectric conversion unit of an imaging element, The photoelectric conversion unit includes a first photoelectric conversion unit, a second photoelectric conversion unit, a third photoelectric conversion unit, and a fourth photoelectric conversion unit, which are divided into four parts in a first direction and a second direction different from the first direction.

2. A distance measuring device according to claim 1.

8. The total number of pixels included in the search window is constant regardless of the image height.

2. A distance measuring device according to claim 1.

9. A moving body equipped with the distance measuring device according to claim 1, A control unit is provided for issuing a warning or controlling a moving operation 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 object 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 driving 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.

23. A method for controlling a distance measuring device comprising:

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

  • 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

  • Lens device, imaging apparatus, communication method, and program

    JP2021076760A