Method and device for accurately deleting object in NeRF through text

Through text input and image analysis technology, combined with depth maps and convolutional neural networks, the problem of blurred boundaries and stray points in object deletion in the NeRF model is solved, achieving precise deletion and improved clarity.

CN118570478APending Publication Date: 2024-08-30BEIJING QUALITY ENERGY CORE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410758571.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing NeRF model is difficult to segment accurately when deleting objects, often resulting in blurred boundaries and fluffy free points, and it is impossible to control the deleted objects, affecting the clarity of the model.

Method used

By receiving input text, analyzing the image to obtain object feature points, using depth maps and convolutional neural networks to refine edges, combining volume renderers and perceptual loss functions to generate depth maps, identifying and deleting specified objects, and filling in vacant parts with multi-angle pixels. , using Marching Cubes algorithm and generative artificial intelligence algorithm to deal with stray points.

Benefits of technology

The precise deletion of objects in the NeRF model is achieved, the edges are more accurate, flocculent free points are removed, and the clarity and accuracy of the model are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570478A
    Figure CN118570478A
Patent Text Reader

Abstract

The invention relates to a method and device for accurately deleting an object in NeRF through a text and electronic equipment. The method comprises the steps that the input text is received, a specified object is obtained from an image used for NeRF according to the input text, the specified object is analyzed to obtain object feature points, and the specified object is deleted from the image according to the object feature points. Through the method, based on the continuous images used for the neural radiation field algorithm, the specified object can be deleted through text editing input, and the deleted edge is more accurate and is not easy to delete mistakenly. And residual flocculent free points can be removed, so that the definition of the model is higher, and the purpose of accurately deleting objects in NeRF is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of neural network algorithms, and in particular to a method, device and electronic device for accurately deleting objects in NeRF through text. Background Art

[0002] Neural Radiance Field (NeRF) is a neural network algorithm that can reconstruct complex three-dimensional scenes from a partial set of two-dimensional images. NeRF learns the scene geometry, objects, and angles of a specific scene, then renders realistic 3D views from new perspectives and automatically generates synthetic data to fill in the gaps. However, the generated NeRF models are all connected as a whole, and the boundaries are blurred. When an object in the model needs to be deleted, it is difficult to accurately segment the object and delete it. The usual deletion method cannot accurately segment the deletion boundary, and will leave floc-like free points. More importantly, it is impossible to control what needs to be deleted and what does not need to be deleted. Therefore, a method is needed to accurately delete specified objects and remove floc-like free points. Summary of the invention

[0003] In view of this, the present application proposes a method for accurately deleting objects in NeRF through text to solve the problems reflected in the above-mentioned background technology.

[0004] According to one aspect of the present application, a method for accurately deleting an object in NeRF by text is provided, comprising:

[0005] Receive input text;

[0006] According to the input text, a specified object is obtained from an image used for NeRF;

[0007] The designated object is analyzed to obtain object feature points, and the designated object is deleted from the image according to the object feature points.

[0008] As an optional implementation scheme of the present application, the analyzing the designated object to obtain object feature points includes:

[0009] Generating a depth map of the specified object;

[0010] The edge contour of the designated object is refined according to the depth map, and object feature points of the designated object are identified.

[0011] As an optional implementation of the present application, before receiving the input text, it also includes acquiring images for NeRF.

[0012] As an optional implementation scheme of the present application, the collecting of images for NeRF includes:

[0013] Get the image to be processed;

[0014] Analyzing the image to be processed using a convolutional neural network to obtain an initial contour of the image to be processed;

[0015] Initial feature points of the image to be processed are extracted according to the initial contour to obtain an image for NeRF.

[0016] As an optional implementation scheme of the present application, after deleting the specified object, the method further includes:

[0017] Acquire multi-angle pixels of the observation position according to the posture information of the shooting device corresponding to the image;

[0018] The missing parts corresponding to the deletion of the designated object are supplemented according to the multi-angle pixels to obtain a complete object image.

[0019] As an optional implementation scheme of the present application, after obtaining the supplementary complete object image, the method further includes:

[0020] Generate a NeRF three-dimensional image corresponding to the complete object image;

[0021] Calculating spatial information of the specified object in three-dimensional space;

[0022] Based on the spatial information, free points generated when supplementing the missing part are deleted in the NeRF three-dimensional image.

[0023] As an optional implementation scheme of the present application, after supplementing the missing part corresponding to the deletion of the designated object according to the multi-angle pixel, the method further includes:

[0024] When the missing parts are not fully filled, a generative artificial intelligence algorithm is used to fill them.

[0025] As an optional implementation of the present application, a volume renderer and a perceptual loss function are used to generate a depth map of a specified object.

