Image data processing method and device

The method addresses the inaccuracy of optical flow estimation in planar parallax methods by using neural networks to process images and calculate pixel depth ratios, enhancing 3D scene modeling accuracy.

JP7554946B2Active Publication Date: 2024-09-20BEIJING HORIZON INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023553068
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-11-10
Filing Date
2022-09-14
Publication Date
2024-09-20
Estimated Expiration
2042-09-14

AI Technical Summary

Technical Problem

Current planar parallax methods for 3D scene modeling rely on optical flow estimation, which is prone to noise and inaccurate in obtaining dense pixel depth ratios.

Method used

Process a first and second image using a first neural network to obtain a homography matrix, determine a mapping image feature, fuse the features, and use a second neural network to calculate a pixel depth ratio, enhancing accuracy through image fusion and neural network processing.

Benefits of technology

The method achieves dense and accurate pixel depth ratios for 3D scene modeling by improving the precision of depth estimation using neural networks and homography matrices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007554946000013
    Figure 0007554946000013
  • Figure 0007554946000011
    Figure 0007554946000011
  • Figure 0007554946000009
    Figure 0007554946000009
Patent Text Reader

Abstract

Embodiments of the present disclosure disclose a method and apparatus for processing image data. The processing method includes: processing a first image and a second image with a first neural network to obtain a homography matrix; determining a mapping image feature of the first image feature based on the homography matrix; fusing the mapping image feature and the second image feature to obtain a fusion image feature; and processing the fusion image feature with a second neural network to obtain a first pixel deep ratio of the second image. The embodiments of the present disclosure can obtain a dense and accurate pixel deep ratio, and further assist 3D scene modeling.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to a Chinese patent application filed with the China Intellectual Property Office on November 10, 2021, bearing application number 202111329386.7 and entitled "Method and apparatus for processing image data," the entire contents of which are incorporated herein by reference.

[0002] The present disclosure relates to the technical field of image processing, and in particular to a method and apparatus for processing image data. [Background technology]

[0003] Plane parallax methods model 3D scenes based on the difference between observing the same object or scene from two viewing angles, and depend on a specific plane, allowing the recovery of the height from a pixel point in the scene to the plane and the distance to the observation point, i.e., the pixel height-depth ratio of the pixel point.

[0004] Current planar disparity methods rely on optical flow estimation to obtain matching results for corresponding points in two viewing angles. Optical flow methods cannot obtain dense estimation results and are heavily affected by noise. How to obtain dense and accurate pixel depth ratio based on image data is a problem to be solved. Summary of the Invention

[0005] The present disclosure has been made to solve the above technical problems.

[0006] According to a first aspect of the embodiment of the present disclosure, processing a first image and a second image using a first neural network to obtain a homography matrix, the first image being taken at a first time, the second image being taken at a second time, and the first image and the second image having road surface elements of the same region; determining a mapping image feature of a first image feature based on the homography matrix, the first image feature being a feature extracted based on the first image; fusing the mapping image feature with a second image feature to obtain a fused image feature, the second image feature being a feature extracted based on the second image; and processing the fused image features using a second neural network to obtain a first pixel depth ratio of the second image.

[0007] According to a second aspect of the embodiment of the present disclosure, a homography matrix determination module used to process a first image and a second image using a first neural network to obtain a homography matrix, the first image being taken at a first time, the second image being taken at a second time, and the first image and the second image having road surface elements of the same area; a mapping image feature determination module used to determine a mapping image feature of a first image feature based on the homography matrix, the first image feature being a feature extracted based on the first image; and a fusion module used to fuse the mapping image features and second image features to obtain fused image features, the second image features being features extracted based on the second image; and A device for processing image data is provided, the device including: a first pixel depth ratio determination module adapted to process the fused image features using a second neural network to obtain a first pixel depth ratio of the second image.

[0008] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, the computer-readable storage medium storing a computer program, the computer program being used to execute the image data processing method described in the first aspect above.

[0009] According to a fourth aspect of the embodiment of the present disclosure, there is provided an electronic device, the electronic device comprising: A processor; a memory adapted to store instructions executable by said processor; The processor is adapted to read the executable instructions from the memory and execute the instructions to implement the method for processing image data according to the first aspect above.

[0010] According to the image data processing method and device provided by the above embodiment of the present disclosure, a first neural network is used to process a first image and a second image having road surface elements of the same area taken by a camera to obtain a homography matrix, then the first image feature is mapped by the homography matrix to obtain a mapping image feature, and the mapping image feature and the second image feature are fused to obtain a fusion image feature, and a second neural network is used to process the fusion image feature to determine a first pixel depth ratio. Here, the first pixel depth ratio is the ratio between the pixel height and pixel depth of the target object in the second image relative to the road surface, and the ratio can be used for 3D scene modeling. The image data processing method of the embodiment of the present disclosure can obtain a dense and accurate pixel depth ratio based on the image data, and further assist 3D scene modeling.

