Image processing method and device

By using laser reflectivity information in intelligent driving technology, combined with scene images and point cloud data, a more accurate completion depth map is generated, which solves the problem of low depth completion accuracy in the existing technology and improves the safety of intelligent driving vehicles. sex.

CN117911482BActive Publication Date: 2024-10-25BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211275717.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-18
Publication Date
2024-10-25
Estimated Expiration
2042-10-18

AI Technical Summary

Technical Problem

In existing intelligent driving technology, when obtaining the completed depth map of the target scene, only the laser point position information in the scene image and point cloud data is considered, resulting in low depth completion accuracy and affecting driving safety.

Method used

By obtaining the laser point position information and laser reflectivity in the scene image and point cloud data of the target scene, a laser reflectance map is generated, and combined with the sparse depth map and scene image, the depth map is completed to improve the completion accuracy.

Benefits of technology

The accuracy and precision of the completed depth map are improved, and the driving safety of intelligent driving vehicles is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117911482B_ABST
    Figure CN117911482B_ABST
Patent Text Reader

Abstract

The present application discloses an image processing method and device, belonging to the field of intelligent driving technology. The method includes: obtaining a scene image and point cloud data of a target scene, the point cloud data includes the position information of multiple laser points and the laser reflectivity of each laser point, the laser reflectivity of the laser point is used to indicate the proportion of the laser intensity reflected by the laser point to the laser intensity emitted by the laser transmitter to the laser point; according to the position information of each laser point and the scene image, a sparse depth map is obtained; according to the scene image, the position information of each laser point and the laser reflectivity, a laser reflectivity map is obtained; according to the scene image, the sparse depth map and the laser reflectivity map, a completed depth map of the target scene is obtained, and each pixel in the completed depth map corresponds to a depth. This makes the acquired completed depth map more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of intelligent driving technology, and in particular to an image processing method and device. Background Art

[0002] With the continuous development of intelligent driving technology, the application of intelligent driving vehicles is becoming more and more extensive. Intelligent driving vehicles collect scene images of target scenes through cameras and collect point cloud data of target scenes through lidar, and then generate a completed depth map of the target scene based on the scene images and point cloud data. The completed depth map is used to assist in the perception of the target scene, and make decisions and plans on the driving mode in the target scene based on the perception results.

[0003] In the related art, a scene image of a target scene and point cloud data of the target scene are obtained, wherein the point cloud data includes position information of each laser point; a sparse depth map is obtained based on the scene image and the position information of each laser point; and a completed depth map of the target scene is obtained based on the sparse depth map.

[0004] However, the above image processing method only considers the position information of each laser point in the scene image and point cloud data, resulting in low depth completion accuracy and low accuracy of the acquired completed depth map, which in turn affects the driving safety of the intelligent driving vehicle. Summary of the invention

[0005] The present application provides an image processing method and device, which can be used to solve the problems in the related art. The technical solution is as follows:

[0006] On the one hand, an embodiment of the present application provides an image processing method, the method comprising:

[0007] Acquire a scene image and point cloud data of a target scene, wherein the point cloud data includes position information of multiple laser points and laser reflectivity of each laser point, wherein the laser reflectivity of the laser point is used to indicate the ratio of the laser intensity reflected by the laser point to the laser intensity emitted by the laser emitter to the laser point;

[0008] Acquire a sparse depth map according to the position information of each laser point and the scene image;

[0009] According to the scene image, the position information of each laser point and the laser reflectivity, a laser reflectivity map is acquired, wherein the laser reflectivity of the pixel point located at the target position in the laser reflectivity map is the laser reflectivity of the target laser point, the target laser point is any one of the multiple laser points, the pixel point located at the target position is the projection point of the target laser point in the scene image, and the target position is determined based on the position information of the target laser point;

[0010] A completed depth map of the target scene is acquired according to the scene image, the sparse depth map and the laser reflectivity map, wherein each pixel in the completed depth map has a corresponding depth.

[0011] In a possible implementation, acquiring the completed depth map of the target scene according to the scene image, the sparse depth map, and the laser reflectivity map includes:

[0012] Acquire a first completed depth map and a first confidence map according to the scene image and the sparse depth map, wherein the first completed depth map is used to indicate a first depth of each pixel in the scene image, and the first confidence map is used to indicate a first confidence of the first depth of each pixel;

[0013] Acquire a second completed depth map and a second confidence map according to the sparse depth map, the first completed depth map, and the laser reflectivity map, wherein the second completed depth map is used to indicate a second depth of each pixel, and the second confidence map is used to indicate a second confidence of the second depth of each pixel;

[0014] The first completed depth map and the second completed depth map are fused according to the first confidence map and the second confidence map to obtain a completed depth map of the target scene.

[0015] In a possible implementation, acquiring a second completed depth map and a second confidence map according to the sparse depth map, the first completed depth map, and the laser reflectivity map includes:

[0016] According to the laser reflectivity map, obtaining a validity mask map, wherein the validity mask map is used to indicate whether each pixel point included in the laser reflectivity map corresponds to a laser reflectivity;

[0017] Determining a laser reflectivity feature according to the laser reflectivity map and the validity mask map, wherein the laser reflectivity feature is used to characterize a correlation between any two pixel points among a plurality of pixel points included in the scene image;

[0018] The second completed depth map and the second confidence map are acquired according to the laser reflectivity feature, the sparse depth map and the first completed depth map.

[0019] In a possible implementation, determining the laser reflectivity feature according to the laser reflectivity map and the validity mask map includes:

[0020] Acquire basic features according to the laser reflectivity map and the validity mask map, wherein the basic features are used to characterize the laser reflectivity map and the validity mask map;

[0021] The number of channels of the basic feature is transformed to obtain the laser reflectivity feature.

[0022] In a possible implementation manner, acquiring a validity mask map according to the laser reflectivity map includes:

[0023] Based on the fact that the laser reflectivity of the pixel point in the laser reflectivity map meets the reflectivity requirement, the value of the pixel point in the validity mask map is set to a first value; based on the fact that the laser reflectivity of the pixel point in the laser reflectivity map does not meet the reflectivity requirement, the value of the pixel point in the validity mask map is set to a second value to obtain the validity mask map.

[0024] In a possible implementation manner, acquiring the second completed depth map and the second confidence map according to the laser reflectivity feature, the sparse depth map, and the first completed depth map includes:

[0025] Determining a depth completion network feature according to a fifth image feature and a depth value memory feature used to characterize the sparse depth map, wherein the depth completion network feature is used to characterize the depth of pixels included in the scene image, and the depth value memory feature is a set of learnable parameters;

[0026] Acquire a target feature according to the depth completion network feature, the reflectivity feature, and a position feature composed of position codes of each pixel point included in the scene image, wherein the target feature is a feature after enhancing effective information in the depth completion network feature;

[0027] The second completed depth map and the second confidence map are acquired according to the target feature, the second image feature and the image feature of the first completed depth map.

