Image processing method and device, computer equipment, readable storage medium and program product

Through the combination of 3D reconstruction neural network model and depth map, the problem of poor positioning accuracy of sensitive objects in the monitoring screen in traditional technology is solved, and more efficient image restoration and privacy protection are achieved.

CN118657884APending Publication Date: 2024-09-17INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410841675.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

When traditional technology processes surveillance images from different shooting angles, the accuracy of positioning and identifying sensitive objects is poor, which affects the effect of image restoration and makes it difficult to ensure privacy and information security.

Method used

The 3D reconstruction neural network model is used for mask segmentation and fitting reconstruction, and the depth map and perception optimization constraints are combined to update and render the initial 3D scene to generate a target 3D scene that meets the preset perception conditions, thereby achieving accurate desensitization of sensitive objects. .

Benefits of technology

It improves the accuracy and authenticity of image restoration, can better adapt to different image styles and characteristics, and ensures the security of sensitive information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657884A
    Figure CN118657884A
Patent Text Reader

Abstract

The invention relates to an image processing method and device, computer equipment, a computer readable storage medium and a computer program product. Relates to the technical field of information security. The method comprises the following steps: acquiring a plurality of original images at different shooting angles; carrying out mask segmentation and fitting reconstruction on the original image based on the three-dimensional reconstruction neural network model to obtain an initial three-dimensional scene without the target object; updating and rendering the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene meeting a preset perception condition; and generating a desensitized target image after processing the target object based on the target three-dimensional scene. By adopting the method, the image restoration accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer vision technology, and in particular to an image processing method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Art

[0002] With the development of monitoring equipment, the pixels of monitoring images are getting higher and higher, and the objects in the monitoring images are becoming clearer and clearer. In order to promote the framing, the monitoring images of banks or financial institutions are often used as promotional images. At this time, the privacy and information security of customers who handle business are at risk. For example, sensitive items such as customer ID cards and bank cards are often included in the monitoring images of bank business halls.

[0003] In traditional technology, for monitoring images obtained by monitoring equipment at different shooting angles, independent sensitive objects are identified and located in the original image of each monitoring image, and the position and shape of the sensitive objects contained in the original image at each shooting angle are determined. Mosaic coding is performed or the original image is filled and covered on a plane to blur or block the sensitive objects in the original image to ensure privacy and information security.

[0004] However, in traditional technologies, target recognition and positioning are performed on the original image in the monitoring screen. Since the shooting angle of the monitoring equipment is fixed, the positioning and recognition of sensitive objects in the original image under the fixed shooting angle will be affected, resulting in poor accuracy in the repair processing of sensitive objects in the original image. Summary of the invention

[0005] Based on this, it is necessary to provide an image processing method, apparatus, computer device, computer-readable storage medium and computer program product to address the above technical issues.

[0006] In a first aspect, the present application provides an image processing method, comprising:

[0007] Obtain original images from multiple different shooting angles;

[0008] Performing mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0009] According to the depth map of the original image, the perception optimization constraint and the optimization model, the initial three-dimensional scene is updated and rendered to obtain a target three-dimensional scene that meets the preset perception conditions;

[0010] A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

[0011] In one embodiment, the 3D reconstruction neural network model includes an interactive segmentation sub-model; the mask segmentation and fitting reconstruction of the original image based on the 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated includes:

[0012] Extracting each of the original images according to a preset parameter extraction model to obtain shooting parameters of each of the original images and three-dimensional point parameters of the target object contained in each of the original images;

[0013] Performing mask segmentation on each of the original images according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each of the original images;

[0014] The original image is fitted and reconstructed according to the shooting parameters and the three-dimensional reconstruction neural network model, and the target object in the fitting and reconstruction result is eliminated or replaced by the mask according to the mask information to obtain an initial three-dimensional scene.

[0015] In one embodiment, the preset parameter extraction model includes a target recognition sub-model and a parameter reasoning sub-model; the extraction of each of the original images according to the preset parameter extraction model to obtain the shooting parameters of each of the original images and the three-dimensional point parameters of the target object contained in each of the original images includes:

[0016] Performing target recognition on each of the original images according to the target recognition sub-model to obtain target objects contained in each of the original images, and target positions and size information of the target objects;

[0017] Performing parameter reasoning on each of the original images based on the parameter reasoning sub-model to obtain shooting parameters of the shooting device corresponding to each of the original images;

[0018] Parameter inference is performed on the target position and the size information based on the parameter inference sub-model to obtain the three-dimensional point parameters of the target object in each of the original images.

[0019] In one of the embodiments, updating and rendering the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene that meets the preset perception conditions includes:

[0020] Constructing a depth map corresponding to each of the original images according to the shooting parameters corresponding to each of the original images;

[0021] Determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene, and the optimization model;

[0022] performing batch updating and rendering on the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain an updated initial three-dimensional scene;

[0023] The updated initial three-dimensional scene is used as a new initial three-dimensional scene, and the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene and the optimization model is performed until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

[0024] In one embodiment, determining the perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene and the optimization model includes:

[0025] Performing projection mapping on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model to generate a projection reconstructed image at the same angle as the original image;