[0011] The following describes the technical solutions of the present disclosure in more detail with reference to figures and examples. The above and other objects, features and advantages of the present disclosure will become apparent from a more detailed description of the embodiments of the present disclosure in conjunction with the drawings. The drawings are used to provide a further understanding of the embodiments of the present disclosure, constitute a part of the present specification, and are used to explain the present disclosure together with the embodiments of the present disclosure, and are not intended to limit the present disclosure. In the drawings, the same reference numerals generally represent the same parts or steps. [Brief description of the drawings]

[0012] [Figure 1] 1 is a flowchart of a method for processing image data in an embodiment of the present disclosure. [Diagram 2] 1 is a flowchart of step S1 in one embodiment of the present disclosure. [Diagram 3] FIG. 2 is a diagram illustrating the operation principle of a first neural network in an example of the present disclosure. [Figure 4] 11 is a flowchart of a method for processing image data in another embodiment of the present disclosure. [Diagram 5] 13 is a flowchart after step S4 in yet another embodiment of the present disclosure. [Figure 6] 13 is a flowchart after step S4 in yet another embodiment of the present disclosure. [Figure 7] 13 is a flowchart of step S5″ in one embodiment of the present disclosure. [Figure 8] 13 is a flowchart of steps S5''-6 in one embodiment of the present disclosure. [Figure 9] FIG. 2 is a structural block diagram of an image data processing device according to an embodiment of the present disclosure. [Figure 10] FIG. 1 is a structural block diagram of a homography matrix determination module 100 in an embodiment of the present disclosure. [Figure 11] FIG. 11 is a structural block diagram of an image data processing device according to another embodiment of the present disclosure. [Figure 12] FIG. 13 is a structural block diagram of an image data processing device according to yet another embodiment of the present disclosure. [Figure 13]FIG. 13 is a structural block diagram of an image data processing device according to yet another embodiment of the present disclosure. [Figure 14] FIG. 10 is a structural block diagram of a total loss value determination module 1000 in one embodiment of the present disclosure. [Figure 15] FIG. 2 is a structural diagram of an electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0013] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the drawings. Obviously, the described embodiments are not all of the embodiments of the present disclosure, but are merely a part of the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described herein.

[0014] Unless otherwise specified, the relative arrangements of the components and steps, the formulas and numerical values ​​described in these examples do not limit the scope of the present disclosure.

[0015] As can be understood by those skilled in the art, the terms "first", "second", etc. in the embodiments of the present disclosure are used to distinguish different steps, devices, modules, etc., and do not represent any particular technical meaning, nor do they represent a necessary logical order between them.

[0016] It is to be further understood that in the embodiments of the present disclosure, "plurality" can mean two or more than two, and "at least one" can mean one, two, or more than two.

[0017] It should be further understood that any element, data, or structure referred to in the embodiments of the present disclosure may generally be understood as one or more unless expressly defined or suggested to the contrary by the context.

[0018] In this disclosure, the term "and / or" is merely a description of the related relationship of related objects, and represents the existence of three types of relationships, for example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. Also, in this disclosure, the character " / " generally represents that the preceding and following related objects are in an "or" relationship.

[0019] It should be further understood that the description of each embodiment of the present disclosure will focus on the differences between each embodiment, and that the same or similar aspects may be referenced from one another and will not be described one by one for the sake of brevity.

[0020] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure and its application or uses.

[0021] Detailed descriptions of techniques, methods and equipment known to those skilled in the relevant art will not be provided, but where appropriate, said techniques, methods and equipment should be considered part of the description.

[0022] It should be noted that in the following figures, like reference numbers and letters represent like items, so that once an item is defined in one figure, it does not require further explanation in subsequent figures.

[0023] The embodiments of the present disclosure may be applied to electronic devices, such as terminal devices, computer systems, servers, etc., that may operate with many other general purpose or special purpose computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices, such as terminal devices, computer systems, servers, etc., include, but are not limited to, personal computer systems, server computer systems, thin clients, fat clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronic products, web personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments that include any of the above systems.

[0024] Electronic devices such as terminal devices, computer systems, servers, etc. may be described in the general context of computer system executable commands (e.g., program modules) executed by a computer system. Generally, program modules may include routines, programs, object programs, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. Computer systems / servers may be implemented in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located on local or remote computing system storage media, including storage devices. Exemplary Methods

[0025] 1 is a flowchart of an image data processing method according to an embodiment of the present disclosure. This embodiment can be applied to a server, and as shown in FIG. 1, the method includes steps S1 to S4.

[0026] In S1, a first neural network is used to process a first image and a second image to obtain a homography matrix, where the first image is taken at a first time, the second image is taken at a second time, and the first image and the second image have road surface elements of the same region.

[0027] Specifically, a camera is provided in a vehicle, and camera internal parameters and camera external parameters are set in advance. While the vehicle is traveling, an image is captured by the camera.

