Image generation method and system, electronic equipment and storage medium

By generating drawing requests and drawing information in preset formats, the drawing engine directly generates images, solving the problem of high computing power consumption of the AI ​​graphical model, improving the efficiency and response speed of image generation, and reducing resource constraints.

CN118608646APending Publication Date: 2024-09-06KUANGZHI INTELLIGENT TECH (WUXI) CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410743164.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing AI image models consume high computing power, which may cause users to encounter resource limitations and slow response speeds when generating high-quality images, affecting creative efficiency and experience.

Method used

By obtaining the user's image description information, generating a drawing request and sending it to the image information generation model, the model only generates drawing information in a preset format, and the drawing engine generates the target image based on this information, thus reducing the need for the AI ​​model to directly generate images. Reduce computing power consumption.

Benefits of technology

It effectively reduces the computing power consumption, reduces the computing resources required for image generation, improves the efficiency and response speed of image generation, and reduces the resource limitations of users when using Vincent diagram technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608646A
    Figure CN118608646A
Patent Text Reader

Abstract

The invention provides an image generation method and system, electronic equipment and a storage medium. The method comprises the steps that input first description information is acquired; generating a drawing request based on the first description information, and sending the drawing request to an image information generation model; the image information generation model generates drawing information in a preset format according to the drawing request, and sends the drawing information to a drawing engine; the drawing engine generates a target image according to the drawing information; displaying the target image; according to the method, the image information generation model does not need to generate a complete image and only generates the drawing information which can be used for drawing the target image, so that the demand on computing resources is greatly reduced, and compared with the current text map scheme of directly generating the image, the method has the advantages that the computing power consumption is remarkably optimized, and the calculation efficiency is improved. And the demand on hardware resources is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to an image generation method and system, electronic equipment, and storage medium. Background Art

[0002] AI Wenshengtu can quickly generate images based on the user's text description, providing users with a way to quickly realize creative ideas, which greatly shortens the time from idea to visual expression and improves work efficiency. Through Wenshengtu technology, users can customize personalized images according to their preferences and needs. At present, the main models used by AI Wenshengtu include CLIP cross-modal model, U-NET convolutional neural network, etc., as well as specific models proposed by some large companies and research institutions, such as PanGu-Draw (Huawei), Imagen&Imagen2 (Google), SDXL Turbo (Stati l ity AI), etc. The training and inference of Wenshengtu large models require a lot of computing resources. In the research of Carnegie Mellon University and Hugging Face, the energy consumption of the image generation model per thousand interactions is equivalent to charging a mobile phone 950 times, while the energy consumption of the chatbot and text generation model per thousand interactions is only 16% of charging a mobile phone once. This data shows that the image generation model consumes significantly more computing power than the text generation model.

[0003] Due to the limited computing resources, high computing power consumption may cause some users to encounter resource limitations when using Wenshengtu technology. Currently, many cloud service providers limit the user's usage time or frequency to prevent computing power overload. This may result in users not being able to obtain sufficient computing power support when they need to process large amounts of data or generate high-quality images, thereby limiting their creation and application capabilities. At the same time, high computing power consumption means that it takes longer to process tasks, which may cause users to encounter slow response speeds when using Wenshengtu technology, which not only affects the user's work efficiency, but also affects the user's creation experience and satisfaction. Summary of the invention

[0004] The purpose of the present invention is to provide an image generation method and system, an electronic device, and a storage medium. The device generates a corresponding drawing request based on the image description information input by the user and sends it to an image information generation model. The image information generation model generates drawing information in a preset format. The drawing information includes the coordinates of the image. The drawing engine completes the drawing of the target image based on the received drawing information, that is, the coordinates of the image. Through this method, there is no need for an AI model to directly generate an image. The image information generation model only generates text information in a preset format, which saves computing power compared to the existing text-to-image method.

[0005] To achieve the above object, the present invention proposes the following technical solutions:

[0006] In a first aspect, the present application provides an image generation method, which includes obtaining input first description information; generating a drawing request based on the first description information, and sending the drawing request to an image information generation model; the image information generation model generates drawing information in a preset format according to the drawing request, and sends the drawing information to a drawing engine; the drawing engine generates a target image according to the drawing information; and displaying the target image.

[0007] In a possible implementation, the method of obtaining input description information further includes: a description interface for image information, the description interface including at least one configuration item for describing an image, and a user inputs the first description information through the configuration item of the description interface.

[0008] In a possible implementation, the configuration items in the method include at least one of an image subject item, an image part item, an image color item, an image style item, and an image resolution item.

