Imaging device
By using spectroscopic elements and the design of different exposure times in the camera device, the problems of limited light intensity range and inaccurate distance calculation are solved, and high-precision distance measurement and image recognition are achieved.
Patent Information
- Application Number
- CN202380023458.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-02-25
- Filing Date
- 2023-02-07
- Publication Date
- 2024-10-18
AI Technical Summary
Existing imaging devices have a limited dynamic range of light intensity when measuring the distance to a subject, and may not be able to accurately calculate the distance while a robot or the like is continuously moving, affecting image recognition accuracy.
Using an imaging device with a first imaging element and a second imaging element, the light from the subject is guided to the two through a spectroscopic element, and the design of different exposure times and filters is used to expand the light intensity range and ensure that the Even if one of the imaging elements fails, the distance can still be calculated and the subject image without the pattern can be generated by removing the pattern light.
It achieves an expanded light intensity range, ensures that the distance to the subject can be accurately calculated under any circumstances, and generates high-precision subject images, avoiding the problem of reduced image recognition accuracy.
Smart Images

Figure CN118805067A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an imaging device capable of measuring the distance to a subject. Background Art
[0002] In the past, there is known an imaging device that measures the distance to a subject by irradiating a pattern light onto the subject. In such an imaging device, a pattern light having a special pattern (intensity distribution) is irradiated onto the subject, and the subject is imaged by an imaging unit. The imaging device holds a reference image in advance on which the above pattern is distributed. A pixel block having the highest correlation with a target pixel block on the captured image is searched on the reference image. The search range is set to the same position as the target pixel block as the reference position. The pixel offset of the pixel block extracted by the search relative to the reference position is detected as a parallax. Based on the parallax, the distance to the subject is calculated by triangulation.
[0003] In such an imaging device, not only the distance to the subject is acquired, but also the image of the subject (brightness image) may be acquired for image recognition of the subject. In this case, when the pattern light is irradiated as described above, the pattern of the pattern light will be captured in the image of the subject. Therefore, problems such as reduced accuracy of image recognition will arise.
[0004] A structure for eliminating such a problem is described in, for example, the following patent document 1. In this structure, an imaging element for acquiring an RGB image of a subject, an imaging element for receiving pattern light, and a separation optical system for separating the RGB light and the pattern light reflected from the subject are used. The RGB light and the pattern light separated by the separation optical system are received by the imaging element for RGB light and the imaging element for pattern light, respectively.
[0005] Prior Art Literature
[0006] Patent Literature
[0007] Patent Document 1: Japanese Patent Application Publication No. 2001-153612 Summary of the invention
[0008] -Problems to be solved by the invention-
[0009] In the above-mentioned camera device, the reflectivity and light absorption rate of the subject may vary. Therefore, it is preferable that the range of light intensity (dynamic range) that can be used for imaging and distance calculation is as wide as possible. In addition, when the camera device is mounted on a robot that moves continuously, it is preferable that the distance to the subject is calculated as little as possible during the continuous movement of the robot.
[0010] In view of the above problems, an object of the present invention is to provide an imaging device that can expand the range of light intensities (dynamic range) in which imaging and distance calculation can be performed and can prevent the distance to a subject from being unable to be calculated.
[0011] -Methods for solving the problem-
[0012] The imaging device involved in the main mode of the present invention comprises: an imaging unit; and a projection unit, which projects pattern light of the first wavelength band into the field of view of the imaging unit. Here, the imaging unit comprises: a first imaging element; a second imaging element; an imaging lens; a spectroscopic element, which guides the light from the subject focused by the imaging lens to the first imaging element and the second imaging element respectively; a first filter, which is formed on the light receiving surface of the first imaging element and has a plurality of first areas that transmit the light of the first wavelength band, and a plurality of second areas that do not transmit the light of the first wavelength band but transmit the light of the second wavelength band different from the first wavelength band; and a second filter, which is formed on the light receiving surface of the second imaging element and has a plurality of the first areas and a plurality of the second areas.
[0013] According to the imaging device involved in this method, since the light from the subject is guided to the first imaging element and the second imaging element, it is possible to respectively perform imaging of the subject and calculate the distance based on the imaging images from these imaging elements. At this time, for example, by making the exposure time in the first imaging element different from the exposure time in the second imaging element, imaging and distance calculation can be performed within the range of light intensity corresponding to each exposure time. Thereby, the range (dynamic range) in which imaging and distance calculation can be performed can be expanded. In addition, even if a fault or other adverse condition occurs in any of the imaging elements, the distance to the subject can be calculated using the imaging image from the other imaging element. Therefore, it is possible to suppress the situation in which the distance to the subject cannot be calculated.
[0014] In addition, since the pattern light is removed by passing through the second area of the first filter and the second area of the second filter, an image of the subject in a state where the pattern light is not captured can be generated, for example, by using pixel signals from pixels within a range that receives light that has passed through the second area. Thus, the distance to the subject can be calculated and the image of the subject can be generated at the same time.
[0015] -Effects of the Invention-
[0016] As described above, according to the present invention, it is possible to provide an imaging device that can expand the range of light intensities (dynamic range) in which imaging and distance calculation can be performed and can suppress situations in which the distance to a subject cannot be calculated.
[0017] The effects and significance of the present invention will become more apparent through the description of the following embodiments. However, the following embodiments are merely examples of implementing the present invention, and the present invention is not limited to the contents described in the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 It is a diagram showing the structure of an imaging device according to an embodiment.
[0019] Figure 2 (a) and Figure 2 (b) are diagrams schematically showing the setting method for the pixel blocks of the first image involved in the embodiment.
[0020] Figure 3 (a) and Figure 3 (b) is a diagram schematically showing the relationship between the optical axis of the imaging lens and the imaging surfaces of the first imaging element and the second imaging element according to the embodiment.
[0021] Figure 4 (a) is a diagram showing a structure of a first filter formed on an imaging surface of a first imaging element according to an embodiment. Figure 4 (b) is a diagram showing the structure of the second filter formed on the imaging surface of the second imaging element.
[0022] Figure 5 (a) and Figure 5 (b) is a diagram schematically showing a state in which pattern light projected from a projection unit is projected onto a first filter and a second filter according to the embodiment.
[0023] Figure 6 (a) and Figure 6 (b) are diagrams schematically showing light incident on the imaging surface of the first imaging element according to the embodiment.
[0024] Figure 7 (a)~ Figure 7 (d) are diagrams schematically showing a process of searching for a matching pixel block on a reference image that matches a target pixel block on a captured image, according to an embodiment.
[0025] Figure 8 (a) is a graph illustrating the relationship between the search position and the correlation value for the target pixel block irradiated with the pattern light according to the embodiment. Figure 8 (b) is a graph illustrating the relationship between the search position and the correlation value for the target pixel block not irradiated with the pattern light according to the embodiment.
[0026] Fig. 9 This is a flowchart showing a process for acquiring a distance and an image of a subject according to an embodiment.
[0027] Fig.10 (a) is a diagram showing a structure of a first filter formed on an imaging surface of a first imaging element according to Modification Example 1. Fig.10 (b) is a diagram showing a configuration of a second filter formed on the imaging surface of the second imaging element according to Modification Example 1.
[0028] Fig.11 This is a flowchart showing the distance and image acquisition process according to Modification Example 1.
[0029] Fig.12 It is a diagram showing the configuration of a projection unit and an imaging unit according to Modification Example 2.
[0030] Fig.13 It is a diagram showing another configuration of the projection unit and the imaging unit according to Modification Example 2.
[0031] Fig.14 It is a diagram showing the configuration of a projection unit and an imaging unit according to Modification Example 3.
[0032] Fig.15 : is a flowchart showing the range image generation process according to Modification Example 3.
[0033] Fig.16 (a) and Fig.16 (b) is a diagram showing the structure of the first filter involved in Modification Example 4.
[0034] Fig.17 (a) and Fig.17 (b) is a diagram showing another structure of the first filter involved in Modification Example 4.
[0035] Fig.18 (a) and Fig.18 (b) is a diagram schematically showing the relationship between the optical axis of the imaging lens and the imaging surfaces of the first imaging element and the second imaging element according to Modification Example 5.
[0036] Fig.19 Schematically showing the resolution of the brightness image and the range image according to Modification Example 5.
[0037] Fig. 20 It is a diagram showing the configuration of a projection unit and an imaging unit according to another modification example.
[0038] However, the drawings are for illustration purposes only and are not intended to limit the scope of the present invention. DETAILED DESCRIPTION
[0039] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. For convenience, each drawing is marked with an X-axis, a Y-axis, and a Z-axis that are orthogonal to each other. The X-axis direction is the arrangement direction of the projection unit and the imaging unit, and the positive direction of the Z-axis is the imaging direction of the imaging unit.
[0040] Figure 1 1 is a diagram showing the structure of the imaging device 1 .
[0041] The imaging device 1 includes a projection unit 10 , an imaging unit 20 , and an image processing unit 30 .
[0042] The projection unit 10 projects patterned light distributed in a given pattern into the field of view of the imaging unit 20. The projection direction of the patterned light by the projection unit 10 is the positive direction of the Z axis. The projection unit 10 includes a light source 11, a collimating lens 12, a pattern generator 13, and a projection lens 14.
[0043] The light source 11 emits laser light of a given wavelength. The light source 11 is, for example, a semiconductor laser. The emission wavelength of the light source 11 is, for example, included in the infrared band. The light source 11 may also be another type of light source such as an LED (Light Emitting Diode). The collimating lens 12 converts the light emitted from the light source 11 into substantially parallel light.
[0044] The pattern generator 13 generates pattern light using the light emitted from the light source 11. In the present embodiment, the pattern generator 13 is a transmission type optical diffraction element (DOE). The optical diffraction element (DOE) has a diffraction pattern of a given order on its incident surface, for example. Through the diffraction effect of the diffraction pattern, the laser incident on the diffraction optical element (pattern generator 13) is split into multiple pieces, thereby converting them into light of a given pattern. The generated pattern is a pattern that can maintain uniqueness for each pixel block 102 described later.
[0045] In the present embodiment, the pattern generated by the optical diffraction element (DOE) is a pattern in which a plurality of point areas (hereinafter referred to as "points") as the light passing area are randomly distributed. However, the pattern generated by the optical diffraction element (DOE) is not limited to a point-based pattern, but may be other patterns. In addition, the pattern generator 13 may be a reflective optical diffraction element or a photomask. Alternatively, the pattern generator may be a device such as 33, DMD (Digital Mirror Device), a liquid crystal display, etc. that generates a fixed pattern of patterned light through a control signal.
[0046] The projection lens 14 projects the pattern light generated by the pattern generator 13. The projection lens 14 may be composed of a single lens or a combination of a plurality of lenses. In addition, a concave reflector may be used instead of the projection lens 14.
[0047] The imaging unit 20 includes a first imaging element 21 , a second imaging element 22 , a spectroscopic element 23 , and an imaging lens 24 .
[0048] The first imaging element 21 and the second imaging element 22 are CMOS image sensors. The first imaging element 21 and the second imaging element 22 may also be CCDs. As described later, a first filter 41 and a second filter 42 are formed on the imaging surfaces of the first imaging element 21 and the second imaging element 22, respectively (see FIG. Figure 4 In the present embodiment, the first imaging element 21 and the second imaging element 22 have the same structure.
[0049] The spectroscopic element 23 separates the light from the subject after being focused by the imaging lens 24, and guides the light to the first imaging element 21 and the second imaging element 22, respectively. The spectroscopic element 23 is, for example, a half mirror. The spectroscopic element 23 may also be other optical elements such as a diffraction optical element. The imaging lens 24 focuses the light from the field of view onto the imaging surfaces of the first imaging element 21 and the second imaging element 22. The optical axis of the imaging lens 24 is parallel to the Z axis.
[0050] The image processing unit 30 includes a signal processing unit 31 , a light source driving unit 32 , a first imaging processing unit 33 , a second imaging processing unit 34 , and a communication interface 35 .
[0051] The signal processing unit 31 includes a microcomputer and other arithmetic processing circuits and a memory, and controls each unit according to a given program. In addition, the signal processing unit 31 processes the pixel signals input from the first imaging processing unit 33 and the second imaging processing unit 34, calculates the distance to the subject, and generates an image of the subject.
[0052] The signal processing unit 31 holds a reference image in which points are distributed in the same pattern as the pattern light projected from the projection unit 10. The signal processing unit 31 compares the reference image with the camera images captured by the first camera processing unit 33 and the second camera processing unit 34, respectively, and performs a stereo corresponding point search to calculate the distance to the object of each pixel block projected on each camera image.
[0053] That is, the signal processing unit 31 sets a pixel block set as a distance acquisition target (hereinafter referred to as a "target pixel block") on the captured image, and searches for a pixel block corresponding to the target pixel block, that is, a pixel block that best matches the target pixel block (hereinafter referred to as a "matching pixel block") within a predetermined search range on the reference image. Furthermore, the signal processing unit 31 acquires the pixel offset between a pixel block located at the same position as the target pixel block on the reference image (hereinafter referred to as a "reference pixel block") and the matching pixel block extracted from the reference image by the above search, and performs processing to calculate the distance to the object at the position of the target pixel block based on the acquired pixel offset and by calculation based on the triangulation method.
[0054] In addition, the signal processing unit 31 generates an image that does not include the points of the pattern light based on the captured images captured by the first image processing unit 33 and the second image processing unit 34. For the processing of calculating the distance to the subject and generating the image, refer to Figure 7 (a)~ Fig. 9 to explain.
[0055] The signal processing unit 31 performs in parallel a first process of calculating the distance and generating an image on the captured image (pixel signal) from the first imaging element 21, and a second process of calculating the distance and generating an image on the captured image (pixel signal) from the second imaging element 22. The signal processing unit 31 transmits one of the distance and the image acquired by the first process and the second process to an external device via the communication interface 35.
[0056] The signal processing unit 31 may also perform the first processing and the second processing by a semiconductor integrated circuit composed of two FPGAs (Field Programmable Gate Arrays). Alternatively, the first processing and the second processing may also be performed by other semiconductor integrated circuits such as DSPs (Digital Signal Processors), GPUs (Graphics Processing Units), and ASICs (Application Specific Integrated Circuits).
[0057] The light source driving unit 32 drives the light source 11 according to the control from the signal processing unit 31. The first imaging processing unit 33 controls the first imaging element 21, and performs processing such as brightness correction and camera calibration on the pixel signal of the imaging image output from the first imaging element 21. The second imaging processing unit 34 controls the second imaging element 22, and performs processing such as brightness correction and camera calibration on the pixel signal of the imaging image output from the second imaging element 22.
[0058] Figure 2 (a) and (b) are diagrams schematically showing a method of setting the pixel block 102 of the first imaging element 21 . Figure 2 (a) shows a method for setting the pixel block 102 for the entire imaging surface. Figure 2 (b) shows an enlarged area of a part of the imaging surface.
[0059] like Figure 2 As shown in (a) and (b) of FIG. 1 , the imaging surface of the first imaging element 21 is divided into a plurality of pixel blocks 212 each including a given number of pixel regions 211. The pixel region 211 is an area corresponding to one pixel on the first imaging element 21. That is, the pixel region 211 is the minimum unit of the imaging surface. Figure 2 In the examples of (a) and (b), nine pixel regions 211 arranged in three rows and three columns constitute one pixel block 212. However, the number of pixel regions 211 included in one pixel block 212 is not limited thereto. The pixel blocks are also set in the same manner on the imaging surface of the second imaging element 22.
[0060] Figure 3 (a) and (b) schematically show the relationship between the optical axis of the imaging lens 24 and the imaging surfaces of the first imaging element 21 and the second imaging element 22, respectively. Figure 3 (a) and (b) of FIG. 1 show the vicinity of the center of the imaging surface of the first imaging element 21 and the second imaging element 22 .
[0061] like Figure 3 As shown in (a), the center C of the imaging surface of the first imaging element 21 is o 1 is aligned with the optical axis center Co0 of the imaging lens 24. Figure 3 As shown in (b), the center Co2 of the imaging surface of the second imaging element 22 is aligned with the optical axis center Co0 of the imaging lens 24. Therefore, the arrangement pattern of the pixel area 211 of the first imaging element 21 relative to the optical axis center Co0 of the imaging lens 24 and the arrangement pattern of the pixel area 221 of the second imaging element 22 relative to the optical axis center Co0 of the imaging lens 24 are identical to each other.
[0062] Figure 4 (a) is a diagram showing the structure of the first filter 41 formed on the imaging surface of the first imaging element 21 . Figure 4 (b) is a diagram showing the structure of the second filter 42 formed on the imaging surface of the second imaging element 22. Figure 4 (a) Figure 4 (b) shows the range near the upper left corner of the first filter 41 and the second filter 42.
[0063] exist Figure 4 In (a) and (b), pixel regions 211 and 221 located on the depth side of the first filter 41 and the second filter 42 are indicated by dotted lines, and further, one pixel block 212 and 222 are indicated by bold lines.
[0064] like Figure 4 As shown in (a), the first filter 41 is provided with a plurality of first regions 411 and a plurality of second regions 412. The first region 411 transmits light in the wavelength band (here, the infrared band) of the pattern light projected from the projection unit 10, and does not transmit light in other wavelength bands. The second region 412 transmits light in the wavelength band of the visible band, and does not transmit light in other wavelength bands. Therefore, the second region 412 does not transmit light in the wavelength band (here, the infrared band) of the pattern light projected from the projection unit 10.
[0065] like Figure 4 As shown in (b), the second filter 42 is provided with a plurality of first regions 421 and a plurality of second regions 422. The first region 421 transmits light in the wavelength band (here, the infrared wavelength band) of the pattern light projected from the projection unit 10, and does not transmit light in other wavelength bands. The second region 422 transmits light in the wavelength band of the visible band, and does not transmit light in other wavelength bands. Therefore, the second region 422 does not transmit light in the wavelength band (here, the infrared wavelength band) of the pattern light projected from the projection unit 10.
[0066] like Figure 4 As shown in (a) and (b) of FIG. 2 , the first regions 411 and 421 and the second regions 412 and 422 are all the same size as the pixel block 212. The first regions 411 and the second regions 412 of the first optical filter 41 are alternately arranged in the left-right direction and the up-down direction in the entire range of the imaging region of the first imaging element 21. In addition, the first regions 421 and the second regions 422 of the second optical filter 42 are alternately arranged in the left-right direction and the up-down direction in the entire range of the imaging region of the first imaging element 21.
[0067] In the present embodiment, the arrangement pattern of the first region 411 and the second region 412 in the first optical filter 41 and the arrangement pattern of the first region 421 and the second region 422 in the second optical filter 42 are identical to each other.
[0068] Figure 5 (a) Figure 5 (b) is a diagram schematically showing a state in which the pattern light projected from the projection unit 10 is projected onto the first filter 41 and the second filter 42 .
[0069] When the pattern light is projected from the projection unit 10, the reflected light of the pattern light reflected from the subject is captured by the imaging lens 24 and focused on the first imaging element 21 and the second imaging element 22. Figure 5 As shown in (a) and (b) of FIG. 8 , the pattern (dots DT) of the pattern light is projected onto the first filter 41 and the second filter 42 in a predetermined distribution state.
[0070] Figure 6 (a) Figure 6 (b) is a diagram schematically showing light incident on the imaging surface of the first imaging element 21. Figure 6 In (a), the light in the infrared band transmitted in the first region 411 is shown by shading. Figure 6 In (b), light in the visible wavelength band transmitted through the second region 412 is indicated by shading.
[0071] like Figure 6 As shown in (a), Figure 5 The area corresponding to the first area 411 of (a) is incident with the pattern light as the light in the infrared band, and does not Figure 5 The pattern light is incident on the area corresponding to the second area 412 of (a). Figure 6 As shown in (b), Figure 5 The region corresponding to the second region 412 of (a) is incident with light in the visible wavelength band, and does not Figure 5 Therefore, in the entire imaging surface of the first imaging element 21, the area where the pattern light is incident and the area where the visible light is incident appear alternately in the left-right direction and the up-down direction.
[0072] exist Figure 6 (a) and (b) show the light incident on the imaging surface of the first imaging element 21, but Figure 6 Similarly to (a) and (b), on the imaging plane of the second imaging element 22, the region into which the pattern light is incident and the region into which the visible light is incident also appear alternately in the left-right direction and the up-down direction.
[0073] like Figure 6 As shown in (a) and (b) of FIG. 1 , the point DT is projected onto the region where the pattern light is incident. Therefore, for these regions, the distance can be appropriately calculated by searching for the three-dimensional corresponding points.
[0074] Figure 7 (a) to (d) schematically show the process of searching for a matching pixel block on the reference image that matches the target pixel block TB1 on the captured image (the pixel block 212 set as the target of distance acquisition). Here, the first process of searching for the captured image acquired by the first imaging element 21 is shown.
[0075] First, if Figure 7 As shown in (a) of FIG. 1 , the signal processing unit 31 sets a search range R0 on the reference image. The starting position ST1 of the search range R0 is set to a position corresponding to the target pixel block TB1 on the reference image. The search range R0 extends from the starting position ST1 by a given number of pixels (the number of pixels corresponding to the distance detection range) in the separation direction of the projection unit 10 and the imaging unit 20. The width of the search range R0 in the up-down direction is the same as the width of the target pixel block TB1 in the up-down direction.
[0076] The signal processing unit 31 sets the start position ST1 as the search position, sets the reference pixel block RB1 having the same size as the target pixel block TB1 at the search position, and calculates the correlation value between the target pixel block TB1 and the reference pixel block RB1.
[0077] Here, for example, the difference of the pixel value (brightness) is calculated for each pixel area corresponding to the object pixel block TB1 and the reference pixel block RB1, and the value (SAD) obtained by accumulating the absolute values of all the calculated differences is obtained as the correlation value. Alternatively, the value (SSD) obtained by accumulating the squared values of all the above differences can be obtained as the correlation value. However, the calculation method of the correlation value is not limited to this, and other calculation methods can also be used as long as the correlation value that serves as an indicator of the correlation between the object pixel block TB1 and the reference pixel block RB1 can be obtained.
[0078] Thus, when the processing of one reference pixel block RB1 is completed, Figure 7 As shown in (b), the signal processing unit 31 sets the next search position. Specifically, the signal processing unit 31 sets the position of the previous search position shifted by 1 pixel in the end direction of the search range R0 as the current search position. Furthermore, the signal processing unit 31 calculates the correlation value between the reference pixel block RB1 and the object pixel block TB1 of the current search position through the same processing as above.
[0079] The signal processing unit 31 repeatedly executes the same processing while shifting the search position by one pixel in the end direction. Figure 7 (c) shows a state where the reference pixel block RB1 is set at the search position one step before the last search position in the search range R0. Figure 7 (d) shows a state where the reference pixel block RB1 is set at the last search position in the search range R0.
[0080] In this way, when the processing for the last search position is completed, the signal processing unit 31 obtains the search position with the smallest correlation value among the search positions set in sequence. In addition, the signal processing unit 31 extracts the reference pixel block RB1 of the search position that obtains the smallest correlation value as the pixel block (matching pixel block) corresponding to the target pixel block TB1. Furthermore, the signal processing unit 31 obtains the pixel offset of the matching pixel block relative to the starting position ST1. In addition, the signal processing unit 31 calculates the distance to the subject by triangulation based on the obtained pixel offset and the separation distance between the projection unit 10 and the camera unit 20.
[0081] The signal processing unit 31 temporarily stores the calculated distance. The signal processing unit 31 repeatedly performs the same process for all target pixel blocks TB1 on the captured image. In this way, the distance to the subject is temporarily stored for all target pixel blocks TB1 through the first process.
[0082] The search process of the second process for the captured image captured by the second imaging element 22 is also the same as described above. The signal processing unit 31 acquires the distance to the subject for all target pixel blocks TB1 through the second process, and temporarily stores the acquired distance.
[0083] In addition, in this embodiment, if Figure 6 As shown in (a), the pattern light is not irradiated to the area on the imaging plane corresponding to the second area 412 of the first filter 41. Therefore, the distance may not be properly acquired for the pixel block 212 (target pixel block TB1) corresponding to these areas.
[0084] Figure 8 (a) is a graph illustrating the relationship between the search position and the correlation value for the target pixel block TB1 irradiated with pattern light. Figure 8 (b) is a graph illustrating the relationship between the search position and the correlation value for the target pixel block TB1 not irradiated with pattern light. Here, the correlation value on the vertical axis is assumed to be SAD or SSD.
[0085] like Figure 8 As shown in (a), in the search process for the target pixel block TB1 irradiated with pattern light, the correlation value C1 obtained at the search position P1 as the position of the matching pixel block is significantly reduced to a degree that can be clearly distinguished from the correlation values at other positions. Therefore, at the search position P1, the minimum correlation value C1 can be obtained. Therefore, the search position P1 is appropriately determined as the position of the matching pixel block.
[0086] On the other hand, Figure 8As shown in (b), in the search process for the target pixel block TB1 that is not irradiated with pattern light, the difference between the correlation value obtained at the position of the matching pixel block and the correlation value at other positions becomes smaller. Therefore, the following situation may occur: due to the influence of noise, the correlation value C2 obtained at the position P2 different from the position of the matching pixel block becomes the minimum value, so that the position is erroneously detected as the position of the matching pixel block.
[0087] In order to solve such a problem, the signal processing unit 31 sets a given threshold value Th0 for the correlation value. When the minimum value of the correlation value obtained by the search process is not less than the threshold value Th0, the distance of the target pixel block TB1 is processed as being unable to be calculated. In this case, the signal processing unit 31 interpolates the distance of the target pixel block TB1 whose distance cannot be calculated using the distances obtained for the pixel blocks around the target pixel block TB1. The interpolation method can use a conventionally known method such as a method using the average value of the surrounding distances.
[0088] Fig. 9 : is a flowchart showing a process for acquiring a distance and an image for a subject.
[0089] exist Fig. 9 In the flowchart of Figure 1 The processing steps of the first processing shown in FIG. 1, steps S107 to S112 are based on Figure 1 The processing steps of the second processing are shown.
[0090] In step S101, the signal processing unit 31 operates the first imaging element 21 at the first exposure time to obtain a first camera image. In step S102, the signal processing unit 31 performs brightness correction based on the exposure time on each pixel signal of the first camera image. More specifically, the brightness correction is performed on each pixel signal of the first camera image so that it becomes a brightness level when the reference exposure time is set for the first imaging element 21.
[0091] In step S103, the signal processing unit 31 extracts the region of incident natural light (visible light), that is, the region corresponding to the second region 412 of the first filter 41, from the first captured image after brightness correction. In step S104, the signal processing unit 31 interpolates the pixel signals of the region between the extracted natural light regions with the pixel signals of the surrounding regions to generate an image (brightness image) of the subject for one screen.
[0092] In step S105, the signal processing unit 31 calculates the distance to each pixel block 212 on the first image through the above-mentioned search process based on the first camera image. In step S106, the signal processing unit 31 interpolates the distance to the pixel block 212 whose distance is not obtained through the search process with the distance of its surroundings, and obtains a distance image in which the distance is associated with all pixel blocks.
[0093] In step S107, the signal processing unit 31 causes the second imaging element 22 to operate at a second exposure time different from the first exposure time, and acquires a second camera image. For example, the second exposure time is set shorter than the first exposure time. Steps S108 to S112 are different from steps S102 to S106 in that the camera images to be processed are different in the first camera image and the second camera image, and the contents of the processing are the same. Through steps S108 to S112, the signal processing unit 31 acquires an image (brightness image) of the subject and a distance image in which distances are associated with all pixel blocks for the second camera image.
[0094] In step S113, the signal processing unit 31 selects one of the images (luminance images) of the subject acquired for each of the first and second camera images. In step S114, the signal processing unit 31 selects one of the distance images acquired for each of the first and second camera images.
[0095] For example, when both the first imaging element 21 and the second imaging element 22 have no faults such as failures, in steps S113 and S114, the signal processing unit 31 selects the image (brightness image) and the distance image of the subject acquired for the first image (the image with a longer exposure time). In addition, when a fault such as a fault is detected in one of the first imaging element 21 and the second imaging element 22, in steps S113 and S114, the signal processing unit 31 selects the image (brightness image) and the distance image of the subject acquired for the image from the imaging element without the fault.
[0096] The detection of a failure or the like in the first imaging element 21 and the second imaging element 22 is performed, for example, in the following manner: Fig. 9 In the initial operation before the processing, pattern light is projected from the projection unit 10, and a first camera image and a second camera image are acquired from the first camera element 21 and the second camera element 22 with the same exposure time, and these first camera image and second camera image are compared.
[0097] For example, when the pixel signals of the pixels corresponding to each other in the first camera image and the second camera image are substantially the same for all pixels, it is determined that there is no defect such as a malfunction in the first camera element 21 and the second camera element 22. On the other hand, when there is a tendency that one of the pixel signals of the pixels corresponding to each other is lower than the other, it is determined that there is a defect such as a malfunction in the camera element that acquired the pixel signal of one.
[0098] However, the method of determining a fault is not limited to this. For example, the average values of the pixel signals may be obtained from the first camera image and the second camera image obtained at the initial operation, respectively, and the obtained average values may be compared to determine whether the first camera image and the second camera image have a fault. In this case, if these average values are approximately the same, it is determined that there is no fault in the first camera image and the second camera image, and if one is lower than the other, it is determined that there is a fault in the camera element for which the average value of one is obtained.
[0099] Alternatively, the changes in the pixel values of the first camera image and the second camera image may be monitored separately based on several frames of the first camera image and the second camera image acquired in the initial action. When the change in the pixel value of either the first camera element 21 or the second camera element 22 exceeds a threshold range, it is determined that there is an adverse condition such as a malfunction in the camera element.
[0100] When there is no fault or other defective condition in both the first imaging element 21 and the second imaging element 22, one of the brightness image and the distance image acquired for the first camera image and the second camera image may be selected according to the reflectivity and light absorption rate of the subject. For example, when the reflectivity with respect to infrared light is high, the signal processing unit 31 may select the distance image acquired from the second camera image with a shorter exposure time in step S114.
[0101] Alternatively, representative values (for example, average values, central values, etc.) of pixel signals may be obtained from a given area within the first camera image and a given area within the second camera image, respectively, and in step S114, a brightness image and a distance image obtained from the camera image whose representative value is closer to a predetermined value may be selected.
[0102] In step S115, the signal processing unit 31 transmits the image (brightness image) and the distance image of the subject selected in steps S113 and S114 to the external device via the communication interface 35. Fig. 9 processing.
[0103] <Effects of implementation>
[0104] According to the above-described embodiment, the following effects are achieved.
[0105] like Figure 1 As shown in FIG. 1 , light from the subject is guided by the spectroscopic element 23 to the first imaging element 21 and the second imaging element 22. Fig. 9 As shown, it is possible to perform imaging of each subject and calculate the distance based on the first camera image and the second camera image acquired by the first camera element 21 and the second camera element 22, respectively. At this time, since there is a difference between the first exposure time in the first camera element 21 and the second exposure time in the second camera element 22, imaging and distance calculation can be performed within the range of light intensity corresponding to each exposure time. Thus, the range (dynamic range) in which imaging and distance calculation can be performed can be expanded. In addition, even if a fault or other adverse condition occurs in any of the camera elements, the distance to the subject can be calculated based on the camera image from the other camera element. Therefore, it is possible to suppress the situation where the distance to the subject cannot be calculated.
[0106] In addition, as referenced Figure 6 As described in (b), since the pattern light is removed by the second area 412 of the first filter 41 and the second area 422 of the second filter 42, a brightness image of the subject in a state where the pattern light is not captured can be generated by pixel signals from pixels within the range that receive the light transmitted through the second areas 412 and 422. Thus, the distance to the subject can be calculated and the brightness image of the subject can be generated at the same time.
[0107] like Figure 4 As shown in (a) and (b) of FIG. 4 , the arrangement pattern of the first area 411 and the second area 412 in the first filter 41 and the arrangement pattern of the first area 421 and the second area 422 in the second filter 42 are the same. Thus, the production process (first process and second process) of the luminance image and the distance image for the first camera image and the second camera image can be made the same process. Therefore, the process in the signal processing unit 31 can be simplified.
[0108] like Figure 4 As shown in (a) and (b), in the first filter 41, the first area 411 and the second area 412 are alternately arranged, and in the second filter 42, the first area 421 and the second area 422 are alternately arranged. Figure 6As shown in (a) and (b) of FIG. 1 , in the first camera image and the second camera image, for an area where the brightness image and the distance image cannot be obtained, there are areas where the brightness image and the distance image can be obtained in the areas adjacent to the areas above, below, left, and right. Therefore, interpolation can be smoothly and appropriately performed for the area where the brightness image and the distance image cannot be obtained.
[0109] like Figure 4 As shown in (a) and (b) of FIG. 1 , the first area 411 and 421 are set to be an integer multiple (here, 1) of the minimum unit of distance detection, that is, the pixel block 212 and 222. Figure 6 As shown in (a), the pixel blocks 212 and 222 at the positions corresponding to the first regions 411 and 421 contain all the patterns (dots DT) of the patterned light that should have been contained. Therefore, the stereo corresponding point search for these pixel blocks 212 and 222 can be performed with high accuracy, and as a result, the distance calculation for these pixel blocks 212 and 222 can be performed with high accuracy. In addition, since the distance calculation accuracy for these pixel blocks 212 and 222 is high, the distance interpolation for the pixel blocks adjacent to these pixel blocks 212 and 222 can also be performed with high accuracy.
[0110] like Figure 3 As shown in (a) and (b), the arrangement pattern of the pixel area 211 of the first imaging element 21 relative to the optical axis center Co0 of the imaging lens 24 and the arrangement pattern of the pixel area 221 of the second imaging element 22 relative to the optical axis center Co0 of the imaging lens 24 are the same. Thus, the production process (first process and second process) of the brightness image and the distance image for the first and second imaging images can be made the same. Therefore, the process in the signal processing unit 31 can be simplified.
[0111] As described above, the wavelength band (first wavelength band) transmitted in the first regions 411 and 421 is a wavelength band included in the infrared band (non-visible wavelength band), and the second wavelength band transmitted in the second regions 412 and 422 is a wavelength band included in the visible wavelength band. Thus, the distance to the subject can be acquired by irradiating infrared (non-visible) patterned light, and the brightness image of the subject can be acquired by natural light (visible light) from the subject.
[0112] exist Fig. 9 In steps S113 and S114, the signal processing unit 31 selects one of the brightness image and the distance image acquired by the first process and the second process, respectively, according to given selection conditions including whether the first imaging element 21 and the second imaging element 22 have a fault, and the reflectivity and light absorption rate of the subject. Thus, the brightness image and the distance image of the subject can be acquired smoothly and appropriately according to the fault and the state of the subject.
[0113] <Change Example 1>
[0114] In the above embodiment, if Figure 4 As shown in (a) and (b) of FIG. 1 , the arrangement pattern of the first area 411 and the second area 412 in the first optical filter 41 is identical to the arrangement pattern of the first area 421 and the second area 422 in the second optical filter 42. In contrast, in Modification Example 1, the arrangement pattern of the first area 411 and the second area 412 in the first optical filter 41 is different from the arrangement pattern of the first area 421 and the second area 422 in the second optical filter 42.
[0115] Fig.10 (a) is a diagram showing a configuration of a first filter 41 formed on the imaging surface of the first imaging element 21 according to Modification Example 1. FIG. Fig.10 (b) is a diagram showing the structure of the second filter 42 formed on the imaging surface of the second imaging element 22 according to Modification Example 1. Fig.10 In (a) and (b), Figure 4 Similarly, (a) and (b) of FIG. 4 show the range near the upper left corner of the first filter 41 and the second filter 42 .
[0116] like Fig.10 As shown in (a) and (b) of FIG. 1 , in Modification Example 1, the first region 411 and the second region 412 of the first filter 41 are interchanged with the first region 421 and the second region 422 of the second filter 42. That is, for the regions where the first region 411 and the second region 412 are respectively arranged in the first filter 41, the second region 422 and the first region 421 are respectively arranged in the second filter 42. As in the above-mentioned embodiment, the sizes of the first regions 411, 421 and the second regions 412, 422 are the same as the sizes of the pixel blocks 212, 222.
[0117] pass Fig.10 The structures (a) and (b) can also be Fig. 9 The first processing (S101 to S106) can obtain the brightness image and the distance image of the subject from the first camera image, and the second processing (S107 to S112) can obtain the brightness image and the distance image of the subject from the second camera image. In addition, any one of the brightness image and the distance image obtained from the first camera image and the brightness image and the distance image obtained from the second camera image can be selected and sent to an external device.
[0118] In addition, in the structure of Modification Example 1, if Fig.10As shown in (a) and (b) of , the first area 411 and the second area 412 of the first filter 41 and the first area 421 and the second area 422 of the second filter 42 are interchanged. Therefore, natural light is irradiated to the area on the second camera image corresponding to the area not irradiated with natural light on the first camera image. Therefore, it is possible to generate a luminance image by superimposing a luminance image of a frame generated by extracting only the area irradiated with natural light from the first camera image and a luminance image of a frame generated by extracting only the area irradiated with natural light from the second camera image. That is, in the structure of Modification Example 1, by superimposing such images, it is possible to obtain a luminance image of a frame without performing interpolation processing.
[0119] In addition, for the distance image, it is also possible to generate a frame of distance image by superimposing a frame of distance image including only the distance acquired for the pixel block corresponding to the first area 411 on the first camera image and a frame of distance image including only the distance acquired for the pixel block corresponding to the first area 421 on the second camera image. That is, in the structure of Modification Example 1, by superimposing such distance images, a frame of distance image can be acquired without performing interpolation processing.
[0120] Fig.11 This is a flowchart showing the distance and image acquisition process when the filter structure of Modification Example 1 is used.
[0121] exist Fig.11 In the flowchart, the Fig. 9 The interpolation processing of steps S104, S106, S110, and S112 is Fig. 9 Steps S113 and S114 are replaced by steps S121 and S122.
[0122] In step S121, the signal processing unit 31 synthesizes the brightness image of the area containing only natural light extracted in step S103 and the brightness image of the area containing only natural light extracted in step S109 to generate a brightness image of one frame. More specifically, the signal processing unit 31 embeds the pixel signal (brightness) of each pixel of the area extracted in step S109 into the area not extracted in step S103 to generate a brightness image of one frame.
[0123] In step S122, the signal processing unit 31 synthesizes the distance image including only the distance corresponding to the pixel block whose distance is calculated in step S105 and the distance image including only the distance corresponding to the pixel block whose distance is calculated in step S105, thereby generating a distance image of one frame. More specifically, the signal processing unit 31 embeds the distance of the pixel block whose distance is not calculated in step S105, that is, the position of the first filter 41 corresponding to the second area 412, into the position of the pixel block whose distance is calculated in step S111, that is, the position of the second filter 42 corresponding to the first area 421, thereby generating a distance image of one frame.
[0124] In step S115, the signal processing unit 31 transmits the luminance image generated in step S121 and the distance image generated in step S122 to an external device via the communication interface 35.
[0125] According to the structure of Modification Example 1, by Fig.11 By performing the processing of the signal processing unit 31, it is possible to generate a brightness image and a distance image without interpolation. Therefore, it is possible to simplify the processing in the signal processing unit 31.
[0126] In addition, in the Fig.11 When calculating the distance for a pixel block of a part of the distance image synthesized in step S122, the interpolation process may be performed on the pixel block.
[0127] <Change Example 2>
[0128] In the above-described embodiment, pattern light of one wavelength band is projected from the projection unit 10 . However, pattern light of a plurality of wavelength bands may be projected from the projection unit 10 and irradiated toward the subject.
[0129] Fig.12 1 is a diagram showing the configuration of the projection unit 10 and the imaging unit 20 according to Modification Example 2.
[0130] The projection unit 10 includes Figure 1 In addition to the structure shown, a light source 15, a collimating lens 16 and a coupling element 17 are further provided.
[0131] The light source 15 emits light of a different wavelength band from the light source 11. The light source 15 is, for example, a semiconductor laser. The light source 15 may also be other types of light sources such as LED (Light Emitting Diode). The emission wavelength of the light source 15 is, for example, included in the infrared band. The emission wavelength of the light source 15 may also be included in the visible band. The collimating lens 16 converts the light emitted from the light source 15 into approximately parallel light.
[0132] The coupling element 17 aligns the optical axis of the light source 11 with the optical axis of the light source 15. The coupling element 17 transmits the light from the light source 11 and reflects the light from the light source 15. The coupling element 17 is, for example, a dichroic mirror. In the case where the light sources 11 and 15 are semiconductor lasers, the coupling element 17 may also be a polarization beam splitter. In this case, the light source 11 is configured so that the polarization direction becomes P polarization relative to the coupling element 17, and the light source 15 is configured so that the polarization direction becomes S polarization relative to the coupling element 17.
[0133] The pattern generator 13 generates pattern lights for both the light emitted from the light source 11 and the light emitted from the light source 15. As in the above embodiment, the pattern generator 13 can be formed by a transmissive optical diffraction element (DOE). The pattern lights of each wavelength band are projected onto the subject by the projection lens 14.
[0134] The camera unit 20 includes Figure 1 In addition to the structure shown in FIG. 1 , the third imaging element 25 and the spectroscopic element 26 are further provided. The third imaging element 25 has a third filter 43 formed on the imaging surface. In the third filter 43, a plurality of first regions 431 and a plurality of second regions 432 are alternately arranged. The arrangement pattern of the first region 431 and the second region 432 can be different from the arrangement pattern of the first region 431 and the second region 432. Fig.10 The arrangement pattern of the first region 411 and the second region 412 in the first optical filter 41 shown in (a) is the same as that of the first region 411 and the second region 412, or may be the same as that of Fig.10 The arrangement pattern of the first region 421 and the second region 422 in the second filter 42 shown in (b) is the same.
[0135] The first region 431 of the third optical filter 43 transmits light in the wavelength band emitted by the light source 15, but does not transmit light in other wavelength bands. The second region 432 of the third optical filter 43 transmits light in the wavelength band of visible light, but does not transmit light in other wavelength bands. Therefore, the second region 432 does not transmit light in the wavelength band emitted by the light sources 11 and 15.
[0136] In addition, since the first areas 411 and 421 of the first optical filter 41 and the second optical filter 42 transmit the light of the emission band of the light source 11 but do not transmit the light of other bands as described above, they do not transmit the light of the visible light band and do not transmit the light of the emission band of the light source 15. In addition, since the second areas 412 and 422 of the first optical filter 41 and the second optical filter 42 transmit the light of the visible light band but do not transmit the light of other bands as described above, they do not transmit the light of the emission band of the light source 11 and do not transmit the light of the emission band of the light source 15.
[0137] The spectroscopic element 26 splits the light incident from the imaging lens 24 side into the third imaging element 25 and the spectroscopic element 23. The spectroscopic element 26 is, for example, a half mirror. The spectroscopic element 26 may also be an optical diffraction element.
[0138] exist Fig.12 In the structure of FIG. 2 , due to the difference between the optical path length between the imaging lens 24 and the imaging plane of the third imaging element 25 and the optical path length between the imaging lens 24 and the imaging planes of the first imaging element 21 and the second imaging element 22, there is a slight difference between the imaging state of the subject in the imaging plane of the first imaging element 21 and the second imaging element 22 and the imaging state of the subject in the imaging plane of the third imaging element 25. In order to eliminate this difference, a relay lens may be arranged between the spectroscopic elements 23 and 26.
[0139] exist Fig.12 In the structure of Figure 1 In addition to the first imaging processing unit 33 and the second imaging processing unit 34 shown, a third imaging processing unit for the third imaging element 25 is provided. The third imaging processing unit controls the third imaging element 25, and performs processing such as brightness correction and camera calibration on the pixel signal of the imaging image output from the third imaging element 25. The signal processing unit 31 uses the third imaging image acquired from the third imaging element 25 to further generate a brightness image and a distance image.
[0140] That is, the signal processing unit 31 causes the third imaging element 25 to be exposed for a given time to acquire a third camera image. The third imaging element 25 may be the same as the first exposure time of the first imaging element 21 and the second exposure time of the second imaging element 22, or may be different from the first exposure time and the second exposure time.
[0141] The signal processing unit 31 performs the following steps on the acquired third camera image: Fig. 9 The signal processing unit 31 may generate a brightness image and a distance image by performing the same processing as steps S102 to S106. In this case, the signal processing unit 31 may also maintain the reference image used for searching the stereo corresponding points of the third camera image independently from the reference image used for searching the stereo corresponding points of the first camera image and the second camera image. The signal processing unit 31 performs Fig. 9 , and uses the third camera image acquired from the third camera element 25 to perform the same processing as above.
[0142] According to this structure, in addition to the first camera image and the second camera image, a brightness image and a distance image of the subject are obtained based on the third camera image. Therefore, even if a malfunction or other unfavorable condition occurs in both the first camera element 21 and the second camera element 22, the brightness image and the distance image obtained from the third camera image can be provided to an external device.
[0143] In addition, since the first area 431 of the third optical filter 43 transmits different wavelength bands from the first area 411 and the first area 421 of the second optical filter 42, when the reflectance of the subject is different in these wavelength bands, the intensity of the pattern light received by the first imaging element 21 and the second imaging element 22 is different from the intensity of the pattern light received by the third imaging element 25. Therefore, in this case, the distance image acquired for the imaging element with a higher intensity of the received pattern light can be selected and sent to the external device. As a result, a higher quality distance image can be provided to the external device.
[0144] In addition, if Fig.13 As shown, the configuration of the first imaging element 21 and the spectroscopic element 23, and the configuration of the third imaging element 25 and the spectroscopic element 26 may be exchanged. In this configuration, the intensity of the light taken in by the imaging lens 24 and guided to the second imaging element 22 by the spectroscopic element 26 is 1 / 2 times the intensity of the light taken in by the imaging lens 24 and guided to the first imaging element 21. Therefore, in this configuration, even if the first exposure time for the first imaging element 21 and the second exposure time for the second imaging element 22 are set to be the same, the range (dynamic range) of the light intensity that can be imaged and distance calculated by the imaging device 1 can be expanded due to the difference in light intensity.
[0145] <Change Example 3>
[0146] Fig.14 1 is a diagram showing the configuration of the projection unit 10 and the imaging unit 20 according to Modification Example 3.
[0147] exist Fig.14 In the structure of Fig.12 The spectroscopic element 26 of the structure is replaced by the spectroscopic element 27. The spectroscopic element 27 is a dichroic mirror. The spectroscopic element 27 transmits the light in the visible light band among the light taken in by the imaging lens 24, and reflects the light in other bands. Therefore, the light in the visible light band among the light taken in by the imaging lens 24 is guided to the third imaging element 25, and the light in other bands is further split by the spectroscopic element 23 and guided to the first imaging element 21 and the second imaging element 22 respectively.
[0148] The first filter 44 and the second filter 45 are formed on the imaging surfaces of the first imaging element 21 and the second imaging element 22 instead of the first filter 41 and the second filter 42 described in the above embodiment. The first filter 44 is provided with a plurality of first regions 441 and a plurality of second regions 442, and the second filter 45 is provided with a plurality of first regions 451 and a plurality of second regions 452.
[0149] The first regions 441 and 451 transmit light in the wavelength band emitted by the light source 11, but do not transmit light in other wavelength bands. The second regions 442 and 452 transmit light in the wavelength band emitted by the light source 15, but do not transmit light in other wavelength bands. The arrangement pattern of the plurality of first regions 441 and the plurality of second regions 442 in the first optical filter 44 can be the same as Figure 4 The arrangement pattern of the plurality of first regions 451 and the plurality of second regions 452 in the second optical filter 45 may be the same as Figure 4 (b) or Fig.10 (b) Likewise.
[0150] On the imaging surface of the third imaging element 25, instead of Fig.12 The third filter 43 is formed with a third filter 46. The third filter 46 covers the entire range, transmits the light of the wavelength band transmitted by the light splitting element 27 (dichroic mirror), and does not transmit the light of other wavelength bands. Therefore, the output from the third imaging element 25 directly generates a brightness image of one frame of visible light without capturing the pattern light.
[0151] The pattern light generated by the light from the light source 11 is incident on the area corresponding to the first area 441 of the first imaging element 21, and the pattern light generated by the light from the light source 15 is incident on the area corresponding to the second area 442 of the first imaging element 21. Therefore, the signal processing unit 31 can generate a distance image based on the two kinds of light based on the first camera image of the first imaging element 21. Similarly, the signal processing unit 31 can generate a distance image based on the two kinds of light based on the second camera image of the second imaging element 22.
[0152] Fig.15 : is a flowchart showing the range image generation process according to Modification Example 3.
[0153] Figure 1 Steps S101, S102, S107, S108, S115 and Fig. 9 The corresponding steps are the same.
[0154] The signal processing unit 31 calculates the distance of the area corresponding to the first area 441 by stereo corresponding point search for the first camera image acquired by the first camera element 21 (S131). The signal processing unit 31 interpolates the area corresponding to the second area 442 based on the distance calculated in step S131, and generates a one-frame distance image based on the light from the light source 11 (S132).
[0155] Furthermore, for the first camera image, the signal processing unit 31 calculates the distance for the area corresponding to the second area 442 by searching for stereo corresponding points (S133). The signal processing unit 31 interpolates the area corresponding to the first area 441 based on the distance calculated in step S133, and generates a 1-frame distance image based on the light from the light source 15 (S134).
[0156] In addition, the signal processing unit 31 calculates the distance of the area corresponding to the first area 451 by stereo corresponding point search for the second camera image acquired by the second camera element 22 (S135). The signal processing unit 31 interpolates the area corresponding to the second area 452 based on the distance calculated in step S135, and generates a one-frame distance image based on the light from the light source 11 (S136).
[0157] Furthermore, for the second camera image, the signal processing unit 31 calculates the distance for the area corresponding to the second area 452 by searching for stereo corresponding points (S137). The signal processing unit 31 interpolates the area corresponding to the first area 451 based on the distance calculated in step S137, and generates a 1-frame distance image based on the light from the light source 15 (S138).
[0158] Through the above processing, two types of distance images based on two types of light from the light sources 11 and 15 are obtained through the first exposure time, and two types of distance images based on two types of light from the light sources 11 and 15 are obtained through the second exposure time. Similar to the above embodiment, the signal processing unit 31 selects any one of these distance images according to whether the first imaging element 21 and the second imaging element 22 are faulty or not (S139). At this time, further, the signal processing unit 31 can also select the acquired distance image based on the light of the wavelength band with higher reflectivity of the subject.
[0159] The signal processing unit 31 transmits the distance image thus selected together with the brightness image acquired from the third image pickup image of the third image pickup element 25 to an external device (S115). Fig.15 processing.
[0160] According to this structure, as in the above-mentioned embodiment, since the exposure times of the first imaging element 21 and the second imaging element 22 differ from each other, the dynamic range of distance detection based on the light from the light source 11 can be expanded, and the dynamic range of distance detection based on the light from the light source 15 can be expanded.
[0161] In addition, in this structure, even if a fault such as a failure occurs in any one of the first imaging element 21 and the second imaging element 22, a distance image can be acquired through the image captured by the other imaging element. Furthermore, since the distance image can be acquired through two kinds of light corresponding to the emission wavelength bands of the light sources 11 and 15, the acquired distance image can be selected based on the light of the wavelength band with higher reflectivity of the subject, and a highly accurate distance image can be provided to an external device.
[0162] <Change Example 4>
[0163] In the above embodiment, the sizes of the first area 411 and the second area 412 of the first filter 41, and the sizes of the first area 421 and the second area 422 of the second filter 42 are the same as the sizes of the pixel blocks 212 and 222, but the sizes of the first areas 411 and 421 and the second areas 412 and 422 do not necessarily have to be the same as the sizes of the pixel blocks 212 and 222.
[0164] For example, Fig.16 As shown in (a), the size of the first area 411, 421 and the second area 412, 422 may also be four times the size of the pixel blocks 212, 222, or as shown in Fig.16 As shown in (b) of FIG. 8 , the sizes of the first regions 411 , 421 and the second regions 412 , 422 may be twice the sizes of the pixel blocks 212 , 222 .
[0165] In addition, if Fig.17 As shown in (a), the size of the first area 411, 421 and the second area 412, 422 may be slightly larger than the size of the pixel blocks 212, 222, or as shown in Fig.17 As shown in (b) of FIG. 8 , the sizes of the first regions 411 , 421 and the second regions 412 , 422 may be set to be the same as the sizes of the pixel regions 211 , 221 and smaller than the sizes of the pixel blocks 212 , 222 .
[0166] However, if Figure 6 As shown in (a), when the size of the first area 411, 421 and the second area 412, 422 is an integral multiple of the size of the pixel blocks 212, 222, all the patterns (points DT) of the patterned light that should have been included are included in the pixel blocks 212, 222 at the positions corresponding to the first areas 411, 421. Therefore, the stereo corresponding point search for these pixel blocks 212, 222 can be performed with high accuracy, and as a result, the distance calculation for these pixel blocks 212, 222 can be performed with high accuracy. In addition, since the distance calculation accuracy of these pixel blocks 212, 222 is high, the distance interpolation for the pixel blocks adjacent to these pixel blocks 212, 222 can also be performed with high accuracy.
[0167] On the other hand, Fig.17 As shown in (b), when the sizes of the first region 411 and the second region 412 are smaller than the size of the pixel block 212, since the interval between adjacent second regions 412 is narrow, when the area of the first region 411 is interpolated with the pixel signal of the area corresponding to the second region 412, the interpolation can be performed smoothly, and a high-quality brightness image can be generated. Therefore, in order to generate a higher-quality brightness image, it is preferred that the sizes of the first regions 411, 421 and the second regions 412, 422 are smaller than the sizes of the pixel blocks 212, 222, as shown in FIG. Fig.17 As shown in (b), it is more preferable that the sizes of the first regions 411 , 421 and the second regions 412 , 422 are the same as the sizes of the pixel regions 211 , 221 .
[0168] <Change Example 5>
[0169] In the above embodiment, if Figure 3 As shown in (a) and (b), the arrangement pattern of the pixel area 211 of the first imaging element 21 relative to the optical axis center Co0 of the imaging lens 24 is the same as the arrangement pattern of the pixel area 221 of the second imaging element 22 relative to the optical axis center Co0 of the imaging lens 24, but as shown in FIG. Fig.18 As shown in (a) and (b), their arrangement patterns relative to the optical axis center Co0 may also be different from each other. Fig.18 In the example (b), the center Co2 of the imaging surface of the second imaging element 22 is offset by half a pixel in the horizontal direction and the vertical direction relative to the optical axis center Co0 of the imaging lens 24. Therefore, the arrangement pattern of the pixel area 221 of the second imaging element 22 relative to the optical axis center Co0 of the imaging lens 24 and the arrangement pattern of the pixel area 211 of the first imaging element 21 relative to the optical axis center Co0 of the imaging lens 24 are offset by half a pixel in the horizontal direction and the vertical direction.
[0170] In this way, if the arrangement patterns of the pixels of the first imaging element 21 and the second imaging element 22 are adjusted, the brightness image obtained by the first imaging element 21 and the brightness image obtained by the second imaging element 22 are superimposed to perform interpolation processing, so that Fig.19 As shown, a brightness image with a higher resolution than the resolution of the pixel regions 211 and 221 can be obtained. Fig.19 In FIG. 1 , a pixel region 211 of the first imaging element 21 is indicated by a solid line, and a pixel region 221 of the second imaging element 22 is indicated by a dotted line. Fig.19In the example of , the unit of the resolution of the brightness image obtained by the interpolation process is the size of the area S1, which is 1 / 4 of the size of the pixel areas 211 and 221.
[0171] Similarly, by superimposing the distance image obtained by the first imaging element 21 and the distance image obtained by the second imaging element 22 and performing interpolation processing, it is possible to obtain a distance image having a higher resolution than the resolution of the pixel regions 211 and 221 .
[0172] The center Co2 of the imaging surface of the second imaging element 22 is not limited to being offset by half a pixel in the horizontal and vertical directions as described above relative to the optical axis center Co0 of the imaging lens 24. For example, the center Co2 may be offset only in the vertical direction or only in the horizontal direction.
[0173] In addition, the size of the offset is not limited to half a pixel, but can also be an integer number of pixels. Figure 5 When the filters 41 and 42 of the same structure as shown in (a) and (b) are formed on the first imaging element 21 and the second imaging element 22, if the offset is set to 1 pixel, the above-mentioned improvement in resolution cannot be achieved, but Fig.10 Similarly to (a) and (b), the arrangement pattern of the first region and the second region can be reversed between the first imaging element 21 and the second imaging element 22 .
[0174] Furthermore, the offset may be set not as a difference from the optical axis center Co0 of the imaging lens 24 , but as a difference between the center Co1 of the imaging plane of the first imaging element 21 and the center Co2 of the imaging plane of the second imaging element 22 .
[0175] <Other changes>
[0176] In the above-mentioned embodiment, the light taken in by the camera lens 24 is split by the spectrometer 23, and the two split lights are respectively guided to the first camera element 21 and the second camera element 22, but the number of lights split by the camera lens 24 and the number of camera elements receiving the split lights are not limited to this.
[0177] For example, Fig.12As shown, the light taken in by the imaging lens 24 may be split into three beams by the two beam splitters 23 and 26, and the three beams are guided to the first imaging element 21, the second imaging element 22, and the third imaging element 25, respectively. In this case, the third filter 47 formed on the imaging surface of the third imaging element 25 is provided with a first region 471 that transmits the light of the emission wavelength band of the light source 11 and does not transmit the light of other wavelength bands, and a second region 472 that does not transmit the light of the emission wavelength band of the light source 11 and transmits the light of other wavelength bands, similarly to the first filter 41 and the second filter 42. The arrangement pattern of the first region 471 and the second region 472 may be similar to that of the first filter 41 and the second filter 42.
[0178] According to this configuration, a brightness image and a distance image based on the third camera image are generated by applying the same processing as the first camera image and the second camera image captured by the first camera element 21 and the second camera element 22 to the third camera image captured by the third camera element 25. Therefore, even if a malfunction occurs in both the first camera element 21 and the second camera element 22, the brightness image and the distance image based on the third camera image can be provided to an external device.
[0179] Furthermore, by making the third exposure time for the third imaging element 25 different from the first exposure time and the second exposure time for the first captured image and the second captured image, the range (dynamic range) in which the brightness image and the distance image can be acquired can be further expanded.
[0180] In addition, Fig. 9 In the process, after executing steps S101 to S106 and steps S107 to S112, the brightness image and the distance image are selected through steps S113 and S114. However, the order of the selection steps is not limited to this, and it is also possible to first select which of the first camera element 21 and the second camera element 22 is used for acquiring the brightness image and the distance image, and only use the selected camera element to generate the brightness image and the distance image. For example, in the case where the second camera element 22 has a malfunction, steps S107 to S112 may not be executed, and only steps S101 to S106 may be executed to generate the brightness image and the distance image, and the generated brightness image and distance image may be sent.
[0181] In addition, the emission wavelength of the light source 11 is not necessarily in the infrared band, for example, it can also be in the visible band. In this case, the first area 411 transmits the light of the emission band of the light source 11 in the visible band, and does not transmit the light of other bands, and the second area 412 does not transmit the light of the emission band of the light source 11 in the visible band, and transmits the light of other bands. In addition, the transmission band of the second area 412 does not necessarily need to be the visible band, and can also be the infrared band.
[0182] In addition, the arrangement pattern of the first region 411 and the second region 412 in the first optical filter 41, and the arrangement pattern of the first region 421 and the second region 422 in the second optical filter 42 are not limited to the arrangement patterns shown in the above-mentioned embodiment and modification 1. For example, the sizes of the first region 411 and the second region 412 may be different from each other, and the interval between adjacent first regions 411 and the interval between adjacent second regions 412 may be different from each other.
[0183] In the above-mentioned Modifications 2 and 3, two types of pattern lights in different wavelength bands are projected toward the subject from one projection unit 10 . However, two types of pattern lights in different wavelength bands may be projected toward the subject from two projection units, respectively.
[0184] In addition, in the above-mentioned embodiment, the search range of the stereo corresponding point search is the row direction, but the search range may be the column direction, or the search range may be a direction obtained by combining the row and the column.
[0185] In addition, the first camera processing unit 33 and the second camera processing unit 34 can also correct the distortion caused by the deformation and distortion of the camera lens 24 for the first camera signal image and the second camera image. In addition, they can also correct the distortion caused by the deformation and distortion of the camera lens 24 for the reference image pre-stored in the signal processing unit 31.
[0186] In the above-mentioned embodiment, the correlation value is obtained for each pixel block. However, it is also possible to obtain the correlation value between pixel blocks through processing such as parabola fitting and search for corresponding points.
[0187] The configuration of the imaging device 1 is not limited to that shown in the above embodiment. For example, a photoelectric sensor array in which a plurality of photoelectric sensors are arranged in a matrix may be used as the first imaging element 21 and the second imaging element 22 .
[0188] In addition, the embodiments of the present invention can be variously modified as appropriate within the scope of the technical concept shown in the claims.
[0189] -Explanation of symbols-
[0190] 1 Camera device
[0191] 10 Projection Department
[0192] 20 Camera Department
[0193] 21 1st filter
[0194] 22 2nd filter
[0195] 23Spectral Element
[0196] 24 camera lens
[0197] 31Signal Processing Unit
[0198] 41, 44 1st filter
[0199] 42, 45 2nd filter
[0200] 411, 421, 441, 451 Area 1
[0201] 412, 422, 442, 452, area 2.
Claims
1. A camera device comprising: Camera Department; and A projection unit projects pattern light of a first wavelength band into the field of view of the camera unit, The camera unit comprises: The first imaging element; A second imaging element; Camera lens; a spectroscopic element for guiding the light from the subject, which is focused by the imaging lens, to the first imaging element and the second imaging element respectively; a first filter formed on the light receiving surface of the first imaging element, having a plurality of first regions that transmit light in the first wavelength band, and a plurality of second regions that do not transmit light in the first wavelength band but transmit light in a second wavelength band different from the first wavelength band; and The second filter is formed on the light receiving surface of the second imaging element and has a plurality of the first regions and a plurality of the second regions.
2. The imaging device according to claim 1, wherein: An arrangement pattern of the first region and the second region in the first optical filter and an arrangement pattern of the first region and the second region in the second optical filter are identical to each other.
3. The imaging device according to claim 1, wherein: An arrangement pattern of the first region and the second region in the first optical filter is different from an arrangement pattern of the first region and the second region in the second optical filter.
4. The imaging device according to any one of claims 1 to 3, wherein: In the first optical filter, the first regions and the second regions are arranged alternately. In the second optical filter, the first regions and the second regions are arranged alternately.
5. The imaging device according to any one of claims 1 to 4, wherein: The first area is set to a size including M pixels in the horizontal direction and N pixels in the vertical direction, where M is a natural number and N is a natural number.
6. The imaging device according to any one of claims 1 to 5, wherein: An arrangement pattern of the pixel group of the first imaging element with respect to the optical axis center of the imaging lens and an arrangement pattern of the pixel group of the second imaging element with respect to the optical axis center of the imaging lens are identical to each other.
7. The imaging device according to any one of claims 1 to 5, wherein: An arrangement pattern of the pixel group of the first imaging element with respect to the optical axis center of the imaging lens is different from an arrangement pattern of the pixel group of the second imaging element with respect to the optical axis center of the imaging lens.
8. The imaging device according to any one of claims 1 to 7, wherein: The first band is a band included in the non-visible frequency band, The second wavelength band is a wavelength band included in the visible band.
9. The imaging device according to any one of claims 1 to 8, wherein: The imaging device includes a signal processing unit that processes pixel signals acquired from the first imaging element and the second imaging element to calculate distances to respective positions of the subject and to generate an image of the subject.
10. The imaging device according to claim 9, wherein: The first imaging element acquires the pixel signal through a first exposure time, The second imaging element acquires the pixel signal with a second exposure time different from the first exposure time.
11. The imaging device according to claim 9 or 10, wherein: The signal processing unit selects pixel signals for calculating the distance and generating the image from the pixel signals acquired from the first imaging element and the second imaging element, respectively, based on a given selection condition.
12. The imaging device according to claim 11, wherein: The selection condition includes whether the first imaging element and the second imaging element have a malfunction, a reflectivity of the object, or a light absorption rate of the object.
13. The imaging device according to any one of claims 1 to 12, wherein: The first area is set to have a size that is an integer multiple of a pixel block, which is the minimum unit of distance detection, and the integer does not include zero.
14. The imaging device according to any one of claims 1 to 8, wherein: The projection unit projects the pattern light in the second wavelength band together with the pattern light in the first wavelength band into the field of view.
15. The imaging device according to claim 10, wherein: The imaging device includes a signal processing unit that processes pixel signals acquired from the first imaging element and the second imaging element, respectively, and calculates distances to respective positions of the subject for each of the pattern lights in the first wavelength band and the second wavelength band.
Citation Information
Patent Citations
Three-dimensional image pickup device and method, and inteference light generating device
JP2001153612A