[0028] A first image taken by the same camera at a first time and a second image taken by the same camera at a second time are obtained. Here, the images may be taken by taking a video, or multiple frames of images may be taken by taking an image once at regular intervals. In this embodiment, the first time and the second time may be separated by M frames (M is an integer greater than 0).

[0029] Since an image captured during a driving scene usually includes a road surface, in this embodiment, the road surface in the first image and the second image is used as a reference plane required for the planar parallax method.

[0030] A feature extraction network is used to perform feature extraction on a first image to obtain a first image feature, and a feature extraction network is used to perform feature extraction on a second image to obtain a second image feature. Here, the feature extraction network may belong to the first neural network, or may be a network independent of the first neural network. In this embodiment, feature extraction is performed by the same downsampling. For example, downsampling is performed on a first image originally having 3*h*w dimensions (h and w respectively represent the width and length of the image) to obtain a first feature map with n*h'*w' dimensions as the first image feature. And downsampling is performed on a second image originally having 3*h*w dimensions to obtain a second feature map with n*h'*w' dimensions as the second image feature. Here, n is the number of channels, and h' is 1 / 32, 1 / 64, etc. of h. w' is 1 / 32, 1 / 64, etc. of w. The values ​​of h' and w' may be the same or different.

[0031] The first neural network is used to process the first image features and the second image features to obtain a homography matrix for matching the road surfaces in the first image and the second image. Illustratively, the calculation method of the homography matrix is ​​as follows:

number

[0032] At S2, a mapping image feature of the first image feature is determined based on the homography matrix.

[0033] Specifically, a first image feature is mapped to the visual angle of a second image feature using a homography matrix to obtain a mapping image feature, the dimensionality of the mapping image feature is the same as the dimensionality of the first image feature and the second image feature, and according to the example of step S1, the dimensionality of the mapping image feature is n*h'*w'.

[0034] In S3, the mapping image feature and the second image feature are fused to obtain a fused image feature.

[0035] In one optional embodiment, the mapping image feature and the second image feature are overlapped according to the channel dimensionality to obtain a fusion image feature. According to the example of steps S1 and S2, the dimensionality of the fusion image feature is 2n*h'*w'.

[0036] At S4, a second neural network is used to process the fused image features to obtain a first pixel-depth ratio of the second image.

[0037] Specifically, the second neural network is a pre-trained model, such as a deep learning model. The second neural network can predict a pixel deep ratio based on the fusion image feature. In this embodiment, the pixel deep ratio predicted by the second neural network for the fusion image feature is the first pixel deep ratio.

[0038] In this embodiment, a first neural network is used to process a first image and a second image with road surface elements of a common area taken by a camera to obtain a homography matrix, then the first image feature is mapped by the homography matrix to obtain a mapping image feature, and the mapping image feature and the second image feature are fused to obtain a fusion image feature, and a second neural network is used to process the fusion image feature to determine a first pixel high-depth ratio, where the first pixel high-depth ratio is a ratio between the pixel height and pixel depth of a target object in the second image relative to the road surface, and the ratio can be used for 3D scene modeling. The image data processing method of the embodiment of the present disclosure can obtain a dense and accurate pixel high-depth ratio based on the image data, and further assist in 3D scene modeling.

[0039] 2 is a flowchart of step S1 in one embodiment of the present disclosure. As shown in FIG 2, in this embodiment, step S1 includes steps S1-1 to S1-4.

[0040] In S1-1, the first image feature and the second image feature are fused to obtain a third image feature.

[0041] FIG. 3 is an operation principle diagram of a first neural network in an example of the present disclosure. As shown in FIG. 3, in this example, the feature extraction network belongs to the first neural network. After the feature extraction network extracts the first image feature and the second image feature, the first image feature and the second image feature are input to a feature fusion module for fusion. Here, the feature fusion module may obtain a fusion image feature by overlapping the first image feature and the second image feature according to the channel dimensionality. For example, if the dimensionality of the first image feature is n*h'*w' and the dimensionality of the second image feature is n*h'*w', the dimensionality of the third image feature is 2n*h'*w'.

[0042] At S1-2, the third image feature is processed using a road surface sub-network in the first neural network to determine road surface normal information.

[0043] Continuing to refer to FIG. 3, the feature fusion module inputs the third image feature to the road sub-network, and the road sub-network predicts based on the third image feature and outputs road normal information. Here, the road sub-network is a network model that predicts based on the input image feature having the road feature and outputs road normal information. In this embodiment, the road normal information is calculated by N=[n x ,n y ,n z ], where n x ,n y ,n z are three-dimensional coordinates in the road surface coordinate system.

[0044] At S1-3, a third image feature is processed using a pose sub-network in the first neural network to determine a relative camera pose between the first image and the second image.