[0026] Determining an initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determining a perceptual loss separation weight in combination with the depth map as a priori condition;

[0027] Based on the perceptual loss separation weight and the initial perceptual optimization loss value, a perceptual optimization loss value between the original image and the initial three-dimensional scene is determined.

[0028] In one embodiment, the batch updating and rendering of the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain the updated initial three-dimensional scene includes:

[0029] Determine the patch blocks included in the initial three-dimensional scene based on the perception optimization loss value;

[0030] The patch blocks are updated and rendered in batches to obtain an updated initial three-dimensional scene.

[0031] In one embodiment, generating a target image desensitized after processing the target object based on the target three-dimensional scene includes:

[0032] Get the target angle;

[0033] Projection mapping is performed on the target three-dimensional scene based on the target angle to obtain a desensitized target image after processing the target object at the target angle.

[0034] In a second aspect, the present application further provides an image processing device, comprising:

[0035] An acquisition module is used to acquire original images at multiple different shooting angles;

[0036] A 3D reconstruction module, used to perform mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0037] An updating rendering module is used to update and render the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene that meets the preset perception conditions;

[0038] A generation module is used to generate a target image that is desensitized after processing the target object based on the target three-dimensional scene.

[0039] In one of the embodiments, the 3D reconstruction neural network model includes an interactive segmentation sub-model; the 3D reconstruction module is specifically used to extract each of the original images according to a preset parameter extraction model to obtain shooting parameters of each of the original images and 3D point parameters of the target object contained in each of the original images;

[0040] Performing mask segmentation on each of the original images according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each of the original images;

[0041] The original image is fitted and reconstructed according to the shooting parameters and the three-dimensional reconstruction neural network model, and the target object in the fitting and reconstruction result is eliminated or replaced by the mask according to the mask information to obtain an initial three-dimensional scene.

[0042] In one embodiment, the preset parameter extraction model includes a target recognition sub-model and a parameter reasoning sub-model; the three-dimensional reconstruction module is specifically used to perform target recognition on each of the original images according to the target recognition sub-model to obtain the target object contained in each of the original images, the target position and size information of the target object;

[0043] Performing parameter reasoning on each of the original images based on the parameter reasoning sub-model to obtain shooting parameters of the shooting device corresponding to each of the original images;

[0044] Parameter inference is performed on the target position and the size information based on the parameter inference sub-model to obtain the three-dimensional point parameters of the target object in each of the original images.

[0045] In one of the embodiments, the updating and rendering module is specifically used to construct a depth map corresponding to each of the original images according to the shooting parameters corresponding to each of the original images;

[0046] Determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene, and the optimization model;

[0047] performing batch updating and rendering on the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain an updated initial three-dimensional scene;

[0048] The updated initial three-dimensional scene is used as a new initial three-dimensional scene, and the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene and the optimization model is performed until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

[0049] In one of the embodiments, the update rendering module is specifically used to perform projection mapping on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model, and generate a projection reconstructed image at the same angle as the original image;

[0050] Determining an initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determining a perceptual loss separation weight in combination with the depth map as a priori condition;

[0051] Based on the perceptual loss separation weight and the initial perceptual optimization loss value, a perceptual optimization loss value between the original image and the initial three-dimensional scene is determined.

[0052] In one of the embodiments, the updating rendering module is specifically used to determine the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value;

[0053] The patch blocks are updated and rendered in batches to obtain an updated initial three-dimensional scene.

[0054] In one of the embodiments, the generating module is specifically used to obtain a target angle;

[0055] Projection mapping is performed on the target three-dimensional scene based on the target angle to obtain a desensitized target image after processing the target object at the target angle.

[0056] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0057] Obtain original images from multiple different shooting angles;

[0058] Performing mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0059] According to the depth map of the original image, the perception optimization constraint and the optimization model, the initial three-dimensional scene is updated and rendered to obtain a target three-dimensional scene that meets the preset perception conditions;

[0060] A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

[0061] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0062] Obtain original images from multiple different shooting angles;

[0063] Performing mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0064] According to the depth map of the original image, the perception optimization constraint and the optimization model, the initial three-dimensional scene is updated and rendered to obtain a target three-dimensional scene that meets the preset perception conditions;

[0065] A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

[0066] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0067] Obtain original images from multiple different shooting angles;

[0068] Performing mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0069] According to the depth map of the original image, the perception optimization constraint and the optimization model, the initial three-dimensional scene is updated and rendered to obtain a target three-dimensional scene that meets the preset perception conditions;

[0070] A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

[0071] The above-mentioned image processing method, apparatus, computer equipment, computer-readable storage medium and computer program product realize multi-angle information fusion through original images at multiple different angles to obtain more comprehensive and diverse information, and perform mask segmentation and fitting reconstruction according to the three-dimensional point parameters of the three-dimensional reconstruction neural network model object. When processing complex image restoration tasks, it is possible to more accurately identify and repair the target object and improve the restoration quality. Then, the optimization model and the depth map of the initial three-dimensional scene are used as constraints for perceptual optimization to update and render the initial three-dimensional scene, which can better adapt to different image styles and characteristics, further improve the authenticity of the target three-dimensional scene, and thus improve the accuracy of image restoration. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions 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 related drawings can be obtained based on these drawings without paying creative work.