[0028] In a possible implementation manner, acquiring a first completed depth map and a first confidence map according to the scene image and the sparse depth map includes:

[0029] Acquire a first image feature for characterizing the scene image;

[0030] Acquire a second image feature for characterizing the sparse depth map;

[0031] The first completed depth map and the first confidence map are acquired according to the first image feature and the second image feature.

[0032] In a possible implementation manner, the fusing the first completed depth map and the second completed depth map according to the first confidence map and the second confidence map to obtain the completed depth map of the target scene includes:

[0033] According to the first confidence of the first depth of each pixel point and the second confidence of the second depth of each pixel point, the first depth of each pixel point and the second depth of each pixel point are merged to obtain the target depth of each pixel point;

[0034] According to the target depth of each pixel point, a completed depth map of the target scene is obtained.

[0035] In a possible implementation manner, after acquiring the scene image and point cloud data of the target scene, the method further includes:

[0036] Determining the projection points of the laser points in the scene image according to the position information of the laser points;

[0037] The step of acquiring a sparse depth map according to the position information of each laser point and the scene image includes:

[0038] Adjusting the depth of the projection point of each laser point in the scene image to the depth of the corresponding laser point to obtain the sparse depth map;

[0039] The step of obtaining a laser reflectivity map according to the scene image, the position information of each laser point, and the laser reflectivity includes:

[0040] The laser reflectivity of the projection point of each laser point in the scene image is adjusted to the laser reflectivity of the corresponding laser point to obtain the laser reflectivity map.

[0041] On the other hand, an embodiment of the present application provides an image processing device, the device comprising:

[0042] A first acquisition module is used to acquire a scene image and point cloud data of a target scene, wherein the point cloud data includes position information of multiple laser points and laser reflectivity of each laser point, wherein the laser reflectivity of the laser point is used to indicate the ratio of the laser intensity reflected by the laser point to the laser intensity emitted by the laser emitter to the laser point;

[0043] A second acquisition module, used to acquire a sparse depth map according to the position information of each laser point and the scene image;

[0044] A third acquisition module is used to acquire a laser reflectivity map according to the scene image, the position information of each laser point, and the laser reflectivity, wherein the laser reflectivity of the pixel point located at the target position in the laser reflectivity map is the laser reflectivity of the target laser point, the target laser point is any one of the multiple laser points, the pixel point located at the target position is the projection point of the target laser point in the scene image, and the target position is determined based on the position information of the target laser point;

[0045] The fourth acquisition module is used to acquire a completed depth map of the target scene according to the scene image, the sparse depth map and the laser reflectivity map, wherein each pixel point in the completed depth map corresponds to a depth.

[0046] In a possible implementation, the fourth acquisition module is used to acquire a first completed depth map and a first confidence map based on the scene image and the sparse depth map, wherein the first completed depth map is used to indicate the first depth of each pixel in the scene image, and the first confidence map is used to indicate the first confidence of the first depth of each pixel; acquire a second completed depth map and a second confidence map based on the sparse depth map, the first completed depth map, and the laser reflectivity map, wherein the second completed depth map is used to indicate the second depth of each pixel, and the second confidence map is used to indicate the second confidence of the second depth of each pixel; and fuse the first completed depth map and the second completed depth map based on the first confidence map and the second confidence map to obtain a completed depth map of the target scene.

[0047] In one possible implementation, the fourth acquisition module is used to acquire a validity mask map based on the laser reflectivity map, wherein the validity mask map is used to indicate whether each pixel point included in the laser reflectivity map corresponds to a laser reflectivity; determine a laser reflectivity feature based on the laser reflectivity map and the validity mask map, wherein the laser reflectivity feature is used to characterize the correlation between any two pixel points among the multiple pixel points included in the scene image; and acquire the second completed depth map and the second confidence map based on the laser reflectivity feature, the sparse depth map and the first completed depth map.

[0048] In a possible implementation, the fourth acquisition module is used to acquire basic features based on the laser reflectivity map and the validity mask map, and the basic features are used to characterize the laser reflectivity map and the validity mask map; the number of channels of the basic features is transformed to obtain the laser reflectivity features.

[0049] In one possible implementation, the fourth acquisition module is used to set the value of the pixel point in the validity mask map to a first value based on the laser reflectivity of the pixel point in the laser reflectivity map satisfying the reflectivity requirement; and to set the value of the pixel point in the validity mask map to a second value based on the laser reflectivity of the pixel point in the laser reflectivity map not satisfying the reflectivity requirement, so as to obtain the validity mask map.

[0050] In a possible implementation, the fourth acquisition module is used to determine the depth completion network feature based on the fifth image feature and the depth value memory feature used to characterize the sparse depth map, the depth completion network feature is used to characterize the depth of the pixel points included in the scene image, and the depth value memory feature is a set of learnable parameters; according to the position feature composed of the depth completion network feature, the reflectivity feature and the position encoding of each pixel point included in the scene image, the target feature is obtained, and the target feature is the feature after enhancing the effective information in the depth completion network feature; according to the target feature, the second image feature and the image feature of the first completed depth map, the second completed depth map and the second confidence map are obtained.

[0051] In a possible implementation, the fourth acquisition module is used to obtain a first image feature for characterizing the scene image; obtain a second image feature for characterizing the sparse depth map; and obtain the first completed depth map and the first confidence map based on the first image feature and the second image feature.

[0052] In a possible implementation, the fourth acquisition module is used to fuse the first depth of each pixel and the second depth of each pixel according to the first confidence of the first depth of each pixel and the second confidence of the second depth of each pixel to obtain the target depth of each pixel; and obtain the completed depth map of the target scene according to the target depth of each pixel.

[0053] In a possible implementation manner, the device further includes:

[0054] A determination module, used to determine the projection point of each laser point in the scene image according to the position information of each laser point;

[0055] The second acquisition module is used to adjust the depth of the projection point of each laser point in the scene image to the depth of the corresponding laser point to obtain the sparse depth map;

[0056] The third acquisition module is used to adjust the laser reflectivity of the projection point of each laser point in the scene image to the laser reflectivity of the corresponding laser point to obtain the laser reflectivity map.

[0057] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the computer device implements any of the above-mentioned image processing methods.

[0058] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor so that a computer implements any of the above-mentioned image processing methods.

[0059] On the other hand, a computer program or a computer program product is also provided, wherein at least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor so that the computer implements any one of the above-mentioned image processing methods.

[0060] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0061] The technical solution provided in the embodiment of the present application not only takes into account the location information of each laser point in the scene image and point cloud data of the target scene, but also takes into account the laser reflectivity of each laser point when acquiring the completed depth map of the target scene. According to the scene image, the location information of each laser point and the laser reflectivity, a laser reflectivity map is acquired, and then the completed depth map is acquired according to the laser reflectivity map, the sparse depth map and the scene image. Since the information considered is relatively comprehensive, the completion accuracy is high, and thus the accuracy of the acquired completed depth map is higher. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0063] Figure 1 It is a schematic diagram of an implementation environment of an image processing method provided in an embodiment of the present application;