[0045] Continuing to refer to Fig. 3, the feature fusion module inputs the third image feature to the pose sub-network, and predicts based on the third image feature by the pose sub-network to output the camera relative pose. Here, the pose sub-network is a network model that predicts based on the input image feature to output the camera relative pose. In this embodiment, the camera relative pose includes a camera relative rotation matrix and a relative translation matrix.

[0046] In S1-4, a homography matrix is ​​determined based on the road surface normal information, the camera relative orientation, and the height of the camera relative to the road surface that is stored in advance.

[0047] 3, the first neural network determines the homography matrix based on the height of the camera relative to the road surface, road surface normal information, and the camera relative orientation using the above-mentioned homography matrix calculation method. Note that the height of the camera relative to the road surface, road surface normal information, and the camera relative orientation may be output by the first neural network, and the homography matrix may be determined by a module other than the first neural network.

[0048] In this embodiment, the road surface subnetwork and posture subnetwork in the first neural network are used to process the third image feature after fusion, respectively. For example, the road surface subnetwork and posture subnetwork are used to process the third image feature obtained by superimposing the first image feature and the second image feature on the channel dimensionality, to obtain road surface normal information and camera relative posture, and the homography matrix can be accurately determined based on the road surface normal information, the camera relative posture, and the height of the camera relative to the road surface that has been pre-stored.

[0049] 4 is a flowchart of a method for processing image data in another embodiment of the present disclosure. As shown in FIG 4, after step S4, this embodiment further includes step S5 and step S6.

[0050] At S5, a second pixel height-to-depth ratio of the target object is determined based on the radar scan data corresponding to the target object in the second image within a collection time of the second image.

[0051] Specifically, the vehicle is provided with an on-board radar. The collection time of the second image is t2, and the on-board radar acquires radar scan data in the vicinity of the vehicle at time t2. By analyzing the second image and the radar scan data in the vicinity of the vehicle, radar scan data corresponding to the target object can be extracted from the radar scan data in the vicinity of the vehicle based on the analysis result. The position of the target object relative to the vehicle and the volume of the target object can be accurately obtained based on the extracted radar scan data, and further a true value of the pixel depth ratio at time t2 is generated, which is denoted as the second pixel depth ratio.

[0052] In S6, a parameter adjustment is performed for the second neural network based on a difference between the first pixel depth ratio and the second pixel depth ratio.

[0053] Specifically, parameters of the second neural network are adjusted by backpropagation based on the difference between the true pixel depth ratio at time t2 (i.e., the second pixel depth ratio) and the predicted pixel depth ratio (i.e., the first pixel depth ratio).

[0054] In this embodiment, the true value of the pixel-depth ratio determined by radar data at the same time is used as the monitoring information of the second neural network, and the parameters of the second neural network are reasonably adjusted according to the difference between the true value and the predicted value of the pixel-depth ratio, thereby improving the prediction accuracy of the second neural network.

[0055] 5 is a flowchart after step S4 in still another embodiment of the present disclosure. As shown in FIG 5, this embodiment further includes steps S5' to S7' after step S4.

[0056] In S5', image reconstruction is performed on the first image using the homography matrix to obtain a first reconstructed image.

[0057] Specifically, image reconstruction is performed on the first image by inverse mapping using the homography matrix to obtain a first reconstructed image.

[0058] In S6', the matrix parameters of the homography matrix are adjusted based on pixel shifts in road surface elements of the same region between the first reconstructed image and the second image.

[0059] Specifically, when the matrix parameters of the homography matrix reach an optimum, the first reconstructed image and the second image are aligned at the road portion, and when the matrix parameters of the homography matrix do not reach an optimum, there exists a pixel shift between the first reconstructed image and the second image at the road portion.

[0060] Based on the pixel shift in the road surface elements of the same region between the first reconstructed image and the second image, the matrix parameters of the homography matrix can be reasonably adjusted.

[0061] In S7', parameters are adjusted for the road surface sub-network and the posture sub-network based on the homography matrix whose matrix parameters have been adjusted.

[0062] Specifically, the homography matrix is ​​determined based on the road surface normal information predicted by the road surface sub-network, the camera relative pose predicted by the pose sub-network, and the height of the camera relative to the road surface that is stored in advance, and the parameters of the road surface sub-network and the pose sub-network are reasonably adjusted by backpropagation based on the homography matrix whose matrix parameters have been adjusted.

[0063] In this embodiment, the matrix parameters of the homography matrix can be rationally adjusted based on the pixel shift in the road surface elements of the same area between the first reconstructed image and the second image, and the homography matrix with the adjusted matrix parameters is used as supervised information to adjust the parameters of the road surface subnetwork and the posture subnetwork, thereby improving the prediction accuracy of the road surface subnetwork and the posture subnetwork.

[0064] 6 is a flow chart after step S4 in yet another embodiment of the present disclosure. As shown in FIG. 6, this embodiment further includes step S5″ and step S6″ after step S4.