[0073] Figure 1 is a schematic flow chart of an image processing method in one embodiment;

[0074] Figure 2 is a schematic diagram of a process of performing three-dimensional reconstruction based on an original image in one embodiment;

[0075] Figure 3 A schematic diagram of a process of extracting parameters of an original image and a target object in one embodiment;

[0076] Figure 4 A schematic diagram of a process for rendering and optimizing an initial three-dimensional scene in one embodiment;

[0077] Figure 5 A schematic diagram of a process for determining a perception optimization loss value in one embodiment;

[0078] Figure 6 It is a schematic diagram of a process of performing batch update rendering of an initial three-dimensional scene based on patch blocks in one embodiment;

[0079] Figure 7 A schematic diagram of a process for generating a target image at a target angle in one embodiment;

[0080] Figure 8 is a structural block diagram of an image processing device in one embodiment;

[0081] Fig. 9FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0082] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0083] In one embodiment, Figure 1 As shown, an image processing method is provided. This embodiment takes the method applied to a terminal as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0084] Step 102: Acquire original images at multiple different shooting angles.

[0085] In the embodiment of the present application, in a scenario such as a financial institution or a bank business hall, the terminal obtains original images at multiple different angles through monitoring devices with multiple shooting angles. Specifically, the terminal can extract frames from the monitoring video shot by the monitoring device to obtain original images at different shooting angles.

[0086] In an optional embodiment, the terminal performs preprocessing operations on multiple original images of different shooting angles in the same scene, including denoising, color correction and visual estimation on the original images, so as to improve the accuracy of subsequent processing.

[0087] Step 104 , performing mask segmentation and fitting reconstruction on the original image based on the 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated.

[0088] The three-dimensional reconstruction neural network model may be a NeRF (Neural Radiance Fields) model.

[0089] In an embodiment of the present application, first, the terminal performs mask segmentation on each original image through a three-dimensional reconstruction neural network model, and separates the target object from the scene of the original image according to the source view of the target object in the original image. The source view of the target object refers to the rough shape information and position information of the target object provided by the original image after the three-dimensional reconstruction neural network model performs preliminary processing on the original image. Then, the terminal uses the three-dimensional reconstruction neural network model to perform three-dimensional reconstruction on the scene after the mask segmentation of the target object, and initializes the modeling of the scene in the original image by fitting semantics, including information fusion from the original images from multiple angles, to obtain the geometric features and surface features of each object in the scene, and finally obtain the initial three-dimensional scene with the target object eliminated.

[0090] Among them, with respect to the elimination of the target object, the terminal may eliminate the mask information of the target object during the mask segmentation process, and use mosaic or blurring processing to replace the sensitive object containing sensitive information in the original image. Alternatively, the terminal may also generate the back side of the sensitive object based on the shape, color and other information of the sensitive object, and use the back side of the sensitive object to replace its original surface, so as to eliminate the sensitive information in the scene reflected in the original image.

[0091] Step 106, updating and rendering the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraints and the optimization model, to obtain a target three-dimensional scene that meets the preset perception conditions.

[0092] In the embodiment of the present application, the terminal first generates a depth map corresponding to each original image according to the original image acquired in step 102, and the depth map includes distance information of each pixel point in the original image from the shooting device.

[0093] The terminal uses the predefined perceptual loss function as the perceptual optimization constraint, and measures the visual difference between the generated initial 3D scene and the original image based on the perceptual loss function. Then, the terminal uses the optimization algorithm and deep learning, combined with the depth map and perceptual optimization constraints, to update and render the initial 3D scene, including adjusting the geometry and appearance of each object in the current scene to make it more consistent with the features of the corresponding object in the original image. During the iterative process of updating and rendering the initial 3D scene, when the perceptual loss between the initial 3D scene and the original image meets the preset perceptual conditions, it means that the optimized and rendered initial 3D scene is visually consistent with the original image. At this time, the target 3D scene is updated and rendered.

[0094] Step 108: Generate a target image by processing and desensitizing the target object based on the target three-dimensional scene.

[0095] In an embodiment of the present application, the terminal generates a desensitized target image based on the target three-dimensional scene to desensitize and repair sensitive objects in the original image, and obtains a target image in which the sensitive objects are blurred, pixelated or back-replaced, ensuring that the generated target image no longer displays sensitive information while maintaining the recognition features of the scene contained in the initial image, so that the replaced area is visually more natural and reasonable.

[0096] In the above image processing method, multi-angle information fusion is achieved through the original images at multiple different angles to obtain more comprehensive and diverse information, and mask segmentation and fitting reconstruction are performed according to the three-dimensional point parameters of the 3D reconstruction neural network model object. When processing complex image restoration tasks, the target object can be more accurately identified and restored, and the restoration quality can be improved. Then, the optimized model and the depth map of the initial 3D scene are used as constraints for perceptual optimization to update and render the initial 3D scene, which can better adapt to different image styles and characteristics, further improve the authenticity of the target 3D scene, and thus improve the accuracy of image restoration.

[0097] In an exemplary embodiment, Figure 2 As shown, step 104 includes steps 202 to 206. Among them:

[0098] Step 202 : extracting each original image according to a preset parameter extraction model to obtain shooting parameters of each original image and three-dimensional point parameters of the target object contained in each original image.

[0099] In an embodiment of the present application, the terminal analyzes and processes each original image according to a preset parameter extraction model to extract the shooting parameters of each original image, including the intrinsic and extrinsic parameters of the shooting device. At the same time, the terminal extracts the three-dimensional point parameters of the target object from each original image, and represents the position, shape and other features of the target object in the three-dimensional space represented by the original image through the three-dimensional point parameters, thereby providing original data for subsequent mask segmentation and fitting reconstruction.

[0100] Step 204 , performing mask segmentation on each original image according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each original image.

[0101] In an embodiment of the present application, the three-dimensional reconstruction neural network model includes a pre-trained interactive segmentation sub-model, which is used to perform mask segmentation of the target object in the original image. The interactive segmentation sub-model is used to perform semantic segmentation on the target object in the original image, thereby separating the target object in the original image from the background. In the process of mask segmentation, the three-dimensional point parameters of the target object are used to guide the interactive segmentation sub-model, so as to obtain the mask information of the target object for each original image.

[0102] Step 206, the original image is reconstructed by fitting according to the shooting parameters and the 3D reconstruction neural network model, and the target object in the fitting reconstruction result is eliminated or replaced by the mask according to the mask information to obtain an initial 3D scene.

[0103] In an embodiment of the present application, the original image is an RGB (RGB color mode) image. The terminal uses the RRGB image as input, combines the shooting parameters and the mask information of the target object, and fits the initial three-dimensional scene with the mask information of the target object deleted.

[0104] The terminal inputs the shooting parameters and the original image into the 3D reconstruction neural network model. The NeRF model is used as an example of the 3D reconstruction neural network model. The NeRF model learns and predicts the color and density of each point in the scene from the input original images of multiple perspectives. The NeRF model assumes that each point in the scene has a density function and a color function, which are learned and predicted by the data provided by the input original image. The NeRF model constructs an initial rough 3D model as a fitting reconstruction result through visual geometry technology (e.g., structured light, stereo vision) or based on image matching (e.g., multi-view stereo matching). In the process of projecting the high-resolution original image onto the initial rough 3D model, the target object is eliminated or replaced by the mask according to the mask information of the target object, and the initial 3D scene with the target object eliminated is obtained. The initial 3D scene contains the approximate shape of the scene represented by the original image and the position of each object, which needs to be further optimized and rendered.

[0105] In this embodiment, the interactive segmentation sub-model can accurately separate the target object in the original image from the background, and under the guidance of the three-dimensional point parameters, more accurate mask information can be generated, and then the original image can be fitted and reconstructed and the target object can be eliminated or the mask replaced, thereby avoiding the leakage of sensitive information, strengthening information security management, and obtaining the initial three-dimensional scene after desensitizing the target object.

[0106] In an exemplary embodiment, the preset parameter extraction model includes a target recognition sub-model and a parameter reasoning sub-model, such as Figure 3 As shown, step 202 includes steps 302 to 306. Among them:

[0107] Step 302 , performing target recognition on each original image according to the target recognition sub-model, and obtaining the target object, the target position and the size information of the target object contained in each original image.

[0108] In an embodiment of the present application, the target recognition submodel may be a recognition model based on an object detection algorithm. The terminal uses a pre-trained convolutional neural network to extract feature representations from the input original image, and analyzes the feature representations according to the target recognition submodel to detect the target object in the original image, that is, the sensitive object contained in the original image that needs to be desensitized and repaired. The terminal determines the bounding box of each detected target object, that is, the target position of the target object, according to the target recognition submodel, and processes the bounding box to obtain the precise size of the target object in the image, that is, the size information.

[0109] Step 304 , performing parameter inference on each original image based on the parameter inference sub-model to obtain the shooting parameters of the shooting device corresponding to each original image.

[0110] The shooting parameters include the internal and external parameters of the shooting equipment.

[0111] In an embodiment of the present application, the parameter inference sub-model may be a COLMAP (COLLISION-MAPping, a model based on structured light and camera positioning) model. The terminal uses the COLMAP model to process multiple input raw images to obtain the intrinsic and extrinsic parameters of the camera. Specifically, the terminal uses SIFT or other feature description algorithms to extract features from the loaded raw images through the COLMAP model. Then, the extracted features are matched to find the corresponding feature points under multiple perspectives, and the feature matching information between the raw images is used to estimate the position and posture (extrinsic parameters) of each shooting device, as well as the internal parameters of the camera in the shooting device (for example, focal length, principal point, etc.). Finally, the terminal obtains the intrinsic and extrinsic parameters of the shooting device through the COLMAP model.

[0112] Step 306 , performing parameter reasoning on the target position and size information based on the parameter reasoning sub-model to obtain the three-dimensional point parameters of the target object in each original image.

[0113] In an embodiment of the present application, the terminal performs feature extraction on the target object according to the parameter reasoning sub-model, and in each original image, based on the target position and size information of the target object, performs feature extraction on the target object to obtain the feature information of the target object. Finally, according to the same principle as the parameter reasoning sub-model in step 304, the position, shape and size information of the target object in three-dimensional space is inferred, and then the three-dimensional point parameters are obtained.

