Method and device for constructing design drawings, server, and computer-readable storage medium

By performing image processing on product renderings and fusion processing with background templates, the problem of local images such as flowers, plants, branches and leaves in the images of home appliances is solved, and a better image display effect is achieved.

CN117745867BActive Publication Date: 2025-04-22QINGDAO HAIGAO DESIGN & MANUFACTURING CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311576549.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-23
Publication Date
2025-04-22
Estimated Expiration
2043-11-23

AI Technical Summary

Technical Problem

In the prior art, when adjusting images, home appliances may include local images such as flowers, plants, branches and leaves, affecting the image display effect.

Method used

By obtaining the background template associated with the product rendering and the preset prompt word, the product rendering is image-processed to generate the target rendering. Then, based on the area prompt word tool, the target rendering diagram and the background template are integrated to eliminate the local interference of the background template to the target rendering diagram and generate a design diagram.

Benefits of technology

It effectively eliminates the local interference of background templates on the target rendering, and improves the display effect of home appliances in the design drawing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117745867B_ABST
    Figure CN117745867B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses a method for constructing a design drawing, including: obtaining a product rendering and a background template associated with a preset prompt word; performing image processing on the product rendering to obtain a target rendering; based on a regional prompt word tool, performing fusion processing on the target rendering and the background template to eliminate the local interference of the background template on the target rendering to obtain a design drawing. The method can improve the display effect of the design drawing on home appliances. The present application also discloses a device for constructing a design drawing, a server, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, for example, to a method and device, a server, and a computer-readable storage medium for constructing a design drawing. Background Art

[0002] At present, with the rapid development of science and technology, digital image processing technology is becoming more and more mature. If the existing automatic image generation technology does not meet the set requirements, it needs to be readjusted to generate new images. Therefore, how to improve the efficiency of image generation has become a technical problem that needs to be solved urgently.

[0003] In order to improve the efficiency of image generation, the related art discloses an image generation method, including: obtaining a first generated image; in response to an image editing instruction for the area to be adjusted corresponding to the first generated image, obtaining a reference image or a first prompt word associated with the area to be adjusted as the first generated information; generating an adjustment image based on the first generated information; adjusting the area to be adjusted using the adjustment image to obtain a second generated image. In the case where the image editing instruction is a new instruction or a redraw instruction, the first generated information includes a first prompt word and the first prompt word is input by the user; generating the adjustment image based on the first generated information includes: using an image generation model to generate an adjustment image matching the first prompt word. Using the adjustment image to adjust the area to be adjusted includes: deleting the original image of the area to be adjusted in the first generated image, and fusing the adjustment image with the first generated image after the deletion operation to complete the redrawing of the area to be adjusted.

[0004] In the process of implementing the embodiments of the present disclosure, it is found that there are at least the following problems in the related art:

[0005] The related technology uses the image to be adjusted to adjust the area to be adjusted, and then deletes the original image of the area to be adjusted and merges it with the adjustment image. Although the above method can achieve the redrawing of the area to be adjusted, when the adjustment image is a home appliance and the area to be adjusted includes small images of flowers and plants, the home appliance is very likely to include local images of branches and leaves of flowers and plants in the fused image, which is not conducive to the display of the adjustment image.

[0006] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present application, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0007] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0008] Embodiments of the present disclosure provide a method and device, a server, and a computer-readable storage medium for constructing a design drawing to improve the display effect of the design drawing on a home appliance.

[0009] In some embodiments, the method includes: obtaining a product rendering and a background template associated with a preset prompt word; performing image processing on the product rendering to obtain a target rendering; based on a regional prompt word tool, fusing the target rendering with the background template to eliminate local interference of the background template on the target rendering to obtain a design drawing.

[0010] In some embodiments, based on the area prompt word tool, the target rendering and the background template are fused to obtain a design drawing, including: determining the image position of the target rendering; constructing plane prompt words associated with the image position according to the image position; and setting the position of the image position in the background template based on the area prompt word tool and the plane prompt words.

[0011] In some embodiments, the plane prompt words include wall prompt words or ground prompt words, and based on the area prompt word tool and the plane prompt words, the position of the image position in the background template is set, including: determining the current image at the position of the image position in the background template; when the current image does not match the image associated with the plane prompt word, clearing the current image; determining the target plane information of the area where the current image is located in the background template; and performing image processing on the current image according to the target plane information.