[0065] In S5'', within the collection time of the second image, a total loss value is determined based on the pixel height-depth ratio of the first image, the road surface mask of the second image, and the radar scan data corresponding to the target object in the second image.

[0066] Specifically, this embodiment integrates a first neural network and a second neural network, where an overall luminosity loss value can be calculated by a luminosity loss function according to the first pixel height ratio and the road surface mask of the second image. According to the radar scan data corresponding to the target object in the second image within the collection time of the second image, the position of the target image relative to the vehicle and the volume of the target object can be obtained, which can further assist in determining the overall supervision loss value. The overall loss value can be determined according to the overall luminosity loss value and the supervision loss value.

[0067] In S6'', parameter adjustment is performed for the first neural network and the second neural network based on the overall loss value.

[0068] In this embodiment, by calculating the overall loss value of the first neural network and the second neural network as a whole, the parameters of the first neural network and the second neural network can be reasonably adjusted to improve the prediction accuracy of the first neural network and the second neural network.

[0069] FIG. 7 is a flowchart of step S5'' in one embodiment of the present disclosure. As shown in FIG. 7, in this embodiment, step S5'' includes steps S5''-1 to S5''-7.

[0070] In S5''-1, a second pixel height ratio of the target object is determined based on the radar scan data corresponding to the target object in the second image.

[0071] Specifically, the vehicle is provided with an on-board radar. The collection time of the second image is t2, and radar scan data in the vicinity of the vehicle at time t2 is obtained by the on-board radar. By analyzing the second image and the radar scan data in the vicinity of the vehicle, radar scan data corresponding to a target object is extracted from the radar scan data in the vicinity of the vehicle based on the analysis result. The position of the target object relative to the vehicle and the volume of the target object can be accurately obtained based on the extracted radar scan data, and further a true value of the pixel depth ratio at time t2 is generated, which can be denoted as a second pixel depth ratio.

[0072] In S5''-2, a first loss value is determined based on the first pixel height-depth ratio and the second pixel height-depth ratio. Here, a subtraction is performed between the first pixel height-depth ratio and the second pixel height-depth ratio to obtain the first loss value.

[0073] In S5''-3, image reconstruction is performed on the first image using the homography matrix to obtain a first reconstructed image.

[0074] Specifically, image reconstruction is performed on the first image by inverse mapping using the homography matrix to obtain a first reconstructed image.

[0075] In S5''-4, a pixel shift between the first image area and the second image area is determined based on a first pixel height-depth ratio, where the first image area is the remaining image area in the first reconstructed image excluding the road surface image area, and the second image area is the remaining image area in the second image excluding the road surface image area.

[0076] Specifically, the first reconstructed image and the second image are basically aligned in the road surface image region based on the homography matrix (if the matrix parameters of the homography matrix are not optimal, the first reconstructed image and the second image still have pixel shifts in the road surface portion), but are not aligned with the remaining image regions other than the road surface image region of the first reconstructed image and the second image. The remaining image regions other than the road surface image region in the first reconstructed image and the second image are compared pixel by pixel to obtain the pixel shift between the first image region and the second image region.

[0077] In S5''-5, the pixel position of the first reconstructed image is adjusted based on the pixel shift between the first image region and the second image region to obtain a second reconstructed image.

[0078] Specifically, by adjusting the pixel positions of the first reconstructed image based on the pixel shift between the first image region and the second image region, it is possible to realize pixel alignment in the road surface image region between the second reconstructed image and the second image. In addition to the basic alignment between the first reconstructed image and the second image in the road surface image region being already realized, the basic alignment between the second reconstructed image and the second image in the entire image is realized.

[0079] At S5''-6, a second loss value is determined based on the second reconstructed image, the second image and the road surface mask of the second image.

[0080] Specifically, the light intensity loss between the second reconstructed image and the second image can be calculated as a second loss value based on the second reconstructed image, the second image, and the road surface mask of the second image.

[0081] In S5''-7, a total loss value is determined based on the first loss value and the second loss value. Here, the first loss value and the second loss value may be added to obtain the total loss value.

[0082] In this embodiment, within the collection time of the second image, an overall loss value can be reasonably determined based on the radar scan data corresponding to the target object in the second image, the first pixel height-depth ratio and the road surface mask of the second image, thereby reasonably adjusting the parameters of the first neural network and the second neural network based on the overall loss value, and further improving the prediction accuracy of the first neural network and the second neural network.

[0083] FIG. 8 is a flowchart of step S5''-6 in one embodiment of the present disclosure. As shown in FIG. 8, in this embodiment, step S5''-6 includes steps S5''-6-1 to S5''-6-3.

[0084] In S5''-6-1, a total image intensity error between the second reconstructed image and the second image is determined.

[0085] In one alternative embodiment, the total image luminosity error is determined based on a luminosity error function as follows:

number

number

[0086] In S5''-6-2, a luminosity error in the road surface image region between the second reconstructed image and the second image is determined based on the total image luminosity error and the road surface mask of the second image.