[0026] The present application also provides a device for accurately deleting objects in NeRF through text, including:

[0027] A text receiving module is used to receive input text;

[0028] An object acquisition module, used for acquiring a specified object from an image used for NeRF according to the input text;

[0029] The object deletion module is used to analyze the designated object to obtain object feature points, and delete the designated object from the image according to the object feature points.

[0030] The present application also provides an electronic device, including:

[0031] processor;

[0032] a memory for storing processor-executable instructions;

[0033] Wherein, the processor is configured to implement the above-mentioned method of accurately deleting objects in NeRF through text when executing the executable instructions.

[0034] Beneficial effects of this application:

[0035] The present invention receives input text, obtains a designated object from an image used for NeRF according to the input text, analyzes the designated object to obtain object feature points, and deletes the designated object from the image according to the object feature points. Through this method, based on continuous images used for neural radiation field algorithms, the designated object can be deleted through text editing input, and the deleted edge is more accurate and not easily deleted by mistake. In addition, the residual flocculent free points can be removed, making the model clearer, thereby achieving the purpose of accurately deleting objects in NeRF.

[0036] Other features and aspects of the present application will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the present application and, together with the description, serve to explain the principles of the present application.

[0038] Figure 1 A flowchart showing a method for accurately deleting objects in NeRF by text according to an embodiment of the present application;

[0039] Figure 2 A block diagram of a device for accurately deleting objects in NeRF by text according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0040] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0041] Among them, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application or simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0042] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0043] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0044] In addition, in order to better illustrate the present application, numerous specific details are provided in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.

[0045] Various simulations, games, media, and Internet of Things (IoT) applications require 3D images to make digital interactions more realistic and accurate. As a new field of view synthesis technology with implicit scene representation, NeRF has attracted widespread attention in the field of computer vision. NeRF models are widely used in robotics, city mapping, autonomous navigation, virtual reality / augmented reality, and other fields.

[0046] The volume renderer is the core tool of volume rendering technology. It generates an image by casting light from each voxel in the data field and integrating the density and color information along the path.

[0047] The perceptual loss function is a loss measurement method based on the internal representation (features) of a deep neural network. Different from traditional pixel-level loss functions (such as mean square error MSE), the perceptual loss function focuses more on the perceived quality of the image, that is, it is closer to the human eye's perception of image quality.

[0048] Marching Cubes technology, often referred to as MC algorithm or Marching Cubes algorithm, is a classic algorithm for generating three-dimensional mesh models from volume data.

[0049] Example 1

[0050] Figure 1 A flow chart of a method for accurately deleting an object in NeRF by text according to an embodiment of the present application is shown. By this method, a specified object can be deleted by editing and inputting text. Figure 1 As shown, the flow chart includes:

[0051] S100, receiving input text;

[0052] According to the correspondence between objects and texts, when the user needs to delete an object in the NeRF model, the user edits and inputs the corresponding text according to the object to be deleted.

[0053] S200, acquiring a designated object from an image used for NeRF according to the input text;

[0054] After receiving the input text, the specified object to be deleted is determined from the image previously collected for the NeRF model according to the correspondence between the object and the text.

[0055] S300, analyzing the designated object to obtain object feature points, and deleting the designated object from the image according to the object feature points.

[0056] Feature points are important elements used to describe images or targets in image processing. Analyze the specified object to be deleted and obtain the object feature points of the specified object. Deleting the specified object based on the object feature points can achieve the purpose of accurate deletion.

[0057] As an optional implementation scheme of the present application, in step S300, analyzing the specified object to obtain object feature points includes:

[0058] S301, generating a depth map of the specified object;

[0059] After finding the object to be specified, the volume renderer and the perceptual loss function are used to generate the depth map of the specified object. The volume renderer can accurately present the internal structure of the three-dimensional data field of the specified object, and the perceptual loss function can improve the perceptual weight of the image.

[0060] S302: Refine the edge contour of the designated object according to the depth map, and identify object feature points of the designated object.

[0061] When it is necessary to delete a specified object, based on the initial outline description of the image, the generated depth map is used to refine the edge contour of the specified object to determine the information of the specified object, including volume, shape, etc. After refining the edge contour of the specified object, the object feature points of the specified object are identified. By generating a depth map, refining the contour, and identifying the object feature points, objects in the image used for the NeRF model can be accurately deleted.

[0062] As an optional implementation of the present application, before receiving the input text, it also includes acquiring images for NeRF.

[0063] Acquiring images for NeRF facilitates the determination of removal of specific objects and filling in gaps in the image.

[0064] As an optional implementation scheme of the present application, the acquiring of images for NeRF includes:

[0065] Get the image to be processed;