[0064] Figure 2 is a flow chart of an image processing method provided by an embodiment of the present application;

[0065] Figure 3 is a schematic diagram of a scene image provided by an embodiment of the present application;

[0066] Figure 4 is a schematic diagram of a sparse depth map provided in an embodiment of the present application;

[0067] Figure 5 is a schematic diagram of a laser reflectivity graph provided in an embodiment of the present application;

[0068] Figure 6 is a schematic diagram of a process for determining a target feature provided by an embodiment of the present application;

[0069] Figure 7 is a flow chart of an image processing method provided by an embodiment of the present application;

[0070] Figure 8 is a structural schematic diagram of an image processing device provided in an embodiment of the present application;

[0071] Fig. 9 It is a structural diagram of a terminal device provided in an embodiment of the present application;

[0072] Fig.10 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0073] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0074] Figure 1 is a schematic diagram of an implementation environment of an image processing method provided in an embodiment of the present application, such as Figure 1 As shown, the implementation environment includes: a terminal device 101 and a server 102 .

[0075] The image processing method provided in the embodiment of the present application can be executed by the terminal device 101, can be executed by the server 102, or can be executed jointly by the terminal device 101 and the server 102, and the embodiment of the present application does not limit this. In the case where the image processing method provided in the embodiment of the present application is jointly executed by the terminal device 101 and the server 102, the server 102 undertakes the main computing work, and the terminal device 101 undertakes the secondary computing work; or, the server 102 bears the secondary computing work, and the terminal device 101 undertakes the main computing work; or, the server 102 and the terminal device 101 adopt a distributed computing architecture for collaborative computing.

[0076] Optionally, the terminal device 101 can be any electronic product that can perform human-computer interaction with a user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote controller, voice interaction, or a handwriting device. The terminal device 101 includes but is not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The server 102 is a server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center, which is not limited in the embodiments of the present application. The server 102 is connected to the terminal device 101 through a wired network or a wireless network. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions, which are not limited in the embodiments of the present application.

[0077] Those skilled in the art should understand that the above-mentioned terminal device 101 and server 102 are only for illustration, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are included here by reference.

[0078] The present application provides an image processing method which can be executed by a computer device and can be applied to the above Figure 1 The computer device may be Figure 1 The terminal device 101 in Figure 1 The server 102 in the present application is not limited to this. Figure 2 As an example, a flowchart of an image processing method provided in an embodiment of the present application is shown. Figure 2 As shown, the method includes the following steps 201 to 204.

[0079] In step 201, a scene image and point cloud data of a target scene are acquired.

[0080] The point cloud data includes the position information of multiple laser points and the laser reflectivity of each laser point. The laser reflectivity of the laser point is used to indicate the ratio of the laser intensity reflected by the laser point to the laser intensity emitted by the laser transmitter to the laser point.

[0081] The embodiments of the present application do not limit the method of acquiring the scene image and point cloud data of the target scene. Exemplarily, a camera device and a laser transmitter are installed and operated on the intelligent driving vehicle. Among them, the camera device is used to collect images, and the laser transmitter is used to collect point cloud data. The intelligent driving vehicle obtains the scene image of the target scene through the camera device, and obtains the point cloud data of the target scene through the laser transmitter. Optionally, the camera device can be any device capable of image acquisition, and the laser transmitter can be any device capable of collecting point cloud data, and the embodiments of the present application do not limit this. Exemplarily, the camera device is a forward monocular camera, and the laser transmitter is a lidar.

[0082] In one possible implementation, after the intelligent driving vehicle collects the scene image and point cloud data of the target scene, it sends the scene image and point cloud data of the target scene to a computer device, so that the computer device acquires the scene image and point cloud data of the target scene. Optionally, the computer device may be an on-board terminal of the intelligent driving vehicle, or may be a device capable of remotely controlling the intelligent driving vehicle, which is not limited in this embodiment of the present application. Optionally, the scene image is an RGB (Red-Green-Blue) image. The point cloud data may also include other information, which is not limited in this embodiment of the present application. Figure 3 It is a schematic diagram of a scene image provided in an embodiment of the present application.

[0083] It should be noted that the number of laser points included in the point cloud data can be any value, and the embodiments of the present application do not limit this.

[0084] In step 202, a sparse depth map is obtained according to the position information of each laser point and the initial image.

[0085] The depth of the pixel point at the target position in the sparse depth map is the depth of the target laser point, the target laser point is any one of the multiple laser points, the pixel point at the target position is the projection point of the target laser point in the scene image, and the depth of the target laser point is determined based on the position information of the target laser point. The projection point of the target laser point in the scene image is determined based on the position information of the target laser point.

[0086] In a possible implementation, after the scene image and point cloud data are acquired, the projection point of each laser point in the scene image and the depth of each laser point are determined according to the position information of each laser point. Since the laser point is a point in the laser radar coordinate system, and the pixel points included in the scene image are points in the image coordinate system. Therefore, it is necessary to convert the laser point into a point in the image coordinate system to obtain the projection point of the laser point in the image coordinate system. The pixel point in the scene image that has the same position as the point of the laser point in the image coordinate system is used as the projection point of the laser point in the scene image.

[0087] Exemplarily, the point cloud data includes 5 laser points, namely laser point 1, laser point 2, laser point 3, laser point 4 and laser point 5. Each laser point is converted to obtain the projection point of laser point 1 in the scene image as pixel point 1, the projection point of laser point 2 in the scene image as pixel point 2, the projection point of laser point 3 in the scene image as pixel point 3, the projection point of laser point 4 in the scene image as pixel point 4, and the projection point of laser point 5 in the scene image as pixel point 5.

[0088] Optionally, after determining the projection point of each laser point in the scene image, the depth of the projection point of each laser point in the scene image is adjusted to the depth of the corresponding laser point to obtain a sparse depth map.

[0089] For example, the depth of laser point 1 is A, and the projection point in the scene image is pixel 1; the depth of laser point 2 is B, and the projection point in the scene image is pixel 2; the depth of laser point 3 is C, and the projection point in the scene image is pixel 3; the depth of laser point 4 is D, and the projection point in the scene image is pixel 4; the depth of laser point 5 is E, and the projection point in the scene image is pixel 5. The depth of pixel 1 in the scene image is adjusted to A, the depth of pixel 2 is adjusted to B, the depth of pixel 3 is adjusted to C, the depth of pixel 4 is adjusted to D, and the depth of pixel 5 is adjusted to E to obtain a sparse depth map. Figure 4 It is a schematic diagram of a sparse depth map provided in an embodiment of the present application.

[0090] In step 203, a laser reflectivity map is acquired based on the scene image, the position information of each laser point, and the laser reflectivity.

[0091] Among them, the laser reflectivity of the pixel point located at the target position in the laser reflectivity map is the laser reflectivity of the target laser point, the target laser point is any laser point among multiple laser points, the pixel point located at the target position is the projection point of the target laser point in the initial image, and the target position is determined based on the position information of the target laser point.