[0009] In a possible implementation, the method further includes: the image information generating end generates drawing information in a preset format according to the drawing request, and sends the drawing information to the drawing engine, and further includes: the drawing information includes coordinates of the image.

[0010] In a possible implementation, the method wherein the drawing engine generates a target image according to the drawing information and displays the target image further includes: filtering data required for drawing the target image from the drawing information, wherein the drawing engine generates the target image according to the filtered data required for drawing the target image.

[0011] In a possible implementation, the method further includes generating a drawing request based on the description information and sending the drawing request to the image information generating end, and further includes: a format of the drawing request is the same as a format of the drawing information.

[0012] In a possible implementation, the method further includes: generating a modification request according to a modification area set by a user on the target image and second description information input, sending the modification request to the image information generation model, the image information generation model generating modification information, the drawing engine generating a modified image according to the modification information, and displaying the modified image.

[0013] The second aspect of the present application provides an image generation system, comprising:

[0014] An acquisition module, used for acquiring the input first description information;

[0015] a request generating module, configured to generate a drawing request based on the first description information, and send the drawing request to a generating module;

[0016] A generating module, configured to generate drawing information in a preset format according to the drawing request, and send the drawing information to a drawing module;

[0017] A drawing module, used for generating a target image according to the drawing information;

[0018] A display module displays the target image.

[0019] In a possible implementation, the system further includes

[0020] The acquisition module further includes a description interface of the image information, the description interface including at least one configuration item for describing the image, and the user inputs the first description information through the configuration item of the description interface, the configuration item including at least one of an image subject item, an image color item, an image style item, and an image resolution item;

[0021] A filtering module, filtering data required for drawing a target image from the drawing information, and sending the filtered data required for drawing the target image to the drawing module;

[0022] A modification module is used to respond to the user's interactive operation on the target image, modify the target image according to the interactive operation, generate a modification request according to the modification area set by the user on the target image and the second description information input, send the modification request to the image information generation model, the image information generation model generates modification information, the drawing engine generates a modified image according to the modification information, and displays the modified image.

[0023] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0024] The memory is used to store computer programs;

[0025] The processor is used to implement any method step described in the first aspect of the present application when executing the program stored in the memory.

[0026] The fourth aspect of the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect of the present application is implemented.

[0027] Beneficial effects:

[0028] From the above technical solution, it can be seen that the present application first obtains the user's first description information of the image, then generates a drawing request based on the first description information, and sends the drawing request to the image information generation model. The image information generation model generates drawing information in a preset format. The drawing engine draws the target image according to the drawing information and displays the target image. The drawing information includes coordinate information required to generate the target image. The drawing engine completes the drawing of the target image according to the coordinates. The image information generation model does not need to directly generate the target image, but only needs to generate drawing information based on the drawing request. Compared with the Wensheng graph model that directly generates the image, the required computing power is greatly reduced.

[0029] It should be appreciated that all combinations of the foregoing concepts, as well as additional concepts described in greater detail below, may be considered to be part of the inventive subject matter of the present disclosure, provided such concepts are not mutually inconsistent.

[0030] The foregoing and other aspects, embodiments and features of the present invention can be more fully understood from the following description in conjunction with the accompanying drawings. Other additional aspects of the present invention, such as the features and / or beneficial effects of the exemplary embodiments, will be apparent from the following description or learned from the practice of the specific embodiments according to the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component shown in various figures may be represented by the same reference numeral. For clarity, not every component is labeled in every figure. Embodiments of various aspects of the present invention will now be described by way of example and with reference to the accompanying drawings, in which:

[0032] Figure 1 A schematic diagram of a flow chart of an image generation method provided by an embodiment of the present invention;

[0033] Figure 2 is a schematic diagram of an image generation process provided by an embodiment of the present invention;

[0034] Figure 3 is a schematic diagram of an image information description interface provided by an embodiment of the present invention Figure 1 ;

[0035] Figure 4 is a schematic diagram of an image information description interface provided by an embodiment of the present invention Figure 2 ;

[0036] Figure 5 It is a schematic diagram of a target image display interface provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment 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. Unless otherwise defined, the technical terms or scientific terms used herein should be the common meanings understood by people with ordinary skills in the field to which the present invention belongs.

