STEREO CAMERA DEVICE
20200366883 ยท 2020-11-19
Assignee
Inventors
Cpc classification
B60R11/04
PERFORMING OPERATIONS; TRANSPORTING
H04N23/45
ELECTRICITY
H04N13/239
ELECTRICITY
G01B11/00
PHYSICS
B60R2300/303
PERFORMING OPERATIONS; TRANSPORTING
B60R1/00
PERFORMING OPERATIONS; TRANSPORTING
H04N2013/0081
ELECTRICITY
International classification
B60R11/04
PERFORMING OPERATIONS; TRANSPORTING
H04N13/239
ELECTRICITY
Abstract
A stereo camera accurately measures the parallax of an object in real time and an accurate distance, even in a device in which the vertical positions of two cameras are mutually offset. A left camera starts to capture an image. An image capturing region of a right camera is set to be below that of the left camera, and the start of image capture by the right camera is delayed. Image capture by the right camera starts after a time difference has elapsed. Feature points in images from the left and right cameras are extracted, and feature points in the vicinity of a height set in advance in the left and right images are extracted. Detection is performed to ascertain whether the average value of a left/right difference for a plurality of points is set in advance, and a difference at the current time is calculated.
Claims
1. A stereo camera device comprising: a first image capturing unit that obtains a first image; and a second image capturing unit that obtains a second image, wherein the first image and the second image have a portion where image capturing regions overlap with each other and a portion where the image capturing regions do not overlap with each other, and the portion where the image capturing regions overlap with each other is image-captured at substantially equal timings by the first image capturing unit and the second image capturing unit.
2. The stereo camera device according to claim 1, comprising: a feature point extraction unit that extracts feature points from the first image and the second image, respectively; an offset amount measurement unit that measures an offset amount between the feature points of the first image and the feature points of the second image extracted by the feature point extraction unit; and an image capture adjustment unit that adjusts image capture timing or an image capture start position of the first image capturing unit and the second image capturing unit according to the offset amount measured by the offset amount measurement unit.
3. The stereo camera device according to claim 2, wherein each of the first image capturing unit and the second image capturing unit has an imaging device, the stereo camera device further comprising a trigger signal output unit that outputs, in response to a command from the image capture adjustment unit, a trigger signal to start image capture to the imaging device of the first image capturing unit and the imaging device of the second image capturing unit.
4. The stereo camera device according to claim 2, wherein the first image capturing unit and the second image capturing unit capture images at different timings in the portion where the image capturing regions of the first image and the second image do not overlap with each other.
5. The stereo camera device according to claim 2, wherein the first image capturing unit and the second image capturing unit capture images at substantially equal timings in the portion where the image capturing regions of the first image and the second image do not overlap with each other.
6. The stereo camera device according to claim 4, wherein the stereo camera device is arranged on a moving body, and controls speed and moving direction of the moving body by measuring a distance to a target object located in front of the moving body.
7. The stereo camera device according to claim 6, wherein the moving body is a vehicle.
8. The stereo camera device according to claim 2, wherein the first image capturing unit and the second image capturing unit have imaging devices of a rolling shutter system.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0027]
[0028]
[0029]
[0030]
[0031]
[0032]
[0033]
[0034]
DESCRIPTION OF EMBODIMENTS
[0035] Prior to descriptions of examples of the present invention, a principle of the present invention is described.
[0036]
[0037] In
[0038] The preceding vehicle 64 shown in the image 65 and the preceding vehicle 64 shown in the image 66 are different from each other in terms of viewpoint positions of the left and right cameras 62 and 63 that an offset occurs disparity d according to a distance Z between the left camera 63 and the preceding vehicle 64.
[0039] The distance Z and the disparity d have a relationship as in the following formula (1) when lenses having the same focal length f are used in the left and right cameras.
Z=fB/d(1)
[0040] When the disparity d is measured using the above formula (1), the distance Z can be detected.
[0041] At this time, the left and right images 65 and 66 need to be captured at the same time.
[0042] Next, reference is made to
[0043] In
[0044] Most CMOS sensors, which are general-purpose imaging devices, use the rolling shutter system. Therefore, an example of the rolling shutter system is described.
[0045] Here, as shown in
[0046] One reason is that originally, the cameras are designed so as to make the image capturing ranges match each other, however, offset may occur when the cameras are installed in offset positions within tolerance during assembly, when the stereo camera is attached in an offset manner during installation on the vehicle or the like, or due to factors such as aging.
[0047] The other reason is that the image capturing ranges are intentionally offset in order to expand a vertical angle of view of the stereo camera. This is applied, for example, in order to capture a region where left and right images overlap for normal stereoscopic viewing for the purpose of normal front monitoring, and to capture an image to determine the lamp colors of the traffic light by only one of the cameras.
[0048] At this time, it is assumed that the left and right cameras start image capture processing with a time difference provided between the left and right cameras (the left camera starts image capturing first). To a line at an upper end position of the preceding vehicle 3, the time from the start until reaching the line at n1 elapses in an image 1 of the left camera, and the time from the start until reaching the line at n2 elapses in an image 2 of the right camera.
[0049] Therefore, there is a scanning time difference (n1n2) in the image of the upper end of the same vehicle 3 between the image 1 of the left camera and the image 2 of the right camera. A problem does not occur if relative positions of the left and right cameras and the preceding vehicle 3 do not change during this time difference (n1n2). However, for example, if the preceding vehicle moves laterally with respect to the left and right cameras, the problem occurs.
[0050]
[0051] If the disparity is not correctly measured, the disparity d in the above formula (1) cannot be obtained, therefore, the distance between the preceding vehicle and the camera cannot be accurately calculated.
[0052] Accordingly, the present invention is configured such that, when a position setting of the left and right cameras is offset from a predetermined distance due to aging or the like, the image capture timings of the left and right cameras are corrected in real time to enable accurate measurement of the distance to the preceding vehicle.
[0053] The real-time correction of the image capture timing of the left and right cameras can be realized even with a stereo camera device in which the left and right cameras are vertically offset intentionally.
[0054] Embodiments of the present invention are described below with reference to the drawings and the like. Examples described below is the examples in which the present invention is applied to a stereo camera device in which the left and right cameras are vertically offset intentionally.
EXAMPLES
Example 1
[0055]
[0056] In
[0057] In the stereo camera device 61 of the example 1, the left camera 63 and the right camera 62 are set in advance with a difference of N lines of image-capturing and scanning lines. That is, the left camera 63 located on the left side has an image capturing region set upward by N lines from the right camera 62 located on the right side of the left camera 63.
[0058] In
[0059] On the other hand, because the image capturing region of the right camera 62 is set below that of the left camera 63, the start of image capture by the right camera is delayed by the time t in step 52R, until tNTL is satisfied, with respect to the number N of vertical offset lines between the left and right cameras 62 and 63line operation time TL. Note that TL is the line scanning time.
[0060] In
[0061] There is a time difference 46 (NTL) between the trigger signals 44 and 45. However, it is assumed that the time nTL has elapsed from the image capture start time. A value of n is arbitrary.
[0062] After the imaging device 41 of the left camera 63 starts image capture, the time difference 46 elapses and the imaging device 42 of the right camera 62 starts image capture (step 53R).
[0063] Next, in steps 54R and 54L, the feature point extraction unit 431 extracts feature points in the left image (second image) 31 of the left camera 63 and the right image (first image) 32 of the right camera 62.
[0064]
[0065] Previously, the x marks 33 and 34 are extracted in the vicinity of left and right height positions set in the left image 31 and the right image 32 (steps 54R and 54L), and it is detected whether or not an average value of left and right differences of the extracted plural points is equal to or more than a preset N (step 55).
[0066] As another detection method, it is also possible to adopt a method of detecting whether a vertical difference between points 35 and 36 (left and right lane mark intersection), each of which is obtained by calculating a position where the left and right lane marks intersect, is larger or smaller than the preset N.
[0067] Next, the offset amount calculation unit 432 measures a difference n (offset amount) between the number of lines detected in step 56 of
[0068] Thereafter, the position difference N is used to execute steps 51, 53R, 53L, 54R, 54L, 55 to 57, and the position difference N is updated in real time.
[0069] As described above, according to the example 1 of the present invention, the respective images captured by the imaging devices 41 and 42 of the left and right cameras 62 and 63 while the vehicle is actually traveling are compared with each other, the feature points are extracted to determine whether or not the offset amount is the preset offset amount, and if the offset amount is not the preset offset amount, the image capture timings of the imaging devices 41 and 42 of the cameras 62 and 63 are adjusted so as to make the offset amount become the set offset amount.
[0070] Therefore, even in a stereo camera device in which the vertical positions of the two cameras of the rolling shutter system are mutually offset intentionally, it is possible to realize the stereo camera device that can accurately measure the disparity with respect to a target object in real time and measure the accurate distance.
[0071] It should be noted that the above-described operation of correcting the offset amount can be performed for each image capturing frame, and can be performed in real time even during the adjustment work by the car manufacturer and when an engine is turned on.
Example 2
[0072] Next, an example 2 of the present invention is described.
[0073]
[0074] A device configuration in the example 2 is similar to that of the block diagram shown in
[0075] In
[0076] Then, in steps 73L and 73R, images are captured from the image capture start line to the image capture end line of the imaging devices 41 and 42 of the left and right cameras 63 and 62, respectively.
[0077] Steps 74L, 74R, 75 and 76 are the same as steps 54L, 54R, 55 and 56 of
[0078] In step 77, the image capture timing of the right camera 62 is corrected by the detected offset amount (difference in the number of lines).
[0079] So far, the description has been made in which the image capturing regions of the left and right cameras 63 and 62 overlap. However, the description is made with reference to
[0080] In
[0081] However, as described in
[0082] As shown in an image capture timing 1 of
[0083] However, in order to shorten a frame interval and shorten an image capturing period, it is better to set the image capture timing 2 (example 2) in which the capture timings of the monocular regions of the left and right cameras 62 and 63 are the same time. That is, in the portion where the image capturing regions of the first image and the second image do not overlap with each other, the first image capturing unit and the second image capturing unit capture images at substantially the same timing.
[0084] According to the example 2 of the present invention, it is possible to obtain the same effect as that of the example 1, and further, it is possible to shorten the frame interval and shorten the image capturing period.
[0085] As described above, according to the present invention, even when the heights of two arbitrary camera positions are changed in the camera with the rolling shutter system which is often adopted as an imaging device, the stereo camera device can be realized in which the disparity for the target object can be accurately measured in real time, the accurate distance can be measured, collision with a vehicle, a pedestrian, or the like can be avoided, or the accurate data can be provided to the automatic driving system.
[0086] The stereo camera device according to the present invention is particularly effective when used in an environment where the usage environment (temperature, humidity, and the like) easily changes.
[0087] In addition, the stereo camera device according to the present invention is applicable not only to the vehicle, but also to a device such as a moving body including a mobile robot used in a factory or the like, for measuring a distance to a target object located in front or rear and controlling speed, moving direction, and the like. Note that in the above-described examples 1 and 2, the description is made of the examples in which the positions of the left and right cameras 62 and 63 are mutually offset in the vertical direction. This is because line readout of imaging devices 41 and 42 is in the horizontal direction and an influence may occur on the disparity calculation. However, if the imaging elements 41 and 42 are arranged after being rotated by 90 degrees, the two cameras are not mutually offset in the vertical direction but in the horizontal direction to determine the timing.
[0088] Further, in the above-described examples, the Harris corner detection method is used as the feature point extraction, however, it is also possible to use other corner detection methods (Moravec detection method or the like).
[0089] Further, the above-described examples are examples in which the present invention is applied to the stereo camera device in which the left and right cameras are intentionally offset in the vertical direction, however, it is also applicable to a stereo camera device in which the left and right cameras are arranged in the same position in the vertical direction.
[0090] Further, in the above-described examples, the image capture adjustment unit 444 and the trigger signal output unit 445 are provided separately, however, it is also possible to configure the image capture adjustment unit 444 to output the trigger signal, and to omit the trigger signal output unit 445.
REFERENCE SIGNS LIST
[0091] 1, 31, 66, 80 right camera image capturing region [0092] 2, 32, 65, 81 left camera image capturing region [0093] 3, 64 preceding vehicle [0094] 33, 34 image feature point (corner extraction point) [0095] 35, 36 left and right lane mark intersection [0096] 41, 42 imaging device [0097] 43 microcomputer [0098] 44, 45 trigger signal [0099] 62 right camera [0100] 63 left camera [0101] 431 feature point extraction unit [0102] 432 offset amount measurement unit [0103] 444 image capture adjustment unit [0104] 445 trigger signal output unit