[0012] In some embodiments, determining the image position of the target rendering includes: performing region segmentation processing on the background template to obtain a segmented background region; and determining the image position of the target rendering in the segmented background region according to design requirements.

[0013] In some embodiments, according to design requirements, determining the image position of the target rendering in the segmented background area includes: determining the mask position of the target rendering according to the design requirements; and calculating the image position of the target rendering in the segmented background area based on the mask position.

[0014] In some embodiments, after the target rendering image and the background template are fused based on the area prompt word tool, it also includes: extracting the resolution of the fused image; when the resolution does not meet the first preset resolution, performing resolution processing on the fused image to obtain a design drawing.

[0015] In some embodiments, performing image processing on the product rendering to obtain a target rendering includes: extracting a resolution of the product rendering; and if the resolution does not meet a second preset resolution, performing scaling processing on the product rendering to generate a target rendering.

[0016] In some embodiments, obtaining a background template associated with a preset prompt word includes: obtaining a background prompt word; and constructing a background template associated with the background prompt word according to the background prompt word.

[0017] In some embodiments, the device includes a processor and a memory storing program instructions, and the processor is configured to execute the method for constructing a design diagram as described above when running the program instructions.

[0018] In some embodiments, the server includes: a server body; and the device for constructing a design drawing as described above, installed on the server body.

[0019] In some embodiments, a computer-readable storage medium stores program instructions, which, when executed, are used to cause a computer to execute the method for constructing a design drawing as described above.

[0020] The method and device for constructing a design diagram, the server, and the computer-readable storage medium provided in the embodiments of the present disclosure can achieve the following technical effects:

[0021] The disclosed embodiment obtains a product rendering and a background template associated with a preset prompt word, and performs image processing on the product rendering to obtain a target rendering. Thereafter, based on the regional prompt word tool, the disclosed embodiment fuses the target rendering with the background template to eliminate the local interference of the background template on the target rendering, and finally obtains the design drawing. In this way, the disclosed embodiment can eliminate the local interference of the background template on the target rendering by fusing the target rendering with the background template, achieve a better display of the target rendering, and improve the display effect of the design drawing on the home appliance.

[0022] The above general description and the following description are exemplary and explanatory only and are not intended to limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] One or more embodiments are exemplarily described by corresponding drawings, which do not limit the embodiments. Elements with the same reference numerals in the drawings are shown as similar elements, and the drawings do not constitute a scale limitation, and wherein:

[0024] Figure 1 is a schematic diagram of a method for constructing a design diagram provided by an embodiment of the present disclosure;

[0025] Figure 2 is a schematic diagram of another method for constructing a design diagram provided by an embodiment of the present disclosure;

[0026] Figure 3 is a schematic diagram of another method for constructing a design diagram provided by an embodiment of the present disclosure;

[0027] Figure 4 is a schematic diagram of another method for constructing a design diagram provided by an embodiment of the present disclosure;

[0028] Figure 5 is a schematic diagram of a device for constructing a design diagram provided by an embodiment of the present disclosure;

[0029] Figure 6 It is a schematic diagram of a server provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] In order to be able to understand the features and technical contents of the embodiments of the present disclosure in more detail, the implementation of the embodiments of the present disclosure is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present disclosure. In the following technical description, for the convenience of explanation, a full understanding of the disclosed embodiments is provided through multiple details. However, one or more embodiments can still be implemented without these details. In other cases, to simplify the drawings, well-known structures and devices can be simplified for display.

[0031] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0032] Unless otherwise stated, the term "plurality" means two or more.

[0033] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0034] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0035] The term "correspondence" may refer to an association relationship or a binding relationship. The correspondence between A and B means that there is an association relationship or a binding relationship between A and B.

[0036] In the embodiments of the present disclosure, household appliances refer to household appliances that are formed by introducing microprocessors, sensor technology, and network communication technology into household appliances. They have the characteristics of intelligent control, intelligent perception, and intelligent application. The operation process of household appliances often relies on the application and processing of modern technologies such as the Internet of Things, the Internet, and electronic chips. For example, household appliances can be connected to electronic devices to enable users to remotely control and manage the household appliances.

[0037] Combination Figure 1 As shown, the present disclosure provides a method for constructing a design diagram, including:

[0038] S01, the server obtains a product rendering image and a background template associated with a preset prompt word.

[0039] S02, the server performs image processing on the product rendering to obtain a target rendering.