[0087] In one optional embodiment, the light intensity error in the road surface image region between the second reconstructed image and the second image is determined using the following formula:

number

[0088] In S5''-6-3, a second loss value is determined based on the total image luminosity error and the luminosity error in the road surface image region between the second reconstructed image and the second image.

[0089] Specifically, the second loss value is determined by the following formula:

number

[0090] In this embodiment, based on the second reconstructed image, the second image and the road surface mask of the second image, a second loss value between the second reconstructed image and the second image can be reasonably determined, thereby rationally adjusting the parameters of the first neural network and the second neural network based on the second loss value, and further improving the prediction accuracy rate of the first neural network and the second neural network.

[0091] Any of the image data processing methods provided by the embodiments of the present disclosure may be executed by any suitable device having data processing capabilities, including, but not limited to, a terminal device and a server. Alternatively, any of the image data processing methods provided by the embodiments of the present disclosure may be executed by a processor, for example, the processor executes any of the image data processing methods provided by the embodiments of the present disclosure by invoking a corresponding command stored in a memory. Hereinafter, redundant explanations will be omitted. Exemplary Apparatus

[0092] 9 is a structural block diagram of an image data processing device in an embodiment of the present disclosure. As shown in FIG. 9, in this embodiment, the image data processing device includes a homography matrix determination module 100, a mapping image feature determination module 200, a fusion module 300 and a first pixel depth ratio determination module 400.

[0093] Wherein, the homography matrix determination module 100 is used to process a first image and a second image using a first neural network to obtain a homography matrix, where the first image is taken at a first time, the second image is taken at a second time, and the first image and the second image have road surface elements in the same area; the mapping image feature determination module 200 is used to determine a mapping image feature of a first image feature based on the homography matrix, where the first image feature is a feature extracted based on the first image; the fusion module 300 is used to fuse the mapping image feature and the second image feature to obtain a fusion image feature, where the second image feature is a feature extracted based on the second image; and the first pixel deep ratio determination module 400 is used to process the fusion image feature using a second neural network to obtain a first pixel deep ratio of the second image.

[0094] 10 is a structural block diagram of the homography matrix determination module 100 in an embodiment of the present disclosure. As shown in FIG. 10, in this embodiment, the homography matrix determination module 100 includes: a fusion unit 101 used for fusing the first image feature and the second image feature to obtain a third image feature; a road surface normal information determining unit 102, which is used to process the third image feature using a road surface sub-network in the first neural network to determine road surface normal information; a camera relative pose determination unit 103 used to process the third image features using a pose sub-network in the first neural network to determine a camera relative pose between the first image and the second image; a homography matrix determination unit 104 used to determine the homography matrix based on the road surface normal information, the camera relative pose and a pre-stored height of the camera relative to the road surface.

[0095] 11 is a structural block diagram of an image data processing device according to another embodiment of the present disclosure. As shown in FIG. 11, in this embodiment, the image data processing device further includes: a second pixel depth ratio determination module 500 used to determine a second pixel depth ratio of the target object based on radar scan data corresponding to the target object in the second image during a collection time of the second image; a first parameter adjustment module 600 used to perform parameter adjustment for the second neural network based on a difference between the first pixel depth ratio and the second pixel depth ratio.

[0096] 12 is a structural block diagram of an image data processing device in yet another embodiment of the present disclosure. As shown in FIG. 12, in this embodiment, the image data processing device further includes: an image reconstruction module 700 adapted to perform image reconstruction on the first image using the homography matrix to obtain a first reconstructed image; a homography matrix parameter adjustment module 800 used to adjust the matrix parameters of the homography matrix according to pixel shifts in road surface elements of the same region between the first reconstructed image and the second image; a first network parameter adjustment module 900 used to perform parameter adjustment on the road surface sub-network and the pose sub-network based on the homography matrix whose matrix parameters have been adjusted.

[0097] 13 is a structural block diagram of an image data processing device in yet another embodiment of the present disclosure. As shown in FIG. 13, in this embodiment, the image data processing device further includes: an overall loss value determination module 1000, which is used to determine an overall loss value based on the first pixel height ratio, the road mask of the second image, and the radar scan data corresponding to the target object in the second image during the collection time of the second image; and a second network parameter adjustment module 1100 used to perform parameter adjustment on the first neural network and the second neural network based on the overall loss value.

