Distance measuring device, imaging apparatus, movable body, distance measuring method, and program

The device uses a single imaging device with diagonally arranged photoelectric conversion regions and vertical alignment to enhance stereo camera accuracy, addressing the challenge of insufficient parallax from horizontal and vertical edges, thereby improving measurement stability and reducing camera requirements.

JP2024125077AInactive Publication Date: 2024-09-13CANON KK
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023033169
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-03
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing stereo cameras in vehicles face challenges in obtaining accurate distance measurements due to insufficient parallax information from horizontal and vertical edges, leading to reduced accuracy for objects like road signs and pedestrians, and the need for multiple cameras increases cost and installation space.

Method used

A distance measuring device with a single imaging device comprising first and second image sensors, where the first sensor has photoelectric conversion regions arranged diagonally and the second sensor is aligned vertically, allowing for both horizontal and vertical parallax calculation using image plane phase difference and stereo methods, reducing the number of required cameras.

Benefits of technology

Stable and accurate distance measurement is achieved with a minimal number of cameras, improving measurement accuracy regardless of object shape and reducing installation complexity and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024125077000001
    Figure 2024125077000001
Patent Text Reader

Abstract

To provide a distance measuring device that can stably measure distances with a small number of imaging apparatuses.SOLUTION: A distance measuring device 100 has: an image pick-up device 111 that has pixels each having a plurality of photoelectric conversion areas 201, 202; an image pick-up device 112 that has first parallax in a first direction with the image pick-up device 111; and a distance measuring unit 130 that generates distance measurement information on the basis of signals output from the image pick-up devices 111 and 112. The plurality of photoelectric conversion areas 201, 202 has second parallax in a second direction intersecting the first direction.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a distance measurement technique using an imaging device. [Background technology]

[0002] In recent years, vehicles are increasingly being equipped with devices that measure the distance between the vehicle and surrounding objects for the purpose of autonomous driving and driving assistance. Stereo cameras are known as such distance measuring devices. A stereo camera is made up of two cameras, and can calculate the distance to an object from disparity information obtained by comparing contrast edges and color edges extracted from images captured by both cameras, and the distance between the two cameras (baseline length).

[0003] A typical stereo camera measures distance from horizontal parallax by arranging two cameras horizontally. In this case, it is difficult to obtain parallax from edges that extend horizontally. Therefore, in an environment with many horizontal edges, there is a concern that sufficient parallax information cannot be obtained, resulting in a decrease in distance measurement accuracy. Considering a typical driving environment assuming a stereo camera mounted on a vehicle, there are many objects captured by the camera, such as a vehicle ahead or a guardrail, that have more edges in the horizontal direction than in the vertical direction. Therefore, it cannot be said that obtaining horizontal parallax is necessarily optimal for a stereo camera mounted on a vehicle.

[0004] To address the above-mentioned problem, Patent Document 1 discloses a technology in which two cameras are arranged vertically on the rearview mirror and dashboard inside a vehicle to obtain vertical parallax and measure distances. [Prior art documents] [Patent documents]

[0005] [Patent Document 1] Patent No. 3456843 Summary of the Invention [Problem to be solved by the invention]

[0006] However, the device described in Patent Document 1 cannot obtain parallax in the horizontal direction, and therefore cannot obtain parallax from vertical edges. In this case, there is a concern that the distance measurement accuracy will decrease for objects that include many vertical edges, such as road signs and pedestrians. On the other hand, in order to obtain parallax from both horizontal and vertical edges, two sets of stereo cameras with cameras aligned horizontally and vertically can be mounted on the vehicle. However, in this case, the number of required cameras increases, which leads to problems such as increased costs and installation space.

[0007] An exemplary object of the present invention is to provide a distance measuring device capable of performing stable distance measurement using a small number of imaging devices. [Means for solving the problem]

[0008] A ranging device according to one embodiment of the present invention comprises a first imaging element having a first pixel having a plurality of photoelectric conversion areas, a second imaging element having a second pixel and having a first parallax in a first direction between the first imaging element, and a ranging means for generating integrated ranging information based on signals output from the first imaging element and the second imaging element, wherein the plurality of photoelectric conversion areas have a second parallax in a second direction intersecting the first direction. Effect of the Invention

[0009] According to the present invention, stable distance measurement is possible with a small number of imaging devices. [Brief description of the drawings]

[0010] [Figure 1] 1 is a block diagram showing a system configuration of a distance measuring device according to a first embodiment. [Diagram 2] 1 is a schematic diagram showing an example of the configuration of an imaging element according to a first embodiment. [Diagram 3] FIG. 2 is a schematic diagram showing the relationship between the object distance and incident light in the image plane phase difference method. [Figure 4] 2 is a diagram showing an arrangement of two imaging elements in an imaging section according to the first embodiment. FIG. [Diagram 5] 5 is a flowchart showing the operation of a distance measuring unit according to the first embodiment. [Figure 6] FIG. 11 is a block diagram showing a system configuration of a distance measuring device according to a second embodiment. [Figure 7] FIG. 11 is a diagram showing an arrangement of two image pickup elements in an image pickup section according to a second embodiment. [Figure 8] FIG. 13 is a block diagram showing a system configuration of a distance measuring device according to a third embodiment. [Figure 9] 13 is a flowchart showing an operation of a switching instruction unit in the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. In the drawings, parts having the same configuration or function are given the same reference numerals, and repeated explanations thereof will be omitted. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the configurations shown in the drawings.