[0040] S03, the server fuses the target rendering image with the background template based on the regional prompt word tool to eliminate the local interference of the background template on the target rendering image, and obtains the design image.

[0041] Using the method for constructing a design drawing provided by an embodiment of the present disclosure, the embodiment of the present disclosure obtains a product rendering and a background template associated with a preset prompt word, and performs image processing on the product rendering to obtain a target rendering. Thereafter, based on the regional prompt word tool, the embodiment of the present disclosure fuses the target rendering with the background template to eliminate the local interference of the background template on the target rendering, and finally obtains the design drawing. In this way, the embodiment of the present disclosure can eliminate the local interference of the background template on the target rendering by fusing the target rendering with the background template, achieve a better display of the target rendering, and improve the display effect of the design drawing on the home appliance.

[0042] Optionally, combined Figure 2 As shown, the server fuses the target rendering image with the background template based on the regional prompt word tool to obtain a design image, including:

[0043] S11, the server determines the image position of the target rendering image.

[0044] S12, the server constructs a plane prompt word associated with the image position according to the image position.

[0045] S13, the server sets the position of the image in the background template based on the area prompt word tool and the plane prompt word.

[0046] In this way, after determining the image position of the target rendering, the disclosed embodiment constructs a plane prompt word associated with the image position according to the image position. Then, based on the regional prompt word tool and the plane prompt word, the position of the image position in the background template is set, so as to eliminate the local interference of the background template on the target rendering through the above setting, realize a better display of the target rendering, and improve the display effect of the home appliance in the design drawing.

[0047] Optionally, the plane prompt words include wall prompt words or ground prompt words. Figure 3 As shown, the server sets the position of the image in the background template based on the area prompt word tool and the plane prompt word, including:

[0048] S21, the server determines the current image at the location of the image position in the background template.

[0049] S22, the server clears the current image when the current image does not match the image associated with the plane prompt word. Wherein, when the plane prompt word includes a wall prompt word or a ground prompt word, the image associated with the plane prompt word includes a wall or a ground.

[0050] In this step, the current image does not match the image associated with the plane prompt word, including: the current image is not the same as the image associated with the plane prompt word.

[0051] S23, the server determines the target plane information of the area where the current image is located in the background template.

[0052] S24, the server performs image processing on the current image according to the target plane information.

[0053] In this way, after the embodiment of the present disclosure determines the current image at the position of the image position in the background template, it determines whether the current image matches the image associated with the plane prompt word. When it does not match, the current image is cleared, thereby eliminating the local interference of the original image at the image position in the background template on the target rendering image, so as to achieve better fusion of the target rendering image and the background module, achieve better display of the target rendering image, and enhance the display effect of home appliances in the design drawing.

[0054] It should be noted that the image associated with the plane prompt word has the following characteristics: the color is unique and it is a plane image.

[0055] Optionally, the server determines an image location of the target rendering image, including:

[0056] The server performs region segmentation processing on the background template to obtain segmented background regions.

[0057] The server determines the image position of the target rendering image in the segmented background area according to the design requirements.

[0058] In this way, the embodiment of the present disclosure performs a region segmentation process on the background module to obtain a segmented background region to know the size of the segmented background region after the segmentation process. Then, according to the design requirements, the image position of the target rendering image in the segmented background region is determined. This is conducive to accurately determining the image position of the target rendering image in the segmented background region.

[0059] Optionally, the server performs region segmentation processing on the background template to obtain segmented background regions, including: the server segments the background template into an even number of segmented background regions along the horizontal direction and the vertical direction of the background template. This is helpful to determine the image position of the target rendering in the segmented background region.

[0060] Optionally, the server determines the image position of the target rendering image in the segmented background area according to the design requirements, including:

[0061] The server determines the mask position of the target rendering according to the design requirements.

[0062] The server calculates the image position of the target rendering image in the segmented background area based on the mask position.

[0063] In this way, the embodiment of the present disclosure determines the mask position of the target rendering image according to the design requirements. Then, based on the mask position, the image position of the target rendering image in the segmented background area is calculated. This is conducive to accurately determining the image position of the target rendering image in the segmented background area.

[0064] Optionally, the server determines the mask position of the target rendering image according to the design requirements, including: the server constructs a white background that is the same as the background template. The server determines the mask position of the target rendering image on the white background. The server calculates and obtains the target position of the target rendering image in the segmented background area based on the mask position, and uses the target position as the image position. In this way, it is helpful to accurately determine the image position of the target rendering image in the segmented background area.