[0098] 14 is a structural block diagram of a total loss value determination module 1000 in an embodiment of the present disclosure. As shown in FIG. 14, in this embodiment, the total loss value determination module 1000 includes: A second pixel depth ratio determining unit 1001, used for determining a second pixel depth ratio of the target object based on the radar scan data; a first loss value determining unit 1002 used to determine a first loss value according to the first pixel depth ratio and the second pixel depth ratio; a first reconstructed image unit 1003, which is used to perform image reconstruction on the first image using the homography matrix to obtain a first reconstructed image; a pixel shift determining unit 1004 used to determine a pixel shift between a first image region and a second image region based on the first pixel height-depth ratio, the first image region being a remaining image region in the first reconstructed image excluding a road surface image region, and the second image region being a remaining image region in the second image excluding a road surface image region; a second reconstructed image unit 1005 used to adjust pixel positions of the first reconstructed image based on the pixel shift to obtain a second reconstructed image; a second loss value determining unit 1006, which is used to determine a second loss value based on the second reconstructed image, the second image and a road surface mask of the second image; and an overall loss value determining unit 1007 used for determining the overall loss value based on the first loss value and the second loss value.

[0099] In one embodiment of the present disclosure, the second loss value determination unit 1006 is specifically used for determining a total image luminance error between the second reconstructed image and the second image, the second loss value determination unit 1006 is further used for determining a luminance error in a road surface image region between the second reconstructed image and the second image based on the total image luminance error and a road surface mask of the second image, and the second loss value determination unit 1006 is further used for determining the second loss value based on the total image luminance error and the luminance error in a road surface image region between the second reconstructed image and the second image.

[0100] In addition, a specific embodiment of the image data processing device in the embodiment of the present disclosure is similar to a specific embodiment of the image data processing method in the embodiment of the present disclosure, and specifically, refer to the part of the image data processing method, and duplicated explanations are omitted to reduce redundancy. Exemplary Electronic Devices

[0101] Hereinafter, an electronic device provided according to an embodiment of the present disclosure will be described with reference to Fig. 15. As shown in Fig. 15, the electronic device includes one or more processors 10 and a memory 20.

[0102] The processor 10 may be a central processing unit (CPU) or other type of processing unit having data processing and / or command execution capabilities, and may control other components within the electronic device to perform desired functions.

[0103] The memory 20 may include one or more computer program products including various forms of computer readable storage media such as volatile memory and / or non-volatile memory. The volatile memory may include random access memory (RAM) and / or cache memory. The non-volatile memory may include, for example, read only memory (ROM), hard disk, flash memory, etc. One or more computer program commands may be stored in the computer readable storage medium, and the processor 10 may execute the program commands to realize the image data processing method and / or other expected functions in each embodiment of the present disclosure described above. In addition, various contents such as input signals, signal components, noise components, etc. may be stored in the computer readable storage medium.

[0104] In one example, the electronic device may further include an input device 30 and an output device 40 connected to each other via a bus system and / or other form of connection mechanism (not shown). The input device 30 may be a keyboard, a mouse, etc. The output device 40 may include, for example, a display, a speaker, a printer, and a communication network and remote output devices connected thereto.

[0105] Of course, in order to simplify the description, Fig. 15 shows only some of the components related to the present disclosure in the electronic device, and components such as buses and input / output interfaces are omitted. In addition, the electronic device may further include any other appropriate components according to specific application circumstances. Exemplary Computer-Readable Storage Medium

[0106] The computer-readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0107] Although the basic principles of the present disclosure have been described above in conjunction with specific embodiments, it should be noted that the advantages, advantages, effects, etc. mentioned in the present disclosure are merely illustrative and not limiting, and it should not be considered that the various embodiments of the present disclosure necessarily have those advantages, advantages, effects, etc. In addition, the specific details of the above disclosure are merely illustrative and easy to understand, and are not limiting, and the above details do not necessarily limit the present disclosure to be realized with the above specific details.

[0108] Various embodiments in this specification will be described in a sequential manner, with each embodiment being described focusing on the differences from other embodiments, and identical or similar parts between the embodiments may be mutually referred to. Since the system embodiments basically correspond to the method embodiments, the description is relatively simple, but the relevant parts may be referred to in part of the description of the method embodiments.

[0109] Block diagrams of devices, apparatus, equipment, and systems according to the present disclosure are merely illustrative examples and are not intended to require or imply that they be necessarily connected, arranged, or configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatus, equipment, and systems may be connected, arranged, or configured in any manner. Words such as "including," "containing," and "having" are open-ended and mean "including, but not limited to," and may be used interchangeably therewith. As used herein, the terms "or" and "and" refer to, and may be used interchangeably with, the term "and / or," unless the context clearly indicates otherwise. As used herein, the term "for example" refers to, and may be used interchangeably with, the term "for example, but not limited to,".

[0110] The methods and apparatus of the present disclosure may be implemented in many ways. For example, the methods and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above-described order of steps of the methods is merely illustrative, and the steps of the methods of the present disclosure are not limited to the order specifically described above, unless otherwise specified. In some embodiments, the present disclosure may also be embodied as a program recorded on a recording medium, and these programs include machine-readable instructions for implementing the methods according to the present disclosure. Thus, the present disclosure also includes a recording medium having a program stored thereon for implementing the methods according to the present disclosure.

[0111] It should also be noted that in the devices, apparatus, and methods of the present disclosure, each component or each step can be disassembled and / or recombined, and such disassembly and / or recombination should be considered as an equivalent solution of the present disclosure.