[0092] In a possible implementation, after the projection point of each laser point in the scene image is determined in the above step 202, the laser reflectivity of the projection point of each laser point in the scene image is adjusted to the laser reflectivity of the corresponding laser point to obtain a laser reflectivity map.

[0093] Exemplarily, the laser reflectivity of laser point 1 is a, and the projection point in the scene image is pixel point 1; the laser reflectivity of laser point 2 is b, and the projection point in the scene image is pixel point 2; the laser reflectivity of laser point 3 is c, and the projection point in the scene image is pixel point 3; the laser reflectivity of laser point 4 is d, and the projection point in the scene image is pixel point 4; the laser reflectivity of laser point 5 is e, and the projection point in the scene image is pixel point 5. The laser reflectivity of pixel point 1 in the scene image is adjusted to a, the laser reflectivity of pixel point 2 is adjusted to b, the laser reflectivity of pixel point 3 is adjusted to c, the laser reflectivity of pixel point 4 is adjusted to d, and the laser reflectivity of pixel point 5 is adjusted to e, and a laser reflectivity graph is obtained. Figure 5 It is a schematic diagram of a laser reflectivity diagram provided in an embodiment of the present application.

[0094] Alternatively, on objects of the same material, the laser reflectivity is usually relatively consistent, but between two objects, or between areas of different colors or materials on the same object, the laser reflectivity data often has certain differences. Figure 5 There is a certain difference in the laser reflectivity between traffic signs and cars. That is, laser reflectivity can help neural networks distinguish between different materials and objects.

[0095] In step 204, a completed depth map of the target scene is obtained according to the scene image, the sparse depth map and the laser reflectivity map, and each pixel point in the completed depth map corresponds to a depth.

[0096] In a possible implementation, the process of obtaining a completed depth map of a target scene based on a scene image, a sparse depth map, and a laser reflectivity map includes: obtaining a first completed depth map and a first confidence map based on the scene image and the sparse depth map; obtaining a second completed depth map and a second confidence map based on the sparse depth map, the first completed depth map, and the laser reflectivity map; fusing the first completed depth map and the second completed depth map based on the first confidence map and the second confidence map to obtain a completed depth map of the target scene. The first completed depth map is used to indicate the first depth of each pixel in the scene image, the first confidence map is used to indicate the first confidence of the first depth of each pixel, the second completed depth map is used to indicate the second depth of each pixel, and the second confidence map is used to indicate the second confidence of the second depth of each pixel.

[0097] In a possible implementation, the process of obtaining a first completed depth map and a first confidence map according to a scene image and a sparse depth map includes: obtaining a first image feature for characterizing the scene image; obtaining a second image feature for characterizing the sparse depth map; and obtaining a first completed depth map and a first confidence map according to the first image feature and the second image feature. Optionally, the first image feature and the second image feature are input into a first completion subnetwork, and the first completion depth map and the first confidence map are obtained according to the output result of the first completion subnetwork. The first completion subnetwork includes a convolution unit, a feature downsampling unit, a residual unit, an encoding unit, and a deconvolution unit.

[0098] The embodiment of the present application does not limit the method for acquiring the first image feature and the second image feature. Exemplarily, the feature acquisition model is called to acquire the first image feature for characterizing the scene image, and the feature acquisition model is called to acquire the second image feature for characterizing the sparse depth map. The feature acquisition model is any neural network model, which is not limited in the embodiment of the present application.

[0099] In one possible implementation, the process of obtaining a second completed depth map and a second confidence map based on a sparse depth map, a first completed depth map, and a laser reflectivity map includes: obtaining a validity mask map based on the laser reflectivity map, the validity mask map being used to indicate whether each pixel point included in the laser reflectivity map corresponds to a laser reflectivity; determining a laser reflectivity feature based on the laser reflectivity map and the validity mask map, the laser reflectivity feature being used to characterize the correlation between any two pixel points among multiple pixel points included in the scene image; obtaining a second completed depth map and a second confidence map based on the laser reflectivity feature, the sparse depth map, and the first completed depth map.

[0100] Optionally, according to the laser reflectivity map, the process of obtaining the validity mask map includes: determining the laser reflectivity corresponding to each pixel point included in the laser reflectivity map, based on the laser reflectivity of the pixel point in the laser reflectivity map meeting the reflectivity requirement, setting the value of the pixel point in the validity mask map to a first value, based on the laser reflectivity of the pixel point in the laser reflectivity map not meeting the reflectivity requirement, setting the value of the pixel point in the validity mask map to a second value, and obtaining the validity mask map. Exemplarily, the laser reflectivity meeting the reflectivity requirement means that the laser reflectivity is greater than the target value, and the laser reflectivity not meeting the reflection requirement means that the laser reflectivity is not greater than the target value. Optionally, the target value is set based on experience, or adjusted according to the implementation environment, and the embodiment of the present application does not limit this. Exemplarily, the target value is 0. The first value and the second value are not the same, and the first value and the second value are set based on experience, or adjusted according to the implementation environment, and the embodiment of the present application does not limit this. Exemplarily, the first value is 1 and the second value is 0.

[0101] Optionally, based on the laser reflectivity of each pixel point included in the laser reflectivity map, the value of each pixel point included in the effectiveness mask map is determined according to the following formula (1).

[0102]

[0103] In the above formula (1), M p is the value of the pth pixel in the validity mask, S p is the laser reflectivity of the pth pixel in the laser reflectivity map.

[0104] In one possible implementation, the process of determining the laser reflectivity feature according to the laser reflectivity map and the validity mask map includes: obtaining basic features according to the laser reflectivity map and the validity mask map, and the basic features are used to characterize the laser reflectivity map and the validity mask map; transforming the number of channels of the basic features to obtain the laser reflectivity feature. Exemplarily, the laser reflectivity map and the validity mask map are input into a laser reflectivity feature extraction model, and the laser reflectivity feature is obtained according to the output result of the laser reflectivity feature extraction model. Among them, the laser reflectivity feature extraction model is any neural network model, which is not limited in the embodiments of the present application. Exemplarily, the laser reflectivity feature extraction model is a Resnet (Deep Residual Network) 18 model.

[0105] Optionally, the laser reflectivity feature extraction model includes a network block, the network block includes a convolution unit, a batch normalization unit and an activation unit, wherein the convolution unit is a 1*1 convolution unit. The laser reflectivity map and the validity mask map are processed by the laser reflectivity feature extraction model to obtain the laser reflectivity feature, including: obtaining a third image feature for characterizing the laser reflectivity map, obtaining a fourth image feature for characterizing the validity mask map; and obtaining a basic feature based on the third image feature and the fourth image feature. The basic feature is input into the network block to obtain the laser reflectivity feature.