[0038] The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, unless the context clearly indicates otherwise, the singular form of "a", "an" or "the" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprise" and other similar words mean that the elements or objects appearing before "include" or "comprise" include the features, wholes, steps, operations, elements and / or components listed after "include" or "comprise", and do not exclude the existence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0039] The inventors of the present application have discovered that the AI ​​text graph model realizes the function of converting text descriptions into images by combining the generative adversarial network principle with large generative models such as Stable Diffusion. However, the computing power consumption of the text graph model is quite significant in both the training and reasoning stages. Training a high-performance text graph model requires huge computing power resources, and generating images or videos in the reasoning stage also requires significant computing power support. High computing power consumption may cause some users to encounter resource limitations when using text graph technology. Therefore, a method is needed that can generate images through text descriptions while consuming less computing power.

[0040] The embodiments of the present disclosure relate to the field of artificial intelligence technology, and more specifically, to the field of deep learning technology.

[0041] Among them, Artificial Intelligence (AI) is a new technical science that studies and develops theories, methods, technologies and application systems for simulating, extending and expanding human intelligence.

[0042] Deep learning is the process of learning the inherent laws and representation levels of sample data. The information obtained in the learning process is of great help in interpreting data such as text, images, and sounds. The ultimate goal of deep learning is to enable machines to have analytical learning capabilities like humans and to be able to recognize data such as text, images, and sounds.

[0043] To facilitate understanding of this embodiment, the execution subject of an image generation method disclosed in the embodiment of the present disclosure is first introduced in detail. Specifically, the execution subject of the image generation method is an electronic device, wherein the electronic device may include a terminal device. For example, the method can be applied to a terminal device, and the terminal device can be a smart phone, a tablet computer, a laptop computer, etc., and can also be a smart watch, a desktop computer, a vehicle-mounted device, an embedded device, a virtual reality (VR) / augmented reality (AR) device, etc., without limitation.

[0044] The method can also be applied to a server, or to an implementation environment consisting of a terminal and a server. The server can be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, big data and artificial intelligence platforms.

[0045] It should be noted that in some embodiments, the server can communicate with terminal devices such as smart phones, tablet computers, desktop computers, and laptops through a network. The network can include various connection types, such as wired, wireless communication links, or optical fiber cables.

[0046] Figure 1 A flowchart of an image generation method provided by an embodiment of the present disclosure.

[0047] like Figure 1 As shown, the image generation method may include:

[0048] S10 obtains input first description information.

[0049] The first description information refers to text information input by the user to describe the image to be generated. The first description information can be text information input by the user into the electronic device through language, or can be text information input into the description interface of the image information.

[0050] S20 generates a drawing request based on the first description information, and sends the drawing request to the image information generation model.

[0051] Reference Figure 3The schematic diagram of the description interface of the image information shown is shown. When the user clicks the "Generate" option, a drawing request is generated based on the first description information, and the drawing request is sent to the image information generation model. In this embodiment, the terminal obtains the first description information and generates a drawing request based on the first description information, and then sends the drawing request to the image information generation model. In this embodiment, the generation of the drawing request can be completed at the terminal that obtains the first description information. In other embodiments, the terminal obtains the first description information and sends it to the cloud, and the drawing request is generated in the cloud.

[0052] S30: The image information generation model generates drawing information in a preset format according to the drawing request, and sends the drawing information to the drawing engine.

[0053] The image information generation model is a neural network model that has been constructed and trained to generate drawing information in a preset format according to an input drawing request. The format of the drawing information can be any of the data exchange formats such as XML, JSON, YAML or ProtoBuf. This embodiment adopts the JSON format. The drawing information includes the coordinates, shape and other information of the image to be drawn. The drawing information of this embodiment adopts the JSON format. The following is an example of drawing information that only includes image coordinates.

[0054]

[0055] It should be understood that the format and content of the generated drawing information are different when the constructed image information generation model is different. In some embodiments, the drawing information only includes the coordinates of the image, and in other embodiments, the drawing information also includes information such as brush width, brush color, and whether the coordinates are connected. Since the image information generation model does not need to directly generate the image, but only needs to generate image metadata, the complexity of model construction is reduced and the required computing power is greatly reduced. The image information generation model can be set in the terminal or in the cloud. In this embodiment, the image information generation model is set in the cloud, and the drawing engine is set in the terminal. When the drawing information is generated, the drawing information is sent to the drawing engine. Since the image file usually contains a large amount of pixel data, each pixel is composed of information such as color and brightness, and the amount of data is usually large. The drawing information in JSON format contains image metadata such as coordinates, size, resolution, color space, etc., and may also have some instructions or parameters for reconstructing the image such as vector graphics data. This information is usually much smaller than the actual pixel data of the image. The drawing engine can generate an image based on this information at the terminal, and only needs to transmit these basic information during network transmission, which greatly reduces the amount of data transmitted. Therefore, in this preferred embodiment, the drawing engine is set at the terminal to reduce the amount of data transmission on the network. In other embodiments, the drawing engine and the image information generation model are both set in the cloud or terminal. Since the computing power required by the image information generation model is reduced and the hardware requirements are reduced, when the image information generation model and the drawing engine are both set in the terminal, the image generation method of the present application can be executed without networking. It should be understood that the present application does not limit the image information generation model to be set in the cloud or terminal.