[0112] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the disclosure. Thus, the disclosure is not intended to be limited to the aspects shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

[0113] The above description has been presented for purposes of illustration and description. Moreover, the description is not intended to limit the embodiments of the present disclosure to the form disclosed herein. While a number of exemplary aspects and embodiments have been described above, those skilled in the art will recognize certain variations, modifications, variations, additions, and subcombinations thereof.

Claims

1. processing a first image and a second image using a first neural network to obtain a homography matrix, the first image being taken at a first time, the second image being taken at a second time, and the first image and the second image having road surface elements of the same region; determining a mapping image feature of a first image feature based on the homography matrix, the first image feature being a feature extracted based on the first image; fusing the mapping image feature with a second image feature to obtain a fused image feature, the second image feature being a feature extracted based on the second image; and processing the fused image features using a second neural network to obtain a first pixel depth ratio for the second image.

2. said step of processing the first image and the second image using a first neural network to obtain a homography matrix comprises: fusing a first image feature of the first image and a second image feature of the second image to obtain a third image feature; processing the third image features using a road surface sub-network in the first neural network to determine road surface normal information; processing the third image features using a pose sub-network in the first neural network to determine a relative camera pose between the first image and the second image; The method of claim 1 , further comprising: determining the homography matrix based on the road surface normal information, the camera relative orientation, and a pre-stored height of the camera relative to the road surface.

3. After the step of processing the fused image features using a second neural network to obtain a first pixel depth ratio of the second image, further comprising: determining a second pixel depth ratio of the target object based on radar scan data corresponding to the target object in the second image during a collection time of the second image; and performing parameter adjustment for the second neural network based on a difference between the first pixel depth ratio and the second pixel depth ratio.

4. After the step of processing the first image and the second image using a first neural network to obtain a homography matrix, further comprising: performing image reconstruction on the first image using the homography matrix to obtain a first reconstructed image; adjusting matrix parameters of the homography matrix based on pixel shifts in road surface elements of the same region between the first reconstructed image and the second image; The method of claim 2 , further comprising: performing parameter adjustment on the road surface sub-network and the pose sub-network based on the homography matrix whose matrix parameters have been adjusted.

5. After the step of processing the fused image features using a second neural network to obtain a first pixel depth ratio of the second image, further comprising: determining an overall loss value based on the first pixel height ratio, a road surface mask of the second image, and radar scan data corresponding to a target object in the second image during a collection time of the second image; and performing parameter adjustments on the first neural network and the second neural network based on the overall loss value.

6. The step of determining an overall loss value based on the first pixel height ratio, the road surface mask of the second image, and radar scan data corresponding to a target object in the second image during a collection time of the second image includes: determining a second pixel depth ratio of the target object based on the radar scan data; determining a first loss value based on the first pixel depth ratio and the second pixel depth ratio; performing image reconstruction on the first image using the homography matrix to obtain a first reconstructed image; determining a pixel shift between a first image region and a second image region based on the first pixel height-depth ratio, the first image region being a remaining image region in the first reconstructed image excluding a road surface image region, and the second image region being a remaining image region in the second image excluding the road surface image region; adjusting pixel positions of the first reconstructed image based on the pixel shift to obtain a second reconstructed image; determining a second loss value based on the second reconstructed image, the second image, and a road surface mask of the second image; and determining the overall loss value based on the first loss value and the second loss value.

7. The step of determining a second loss value based on the second reconstructed image, the second image, and a road surface mask of the second image includes: determining a total image intensity error between the second reconstructed image and the second image; determining a luminosity error in a road surface image region between the second reconstructed image and the second image based on the total image luminosity error and a road surface mask of the second image; The method for processing image data of claim 6, further comprising a step of determining the second loss value based on the total image luminosity error and the luminosity error in a road surface image region between the second reconstructed image and the second image.

8. a homography matrix determination module used to process a first image and a second image using a first neural network to obtain a homography matrix, the first image being taken at a first time, the second image being taken at a second time, and the first image and the second image having road surface elements of the same area; a mapping image feature determination module used to determine a mapping image feature of a first image feature based on the homography matrix, the first image feature being a feature extracted based on the first image; and a fusion module used to fuse the mapping image features and second image features to obtain fused image features, the second image features being features extracted based on the second image; and a first pixel depth ratio determination module adapted to process the fused image features using a second neural network to obtain a first pixel depth ratio of the second image.

9. A computer-readable storage medium having a computer program stored thereon, the computer program being used to implement the method for processing image data according to any one of claims 1 to 7.

10. A processor; a memory adapted to store instructions executable by said processor; An electronic device, wherein the processor is adapted to read the executable commands from the memory and execute the commands to implement the method for processing image data according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Object detection using planar homography and self-supervised scene structure understanding

    CN113609888A

  • Camera-based vehicle environment modeling

    JP2021513173A