[0012] <First embodiment> (System configuration of distance measuring device) 1 is a block diagram showing a system configuration of a distance measuring device 100 according to the first embodiment. The distance measuring device 100 constitutes a stereo camera system. The distance measuring device 100 is installed, for example, in a vehicle as a moving body, and is capable of measuring the distance to an object around the vehicle. The distance measuring device 100 includes an imaging unit 110, an image processing unit 120, a distance measuring unit 130, and a vehicle control unit 140.

[0013] The imaging unit (imaging device) 110 is a stereo camera installed in a vehicle, and has an imaging element (first imaging element) 111 and an imaging element (second imaging element) 112. Note that the imaging elements 111 and 112 may be included in the same housing, or may be included in different housings.

[0014] Both the imaging elements 111 and 112 are image sensors that convert an optical object image formed by an optical system (not shown) into an electrical signal by photoelectric conversion and transmit the electrical signal to a downstream image processing unit 120. The imaging element 111 is an imaging element capable of measuring distances using image plane phase difference, and is configured to generate an image group (first image group) 11 by itself as two images having parallax. The configuration and function of the imaging element 111 will be described in detail later.

[0015] The image processing unit 120 and the distance measuring unit 130 each have, for example, a SOC (System On Chip) / FPGA (Field Programmable Gate Array), a CPU as a computer, and a memory as a storage medium. The CPU performs various controls of the entire system by executing computer programs stored in the memory. Instead of or in addition to the SOC / FPGA and CPU, devices such as SiP (System in Package), ASIC (Application Specific Integrated Circuit), and DSP (Digital Signal Processor) may be used.

[0016] The image processing unit 120 has a processing unit (first processing unit) 121 and a processing unit (second processing unit) 122. The processing units 121 and 122 receive and process signals from the image pickup elements 111 and 112, respectively. In this case, the image processing unit 120 functions as a processing means.

[0017] The processing units 121 and 122 develop the video signal transmitted from the imaging unit 110. Furthermore, the processing units 121 and 122 perform various types of image processing such as WDR (Wide Dynamic Range) correction, gamma correction, LUT (Look Up Table) processing, distortion correction, and clipping as necessary.

[0018] The processing unit 122 is configured to receive the output image 12 output from the imaging element 112 and output it to the distance measuring unit 130. The processing unit 121 is configured to receive the image group 11, which is a set of two images 11a, 11b having parallax output from the imaging element 111 as described above, and output it to the distance measuring unit 130. The processing unit 121 is also configured to generate a calculated image (first calculated image) 13 by performing calculation processing (e.g., addition) based on the two images 11a, 11b, and output it to the distance measuring unit 130.

[0019] The calculated image 13 corresponds to an image obtained by regarding two photoelectric conversion elements (a pair of photoelectric conversion regions 210 described later) in the imaging element 111 as one pixel. The calculated image 13 is transmitted to the stereo distance measurement unit 132 and used in the stereo distance measurement process together with the output image 12 output from the processing unit 122. The calculated image 13 and the output image 12 form a second image group.

[0020] The distance measuring section (distance measuring means) 130 is a block that generates a distance measurement map based on the video signal from the image processing section 120. The distance measuring section 130 has a stereo distance measuring section 132, an image plane phase difference distance measuring section 131, and a distance measurement map synthesis section 133.

[0021] The image plane phase difference ranging unit 131 calculates the parallax based on the image group 11 transmitted from the processing unit 121. The stereo ranging unit 132 calculates the parallax based on the calculated image 13 transmitted from the processing unit 121 and the output image 12 transmitted from the processing unit 122. In these cases, the image plane phase difference ranging unit 131 and the stereo ranging unit 132 function as a calculation means. The parallax calculated by the image plane phase difference ranging unit 131 is a parallax in the vertical direction. The parallax calculated by the stereo ranging unit 132 is a parallax in the horizontal direction. The directions of these parallaxes will be described in detail later. Hereinafter, the parallax in the vertical direction will be referred to as vertical parallax, and the parallax in the horizontal direction will be referred to as horizontal parallax.

[0022] The image plane phase difference ranging unit 131 and the stereo ranging unit 132 may calculate the disparity by, for example, a block matching method. The block matching method is a method in which an area of ​​one image that has high similarity to an area of ​​the other image is searched for, and the positional deviation of the area of ​​the one image from the area of ​​high similarity is regarded as the disparity.

[0023] Both the image plane phase difference ranging unit 131 and the stereo ranging unit 132 have the function of generating a ranging map (first ranging information) 17 and a ranging map (second ranging information) 18, respectively, which have distance information for each region of the image based on the disparity information and baseline length calculated according to the principles of triangulation.

[0024] As a more preferred embodiment, the image plane phase difference ranging unit 131 and the stereo ranging unit 132 may generate reliability information indicating the degree to which the ranging maps are reliable for each region, in addition to the ranging maps 17 and 18, and output this together with the ranging maps 17 and 18 to the ranging map synthesis unit 133. As a method for calculating the reliability information, for example, there is a method that uses the similarity (e.g., the sum of absolute differences) when searching for a region with high similarity in the above-mentioned block matching method.

[0025] The distance measurement map synthesis unit 133 generates a new distance measurement map (integrated distance measurement information) based on the distance measurement maps 17 and 18 obtained from the image plane phase difference distance measurement unit 131 and the stereo distance measurement unit 132 , and transmits the new distance measurement map to the vehicle control unit 140 .