[0065] As an example, the server calculates the target position of the target rendering image in the segmented background area based on the mask position, including: the server determines the horizontal offset and the vertical offset according to the design requirements. The server determines the current horizontal coordinate and the current vertical coordinate of the mask position. The server determines the target horizontal coordinate according to the current horizontal coordinate and the horizontal offset, and determines the target vertical coordinate according to the current vertical coordinate and the vertical offset. The server determines the target position of the target rendering image in the segmented background area based on the target horizontal coordinate and the target vertical coordinate. Among them, determining the target horizontal coordinate according to the current horizontal coordinate and the horizontal offset includes: target horizontal coordinate = current horizontal coordinate + horizontal offset. Determining the target vertical coordinate according to the current vertical coordinate and the vertical offset includes: target vertical coordinate = current vertical coordinate + vertical offset.

[0066] Combination Figure 4 As shown, the embodiment of the present disclosure provides another method for constructing a design diagram, comprising:

[0067] S31, the server obtains a product rendering image and a background template associated with a preset prompt word.

[0068] S32, the server performs image processing on the product rendering to obtain a target rendering.

[0069] S33, the server performs a fusion process on the target rendering image and the background template based on the regional prompt word tool to eliminate the local interference of the background template on the target rendering image.

[0070] S34, the server extracts the resolution of the fused image.

[0071] S35, when the resolution does not meet the first preset resolution, the server performs resolution processing on the fused image to obtain a design drawing.

[0072] Using the method for constructing a design drawing provided by an embodiment of the present disclosure, the embodiment of the present disclosure obtains a product rendering and a background template associated with a preset prompt word, and performs image processing on the product rendering to obtain a target rendering. Thereafter, based on the regional prompt word tool, the embodiment of the present disclosure performs a fusion process on the target rendering and the background template to eliminate the local interference of the background template on the target rendering, and finally obtains the design drawing. In obtaining the design drawing, if the resolution of the design drawing is too large or too small, for this reason, the embodiment of the present disclosure extracts the resolution of the fused image, and when the resolution does not meet the first preset resolution, performs resolution processing on the fused image to obtain the design drawing. In this way, a design drawing with a uniform resolution can be obtained, and a better display of the target rendering can be further achieved.

[0073] Optionally, determining that the resolution does not meet the first preset resolution is performed in the following manner:

[0074] The resolution is different from the first preset resolution.

[0075] Optionally, the server performs image processing on the product rendering to obtain a target rendering, including:

[0076] The resolution of the product rendering extracted by the server.

[0077] When the resolution does not meet the second preset resolution, the server performs scaling processing on the product rendering to generate a target rendering.

[0078] In this way, for product renderings with different resolutions, when their resolutions do not meet the second preset resolution, by scaling the product renderings, target renderings that meet the second preset resolution can be obtained, which is helpful for subsequent image fusion.

[0079] Optionally, the server obtains a background template associated with a preset prompt word, including:

[0080] The server obtains background prompt words, wherein the background prompt words may be prompt words pre-stored in the database, or may be external resources imported into the server.

[0081] The server constructs a background template associated with the background prompt word according to the background prompt word.

[0082] In this way, after the server obtains the background prompt words, it constructs a background template associated with the background prompt words according to the background prompt words, and can provide batches of prompt word resources to the user.

[0083] Optionally, the server constructs a background template associated with the background prompt word according to the background prompt word, including:

[0084] The server constructs background keywords associated with the background prompt words according to the background prompt words.

[0085] The server constructs a background template associated with the background prompt words according to the background keywords.

[0086] As an example, the background prompt words include the background keyword of the ocean. The server constructs an ocean-related background template based on the background keyword. When other background prompt words also include the background keyword of the ocean, the server also stores the other background prompt words in the ocean-related background template.

[0087] Combination Figure 5 As shown, the embodiment of the present disclosure provides a device 200 for constructing a design drawing, including a processor 700 and a memory 701. Optionally, the device 70 may also include a communication interface 702 and a bus 703. Among them, the processor 700, the communication interface 702, and the memory 701 can communicate with each other through the bus 703. The communication interface 702 can be used for information transmission. The processor 700 can call the logic instructions in the memory 701 to execute the method for constructing a design drawing of the above embodiment.