[0114] In an optional embodiment, the terminal obtains the shooting parameters of the shooting device through the parameter reasoning sub-model, and the terminal can use the tool to integrate the parameters. Specifically, the imgs2poses file in LLFF (Layered Light Field Flow, a dataset for perspective consistency and deep learning reconstruction) is used to integrate the internal and external parameters into a file poses_boudns.npy. Assuming that there are N images in the scene of the original image, poses_boudns.npy stores an array with a shape of N×17 N\times17N×17. For each row, that is, each image, the following information is stored: This file records the intrinsic parameters of the camera (including the resolution and focal length of the original image, a total of 3 dimensions); external parameters (including the translation matrix and rotation matrix for the conversion from world coordinates to camera coordinates, a total of 3+9=12 dimensions).

[0115] In this embodiment, the target recognition sub-model can accurately identify the target object in each original image and obtain the position and size information of the target object, so as to more accurately understand the target object in the scene, and infer the shooting parameters and three-dimensional point parameters of the shooting device based on the image features. It can effectively extract the key information of the target object from multiple original images, and provide the necessary data basis for subsequent three-dimensional reconstruction, optimization and image processing.

[0116] In an exemplary embodiment, Figure 4 As shown, step 106 includes steps 402 to 408. Among them:

[0117] Step 402: construct a depth map corresponding to each original image according to the shooting parameters corresponding to each original image.

[0118] In the embodiment of the present application, the terminal constructs a depth map of each original image based on the shooting device parameters corresponding to each original image and the image feature extraction technology. The depth map reflects the distance from each pixel in the original image to the camera, which is one of the important bases for subsequent 3D reconstruction and updated rendering.

[0119] Step 404 , determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each original image, a depth map corresponding to each original image, the initial three-dimensional scene and the optimization model.

[0120] In the embodiment of the present application, the three-dimensional point parameters of the target object in each original image of the terminal are combined with the initial three-dimensional scene model to calculate the perceptual optimization loss value between each original image and the initial three-dimensional scene. First, the terminal uses the shooting parameters of the initial three-dimensional scene and each original image to project the initial scene onto a two-dimensional image of each perspective to obtain a projected reconstructed image, and compares the projected reconstructed image with each original image to calculate the perceptual difference between the two. This can be done by calculating the structural similarity or pixel-level differences between the images.

[0121] Step 406 , batch update rendering is performed on the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain an updated initial three-dimensional scene.

[0122] In the embodiment of the present application, for each selected patch block, the terminal performs local geometric adjustment or reconstruction. Specifically, the terminal re-optimizes and extracts the original image in terms of structure, texture and other dimensions based on the optimization model and the perceptual optimization loss value, and modifies the geometric shape, surface properties or texture of the patch block, so as to improve the visual quality and geometric rationality of the patch block in the two-dimensional reconstructed image.

[0123] Step 408, using the updated initial three-dimensional scene as a new initial three-dimensional scene, executing the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene according to each original image, the depth map corresponding to each original image, the initial three-dimensional scene and the optimization model, until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

[0124] In the embodiment of the present application, the updated patch block needs to be re-rendered into a two-dimensional image for comparison with the original input, including projecting the updated initial three-dimensional scene back to the two-dimensional image space and generating a new projected reconstructed image. The terminal recalculates the perception optimization loss value, evaluates the degree of improvement between the updated projected reconstructed image and the original image, and uses the depth map corresponding to each original image as a guide to further adjust and optimize the patch block of the initial three-dimensional scene until the perception optimization loss value meets the preset perception condition and obtains the target three-dimensional scene.

[0125] Among them, the preset perception condition can be a perception optimization loss threshold, that is, when the perception optimization loss value between the initial three-dimensional scene and the original image is less than the perception optimization loss threshold, the terminal determines the current initial three-dimensional scene as the target three-dimensional scene; or, the preset perception condition can also be when the change of the perception optimization loss value between the initial three-dimensional scene and the original image tends to be stable, indicating that the current initial three-dimensional scene converges, and the terminal determines the current initial three-dimensional scene as the target three-dimensional scene.

[0126] In this embodiment, the initial three-dimensional scene is gradually optimized based on the original image, depth map and optimization model to make it more consistent with the visual characteristics and structure of the original image, thereby obtaining a high-quality target three-dimensional scene with consistent multi-perspective features, improving the authenticity of the target three-dimensional scene, and further improving the accuracy of image restoration.

[0127] In an exemplary embodiment, Figure 5 As shown, step 408 includes steps 502 to 506. Among them:

[0128] Step 502 : Projection mapping is performed on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model to generate a projected reconstructed image at the same angle as the original image.

[0129] In the embodiment of the present application, the terminal projects the generated three-dimensional scene back to the two-dimensional image space to obtain a projected reconstructed image. Specifically, the terminal determines the target viewing angle of the generated target three-dimensional scene according to the shooting parameters of the original image, and renders the target three-dimensional scene into a two-dimensional image according to the target viewing angle, so as to obtain multiple projected reconstructed images at the same angle as the original image.