[0026] The distance measurement map synthesis unit 133 may generate a distance measurement map by using the reliability information described above, for example. In this case, the distance measurement map synthesis unit 133 compares the two distance measurement maps 17 and 18 obtained from the image plane phase difference distance measurement unit 131 and the stereo distance measurement unit 132, and generates a new distance measurement map by adopting the distance measurement map with the higher reliability for each region. Alternatively, if there is a region where no parallax is obtained (there is no image difference), the distance measurement result is infinite, so that the smaller distance measurement value may be adopted for each region without using the reliability information. Alternatively, as another method, the distance measurement map synthesis unit 133 may generate a new distance measurement map by preferentially selecting one of the two distance measurement maps 17 and 18, and supplementarily selecting the other distance measurement result only for regions where a valid distance measurement result is not obtained.

[0027] In this embodiment, as in the arrangement of image pickup elements 111 and 112 described later, image plane phase difference distance measuring unit 131 performs distance measurement based on vertical parallax, and stereo distance measuring unit 132 performs distance measurement based on horizontal parallax.

[0028] The vehicle control unit 140 performs overall control of vehicle driving such as acceleration, braking, and steering based on the distance measurement map from the distance measurement unit 130. In this case, the vehicle control unit 140 functions as a control means for controlling a drive mechanism that drives the vehicle. Alternatively, the vehicle control unit 140 may detect an obstacle that poses a risk of collision based on the distance measurement information, and display a warning on a display device (not shown) or emit a warning sound from a speaker (not shown).

[0029] (Principle of distance measurement using image plane phase difference method) Next, a description will be given of the principle of distance measurement by the image plane phase difference method using the image sensor 111. FIG.

[0030] 2A is a plan view of the image sensor 111 as viewed from the light incidence direction. The image sensor 111 has a plurality of pixels (a plurality of first pixels) that are arranged in a matrix. Specifically, a plurality of pixel groups 200, each of which is a group of four pixels of, for example, 2 rows by 2 columns, are arranged in a matrix. The pixel group 200 has green pixels G1 and G2 that detect green light, a red pixel R that detects red light, and a blue pixel B that detects blue light. In the pixel group 200, the green pixels G1 and G2 are arranged diagonally. Each pixel has a first photoelectric conversion region 201 and a second photoelectric conversion region 202 as a pair of photoelectric conversion regions 210.

[0031] 2B is a cross-sectional view taken along line II' of the pixel group 200 in FIG.

[0032] The light guide layer 204 has microlenses 203 on the light incident side for efficiently guiding the light flux incident on the pixel to the light receiving layer 205. In addition, the light guide layer 204 has, below the microlenses 203, color filters that pass light in wavelength bands corresponding to the color of light detected by each pixel, wiring for image reading and pixel driving, and the like.

[0033] The light receiving layer 205 is a photoelectric conversion region that performs photoelectric conversion on the light incident via the light guide layer 204 and outputs the converted light as an electrical signal. The light receiving layer 205 has the first photoelectric conversion region 201 and the second photoelectric conversion region 202 as described above.

[0034] The imaging element 112 also has a plurality of pixels (a plurality of second pixels) arranged in a matrix (see FIG. 4). The photoelectric conversion region of the imaging element 112 is different from that of the imaging element 111 in that one photoelectric conversion region is provided for each pixel.

[0035] Fig. 3 is a schematic diagram showing the relationship between object distance and incident light in the image plane phase difference method. Fig. 3(A) is a schematic diagram showing exit pupil 300 in an optical system (imaging optical system 330) that forms an optical image on image sensor 111, green pixel G1 of image sensor 111, and light incident on a pair of photoelectric conversion regions 210 of green pixel G1. Here, green pixel G1 will be described, but other pixels have a similar configuration.

[0036] The microlens 203 is disposed so that the exit pupil 300 and the light receiving layer 205 are in an optically conjugate relationship. As a result, a light beam that has passed through a first pupil region 310, which is a partial pupil region contained in the exit pupil 300, is incident on the first photoelectric conversion region 201. Similarly, a light beam that has passed through a second pupil region 320, which is a partial pupil region, is incident on the second photoelectric conversion region 202. The angles of incidence of light to the first photoelectric conversion region 201 and the second photoelectric conversion region 202 are different.

[0037] The first photoelectric conversion region 201 of each pixel performs photoelectric conversion on the received light flux and outputs a signal. One image 11a of the image group 11 is generated from signals output from the multiple first photoelectric conversion regions 201 included in the image sensor 111. The image 11a indicates the intensity distribution of an image formed on the image sensor 111 by the light flux that has passed through the first pupil region 310. Similarly, the second photoelectric conversion region 202 of each pixel performs photoelectric conversion on the received light flux and outputs a signal. The other image 11b of the image group 11 is generated from signals output from the multiple second photoelectric conversion regions 202 included in the image sensor 111. The image 11b indicates the intensity distribution of an image formed on the image sensor 111 by the light flux that has passed through the second pupil region 320.

[0038] The relative positional shift amount (parallax amount) between the images 11a and 11b corresponds to the shift amount (defocus amount) between the image pickup element surface and the image formation position. The relationship between the parallax amount and the defocus amount will be described with reference to Figs. 3(B), (C), and (D). Figs. 3(B), (C), and (D) are schematic diagrams showing the image pickup element 111 and the image pickup optical system 330 that forms an optical image on the image pickup element 111. A first light beam 311 indicates a light beam passing through the first pupil region 310, and a second light beam 321 indicates a light beam passing through the second pupil region 320.

[0039] 3B shows a state during focusing, in which the first light beam 311 and the second light beam 321 converge on the image sensor 111. In this state, the parallax amount between the image 11a formed by the first light beam 311 and the image 11b formed by the second light beam 321 is zero.