[0066] The image to be processed is obtained by taking continuous images for the Neural Radiance Field (NeRF) algorithm. That is, the image of the three-dimensional scene needs to be reconstructed by NeRF in the future. The shooting device can be a camera, and the user can use other shooting devices according to needs.

[0067] Analyzing the image to be processed using a convolutional neural network to obtain an initial contour of the image to be processed;

[0068] When convolutional neural networks are used to analyze images of neural radiation fields, they can extract low-level features such as edges and corners of the image, which constitute the initial outline of the image.

[0069] Initial feature points of the image to be processed are extracted according to the initial contour to obtain an image for NeRF.

[0070] By utilizing the characteristics of convolutional neural networks, a hierarchical feature extraction process is performed on the image containing the initial contour to obtain the initial feature points, from which more complex and abstract feature information can be obtained.

[0071] As an optional implementation scheme of the present application, after deleting the specified object, the method further includes:

[0072] Acquire multi-angle pixels of the observation position according to the posture information of the shooting device corresponding to the image;

[0073] While shooting continuous images for the Neural Radiance Field (NeRF) algorithm, the pose information of the shooting device during the acquisition is recorded. The pose information includes information such as the position, angle, and height of the shooting device. After deleting the specified object through one or several images used for the Neural Radiance Field (NeRF) algorithm, the position of the specified object in the image is vacant and needs to be supplemented. The supplementation requires the participation of multi-angle pixels at the observation position, so the multi-angle images of the observation position can be obtained correspondingly through the pose information. It should be noted that the observation position is not completely equivalent to the position of the specified object in the image, and the user can determine the observation position according to needs.

[0074] The missing parts corresponding to the deletion of the designated object are supplemented according to the multi-angle pixels to obtain a complete object image.

[0075] In the process of completion, if the pixel obtained by the current perspective at the observation position is blocked by the specified object to be deleted, the observation perspective is changed based on the unchanged observation position, and other observation perspectives are obtained to continue to observe the pixels at the same position. And the color of the pixel is assigned to the image from which the specified object has been deleted through the NeRF algorithm to obtain a complete object image. It should be noted that the pixel obtained by the current perspective at the observation position is blocked by the specified object to be deleted because the image collected for NeRF is continuous and can be understood as an image set. When deleting a specified object, one or several images can be used to delete the specified object. In this case, the specified object is not deleted in the remaining images, and in the process of obtaining pixels, the pixel will be blocked by the specified object.

[0076] As an optional implementation scheme of the present application, after obtaining the supplementary complete object image, the method further includes:

[0077] Generate a NeRF three-dimensional image corresponding to the complete object image;

[0078] At this moment, in the complete object image, the specified object has been deleted and the original part of the specified object has been filled in. The marching cubes technology is used to generate the corresponding preliminary NeRF three-dimensional image for the supplemented complete object image. The above shows that the image is used for the neural radiance field (NeRF) algorithm, so the NeRF three-dimensional image here can be regarded as a preliminary NeRF model.

[0079] Calculating spatial information of the specified object in three-dimensional space;

[0080] Use marching cubes technology to generate a 3D grid for the image of the specified object and obtain the spatial information of the specified object, which includes the spatial position and spatial volume.

[0081] Based on the spatial information, free points generated when supplementing the missing part are deleted in the NeRF three-dimensional image.

[0082] Since the image processing is a cutout and gap filling method, it is impossible to perfectly match when using multi-angle pixels, resulting in the generated preliminary NeRF model having flocculent free points. Therefore, after generating a 3D grid for the image of the specified object and obtaining the spatial information of the specified object, all flocculent free points are deleted according to the volume range corresponding to the spatial volume in the preliminary NeRF model, and a clean and clear NeRF model with the specified object deleted is obtained.

[0083] As an optional implementation scheme of the present application, after supplementing the missing part corresponding to the deletion of the designated object according to the multi-angle pixel, the method further includes:

[0084] When the missing parts are not fully filled, a generative artificial intelligence algorithm is used to fill them.

[0085] After the NeRF algorithm assigns the color of the pixel to the image from which the specified object has been deleted, if it still cannot fill in the missing part, the generative artificial intelligence algorithm is used to fill in the missing part to obtain a complete image. It should be noted that users can use appropriate generative artificial intelligence algorithms according to their needs, and this is not limited here.

[0086] As an optional implementation of the present application, a volume renderer and a perceptual loss function are used to generate a depth map of a specified object.

[0087] The use of a volume renderer can accurately present the internal structure of the three-dimensional data field of a specified object, and combined with a perceptual loss function can increase the perceptual weight of the image.