[0056] The S40 drawing engine generates a target image according to the drawing information.

[0057] The drawing engine obtains and parses the drawing information. In this embodiment, the drawing information is in JSON format. When the drawing information only contains the coordinates of the image, the drawing engine parses the drawing information and obtains coordinate information such as the number of coordinate points and the coordinate point array, and completes the drawing of the image point by point. In other embodiments, the drawing engine can complete the drawing of the image according to the connection between the coordinates; in some other embodiments, the drawing information includes the shape data or the connection data of the image, and the drawing engine can complete the drawing of the image according to the shape data to obtain the target image. It should be understood that the drawing engine can complete the drawing of the target image according to the image information in the drawing information. When the drawing information only contains the coordinates or shape of the image, the drawing engine can complete the image drawing accordingly. Of course, the drawing information can also include coordinate information, shape information, brush size, connection data, etc.

[0058] S50 displays the target image

[0059] After the drawing engine completes drawing the target image, the terminal displays the target image. When the drawing engine is set in the terminal, the drawing engine generates the target image and then displays it. When the drawing engine is set in the cloud, the target image is sent to the terminal for display after drawing is completed.

[0060] In this embodiment, a drawing request is generated according to the user's first description information of the target image, and the drawing request is input into the image information generation model to generate drawing information. The drawing information contains the coordinate information of the image. The drawing engine completes the drawing of the image point by point based on this, generates the target image, and the terminal displays the target image. Due to the existing AI Wensheng map, a complete target image is usually generated based on the target image description text. This usually involves a complex image generation process, which requires deep neural networks such as generative adversarial networks GAN, etc. These networks need to process a large amount of data and perform feature extraction and conversion at multiple levels, so a large amount of calculation is involved. However, the image information generation model in this embodiment only needs to draw data such as the coordinate information of the target image, and then the drawing engine completes the drawing of the target image. Therefore, the demand for computing power in this embodiment is greatly reduced compared to the existing AI Wensheng map method. At the same time, since the amount of drawing information data is less than the amount of image data, the amount of network transmission data is smaller. When the image information generation model is set in the cloud and the drawing engine is set in the terminal, the network transmission cost is reduced.

[0061] The existing AI text-to-image generation technology has a very high demand for computing power, which leads to a huge hardware cost for deploying such models on terminal devices, which limits its wide application to a certain extent. Since the computing power required for the image information generation model of the present application is reduced, the hardware requirements are greatly reduced. Therefore, in other embodiments, the image information generation model and the drawing engine are both set in the terminal, and the image generation method of the present application is completed in the terminal to realize the conversion from text to image.

[0062] In other embodiments, the terminal is provided with a detailed description interface of the image, such as Figure 3 As shown, when the user inputs the requirement of "drawing a person", the description interface is composed of some configurations, such as image color items, image style items, and image resolution items, for the user to make a more comprehensive description of the target image. By enhancing the configuration of image attribute information, the details of the image description are enriched, so that the subsequently generated target image better meets the user's requirements. The initial requirements entered by the user and the more detailed input in the description interface constitute the first description information. In other embodiments, the system will parse the first description information entered by the user and generate corresponding image description items for the user to make an accurate description. Figure 4As shown, when the user inputs the requirement of "drawing a person", the configuration items related to the target image are generated by parsing the information input by the user. The user further improves the attribute information of the required image as needed, so that the image information generation model can generate drawing information that better meets the user's needs.

[0063] Preferably, in some embodiments, a drawing request in a preset format is generated according to the first description information, and its format is the same as the format of the drawing information generated by the image information generation model. Exemplarily, when a person is to be drawn, in the drawing request generated according to the first description information, a corresponding data set is set according to the part to be drawn, and the image information generation model generates corresponding drawing information accordingly, thereby further reducing the complexity of the constructed image information generation model and reducing the computing power required for generating the drawing information.