[0106] Optionally, the size of the laser reflectivity map and the size of the validity mask map can also be adjusted to obtain the resized laser reflectivity map and the resized validity mask map; the laser reflectivity feature is obtained according to the resized laser reflectivity map and the resized validity mask map. It should be noted that the size of the resized laser reflectivity map and the resized validity mask map are the same. For example, the size of the laser reflectivity map and the validity mask map are the same, the size of the laser reflectivity map is adjusted to 1 / 8 of the original size, and the size of the validity mask map is adjusted to 1 / 8 of the original size, to obtain the resized laser reflectivity map and the resized validity mask map.

[0107] In a possible implementation, the process of obtaining the second complement depth map and the second confidence map according to the laser reflectivity feature, the sparse depth map and the first complement depth map includes: determining the depth complement network feature according to the fifth image feature and the depth value memory feature used to characterize the sparse depth map, the depth complement network feature is used to characterize the depth of the pixel points included in the scene image; obtaining the target feature according to the position feature composed of the depth complement network feature, the laser reflectivity feature and the position encoding of each pixel point included in the scene image, the target feature is the feature after enhancing the effective information in the depth complement network feature; obtaining the second complement depth map and the second confidence map according to the target feature, the second image feature and the image feature of the first complement depth map. The process of obtaining the fifth image feature used to characterize the sparse depth map is similar to the process of obtaining the second image feature used to characterize the sparse depth map, and will not be repeated here. Among them, the depth value memory feature is a set of learnable parameters.

[0108] Optionally, the process of determining the depth completion network feature according to the fifth image feature and the depth value memory feature used to characterize the sparse depth map includes: performing a feature addition operation on the fifth image feature and the depth value memory feature to obtain the depth completion network feature. The feature addition operation refers to adding the values ​​at the same position in the fifth image feature and the depth value memory feature.

[0109] In a possible implementation, the process of obtaining the target feature according to the position feature composed of the depth completion network feature, the laser reflectivity feature and the position code of each pixel point included in the scene image includes: inputting the position feature composed of the depth completion network feature, the laser reflectivity feature and the position code of each pixel point included in the scene image into the laser reflectivity feature utilization model, and obtaining the target feature according to the output result of the laser reflectivity feature utilization model. The laser reflectivity feature utilization model includes three addition and normalization layers, one feedforward layer, and two multi-head attention layers. Among them, according to the input feature of the multi-head attention layer, the output feature of the multi-head attention layer is determined according to the following formula (2).

[0110]

[0111] In the above formula (2), MHA(Q, K, V) is the output feature of the multi-head attention layer, Q, K, and V are the input features of the multi-head attention layer, where Q represents the Query matrix, K represents the Key matrix, V represents the Value matrix, and K T represents the transpose of K, d K represents the dimension of the feature, and softmax represents the softmax function.

[0112] like Figure 6FIG. 1 is a schematic diagram of a process for determining a target feature provided by an embodiment of the present application. Figure 6 In the figure, the laser reflectivity feature, position feature, and depth completion network feature are added as Q1 and K1, the depth completion network feature is used as V1, and Q1, K1, and V1 are input into the first multi-head attention layer (MHA1); the output feature of MHA1 and the laser reflectivity feature are input into the first addition and normalization layer (Add&Norm1), the output feature and position feature of Add&Norm1 are added as Q2, the depth completion network feature and position feature are added as K2, the depth completion network feature is used as V2, and Q2, K2, and V2 are input into the second multi-head attention layer (MHA2); the output feature of MHA2 and the output feature of Add&Norm1 are input into the second addition and normalization layer (Add&Norm2); the output feature of Add&Norm2 is input into the feedforward layer (FFN); the output feature of FFN and the output feature of Add&Norm2 are input into the third addition and normalization layer (Add&Norm3); the output feature of Add&Norm3 is used as the target feature.

[0113] In one possible implementation, after obtaining the target feature, the process of obtaining the second complement depth map and the second confidence map according to the target feature, the second image feature and the image feature of the first complement depth map includes: inputting the target feature, the second image feature and the image feature of the first complement depth map into the second complement subnetwork, and obtaining the second complement depth map and the second confidence map according to the output result of the second complement subnetwork, and the second complement subnetwork includes a convolution unit, a residual unit, a feature downsampling unit, an encoding unit, a decoding unit and a deconvolution unit.

[0114] In a possible implementation, after obtaining the first completed depth map, the first confidence map, the second completed depth map, and the second confidence map, the first completed depth map and the second completed depth map are fused according to the first confidence map and the second confidence map to obtain the completed depth map of the target scene. The process includes: determining the target depth of each pixel according to the first depth of each pixel, the second depth of each pixel, the first confidence of the first depth of each pixel, and the second confidence of the second depth of each pixel; and obtaining the completed depth map of the target scene according to the target depth of each pixel.

[0115] According to the first confidence of the first depth of each pixel and the second confidence of the second depth of each pixel, the first depth of each pixel and the second depth of each pixel are fused to obtain the target depth of each pixel.

[0116] Optionally, the process of fusing the first depth of each pixel point and the second depth of each pixel point according to the first confidence of the first depth of each pixel point and the second confidence of the second depth of each pixel point to obtain the target depth of each pixel point includes: for any pixel point among the pixels, determining the first reference depth of any pixel point according to the first confidence of the first depth of any pixel point and the first depth of any pixel point; determining the second reference depth of any pixel point according to the second confidence of the second depth of any pixel point and the second depth of any pixel point; and taking the sum of the first reference depth of any pixel point and the second reference depth of any pixel point as the target depth of any pixel point.

[0117] Exemplarily, based on the first confidence of the first depth of each pixel and the second confidence of the second depth of each pixel, the first depth of each pixel and the second depth of each pixel are fused according to the following formula (3) to obtain the target depth of each pixel.

[0118] D i =D′ i *α+D″ i *β Formula (3)

[0119] In the above formula (3), D i is the target depth of the i-th pixel, D′ i is the first depth of the i-th pixel, α is the first confidence of the first depth of the i-th pixel, D″ i is the second depth of the i-th pixel, and β is the second confidence of the second depth of the i-th pixel.

[0120] In a possible implementation, the depth whose confidence meets the depth requirement can also be used as the target depth of the pixel point according to the first depth of each pixel point, the second depth of each pixel point, the first confidence of the first depth of each pixel point, and the second confidence of the second depth of each pixel point. Optionally, the depth with the highest confidence is used as the target depth of the pixel point. Exemplarily, the first confidence of the first depth of any pixel point among the pixels is 90, and the second confidence of the second depth is 80, so the first depth of any pixel point is used as the target depth of any pixel point. Alternatively, the depth with the lowest confidence is used as the target depth of the pixel point. Exemplarily, the first confidence of the first depth of any pixel point among the pixels is 90, and the second confidence of the second depth is 80, so the second depth of any pixel point is used as the target depth of any pixel point.