[0040] 3C shows a state where the image is defocused in the negative direction of the w axis. In this state, the amount of parallax between the image 11a formed by the first light beam 311 and the image 11b formed by the second light beam 321 is not 0 but has a negative value.

[0041] 3D shows a state where the image is defocused in the positive direction of the w axis. In this state, the amount of parallax between the image 11a formed by the first light beam 311 and the image 11b formed by the second light beam 321 is not 0 but has a positive value.

[0042] 3(C) and (D), it can be seen that the direction in which parallax occurs is reversed depending on whether the defocus amount is positive or negative. Also, it can be seen from the geometric relationship that the amount of parallax occurs according to the amount of defocus. Therefore, the amount of parallax between the images 11a and 11b can be detected, for example, by a block matching method, and the amount of parallax can be converted into the amount of defocus via a predetermined conversion coefficient. Furthermore, by using the imaging formula of the imaging optical system 330, the amount of defocus on the image side can be converted into distance data to the object.

[0043] The above is a description of the principle of distance measurement using the image plane phase difference method. In this embodiment, the image plane phase difference distance measuring unit 131 generates distance data based on the images 11a and 11b using the image plane phase difference method.

[0044] (Image sensor placement) Next, a method of arranging the imaging elements 111 and 112 will be described. FIG. 4 is a diagram showing the arrangement of the imaging elements 111 and 112 in the imaging unit 110. In this embodiment, the imaging elements 111 and 112 are arranged to be aligned, for example, in the horizontal direction (first direction). Also, the first photoelectric conversion region 201 and the second photoelectric conversion region 202 of the imaging element 111 are arranged to be aligned in a direction (second direction) intersecting the horizontal direction, for example, in the vertical direction. With this arrangement, horizontal parallax is obtained by comparing the output image 12 obtained from the imaging element 112 with the calculated image 13 obtained from the imaging element 111, and vertical parallax is obtained by comparing the images 11a and 11b obtained from the imaging element 111.

[0045] In the block matching method described above, the image pickup elements 111 and 112 arranged in the horizontal direction cannot obtain effective parallax information from an object with little horizontal change (such as a guard rail or a pedestrian). However, the configuration shown in Fig. 4 can obtain two types of parallax information in different directions, so that effective parallax information can be obtained from at least one of the image plane phase difference ranging unit 131 and the stereo ranging unit 132 regardless of the shape of the object.

[0046] In addition, in Figure 4, a preferred example is shown in which the arrangement direction of the image pickup elements 111 and 112 is perpendicular to the arrangement direction of the first photoelectric conversion region 201 and the second photoelectric conversion region 202, but this is not limited to this and it is sufficient that the arrangement direction intersects.

[0047] (Operation of distance measuring unit) Next, an operation flow in the distance measuring unit 130 will be described. Fig. 5 is a flowchart showing the operation. In this operation flow, for example, the SOC / FPGA or CPU in the distance measuring unit 130 reads a program corresponding to the processing content, expands it in a predetermined storage area, and executes it.

[0048] 5A shows the flow of operations executed by both the image plane phase difference ranging unit 131 and the stereo ranging unit 132. Each ranging unit 131, 132 uses one of two input images as a reference image and divides the other into a number of predetermined regions (S501). The shape and size of the divided regions may be determined arbitrarily depending on the required ranging accuracy and processing speed.

[0049] Next, each distance measuring unit 131, 132 calculates the parallax by the block matching method as described above (S502). Specifically, first, the divided images are shifted in pixel units with respect to the reference image to obtain the difference. Next, the number of pixels at which the absolute sum (or the sum of squares) of the differences becomes the smallest is obtained. Finally, the number of pixels is converted to the distance on the imaging surface based on the known information on the pixel interval to obtain the parallax.

[0050] Here, each of the distance measuring units 131 and 132 may perform correction processing such as appropriate geometric correction on the input images in order to obtain accurate parallax. This correction processing may be performed by the upstream processing units 121 and 122. In addition, when the distance measurement map synthesis unit 133 synthesizes the distance measurement map using reliability information, each of the distance measuring units 131 and 132 may add the minimum value of the sum of absolute difference (or sum of squares) as the reliability.

[0051] Next, each of the distance measuring units 131, 132 calculates distance information for each region from the parallax information obtained for each region and the base line length information of the imaging unit 110 stored in advance (S503). In the stereo distance measuring unit 132, the relative distance between the imaging elements 111 and 112 becomes the base line length. In the image plane phase difference distance measuring unit 131, a value determined by the optical characteristics of the imaging optical system 330 becomes the base line length.

[0052] Finally, each of the distance measurement units 131 and 132 outputs the distance information obtained for each region to the distance measurement map synthesis unit 133 as distance measurement maps 17 and 18 (S504).

[0053] According to the above flow, each of the distance measuring units 131 and 132 transmits the distance measurement result based on the direction of parallax that each unit has (vertical direction for the image plane phase difference distance measuring unit 131, horizontal direction for the stereo distance measuring unit 132) to the distance measurement map synthesis unit 133.

[0054] 5B shows a flow of the operation executed by the distance measurement map synthesis unit 133. The distance measurement map synthesis unit 133 calculates new distance measurement values ​​for each region based on the two distance measurement maps 17 and 18 input (S511). An example of the calculation method is to compare the reliability information added in the above-mentioned S502 and use the one with the higher reliability (the one with the smaller absolute sum or square sum of the difference) as the distance measurement result. Alternatively, the calculation may be based only on the input distance measurement values, such as selecting the smaller distance measurement value or calculating the average of the distance measurement values.