[0088] Through this method, based on the continuous images used for the neural radiation field algorithm, the specified object can be deleted through text editing input, and the deleted edges are more accurate and not easily deleted by mistake. It can also remove the residual flocculent free points, making the model clearer and achieving the purpose of accurately deleting objects in NeRF.

[0089] Example 2

[0090] Based on the same principle as the above method, a device for accurately deleting objects in NeRF through text is also proposed, see Figure 2 , a device 100 for accurately deleting objects in NeRF by text according to an embodiment of the present disclosure includes:

[0091] A text receiving module 110 is used to receive input text;

[0092] An object acquisition module 120 is used to acquire a specified object from an image used for NeRF according to the input text;

[0093] The object deletion module 130 is used to analyze the designated object to obtain object feature points, and delete the designated object from the image according to the object feature points.

[0094] Obviously, those skilled in the art should understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. The modules or steps of the present invention can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. Optionally, they can be implemented by program codes executable by computing devices, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules respectively, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the present invention is not limited to any specific combination of hardware and software.

[0095] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned control methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated as: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0096] Example 3

[0097] Furthermore, an electronic device is proposed, comprising:

[0098] processor;

[0099] a memory for storing processor-executable instructions;

[0100] Wherein, the processor is configured to implement the method for accurately deleting objects in NeRF through text as described in Example 1 when executing the executable instructions.

[0101] The electronic device of the embodiment of the present disclosure includes a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to implement any of the above-mentioned methods for accurately deleting objects in NeRF by text when executing the executable instructions.

[0102] It should be noted that the number of processors may be one or more. At the same time, the electronic device of the embodiment of the present disclosure may also include an input device and an output device. The processor, memory, input device, and output device may be connected via a bus or in other ways, which are not specifically limited here.

[0103] The memory is a computer-readable storage medium for the method for accurately deleting objects in NeRF through text, and can be used to store software programs, computer executable programs, and various modules, such as: the program or module corresponding to the method for accurately deleting objects in NeRF through text in the embodiment of the present disclosure. The processor executes various functional applications and data processing of the electronic device by running the software program or module stored in the memory.

[0104] The input device can be used to receive input numbers or signals. The signal can be a key signal related to user settings and function control of the device / terminal / server. The output device can include a display device such as a display screen.

[0105] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for accurately deleting objects in NeRF by text, characterized in that: include: Receive input text; According to the input text, a specified object is obtained from an image used for NeRF; The designated object is analyzed to obtain object feature points, and the designated object is deleted from the image according to the object feature points.

2. The method for accurately deleting objects in NeRF by text according to claim 1, characterized in that: The step of analyzing the designated object to obtain object feature points includes: Generating a depth map of the specified object; The edge contour of the designated object is refined according to the depth map, and object feature points of the designated object are identified.

3. The method for accurately deleting objects in NeRF by text according to claim 1, characterized in that: Before receiving the input text, the process also includes acquiring images for NeRF.

4. The method for accurately deleting objects in NeRF by text according to claim 3, characterized in that: The acquisition of images for NeRF includes: Get the image to be processed; Analyzing the image to be processed using a convolutional neural network to obtain an initial contour of the image to be processed; Initial feature points of the image to be processed are extracted according to the initial contour to obtain an image for NeRF.

5. The method for accurately deleting objects in NeRF by text according to claim 1, characterized in that: After deleting the specified object, the method further includes: Acquire multi-angle pixels of the observation position according to the posture information of the shooting device corresponding to the image; The missing parts corresponding to the deletion of the designated object are supplemented according to the multi-angle pixels to obtain a complete object image.

6. The method for accurately deleting objects in NeRF by text according to claim 5, characterized in that: After the complete object image is obtained, it also includes: Generate a NeRF three-dimensional image corresponding to the complete object image; Calculating spatial information of the specified object in three-dimensional space; According to the spatial information, free points generated when supplementing the missing part are deleted in the NeRF three-dimensional image.

7. The method for accurately deleting objects in NeRF by text according to claim 5, characterized in that: After supplementing the missing part corresponding to the deletion of the designated object according to the multi-angle pixels, the method further includes: When the missing parts are not fully filled, a generative artificial intelligence algorithm is used to fill them.

8. The method for accurately deleting objects in NeRF by text according to claim 2, characterized in that: Generates a depth map of a specified object using a volume renderer and a perceptual loss function.

9. A device for accurately deleting objects in NeRF by text, characterized in that: include: A text receiving module is used to receive input text; An object acquisition module, used for acquiring a specified object from an image used for NeRF according to the input text; The object deletion module is used to analyze the designated object to obtain object feature points, and delete the designated object from the image according to the object feature points.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to implement the method for accurately deleting objects in NeRF through text as described in any one of claims 1 to 8 when executing the executable instructions.