[0121] When obtaining the completed depth map of the target scene, the above method not only considers the location information of each laser point in the scene image and point cloud data of the target scene, but also considers the laser reflectivity of each laser point. According to the scene image, the location information of each laser point and the laser reflectivity, a laser reflectivity map is obtained, and then the completed depth map is obtained according to the laser reflectivity map, the sparse depth map and the scene image. Since the information considered is more comprehensive, the completion accuracy is higher, and thus the accuracy of the obtained completed depth map is higher.

[0122] Figure 7 is a flowchart of an image processing method provided by an embodiment of the present application, the method comprising:

[0123] Obtain the scene image and point cloud data of the target scene. This process has been described in the above step 201 and will not be repeated here.

[0124] According to the scene image and the point cloud data, a sparse depth map and a laser reflectivity map are obtained. This process has been described in the above steps 202 and 203, and will not be repeated here.

[0125] A first image feature for representing the scene image is obtained, and a second image feature for representing the sparse depth map is obtained; the first image feature and the second image feature are input into the first completion subnetwork to obtain a first confidence map and a first completed depth map. This process has been described in the above step 204 and will not be repeated here.

[0126] According to the laser reflectivity map, the validity mask map is obtained. This process has been described in the above step 204 and will not be repeated here.

[0127] A third image feature for characterizing the laser reflectivity image is obtained, a fourth image feature for characterizing the validity mask image is obtained, and the third image feature and the fourth image feature are input into the laser reflectivity feature extraction model to obtain the laser reflectivity feature. This process has been described in the above step 204 and will not be repeated here.

[0128] The fifth image feature for characterizing the sparse depth map is obtained, and the fifth image feature and the laser reflectivity feature are input into the laser reflectivity feature utilization model to obtain the target feature. This process has been described in the above step 204 and will not be repeated here.

[0129] The target feature, the second image feature and the image feature of the first completed depth map are input into the second completion subnetwork to obtain a second confidence map and a second completed depth map. This process has been described in the above step 204 and will not be repeated here.

[0130] According to the first confidence map, the second confidence map, the first completed depth map and the second completed depth map, a completed depth map is obtained. This process has been described in the above step 204 and will not be repeated here.

[0131] The following Table 1 is a table showing the effects of the image processing method provided in an embodiment of the present application.

[0132] Table 1

[0133] method Mean square error Mean absolute error Image processing method provided by background technology 754.59 215.68 The image processing method provided by the embodiment of the present application 748.91 210.32

[0134] It can be seen from Table 1 above that the root mean square error (RMSE) of the completed depth map obtained by the image processing method provided in the embodiment of the present application is smaller than the root mean square error of the completed depth map obtained by the image processing method provided in the background technology; the mean absolute error (MAE) of the completed depth map obtained by the image processing method provided in the embodiment of the present application is smaller than the mean absolute error of the completed depth map obtained by the image processing method provided in the background technology. It can be seen that the accuracy of the completed depth map obtained by the image processing method provided in the embodiment of the present application is higher.

[0135] Table 2 below is a table showing the impact of inputting different information into the laser reflectivity feature extraction model on the model performance provided in an embodiment of the present application.

[0136] Table 2

[0137]

[0138] It can be seen from Table 2 above that when the input of the laser reflectivity feature extraction model does not include the laser reflectivity map, the RMSE does not improve; when the input of the laser reflectivity feature extraction model includes the laser reflectivity map and the validity mask map, the RMSE and iMAE (mean absolute error of the inverse complement depth map) are improved. It can be seen that the complement depth map obtained by the method provided in this application has a high complement accuracy, which in turn makes the obtained complement depth map more accurate, and at the same time proves that the improvement in complement accuracy comes from the laser reflectivity itself.

[0139] The mean square error RMSE of the completed depth map is determined according to the following formula (4). The mean absolute error MAE of the completed depth map is determined according to the following formula (5). The mean absolute error iMAE of the inverse completed depth map is determined according to the following formula (6).

[0140]

[0141]

[0142]

[0143] In the above formulas (4), (5) and (6), y represents the depth of any pixel in the completed depth map of the target scene obtained by the image processing method, and y * represents the true depth value of any pixel, and T represents the set of pixels in the scene image.

[0144] Figure 8 FIG. 1 is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application. Figure 8 As shown, the device comprises:

[0145] The first acquisition module 801 is used to acquire a scene image and point cloud data of a target scene, wherein the point cloud data includes position information of multiple laser points and laser reflectivity of each laser point, wherein the laser reflectivity of a laser point is used to indicate the ratio of the laser intensity reflected by the laser point to the laser intensity emitted by the laser emitter to the laser point;

[0146] A second acquisition module 802 is used to acquire a sparse depth map according to the position information of each laser point and the scene image;

[0147] The third acquisition module 803 is used to acquire a laser reflectivity map according to the scene image, the position information of each laser point and the laser reflectivity, wherein the laser reflectivity of the pixel point located at the target position in the laser reflectivity map is the laser reflectivity of the target laser point, the target laser point is any laser point among the multiple laser points, the pixel point located at the target position is the projection point of the target laser point in the scene image, and the target position is determined based on the position information of the target laser point;

[0148] The fourth acquisition module 804 is used to acquire a completed depth map of the target scene according to the scene image, the sparse depth map and the laser reflectivity map, wherein each pixel point in the completed depth map corresponds to a depth.

[0149] In one possible implementation, the fourth acquisition module 804 is used to obtain a first completed depth map and a first confidence map based on the scene image and the sparse depth map, the first completed depth map being used to indicate the first depth of each pixel in the scene image, and the first confidence map being used to indicate the first confidence of the first depth of each pixel; obtaining a second completed depth map and a second confidence map based on the sparse depth map, the first completed depth map, and the laser reflectivity map, the second completed depth map being used to indicate the second depth of each pixel, and the second confidence map being used to indicate the second confidence of the second depth of each pixel; and fusing the first completed depth map and the second completed depth map based on the first confidence map and the second confidence map to obtain a completed depth map of the target scene.

[0150] In one possible implementation, the fourth acquisition module 804 is used to obtain a validity mask map based on the laser reflectivity map, where the validity mask map is used to indicate whether each pixel point included in the laser reflectivity map corresponds to a laser reflectivity; determine a laser reflectivity feature based on the laser reflectivity map and the validity mask map, where the laser reflectivity feature is used to characterize the correlation between any two pixel points among the multiple pixel points included in the scene image; and obtain a second completed depth map and a second confidence map based on the laser reflectivity feature, the sparse depth map and the first completed depth map.

[0151] In a possible implementation, the fourth acquisition module 804 is used to acquire basic features according to the laser reflectivity map and the validity mask map, and the basic features are used to characterize the laser reflectivity map and the validity mask map; the number of channels of the basic features is transformed to obtain the laser reflectivity features.

[0152] In one possible implementation, the fourth acquisition module 804 is used to set the value of the pixel point in the validity mask map to a first value based on the laser reflectivity of the pixel point in the laser reflectivity map meeting the reflectivity requirement, and to set the value of the pixel point in the validity mask map to a second value based on the laser reflectivity of the pixel point in the laser reflectivity map not meeting the reflectivity requirement, so as to obtain a validity mask map.