[0055] Finally, the distance measurement map synthesis unit 133 outputs the new distance measurement map obtained for each area to the vehicle control unit 140 (S512).

[0056] As described above, the distance measuring device 100 according to this embodiment can obtain parallax in both vertical and horizontal directions by using the two image sensors 111 and 112. As a result, it is possible to perform stable distance measurement with high reliability, regardless of the shape of the object, with as few cameras as possible.

[0057] <Second embodiment> In the above first embodiment, an example has been described in which one of the two imaging elements 111, 112 constituting the imaging unit 110 is an imaging device compatible with distance measurement using an image plane phase difference method. In the second embodiment, a form in which the two imaging elements are configured with imaging elements compatible with distance measurement using an image plane phase difference method will be described. In this embodiment, vertical parallax information and two types of horizontal parallax information are obtained. The two types of horizontal parallax information have different base line lengths, and therefore the distances at which parallax can be obtained with high accuracy are different.

[0058] 6 is a block diagram showing the system configuration of a distance measuring device 101 according to the second embodiment. Note that a description of the same points as in the first embodiment will be omitted.

[0059] The image sensor 612 is an image sensor that supports distance measurement using the same type of image plane phase difference method as the image sensor 111. However, the arrangement direction of the pair of photoelectric conversion regions 210 is different from that of the image sensor 112, as will be described later.

[0060] The processing unit 622 has the same function as the processing unit 121. That is, the processing unit 622 generates an image group (second image group) 15, which is a set of two images 15a and 15b having parallax, based on the video signal received from the imaging element 612. The processing unit 622 also generates a calculated image (second calculated image) 16 by performing arithmetic processing (e.g., addition) based on the image group 15.

[0061] The image plane phase difference ranging unit 632 has a function similar to that of the image plane phase difference ranging unit 131. That is, the image plane phase difference ranging unit 632 calculates disparity information (third disparity information) based on the image group 15 transmitted from the processing unit 622, and generates the distance measurement map 19.

[0062] The distance measurement result information input to the distance measurement map synthesis unit 633 is three types of distance measurement maps 17, 18, and 19, but other functions and operation flows are the same as those in the first embodiment. The distance measurement map synthesis unit 633 generates a new distance measurement map based on the distance measurement maps 18, 17, and 19 obtained from the stereo distance measurement unit 132 and the image plane phase difference distance measurement units 131 and 632, respectively, and transmits it to the vehicle control unit 140. Specifically, as in the first embodiment, there is a method of selecting a distance measurement value based on reliability information for each area, or a method of selecting the one with the smaller distance measurement value. Alternatively, the distance measurement map synthesis unit 633 may preferentially select a predetermined distance measurement map from the three distance measurement maps 17, 18, and 19, and supplementarily use the other two distance measurement maps only for areas where a valid distance measurement map cannot be obtained.

[0063] FIG. 7 is a diagram showing the arrangement of the imaging elements 111 and 612 in the imaging unit 110. In this embodiment, the imaging elements 111 and 612 are arranged so as to be aligned in the horizontal direction. The first photoelectric conversion region 201 and the second photoelectric conversion region 202 of the imaging element 111 are arranged so as to be aligned in the vertical direction, and the imaging element 612 is arranged so as to be aligned in the horizontal direction. With this arrangement, a first horizontal parallax is obtained by comparing the two images 15a and 15b having parallax, and a second horizontal parallax is obtained by comparing the calculated images 13 and 16. Moreover, a vertical parallax is obtained by comparing the two images 11a and 11b having parallax.

[0064] This embodiment can obtain the same effect as the first embodiment, and can also obtain the following action and effect. By arbitrarily adjusting the distance between the image pickup elements 111 and 612 or the imaging optical system 330, the first horizontal parallax and the second horizontal parallax can be obtained with different base line lengths. In general, the longer the base line length is, the more accurately the stereo camera can measure the distance to a distant object. However, when a close-distance object is imaged with a configuration having a long base line length, the angle at which the object is imaged differs, and the shape of the image obtained differs when the object is a three-dimensional object. As a result, it is considered that the images cannot be matched and the parallax cannot be obtained. On the other hand, in this embodiment, since a plurality of distance measurement results with different base line lengths are synthesized for the horizontal parallax, in addition to the effect obtained in the first embodiment, it is possible to perform high-precision distance measurement over a wider distance range.

[0065] As a modification of this embodiment, the stereo distance measuring unit 132 may be omitted. In this case, the distance measuring unit 230 generates the distance measuring map 17 based on the vertical parallax in the image plane phase difference distance measuring unit 131, and generates the distance measuring map 19 based on the horizontal parallax (third parallax information) in the image plane phase difference distance measuring unit 632. Then, they are combined in the distance measuring map combining unit 633. In this case, although multiple horizontal parallax information with different base lengths cannot be obtained, there is an advantage that stereo distance measuring using the two image sensors 111 and 612 is not required. Generally, a stereo camera using two cameras requires geometric correction processing to correct the optical axis shift of the two image sensors and the distortion aberration of the lens. On the other hand, in the case of distance measuring using the image plane phase difference method, since imaging is performed on the same imaging surface, highly accurate distance measuring is possible without performing geometric correction. In addition, a stereo camera requires two image sensors to be spaced apart at a fixed distance, which necessitates securing installation space and strict management of their relative positions. However, with the image plane phase difference method, images are captured on the same imaging surface, which avoids these problems.