[0130] Step 504: determine an initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determine a perceptual loss separation weight in combination with the depth map as a priori condition.

[0131] In an embodiment of the present application, the optimization model determines the loss calculation factor between the projected reconstructed image and the original image, including the loss between RGB images, and the loss between depth information obtained by combining the depth map as a priori condition.

[0132] Specifically, the initial perceptual optimization loss is calculated by a pre-trained optimization model (e.g., VGG, Visual Geometry Group, a neural network model for image processing), which measures the perceptual difference between the projected reconstructed image and the true original image at the two-dimensional pixel level.

[0133] The depth map serves as an additional prior condition to guide the optimization model to determine the initial perceptual optimization loss value. The terminal further calculates the loss value for the original image and the projected reconstructed image through the depth map, that is, the depth map is used to provide additional geometric constraints, and the loss value is calculated based on the difference in depth information of pixels representing the same feature and the same object in the original image and the projected reconstructed image, with reference to the standard depth information in the depth map. At the same time, the terminal considers the importance of different parts or different features separately. Specifically, the perceptual loss measures the difference between the projected reconstructed image and the true original image through the intermediate layer features of the pre-trained optimization model. The different levels of this feature represent different levels of abstraction of the image, from low-level features (e.g., edges and textures) to high-level semantic features (e.g., objects and scenes). In this example, when using perceptual loss, the terminal uses different weights for features at different levels to reflect their contribution to the final visual quality, thereby determining the perceptual loss separation weights of the initial three-dimensional scene.

[0134] Step 506 : Determine a perceptual optimization loss value between the original image and the initial three-dimensional scene based on the perceptual loss separation weight and the initial perceptual optimization loss value.

[0135] In an embodiment of the present application, the terminal multiplies the initial perceptual optimization loss value by the perceptual loss separation weight to obtain a final perceptual optimization loss value, thereby ensuring that the image structure and detail information are properly balanced during the optimization process to better optimize the initial three-dimensional scene.

[0136] In this embodiment, during the optimization process, the depth information can be combined to adjust the geometry and perspective of the scene to ensure that the projected reconstructed image is more consistent with the original image in depth, and the perceptual loss separation weights are used to avoid detail loss or structural deformation caused by over-optimization, thereby improving the accuracy of the target three-dimensional scene and ensuring the accuracy of image restoration.

[0137] In an exemplary embodiment, Figure 6 As shown, step 406 includes steps 602 to 604. Among them:

[0138] Step 602: determine the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value.

[0139] In an embodiment of the present application, the terminal divides the original image into multiple small patches, and determines the local area that needs to be processed in the repair process based on the perceptual optimization loss value, and then determines the patch block corresponding to the local area that needs to be processed in the three-dimensional scene based on the mapping relationship between the original image and the initial three-dimensional scene. The patch block can be based on the division of geometric structure or pixel area for localized optimization and updating.

[0140] Step 604: batch update and rendering the patch blocks to obtain an updated initial three-dimensional scene.

[0141] In an embodiment of the present application, the terminal performs an update rendering operation according to the 3D reconstruction neural network model, performs calculations based on the patch blocks, does not render the complete view, and performs corresponding parameter adjustments and optimizations on each patch block. The terminal adjusts the geometry, texture, or other properties of the patch block according to a pre-set optimization strategy to better match the visual features of the original image. Then, the terminal integrates all the updated patch blocks together to form the latest initial 3D scene model, and the updated initial 3D scene should be visually closer to the original image.

[0142] In this embodiment, by batch updating and rendering the patch blocks and avoiding rendering the complete view, the optimization process can more finely adjust the local geometry, texture or lighting properties, and visually better match the corresponding part of the target object in the original image, thereby improving the overall visual consistency. Batching smaller patch blocks can effectively reduce computational overhead and improve the efficiency and speed of the optimization process.

[0143] In an exemplary embodiment, Figure 7 As shown, step 108 includes steps 702 to 704. Among them:

[0144] Step 702, obtaining the target angle.

[0145] In the embodiment of the present application, the terminal obtains the target angle input by the user according to the user's needs, wherein the target angle can be determined by the shooting parameters of the viewing angle of the simulated monitoring device.

[0146] Step 704 , projecting and mapping the target three-dimensional scene based on the target angle, and obtaining a desensitized target image after processing the target object at the target angle.

[0147] In an embodiment of the present application, the terminal can use different projection methods such as perspective projection or orthogonal projection to project the target three-dimensional scene according to the target angle to obtain a target image that does not contain sensitive information.

[0148] In this embodiment, the three-dimensional scene is projected and mapped according to the target angle to obtain a two-dimensional target image after desensitization processing at a specific angle, thereby realizing automation and refinement of the desensitization processing, thereby realizing the protection of sensitive information and ensuring information security.

[0149] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0150] Based on the same inventive concept, the embodiment of the present application also provides an image processing device for implementing the above-mentioned image processing method. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above-mentioned method, so the specific limitations in one or more image processing device embodiments provided below can refer to the limitations on the image processing method above, and will not be repeated here.

[0151] In an exemplary embodiment, Figure 8 As shown, an image processing device 800 is provided, comprising: an acquisition module 801, a three-dimensional reconstruction module 802, an update rendering module 803 and a generation module 804, wherein:

