Information processing device, information processing method, imaging device, mobile device, and program
By combining and aligning distance and depth maps from the same captured image, the method addresses parallax issues in existing technologies, achieving dense and accurate distance maps for improved vehicle control and obstacle detection.
Patent Information
- Application Number
- JP2025082122
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2026-11-27
Smart Images

Figure 2026185177000001_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a technology for generating distance information of a subject from an image.
Background Art
[0002] A process is known in which distance information of a subject is acquired from an image captured by an imaging device, and a distance map representing distance information corresponding to a position in the captured image is used to detect an object in front of a vehicle or to blur the background area of a main subject. There are various methods for acquiring distance information, such as a stereo ranging method using a plurality of imaging devices and a ToF (Time of Flight) method. However, it is difficult to acquire dense and highly accurate distance information corresponding to a captured image with a single method. On the other hand, Non-Patent Document 1 proposes a method for obtaining a dense and highly accurate distance map by combining depth information estimated from a captured image by machine learning such as deep learning using a trained AI (artificial intelligence) model and distance information obtained from LiDAR.
Prior Art Documents
Non-Patent Documents
[0003]
Non-Patent Document 1
Summary of the Invention
Problem to be Solved by the Invention
[0004] As described in Non-Patent Document 1, if the imaging device and LiDAR are located in different positions and there is parallax between the imaging device and LiDAR, it may not be possible to generate a dense and high-precision distance map that corresponds to the captured image. [Means for solving the problem]
[0005] This invention has been made in view of the above problems, and its objective is to realize a technology capable of generating dense and high-precision distance maps.
[0006] To solve the above problems and achieve the objective, the information processing device of the present invention includes an acquisition means for acquiring a first distance map representing first distance information corresponding to a position in a captured image and a second distance map representing second distance information corresponding to a position in the captured image, and a generation means for generating a third distance map based on the first distance information of the first distance map and the second distance information of the second distance map. [Effects of the Invention]
[0007] According to the present invention, a dense and highly accurate distance map can be generated. [Brief explanation of the drawing]
[0008] [Figure 1] System configuration diagram of Embodiment 1. [Figure 2] A block diagram illustrating the configuration of the imaging device according to Embodiment 1. [Figure 3] A block diagram illustrating the configuration of the information processing device of Embodiment 1. [Figure 4] A flowchart illustrating the processes of the extraction unit, calculation unit, and generation unit of the information processing device of Embodiment 1. [Figure 5] A flowchart illustrating the detailed processing of the extraction unit and calculation unit of the information processing device of Embodiment 1. [Figure 6] This diagram illustrates the process of setting the effective area in Figure 5(a). [Figure 7] Figure 5(b) illustrates the local variability calculation process. [Figure 8] Figure 5(c) illustrates the background value region search process and the data extraction process for background value region exclusion. [Figure 9] A block diagram illustrating the configuration of the imaging device according to Embodiment 2. [Figure 10] A diagram illustrating the configuration of the imaging unit in Embodiment 2. [Figure 11] A cross-sectional view illustrating the pixel configuration of the imaging unit in Embodiment 2. [Figure 12] A diagram illustrating the imaging plane phase difference detection method of Embodiment 2. [Figure 13] A flowchart illustrating the data extraction process for the depth map in Embodiment 2. [Figure 14] A diagram illustrating the main subject area search process of Embodiment 2. [Modes for carrying out the invention]
[0009] The embodiments will be described in detail below with reference to the attached drawings. Note that the following embodiments do not limit the scope of the claims. While the embodiments describe multiple features, not all of these features are necessary, and the features may be combined in any way. Furthermore, in the attached drawings, identical or similar configurations are given the same reference numerals, and redundant descriptions are omitted.
[0010] [Embodiment 1] Embodiment 1 describes a system in which an imaging device and an information processing device are mounted on a vehicle, the imaging device captures images of the area in front of the vehicle, and the information processing device generates distance information to the subject from the captured images.
[0011] <System Configuration> Figure 1 is a system configuration diagram of Embodiment 1.
[0012] Vehicle 100 is a mobile device such as an automobile, but is not limited to automobiles; it may also be various public transportation such as trains and airplanes, or various robots such as small mobility devices and AGVs (Automatic Guided Vehicles).
[0013] The imaging device 102 is an in-vehicle camera that is disposed near the center of the upper end of the front windshield of the vehicle 100, and captures a predetermined range (hereinafter referred to as a "capturable range") in front of the vehicle 100. The imaging device 102 generates a distance map and a depth map, which represent the distance from the imaging device 102 to an object, from captured images of the surrounding environment including the road on which the vehicle 100 is traveling, the captured images being captured from the same viewpoint and at the same time, and outputs the generated distance map and depth map to the information processing device 103.
[0014] The information processing device 103 extracts and synthesizes highly reliable data from a distance map (first distance map) and a depth map (second distance map) obtained from the captured images acquired from the imaging device 102, the captured images being captured from the same viewpoint and at the same time, to generate and output a dense and highly accurate synthesized distance map (third distance map).
[0015] The vehicle control device 104 uses the synthesized distance map generated by the information processing device 103 to perform driving control of the vehicle 100, object detection notification to the driver 101, and the like.
[0016] The imaging device 102 is a digital camera, a digital video camera, or the like. The information processing device 103 is an in-vehicle sensor device, a robot vision sensor device, or the like.
[0017] <Configuration of Imaging Device 102> Next, the configuration of the imaging device 102 will be described with reference to FIG. 2.
[0018] An imaging optical system 10 forms an optical image of an object on the imaging surface of an imaging unit 11. The imaging optical system 10 has a plurality of lenses arranged along an optical axis 12. The plurality of lenses includes a focus lens 15 for adjusting the focusing distance of the imaging optical system 10. The focus lens 15 is movable along the optical axis. The focus lens 15 is driven by a control unit 200 in accordance with a defocus amount generated by a processing unit 201.
[0019] The imaging optical system 10 has an aperture 14 whose aperture value (aperture) can be adjusted. The aperture value of the aperture 14 is controlled by the control unit 200, for example, based on shooting conditions determined by automatic exposure control (AE). The exit pupil 13 is the image of the imaging optical system 10 at its widest aperture as seen from the imaging unit 11, and Figure 2 illustrates the position of the exit pupil 13.
[0020] The imaging unit 11 includes, for example, an image sensor such as a CCD or CMOS having a primary color Bayer array color filter. The imaging unit 11 has a pixel array in which multiple pixels are arranged in two dimensions, and peripheral circuits for reading signals from each pixel. Each pixel accumulates charge according to the amount of incident light by photoelectric conversion. By reading signals from each pixel that have a voltage corresponding to the amount of charge accumulated during the exposure period, a group of pixel signals (analog image signals) representing the subject image formed on the imaging surface by the imaging optical system 10 is obtained.
[0021] The pixels of the imaging unit 11 have multiple photoelectric conversion regions or photoelectric conversion elements, and can generate a pair of disparity images in a single shot. Based on the pair of disparity images, autofocus control (phase-difference AF) using phase-difference autofocus detection can be performed, and distance information can be generated. Further details will be described in Embodiment 2.
[0022] The control unit 200 has one or more processors, such as a CPU, capable of executing programs. The processor of the control unit 200 loads a program stored in the ROM 203 into the RAM 202 and executes it, thereby controlling each component of the imaging device 102 and realizing each function of the imaging device 102.
[0023] The processing unit 201 applies predetermined image processing to the analog image signal read from the imaging unit 11 to generate signals and image data according to the application, and acquire and / or generate various types of information. The processing unit 201 is, for example, a dedicated hardware circuit such as an ASIC (Application Specific Integrated Circuit) designed to realize a specific function. Alternatively, the processing unit 201 may realize a specific function by having a processor such as a DSP (Digital Signal Processor) or GPU (Graphics Processing Unit) execute software. The processing unit 201 outputs the acquired or generated information to the control unit 200 or stores it in the RAM 202, depending on the application.
[0024] The processing unit 201 can also read data stored in the storage unit 204 and process it.
[0025] Processing that can be applied to the processing unit 201 includes, for example, preprocessing, color interpolation, correction, data processing, special effects processing, distance map generation, and depth map generation.
[0026] Preprocessing includes, for example, A / D conversion, signal amplification, reference level adjustment, and defective pixel correction.
[0027] Color interpolation is performed when an image sensor is equipped with a color filter, and it is a process that interpolates the values of color components that are not included in the individual pixel data that makes up the image data. Color interpolation is also called demosaicing.
[0028] The correction process includes, for example, white balance adjustment, gradation correction, correction of image degradation caused by optical aberrations of the imaging optical system 10 (image recovery), correction of the effect of vignetting of the imaging optical system 10, and color correction.
[0029] Data processing includes, for example, region extraction (trimming), merging, scaling, encoding and decoding, header information generation (data file generation), and generation of image data for display and image data for recording.
[0030] Special effects processing includes, for example, adding a bokeh effect, changing the color tone, and relighting.
[0031] The distance map generation process generates a distance map from a pair of images with parallax obtained by the imaging unit 11.
[0032] The depth map generation process performs inference to estimate a depth map from captured images using machine learning, such as deep learning, with a pre-trained AI (artificial intelligence) model. The AI model is, for example, composed of a Convolutional Neural Network (CNN), but is not limited to CNNs and may be composed of neural networks such as Transformers.
[0033] For inference processing, a GPU is used, for example, but an FPGA (Field Programmable Gate Array) or the like may be used instead of a GPU. Furthermore, inference processing may be performed collaboratively by the CPU and GPU or DSP, or by the CPU and either the GPU or DSP.
[0034] The above-described process is merely an example of the processes to which the processing unit 201 can apply, and does not limit the processes to which the processing unit 201 can apply.
[0035] RAM202 is used as working memory to hold programs executed by the CPU of the control unit 200 and the processor of the processing unit 201, as well as data necessary during program execution, and as a buffer memory for temporarily storing image data obtained by the imaging unit 11 and image data processed by the processing unit 201.
[0036] ROM203 is, for example, a rewritable non-volatile memory that stores programs, settings, GUIs (Graphical User Interfaces), etc., that can be executed by the CPU of the control unit 200.
[0037] The storage unit 204 is a recording medium for recording data files containing image data obtained by the imaging unit 11. The storage unit 204 may be, for example, a combination of a memory card and its reader / writer. The storage unit 204 may be capable of handling multiple recording media.
[0038] The communication unit 205 is an interface for communicating with external devices. The control unit 200 can communicate with external devices through the communication unit 205 in accordance with one or more wired standards.
[0039] <Configuration of Information Processing Device 103> Next, with reference to Figure 3, the configuration of the information processing device 103 of this embodiment will be described.
[0040] The extraction unit 300 extracts highly reliable distance measurement data from the distance map obtained by the imaging device 102. The extraction unit 300 also extracts highly reliable depth value data from the depth map obtained by the imaging device 102. Here, "high reliability" means that the reliability of the object of the reliability assessment is above a predetermined threshold. The same applies to the following explanations.
[0041] The coefficient calculation unit 301 calculates a coefficient to match the scale of the highly reliable distance measurement values and depth values extracted by the extraction unit 300.
[0042] The generation unit 302 uses the coefficients obtained by the coefficient calculation unit 301 to convert the scale of the depth values in the depth map to match the scale of the distance values in the distance map, and then combines the scaled depth map (data at dense locations) with the distance map (data at coarse locations) to generate a composite distance map.
[0043] The extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 may be dedicated hardware circuits, such as an ASIC (Application Specific Integrated Circuit) designed to implement a specific function. Alternatively, the extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 may be configured such that a processor, such as a DSP (Digital Signal Processor) or a GPU (Graphics Processing Unit), executes software to implement a specific function.
[0044] The extraction unit 300, coefficient calculation unit 301, and generation unit 302 store the acquired or generated information and data in RAM 303 or the like, depending on the application.
[0045] ROM304 is a memory similar to the ROM304 built into the imaging device 102. RAM303 is used as working memory for the extraction unit 300, coefficient calculation unit 301, and generation unit 302, etc.
[0046] The storage unit 305 is a recording medium for recording data files containing image data obtained by the imaging unit 11. The storage unit 305 may be, for example, a combination of a memory card and its reader / writer. The storage unit 305 may be capable of handling multiple recording media.
[0047] <Distance map and depth map> The distance map and depth map of this embodiment will be described below.
[0048] The distance map is generated using the captured image and contains distance measurement data representing the distance information of subjects at coarse locations within the image. This distance information represents the actual distance to the subject, or equivalent parallax or defocus information. The depth map is generated using the same captured image as the distance map and contains depth value data representing the distance information of subjects at dense locations within the image. Note that the distance information is information that shows the relationship between the distances of subjects within the image; it does not have to be the actual distance, but rather information that shows the relative distance.
[0049] As mentioned above, the resolution of depth maps is higher than that of distance maps. Also, distance maps and depth maps have different scales. For example, distance maps use [m] as the unit of distance, while depth maps use [au (astronomical units)] as the unit of distance. Note that distance maps and depth maps do not necessarily have different scales; they can have the same dimensions if they are obtained from the same image using different methods.
[0050] <Processing by information processing device 103> Next, referring to Figures 4 and 5, the processes performed by the information processing device 103 of this embodiment will be described.
[0051] Figure 4 is a flowchart illustrating the extraction, calculation, and generation processes of the information processing device 103 of Embodiment 1. Figure 5 is a flowchart illustrating the detailed processes of the extraction and calculation processes of the information processing device 103 of Embodiment 1.
[0052] The process shown in Figure 4 is executed each time an image and distance information are acquired by the imaging device 102.
[0053] First, the processing of the information processing device 103 will be explained with reference to Figure 4(a).
[0054] (Processing of extraction unit 300) In step S300, the extraction unit 300 extracts highly reliable distance measurement data from the distance map and depth map obtained by the imaging device 102, and stores the extracted data in the RAM 303.
[0055] Figure 4(b) is a flowchart illustrating the detailed processing of step S300 in Figure 4(a).
[0056] In step S400, the extraction unit 300 extracts from the distance map obtained by the imaging device 102 regions that have highly reliable distance measurement values to be used in the subsequent step S301.
[0057] Figure 5(a) is a flowchart illustrating the detailed process of step S400 in Figure 4(b).
[0058] In step S500, the extraction unit 300 sets a reliable region of the distance map by considering a region that includes effective distance measurement values corresponding to the position of the imaging device 102 and a region that has reliable distance measurement values based on the imaging optical system 10, and extracts the distance measurement values of the set region.
[0059] Now, referring to Figure 6, the process of setting the effective area in step S500 of Figure 5(a) will be explained.
[0060] The captured image 600 in Figure 6(a) is an image obtained by the imaging device 102, capturing an empty area 601, a vehicle hood area 602, and a road area 603. In this case, distance measurement cannot be performed correctly in the empty area 601 and the vehicle hood area 602, so these areas are considered invalid, and the remaining area 603, which includes the road, is set as the effective area 604(X-1). Figure 6(b) illustrates the state in which the effective area has been set in the captured image 600 of Figure 6(a).
[0061] Next, a reliable region is set due to the imaging optical system 10 of the imaging device 102. Specifically, if there is peripheral light falloff in the imaging optical system 10, or if the optical system is wide-angle, the distance measurement accuracy will decrease at the edges of the image. Therefore, using the image height of the captured image as a parameter, the center of the image is set as the effective region (X-2) from which a reliable distance measurement value can be obtained.
[0062] There are no restrictions on how the effective area is set; it can be set to exclude subjects that are too close, subjects running alongside vehicle 100, or subjects floating in the air, etc.
[0063] In step S501 of Figure 5(a), the extraction unit 300 extracts the distance values within the effective area (X-1, X-2) set in step S500 from the distance map of the imaging device 102, and outputs the extracted effective area extraction distance map. Then, the process proceeds to step S401 of Figure 4(b).
[0064] In step S401, the extraction unit 300 extracts distance values within the effective distance range from the effective area extraction distance map extracted in step S400.
[0065] Figure 5(b) is a flowchart illustrating the detailed process of step S401 in Figure 4(b).
[0066] In step S502, the extraction unit 300 evaluates whether the distance values in the effective range extraction distance map extracted in step S400 fall within the effective distance range, extracts more reliable distance value data, and outputs the extracted effective distance extraction distance map. The effective distance range is set by the imaging device 102 and the distance measurement accuracy. The effective distance range may also be adjusted according to the surrounding environment at the time of shooting, such as the brightness outside the vehicle and the temperature inside the vehicle, which change while the vehicle is in motion.
[0067] In step S503, the extraction unit 300 calculates the local variation of the distance values in the effective distance measurement extraction distance map extracted in step S502. For areas where the variation in distance values is smaller than a predetermined range, the distance measurement error is small and the local variation of the distance values is considered reliable (excluding areas where near and far subjects are mixed). The local variation of the distance values is calculated using the standard deviation by setting a pixel of interest in the distance map and the surrounding area including it. For example, as shown in Figure 7, the area of interest 700 in the distance map and the area surrounding the pixel of interest 700 (hereinafter referred to as the standard deviation calculation area 701) are set, the standard deviation of the distance values in that pixel area is calculated, and the obtained value is set as the local variation. There are no restrictions on the standard deviation calculation area 701 used when calculating the local variation; it can be any area that includes the pixel of interest 700. Also, there are no restrictions on the method of calculating the local variation; it is sufficient if the variation can be calculated using standard deviation or variance.
[0068] In step S504, the extraction unit 300 performs an evaluation process on the local variation data calculated in step S503, extracts highly reliable distance measurement data whose reliability is above a predetermined threshold from the effective distance measurement extraction distance map obtained in step S502, and outputs the extracted distance map (hereinafter referred to as the extracted distance map). This threshold is set by the distance measurement characteristics of the imaging device 102.
[0069] The process in step S402 is executed in parallel with the processes in steps S400 and S401 in Figure 4(b).
[0070] In step S402, the extraction unit 300 extracts regions from the depth map obtained by the imaging device 102 that have reliable distance measurement values to be used in the subsequent step S301.
[0071] Figure 5(c) is a flowchart illustrating the detailed processing in step S402 of Figure 4(b).
[0072] In step S505, the extraction unit 300 searches for areas with depth values that can be considered the background of the shooting scene from the depth value data of the depth map, and sets the background value area. The background value area corresponds to the area of values recognized as background values by the inference process.
[0073] Here, we will explain the method for searching the background value region with reference to Figures 8(a) to 8(c).
[0074] The estimated depth values of the depth map obtained through inference processing have the characteristic that the area that can be considered the background (the shaded background area 800 in Figure 8(a)) shows a constant value. Figure 8(b) is an example of a histogram showing the estimated depth values of the depth map for the captured image 600 in Figure 8(a). From Figure 8(b), it can be seen that the estimated depth value of the area that can be considered the background is output as a constant value 801. Such estimated depth values for the area that can be considered the background are considered to have low reliability and are unnecessary in subsequent processing. Therefore, the area enclosed by the dotted line in Figure 8(c) is set as the background value area 802.
[0075] In step S506, the extraction unit 300 extracts depth map data using the background value region 802 set in step S505, and outputs the extracted depth map (hereinafter referred to as the extracted depth map).
[0076] In the background value region exclusion data extraction process, the background value region 802 set in step S505 is excluded, and data in regions with values greater than the background value region 802 (hereinafter referred to as the excluded region 803) is excluded (see Figure 8(d)). Depth values in regions with values greater than the background value region are greater than the background value and are considered to be outliers in the depth map. Therefore, in the background value region exclusion data extraction process in step S506, data is extracted by excluding the excluded region 803.
[0077] Furthermore, there are no restrictions on the data extracted in step S300 in Figure 4(a), and data with higher reliability may be used for extraction in at least one of the distance map and depth map. Also, there are no restrictions on the timing of executing the extraction process in step S300, and data with higher reliability may be extracted in at least one of steps S400, S401, or S402 in Figure 4(b).
[0078] After the processing in steps S400, S401, and S402 in Figure 4(b), the process proceeds to step S403.
[0079] In step S403, the extraction unit 300 extracts data from the common region between the extraction distance map obtained in step S401 and the extraction depth map obtained in step S402 (hereinafter referred to as co-extracted data).
[0080] The co-extracted data is obtained through logical operations such as the logical AND operation of the extracted distance map and the extracted depth map. There are no restrictions on the method of extracting the co-extracted data; it may also be extracted based on the logical OR operation of either the extracted distance map or the extracted depth map, or based on the distance measurement confidence of the extracted distance map and the extracted depth map.
[0081] Distance measurement reliability is a numerical value that quantifies the reliability of the distance measurement value within the distance map. Distance measurement reliability is set for each pixel position on the distance map and is calculated and set using data such as contrast, brightness, illuminance, exposure, brightness, temperature, and humidity of the captured image. Distance measurement reliability is stored in RAM202 and read out when necessary for processing.
[0082] After the processing in step S403 in Figure 4(b), the coefficient calculation unit 301 processes in step S301 in Figure 4(a).
[0083] (Processing by the coefficient calculation unit 301) In step S301, the coefficient calculation unit 301 calculates a coefficient to match the scale of the highly reliable distance map and depth map data obtained in step S300.
[0084] Figure 4(c) is a flowchart illustrating the detailed processing of step S301 in Figure 4(a).
[0085] In step S404, the coefficient calculation unit 301 performs fitting using the co-extracted data obtained in step S300 and outputs the obtained coefficients.
[0086] Figure 5(d) is a flowchart illustrating the detailed processing of step S404 in Figure 4(c).
[0087] In step S507, the coefficient calculation unit 301 determines the validity of the co-extracted data obtained in step S300 and removes any data deemed invalid. The coefficient calculation unit 301 then processes the co-extracted data obtained in step S300 to remove outliers and outputs the co-extracted data from which outliers have been removed (hereinafter referred to as outlier-removed co-extracted data). Random Sample Consensus (RANSAC) processing is used for removing outliers from the co-extracted data. There are no restrictions on the outlier removal method; random sampling, systematic sampling, stratified sampling, cluster sampling, etc., may be used.
[0088] In step S507, the coefficient calculation unit 301 removes outliers from the distance map and depth map that could not be removed in the extraction process of step S300. If coefficient calculation is performed in a step prior to or intermediate to step S300, outliers will be removed when the data extraction is insufficient. Since the distance map and depth map obtained by the imaging device 102 have errors, it is difficult to complete outlier removal in step S507 alone for outliers that are output over a wide area. Therefore, the effect of step S507 before and after processing in step S300 cannot be expected to be the same. Thus, it is effective to perform outlier removal on the co-extracted data after processing in step S300.
[0089] In step S508, the coefficient calculation unit 301 calculates the fitting coefficients for the approximation formula from the co-extracted data after outlier removal.
[0090] The fitting can be performed using an appropriate function depending on the depth value of the depth map obtained by the imaging device 102. For example, if the depth value of the depth map is a relative value proportional to the reciprocal of the distance, fitting can be performed using the linear function Y = AX + B, and coefficients A and B can be obtained as fitting coefficients. There are no restrictions on the function formula used for fitting; any function formula corresponding to the depth value of the depth map obtained by the imaging device 102 should be used.
[0091] After the processing in step S404 in Figure 4(c), the process proceeds to step S405.
[0092] In step S405, the coefficient calculation unit 301 uses the fitting coefficient calculated in step S404 and the threshold value of the fitting coefficient to determine the reliability of the fitting coefficient and outputs the coefficient calculated as a highly reliable coefficient. In determining the reliability of the fitting coefficient, coefficients within the threshold range are output as is. If the coefficient is outside the threshold range, the process returns to step S404. Then, the process in step S301 is repeated until a coefficient that falls within the threshold range is calculated.
[0093] The fitting coefficient threshold is set from the distance map and depth map obtained by the imaging device 102. The fitting coefficient threshold is set as a reliable coefficient to be used when scaling the depth map in a subsequent step, based on indicators such as the distance value of the nearest obstacle, the vanishing point of the road surface, and the slope of the road surface.
[0094] After the processing in step S405 in Figure 4(b), the processing of the generation unit 302 in step S302 in Figure 4(a) is performed.
[0095] (Processing in generation unit 302) In step S302, the generation unit 302 generates a composite distance map using the distance map and depth map obtained by the imaging device 102 and the coefficients (coefficient A and coefficient B) calculated in step S301.
[0096] Figure 4(d) is a flowchart illustrating the detailed processing of step S302 in Figure 4(a).
[0097] In step S406, the generation unit 302 scales the depth map using the depth map obtained by the imaging device 102 and the coefficient calculated in step S305, and outputs a depth map with scaled depth value data.
[0098] In step S407, the generation unit 302 generates a composite distance map using the scaling data of the depth map obtained in step S406. There are no restrictions on the data used to generate the composite distance map; it may be generated using multiple data such as a distance map and distance measurement confidence in addition to the depth map scaled in step S406.
[0099] The generation of the composite distance map involves converting the depth value data scaled in step S406 into map format data to generate and output the composite distance map. There are no restrictions on the method of generating the composite distance map; methods such as generating it by dividing the distance map and the scaled depth map into regions based on the distance measurement confidence, generating it by changing the correction rate based on the distance measurement confidence, or correcting data gaps in the distance map with the scaled depth map are also acceptable.
[0100] As described above, according to Embodiment 1, highly reliable data can be extracted from distance information and depth information obtained from the same captured image at the same viewpoint and time, and by utilizing the advantages of each while compensating for their disadvantages, a highly accurate and dense distance map can be generated. As a result, the accuracy of the composite distance map generated by the information processing device 103 is improved, and the reliability of vehicle driving control can be enhanced. Furthermore, the composite distance map output from the information processing device 103 is input to the vehicle control device 104, which can be used to control the vehicle 100 and notify the driver 101 of obstacles.
[0101] In contrast, Non-Patent Document 1 states that there is a time difference and parallax between the image captured by the imaging device and the distance image from the LiDAR, and because the time axis and the distance measurement position are not synchronized, it may not be possible to generate dense and high-precision distance information that corresponds to the captured image.
[0102] Furthermore, while actual vehicles need to calculate distance information in real time while driving, combining distance information obtained from disparity image pairs with depth information estimated from captured images requires aligning their time axis directions with the distance measurement position, resulting in excessive processing load.
[0103] In contrast, in this embodiment, since two or more distance and depth information obtained from the same captured image at the same viewpoint and time are combined, there is no need to align the time axis with the distance measurement position, thus reducing the amount of processing and shortening the processing time.
[0104] In this embodiment, the distance measurement values obtained from the parallax image pair and the captured image are data obtained in a single shooting process (shutter release), thus ensuring that reliable data representing the same viewpoint and time is obtained. In this case, the depth value estimated from the captured image can be easily aligned with the distance measurement values by aligning the pixel positions.
[0105] In this embodiment, an example of distance measurement using an image sensor having pixels for phase difference detection on the imaging surface has been described, but the invention is not limited to this. It can also be applied to a stereo camera composed of two or more imaging devices. In that case, it is possible to estimate a depth map based on the image captured by one of the imaging devices of the stereo camera and synthesize distance information and depth information in the same manner as in this embodiment.
[0106] Furthermore, while this embodiment describes an example of estimating a depth map from captured images using inference processing with an AI model, it is not limited to this. For example, methods such as using contrast (blur) in the captured image as a clue, using vanishing points estimated from straight lines such as roads, using objects of known size such as signs, or estimating by analyzing the captured image may also be used.
[0107] [Embodiment 2] Embodiment 2 describes a configuration in which the imaging device 102 and information processing device 103 of Embodiment 1 are integrated as an imaging device 901.
[0108] In Embodiment 2, the same or similar components as in Embodiment 1 are given the same reference numerals, and redundant explanations are omitted.
[0109] The imaging device 901 is a digital camera, digital video camera, etc.
[0110] <Device configuration> Figure 9 is a block diagram illustrating the configuration of the imaging device 901 in this embodiment.
[0111] The imaging optical system 10, imaging unit 11, control unit 200, RAM 202, ROM 203, storage unit 204, and communication unit 205 are the same as those shown in Figure 2 of Embodiment 1.
[0112] The processing applied by the processing unit 902 includes, in addition to the processing of Embodiment 1, edge detection processing, virtual camera position setting processing, virtual viewpoint image generation processing, and virtual viewpoint video generation processing. Furthermore, the processing applied by the processing unit 902 includes the processing of the extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 described in Embodiment 1. In other words, the processing unit 902 has the functions of the extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 shown in Figure 3. The extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 may be dedicated hardware circuits such as ASICs (Application Specific Integrated Circuits) designed to realize specific functions. Alternatively, the extraction unit 300, the coefficient calculation unit 301, and the generation unit 302 may be configured so that a processor such as a DSP (Digital Signal Processor) or GPU (Graphics Processing Unit) executes software to realize specific functions.
[0113] The input unit 206 is a user-operable input device provided on the imaging device 901, such as a dial, button, switch, or touch panel. The control unit 200 monitors operations on the input unit 206. When an operation on the input unit 206 is detected, the control unit 200 executes an action corresponding to the function assigned to the operated input device and the operation itself.
[0114] The display unit 207 is, for example, a display device such as a liquid crystal display or an organic EL display. By continuously capturing video and displaying the captured video on the display unit 207, the display unit 207 can be made to function as an electronic viewfinder (EVF). The operation of making the display unit 207 function as an electronic viewfinder (EVF) is sometimes called live view display or through display. Also, the image displayed on the display unit 207 by live view display or through display is sometimes called a live view image or through image.
[0115] The display unit 207 may be a touch display. If the display unit 207 is a touch display, software keys may be implemented by combining the GUI displayed on the display unit 207 with the touch panel. The control unit 200 handles the software keys in the same way as the input devices of the input unit 206.
[0116] <Configuration of the imaging unit> Figure 10 is a plan view of the pixel array of the imaging unit 11 as seen from the imaging surface side.
[0117] The pixel array is provided with color filters in a primary color Bayer array. Each pixel has one color filter from either red (R), green (G), or blue (B), which is regularly arranged in a repeating unit of a 2x2 pixel group 16. Note that color filters with arrays other than the primary color Bayer array may also be provided.
[0118] Figure 11 is a vertical cross-sectional view of a single pixel, corresponding to the configuration of the I-I' cross-section in Figure 10.
[0119] Each pixel has a light guide layer 19 and a light receiving layer 20. The light guide layer 19 has one microlens 17 and a color filter 18. The light receiving layer 20 has a first photoelectric conversion unit 21 and a second photoelectric conversion unit 22.
[0120] The microlens 17 is configured to efficiently guide the light beam incident on the pixel to the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22. The color filter 18 corresponds to either an R filter, a G filter, or a B filter.
[0121] Both the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22 generate an electric charge corresponding to the amount of incident light. The imaging unit 11 can selectively read signals from each pixel from one or both of the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22. In this embodiment, the signal obtained from the first photoelectric conversion unit 21 is referred to as the A signal, the signal obtained from the second photoelectric conversion unit 22 is referred to as the B signal, and the signal obtained from both the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22 is referred to as the A+B signal.
[0122] Since the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22 view the exit pupil 13 from different viewpoints, the image consisting of signal A and the image consisting of signal B, read from the same pixel area, form a disparity image pair. Then, by using signal A and signal B, the amount of defocus can be determined according to the phase difference detection method. Therefore, signal A and signal B can be called focus detection signals.
[0123] In contrast, the A+B signal corresponds to the signal obtained when a pixel has one photoelectric converter; therefore, by acquiring the A+B signal from each pixel, an analog image signal can be obtained.
[0124] The A signal can also be obtained by subtracting the B signal from the A+B signal. Similarly, the B signal can be obtained by subtracting the A signal from the A+B signal. Therefore, by reading out the A+B signal and either the A signal or the B signal from each pixel, the A signal, B signal, and A+B signal can be obtained. The type of signal read out from each pixel is controlled by the control unit 200.
[0125] In the examples shown in Figures 10 and 11, a configuration is illustrated in which each pixel has two photoelectric conversion units 21 and 22 arranged horizontally, but the system is not limited to this. For example, a configuration with a total of four photoelectric conversion units, two arranged horizontally and two arranged vertically, is also possible. Alternatively, a configuration may be in which multiple pairs of pixels, one dedicated to generating the A signal and the other dedicated to generating the B signal, are distributed in the pixel array. The imaging unit 11 can have known configurations corresponding to phase-detection autofocus and any other configuration.
[0126] <Method for detecting surface phase difference> Figure 12 illustrates the imaging plane phase difference detection method of this embodiment.
[0127] The image plane phase difference detection method is a process that calculates the amount of defocus using the A signal and the B signal.
[0128] Figure 12(a) is a schematic diagram showing the relationship between the exit pupil 13 of the imaging optical system 10 and the light beam incident on the first photoelectric conversion unit 21 of a certain pixel. Figure 12(b) is a schematic diagram showing the relationship between the light beam incident on the second photoelectric conversion unit 22 of the same pixel and the exit pupil 13.
[0129] In this embodiment, the direction parallel to the optical axis of the imaging optical system 10 is defined as the z-direction or defocus direction, the direction perpendicular to the optical axis and parallel to the horizontal direction of the imaging surface is defined as the x-direction, and the direction perpendicular to the optical axis and parallel to the vertical direction of the imaging surface is defined as the y-direction.
[0130] The microlens 17 is positioned so as to be optically conjugate to the exit pupil 13 and the light-receiving layer 20. The light beam that passes through the exit pupil 13 of the imaging optical system 10 is focused by the microlens 17 and incident on the first photoelectric conversion unit 21 or the second photoelectric conversion unit 22. In this case, as shown in Figures 12(a) and 12(b), the light beam that has passed through different regions of the exit pupil 13 mainly incidents on the first photoelectric conversion unit 21 and the second photoelectric conversion unit 22, respectively. Specifically, the light beam that has passed through the first pupil region 1210 is incident on the first photoelectric conversion unit 21, and the light beam that has passed through the second pupil region 1220 is incident on the second photoelectric conversion unit 22.
[0131] When acquiring A and B signals from multiple pixels arranged horizontally around a pixel of interest, the relative positional shift (phase difference or disparity) between the image signal based on the A signal sequence (A image) and the image signal based on the B signal sequence (B image) is proportional to the amount of defocus of the pixel of interest.
[0132] In Figures 12(c) to 12(e), 1211 represents the first luminous beam passing through the first pupil region 1210, and 1221 represents the second luminous beam passing through the second pupil region 1220.
[0133] Figure 12(c) shows the focused state, where the first light beam 1211 and the second light beam 1221 converge on the imaging plane. In this case, the phase difference or parallax between image A and image B is 0.
[0134] Figure 12(d) shows that the first luminous beam 1211 and the second luminous beam 1221 converge on the object side (negative z-axis side) of the imaging plane. In this case, the phase difference or parallax between image A and image B has a negative value (<0).
[0135] Figure 12(e) shows that the first luminous beam 1211 and the second luminous beam 1221 converge behind the imaging plane (towards the positive z-axis) when viewed from the object side. In this case, the phase difference or parallax between image A and image B has a positive value (>0).
[0136] Thus, the phase difference or parallax between image A and image B has a sign corresponding to the relationship between the position where the first light beam 1211 and the second light beam 1221 converge and the imaging plane, and has a magnitude corresponding to the amount of defocus. By calculating the correlation amount while relatively shifting image A and image B, the phase difference or parallax between image A and image B can be obtained as the shift amount that maximizes the correlation amount.
[0137] <Processing to obtain distance map> The control unit 200 can acquire the distance image generated by the processing unit 902 as a distance map used for 3D shape calculation. Furthermore, the control unit 200 and the storage unit 204 can also acquire a distance map by reading a previously recorded distance image.
[0138] The distance map generation process performed by the processing unit 902 includes the process of calculating the amount of parallax, the process of converting the amount of parallax to the amount of defocus, the process of converting the amount of defocus to a distance value, the process of generating a distance map from the distance value, and the process of generating the distance measurement reliability from the captured image with parallax. The distance map is limited to an image-based one. The image-based distance map is generated by the image plane phase difference detection pixels provided by the imaging device 901. There are no restrictions on the method of calculating the amount of parallax, and a stereo camera may also be used.
[0139] <Depth map acquisition process> The depth map is estimated from the captured image by the depth map generation process of the processing unit 902. There are no particular restrictions on the method of estimating the depth map, as described in Embodiment 1, such as using a neural network or utilizing the contrast, vanishing points, and known size of the subject in the captured image.
[0140] <Processing by extraction unit 300, coefficient calculation unit 301, and generation unit 302> Referring to Figures 4, 5, and 13, the processing of the extraction unit 300, the coefficient calculation unit 301, and the generation unit 302, which are performed in the processing unit 902, will be described.
[0141] The following description will focus on processes that differ from those in Embodiment 1.
[0142] The process shown in Figure 4 begins when the distance map and depth map are generated in the imaging device 901.
[0143] (Processing of extraction unit 300) In step S300 of Figure 4(a), reliable data is extracted from the distance map and depth map, similar to Embodiment 1.
[0144] Figure 4(b) is a flowchart illustrating the process performed in step S300 of Figure 4(a). Figure 5(a) is a flowchart illustrating the process performed in step S400 of Figure 4(b).
[0145] In step S500, unlike in Embodiment 1, the extraction unit 300 sets only the region that is highly reliable due to the imaging optical system 10 of the imaging device 901. This is because the imaging device 901 captures various shooting scenes, and therefore it is not possible to set assumptions about the shooting scene.
[0146] Next, in step S401 of Figure 4(b), the extraction unit 300 extracts distance values within the effective distance range from the effective area extraction distance map extracted in step S400, similar to Embodiment 1. The method for setting the effective distance range used in this case differs from Embodiment 1; it is set by AF evaluation values such as the focus distance calculated when the imaging device 901 takes a picture. Furthermore, the effective distance range may be adjusted according to the ambient environment at the time of shooting, such as the brightness of the captured image and the temperature at the time of shooting.
[0147] Figure 13 is a flowchart illustrating the process of step S402 in Figure 4(b), which differs from Embodiment 1.
[0148] In step S509, the extraction unit 300 searches for a region with a depth value that can be considered the main subject from the depth value data of the depth map, and sets the main subject region.
[0149] Figure 14 is a diagram illustrating how to set the main subject area in step S509 of Figure 13.
[0150] The method for searching for the main subject area involves detecting and setting the main subject area 1401 from the captured image 1400 using semantic segmentation (shaded area in Figure 14). There are no restrictions on the method for detecting the main subject area.
[0151] In step S510, the extraction unit 300 extracts data from the depth map for the main subject area set in step S509 and outputs it as an extracted depth map.
[0152] Next, in step S403 of Figure 4(b), the same process as in Embodiment 1 is performed.
[0153] (Processing by the coefficient calculation unit 301) In step S301 of Figure 4(a), the same process as in Embodiment 1 is performed.
[0154] Figure 4(c) illustrates the process performed in step S301 of Figure 4(a).
[0155] In step S405, the coefficient calculation unit 301, similar to Embodiment 1, determines the reliability of the fitting coefficient using the fitting coefficient and the fitting coefficient threshold calculated in step S404. After processing, it outputs the coefficient calculated as a highly reliable coefficient. The method for setting the fitting coefficient threshold used in this case differs from Embodiment 1, and is set by the distance map and depth map obtained by the imaging device 901. The fitting coefficient threshold is set as a highly reliable coefficient in the coefficients used when scaling the depth map in the subsequent stage, using indicators such as AF evaluation values such as the focus distance calculated when shooting with one imaging device 901, and the nearest subject distance measurement value.
[0156] (Processing in generation unit 302) In step S302 of Figure 4(a), the same process as in Embodiment 1 is performed.
[0157] As described above, Embodiment 2 allows for the acquisition of a dense and highly accurate distance map. As a result, the distance map can be used for various applications, such as blurring the background of the main subject in captured images or generating 3D models.
[0158] [Other embodiments] The present invention can also be realized by supplying a program that implements one or more of the functions of the above-described embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions.
[0159] The technical ideas derived from this disclosure are not limited to the exemplary embodiments disclosed, but are intended to encompass various modifications of the exemplary embodiments, or substitutions with equivalent structures or functions. The scope of the following claims should be interpreted in the broadest way to encompass all such modifications and equivalent structures and functions.
[0160] The disclosures herein include the following information processing devices, information processing methods, imaging devices, moving devices, and programs. [Item 1] An acquisition means for acquiring a first distance map representing first distance information corresponding to a position in a captured image, and a second distance map representing second distance information corresponding to a position in the captured image. An information processing apparatus characterized by comprising: generation means for generating a third distance map based on the first distance information of the first distance map and the second distance information of the second distance map. [Item 2] The information processing device according to item 1, characterized in that the first distance map is generated based on distance information obtained from a pair of images having parallax. [Item 3] The first distance map includes distance information at coarse locations in the captured image, The information processing device according to item 1 or 2, characterized in that the second distance map includes distance information at dense locations in the captured image. [Item 4] Extraction means for extracting the first distance information from the first distance map and the second distance information from the second distance map, The system includes a calculation means for calculating a coefficient to match the scale of the first distance information extracted by the extraction means with the scale of the second distance information, The information processing device according to any one of items 1 to 3, characterized in that the generation means scales the first distance information and the second distance information based on the coefficient to generate the third distance map. [Item 5] The information processing device according to item 4, characterized in that the extraction means extracts the first distance information and the second distance information having a reliability of a predetermined threshold or higher from the first distance map and the second distance map. [Item 6] The information processing device according to item 4 or 5, characterized in that the calculation means calculates the coefficient by fitting the first distance information and the second distance information using at least one of the first distance information and the second distance information extracted by the extraction means. [Item 7] The information processing device according to item 6, characterized in that the calculation means determines the reliability of the coefficient using a threshold and repeatedly calculates the coefficient until it falls within the range of the threshold. [Item 8] The information processing device according to any one of items 1 to 7, characterized in that the second distance map is generated by inference processing using a trained AI (artificial intelligence) model. [Item 9] The information processing device according to any one of items 1 to 7, characterized in that the second distance map is generated by analyzing at least the contrast, vanishing point, and size of the subject of the captured image. [Item 10] The information processing device according to any one of items 4 to 7, characterized in that the extraction means extracts first distance information of an effective region in the captured image from the first distance map. [Item 11] The information processing device according to any one of items 4 to 7, characterized in that the extraction means extracts the first distance information within an effective distance measurement range from the first distance map. [Item 12] The information processing apparatus according to any one of items 4 to 7, characterized in that the extraction means extracts distance information in which the local variation of the first distance information is smaller than a predetermined range. [Item 13] The information processing device according to any one of items 4 to 7, characterized in that the extraction means extracts the second distance information of the region in the captured image excluding the background region from the second distance map. [Item 14] The information processing device according to any one of items 4 to 7, characterized in that the extraction means extracts the second distance information of the main subject area in the captured image from the second distance map. [Item 15] The information processing device according to any one of items 4 to 7, 10 to 14, characterized in that the extraction means extracts information of a common region in the captured image with respect to the first distance information and the second distance information. [Item 16] The information processing device according to item 15, characterized in that the extraction means extracts information of the common area by performing a logical operation on the first distance information and the second distance information. [Item 17] The information processing apparatus according to item 15 or 16, characterized in that the calculation means determines the validity of the information in the common area extracted by the extraction means, and calculates the coefficient using the information in the common area from which the information determined to be invalid has been removed. [Item 18] The information processing device according to item 17, characterized in that the determination of validity uses a threshold set based on distance information to the subject in the captured image. [Item 19] The information processing device according to item 17, characterized in that the determination of validity uses a threshold value set based on the evaluation value of the autofocus control of the subject in the captured image. [Item 20] The information processing device according to any one of items 1 to 19, characterized in that the first distance map and the second distance map are obtained from the same captured image at the same viewpoint and time. [Item 21] An imaging device, An information processing device described in any of items 1 to 20, An imaging device characterized by having an imaging means for generating the aforementioned captured image. [Item 22] A mobile device, An information processing device described in any of items 1 to 20, An imaging device that generates the aforementioned captured image, A mobile device characterized by having a control device that controls the mobile device based on the third distance map generated by the information processing device. [Item 23] An information processing method performed by an information processing device, The steps include obtaining a first distance map representing first distance information corresponding to a position in a captured image, and a second distance map representing second distance information corresponding to a position in the captured image, An information processing method characterized by comprising the step of generating a third distance map based on the first distance information and the second distance information. [Item 24] A program to cause a computer to function as an information processing device as described in any of items 1 through 20. [Explanation of Symbols]
[0161] 100...Vehicle, 102, 901...Imaging device, 103...Information processing device, 104...Vehicle control device, 201, 902...Processing unit, 300...Extraction unit, 301...Coefficient calculation unit, 302...Generation unit
Claims
1. An acquisition means for acquiring a first distance map representing first distance information corresponding to a position in a captured image, and a second distance map representing second distance information corresponding to a position in the captured image. An information processing apparatus characterized by having a generation means for generating a third distance map based on the first distance information of the first distance map and the second distance information of the second distance map.
2. The information processing device according to claim 1, characterized in that the first distance map is generated based on distance information obtained from a pair of images having parallax.
3. The first distance map includes distance information at coarse positions in the captured image, The information processing device according to claim 1, characterized in that the second distance map includes distance information at dense locations in the captured image.
4. Extraction means for extracting first distance information from the first distance map and second distance information from the second distance map, The system includes a calculation means for calculating a coefficient to match the scale of the first distance information extracted by the extraction means with the scale of the second distance information, The information processing apparatus according to claim 1, characterized in that the generation means scales the first distance information and the second distance information based on the coefficient to generate the third distance map.
5. The information processing apparatus according to claim 4, characterized in that the extraction means extracts the first distance information and the second distance information having a reliability of a predetermined threshold or higher from the first distance map and the second distance map.
6. The information processing apparatus according to claim 4, characterized in that the calculation means calculates the coefficient by fitting the first distance information and the second distance information using at least one of the first distance information and the second distance information extracted by the extraction means.
7. The information processing apparatus according to claim 6, characterized in that the calculation means determines the reliability of the coefficient using a threshold and repeatedly calculates the coefficient until it falls within the range of the threshold.
8. The information processing apparatus according to claim 1, characterized in that the second distance map is generated by inference processing using a trained AI (artificial intelligence) model.
9. The information processing device according to claim 1, characterized in that the second distance map is generated by analyzing at least the contrast, vanishing point, and size of the subject of the captured image.
10. The information processing apparatus according to claim 4, characterized in that the extraction means extracts first distance information of an effective region in the captured image from the first distance map.
11. The information processing device according to claim 4, characterized in that the extraction means extracts the first distance information within an effective distance measurement range from the first distance map.
12. The information processing apparatus according to claim 4, characterized in that the extraction means extracts distance information in which the local variation of the first distance information is smaller than a predetermined range.
13. The information processing apparatus according to claim 4, characterized in that the extraction means extracts the second distance information of the region excluding the background region in the captured image from the second distance map.
14. The information processing apparatus according to claim 4, characterized in that the extraction means extracts the second distance information of the main subject area in the captured image from the second distance map.
15. The information processing apparatus according to claim 4, characterized in that the extraction means extracts information about a common region in the captured image with respect to the first distance information and the second distance information.
16. The information processing apparatus according to claim 15, characterized in that the extraction means extracts information of the common area by performing a logical operation on the first distance information and the second distance information.
17. The information processing apparatus according to claim 15, characterized in that the calculation means determines the validity of the information in the common area extracted by the extraction means, and calculates the coefficient using the information in the common area from which the information determined to be invalid has been removed.
18. The information processing apparatus according to claim 17, characterized in that the determination of validity uses a threshold value set based on distance information to the subject in the captured image.
19. The information processing apparatus according to claim 17, characterized in that the determination of validity uses a threshold value set based on the evaluation value of the autofocus control of the subject in the captured image.
20. The information processing device according to claim 1, characterized in that the first distance map and the second distance map are obtained from the same captured image at the same viewpoint and time.
21. An imaging device, An information processing device according to any one of claims 1 to 20, An imaging device characterized by having an imaging means for generating the aforementioned captured image.
22. A mobile device, An information processing device according to any one of claims 1 to 20, An imaging device that generates the aforementioned captured image, A mobile device characterized by having a control device that controls the mobile device based on the third distance map generated by the information processing device.
23. An information processing method performed by an information processing device, The steps include obtaining a first distance map representing first distance information corresponding to a position in a captured image, and a second distance map representing second distance information corresponding to a position in the captured image, An information processing method characterized by comprising the step of generating a third distance map based on the first distance information and the second distance information.
24. A program for causing a computer to function as an information processing device according to any one of claims 1 to 20.