[0066] <Third embodiment> In the first and second embodiments, examples have been described in which a plurality of distance measurement maps are generated from images having parallax in different directions, enabling stable distance measurement regardless of the shape of the object. On the other hand, image matching required for parallax calculation involves searching for a position where the difference is minimal while gradually shifting one image relative to the other, and this is repeated for each region of the image, which tends to increase the processing load. These processes are processed in an SOC / FPGA or CPU, but there is a concern that the circuit resources will increase if the process is performed by hardware, and that the frame rate will decrease if the process is performed by software. Therefore, in the second embodiment, an example will be described in which a new switching unit is provided to select which image from among a plurality of input images to use for calculating parallax according to the surroundings or driving conditions of the vehicle, thereby reducing the processing load.

[0067] 8 is a block diagram showing the system configuration of a distance measuring device 102 according to the third embodiment. Note that a description of the same points as in the first or second embodiment will be omitted.

[0068] The distance measuring device 102 includes a recognition unit 834, a switching unit 831, a switching instruction unit 833, and a distance measuring unit 830. The switching unit 831, the distance measuring unit 830, and the switching instruction unit 833 operate, for example, in a SOC / FPGA or a CPU.

[0069] The switching unit (selection means, switching means) 831 switches between multiple pieces of information processed by the image processing unit 120 and outputs them to the distance measuring unit 830. Specifically, the switching unit 831 receives three sets of image information (image group 11 having vertical parallax, image group 15 having horizontal parallax, and calculated images 13 and 16) from the image processing unit 120. Then, the switching unit 831 selects which set to output based on an instruction from a switching instruction unit 833 described later. Note that the number of sets of images input to the switching unit 831 may be reduced to two sets depending on the configuration of the distance measuring device 100. For example, two sets of inputs are input in the first embodiment, and three sets of inputs are input in the second embodiment.

[0070] The distance measuring unit 830 has the same functions as the image plane phase difference measuring unit 131, the stereo distance measuring unit 132, and the image plane phase difference measuring unit 632 described above. The distance measuring unit 830 selects one of these three blocks corresponding to the set of images selected by the switching unit 831 and makes it function. In other words, the distance measurement map synthesis units 133 and 633 in the first and second embodiments are not necessary. The distance measuring unit 830 calculates the parallax for each region based on two input images, for example, using a method such as block matching, and converts this into a distance measurement map based on information on the base line length. The distance measurement map is transmitted to the vehicle control unit 140.

[0071] The switching instruction unit 833 instructs the switching unit 831 which set of images to use for distance measurement based on the surroundings and driving conditions of the vehicle. Specifically, information on objects (e.g., type and number) captured by the imaging unit 110 is received from a recognition unit (recognition means) 834 (described later), and a judgment is made based on the information on the objects. For example, when a vehicle is captured, the switching instruction unit 833 instructs the switching unit 831 to select a set of images (image group 11) including vertical parallax that allows effective calculation of parallax from horizontal edges. Alternatively, when many pedestrians, signs, etc. are captured, the switching instruction unit 833 instructs the switching unit 831 to select a set of images (image group 15) including horizontal parallax that allows effective calculation of parallax from vertical edges.

[0072] The recognition unit 834 acquires information about objects (e.g., type and number) based on the captured image from the image processing unit 120 (at least one of the processing unit 122 and the processing unit 622), and transmits the information to the switching instruction unit 833. Examples of the recognition method include machine learning methods represented by deep learning.

[0073] Alternatively, the switching instruction unit 833 may be configured to acquire the vehicle's traveling speed from the vehicle control unit 140 (detection means) and may instruct the switching unit 831 according to the traveling speed. For example, when the vehicle speed is faster than a predetermined speed, it is necessary to measure distances to a greater distance with high accuracy, so the switching instruction unit 833 instructs the switching unit 831 to select a pair of images including a parallax with a long baseline length (calculated images 13 and 16).

[0074] FIG. 9 is a flowchart showing the operation performed by the switching instruction unit 833, for example, by the SOC / FPGA or the CPU.

[0075] First, the switching instruction unit 833 acquires the vehicle's traveling speed from the vehicle control unit 140 (S901). The switching instruction unit 833 determines whether the acquired speed is faster than a predetermined speed (S902), and if so, instructs the switching unit 831 to select a pair of images including a parallax with a long baseline length (calculated images 13 and 16) (S903).

[0076] If the speed is slower than a predetermined speed, the switching instruction unit 833 acquires captured images from the image processing unit 120 and counts the number of pedestrians within the field of view (S904). The switching instruction unit 833 determines whether the number of pedestrians is greater than a predetermined number (S905), and if so, instructs the switching unit 831 to select image group 15 (second image group), which is a set of images including horizontal parallax (S906). If not, the switching instruction unit 833 instructs the switching unit 831 to select image group 11 (first image group), which is a set of images including vertical parallax (S907).

[0077] Although the number of pedestrians has been given as an example of the information for judgment in S904 and S905, the information is not limited to this and can be changed as appropriate to recognizable objects such as signs, roadside trees, buildings, vehicles, or combinations thereof.

[0078] The above-described operation flow allows the distance measuring device 102 to select a set of images that can effectively calculate disparity according to the driving conditions and surrounding environment. As a result, the distance measuring unit is reduced, and the processing load of the distance measuring device 102 can be reduced.