[0153] In one possible implementation, the fourth acquisition module 804 is used to determine the depth completion network feature based on the fifth image feature and the depth value memory feature used to characterize the sparse depth map, the depth completion network feature is used to characterize the depth of the pixel points included in the scene image, and the depth value memory feature is a set of learnable parameters; according to the position feature composed of the depth completion network feature, the reflectivity feature and the position encoding of each pixel point included in the scene image, the target feature is obtained, and the target feature is the feature after enhancing the effective information in the depth completion network feature; according to the target feature, the second image feature and the image feature of the first completed depth map, the second completed depth map and the second confidence map are obtained.

[0154] In a possible implementation, the fourth acquisition module 804 is used to obtain a first image feature for characterizing a scene image; obtain a second image feature for characterizing a sparse depth map; and obtain a first completed depth map and a first confidence map based on the first image feature and the second image feature.

[0155] In one possible implementation, the fourth acquisition module 804 is used to fuse the first depth of each pixel and the second depth of each pixel based on the first confidence of the first depth of each pixel and the second confidence of the second depth of each pixel to obtain the target depth of each pixel; and obtain the completed depth map of the target scene based on the target depth of each pixel.

[0156] In a possible implementation, the device further includes:

[0157] A determination module, used to determine the projection point of each laser point in the scene image according to the position information of each laser point;

[0158] A second acquisition module 802 is used to adjust the depth of the projection point of each laser point in the scene image to the depth of the corresponding laser point to obtain a sparse depth map;

[0159] The third acquisition module 803 is used to adjust the laser reflectivity of the projection point of each laser point in the scene image to the laser reflectivity of the corresponding laser point to obtain a laser reflectivity map.

[0160] When acquiring the completed depth map of the target scene, the above device not only considers the location information of each laser point in the scene image and point cloud data of the target scene, but also considers the laser reflectivity of each laser point, and acquires the laser reflectivity map according to the scene image, the location information of each laser point and the laser reflectivity, and then acquires the completed depth map according to the laser reflectivity map, the sparse depth map and the scene image. Since the information considered is more comprehensive, the completion accuracy is higher, and thus the accuracy of the acquired completed depth map is higher.

[0161] It should be understood that the above-mentioned device only uses the division of the above-mentioned functional modules as an example to illustrate when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0162] Fig. 9 The structure block diagram of a terminal device 900 provided by an exemplary embodiment of the present application is shown. The terminal device 900 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal device 900 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.

[0163] Typically, the terminal device 900 includes: a processor 901 and a memory 902 .

[0164] The processor 901 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 901 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 901 may also include a main processor and a coprocessor. The main processor is a processor for processing data in an awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 901 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 901 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0165] The memory 902 may include one or more computer-readable storage media, which may be non-transitory. The memory 902 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 902 is used to store at least one instruction, which is used to be executed by the processor 901 to implement the image processing method provided in the method embodiment of the present application.

[0166] In some embodiments, the terminal device 900 may further optionally include: a peripheral device interface 903 and at least one peripheral device. The processor 901, the memory 902 and the peripheral device interface 903 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 903 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 904, a display screen 905, a camera assembly 906, an audio circuit 907, a positioning assembly 908 and a power supply 909.

[0167] The peripheral device interface 903 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 901 and the memory 902. In some embodiments, the processor 901, the memory 902, and the peripheral device interface 903 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 901, the memory 902, and the peripheral device interface 903 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.

[0168] The radio frequency circuit 904 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 904 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 904 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 904 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 904 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 904 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.

[0169] The display screen 905 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 905 is a touch display screen, the display screen 905 also has the ability to collect touch signals on the surface or above the surface of the display screen 905. The touch signal can be input to the processor 901 as a control signal for processing. At this time, the display screen 905 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 905 can be one, set on the front panel of the terminal device 900; in other embodiments, the display screen 905 can be at least two, respectively set on different surfaces of the terminal device 900 or in a folding design; in other embodiments, the display screen 905 can be a flexible display screen, set on the curved surface or folding surface of the terminal device 900. Even, the display screen 905 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 905 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).

[0170] The camera assembly 906 is used to capture images or videos. Optionally, the camera assembly 906 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal device 900, and the rear camera is arranged on the back of the terminal device 900. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 906 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.

[0171] The audio circuit 907 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 901 for processing, or input them into the radio frequency circuit 904 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 900. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 901 or the radio frequency circuit 904 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 907 may also include a headphone jack.

[0172] The positioning component 908 is used to locate the current geographical location of the terminal device 900 to implement navigation or LBS (Location Based Service). The positioning component 908 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system, Russia's Grenas system or the European Union's Galileo system.

[0173] The power supply 909 is used to power various components in the terminal device 900. The power supply 909 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 909 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0174] In some embodiments, the terminal device 900 further includes one or more sensors 910 , including but not limited to: an acceleration sensor 911 , a gyroscope sensor 912 , a pressure sensor 913 , a fingerprint sensor 914 , an optical sensor 915 , and a proximity sensor 916 .

[0175] The acceleration sensor 911 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal device 900. For example, the acceleration sensor 911 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 901 can control the display screen 905 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 911. The acceleration sensor 911 can also be used for collecting game or user motion data.

[0176] The gyroscope sensor 912 can detect the body direction and rotation angle of the terminal device 900. The gyroscope sensor 912 can cooperate with the acceleration sensor 911 to collect the user's 3D actions on the terminal device 900. The processor 901 can implement the following functions based on the data collected by the gyroscope sensor 912: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.

[0177] The pressure sensor 913 can be set on the side frame of the terminal device 900 and / or the lower layer of the display screen 905. When the pressure sensor 913 is set on the side frame of the terminal device 900, it can detect the user's holding signal of the terminal device 900, and the processor 901 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 913. When the pressure sensor 913 is set on the lower layer of the display screen 905, the processor 901 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 905. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0178] The fingerprint sensor 914 is used to collect the user's fingerprint, and the processor 901 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 914, or the fingerprint sensor 914 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 901 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 914 can be set on the front, back, or side of the terminal device 900. When a physical button or a manufacturer logo is set on the terminal device 900, the fingerprint sensor 914 can be integrated with the physical button or the manufacturer logo.

[0179] The optical sensor 915 is used to collect the ambient light intensity. In one embodiment, the processor 901 can control the display brightness of the display screen 905 according to the ambient light intensity collected by the optical sensor 915. Specifically, when the ambient light intensity is high, the display brightness of the display screen 905 is increased; when the ambient light intensity is low, the display brightness of the display screen 905 is reduced. In another embodiment, the processor 901 can also dynamically adjust the shooting parameters of the camera component 906 according to the ambient light intensity collected by the optical sensor 915.