[0152] An acquisition module 801 is used to acquire original images at multiple different shooting angles;

[0153] A 3D reconstruction module 802 is used to perform mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated;

[0154] An update rendering module 803 is used to update and render the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene that meets the preset perception conditions;

[0155] The generating module 804 is used to generate a target image desensitized after processing the target object based on the target three-dimensional scene.

[0156] In one embodiment, the 3D reconstruction neural network model includes an interactive segmentation sub-model; the 3D reconstruction module 802 is specifically used to extract each original image according to a preset parameter extraction model to obtain the shooting parameters of each original image and the 3D point parameters of the target object contained in each original image;

[0157] Performing mask segmentation on each original image according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each original image;

[0158] The original image is fitted and reconstructed according to the shooting parameters and the 3D reconstruction neural network model, and the target object in the fitting reconstruction result is eliminated or replaced by the mask according to the mask information to obtain the initial 3D scene.

[0159] In one embodiment, the preset parameter extraction model includes a target recognition sub-model and a parameter reasoning sub-model; the three-dimensional reconstruction module 802 is specifically used to perform target recognition on each original image according to the target recognition sub-model to obtain the target object, the target position and size information of the target object contained in each original image;

[0160] Perform parameter reasoning on each original image based on the parameter reasoning sub-model to obtain the shooting parameters of the shooting device corresponding to each original image;

[0161] Based on the parameter reasoning sub-model, parameter reasoning is performed on the target position and size information to obtain the three-dimensional point parameters of the target object in each original image.

[0162] In one embodiment, the update rendering module 803 is specifically used to construct a depth map corresponding to each original image according to the shooting parameters corresponding to each original image;

[0163] Determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each original image, a depth map corresponding to each original image, an initial three-dimensional scene, and an optimization model;

[0164] Based on the perceptual optimization loss value, batch update rendering is performed on the patch blocks contained in the initial three-dimensional scene to obtain an updated initial three-dimensional scene;

[0165] The updated initial three-dimensional scene is used as a new initial three-dimensional scene, and the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene is performed according to each original image, the depth map corresponding to each original image, the initial three-dimensional scene and the optimization model, until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

[0166] In one embodiment, the updating rendering module 803 is specifically used to perform projection mapping on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model, and generate a projection reconstructed image at the same angle as the original image;

[0167] Determine the initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determine the perceptual loss separation weight in combination with the depth map as a priori condition;

[0168] Based on the perceptual loss separation weight and the initial perceptual optimization loss value, a perceptual optimization loss value between the original image and the initial three-dimensional scene is determined.

[0169] In one embodiment, the updating rendering module 803 is specifically used to determine the patch blocks included in the initial three-dimensional scene based on the perception optimization loss value;

[0170] The patch blocks are updated and rendered in batches to obtain an updated initial three-dimensional scene.

[0171] In one embodiment, the generating module 804 is specifically used to obtain the target angle;

[0172] Projection mapping is performed on the target three-dimensional scene based on the target angle to obtain a desensitized target image after processing the target object at the target angle.

[0173] Each module in the above image processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0174] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store image and model data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an image processing method is implemented.

[0175] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0176] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0177] Obtain original images from multiple different shooting angles;

[0178] Based on the 3D reconstruction neural network model, the original image is segmented by mask and reconstructed by fitting to obtain the initial 3D scene with the target object eliminated.

[0179] According to the depth map of the original image, the perception optimization constraints and the optimization model, the initial 3D scene is updated and rendered to obtain a target 3D scene that meets the preset perception conditions;

[0180] A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

[0181] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0182] Extracting each original image according to a preset parameter extraction model to obtain shooting parameters of each original image and three-dimensional point parameters of the target object contained in each original image;

[0183] Performing mask segmentation on each original image according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each original image;

[0184] The original image is fitted and reconstructed according to the shooting parameters and the 3D reconstruction neural network model, and the target object in the fitting reconstruction result is eliminated or replaced by the mask according to the mask information to obtain the initial 3D scene.

[0185] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0186] Performing target recognition on each original image according to the target recognition sub-model to obtain target objects, target positions and size information of the target objects contained in each original image;

[0187] Perform parameter reasoning on each original image based on the parameter reasoning sub-model to obtain the shooting parameters of the shooting device corresponding to each original image;

[0188] Based on the parameter reasoning sub-model, parameter reasoning is performed on the target position and size information to obtain the three-dimensional point parameters of the target object in each original image.

[0189] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0190] Constructing a depth map corresponding to each original image according to the shooting parameters corresponding to each original image;

[0191] Determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each original image, a depth map corresponding to each original image, an initial three-dimensional scene, and an optimization model;

[0192] Based on the perceptual optimization loss value, batch update rendering is performed on the patch blocks contained in the initial three-dimensional scene to obtain an updated initial three-dimensional scene;

[0193] The updated initial three-dimensional scene is used as a new initial three-dimensional scene, and the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene is performed according to each original image, the depth map corresponding to each original image, the initial three-dimensional scene and the optimization model, until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

[0194] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0195] Performing projection mapping on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model, and generating a projection reconstructed image at the same angle as the original image;