[0088] In addition, the logic instructions in the memory 701 described above may be implemented in the form of software functional units and when sold or used as independent products, may be stored in a computer-readable storage medium.

[0089] The memory 701 is a computer-readable storage medium that can be used to store software programs, computer executable programs, such as program instructions / modules corresponding to the method in the embodiment of the present disclosure. The processor 100 executes the function application and data processing by running the program instructions / modules stored in the memory 701, that is, the method for constructing the design drawing in the above embodiment is implemented.

[0090] The memory 701 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 701 may include a high-speed random access memory and may also include a non-volatile memory.

[0091] Combination Figure 6 As shown, an embodiment of the present disclosure provides a server 500, including: a server body, and the above-mentioned device 200 for constructing a design drawing. The device 200 for constructing a design drawing is installed on the server body. The installation relationship described here is not limited to placement inside the server body, but also includes installation connections with other components of the server, including but not limited to physical connections, electrical connections, or signal transmission connections. It can be understood by those skilled in the art that the device 200 for constructing a design drawing can be adapted to a feasible server body, thereby realizing other feasible embodiments.

[0092] An embodiment of the present disclosure provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are configured to execute the above-mentioned method for constructing a design drawing.

[0093] The technical solution of the embodiment of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes one or more instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in the embodiment of the present disclosure. The aforementioned storage medium may be a non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes.

[0094] The above description and the accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent only possible changes. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and the claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of stated features, wholes, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or groups thereof. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0095] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. The technicians may use different methods for each specific application to implement the described functions, but such implementations should not be considered to exceed the scope of the embodiments of the present disclosure. The technicians may clearly understand that, for the convenience and simplicity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0096] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0097] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and the block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for constructing a design drawing, characterized in that: include: Get the product rendering and the background template associated with the preset prompt words; Perform image processing on the product rendering to obtain the target rendering; Based on the regional prompt word tool, the target rendering image and the background template are fused to eliminate the local interference of the background template on the target rendering image, and the design image is obtained; Based on the regional prompt word tool, the target rendering image and the background template are fused to obtain the design image, including: Determine the image position of the target rendering; According to the image position, construct the plane prompt words associated with the image position; Based on the area prompt word tool and the plane prompt word, the position of the image position in the background template is set; Plane prompt words include wall prompt words or ground prompt words. Based on the area prompt word tool and plane prompt words, the image position in the background template is set, including: Determine the current image at the location of the image position in the background template; When the current image does not match the image associated with the plane prompt word, clear the current image; Determine the target plane information of the area where the current image is located in the background template; Perform image processing on the current image according to the target plane information.

2. The method according to claim 1, characterized in that: Determine the image location of the target rendering, including: Performing region segmentation processing on the background template to obtain the segmented background region; According to design requirements, determine the image position of the target rendering in the segmented background area.

3. The method according to claim 2, characterized in that According to the design requirements, determine the image position of the target rendering in the segmented background area, including: Determine the mask position of the target rendering according to design requirements; Based on the mask position, the image position of the target rendering image in the segmented background area is calculated.

4. The method according to any one of claims 1 to 3, characterized in that: Based on the area prompt word tool, after the target rendering image and the background template are merged, it also includes: Extract the resolution of the fused image; When the resolution does not meet the first preset resolution, resolution processing is performed on the fused image to obtain a design drawing.

5. The method according to any one of claims 1 to 3, characterized in that: Perform image processing on the product rendering to obtain the target rendering, including: Extract the resolution of the product rendering; When the resolution does not meet the second preset resolution, the product rendering is scaled to generate a target rendering.

6. The method according to any one of claims 1 to 3, characterized in that: Get the background template associated with the preset prompt word, including: Get background prompt words; According to the background prompt words, a background template associated with the background prompt words is constructed.

7. A device for constructing a design drawing, comprising a processor and a memory storing program instructions, characterized in that: The processor is configured to execute the method for constructing a design diagram according to any one of claims 1 to 6 when running the program instructions.

8. A server, characterized in that: include: Server body; The device for constructing a design drawing as described in claim 7 is installed on the server body.

9. A computer-readable storage medium storing program instructions, characterized in that: When the program instructions are executed, the computer is used to execute the method for constructing a design drawing as claimed in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method and device for batch synthesis of posters, electronic equipment and storage medium

    CN112330775A

  • Image synthesis method and device, equipment and storage medium

    CN114820292A