[0064] In some embodiments, when the drawing request is a request language input by a user in text format, the drawing information generated by the image information generation model may include, in addition to data used to draw the target image, some information unrelated to drawing the target image. For example, when the drawing request is "draw me a pentagon", the drawing information includes, in addition to the coordinate information required to draw the pentagon, "the coordinates required to draw the pentagon..." At this time, the data used to draw the target image in the drawing information is filtered out, and the drawing engine completes the drawing of the target image based on the filtered data.

[0065] In other embodiments, after the terminal displays the target image, the user performs interactive operations on the target image display interface. Figure 5 As shown, the user can click on certain areas of the image to select colors for rendering, can erase certain parts of the image, and make corresponding changes to the image according to the user's interactive operations. Furthermore, when the user is dissatisfied with certain parts of the image, the dissatisfied area can be circled, the second description information can be input, and a modification request can be generated according to the second description information. The image information generation model generates modification information according to the modification request, and the drawing engine generates a modified image accordingly, and the terminal replaces the modified image in the modified area of ​​the target image. This method of modifying the unsatisfactory parts of the image retains the parts that the user is satisfied with, and only modifies the parts that the user is dissatisfied with, making the modification more accurate. In the existing AI Wenshengtu model, when the user is dissatisfied with a part of the image, if AI redrawing is required, the part that the user is satisfied with will often be modified, and the requirement for accurate modification cannot be met. In other embodiments, the drawing engine generates a new target image based on the drawing information and the modification information, and the terminal displays the new target image.

[0066] In other embodiments, when the user wants to modify a part of the image, he / she circles the modified part and inputs the second description information. A new drawing request is generated according to the first description information and the second description information. The image information generation model generates new drawing information accordingly. The drawing engine generates a new target image accordingly. The terminal displays the new target image.

[0067] On the other hand, an embodiment of the present invention provides an image generation system. Based on the same inventive concept, an image generation system corresponding to the image generation method is also provided in an embodiment of the present disclosure. Since the principle of solving the problem by the system in the embodiment of the present disclosure is similar to the above-mentioned image generation method in the embodiment of the present disclosure, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.

[0068] The image generation system provided by the embodiment of the present disclosure includes:

[0069] An acquisition module, used for acquiring the input first description information;

[0070] A request generating module, configured to generate a drawing request based on the first description information, and send the drawing request to the generating module;

[0071] A generating module, used for generating drawing information in a preset format according to a drawing request, and sending the drawing information to a drawing module;

[0072] A drawing module, used for generating a target image according to drawing information;

[0073] Display module, showing the target image.

[0074] Below Figure 2 As an example, the collaborative relationship between the various modules of the image generation system in the embodiment of the present application is described in detail. Figure 2 The collaborative relationship between the various modules in the image generation system in the embodiment of the present application is exemplified. In the present embodiment, the acquisition module, the request generation module, and the display module are all set in the terminal. The above three modules are replaced by the terminal in the following description.

[0075] 1. The terminal obtains first description information;

[0076] 2. The terminal generates a drawing request based on the first description information;

[0077] 3. The terminal sends the drawing request to the generation module;

[0078] 4. The generation module generates drawing information according to the drawing request;

[0079] 5. The generation module sends the drawing information to the drawing module;

[0080] 6. The drawing module generates a target image according to the drawing information;

[0081] 7. The drawing module sends the target image to the terminal;

[0082] 8. The terminal displays the target image.

[0083] In some embodiments, the image generation system further includes a filtering module and a modifying module. The filtering module filters out data required for drawing the target image from the drawing information and sends the filtered data to the drawing module; the modifying module is used to respond to the user's interactive operation on the target image and modify the target image according to the interactive operation. When the user wants to modify some areas of the target image, a modification request is generated according to the modification area set by the user on the target image and the second description information input, and the modification request is sent to the generating module, the generating module generates modification information, the drawing module generates a modified image according to the modification information, and the terminal displays the modified image in the modification area of ​​the target image.

[0084] The embodiment of the present application also provides a computer program product or a computer program, which may include a computer instruction, which may be stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor may execute the computer instruction so that the computer device performs the description of the image generation method in the foregoing embodiment, and therefore, it will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product or computer program embodiment involved in the present application, please refer to the description of the method embodiment of the present application.

[0085] It should be understood that, although the steps in the flowcharts of the above-mentioned embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders.

[0086] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the hardware + program embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0087] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0088] Although the present specification provides method operation steps as described in the embodiments or flowcharts, more or fewer operation steps may be included based on conventional or non-creative means. The order of steps listed in the embodiments is only one way of executing the order of many steps and does not represent the only execution order. When the actual device or terminal product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment, or even a distributed data processing environment).

