Depth estimation system and depth estimation method
Patent Information
- Application Number
- JP2022573637
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-10
- Filing Date
- 2021-06-06
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-06-06
Smart Images

Figure 0007566358000005 
Figure 0007566358000006 
Figure 0007566358000007
Abstract
Description
[Technical field]
[0001] The subject matter of this disclosure relates generally to the field of depth estimation, and more specifically to methods and systems for depth map generation. [Background technology]
[0002]
[0002] Depth estimation refers to a computer vision technique used to estimate depth information from one or more images. A depth estimation algorithm typically requires one or more input images and outputs a corresponding depth image. A depth image contains information about the distance of objects in the image from a viewpoint, which is typically the camera that captures the image.
[0003]
[0003] Depth estimation can be used in many applications including robotics, autonomous driving, 3D scene reconstruction, augmented reality, shadow mapping in 3D computer graphics, and in some cases may be useful in other fields such as medical research and surgery.
[0004]
[0004] Estimating depth from an image has been very difficult due to various factors, such as the nature of the problem. For example, the mapping between 2D and 3D views is not unique, so the problem of estimating depth from a single image is an ill-posed inverse problem. Furthermore, in some applications, the problem may be more complex due to certain reasons, such as lighting characteristics, textureless regions, repeating patterns, reflective surfaces, occlusions, etc., that may degrade the matching and make the stereo correspondence incomplete.
[0005]
[0005] Currently, certain solutions for obtaining depth with high accuracy include the use of distance sensors such as Lidar or Radar, however, in some applications the use of Lidar can be problematic due to its high operational costs and large data sets that are difficult to interpret. Summary of the Invention
[0006]
[0006] According to certain aspects of the subject matter of the present disclosure, there is provided a computerized method of depth map generation, the method being executed by a processor and memory circuit (PMC) and comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between a vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an entire image capturing the surface portion; acquiring a segmentation map corresponding to at least a portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least a portion of the entire image; and generating a depth map for each predetermined section of the one or more sections, the depth map comprising: i) calculating a disparity map for the predetermined section, the disparity map comprising disparity values each indicating a difference in position between a respective pixel in the predetermined section of the first image and a corresponding pixel in the predetermined section of the second image, the corresponding pixel being located within a range defined within the same segment to which each pixel belongs; and ii) calculating a depth map for the predetermined section based on the disparity map, the depth map for each predetermined section being usable in combination to generate a depth map for the pair of images.
[0007] In addition to the above features, the method according to this aspect of the presently disclosed subject matter may comprise one or more of the following enumerated features (i) to (xiii), in any desired combination or permutation technically possible: (i) Generating the depth map may further include estimating a displacement of the given section between the first image and the second image, thereby resulting in an overlap region of the given section between the first image and the second image. The calculating step may include calculating a disparity map of the overlapping area within the predetermined section based on the displacement of the predetermined section, and the matching pixels are searched within the same segment to which each of the pixels belongs, within a range defined based on the displacement. The calculating step may include calculating a depth map of the overlap region within the predetermined section based on the disparity map. (ii) the pair of images can be divided into one or more sections along a direction perpendicular to the direction of the relative movement according to the segmentation map. (iii) The pair of images may be divided into one or more sections corresponding to the one or more segments in the segmentation map. (iv) the displacement of the given section between the first and second images may be estimated with respect to one or more displacements of the given section in one or more previous pairs of images. (v) The step of calculating a disparity map may include the steps of: for each given pixel in the overlap region in the first image, defining a range in the second image based on the displacement and within the same segment to which the given pixel belongs; searching within the defined range for a pixel in the second image that matches the given pixel using a matching method; and calculating a position difference between the given pixel and the matching pixel, resulting in a disparity value corresponding to the given pixel. (vi) The matching method may be an optimized semi-global matching method regularized by a segmentation factor. (vii) the optimized semi-global matching method may be regularized by adjusting a cost function of the method according to the segmentation coefficient indicating whether a candidate pixel and one or more neighboring pixels of the candidate pixel belong to the same segment, and the searching step comprises selecting the matching pixel from one or more candidate pixels within the defined range using the adjusted cost function. (viii) said surface portion is an undercarriage of said vehicle. (ix) the first image and the second image are overlapped by at least 50%. (x) the entire image may be generated by stitching together multiple images captured by the at least one imaging device at multiple time points, and the segmentation map corresponds to the entire image and includes one or more segments corresponding to one or more vehicle components included in the surface portion. (xi) the segmentation map is generated using a segmentation model, which may be trained using a training dataset including a set of training images of the surface portion of the vehicle pre-segmented according to the one or more vehicle components included in the vehicle. (xii) The method may further include extracting features from the pair of images; matching the features between the first image and the second image; calculating a vertical displacement of the matched features along a direction perpendicular to the direction of the relative movement; and aligning the pair of images according to the vertical displacement. (xiii) The matching pixels are searched for within a defined range within the same segment taking into account the matched features.
[0008] According to another aspect of the subject matter of the present disclosure, there is provided a computerized system for depth map generation comprising a processor and memory circuit (PMC) configured to: acquire a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between a vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an entire image capturing the surface portion; and acquire a segmentation map corresponding to at least the portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least the portion of the entire image. the first image into one or more sections according to the segmentation map; and generating a depth map for each predefined section in the first image, where generating includes: i) calculating a disparity map for the predefined section, the disparity map including disparity values each indicating a difference in position between a respective pixel of the predefined section of the first image and a corresponding pixel of the predefined section in the second image, the corresponding pixel being searched within a defined range within the same segment to which each pixel belongs; and ii) calculating a depth map for the predefined section based on the disparity map, the depth maps for each predefined section being usable in combination to generate a depth map for the pair of images.
[0009]
[0009] This aspect of the disclosed subject matter may include, mutatis mutandis, one or more of the features (i) to (xiii) enumerated above with respect to the method, in any desired combination or permutation that is technically possible.
[0010]
[0010] According to another aspect of the subject matter of the present disclosure, there is provided a non-transitory computer-readable storage medium tangibly embodying a program of instructions that, when executed by a computer, causes the computer to perform a method for depth map generation, the method comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between a vehicle and at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, and the captured portions being partially superimposed, the pair of images constituting a portion of an entire image capturing the surface portion; acquiring a segmentation map corresponding to at least the portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least the portion of the entire image, obtaining a depth map for each of the pair of images according to the segmentation map; dividing the pair of images into one or more sections according to the segmentation map; and generating a depth map for each of the one or more sections, the depth map including: i) calculating a disparity map for the predetermined section, the disparity map including disparity values each indicating a difference in position between a respective pixel in the predetermined section of the first image and a corresponding pixel in the predetermined section of the second image, the corresponding pixel being searched within a range defined within the same segment to which each pixel belongs; and ii) calculating a depth map for the predetermined section based on the disparity map, the depth map for each of the predetermined sections being usable in combination to generate a depth map for the pair of images.
[0011]
[0011] This aspect of the disclosed subject matter may include, mutatis mutandis, one or more of the features (i) to (xiii) enumerated above with respect to the method, in any desired combination or permutation that is technically possible. [Brief description of the drawings]
[0012]
[0012] In order to understand the present disclosure and how it may be carried out in practice, embodiments will now be described, by way of non-limiting example only, with reference to the accompanying drawings, in which:
[0013] [Figure 1A]
[0013] A functional block diagram of a depth estimation system according to a particular embodiment of the subject matter of the present disclosure is shown generally in FIG. [Figure 1B]
[0014] 1 illustrates a schematic diagram of an exemplary arrangement of imaging devices relative to a vehicle in accordance with certain embodiments of the subject matter of this disclosure. [Diagram 2]
[0015] 1 illustrates a generalized flowchart of depth map generation according to certain embodiments of the subject matter of this disclosure. [Diagram 3]
[0016] 1 illustrates a generalized flowchart for generating a depth map for each predefined section, according to certain embodiments of the subject matter of this disclosure. [Figure 4]
[0017] 1 shows a generalized flowchart for computing a disparity map according to certain embodiments of the subject matter of this disclosure. [Diagram 5]
[0018] 1 illustrates an example of a number of images captured by an imaging device, according to certain embodiments of the subject matter of this disclosure. [Figure 6]
[0019] 1 shows an exemplary diagram of vertical alignment according to certain embodiments of the subject matter of the present disclosure. [Figure 7]
[0020] 1 illustrates an example of an entire image and corresponding segments according to certain embodiments of the subject matter of this disclosure. [Figure 8A]
[0021] 1 illustrates an example of dividing a pair of images into sections according to certain embodiments of the subject matter of this disclosure. [Figure 8B]1 illustrates an example of dividing a pair of images into multiple sections according to certain embodiments of the subject matter of this disclosure. [Figure 9]
[0022] 1 illustrates an example of estimating displacement per section according to certain embodiments of the subject matter of this disclosure. [Figure 10A]
[0023] 1 illustrates an example of searching for matching pixels using an improved semi-global matching method according to certain embodiments of the subject matter of this disclosure. [Figure 10B]
[0023] An example of searching for matching pixels using an improved semi-global matching method according to certain embodiments of the subject matter of this disclosure is shown. [Figure 11]
[0024] 1 illustrates a common overlap area between overlap areas of various sections according to certain embodiments of the presently disclosed subject matter. [Figure 12]
[0025] 1 illustrates an example of an original chassis image and a complete depth map corresponding to the chassis, according to certain embodiments of the subject matter of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014]
[0026] In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure. However, those skilled in the art will understand that the subject matter of the present disclosure may be practiced without these specific details. In other instances, well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the subject matter of the present disclosure.
[0015]
[0027] Unless otherwise specifically stated, and as will become apparent from the following description, it should be understood that throughout the specification, descriptions utilizing terms such as "obtain," "capture," "generate," "estimate," "split," "extract," "perform," "calculate," "compute," "define," "search," "match," "adjust," "join," "train," and the like refer to computer actions and / or processes that process and / or transform data into other data, said data being represented as physical quantities such as electrons, and / or said data representing physical objects. The term "computer" should be interpreted broadly to cover any kind of hardware-based electronic device having data processing capabilities, including, as a non-limiting example, the depth map generation system and parts thereof disclosed herein.
[0016]
[0028] The processes according to the teachings herein may be performed by a computer specially configured for the desired purpose, or by a general-purpose computer specially configured for the desired purpose by a computer program stored on a non-transitory computer-readable storage medium.
[0017]
[0029] As used herein, the terms "non-transitory memory," "non-transitory storage medium," and "non-transitory computer-readable storage medium" should be interpreted broadly to cover any volatile or non-volatile computer memory suitable for the subject matter of this disclosure.
[0018]
[0030] Embodiments of the presently disclosed subject matter have not been described with reference to any particular programming language, it being understood that a variety of programming languages can be used to implement the teachings of the presently disclosed subject matter as described herein.
[0019]
[0031] As used herein, the phrases "for example," "such as," "for instance," and variations thereof describe non-limiting embodiments of the presently disclosed subject matter. References herein to "in some cases," "in some cases," "in other cases," or variations thereof mean that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of the presently disclosed subject matter. Thus, appearances of "in some cases," "in some cases," "in other cases," or variations thereof are not necessarily referring to the same embodiment.
[0020]
[0032] It will be understood that certain features of the presently disclosed subject matter that are described in the context of separate embodiments may also be provided in combination in a single embodiment, unless stated otherwise. Conversely, various features of the presently disclosed subject matter that are described in the context of a single embodiment may also be provided separately or in any suitable subcombination. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the methods and apparatus.
[0021]
[0033] In embodiments of the presently disclosed subject matter, one or more of the steps illustrated in the figures may be performed in a different order and / or one or more groups of the steps may be performed simultaneously, or vice versa.
[0022]
[0034] With this in mind, attention is directed to FIG. 1A, which illustrates generally a functional block diagram of a depth estimation system, in accordance with certain embodiments of the disclosed subject matter.
[0023]
[0035] The system 100 shown in FIG. 1A is a computer-based system for automatic depth estimation based on an input image. The system 100 may be configured to obtain two-dimensional images from at least one imaging device 130 and generate a depth map corresponding to the two-dimensional images. The term depth map as used herein refers to a depth image that contains information about the distance of the surfaces of objects in the input image from a viewpoint that is typically the imaging device that captures the image. Typically, the goal of depth estimation is to obtain a representation of the spatial structure of the scene and recover the three-dimensional shape and appearance of objects in the image.
[0024]
[0036] Imaging device, as used herein, refers to any type of image acquisition device or general-purpose device with image acquisition capabilities that may be used to capture images at a particular resolution and frequency, such as, for example, a digital camera with image and / or video recording capabilities. At least one imaging device 130 may be operatively connected to system 100, and captured images may be transmitted to system 100 via wired or wireless communication. In some embodiments, at least one imaging device 130 may be a set of imaging devices that in some cases includes a single imaging device, while in some other cases includes multiple imaging devices, as illustrated and described with reference to FIG. 1B.
[0025]
[0037] According to certain embodiments, the target object captured in the image may be a vehicle or a part thereof. It should be noted that the term "vehicle" as used herein should be broadly interpreted to cover any type of motor vehicle, including but not limited to cars, buses, motorcycles, trucks, trains, and airplanes. As an example, the image may be an undercarriage image of the vehicle. The imaging device may be embedded in the ground of an inspection corridor through which the vehicle may pass. As another example, the image may capture the side of the vehicle. The imaging device may be located (mounted or otherwise installed) on at least one side of the vehicle (e.g., attached to a support structure on at least one side of the inspection corridor). In some cases, imaging devices may be located on both sides of the vehicle such that images of both sides of the vehicle may be acquired and processed simultaneously.
[0026]
[0038] According to certain embodiments, the vehicle may be a moving vehicle that passes through an inspection corridor equipped with such imaging devices. In certain other embodiments, the vehicle may be a stationary vehicle while the imaging devices are mounted on a movable platform for movement relative to the vehicle.
[0027]
[0039] Referring now to FIG. 1B, an exemplary arrangement of imaging devices relative to a vehicle is shown in accordance with certain embodiments of the subject matter of this disclosure.
[0028]
[0040] One or more imagers 142 are embedded underground in the inspection corridor through which the vehicle 140 passes, and are configured to capture images of the undercarriage of the vehicle 140 at various times during the relative movement between the vehicle and the imagers. In some cases, multiple imagers may be used to cover the entire range of the vehicle. For example, as shown in FIG. 1B, a set of imagers including three cameras is installed underground along the width of the vehicle and arranged in a specific position and orientation to cover the entire width. In some cases, the imagers may be arranged in a specific manner relative to the vehicle to capture images that cover a field of view (FOV) corresponding to a predefined area. Three images captured by the three imagers at a given time may be stitched together to provide a complete "slice" of the undercarriage along the width of the vehicle.
[0029]
[0041] Since the movement is relative between the vehicle and the imager, in one embodiment, modeling of the moving imager can be achieved by modeling the moving vehicle (i.e., as if the imager were moving relative to a stationary vehicle). Thus, the transformation in time of the imager configuration (e.g., the position and orientation of the set of cameras) can be identified. As shown at 150 in FIG. 1B, an array of camera positions is shown, with columns (e.g., d 11 , d 21 , d 31 ) are along the width of the vehicle and represent relative positions within the set of imagers, while rows (e.g., d 11 , d 12 , ...d 1n ) are along the direction of relative motion and represent the relative positions of the set of imaging devices at various times during the relative motion.
[0030]
[0042] It should be understood that the present disclosure is not limited by the particular number, type, scope and views of imaging devices and / or images captured, nor by the particular method of generating images by the imaging devices.
[0031]
[0043] Optionally, in some embodiments, the imaging device may be integrated with lighting capabilities so that images can be captured with high resolution and quality. Alternatively, in some cases, one or more lighting devices may be provided located in close proximity to the imaging device to provide lighting covering the FOV of the imaging device. As an example, if the surface portion is a vehicle chassis, the lighting devices may be positioned underground and next to the imaging device. If the surface portion is the side of a vehicle, the lighting devices may be positioned on the side of the walkway to provide ambient lighting for image capture. Optionally, image capture and / or lighting may be triggered by an external detection device (e.g., road loop, IR beam, VMD, etc.) capable of detecting the presence / approach of a vehicle.
[0032]
[0044] The imaging devices 130 (and lighting devices, in some cases) may be controlled by the system 100. The system 100 may be operatively connected to the imaging devices (and lighting devices, in some cases) and used to control the devices (e.g., synchronize image capture and lighting operation), calibrate the system during a setup phase, and process captured images of the vehicle to generate a depth map.
[0033]
[0045] At least one image capture device 130 may be configured to capture multiple images (also referred to herein as frames or image frames) at multiple time points during relative motion between the vehicle and the image capture device, each image capturing a respective portion / slice that falls within a predefined area at a respective time point. According to certain embodiments, image capture is performed to partially overlap the multiple portions captured in the multiple images in such a way that the overlapping area between each pair of frames can together cover the entire target surface portion (e.g., the chassis).
[0034]
[0046] Referring now to FIG. 5, an example of a number of images captured by an imaging device is shown, in accordance with certain embodiments of the subject matter of this disclosure.
[0035]
[0047] f1, f2, f3, ..., f n-1 , fn A series of image frames, denoted as f1-f2, are captured by the imaging device at multiple n points in time during the relative motion between the vehicle and the imaging device. As shown, frames f1-f2 n Each captures a portion of the chassis, and the captured portions are partially overlapped in range. As described above with reference to FIG. 1B, a moving vehicle may be modeled as if the imager is moving relative to a stationary vehicle. As shown, the frames are split into intermediate frames d1, d2, ..., d n The image is captured as if by multiple imagers positioned at a distance of .
[0036]
[0048] In some embodiments, the number of overlapped adjacent portions (captured by adjacent frames) may be variously defined and may range from 2 to N (N>2). This may be related, for example, to the speed of relative motion between the vehicle and the imaging device and the capture rate of the imaging device. As an example, every two adjacent portions captured by two adjacent frames may be overlapped such that the overlapping area between the two portions is captured twice in two images. As another example, if the capture rate is high, every five adjacent portions may be overlapped, such that some surface points may be captured in two images while some other points may be captured in all five images. It should be noted that for ease of explanation, in some embodiments, images capturing adjacent portions are referred to as being overlapped (i.e., areas of the images are overlapped).
[0037]
[0049] Continuing with the description of FIG. 1A, system 100 may comprise a processor and memory circuit (PMC) 102 operatively connected to a hardware-based I / O interface 126 and a storage unit 122. PMC 102 is configured to provide the processing required for operating system 100, which will be described in further detail with reference to FIGS. 2-4. PMC 102 comprises a processor (not separately shown) and a memory (not separately shown). The processor of PMC 102 may be configured to execute a number of functional modules in accordance with computer readable instructions embodied in non-transitory computer readable memory included in the PMC. Such functional modules are hereafter referred to as being included in the PMC.
[0038]
[0050] It should be noted that the term processor as referred to in this specification should be interpreted broadly to cover any processing circuit having data processing capability, and that the present disclosure is not limited to its type or platform or the number of processing cores contained therein.
[0039]
[0051] According to a particular embodiment, the functional modules included in the PMC 102 may comprise a partitioning module 104, a disparity map generator 108, and a depth map generator 112. Optionally, the PMC 102 may further comprise a displacement estimation module 106. The disparity map generator 108 may comprise a matching module 110. The functional modules included in the PMC may be operatively connected among themselves.
[0040]
[0052] It should be noted that while certain embodiments of the present disclosure refer to depth map generation of vehicle images, this is for illustrative purposes only and should not be considered as limiting the present disclosure in any way. Similarly, the subject matter of the present disclosure may be applicable to images capturing other objects or entities in a similar manner.
[0041]
[0053] According to certain embodiments of the present disclosure, the PMC 102 may be configured (e.g., via the hardware-based I / O interface 126) to acquire a pair of images including a first image (also referred to as a first frame) and a second image (also referred to as a second frame) acquired by the at least one imaging device 130 at two time points during relative movement between the vehicle and the at least one imaging device 130. The first image and the second image capture respective portions of a surface portion of the vehicle, and the captured portions are partially overlapped within a range. The pair of images constitute a portion of an entire image capturing the surface portion.
[0042]
[0054] The surface portion may refer to any portion of the vehicle for which an image may be captured in the manner described above. Although the term surface is used, it does not necessarily mean that only the surface of the vehicle may be captured by the image. In some cases, any content beyond the surface (e.g., the interior of the vehicle) but observable from the viewpoint may be considered to be included in the scope of the surface portion. As an example, the surface portion may be the chassis of the vehicle. As another example, the surface portion may be a side of the vehicle. In that case, some of the interior parts such as the vehicle seat, the driver, etc. may be captured by the imaging device as long as they are observable from the viewpoint of the imaging device, and therefore may be considered to be in the scope of the surface portion.
[0043]
[0055] PMC 102 may be further configured to obtain (e.g., from segmentation module 132 via hardware-based I / O interface 126) a segmentation map corresponding to at least a portion of the entire image. The segmentation map includes one or more segments corresponding to one or more vehicle components included in at least the portion of the entire image.
[0044]
[0056] The partitioning module 104 may be configured to divide the pair of images into one or more sections according to the segmentation map. For each predefined section of the one or more sections, the disparity map generator 108 may be configured to calculate a disparity map for the predefined section. The disparity map includes disparity values, each disparity value indicating a difference in position between a respective pixel in the predefined section of the first image and a pixel that matches the predefined section in the second image. The matching pixel may be searched for within a defined range within the same segment to which the respective pixel belongs. The depth map generator 112 may be configured to calculate a depth map for the predefined section based on the disparity map. The depth maps for each predefined section may be combined and used to generate a depth map for the pair of images.
[0045]
[0057] Optionally, in an embodiment, the PMC 102 may further comprise a displacement estimation module 106 configured to estimate the displacement of a given section between the first image and the second image, thereby resulting in an overlap region in the given section between the first image and the second image. Thus, a disparity map and a depth map are generated for the overlap region of the given section. Details of the image processing by these functional modules are described below with reference to Figures 2 to 4.
[0046]
[0058] In an embodiment, the storage unit 122 may include an image database 123 that may be configured to store inputs to the system 100, including captured images and segmentation maps. In some cases, inputs may be pre-captured from the imager 130 and segmentation module 132 and stored in the image database 123 for retrieval and processing by the PMC. The storage unit 122 may be configured to store any intermediate and / or output processing results, such as, for example, disparity maps, depth maps, etc. Alternatively, the image database 123 may reside outside the system 100, for example, in one of an external data repository or an external system or provider, and images may be retrieved via the I / O interface 126.
[0047]
[0059] The I / O interface 126 may be configured to receive captured images and segmentation maps as inputs, and provide depth maps as outputs. Optionally, the system 100 may further comprise a Graphical User Interface (GUI) 124 configured to render the inputs and / or outputs for display to a user. Optionally, the GUI may be configured to validate user-specified inputs to the operating system 100.
[0048]
[0060] Also, the system illustrated in FIG. 1A and / or FIG. 1B may be implemented in a distributed computing environment. As an example, some of the functional modules illustrated in FIG. 1A may be distributed among several local and / or remote devices and linked through a communication network. As another example, the system 100 may be located at a different location than the imager 130 and / or the segmentation module 132. In some cases, the functionality of the imager 130 and / or the segmentation module 132, or at least a part thereof, may be integrated into the system 100. For example, in an embodiment, the system 100 may further comprise the segmentation module 132 and may be configured to perform segmentation, as described below with reference to FIG. 2.
[0049]
[0061] Those skilled in the art will readily appreciate that the teachings of the subject matter of the present disclosure are not bound to the systems illustrated in Figures 1A and 1B; equivalent and / or modified functionality may be integrated or divided in other ways and implemented in appropriate combinations of software, firmware and hardware. The systems of Figures 1A and 1B may be standalone network entities or may be fully or partially integrated with other network entities. Those skilled in the art will also readily appreciate that the data repository or storage units therein may be shared with other systems or provided by other systems, including third-party equipment.
[0050]
[0062] Although not necessarily so, the operational processes of system 100 may correspond to some or all of the steps of the methods described with respect to Figures 2-4. Similarly, the methods described with respect to Figures 2-4 and their possible implementations may be implemented by system 100. Thus, embodiments described in relation to the methods described with respect to Figures 2-4 may be implemented as various embodiments of system 100, and vice versa, mutatis mutandis.
[0051]
[0063] Referring now to FIG. 2, there is shown generally a generalized flow chart of depth map generation according to certain embodiments of the subject matter of this disclosure.
[0052]
[0064] A pair of images including a first image and a second image may be acquired (202) (e.g., by the PMC 102 via the I / O interface 126 shown in FIG. 1A). The pair of images is acquired by the at least one imaging device at two time points during the relative movement between the vehicle and the at least one imaging device. As described above, the at least one imaging device continuously acquires images at multiple time points during the relative movement between the vehicle and the imaging device, so that each image captures a specific portion (e.g., a "slice") of the surface portion of the vehicle within a predefined area (corresponding to the field of view (FOV) of the imaging device) at a given time point. Thus, the first and second images of the pair capture respective portions of the surface portion, and the captured portions are partially overlapped. As an example, the pair of images may be two frames taken from multiple images, as described above with reference to FIG. 5.
[0053]
[0065] As mentioned above, the number of adjacent frames that are partially overlapped may range from 2 to N (N>2), depending on factors such as the speed of relative motion and the capture rate of the imaging device. Thus, in some cases, the first and second images may be obtained at two successive time points, such as frames f1 and f2 captured at successive time points t1 and t2, as shown in FIG. 5. In other cases, frames f1 and f2 may be captured at successive time points t1 and t2, as shown in FIG. n The first and second images may be, for example, frames f1 and f5 captured at time points t1 and t5, or frames f2 and f3 captured at time points t1 and t4, as long as they share an overlapping region. n Frames f1 and f2 are captured at n etc. In one example, the first and second images are overlapped by at least 50%.
[0054]
[0066] According to certain embodiments, a sequence of images can be combined together to form an overall image capturing the surface portion. For example, frames can be stitched together to form a stitched image. A pair of images constitutes a portion of the overall image capturing the surface portion. Such stitched images, which usually have a relatively high resolution, can be used for segmentation purposes, for example, as described below with reference to block 204. The position of a particular frame relative to the overall sequence of frames can be preserved during the process of creating the overall image and can be used in a subsequent process to stitch the generated depth map. In some cases, the stitched image generation functionality or at least a part thereof can be integrated within the PMC 102. Alternatively, such functionality can be provided by the imaging device or some other image processing module, and the stitched image can be transmitted to the PMC via an I / O interface.
[0055]
[0067] In an embodiment, optionally, the captured pair of images may be pre-processed (e.g., by the imager 130 or by the PMC 102 of the system 100 upon transmission thereto) before being used for depth estimation. As an example, the pre-processing may include a vertical alignment process applied to the pair of images to ensure orientation invariance. In particular, features characterizing the first and second images may be extracted, respectively. As an example, the features may be extracted from high contrast regions of the images and may include, for example, edges and corners, etc. For example, in some cases, a corner (e.g., intersection of two or more edges) detection algorithm may be used to find the features. The extracted features may be matched between the first and second images. As an example, feature matching may be performed by using distance metrics, such as, for example, Euclidean distance, Hamming distance, etc. The vertical displacement of the matched features may be calculated along the vertical direction (i.e., the direction perpendicular to the direction of relative movement). The pair of images may be aligned according to the vertical displacement.
[0056]
[0068] Referring now to FIG. 6, an exemplary diagram of vertical alignment is shown, according to certain embodiments of the subject matter of this disclosure.
[0057]
[0069] A pair of images f1 and f2 capturing respective parts of the vehicle chassis are shown in FIG. 6. The X-axis represents the direction of relative movement between the vehicle and the image device. The Y-axis represents the direction along the width of the vehicle. After performing feature extraction and feature matching as described above, one of the matched features is exemplified as a corner feature indicated by coordinates (x1, y1) at f1 and coordinates (x2, y2) at f2. The vertical displacement of the corner feature can be calculated along the Y-axis direction (i.e., perpendicular to the relative movement). The vertical displacement indicates the extent to which the matched feature has moved in the Y direction between f1 and f2. In other words, the vertical displacement represents the relative movement between (x2, y2) and (x1, y1) in the Y direction as resulting from the movement. If there are multiple matched features between two frames, an average vertical displacement can be calculated based on the vertical displacement of each matched feature. The pair of images can be adjusted / aligned according to the (average) vertical displacement. For example, f2 can be shifted in the Y direction based on the average vertical displacement. Therefore, after adjustment, frames f1 and f2 are vertically aligned, thereby allowing disparity estimation to be performed along the X-axis (i.e., the direction of relative movement).
[0058]
[0070] Continuing with the description of FIG. 2, a segmentation map corresponding to at least a portion of an entire image (i.e., a pair of images that make up a portion of the entire image) may be obtained (204) (e.g., by PMC 102 via I / O interface 126 shown in FIG. 1A). The segmentation map includes one or more segments that correspond to one or more vehicle components included in the at least a portion of the entire image. By way of example, the vehicle components may be mechanical components of the vehicle.
[0059]
[0071] According to certain embodiments, an entire image may be generated by stitching together multiple images captured by at least one imaging device at multiple time points. The segmentation map may correspond to the entire image and may include one or more segments corresponding to one or more vehicle components included in the surface portion.
[0060]
[0072] According to certain embodiments, the segmentation map may be generated to correspond to only a portion of the entire image. As an example, upon acquisition of the first and second images, the first and second images may be stitched together to form a partial image of the entire vehicle chassis image, and segmentation may be performed on the partial image to obtain a segmentation map corresponding to the partial image. In such a case, the segmentation map may be generated "on the fly" while scanning and acquiring a series of images.
[0061]
[0073] In the present disclosure, it is proposed that a depth map is generated based on a segmentation, thereby improving the performance of the depth estimation system, such as accuracy and efficiency. This is due at least to the fact that different vehicle components, especially mechanical components, usually correspond to different depth levels relative to the imaging device. Therefore, by performing depth estimation on the segmentation, which includes dividing the image according to the segmentation, searching for matching pixels in the same segment, and using a specific matching method regularized by the segmentation factor, the generated depth map can be generated in a more efficient manner with higher accuracy.
[0062]
[0074] It should be noted that the division of a vehicle part (e.g., chassis, etc.) into mechanical components may vary depending on, for example, the required resolution, etc. As an example, a particular mechanical component can be further divided into subcomponents. It should therefore be understood that the correspondence / mapping between segments and mechanical components is not fixed and can be adapted accordingly. For example, one segment may correspond to one or more mechanical components, or alternatively, one mechanical component may correspond to one or more segments. The present disclosure is not limited by a particular division of mechanical components and / or the correspondence between segments and mechanical components.
[0063]
[0075] 7 illustrates an example of an entire image and corresponding segments according to certain embodiments of the subject matter of this disclosure. As shown, the exemplary image 704 captures the undercarriage of a vehicle. The image 704 is segmented into a number of segments as shown in 702. The segmentation is performed such that the segments in 702 correspond to the following exemplary machine components: exhaust system, fuel tank, engine, wheels, suspension and chassis, etc. By way of example, in the current illustration, there is one segment 706 that corresponds to the entire exhaust system component. However, in other cases, the exhaust system may be further divided into sub-components / parts, such as one or more exhaust pipes, and the segments may correspond to the sub-components.
[0064]
[0076] According to certain embodiments, the segmentation map may be generated using a segmentation model. The segmentation model may be based on machine learning. By way of example, the segmentation model may be implemented as a segmentation deep learning model, such as a deep learning neural network (also referred to as deep neural network or DNN). The segmentation deep learning model may be considered to be included in the segmentation module 132. As mentioned above, in some embodiments, the functionality of the segmentation module, or at least a part thereof, may be integrated into the system 100. In other words, in some cases, the system 100 may be configured to perform segmentation as described above to generate the segmentation map.
[0065]
[0077] A DNN referred to herein may be a supervised or unsupervised DNN that includes multiple layers organized according to a respective DNN architecture. As a non-limiting example, the layers of a DNN may be organized according to a convolutional neural network (CNN) architecture, a recurrent neural network architecture, a recurrent neural network architecture, a GAN architecture, or others. Optionally, at least some of the layers may be organized into multiple DNN sub-networks. Each layer of a DNN may include multiple basic computational elements (CEs), commonly referred to in the art as dimensions, neurons, or nodes.
[0066]
[0078] The weights and / or thresholds of the DNN may be initially selected prior to training and may be further iteratively adjusted or modified during training to achieve an optimal set of weights and / or thresholds for the trained DNN. After each iteration, a difference between the actual output generated by the DNN and the target output associated with the respective training set of data may be determined. This difference may be referred to as an error value. Training may be deemed complete when a cost function indicating the error value is less than a predefined value or when limited change in performance between iterations has been achieved.
[0067]
[0079] The set of input data used to adjust the weights / thresholds of a machine learning model is hereinafter referred to as a training set or training data set or training data.
[0068]
[0080] In one embodiment, the segmentation learning model may be trained using a training dataset that includes a set of training images of vehicle surface parts that have been pre-segmented according to one or more vehicle components contained therein. The training images and segmentation labels are provided as training inputs to the segmentation model. The goal of the training process is to optimize the model so that it can accurately predict the segmentation labels (e.g., pixel-wise or block-wise segmentation labels) of the input images. In some cases, different training datasets covering images of different types of vehicles may be provided to train the model so that it can segment different types of upcoming vehicles at run time.
[0069]
[0081] It should be noted that DNNs are described herein as an example of implementing machine learning models, and the teachings of the subject matter of this disclosure are not bound to the type or specific architecture of the DNNs described above. Other types and / or structured machine learning models may be used in addition or instead.
[0070]
[0082] Continuing with FIG. 2, the pair of images may be divided 206 (eg, by partitioning module 104 shown in FIG. 1A) into one or more sections according to the segmentation map.
[0071]
[0083] According to certain embodiments, the pair of images may be divided into one or more sections along a direction perpendicular to the direction of relative motion according to the segmentation map, hi certain other embodiments, the pair of images may be divided into one or more sections corresponding to one or more segments in the segmentation map.
[0072]
[0084] 8A and 8B, an example of dividing a pair of images into sections is shown in accordance with certain embodiments of the subject matter of this disclosure.
[0073]
[0085] 8A shows a pair of images including a first image 802 and a second image 804 captured at time instants t and t+1, respectively. As previously mentioned, the first image and the second image are partially overlapped. In this example, the overlapping area is shown as the right portion of the first image 802 and the left portion of the second image 804 according to the time sequence in which the two images are acquired. To divide the pair of images into sections along the vertical direction (perpendicular to the direction of relative motion), it is necessary to determine where to place the horizontal dividing line (i.e., horizontal parallel to the direction of relative motion).
[0074]
[0086] According to a particular embodiment, it is determined to place a dividing line in the overlapping region based on the segmentation. As an example, a horizontal dividing line 806 starts from a separation point 808 between two segments in the left part of the second image 804 and extends horizontally to divide the first image and the second image into section 1 and section 2. Similarly, horizontal dividing lines 812 and 814 further divide the pair of images into section 3 and section 4. Thus, the pair of images is divided into four sections (e.g., sections 1-4) along the vertical direction by the dividing line.
[0075]
[0087] Alternatively, instead of determining the division according to the segments of the overlapping area in the second image, it is possible to perform the division according to the segments of the overlapping area in the first image. As an example, a horizontal division line can start from a separation point 810 between the two segments on the right part (i.e., the overlapping area) of the first image 804 and extend horizontally to separate the pair of images into two sections.
[0076]
[0088] In some embodiments, a particular section divided as described above may include more than one segment. For example, as shown in FIG. 8B, section 1, divided by horizontal dividing line 806, includes two segments (separated by dividing line 816), while sections 3 and 4 include single segments.
[0077]
[0089] According to a further embodiment, instead of dividing the pair of images along a direction perpendicular to the direction of relative movement (i.e., at the horizontal dividing line described above), the pair of images may be divided into one or more sections corresponding to one or more segments of the segmentation map. By way of example, the sections may be divided to match the segments of the segmentation map. For example, the pair of images 802 and 804 of FIG. 8B may be divided using a separation line 816 instead of the horizontal dividing line 806.
[0078]
[0090] The present disclosure is not limited by any particular method of dividing the sections (e.g., using either a horizontal dividing line or a separating line), so long as it follows the segmentation (as shown in the segmentation map) of the pair of images (e.g., specifically, the segments of the overlapping areas of the two images).
[0079]
[0091] Returning to FIG. 2, once one or more sections are divided, a depth map may be generated for each given section (208). Specifically, according to a particular embodiment, a disparity map may be calculated (210) for the given section (e.g., by the disparity map generator 108 shown in FIG. 1A). The disparity map includes disparity values, each indicating a difference in position between a respective pixel in the given section of the first image and a matching pixel of that given section in the second image. The matching pixels may be searched (e.g., by the matching module 110) within a defined range within the same segment to which the respective pixel belongs. A depth map may be calculated (212) for the given section based on the disparity map (e.g., by the disparity map generator 112 shown in FIG. 1A).
[0080]
[0092] In an embodiment, optionally, for computational efficiency, the generation of the depth map may be based on an estimation of the displacement between a pair of images. Referring now to Figure 3, a generalized flow chart is shown for generating a depth map for each predefined section in accordance with certain embodiments of the subject matter of this disclosure.
[0081]
[0093] Specifically, a displacement of the given section between the first and second images is estimated (302), which may result in an overlap region of the given section between the first and second images. The displacement of the given section refers to how much the given section has moved between the first and second images. In other words, the displacement of the given section represents the relative position of the given section between the two images due to the movement of the vehicle. In some embodiments, the displacement of the given section between the first and second images may be estimated with respect to one or more displacements of the given section in one or more previous pairs of images.
[0082]
[0094] Thus, a disparity map may be calculated for the overlap region within the given section based on the displacement (304). Matching pixels are searched for within a range defined based on the displacement and within the same segment to which the respective pixels belong. A depth map may be calculated for the overlap region within the given section based on the disparity map (306).
[0083]
[0095] Referring now to FIG. 9, an example of estimating the displacement of each section is shown, according to certain embodiments of the subject matter of this disclosure.
[0084]
[0096] Continuing with the exemplary pair of images shown in FIG. 8A, in which four sections (e.g., sections 1-4) are divided along the vertical direction. For each section, a reference line of the overlapping region can be used to estimate the displacement of each of the sections. As an example, the reference line can be selected as a line 902 along the left edge of the second image 804. The line 902 is divided into four parts according to the divided sections of the image. For each part of the line 902, a matching line can be identified in the corresponding section of the first image 802. For example, for a first part of the line 902, a matching line 904 is found in the first section of the first image 802. The matching line can be found using a similarity metric. For example, the first part of the line 902 can be represented as a vector, and a search can be performed in the first section of the first image. The line whose vector representation is most similar to that of the line 902 can be selected as the matching line. A distance 906 between the matching line 904 and the left edge of the first image corresponds to the displacement of the first section. The region 908 in the first section between the matching line 904 and the right edge of the first image is the overlap region between the first image 802 and the second image 804 .
[0085]
[0097] Similarly, matching lines can be found and corresponding overlap regions can be derived for each of the other three sections corresponding to the respective portions of the reference line 902 and the respective displacements 910, 912 and 914, as shown in the first image 802. As can be seen, the displacements of each section are different from each other (as illustrated in the zoomed out view 916, where the relative positions of the displacements of section 2 and section 3 are shown).
[0086]
[0098] It should be noted that, although in the example of FIG. 9, a reference line is selected from the second image and the displacement is shown on the first image, this is not necessarily the case and should not be considered as limiting the present disclosure in any way. Alternatively, the reference line may be selected from the first image. As an example, the reference line may be selected as a line along the right edge of the first image and the displacement of each section may be shown on the second image. The present disclosure is not limited by a particular method of estimating the displacement of each section between the first image and the second image.
[0087]
[0099] According to a particular embodiment, a depth map is generated for the overlap region of each section. As described with reference to block 304, the displacements can be used to define a search range for finding matching pixels for each pixel in the overlap region so that a disparity map for the overlap region can be calculated.
[0088]
[0100] Disparity refers to the difference in location (i.e., horizontal coordinate) of corresponding features or image points in a pair of images. In other words, disparity indicates the displacement of a pixel (or pixel block) in the second image relative to its location in the first image. According to certain embodiments of the present disclosure, a disparity map is calculated (304) separately for the overlap region of each given section of the one or more divided sections. The disparity map includes disparity values each indicating the difference in location between a respective pixel in a given section of the first image and a matching pixel of that given section in the second image. The disparity map values are inversely proportional to the scene depth of the corresponding pixel location. Using the disparity values, a depth map can be generated given the focal length of the imaging device and the distance between the two images.
[0089]
[0101] Referring now to FIG. 4, a generalized flow chart for computing a disparity map in accordance with certain embodiments of the subject matter of this disclosure is shown.
[0090]
[0102] For each given pixel in the overlapping region in the first image, a range is defined (402) in the second image and in the same segment to which the given pixel belongs, based on the displacement (e.g., by the matching module 110 of the disparity map generator 108). As an example, as shown in FIG. 9, for each pixel in the overlapping region 908 of the first image, a search range is defined to be within the corresponding overlapping region of the second image (as derived by the displacement). Furthermore, as illustrated in FIG. 8B, section 1 actually includes two segments. Therefore, when defining a search range for a pixel in a specific segment in the first section, the range of the matching pixel should be further limited within the same specific segment in the second image. In an embodiment, the matching pixel may be searched for within the defined range, taking into account the matching feature derived in the vertical alignment process, as described with reference to FIG. 6. As an example, if the given pixel belongs to an extracted feature in the first image, the matching pixel of the given pixel is searched for within the defined range and also within the matched feature of the extracted feature (if any).
[0091]
[0103] Using a matching method, matching pixels for a given pixel in a second image within a defined range can be searched for (e.g., by the matching module 110) (404). The difference in position between the given pixel and the matching pixels can be calculated (e.g., by the disparity map generator 108) (406), which can produce a disparity value corresponding to the given pixel.
[0092]
[0104] As an example, one matching method that can be used to find matching pixels in the present disclosure is an optimized semi-global matching method regularized by a segmentation coefficient. Semi-global matching (SGM) refers to a computer vision algorithm for estimating a disparity map from a modified pair of images (e.g., a vertically aligned pair of images).
[0093]
[0105] Specifically, given a modified pair of images, for a pixel having coordinates (x, y) in one image, usually a set of pixel candidates in the other image is selected by the search range defined above. As an example, the set of pixel candidates (x’, y) can be selected as {(x’, y)|x>x + d} or {(x’, y)|x<x + d} depending on which of the two images the given pixel is from, where d refers to the displacement. The set of pixel candidates (x’, y) is further restricted to belong to the same segment as (x, y). Generally, the similarity of a pixel in one image to each pixel within the set of pixel candidates in the other image can be measured using a similarity measure. Due to the fact that the similarity test for the most matching pixels can generate many false matches, a cost function composed of a matching term D(p, dp) and a regularization term R(dp, dq) that penalizes jumps in disparity between adjacent pixels in the following form can be used: TIFF0007566358000001.tif5170D(p, dp) is the disparity d pis the per-pixel dissimilarity cost at pixel p having it, and R(p, dp, q, dq) is the regularization cost between pixels p and q having disparities dp and dq respectively for all pairs of adjacent pixels N.
[0094]
[0106] The dissimilarity cost D(p, dp) can in principle use any local image dissimilarity measure, such as for example the absolute or squared intensity difference. The regularization term has the following form: TIFF0007566358000002.tif15170P1 and P2 are two constant parameters, with P1 < P2. The three-way comparison allows a smaller penalty to be assigned for a unitary change in disparity, thus allowing for example a smooth transition corresponding to a slope, and imposing a penalty on larger jumps while maintaining the discontinuity by a constant penalty term.
[0095]
[0107] According to a particular embodiment of the subject matter of the present disclosure, an optimized semi-global matching method regularized by a segmentation coefficient is used to find the matching pixels for each pixel within the overlapping region. As an example, the optimized semi-global matching method can be regularized by adjusting its cost function according to the segmentation coefficient. The segmentation coefficient can indicate whether a candidate pixel and one or more of its adjacent pixels belong to the same segment. The matching pixels are selected from one or more candidate pixels within a defined range using the adjusted cost function. An example of the adjusted cost function can be in the following form: TIFF0007566358000003.tif5170D(p, dp) is the per-pixel dissimilarity cost at pixel p having disparity d p is the per-pixel dissimilarity cost at pixel p having it, and R(p, dp, q, dq, s), also referred to as R(p, dp, sp, q, dq, sq), is the regularization cost adjusted using an additional segmentation coefficient, that is, for all pairs of adjacent pixels N, disparities d p and d q and segment sp , s q is the regularization cost between pixels p and q with
[0096]
[0108] Specifically, the regularization cost R(p, dp, sp, q, dq, sq) may be of the form: TIFF0007566358000004.tif27170P1, P2, P3 and P4 are four constant parameters, P1 <P2<P3<P4である。
[0097]
[0109] The adjusted cost function utilizes a five-way comparison that considers the segments of pixels p and q. Specifically, in addition to considering the change in disparity between pixels p and q (e.g., whether dp=dq, |dp-dq|=1 or |dp-dq|>1), care is also taken to consider whether pixels p and q belong to the same segment or different segments. A small penalty is assigned to unitary changes in disparity between p and q and if p and q belong to the same segment, while large jumps in disparity are penalized, especially if p and q belong to different segments.
[0098]
[0110] 10A and 10B, an example of searching for matching pixels using an improved semi-global matching method according to certain embodiments of the subject matter of this disclosure is shown.
[0099]
[0111] Continuing with an exemplary pair of images 802 and 804, a given pixel 1002 in the overlap region of the first image 802 is shown in FIG. 10A. To search for a matching pixel for the given pixel 1002, a horizontal scan line 1004 may be drawn and a search range 1006 may be defined along the scan line 1004 in the second image (i.e., from the left edge of the overlap region to the intersection with the dashed line). A matching pixel is searched for within the defined range 1006 in the second image using an improved semi-global matching method.
[0100]
[0112] Specifically, according to a particular embodiment, when applying a dissimilarity cost D(p, dp) to pixels within a range with respect to a given pixel, three candidates 1008 that provide the smallest dissimilarity cost are selected, as shown in the graph shown in FIG. 10A (Y-axis represents dissimilarity cost, and X-axis represents disparity value). The three candidates 1008 correspond to three candidate pixels 1010 within the searched range in the second image. For each of the three candidate pixels, an adjusted regularization cost R(p, dp, sp, q, dq, sq) may be applied to its one or more neighboring pixels with respect to the candidate pixel, and the candidate pixel that provides the smallest regularization cost (indicating the unitary change in disparity between the neighboring pixels and the candidate pixel taking into account the segmentation coefficients) may be selected as the matching pixel of the given pixel 1002.
[0101]
[0113] In the example shown in FIG. 10B with the same pair of images 802 and 804, another given pixel 1020 in the overlap region of the first image 802 is shown. As shown in the graph shown in FIG. 10B, after applying the dissimilarity cost D(p, dp) to the pixels in the search range with respect to the given pixel, only one candidate 1022 that provides the smallest dissimilarity cost is selected. The candidate 1022 corresponds to a candidate pixel 1024 in the searched range of the second image. Since there is only one candidate pixel, there is no need to apply a regularization cost to it and the candidate pixel 1024 is selected as the matching pixel of the pixel 1020.
[0102]
[0114] Returning to Figure 4, once a matching pixel is found, the position difference between the given pixel and the matching pixel is calculated (406), yielding a disparity value corresponding to the given pixel. After the processes of 402-406 have been performed for each pixel in the overlap region, a disparity map containing disparity values is generated for the overlap region in the given section, as described in block 304 of Figure 3.
[0103]
[0115] Continuing with FIG. 2, a depth map may be calculated (212) (e.g., by depth map generator 112) for the overlap region within a given section based on the disparity map. As discussed above, the disparity map values are inversely proportional to the scene depth at the corresponding pixel location. As an example, the disparity values may be used to generate a depth map given the focal length of the imager and the distance between the two images.
[0104]
[0116] According to certain embodiments, the depth maps for a given section can be combined and used to generate a depth map for a pair of images. As an example, a depth map of the overlapping regions in each of the four sections is generated, as shown in FIG. 9. The four depth maps can be combined to generate a depth map for a pair of images. For example, the combined depth map can correspond to a common overlapping region among the overlapping regions in the four sections.
[0105]
[0117] 11 illustrates common overlapping areas between overlapping areas of various sections according to certain embodiments of the subject matter of the present disclosure. As shown, vertical stripes 1102 represent common / shared overlapping areas between four sections. For example, the common overlapping area may be extracted from the four overlapping areas according to the smallest horizontal dimension among the four overlapping areas.
[0106]
[0118] According to certain embodiments, the depth map generated for the common overlap region of a pair of images can be used to generate a complete depth map corresponding to the entire surface portion of the vehicle. As illustrated in FIG. 5, a series of image frames are captured by the imaging device at multiple n points in time during the relative movement between the vehicle and the imaging device. nEach pair of images captures a respective portion of the chassis, and the captured portions are partially overlapped within the range. Thus, the depth estimation process described in FIG. 2 may be performed for each pair of images (e.g., each of two adjacent frames), and the depth maps generated for each pair of images may be combined / stitched together to form a complete depth map corresponding to the chassis. FIG. 12 illustrates an example of an original chassis image and a complete depth map corresponding to the chassis, according to certain embodiments of the subject matter of this disclosure. As illustrated, the different gray levels of the depth map 1204 indicate the different depth levels of the original image 1202 relative to the viewpoint. In this example, the brighter the pixel, the closer the gray level is to the viewpoint.
[0107]
[0119] According to certain embodiments, the generated depth map may be further processed to provide an optimized depth output. As an example, a confidence mask may be generated corresponding to the depth map, indicating the confidence level of the depth estimation of each pixel / value in the depth map. For pixels in the depth map with low confidence, an optimization process may be performed to replace or modify such pixels (e.g., neighboring pixels) using pixel data with high confidence.
[0108]
[0120] The generated depth map may be used in various applications. In an embodiment, the depth map may be used to detect anomalies in a target object / scene captured in an image. An anomaly may refer to any item, object, or observation appearing in an image that does not match an expected pattern, behavior, or other item in the image. Typically, an identified anomaly may indicate a certain type of potential defect, threat, malfunction, or the like. As an example, if the target object in the image is a vehicle chassis, an anomaly may be an additional object embedded therein that does not originally belong to the vehicle, or an existing object observed as having a different appearance than expected. As another example, an anomaly may be a suspicious observation of the vehicle chassis, for example, if the frame of the chassis was painted a different color that distinguishes it from the normal chassis appearance. As another example, if the target object in the image is a vehicle tire / wheel, an anomaly may refer to damage or wear (such as scratches) on the tire. Specifically, in some cases, the depth map may be used as an additional input (e.g., in addition to the original input image) provided to train a machine learning model used for anomaly detection.
[0109]
[0121] As another example, a depth map can be used to create a 3D model of an object / scene captured in an image. For example, a 3D model of a vehicle can be created based on an original captured 2D image providing data in two dimensions and a corresponding depth map providing data in three dimensions.
[0110]
[0122] One of the technical advantages resulting from certain aspects of the present disclosure is the optimization of depth estimation, for example, by improving the accuracy of the generated depth map and increasing computational efficiency. This is achieved at least by utilizing the segmentation results of the input images, specifically by dividing a pair of images into multiple sections according to the segmentation, and defining a search range based on the segments, so that the search can be more efficient and accurate when searching for matching pixels. Furthermore, in some cases, the matching pixels can be searched for using an optimized matching method regularized by the segmentation factor. Specifically, the cost function of the matching method is adjusted according to the segmentation factor indicating the segmentation of the candidate pixel, thereby increasing the chance of finding the best matching pixel.
[0111]
[0123] It should be noted that, although certain embodiments of the present disclosure are described with the example of vehicle images, this is for purposes of illustration and explanation only, and the depth estimation methods of the present disclosure may be utilized for images having any target content / scene and objects / entities contained therein.
[0112]
[0124] According to a particular embodiment, a method of depth map generation includes the steps of: acquiring a pair of images including a first image and a second image acquired by at least one imaging device at two time points during a relative movement between a target scene / object and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the target scene / object, the captured portions being partially superimposed, and the pair of images constituting a portion of an entire image capturing the surface portion; acquiring a segmentation map corresponding to at least a portion of the entire image, the segmentation map including one or more segments corresponding to one or more components included in the at least a portion of the entire image, the one or more components being located at respective depth levels relative to the imaging device. The method may include steps of: obtaining a depth map based on the disparity map; dividing the pair of images into one or more sections according to the segmentation map; and generating a depth map for each predetermined section of the one or more sections, the depth map comprising: i) calculating a disparity map for the predetermined section, the disparity map including disparity values each indicating a difference in position between a respective pixel in the predetermined section in the first image and a matching pixel of that predetermined section in the second image, the matching pixels being searched within a defined range within the same segment to which the respective pixel belongs; and ii) calculating a depth map for the predetermined section based on the disparity map, the depth map for each predetermined section being combineable and usable to generate a depth map for the pair of images.
[0113]
[0125] It should be understood that the examples and embodiments illustrated with reference to depth estimation systems in this disclosure are by no means inclusive of all possible alternatives, but are intended to illustrate non-limiting examples only.
[0114]
[0126] It is to be understood that the present disclosure is not limited in its application to the details described in the description contained herein or shown in the drawings. The present disclosure enables other embodiments and can be practiced and carried out in various ways. It is therefore to be understood that the phraseology and terminology employed herein are for the purpose of description and should not be regarded as limiting. Thus, those skilled in the art will appreciate that the conception on which the present disclosure is based may be readily utilized as a basis for the designing of other structures, methods and systems for carrying out some of the purposes of the subject matter of the present disclosure.
[0115]
[0127] It will also be appreciated that the system according to the present disclosure may be implemented, at least in part, in a suitably programmed computer. Similarly, the present disclosure contemplates a computer program readable by a computer for carrying out the methods of the present disclosure. The present disclosure further contemplates a non-transitory computer readable memory or storage medium tangibly embodying a program of instructions executable by a computer to carry out the methods of the present disclosure.
[0116]
[0128] A non-transitory computer-readable storage medium that enables a processor to perform aspects of the present disclosure may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer-readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof.
[0117]
[0129] Those skilled in the art will readily appreciate that various modifications and changes can be applied to the embodiments of the present disclosure described above without departing from the scope thereof, as defined in and by the appended claims.
Claims
1. 1. A computerized method of depth map generation, the method being performed by a processor and memory circuit (PMC), the method comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between the vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an overall image capturing the surface portion; obtaining a segmentation map corresponding to at least a portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least a portion of the entire image; dividing the pair of images into one or more sections according to the segmentation map; generating a depth map for each predetermined section of the one or more sections, i) calculating a disparity map for the given section, the disparity map comprising disparity values each indicating a difference in position between a respective pixel in the given section of the first image and a corresponding pixel of the given section in the second image, the corresponding pixel being searched within a range defined based on the displacement of the given section between the first and second images and within the same segment in the second image to which each pixel in the first image belongs; ii) calculating a depth map for the predetermined section based on the disparity map, wherein the depth maps for each predetermined section can be combined and used to generate a depth map for the pair of images.
2. generating the depth map further comprises estimating the displacement of the predetermined section between the first image and the second image, thereby resulting in an overlap region of the predetermined section between the first image and the second image; the calculating step includes calculating a disparity map of the overlap region within the predetermined section based on a displacement of the predetermined section; The computerized method of claim 1 , wherein the calculating step comprises calculating a depth map of the overlap region within the predetermined section based on the disparity map.
3. The computerized method of claim 1 , wherein the pair of images is divided into one or more sections along a direction perpendicular to the direction of the relative movement according to the segmentation map.
4. The computerized method of claim 1 , wherein the pair of images is divided into one or more sections corresponding to the one or more segments of the segmentation map.
5. The computerized method of claim 2 , wherein the displacement of the given section between the first image and the second image is estimated with respect to one or more displacements of the given section in one or more previous pairs of images.
6. The step of calculating the disparity map comprises, for each given pixel in the overlap region of the first image, defining an area in the second image based on the displacement and within the same segment to which the given pixel belongs; searching for a matching pixel of the given pixel in the second image within the defined range using a matching method; and calculating a position difference between the given pixel and the matching pixel to yield a disparity value corresponding to the given pixel.
7. The computerized method of claim 6 , wherein the matching method is an optimized semi-global matching method regularized by a segmentation factor.
8. 8. The computerized method of claim 7, wherein the optimized semi-global matching method is regularized by adjusting its cost function according to the segmentation factor, the segmentation factor indicating whether a candidate pixel and one or more neighboring pixels of the candidate pixel belong to the same segment, and the searching step includes using the adjusted cost function to select the matching pixel from the defined range of one or more candidate pixels.
9. The computerized method of claim 1 , wherein the surface portion is an undercarriage of the vehicle.
10. The computerized method of claim 1 , wherein the first image and the second image are overlapped by at least 50%.
11. 2. The computerized method of claim 1, wherein the entire image is generated by stitching together multiple images captured by the at least one imaging device at multiple time points, the segmentation map corresponds to the entire image, and the segmentation map includes one or more segments corresponding to one or more vehicle components included in the surface portion.
12. A computerized method of depth map generation, the method being performed by a processor and memory circuit (PMC), the method comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between the vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an overall image capturing the surface portion; obtaining a segmentation map corresponding to at least a portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least a portion of the entire image; dividing the pair of images into one or more sections according to the segmentation map; generating a depth map for each predetermined section of the one or more sections, i) calculating a disparity map for said predetermined section, said disparity map comprising disparity values each indicating a difference in position between a respective pixel in said predetermined section of said first image and a corresponding pixel of said predetermined section in said second image, said corresponding pixels being searched within a defined range within the same segment to which each said pixel belongs; ii) calculating a depth map for the predetermined section based on the disparity map, the depth map for each predetermined section being usable in combination to generate a depth map for the pair of images; the entire image is generated by stitching together a plurality of images captured by the at least one image capture device at a plurality of time points, the segmentation map corresponds to the entire image, and the segmentation map includes one or more segments corresponding to one or more vehicle components included in the surface portion; A computerized method, wherein the segmentation map is generated using a segmentation model, the segmentation model being trained using a training dataset comprising a set of training images of the surface portion of the vehicle that have been pre-segmented according to the one or more vehicle components contained in the surface portion.
13. 2. The computerized method of claim 1, further comprising the steps of: extracting features from the pair of images; matching the features between the first and second images; calculating a vertical displacement of the matched features along a direction perpendicular to the direction of the relative movement; and aligning the pair of images according to the vertical displacement.
14. The computerized method of claim 13 , wherein the matching pixels are searched for in a defined range within the same segment given the matched features.
15. 1. A computerized system for generating depth maps, the system comprising a processor and memory circuit (PMC), the processor and memory circuit (PMC) comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between the vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an overall image capturing the surface portion; obtaining a segmentation map corresponding to at least a portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least a portion of the entire image; Dividing the first image into one or more sections according to the segmentation map; generating a depth map for each predetermined section of the first image, i) calculating a disparity map for the given section, the disparity map comprising disparity values, each indicating a difference in position between a respective pixel in the given section of the first image and a corresponding pixel of the given section in the second image, the corresponding pixel being searched within a range defined based on the displacement of the given section between the first and second images and within the same segment in the second image to which each pixel in the first image belongs; ii) calculating a depth map for the predetermined section based on the disparity map, wherein the depth map for each predetermined section can be used to combine and generate a depth map for the pair of images.
16. When generating the depth map, the PMC is further configured to estimate the displacement of the predetermined section between the first image and the second image, thereby resulting in an overlap region of the predetermined section between the first image and the second image; 16. The computerized system of claim 15, wherein the PMC is configured to calculate a disparity map of the overlap region within the predetermined section based on a displacement of the predetermined section, and to calculate a depth map of the overlap region within the predetermined section based on the disparity map.
17. The computerized system of claim 15 , wherein the first image is divided into one or more sections according to the segmentation map along a direction perpendicular to the direction of the relative movement.
18. The computerized system of claim 15 , wherein the first image is divided into one or more sections corresponding to the one or more segments of the segmentation map.
19. 17. The computerized system of claim 16, wherein the displacement of the given section between the first image and the second image is estimated with respect to one or more displacements of the given section in one or more previous pairs of images.
20. The PMC is For each predetermined pixel in the overlap region of the first image, defining a region of the second image based on the displacement and within the same segment to which the given pixel belongs; searching for a matching pixel of the given pixel in the second image within the defined range using a matching method; 17. The computerized system of claim 16, configured to calculate a disparity map by calculating a position difference between the given pixel and the matching pixel to yield a disparity value corresponding to the given pixel.
21. 21. The computerized system of claim 20, wherein the matching method is an optimized semi-global matching method regularized by a segmentation factor.
22. 22. The computerized system of claim 21, wherein the optimized semi-global matching method is regularized by adjusting its cost function according to the segmentation factor, the segmentation factor indicating whether a candidate pixel and one or more neighboring pixels of the candidate pixel belong to the same segment, and searching includes using the adjusted cost function to select the matching pixel from the defined range of one or more candidate pixels.
23. 16. The computerized system of claim 15, wherein the PMC is further configured to extract features from the pair of images, match the features between the first and second images, calculate a vertical displacement of the matched features along a direction perpendicular to the direction of the relative movement, and adjust the pair of images according to the vertical displacement.
24. 24. The computerized system of claim 23, wherein the matching pixels are searched within a defined range in the same segment given the matched features.
25. A non-transitory computer-readable storage medium tangibly embodying a program of instructions that, when executed by a computer, causes the computer to perform a method of depth map generation, the method comprising: acquiring a pair of images including a first image and a second image acquired by the at least one imaging device at two time points during relative movement between the vehicle and the at least one imaging device, the first image and the second image capturing respective portions of a surface portion of the vehicle, the captured portions being partially superimposed, the pair of images constituting a portion of an overall image capturing the surface portion; obtaining a segmentation map corresponding to at least the portion of the entire image, the segmentation map including one or more segments corresponding to one or more vehicle components included in the at least the portion of the entire image; Dividing the first image into one or more sections according to the segmentation map; generating a depth map for each predetermined section of the first image, i) calculating a disparity map for the predetermined section, the disparity map comprising disparity values, each indicating a difference in position between a respective pixel in the predetermined section of the first image and a corresponding pixel in the predetermined section of the second image, the corresponding pixel being located within a range defined based on the displacement of the predetermined section between the first and second images and within the same segment in the second image to which each pixel in the first image belongs; ii) calculating a depth map for the predetermined section based on the disparity map, wherein the depth map for each predetermined section can be combined and used to generate a depth map for the pair of images.
Citation Information
Patent Citations
Vehicle undercarriage inspection and imaging method and system
US20030185340A1
Method and system for testing a vehicle underbody of a motor vehicle
US20150260511A1
Generating a disparity map based on stereo images of a scene
US20190012789A1
Image processing device, imaging device, and image processing method
WO2013073167A1
