Imaging system and subject depth correction method
The imaging system uses a temperature sensor to correct depth estimates, addressing temperature-induced inaccuracies in DFD technology, thereby stabilizing depth estimation for improved practicality and reliability.
Patent Information
- Application Number
- JP2023067860
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2024-10-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing DFD technology is not practical due to variations in depth estimation accuracy caused by changes in environmental temperature of the imaging device, affecting the stability and reliability of depth estimation.
An imaging system that includes a temperature sensor to output a signal based on the environmental temperature, allowing for correction of depth estimates using a correction unit to stabilize depth estimation accuracy by accounting for temperature variations.
Stabilizes depth estimation accuracy regardless of environmental temperature changes, enhancing the practicality and reliability of DFD technology.
Smart Images

Figure 2024154173000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an imaging system and a subject depth correction method. [Background technology]
[0002] In the field of coded imaging, a technique called DFD (Depth From Defocus) is known. DFD is a technique that estimates the distance from the optical system of the imaging device to a subject, i.e., the depth or perspective of the subject, based on the degree of edge blurring in an image obtained by imaging.
[0003] The DFD technique is described in, for example, Non-Patent Document 1. In the DFD technique, coded imaging is performed in which a mask called a coded aperture is placed in the light entrance region of an optical system to capture an image of a subject. Next, a decoding process based on a point spread function specific to the mask is performed on the captured image obtained by the coded imaging, and the depth of the subject is estimated. The point spread function is generally called a PSF (Point Spread Function), and is also called a blur function, blur spread function, point image distribution function, etc. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] "Coded Aperture Pairs for Depth from Defocus and Defocus Deblurring" C. Zhou, S. Lin and SK Nayar, International Journal of Computer Vision, Vol. 93, No. 1, pp. 53, May. 2011. Summary of the Invention [Problem to be solved by the invention]
[0005] DFD technology is still in its infancy, and there is still much room for improvement in terms of practicality. Due to the above circumstances, there is a demand for more practical DFD technology. [Means for solving the problem]
[0006] Among the inventions disclosed in this application, representative ones will be outlined as follows.
[0007] A representative embodiment of the present invention is an imaging system including an imaging device having an optical system for encoding and imaging a subject, a depth estimation unit for decoding an image captured by the imaging device and estimating a depth from the optical system at each position of the subject, a temperature sensor for outputting a signal corresponding to an environmental temperature of the imaging device, and a correction unit for correcting the depth of the subject based on the signal from the temperature sensor.
[0008] Another representative embodiment of the present invention is a subject depth correction method, which decodes an image obtained by encoding and imaging a subject using an imaging device having an optical system, estimates a depth from the optical system at each position of the subject, and corrects the depth of the subject based on a signal output from a temperature sensor according to the environmental temperature of the imaging device. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of installation of an imaging system according to a first embodiment. [Diagram 2] FIG. 1 illustrates an example of a configuration of an imaging system. [Diagram 3] FIG. 2 is a diagram illustrating an example of the configuration of an arithmetic control processing device. [Figure 4] FIG. 2 is a diagram illustrating an example of a functional block of the arithmetic control processing device. [Diagram 5] 11 is a diagram showing an example of the relationship between the actual distance of a subject, an estimated depth value of the subject, and an environmental temperature. FIG. [Figure 6] FIG. 11 is a diagram showing an example of a table serving as depth correction information. [Figure 7] FIG. 11 is a flowchart showing an example of an operation flow in the imaging system. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Before describing each embodiment of the present invention, the basic content of DFD technology and problems discovered by the present inventors will be described.
[0011] The state of blur of a subject in a captured image generally depends on a point spread function determined by the optical system of an imaging device, the shape of a light incidence region of the optical system, etc. When a mask that partially blocks light is installed in the light incidence region of the optical system, the point spread function is determined for each mask. Imaging a subject with an imaging device equipped with a mask is called coded imaging. When coding imaging of a subject, an image that is blurred based on a point spread function specific to the mask used is acquired as a captured image.
[0012] When this blurred captured image is subjected to a decoding process that performs deconvolution based on a point spread function specific to the mask used, a decoded image with reduced blur and depth information of objects corresponding to each position of the subject contained in the decoded image are obtained.
[0013] On the other hand, the inventors have discovered that when a decoding process is applied to an image obtained by encoding and capturing an image of a subject using an imaging device as described above, and the depth at each position of the subject is estimated, the following problem occurs.
[0014] Through research and development of DFD technology, the inventors have discovered that the estimated depth of a subject changes depending on the environmental temperature of the imaging device. This phenomenon is believed to occur because the characteristics of the mask, optical system, imaging element, etc. of the imaging device change with temperature, and these changes in characteristics are reflected in the captured image.
[0015] In view of the above circumstances, there is a demand for a DFD technique that can stabilize the estimation accuracy of the subject depth with high accuracy regardless of the environmental temperature of the imaging device.
[0016] In view of the above circumstances, the present inventors have invented the present invention as a result of intensive research. Hereinafter, an embodiment of the present invention will be described. Note that the embodiment described below is an example for carrying out the present invention, and does not limit the technical scope of the present invention. In the following embodiments, components having the same functions are given the same reference numerals, and repeated description thereof will be omitted unless particularly necessary.
[0017] (Embodiment 1) An imaging system according to the first embodiment of the present application will be described. The imaging system according to the first embodiment of the present application is an imaging system including an imaging device having an optical system and encoding and imaging an object, a depth estimation unit that decodes an image captured by the imaging device and estimates a depth from the optical system at each position of the object, a temperature sensor that outputs a signal according to the environmental temperature of the imaging device, and a correction unit that corrects the depth of the object based on the signal from the temperature sensor. Details of this imaging system are as follows.
[0018] 1 is a diagram illustrating an example of installation of an imaging system 1 according to embodiment 1. The z direction in the figure is the traveling direction of an automobile 100 on the forward side.
[0019] 1, an imaging system 1 is installed in a vehicle, that is, an automobile 100. The imaging system 1 is configured to capture an image of a subject 90 in the traveling direction of the automobile 100, that is, in front of the automobile 100, in an encoded form.
[0020] 2 is a diagram showing an example of the configuration of the imaging system 1. As shown in FIG. 2, the imaging system 1 includes a temperature sensor 11, an imaging device 2, and an arithmetic control processing device 3.
[0021] The temperature sensor 11 is disposed near the imaging device 2, inside the housing of the imaging device 2, or in contact with the housing of the imaging device 2. The temperature sensor 11 is connected to the arithmetic control processing device 3 so as to be able to communicate with the arithmetic control processing device 3. The temperature sensor 11 outputs a signal K corresponding to the environmental temperature of the imaging device 2 to the arithmetic control processing device 3. The temperature sensor 11 is, for example, a resistance temperature detector, a thermocouple, a radiation thermometer, a thermistor temperature detector, or the like.
[0022] The imaging device 2 is installed in an automobile 100, which is a vehicle, as a part of the imaging system 1. The imaging device 2 includes a mask 21, an optical system 22, and an imaging element .
[0023] The mask 21 has a specific geometric aperture pattern and functions as a filter for light that enters the optical system 22 from the subject 90 and reaches the image sensor 23. The mask 21 may be placed between the optical system 22 and the image sensor 23. The mask 21 is also called a coded aperture.
[0024] The optical system 22 collects light incident from the subject 90 and forms an image on the light receiving surface 23a of the image sensor 23. The optical system 22 is, for example, a lens. The lens may be a single lens or a compound lens, and may be a fixed focal length lens or a zoom lens.
[0025] The imaging element 23 has a light receiving surface 23a, which is composed of a plurality of photoelectric conversion elements arranged two-dimensionally. The imaging element 23 converts the light L received by the light receiving surface 23a into an electrical signal according to its intensity, and outputs image data based on the electrical signal to the arithmetic control processing device 3. The imaging element 23 may output the photoelectrically converted electrical signal to the arithmetic control processing device 3, which may obtain image data based on the electrical signal. The imaging element 23 is also called an image sensor.
[0026] The imaging device 2 has a point spread function that is unique to the imaging device 2. The point spread function is a function that determines how a point image on a subject appears blurred in a captured image, and is determined by the combination of the mask 21, the optical system 22, and the imaging element 23.
[0027] The arithmetic control processing device 3 performs a decoding process on the captured image P1 obtained by the encoded imaging. By performing this decoding process, the arithmetic control processing device 3 obtains a decoded image in which the blur of the subject 90 is improved, and a depth estimate value from the optical system at each position of the subject 90. The arithmetic control processing device 3 identifies the environmental temperature of the imaging device 2 based on the signal K received from the temperature sensor 11. Then, the arithmetic control processing device 3 corrects the depth estimate value of the subject 90 based on the identified environmental temperature. The arithmetic control processing device 3 generates a depth map DM by associating the corrected depth estimate value with the decoded image, and outputs the depth map DM to an external device 4 or the like.
[0028] 3 is a diagram showing an example of the configuration of the arithmetic control processing device 3. In this embodiment, the arithmetic control processing device 3 is a computer, and has a processor 301, a memory 302, an interface 303, and a communication bus 304. The processor 301, the memory 302, and the interface 303 are communicatively connected to each other via the communication bus 304. At least a part of the arithmetic control processing device 3 may be configured by semiconductor devices such as a field programmable gate array (FPGA) or an application specific integrated circuit (ASIC).
[0029] The processor 301 is, for example, a central processing unit (CPU), a micro processing unit (MPU), a micro controller unit (MCU), a graphics processing unit (GPU), etc. The processor 301 executes various types of calculations and various types of processing.
[0030] The memory 302 is, for example, a semiconductor storage device, a hard disk drive (HDD), a solid state drive (SSD), etc. The memory 302 stores a program P. The processor 301 reads out and executes the program P stored in the memory 302, causing the computer to function as various functional blocks.
[0031] The interface 303 receives an electrical signal or image data representing a captured image from the image sensor 23, and outputs depth information of the subject 90, such as a depth map DM, to the outside.
[0032] Fig. 4 is a diagram showing an example of functional blocks included in the arithmetic control processing device 3. As described above, the functional blocks are realized by the processor 301 executing the program P. As shown in Fig. 4, the arithmetic control processing device 3 has, as functional blocks, a control unit 31, a depth estimation unit 32, a temperature identification unit 33, a correction unit 34, a depth map generation unit 35, and a correction data storage unit 36.
[0033] The control unit 31 controls each unit so that the captured image P1 is received by encoded imaging, the captured image P1 is decoded to obtain a decoded image M1 and a depth estimate dj of the subject by decoding the captured image P1, the environmental temperature T is determined, the depth estimate dj is corrected, and a depth map DM is generated.
[0034] The depth estimation unit 32 receives the captured image P1 obtained by encoding imaging from the imaging element 23 under the control of the control unit 31. The depth estimation unit 32 also performs a decoding process on the received captured image P1. The decoding process of the captured image P1 is a process using deconvolution based on a point spread function determined by the aperture pattern of the mask 21, the optical system 22, the imaging element 23, etc. When the decoding process of the captured image P1 is performed, a decoded image M1, which is an image of the subject 90 with reduced blur, and a depth estimation value dj of the subject 90 from the optical system 22 are obtained. Note that in this specification, the depth estimation value dj represents a set of depth estimation values at each position of the subject 90.
[0035] The temperature specifying unit 33 specifies the environmental temperature T of the imaging device 2 based on the signal K from the temperature sensor 11 in response to control from the control unit 31. In this embodiment, the temperature specifying unit 33 specifies the environmental temperature T based on the signal K from the temperature sensor 11, but the value represented by the signal K may be directly treated as a value corresponding to the environmental temperature. In this case, the temperature specifying unit 33 is not necessary. In this embodiment, the temperature specifying unit 33 is included in the arithmetic control processing device 3, but may be communicatively connected between the temperature sensor 11 and the arithmetic control processing device 3. The timing at which the temperature specifying unit 33 specifies the environmental temperature T may be before, during, or after the encoding imaging. If it is after the encoding imaging, it may be before, during, or after the decoding of the captured image P1.
[0036] The correction unit 34, under the control of the control unit 31, corrects the depth estimate dj for each position of the subject 90 based on the identified environmental temperature T and the depth estimate dj, to obtain a corrected depth estimate dr.
[0037] Here, a method for correcting the depth estimate will be described. FIG. 5 is a diagram showing an example of the relationship between the actual distance Dr of the subject, the estimated depth value dj of the subject, and the environmental temperature T. In FIG.
[0038] As shown in FIG. 5, the estimated depth dj of the subject 90 can be expressed by a function g having parameters of the actual distance Dr of the subject 90 and the environmental temperature T, and can be defined by the following equation (1). dj = g(Dr,T) (1)
[0039] Furthermore, based on equation (1), the actual distance Dr of the subject 90 can be expressed by a function f having the depth estimate dj and the environmental temperature T as parameters, and the following equation (2) can be derived. Dr = f(dj,T) (2)
[0040] That is, if the depth estimate dj of the subject 90 and the environmental temperature T are known, the actual distance Dr can be obtained from the relationship between the actual distance Dr, the depth estimate dj, and the environmental temperature T as shown in Fig. 5. In the example of Fig. 5, for example, when the depth estimate dj is dj1 and the environmental temperature T is T1, Dr1 can be obtained as the actual distance Dr. Also, for example, when the depth estimate dj is dj1 and the environmental temperature T is T2, Dr0 can be obtained as the actual distance Dr.
[0041] 5, the relationship between the actual distance Dr, the estimated depth value dj, and the environmental temperature T can be experimentally obtained in advance. The correction data storage unit 36 stores depth correction information B, which is information representing the relationship, as a table or a function.
[0042] The correction unit 34 specifies the actual distance Dr of the subject 90 for each position of the subject 90 based on the environmental temperature T and the depth estimate dj of the subject 90, with reference to the depth correction information B stored in the correction data storage unit 36. Then, the correction unit 34 sets the specified actual distance Dr as the corrected depth estimate dr.
[0043] FIG. 6 is a diagram showing an example of a table TB as the depth correction information B. As shown in FIG. 6, in the table TB, for example, possible values of the depth estimation value dj of the subject 90, dj0, dj1, . . . , djn, . . . djM, and possible values of the environmental temperature T, T0, T1, T2, . . . , Tn, . . . TM, are prepared. Then, an actual distance Dr(djn, Tn) is associated with each of the prepared combinations of the depth estimation value djn of the subject 90 and the environmental temperature Tn. The table TB is information that indicates the relationship between the pre-correction depth estimation value djn and the actual distance Drn that becomes the corrected depth estimation value drn for a plurality of environmental temperatures Tn. Such a table TB may be stored in the correction data storage unit 36 as the depth correction information B.
[0044] When the value represented by the signal K from the temperature sensor 11 is used instead of the environmental temperature T, the value Kn of the signal K is entered in the table TB instead of the environmental temperature Tn.
[0045] The depth map generating unit 35 generates a depth map DM by mapping each position of the subject 90 included in the decoded image M1 in association with the corrected depth estimate value dr in accordance with control from the control unit 31. The depth map generating unit 35 also outputs the generated depth map DM to the external device 4 or the like.
[0046] The correction data storage unit 36 stores the depth correction information B. The depth correction information B is information that represents the relationship between the actual distance Dr, the estimated depth value dj, and the environmental temperature T, as described above.
[0047] The relationship between the actual distance Dr, the estimated depth value dj, and the environmental temperature T may be stored in the correction data storage unit 36 for almost all possible combinations of the estimated depth value dj and the environmental temperature T. However, in this case, the amount of information to be stored becomes huge, and a large-capacity memory is required, which increases costs. Therefore, the correction data storage unit 36 may partially store information corresponding to combinations of the estimated depth value dj and the environmental temperature T, and may interpolate the stored information to compensate for combinations that are not stored.
[0048] The flow of operations in the imaging system 1 will be described below. FIG. 7 is a flow diagram showing an example of the flow of operations in the imaging system 1.
[0049] 7, in step S1, a process of encoding and capturing images is performed. Specifically, the depth estimation unit 32 performs encoded imaging of the subject 90 by reading image data from the image sensor 23 in response to control from the control unit 31, and obtains a captured image.
[0050] In step S2, the captured image is decoded. Specifically, the depth estimation unit 32 performs a decoding process on the captured image P1 under the control of the control unit 31 to obtain a decoded image M1 of the object 90 and a depth estimation value dj of the object 90. The depth estimation value dj is obtained for each position of the object 90.
[0051] In step S3, a process of identifying the environmental temperature is performed. Specifically, the temperature identification unit 33 identifies the environmental temperature T of the imaging device 2 based on the signal K from the temperature sensor 11. Note that the process of identifying the environmental temperature T is not limited to being performed in the order of this embodiment, and may be performed at any timing before the process of correcting the depth estimation value is performed.
[0052] In step S4, a process of correcting the depth estimate of the subject is performed. Specifically, the correction unit 34, under the control of the control unit 31, obtains the actual distance Dr of the subject 90 from the optical system 22 by referring to the relationship between the actual distance Dr, the depth estimate dj, and the environmental temperature T, i.e., the depth correction information B, and sets the actual distance Dr as the corrected depth estimate dr. This correction is performed on the depth estimate at each position of the subject 90.
[0053] In step S5, a process of generating a depth map using the corrected depth estimate is performed. Specifically, the depth map generating unit 35, under the control of the control unit 31, generates a depth map DM by associating the corrected depth estimate dr at each position of the subject 90 with each position of the decoded image M1 obtained by decoding.
[0054] In step S6, a process of outputting the depth map is performed. Specifically, the depth map generating unit 35 outputs the generated depth map DM to the external device 4 or the like in response to control from the control unit 31. The external device 4 is, for example, a driving support device for the automobile 100. When the external device 4 is a driving support device, it can detect an obstacle ahead of the automobile 100, the distance to the preceding vehicle, and the like, and use the detection information for automatic braking, cruise control, and the like of the automobile 100.
[0055] In step S7, a process is performed to determine whether or not there is a reason to stop the process. Specifically, the control unit 31 determines whether or not there is a reason to stop the process (hereinafter also referred to as a reason to stop the process). For example, if a command to stop the process is input from the user or the external device 4, or if some error occurs, it is determined that there is a reason to stop the process. If there is no command or error, it is determined that there is no reason to stop the process. If it is determined that there is a reason to stop the process (S7: Yes), the control unit 31 ends the process, and if it is determined that there is no reason to stop the process (S7: No), the control unit 31 returns the process step to S1 to continue the process.
[0056] According to this embodiment, the imaging system 1 first uses the imaging device 2 to encode and capture the subject 90, and then decodes the captured image P1 to obtain a depth estimate dj of the subject 90. The imaging system 1 identifies an environmental temperature T of the imaging device 2 based on a signal K from a temperature sensor 11 disposed near the imaging device 2, and corrects the depth estimate dj of the subject 90 based on the identified environmental temperature T.
[0057] By performing such processing in the imaging system 1, even if the environmental temperature T of the imaging device 2 changes, the corrected and appropriate depth estimate dr of the subject 90 can be stably obtained with high accuracy, thereby realizing a more practical DFD technology.
[0058] Note that a subject depth estimation value correction method according to the processing flow in the imaging system 1 is also one embodiment of the present invention. That is, a subject depth correction method is one embodiment of the present invention, in which a captured image obtained by encoding and capturing an image of a subject using an imaging device having an optical system is decoded, the depth from the optical system at each position of the subject is estimated, and the depth of the subject is corrected based on a signal corresponding to the environmental temperature of the imaging device output from a temperature sensor.
[0059] In addition, a program for causing a computer to function as the depth estimation unit 32, the temperature identification unit 33, and the correction unit 34, and a tangible computer-readable storage medium that non-temporarily stores the program are also one embodiment of the present invention.
[0060] Although various embodiments of the present invention have been described above, the present invention is not limited to the above-mentioned embodiments, and various modified examples are included. Furthermore, the above-mentioned embodiments have been described in detail to clearly explain the present invention, and are not necessarily limited to those having all of the configurations described. Furthermore, it is possible to replace a part of the configuration of one embodiment with the configuration of another embodiment, and it is also possible to add the configuration of another embodiment to the configuration of one embodiment. All of these belong to the scope of the present invention. Furthermore, the numerical values and the like included in the text and figures are merely examples, and the effect of the present invention is not impaired even if different ones are used.
[0061] For example, in the above embodiment, the imaging system 1 is installed in an automobile, but the imaging system 1 may be installed in vehicles other than automobiles, such as railway or monorail trains, motorcycles, bicycles, etc. Even in such an installation example, the imaging system 1 can achieve the same effects as in the above embodiment, and can be used, for example, in driving assistance technology. [Explanation of symbols]
[0062] 1...imaging system, 2...imaging device, 3...arithmetic control processing device, 4...external device, 11...temperature sensor, 21...mask, 22...optical system, 23...imaging element, 23a...light receiving surface, 31...control unit, 32...depth estimation unit, 33...temperature identification unit, 34...correction unit, 35...depth map generation unit, 36...correction data storage unit, 90...subject, 100...automobile, 301...processor, 302...memory, 303...interface, 304...communication bus, P...program
Claims
1. an imaging device having an optical system for capturing encoded images of a subject; a depth estimation unit that decodes an image captured by the imaging device and estimates a depth from the optical system at each position of the subject; a temperature sensor that outputs a signal corresponding to an environmental temperature of the imaging device; a correction unit that corrects the depth of the subject based on a signal from the temperature sensor; An imaging system comprising:
2. 2. The imaging system according to claim 1, a storage unit that stores information indicating a relationship between a depth before correction and a depth after correction for a plurality of environmental temperatures; The correction unit corrects the depth of the subject based on the information. Imaging system.
3. 2. The imaging system according to claim 1, The imaging device is installed in a vehicle. Imaging system.
4. 4. The imaging system according to claim 3, The vehicle is an automobile. Imaging system.
5. a captured image obtained by encoding and capturing an image of a subject using an imaging device having an optical system, and estimating a depth from the optical system at each position of the subject; correcting the depth of the subject based on a signal corresponding to an environmental temperature of the imaging device output from a temperature sensor; Subject depth correction method.
6. 6. The subject depth correction method according to claim 5, correcting the depth of the subject based on information indicating a relationship between the depth before correction and the depth after correction for a plurality of environmental temperatures; Subject depth correction method.
7. 6. The subject depth correction method according to claim 5, The imaging device is installed in a vehicle. Subject depth correction method.
8. The subject depth correction method according to claim 7, The vehicle is an automobile. Subject depth correction method.