[0079] <Other embodiments> In the above embodiments, a vehicle capable of traveling on a public road has been given as an example of a moving body, but the moving body may be a transport vehicle (AGV (Automated Guided Vehicle)) or an autonomous mobile robot (AMR (Autonomous Mobile Robot)) that travels within a predetermined location or facility.

[0080] In each of the above embodiments, an example has been given in which all pixels included in the image plane phase difference ranging image sensor 112 etc. have a pair of photoelectric conversion regions 210. However, a configuration may also be used in which only pixels in a specific region out of all pixels of the image plane phase difference ranging image sensor have a pair of photoelectric conversion regions 210. In addition, the arrangement and number of red, green and blue pixels of the image sensor can be changed as appropriate. In addition, the number of photoelectric conversion regions included in one pixel is not limited to two (a pair), and there may be three or more.

[0081] The disclosure of this embodiment includes the following configuration, method, and program. (Configuration 1) a first image sensor having a plurality of first pixels each configured by an array of pixels each having a pair of photoelectric conversion regions; a second imaging element having a plurality of second pixels and arranged to be aligned with the first imaging element in a first direction; a processing means for processing signals output from the first imaging element and the second imaging element; a distance measuring means for measuring distance based on the information processed by the processing means, The pair of photoelectric conversion regions are arranged to be aligned in a second direction intersecting the first direction, and the plurality of first pixels generate a first image group having a parallax in the second direction by the pair of photoelectric conversion regions. A distance measuring device comprising: (Configuration 2) The processing means includes: a first processing unit that performs a calculation process based on the first image group to generate a first calculated image; a second processing unit that receives an output image from the second imaging element; The distance measuring means is a calculation means for calculating first parallax information based on the first image group, and calculating second parallax information based on the first calculated image and the output image; generating means for generating distance measurement information based on at least one of the first parallax information and the second parallax information; 2. The distance measuring device according to configuration 1, (Configuration 3) The plurality of second pixels are configured by arranging pixels each having a pair of photoelectric conversion regions arranged in the first direction, and a second image group having a parallax in the first direction is generated as the output image by the pair of photoelectric conversion regions of the plurality of second pixels. 3. The distance measuring device according to configuration 2. (Configuration 4) The second processing unit generates a second calculated image by performing a calculation process based on the second image group. 4. The distance measuring device according to configuration 3. (Configuration 5) The calculation means further calculates third disparity information based on the second image group; The generating means generates distance measurement information based on at least one of the first parallax information, the second parallax information, and the third parallax information. 5. The distance measuring device according to configuration 3 or 4. (Configuration 6) The plurality of second pixels are configured by arranging pixels each having a pair of photoelectric conversion regions arranged to be aligned in the first direction, and a second image group having a parallax in the first direction is generated by the pair of photoelectric conversion regions of the plurality of second pixels. 2. The distance measuring device according to configuration 1, (Configuration 7) The distance measuring means is a calculation means for calculating first disparity information based on the first image group and calculating third disparity information based on the second image group; generating means for generating distance measurement information based on at least one of the first parallax information and the third parallax information; 7. The distance measuring device according to configuration 6. (Configuration 8) A switching means for switching between a plurality of pieces of information processed by the processing means and outputting the information to the distance measuring means. 3. The distance measuring device according to claim 2, further comprising: (Configuration 9) The distance measuring device is mounted on a moving object, The switching means switches the plurality of pieces of information depending on a state of the moving object. 9. The distance measuring device according to configuration 8. (Configuration 10) The vehicle further includes a detection means for detecting a traveling speed of the vehicle. The switching means switches the plurality of pieces of information based on the traveling speed. 10. The distance measuring device according to configuration 9. (Configuration 11) A recognition unit for recognizing objects around the moving object is further provided, The switching means switches between the plurality of pieces of information based on a recognition result by the recognition means. 11. The distance measuring device according to configuration 9 or 10. (Configuration 12) the switching means switches between the first image group and the output image and outputs the switched image to the distance measuring means; The calculation means executes either one of calculating the first parallax information or calculating the second parallax information in response to switching by the switching means. 12. The distance measuring device according to any one of configurations 8 to 11, (Configuration 13) the plurality of second pixels are configured by an array of pixels each having a pair of photoelectric conversion regions arranged to be aligned in the first direction, and a second image group having a parallax in the first direction is generated as the output image by the pair of photoelectric conversion regions of the plurality of second pixels; the calculation means, in response to the switching by the switching means, executes any one of calculating the first disparity information, calculating the second disparity information, and further calculating third disparity information based on the second image group; The generating means generates distance measurement information based on any one of the first parallax information, the second parallax information, and the third parallax information. 13. A distance measuring device according to claim 12. (Configuration 14) a first imaging element having a plurality of first pixels each configured by an array of pixels each having a pair of photoelectric conversion regions; a second imaging element having a plurality of second pixels and arranged to be aligned with the first imaging element in a first direction; The pair of photoelectric conversion regions are arranged to be aligned in a second direction intersecting the first direction, and the plurality of first pixels generate a first image group having a parallax in the second direction by the pair of photoelectric conversion regions. 1. An imaging device comprising: (Configuration 15) A drive mechanism; a first image sensor having a plurality of first pixels each configured by an array of pixels each having a pair of photoelectric conversion regions; a second imaging element having a plurality of second pixels and arranged to be aligned with the first imaging element in a first direction; a processing means for processing signals output from the first imaging element and the second imaging element; a distance measuring means for generating distance measurement information based on the information processed by the processing means; a control unit that controls the drive mechanism based on the distance measurement information generated by the distance measurement unit, The pair of photoelectric conversion regions are arranged to be aligned in a second direction intersecting the first direction, and the plurality of first pixels generate a first image group having a parallax in the second direction by the pair of photoelectric conversion regions. A moving object characterized by: (Method 1) A distance measuring method using an imaging device including a first imaging element having a plurality of first pixels, and a second imaging element having a plurality of second pixels and arranged to be aligned with the first imaging element in a first direction, comprising: a first image group having a parallax in the second direction is generated by the first pixels, each of which is configured by arranging pixels having a pair of photoelectric conversion regions arranged to be aligned in a second direction intersecting the first direction; processing the first image group generated by the first imaging element and a signal output from the second imaging element; Based on the processed information, distance measurement is performed. A distance measuring method comprising: (Program 1) A program executed by a computer using an imaging device including a first imaging element having a plurality of first pixels, and a second imaging element having a plurality of second pixels and arranged to be aligned with the first imaging element in a first direction, a first image group having a parallax in the second direction is generated by the first pixels, each of which is configured by arranging pixels having a pair of photoelectric conversion regions arranged to be aligned in a second direction intersecting the first direction; processing the first image group generated by the first imaging element and a signal output from the second imaging element; Based on the processed information, distance measurement is performed. A program characterized by:

[0082] The present invention has been described in detail above based on its preferred embodiments, but the present invention is not limited to the above embodiments, and various modifications are possible based on the gist of the present invention, and these modifications are not excluded from the scope of the present invention. [Explanation of symbols]

[0083] 11, 15 Image set 12 Output image 13, 16 Calculated images 100, 101, 102 Rangefinder 111, 112, 612 Image sensor 120 Image Processing Unit 121, 122, 622 Processing section 130, 830 distance measuring section 131, 632 Image plane phase difference distance measuring section 132 Stereo distance measurement unit 200 pixel group 201 First photoelectric conversion region 202 Second photoelectric conversion region 831 Switching part 834 Recognition part

Claims

1. a first image sensor having a first pixel having a plurality of photoelectric conversion regions; a second imaging element having a second pixel and having a first parallax in a first direction between the second imaging element and the first imaging element; a ranging unit that generates integrated ranging information based on signals output from the first imaging element and the second imaging element, The plurality of photoelectric conversion regions have a second parallax in a second direction intersecting the first direction. A distance measuring device comprising:

2. The distance measuring means generates the integrated distance measuring information based on first distance measuring information generated based on the second parallax and second distance measuring information generated based on the first parallax.

2. A distance measuring device according to claim 1.

3. The first pixel has a pair of photoelectric conversion regions, a generating means for generating a first image group having the second parallax based on a signal output from the first imaging element, the generating means generates a second image group having the first parallax based on at least a signal output from the second imaging element; The distance measuring means generates the integrated distance measuring information based on the first distance measuring information generated based on the first image group and the second distance measuring information generated based on the second image group.

3. A distance measuring device according to claim 2.

4. the first imaging element has a plurality of the first pixels; The second imaging element has a plurality of the second pixels.

4. The distance measuring device according to claim 3.

5. The distance measuring device is mounted on a moving object, a selection means for selecting information to be output to the distance measuring means from among the plurality of pieces of information in accordance with the state of the moving body; 4. The distance measuring device according to claim 3.

6. The vehicle further includes a detection means for detecting a traveling speed of the vehicle. The selection means selects the information based on the traveling speed.

6. A distance measuring device according to claim 5.

7. A recognition unit for recognizing objects around the moving object is further provided, The selection means selects the information based on a recognition result by the recognition means.

6. A distance measuring device according to claim 5.

8. the selection means selects information on one of the first image group and the second image group; The distance measuring means generates the integrated distance measurement information based on one of the image groups selected by the selection means.

6. A distance measuring device according to claim 5.

9. a first image sensor having a first pixel having a plurality of photoelectric conversion regions; a second image sensor having a second pixel and having a first parallax in a first direction between the first image sensor and the second image sensor; The plurality of photoelectric conversion regions have a second parallax in a second direction intersecting the first direction.

1. An imaging device comprising:

10. A drive mechanism; a first image sensor having a first pixel having a plurality of photoelectric conversion regions; a second imaging element having a second pixel and having a first parallax in a first direction between the second imaging element and the first imaging element; a ranging unit that generates integrated ranging information based on signals output from the first imaging element and the second imaging element; a control unit that controls the drive mechanism based on the integrated distance measurement information generated by the distance measurement unit, The plurality of photoelectric conversion regions have a second parallax in a second direction intersecting the first direction. A moving object characterized by:

11. A distance measuring method using an imaging device having a first imaging element having a first pixel, and a second imaging element having a second pixel and having a first parallax in a first direction between the first imaging element and the second imaging element, generating a signal having a second parallax in a second direction intersecting the first direction by a plurality of photoelectric conversion regions of the first pixel; Generate integrated distance measurement information based on signals output from the first imaging element and the second imaging element. A distance measuring method comprising:

12. A program executed by a computer using an imaging device having a first imaging element having a first pixel, and a second imaging element having a second pixel and having a first parallax in a first direction between the first imaging element, generating a signal having a second parallax in a second direction intersecting the first direction by a plurality of photoelectric conversion regions of the first pixel; Generate integrated distance measurement information based on signals output from the first imaging element and the second imaging element. A program characterized by:

Citation Information

Patent Citations

  • Signal processor

    JP2018189489A

  • Stereo photography device

    WO2013099169A1

  • Forward inter-vehicle distance measuring device

    JP3456843B2