[0180] The proximity sensor 916, also called a distance sensor, is usually arranged on the front panel of the terminal device 900. The proximity sensor 916 is used to collect the distance between the user and the front of the terminal device 900. In one embodiment, when the proximity sensor 916 detects that the distance between the user and the front of the terminal device 900 is gradually decreasing, the processor 901 controls the display screen 905 to switch from the screen-on state to the screen-off state; when the proximity sensor 916 detects that the distance between the user and the front of the terminal device 900 is gradually increasing, the processor 901 controls the display screen 905 to switch from the screen-off state to the screen-on state.

[0181] Those skilled in the art will understand that Fig. 9 The structure shown in the figure does not constitute a limitation on the terminal device 900, and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0182] Fig.10 The schematic diagram of the structure of the server provided in the embodiment of the present application, the server 1000 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1001 and one or more memories 1002, wherein the one or more memories 1002 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1001 to implement the image processing methods provided in the above-mentioned various method embodiments. Of course, the server 1000 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server 1000 may also include other components for implementing device functions, which will not be described in detail here.

[0183] In an exemplary embodiment, a computer-readable storage medium is further provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable a computer to implement any one of the above-mentioned image processing methods.

[0184] Optionally, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0185] In an exemplary embodiment, a computer program or a computer program product is further provided. The computer program or the computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above-mentioned image processing methods.

[0186] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the scene images and point cloud data of the target scene involved in this application are all obtained with full authorization.

[0187] It should be understood that the "plurality" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0188] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0189] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. An image processing method, characterized in that: The method comprises: Acquire a scene image and point cloud data of a target scene, wherein the point cloud data includes position information of multiple laser points and laser reflectivity of each laser point, wherein the laser reflectivity of the laser point is used to indicate the ratio of the laser intensity reflected by the laser point to the laser intensity emitted by the laser emitter to the laser point; According to the position information of each laser point and the scene image, a sparse depth map is acquired, wherein the acquisition of the sparse depth map specifically includes adjusting the depth of the projection point of each laser point in the scene image to the depth of the corresponding laser point to obtain the sparse depth map; According to the scene image, the position information of each laser point and the laser reflectivity, a laser reflectivity map is acquired, wherein the laser reflectivity of the pixel point located at the target position in the laser reflectivity map is the laser reflectivity of the target laser point, the target laser point is any one of the multiple laser points, the pixel point located at the target position is the projection point of the target laser point in the scene image, and the target position is determined based on the position information of the target laser point; According to the scene image, the sparse depth map and the laser reflectivity map, a completed depth map of the target scene is obtained, wherein each pixel in the completed depth map corresponds to a depth, wherein according to the scene image, the sparse depth map and the laser reflectivity map, the completed depth map of the target scene is obtained, including: Acquire a first completed depth map and a first confidence map according to the scene image and the sparse depth map, wherein the first completed depth map is used to indicate a first depth of each pixel in the scene image, and the first confidence map is used to indicate a first confidence of the first depth of each pixel; Acquire a second completed depth map and a second confidence map according to the sparse depth map, the first completed depth map, and the laser reflectivity map, wherein the second completed depth map is used to indicate a second depth of each pixel, and the second confidence map is used to indicate a second confidence of the second depth of each pixel; The first completed depth map and the second completed depth map are fused according to the first confidence map and the second confidence map to obtain a completed depth map of the target scene.

2. The method according to claim 1, characterized in that The step of acquiring a second completed depth map and a second confidence map according to the sparse depth map, the first completed depth map, and the laser reflectivity map includes: According to the laser reflectivity map, obtaining a validity mask map, wherein the validity mask map is used to indicate whether each pixel point included in the laser reflectivity map corresponds to a laser reflectivity; Determining a laser reflectivity feature according to the laser reflectivity map and the validity mask map, wherein the laser reflectivity feature is used to characterize a correlation between any two pixel points among a plurality of pixel points included in the scene image; The second completed depth map and the second confidence map are acquired according to the laser reflectivity feature, the sparse depth map and the first completed depth map.

3. The method according to claim 2, characterized in that The step of determining the laser reflectivity feature according to the laser reflectivity map and the validity mask map comprises: Acquire basic features according to the laser reflectivity map and the validity mask map, wherein the basic features are used to characterize the laser reflectivity map and the validity mask map; The number of channels of the basic feature is transformed to obtain the laser reflectivity feature.

4. The method according to claim 2, characterized in that The step of obtaining a validity mask map according to the laser reflectivity map includes: Based on the fact that the laser reflectivity of the pixel point in the laser reflectivity map meets the reflectivity requirement, the value of the pixel point in the validity mask map is set to a first value; based on the fact that the laser reflectivity of the pixel point in the laser reflectivity map does not meet the reflectivity requirement, the value of the pixel point in the validity mask map is set to a second value to obtain the validity mask map.

5. The method according to claim 1, characterized in that The acquiring, according to the scene image and the sparse depth map, a first completed depth map and a first confidence map comprises: Acquire a first image feature for characterizing the scene image; Acquire a second image feature for characterizing the sparse depth map; The first completed depth map and the first confidence map are acquired according to the first image feature and the second image feature.

6. The method according to claim 2, characterized in that The acquiring, according to the laser reflectivity feature, the sparse depth map and the first completed depth map, the second completed depth map and the second confidence map comprises: Determining a depth completion network feature according to a fifth image feature and a depth value memory feature used to characterize the sparse depth map, wherein the depth completion network feature is used to characterize the depth of pixels included in the scene image, and the depth value memory feature is a set of learnable parameters; Acquire a target feature according to the depth completion network feature, the reflectivity feature, and a position feature composed of position codes of each pixel point included in the scene image, wherein the target feature is a feature after enhancing effective information in the depth completion network feature; The second completed depth map and the second confidence map are acquired according to the target feature, the second image feature and the image feature of the first completed depth map.

7. The method according to any one of claims 2 to 6, characterized in that: The step of fusing the first completed depth map and the second completed depth map according to the first confidence map and the second confidence map to obtain the completed depth map of the target scene includes: According to the first confidence of the first depth of each pixel point and the second confidence of the second depth of each pixel point, the first depth of each pixel point and the second depth of each pixel point are merged to obtain the target depth of each pixel point; According to the target depth of each pixel point, a completed depth map of the target scene is obtained.

8. The method according to any one of claims 1 to 6, characterized in that: After acquiring the scene image and point cloud data of the target scene, the method further includes: Determining the projection points of the laser points in the scene image according to the position information of the laser points; The step of acquiring a sparse depth map according to the position information of each laser point and the scene image includes: Adjusting the depth of the projection point of each laser point in the scene image to the depth of the corresponding laser point to obtain the sparse depth map; The step of obtaining a laser reflectivity map according to the scene image, the position information of each laser point, and the laser reflectivity includes: The laser reflectivity of the projection point of each laser point in the scene image is adjusted to the laser reflectivity of the corresponding laser point to obtain the laser reflectivity map.

9. A computer device, characterized in that: The computer device includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, so that the computer device implements the image processing method according to any one of claims 1 to 8.