[0089] The terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, product or apparatus that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, product or apparatus. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or apparatus that includes the elements.

[0090] For the convenience of description, the above devices are described in various modules according to their functions. Of course, when implementing the embodiments of this specification, the functions of each module can be implemented in the same or more software and / or hardware, or the module implementing the same function can be implemented by a combination of multiple sub-modules or sub-units. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection 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.

[0091] Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable program code, the controller can be made to implement the same function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered as a hardware component, and the devices for implementing various functions included therein can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules for implementing the method and structures within the hardware component.

[0092] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0093] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0094] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0095] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0096] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0097] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory media such as modulated data signals and carrier waves.

[0098] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, the embodiments of this specification may take the form of complete hardware embodiments, complete software embodiments or embodiments combining software and hardware. Moreover, the embodiments of this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0099] The various embodiments in this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The embodiments of this specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0100] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiments of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0101] The above is only an example of the embodiment of the present specification and is not intended to limit the embodiment of the present specification. For those skilled in the art, the embodiment of the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the embodiment of the present specification shall be included in the scope of the claims of the embodiment of the present specification.

[0102] Although the present invention has been disclosed as above with preferred embodiments, it is not intended to limit the present invention. A person with ordinary knowledge in the technical field to which the present invention belongs may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be determined by the definition of the claims.

Claims

1. An image generation method, characterized in that: The method comprises Get the first description information of the input; generating a drawing request based on the first description information, and sending the drawing request to an image information generation model; The image information generation model generates drawing information in a preset format according to the drawing request, and sends the drawing information to the drawing engine; The drawing engine generates a target image according to the drawing information; The target image is displayed.

2. The image generation method according to claim 1, characterized in that The method of obtaining the input first description information further includes: a description interface of image information, wherein the description interface includes at least one configuration item for describing an image, and a user inputs the first description information through the configuration item of the description interface.

3. The image generation scheme according to claim 2, characterized in that: The configuration items include at least one of an image subject item, an image color item, an image style item, and an image resolution item.

4. The image generation method according to claim 1, characterized in that The image information generating end generates drawing information in a preset format according to the drawing request, and sends the drawing information to the drawing engine, and further includes: the drawing information includes coordinates of the image.

5. The image generation method according to claim 1, characterized in that The drawing engine generates a target image according to the drawing information, and further includes: filtering data required for drawing the target image from the drawing information, and the drawing engine generates the target image according to the filtered data required for drawing the target image.

6. The image generation method according to claim 1, characterized in that The generating of a drawing request based on the first description information and sending the drawing request to the image information generating end further includes: a format of the drawing request is the same as a format of the drawing information.

7. The image generation method according to claim 1, characterized in that The drawing engine generates a target image according to the drawing information and displays the target image, and further includes: responding to a user's interactive operation on the target image and modifying the target image according to the interactive operation.

8. The image generation method according to claim 7, characterized in that: A modification request is generated according to the modification area set by the user on the target image and the second description information input, the modification request is sent to the image information generation model, the image information generation model generates modification information, the drawing engine generates a modified image according to the modification information, and displays the modified image.

9. An image generation system, characterized in that: include An acquisition module, used for acquiring the input first description information; a request generating module, configured to generate a drawing request based on the first description information, and send the drawing request to a generating module; A generating module, configured to generate drawing information in a preset format according to the drawing request, and send the drawing information to a drawing module; A drawing module, used for generating a target image according to the drawing information; A display module displays the target image.

10. The image generation system according to claim 9, characterized in that: Also includes The acquisition module further includes a description interface of the image information, the description interface including at least one configuration item for describing the image, and the user inputs the first description information through the configuration item of the description interface, the configuration item including at least one of an image subject item, an image color item, an image style item, and an image resolution item; A filtering module, filtering data required for drawing a target image from the drawing information, and sending the filtered data required for drawing the target image to a drawing module; A modification module is used to respond to the user's interactive operation on the target image, modify the target image according to the interactive operation, generate a modification request according to the modification area set by the user on the target image and the second description information input, send the modification request to the image information generation model, the image information generation model generates modification information, the drawing engine generates a modified image according to the modification information, and displays the modified image.

11. An electronic device, characterized in that : comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 1-7 when executing the program stored in the memory.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Method and device for generating attached drawings of patent application, storage medium and electronic equipment

    CN119399322A

  • Video generation method and related device

    WO2026113493A1