[0196] Determine the initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determine the perceptual loss separation weight in combination with the depth map as a priori condition;

[0197] Based on the perceptual loss separation weight and the initial perceptual optimization loss value, a perceptual optimization loss value between the original image and the initial three-dimensional scene is determined.

[0198] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0199] Determine the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value;

[0200] The patch blocks are updated and rendered in batches to obtain an updated initial three-dimensional scene.

[0201] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0202] Get the target angle;

[0203] Projection mapping is performed on the target three-dimensional scene based on the target angle to obtain a desensitized target image after processing the target object at the target angle.

[0204] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0205] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0206] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0207] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0208] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0209] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An image processing method, characterized in that: The method comprises: Obtain original images from multiple different shooting angles; Performing mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated; According to the depth map of the original image, the perception optimization constraint and the optimization model, the initial three-dimensional scene is updated and rendered to obtain a target three-dimensional scene that meets the preset perception conditions; A target image is generated based on the target three-dimensional scene, in which the target object is processed and desensitized.

2. The method according to claim 1, characterized in that The three-dimensional reconstruction neural network model includes an interactive segmentation sub-model; the three-dimensional reconstruction neural network model is used to perform mask segmentation and fitting reconstruction on the original image to obtain an initial three-dimensional scene in which the target object is eliminated, including: Extracting each of the original images according to a preset parameter extraction model to obtain shooting parameters of each of the original images and three-dimensional point parameters of the target object contained in each of the original images; Performing mask segmentation on each of the original images according to the interactive segmentation sub-model and the three-dimensional point parameters to obtain mask information of the target object contained in each of the original images; The original image is fitted and reconstructed according to the shooting parameters and the three-dimensional reconstruction neural network model, and the target object in the fitting and reconstruction result is eliminated or replaced by the mask according to the mask information to obtain an initial three-dimensional scene.

3. The method according to claim 2, characterized in that The preset parameter extraction model includes a target recognition sub-model and a parameter reasoning sub-model; the extraction of each of the original images according to the preset parameter extraction model to obtain the shooting parameters of each of the original images and the three-dimensional point parameters of the target object contained in each of the original images includes: Performing target recognition on each of the original images according to the target recognition sub-model to obtain target objects contained in each of the original images, and target positions and size information of the target objects; Performing parameter reasoning on each of the original images based on the parameter reasoning sub-model to obtain shooting parameters of the shooting device corresponding to each of the original images; Parameter inference is performed on the target position and the size information based on the parameter inference sub-model to obtain the three-dimensional point parameters of the target object in each of the original images.

4. The method according to claim 1, characterized in that: The updating and rendering of the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene that meets the preset perception conditions includes: Constructing a depth map corresponding to each of the original images according to the shooting parameters corresponding to each of the original images; Determining a perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene, and the optimization model; performing batch updating and rendering on the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain an updated initial three-dimensional scene; The updated initial three-dimensional scene is used as a new initial three-dimensional scene, and the step of determining the perceptual optimization loss value between the original image and the initial three-dimensional scene according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene and the optimization model is performed until the perceptual optimization loss value meets the preset perceptual condition, thereby obtaining the target three-dimensional scene.

5. The method according to claim 4, characterized in that The determining, according to each of the original images, the depth map corresponding to each of the original images, the initial three-dimensional scene and the optimization model, a perceptual optimization loss value between the original image and the initial three-dimensional scene comprises: Performing projection mapping on the initial three-dimensional scene according to the shooting parameters of the original image and the optimization model to generate a projection reconstructed image at the same angle as the original image; Determining an initial perceptual optimization loss value between the projected reconstructed image and the original image based on the optimization model, and determining a perceptual loss separation weight in combination with the depth map as a priori condition; Based on the perceptual loss separation weight and the initial perceptual optimization loss value, a perceptual optimization loss value between the original image and the initial three-dimensional scene is determined.

6. The method according to claim 4, characterized in that The step of performing batch updating and rendering on the patch blocks included in the initial three-dimensional scene based on the perceptual optimization loss value to obtain an updated initial three-dimensional scene includes: Determine the patch blocks included in the initial three-dimensional scene based on the perception optimization loss value; The patch blocks are updated and rendered in batches to obtain an updated initial three-dimensional scene.

7. The method according to claim 1, characterized in that The step of generating a target image desensitized after processing the target object based on the target three-dimensional scene includes: Get the target angle; Projection mapping is performed on the target three-dimensional scene based on the target angle to obtain a desensitized target image after processing the target object at the target angle.

8. An image processing device, characterized in that: The device comprises: An acquisition module is used to acquire original images at multiple different shooting angles; A 3D reconstruction module, used to perform mask segmentation and fitting reconstruction on the original image based on a 3D reconstruction neural network model to obtain an initial 3D scene with the target object eliminated; An updating rendering module is used to update and render the initial three-dimensional scene according to the depth map of the original image, the perception optimization constraint and the optimization model to obtain a target three-dimensional scene that meets the preset perception conditions; A generation module is used to generate a target image that is desensitized after processing the target object based on the target three-dimensional scene.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Data enhancement method and system for monocular 3D target detection

    CN119785342A