Effect picture generation method and device, equipment and storage medium
Through image processing technology, the objects to be erased in the equipment installation site image are obtained and segmented, and the objects to be erased and filled are processed. Combined with the fusion of the images to be fused, the problem of low manual image editing efficiency is solved, and the equipment installation renderings are quickly generated. , improving the drawing efficiency.
Patent Information
- Application Number
- CN202410807385.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-03
AI Technical Summary
Manual retouching or modeling to demonstrate the equipment installation effect is inefficient and requires a lot of time and energy.
By acquiring on-site images, determine the location information of the objects to be erased, segment the target mask area, perform image erasure and filling processing, generate renderings, and perform image fusion combined with the images to be fused to quickly demonstrate the equipment installation effect.
No complex 3D technology or manual modeling is required to quickly generate equipment installation renderings, improve drawing efficiency, and simplify the image processing process.
Smart Images

Figure CN118587313A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to a method, device, equipment and storage medium for generating an effect graph. Background Art
[0002] With the continuous upgrading and iteration of hardware products and the continuous development of related technologies, users are faced with a variety of product choices when selecting or updating traffic equipment. In order to show the installation effect of the equipment, it is usually necessary to rely on manual photo editing, use modeling technology or build other solutions. However, the process of manual photo editing or modeling usually takes a lot of time and effort, and the output efficiency is low. Summary of the invention
[0003] Based on this, it is necessary to provide a rendering generation method, device, equipment and storage medium to address the above-mentioned technical problems, aiming to solve the technical problem of low efficiency in manual photo editing or modeling.
[0004] The present invention provides a method for generating an effect diagram, comprising:
[0005] Acquire a scene image, and determine the location information of the object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device;
[0006] Segmenting and obtaining a target mask area of the object to be erased based on the scene image and the position information;
[0007] Based on the target mask area, erasing the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image;
[0008] Based on the image to be fused and the filled image, a target effect image is generated, wherein the image to be fused includes the object to be fused, and the object to be fused includes a channel gate, a charging pile and access control hardware equipment.
[0009] Optionally, according to a method for generating an effect image provided by the present invention, segmenting the target mask area of the object to be erased based on the scene image and the position information includes:
[0010] Inputting the scene image and the location information into a preset image segmentation model to obtain a segmentation result of the object to be erased output by the image segmentation model;
[0011] Reviewing the segmentation results;
[0012] If the review is passed, then based on the segmentation result, a target mask area of the object to be erased is determined;
[0013] If the audit fails, the process returns to the step of determining the position information of the object to be erased in the scene image until the target mask area of the object to be erased is obtained by segmentation.
[0014] Optionally, according to a method for generating an effect image provided by the present invention, generating a target effect image based on the image to be fused and the filling image includes:
[0015] Performing image restoration on the filled image using a preset image restoration model to obtain a restored image;
[0016] The image to be fused and the restored image are fused to obtain the target effect image.
[0017] Optionally, according to a method for generating an effect image provided by the present invention, the step of fusing the image to be fused and the restored image to obtain the target effect image includes:
[0018] Determining a fusion area in the restored image;
[0019] The pixel values of the object area of the object to be fused are filled into the fusion area to obtain the target effect image.
[0020] Optionally, according to a method for generating an effect image provided by the present invention, the step of determining the position information of the object to be erased in the scene image includes:
[0021] Obtaining the position of the object marked by the administrator in the on-site image, and using the object position as the position information of the object to be erased; or,
[0022] The preset target detection model is used to perform target detection on the scene image to obtain the position information of the object to be erased.
[0023] Optionally, according to a method for generating an effect image provided by the present invention, filling the target mask area in the processed scene image to obtain a filled image includes:
[0024] Replacing the pixel values in the target mask area with preset pixel values to obtain the filled image; or,
[0025] Selecting a reference area in the scene image;
[0026] Extracting features from the reference area to obtain texture feature information;
[0027] Based on the texture feature information, the target mask area in the scene image is filled to obtain the filled image.
[0028] The present invention also provides a rendering generation device, comprising:
[0029] An acquisition module, used to acquire a scene image and determine the position information of an object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device;
[0030] A segmentation module, used for segmenting and obtaining a target mask area of the object to be erased based on the scene image and the position information;
[0031] A filling module, used for performing an erasing process on the object to be erased in the scene image based on the target mask area, and filling the target mask area in the processed scene image to obtain a filled image;
[0032] A generation module is used to generate a target effect image based on the image to be fused and the filling image, wherein the image to be fused includes the object to be fused, and the object to be fused includes a channel gate, a charging pile and an access control hardware device.
[0033] The present invention also provides a computer device, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the above-mentioned effect diagram generation method when executing the computer-readable instructions.
[0034] The present invention also provides one or more readable storage media storing computer-readable instructions, and when the computer-readable instructions are executed by one or more processors, the one or more processors execute the above-mentioned effect diagram generation method.
[0035] The above-mentioned effect map generation method, device, equipment and storage medium, the method includes: obtaining a scene image, determining the position information of the object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile and a door access hardware device; based on the scene image and the position information, segmenting and obtaining the target mask area of the object to be erased; based on the target mask area, erasing the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image; based on the image to be fused and the filled image, generating a target effect map. By identifying and segmenting the target mask area of the object to be erased, erasing the target mask area to erase the object to be erased in the scene image, filling the target mask area in the processed scene image to obtain a filled image; and then merging the image to be fused of the new device into the scene restoration map, so that the device installation effect map can be quickly displayed to the user, without using complex 3D technology or manual modeling to display the effect map, thereby improving the efficiency of drawing. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0037] Figure 1 This is one of the flow charts of a method for generating an effect diagram in one embodiment of the present invention;
[0038] Figure 2 is a scene image provided in an embodiment of the present invention;
[0039] Figure 3 is a restored image provided in one embodiment of the present invention;
[0040] Figure 4 is a target effect diagram provided in one embodiment of the present invention;
[0041] Figure 5 This is a second flow chart of a method for generating an effect diagram in one embodiment of the present invention;
[0042] Figure 6 This is a third flow chart of a method for generating an effect diagram in one embodiment of the present invention;
[0043] Figure 7 This is a fourth flow chart of a method for generating an effect diagram in one embodiment of the present invention;
[0044] Figure 8 is a structural schematic diagram of a rendering generation device in one embodiment of the present invention;
[0045] Fig. 9 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] The terms used in one or more embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of the present invention. The singular forms of "a", "said" and "the" used in one or more embodiments of the present invention are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of the present invention refers to and includes any or all possible combinations of one or more associated listed items.
[0048] With the continuous upgrading and iteration of hardware products and the continuous development of related technologies, users are faced with a variety of product choices when selecting or updating access equipment. In order to show the installation effect of the equipment, it is usually necessary to rely on manual photo editing, use modeling technology or build other solutions. However, the process of manual photo editing or modeling usually takes a lot of time and effort, and the efficiency of drawing is low.
[0049] Based on the above problems, the present invention provides the following embodiments, wherein the embodiments of the present invention can be applied to various fields that require image erasure and image restoration, and are specifically described by taking the use of the device installation effect as an example. For example, the hardware device installation effect diagram in a parking lot or community is displayed, and the hardware devices include channel gates, charging piles, access control and other devices.
[0050] Specifically, in one embodiment, if Figure 1 As shown, Figure 1 This is one of the flow charts of a method for generating an effect diagram in an embodiment of the present invention. The embodiment of the present invention provides a method for generating an effect diagram, comprising the following steps:
[0051] Step S11, acquiring a scene image and determining the position information of the object to be erased in the scene image;
[0052] It should be noted that the on-site image refers to a real image taken or captured in an actual scene, and the image contains various objects, backgrounds, and environmental information in the scene. Objects to be erased refer to specific objects or subjects that need to be erased or deleted in the on-site image. Objects to be erased include channel gates, charging piles, and access control hardware equipment. Position information refers to the information on the specific location or area of the object to be erased in the on-site image. Optionally, in one embodiment, the location of the object marked by the manager clicking in the on-site image is obtained to determine the location and range of the object to be erased in the image. In one embodiment, a preset target detection model can also be used to perform target detection on the on-site image to obtain the location information of the object to be erased. Thereby, the subsequent image processing or editing operations are guided according to the location information to achieve accurate erasure of the object to be erased.
[0053] Step S12, segmenting and obtaining a target mask area of the object to be erased based on the scene image and the position information;
[0054] It should be noted that the target mask area is a binary image of the same size as the scene image, in which the pixel values of the object to be erased are the foreground. The mask area is used to indicate which areas are the objects to be erased, which is convenient for guiding subsequent image editing or processing operations, such as erasing, filling or replacing.
[0055] Specifically, the scene image and location information are input into a preset image segmentation model to obtain a segmentation result of the object to be erased output by the image segmentation model, thereby determining a target mask area of the object to be erased based on the segmentation result.
[0056] Step S13, based on the target mask area, erasing the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image;
[0057] Specifically, based on the target mask area, the objects to be erased in the scene image are erased. Furthermore, in one embodiment, the pixel values in the target mask area in the scene image after the erasure process are directly replaced with the specified filling pixel values to obtain a filled image. Usually, a color or texture similar to the background is selected so that the filled area blends with the surrounding environment. In one embodiment, an image restoration or content filling algorithm is used, such as an algorithm based on a generative adversarial network (GAN), which automatically generates appropriate filling pixel values by learning the content and texture features of the scene image, so that the filled image looks more natural. In one embodiment, image texture synthesis technology is used to extract texture information from the scene image, and then the texture information is applied to fill the target mask area, so that the filled image maintains consistent texture features with the surrounding environment.
[0058] Step S14, generating a target effect image based on the image to be fused and the filling image.
[0059] It should be noted that the image to be fused includes the object to be fused, which includes the channel gate, charging pile and access control hardware equipment. Specifically, the filled image is restored using the preset image restoration model to obtain a restored image. Compared with the on-site image, the restored image refers to an image in which the object to be erased has been erased. Then, the pre-collected image to be fused and the restored image are fused to obtain the target effect image. This allows the user to quickly display the device installation effect image.
[0060] As a specific example, see Figure 2 , Figure 3 as well as Figure 4 , Figure 2 is a scene image provided in an embodiment of the present invention; Figure 3 is a restored image provided in one embodiment of the present invention; Figure 4It is a target effect diagram provided in an embodiment of the present invention. It is necessary to identify and segment the target mask area corresponding to the gate and other related devices in the scene image, and then erase the gate and license plate recognition device in the target mask area in the scene image, and restore the scene image to obtain Figure 3 Further, the gate and other related devices in the image to be fused are fused into the restored image to obtain Figure 4 The target effect diagram is shown.
[0061] The embodiment of the present invention, through the above scheme, includes: acquiring a scene image, determining the position information of the object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile and a door access hardware device; segmenting the target mask area of the object to be erased based on the scene image and the position information; erasing the object to be erased in the scene image based on the target mask area, and filling the target mask area in the processed scene image to obtain a filled image; generating a target rendering based on the image to be fused and the filled image. By identifying and segmenting the target mask area of the object to be erased, erasing the target mask area to erase the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image; and then fusing the image to be fused of the new device into the scene restoration map, so that the device installation rendering can be quickly displayed to the user, without the need to use complex 3D technology or manual modeling to display the rendering, thereby improving the efficiency of drawing.
[0062] like Figure 5 As shown, Figure 5 FIG2 is a flow chart of a method for generating an effect image in an embodiment of the present invention. In an embodiment of the present invention, a target effect image is generated based on an image to be fused and a filling image, including:
[0063] Step S21, performing image restoration on the filled image using a preset image restoration model to obtain a restored image;
[0064] Step S22, fusing the image to be fused and the restored image to obtain a target effect image.
[0065] Specifically, firstly, the preset image restoration model is used to restore the filled image to obtain the restored image. For example, the missing or damaged parts of the image are repaired and restored using the lama model, making the overall image more complete and realistic. Then, the fusion area in the restored image is determined, wherein the fusion area refers to the part that needs to be fused with the image to be fused, and the image to be fused and the restored image need to be synthesized in this area; further, in one embodiment, the pixel values of the object area of the object to be fused are filled into the fusion area to obtain the target effect map; in another embodiment, the image to be fused may contain other equipment and other information, and it is necessary to perform target detection on the image to be fused, and detect the object area of the object to be fused in the image to be fused, and finally fill the pixel values of the object area into the fusion area to obtain the final target effect map.
[0066] Through the above scheme, the embodiment of the present invention realizes image restoration of the filled image through the image restoration model, making the overall image more complete and realistic, and then directly fuses the image to be fused and the restored image to obtain the final target effect diagram, so that the device installation effect diagram can be quickly displayed to the user.
[0067] like Figure 6 As shown, Figure 6 FIG3 is a flow chart of a method for generating an effect image in an embodiment of the present invention. In an embodiment of the present invention, the image to be fused and the restored image are fused to obtain a target effect image, including:
[0068] Step S31, determining the fusion area in the restored image;
[0069] Step S32, filling the pixel values of the object area of the object to be fused into the fusion area to obtain a target effect image.
[0070] Specifically, the area in the restored image where the object needs to be fused is identified. The fusion area is the area in the entire scene where the merging effect needs to be shown. The pixel values of the object area in the image to be fused are filled into the fusion area, with the goal of merging the features of the object area, thereby achieving the fusion effect and obtaining a new target effect image. The target effect image includes the merging effect of the objects in the image to be fused within the fusion area, while the rest of the restored image remains unchanged outside the fusion area.
[0071] Through the above scheme, the embodiment of the present invention realizes the fusion of the image to be fused of the new device into the on-site restoration image by filling the pixel values of the object area of the object to be fused into the fusion area, so as to quickly show the device installation effect image to the user.
[0072] like Figure 7 As shown, Figure 7FIG4 is a flow chart of a method for generating an effect diagram in an embodiment of the present invention. In an embodiment of the present invention, segmenting a target mask area of an object to be erased based on a scene image and position information includes:
[0073] Step S41, inputting the scene image and location information into a preset image segmentation model to obtain a segmentation result of the object to be erased output by the image segmentation model;
[0074] Step S42, reviewing the segmentation result;
[0075] Step S43, if the review is passed, then based on the segmentation result, determine the target mask area of the object to be erased;
[0076] Step S44: if the audit fails, the process returns to the step of determining the position information of the object to be erased in the scene image until the target mask area of the object to be erased is obtained by segmentation.
[0077] Specifically, the scene image and location information are input into a preset image segmentation model. The image segmentation model infers and processes the input image and location information, and uses its internal algorithm and network structure to segment the object to be erased, and obtains the segmentation result of the object to be erased output by the image segmentation model. It should be noted that the segmentation result of the object to be erased is usually presented in the form of a binary image or a pixel-level mark. In the output result, the area of the object to be erased is marked as the foreground, and other areas are marked as the background. In this embodiment, in order to improve the accuracy of the segmentation result, the segmentation result is reviewed, for example, the segmentation result is pushed to the management personnel for review, or the pre-built algorithm model is used to evaluate whether the segmentation result is accurate; if the review is passed, the target mask area of the object to be erased is determined based on the segmentation result; if the review fails, the step of determining the location information of the object to be erased in the scene image is returned, for example, the management personnel continues to click near the location of the erased object until the erased object is accurately segmented, and the target mask area of the object to be erased is obtained.
[0078] The embodiment of the present invention realizes the review of the segmentation result of the object to be erased obtained by model segmentation through the above scheme, so as to review and confirm whether the segmentation of the object to be erased is accurate. If there is a problem with the segmentation result or it does not meet expectations, the manager can provide feedback and point out the areas that need to be corrected, so that the error can be corrected in time, and the quality and accuracy of image segmentation can be improved.
[0079] In one embodiment of the present invention, filling a target mask area in a processed scene image to obtain a filled image includes:
[0080] The pixel values in the target mask area are replaced with preset pixel values to obtain a filled image; or, a reference area is selected in the scene image; features are extracted from the reference area to obtain texture feature information; based on the texture feature information, the target mask area in the scene image is filled to obtain a filled image.
[0081] Specifically, the pixel values in the target mask area are replaced with preset pixel values, for example, the pixel values in the target mask area are replaced with 0 pixel values to obtain a filled image. In one embodiment, a reference area is first selected in the scene image, for example, an area selected from the scene image that has a similar texture and structure to the target mask area. Further, texture feature information of the reference area is extracted, and then the texture feature information is synthesized into the target mask area to obtain a filled image. The synthesis method may include an algorithm based on texture synthesis, such as a Markov random field (MRF)-based method or an example-based method. These methods generate filling results based on the texture and structure information of the reference area.
[0082] The embodiment of the present invention uses the above scheme to fill the target mask area of the object to be erased to repair the area of the erased object, which can effectively improve the effect of image erasing and repairing, making the final target effect image more visually natural and perfect.
[0083] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0084] In one embodiment, a rendering generation device is provided, which corresponds one-to-one to the rendering generation method in the above embodiment. Figure 8 As shown, Figure 8 : is a schematic diagram of a structure of an effect diagram generating device in one embodiment of the present invention, the effect diagram generating device comprises:
[0085] An acquisition module 81 is used to acquire a scene image and determine the location information of an object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device;
[0086] A segmentation module 82, for segmenting a target mask area of an object to be erased based on the scene image and the position information;
[0087] A filling module 83 is used to perform an erasing process on the object to be erased in the scene image based on the target mask area, and to fill the target mask area in the processed scene image to obtain a filled image;
[0088] The generation module 84 is used to generate a target effect image based on the image to be fused and the filling image, wherein the image to be fused includes the object to be fused, and the object to be fused includes a channel gate, a charging pile and a door access hardware device.
[0089] The generation module 84 includes:
[0090] A restoration unit, used for performing image restoration on the filled image using a preset image restoration model to obtain a restored image;
[0091] The image fusion unit is used to fuse the image to be fused and the restored image to obtain a target effect image.
[0092] The image fusion unit also includes:
[0093] A determination unit, used for determining a fusion area in a restored image;
[0094] The filling unit is used to fill the pixel values of the object area of the object to be fused into the fusion area to obtain a target effect image.
[0095] The segmentation module 82 further includes:
[0096] An input unit, used to input the scene image and location information into a preset image segmentation model to obtain a segmentation result of the object to be erased output by the image segmentation model;
[0097] A review unit, used for reviewing the segmentation results;
[0098] A determination unit, configured to determine a target mask area of the object to be erased based on the segmentation result if the review is passed;
[0099] The return execution unit is used to return to the step of determining the position information of the object to be erased in the scene image if the audit fails, until the target mask area of the object to be erased is segmented.
[0100] The acquisition module 81 includes:
[0101] An acquisition unit is used to acquire the position of the object marked by the administrator in the on-site image, and use the object position as the position information of the object to be erased; or,
[0102] The detection unit is used to perform target detection on the scene image using a preset target detection model to obtain the position information of the object to be erased.
[0103] The filling module 83 comprises:
[0104] A replacement unit, used to replace the pixel values in the target mask area with preset pixel values to obtain a filled image; or,
[0105] A selection unit, used for selecting a reference area in the scene image;
[0106] A feature extraction unit, used to extract features from the reference area to obtain texture feature information;
[0107] The feature filling unit is used to fill the target mask area in the scene image based on texture feature information to obtain a filled image.
[0108] For the specific definition of the effect diagram generation device, please refer to the definition of the effect diagram generation method above, which will not be repeated here. Each module in the above-mentioned effect diagram generation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0109] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown, Fig. 9 : is a schematic diagram of a computer device in one embodiment of the present invention. The computer device includes a processor, a memory, a network interface and a database connected by a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium and an internal memory. The readable storage medium stores an operating device, a computer-readable instruction and a database. The internal memory provides an environment for the operation of the operating device and the computer-readable instructions in the readable storage medium. The database of the computer device is used to store data involved in the effect diagram generation method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instruction is executed by the processor, a method for generating an effect diagram is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0110] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory, and a network interface connected by a device bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a method for generating an effect diagram is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.
[0111] In one embodiment, a computer device is provided, including a memory, a processor, and a computer-readable instruction stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned rendering generation method when executing the computer-readable instruction. The method includes: acquiring a scene image, determining the position information of the object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device; based on the scene image and the position information, segmenting to obtain a target mask area of the object to be erased; based on the target mask area, erasing the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image; based on the image to be fused and the filled image, generating a target rendering, wherein the image to be fused includes the object to be fused, and the object to be fused includes the channel gate, the charging pile, and the door access hardware device.
[0112] In one embodiment, a readable storage medium is provided, the readable storage medium stores computer-readable instructions, and the computer-readable instructions are executed by the processor to implement the above-mentioned effect diagram generation method steps. It can be understood by a person of ordinary skill in the art that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0113] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0114] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention.
Claims
1. A method for generating an effect diagram, It is characterized in that include: Acquire a scene image and determine the location information of the object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device; Segmenting and obtaining a target mask area of the object to be erased based on the scene image and the position information; Based on the target mask area, erasing the object to be erased in the scene image, and filling the target mask area in the processed scene image to obtain a filled image; Based on the image to be fused and the filled image, a target effect image is generated, wherein the image to be fused includes the object to be fused, and the object to be fused includes a channel gate, a charging pile and access control hardware equipment.
2. The method for generating an effect diagram according to claim 1, It is characterized in that The step of generating a target effect image based on the image to be fused and the filled image comprises: Performing image restoration on the filled image using a preset image restoration model to obtain a restored image; The image to be fused and the restored image are fused to obtain the target effect image.
3. The method for generating an effect diagram according to claim 2, It is characterized in that The step of fusing the image to be fused and the restored image to obtain the target effect image includes: Determining a fusion area in the restored image; The pixel values of the object area of the object to be fused are filled into the fusion area to obtain the target effect image.
4. The method for generating an effect diagram according to claim 1, It is characterized in that The step of segmenting the target mask area of the object to be erased based on the scene image and the position information includes: Inputting the scene image and the location information into a preset image segmentation model to obtain a segmentation result of the object to be erased output by the image segmentation model; Reviewing the segmentation results; If the review is passed, then based on the segmentation result, a target mask area of the object to be erased is determined; If the audit fails, the process returns to the step of determining the position information of the object to be erased in the scene image until the target mask area of the object to be erased is obtained by segmentation.
5. The method for generating an effect diagram according to claim 1, It is characterized in that The determining the position information of the object to be erased in the scene image includes: Obtaining the position of the object marked by the administrator in the on-site image, and using the object position as the position information of the object to be erased; or, The preset target detection model is used to perform target detection on the scene image to obtain the position information of the object to be erased.
6. The method for generating an effect diagram according to claim 1, It is characterized in that The step of filling the target mask area in the processed scene image to obtain a filled image includes: Replacing the pixel values in the target mask area with preset pixel values to obtain the filled image; or, Selecting a reference area in the scene image; Extracting features from the reference area to obtain texture feature information; Based on the texture feature information, the target mask area in the scene image is filled to obtain the filled image.
7. A rendering generation device, It is characterized in that include: An acquisition module, used to acquire a scene image and determine the position information of an object to be erased in the scene image, wherein the object to be erased includes a channel gate, a charging pile, and a door access hardware device; A segmentation module, used for segmenting and obtaining a target mask area of the object to be erased based on the scene image and the position information; A filling module, used for performing an erasing process on the object to be erased in the scene image based on the target mask area, and filling the target mask area in the processed scene image to obtain a filled image; A generation module is used to generate a target effect image based on the image to be fused and the filling image, wherein the image to be fused includes the object to be fused, and the object to be fused includes a channel gate, a charging pile and an access control hardware device.
8. The effect diagram generating device according to claim 7, It is characterized in that The generation module comprises: A restoration unit, used for performing image restoration on the filled image using a preset image restoration model to obtain a restored image; The image fusion unit is used to fuse the image to be fused and the restored image to obtain the target effect image.
9. A computer device comprising a memory, a processor, and computer readable instructions stored on the memory and executed on the processor, It is characterized in that When the processor executes the computer-readable instructions, the effect diagram generating method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having computer-readable instructions stored thereon, It is characterized in that When the computer-readable instructions are executed by a processor, the method for generating an effect diagram as claimed in any one of claims 1 to 6 is implemented.
