Picture generation method and device, electronic equipment and medium

Through the image generation method based on product information, text generation model, content optimization model and Vincent diagram model are used to generate optimized image elements, which solves the problems of complex production and poor quality of existing image advertising materials, and improves the effectiveness and efficiency of Internet advertising. .

CN118570337APending Publication Date: 2024-08-30ANT SHENGXIN (SHANGHAI) INFORMATION TECH CO LTD
View PDF 0 Cites 5 Cited by

Patent Information

Application Number
CN202410598841.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-14
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The production process of existing picture advertising materials is complex, low efficiency and poor quality, which affects the effectiveness of Internet advertising.

Method used

By determining the picture template based on product information, using the pre-accessed text generation model, content optimization model and Vincent diagram model to generate optimized picture elements, isolating the production process of each element, improving the picture quality, and performing synthesis processing through the picture template to ensure a perfect fit. regulations and efficiency.

Benefits of technology

It improves the quality and efficiency of image generation, ensures the focus and compliance of image elements before synthesis, and shortens the production time of high-quality materials for new products.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570337A
    Figure CN118570337A
Patent Text Reader

Abstract

The embodiment of the invention discloses a picture generation method and device, electronic equipment and a medium. The picture generation method comprises the steps of determining a picture template corresponding to a product based on product information of the product; based on the prompt word bank, generating a plurality of first elements through a pre-accessed text generation model; optimizing the cue words in the cue word library through a pre-accessed content optimization model to obtain optimized cue words; generating a plurality of second elements corresponding to the optimization cue word through a pre-accessed text graph model; determining picture materials corresponding to the product information from the plurality of first elements and the plurality of second elements; and synthesizing the picture material corresponding to the product information through the picture template to obtain a synthesized picture. According to the embodiment of the invention, the synthetic picture quality and the picture generation efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of computer technology, and specifically to a method, device, electronic device, and medium for generating an image. Background Art

[0002] With the popularization of Internet technology, more and more users are accustomed to finding information online through the Internet, so as to further evaluate or purchase products. Compared with traditional offline promotion or traditional advertising media such as television, radio and print media, Internet advertising costs are lower, and product organizations can obtain better benefits by placing online advertisements. The Internet advertising marketing model not only helps to increase exposure and sales, but also is an important means for organizations to interact with users and obtain market information. The main interactive medium with users in the Internet advertising environment is picture advertising materials. The quality of picture advertising materials will affect the advertising effect in many ways. However, the production process of existing picture advertising materials is relatively complicated, the production efficiency is low, and the quality of picture advertising materials is also relatively poor. Summary of the invention

[0003] The embodiments of this specification provide a method, device, electronic device and medium for generating an image, and the technical solutions thereof are as follows:

[0004] In a first aspect, an embodiment of the present specification provides a method for generating an image, including: determining an image template corresponding to the product based on the product information of the product; generating a plurality of first elements based on a prompt word library through a pre-connected text generation model; optimizing the prompt words in the prompt word library through a pre-connected content optimization model to obtain optimized prompt words; generating a plurality of second elements corresponding to the optimized prompt words through a pre-connected text graph model; determining the image material corresponding to the product information from the plurality of first elements and the plurality of second elements; and synthesizing the image material corresponding to the product information through the image template to obtain a synthesized image.

[0005] In a second aspect, an embodiment of the present specification provides an image generation device, including: a template determination module, used to determine an image template corresponding to a product based on product information of the product; a first generation module, used to generate a plurality of first elements based on a prompt word library through a pre-connected text generation model; an optimization module, used to optimize the prompt words in the prompt word library through a pre-connected content optimization model to obtain optimized prompt words; a second generation module, used to generate a plurality of second elements corresponding to the optimized prompt words through a pre-connected text graph model; a material determination module, used to determine the image material corresponding to the product information from the plurality of first elements and the plurality of second elements; and a picture synthesis module, used to synthesize the image material corresponding to the product information through the picture template to obtain a synthesized image.

[0006] In a third aspect, an embodiment of the present specification provides an electronic device, comprising a processor and a memory; the processor is connected to the memory; the memory is used to store executable program code; the processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the steps of the image generation method of the first aspect of the above embodiment.

[0007] In a fourth aspect, an embodiment of the present specification provides a computer storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the steps of the image generation method of the first aspect of the above-mentioned embodiment.

[0008] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least:

[0009] The embodiment of this specification can first determine the image template corresponding to the product based on the product information of the product; then generate several first elements based on the prompt word library through the pre-connected text generation model; then optimize the prompt words in the prompt word library through the pre-connected content optimization model to obtain optimized prompt words; then generate several second elements corresponding to the optimized prompt words through the pre-connected text graph model; then determine the image material corresponding to the product information from the several first elements and the several second elements; then synthesize the image material corresponding to the product information through the image template to obtain the synthesized image. The embodiment of this specification can isolate the production process of each image element through the pre-connected text generation model, content optimization model and text graph model, so that each image element is more focused on the quality of the element itself, and further improve the quality of the synthesized image; and the embodiment of this specification synthesizes the image material corresponding to the product information through the image template, which can template the image production chain. The embodiment of this specification will independently operate and review the production of each image element, while ensuring the compliance and quality of the image elements before the image synthesis, and further improve the quality of the synthesized image and the efficiency of image generation. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0011] Figure 1 This is a schematic diagram of an application scenario of a picture generation system provided in this specification.

[0012] Figure 2 It is a flowchart of a method for generating an image provided in this manual.

[0013] Figure 3 This is a flowchart of determining a picture template set provided in this manual.

[0014] Figure 4 This is a flow chart of optimizing prompt words in a prompt word library provided in this manual.

[0015] Figure 5 It is a flowchart diagram of generating several second elements corresponding to the optimization prompt words provided in this specification.

[0016] Figure 6 It is a flowchart of another image generation method provided in this manual.

[0017] Figure 7 This is a schematic diagram of a picture template corresponding to a medical insurance product provided in this instruction manual.

[0018] Figure 8 It is a schematic diagram of a synthesized medical insurance advertising picture provided in this manual.

[0019] Fig. 9 It is a structural schematic diagram of a picture generating device provided in this specification.

[0020] Fig.10 This is a schematic diagram of the structure of an electronic device provided in this manual. DETAILED DESCRIPTION

[0021] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0022] The terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0023] The picture generating method provided in multiple embodiments of this specification can be executed by the picture generating device provided in the embodiment of the present invention, or a server integrated with the picture generating device, wherein the picture generating device can be implemented in hardware or software.

[0024] Before describing the technical solution of the present invention, the relevant technical terms are briefly explained:

[0025] Large language model: A natural language processing technology based on a large-scale pre-trained language model that can generate natural language text or understand the meaning of language text. Large language models can be models such as GPT (Generative Pre-trained Transformer), XLM (Cross-lingual Language Modeling), mBERT (Multilingual BERT), etc. Large language models can handle a variety of natural language tasks, such as online customer service, information retrieval, content generation, personalized recommendations, etc. Large language models have strong language understanding capabilities and extensive knowledge coverage. The advantages include strong language understanding capabilities, extensive knowledge coverage, generalization and robustness, small sample learning and zero sample learning, multi-tasking capabilities, real-time interaction and personalized services, continuous iteration and optimization, and technological innovation and integration.

[0026] Deep learning algorithm: A machine learning technique that processes data, recognizes patterns, and performs tasks by mimicking the way the human brain works. The algorithm includes deep neural networks that consist of multiple layers, each capable of learning different levels of features in the data. In deep learning, data first enters the neural network through the input layer, then is processed through a series of hidden layers before reaching the output layer. Each neuron is connected to other neurons to form a complex network structure. Common deep learning algorithms include convolutional neural networks (CNN), recurrent neural networks (RNN), long short-term memory networks (LSTM), etc.

[0027] Text-generated graph model: An artificial intelligence model that can generate corresponding images based on the input text description. This model usually uses deep learning technology, architectures such as generative adversarial networks (GANs) or variational autoencoders (VAEs) to convert text into visually presented images. The text-generated graph model has processes such as text embedding, image generation, and quality control. Among them, text embedding: converts the text description entered by the user into an embedding vector in digital form. The text embedding step usually involves using a pre-trained language model to understand the meaning and context of the text. Image generation: The text embedding is fed into a generative model, which is responsible for generating the corresponding image based on the text description. The generated image can be a photo-quality picture that can show scenes, objects or people that match the text description. Quality control: During the image generation process, control signals can be applied to ensure that the generated image meets specific requirements, such as style, color, resolution, etc.

[0028] Before describing the image generation method in detail in conjunction with one or more embodiments, this specification first introduces the application scenario of the image generation method.

[0029] See also Figure 1 , Figure 1 The following is a schematic diagram of a scene of a picture generation system 100 provided in an embodiment of the present invention. The picture generation system 100 may include a picture generation device 110, an organization platform 120, and a storage server 130. The picture generation device 110 is respectively connected to the organization platform 120 and the storage server 130 for communication.

[0030] In this embodiment, the organization platform 120 may be a platform corresponding to an organization that advertises products online. The organization platform 120 may be integrated in an electronic device, which may be a server or other device. The server may be a single server or a server cluster composed of multiple servers. The product organization platform 120 may send product information of the product to the image generation device 110. The product organization platform 120 may also obtain the advertising image generated by the image generation device 110, and place the advertising image generated by the image generation device 110 online, thereby promoting the product to users.

[0031] In this embodiment, the storage server 130 may include a picture database, a picture template library, a prompt word library, and a picture material library. Among them, the picture database stores pictures of different product types; the picture template library stores a number of picture templates; and the picture material library stores a number of picture materials. The storage server 130 may be a physical server or a virtual server. The server may be a single server or a server cluster composed of multiple servers. The storage server 130 may run database management system software, such as MySQL, SQL Server, PostgreSQL, etc. These database management systems allow users to manage and operate data in the database through standard query languages ​​(such as SQL).

[0032] In this embodiment, the image generation device 110 can be specifically integrated in an electronic device, and the electronic device can be a terminal or a server. Among them, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop, or a personal computer (PC). The server can be a single server or a server cluster composed of multiple servers. In some embodiments, the image generation device can also be integrated in multiple electronic devices. For example, the image generation device 110 can be integrated in multiple servers, and the image generation method of the present application is implemented by multiple servers.

[0033] Among them, the image generation device 110 can obtain product information of the product from the product organization platform 120, and then determine the image template corresponding to the product based on the product information of the product; based on the prompt word library, generate a number of first elements through a pre-connected text generation model; optimize a number of prompt words in the prompt word library through a pre-connected content optimization model to obtain a number of optimized prompt words; generate a number of second elements corresponding to the number of optimized prompt words through a pre-connected text graph model; determine the image material corresponding to the product information from the first elements and the second elements; synthesize the image material corresponding to the product information through the image template to obtain a synthesized image, etc.

[0034] It should be noted that Figure 1 The scene diagram of the picture generation system shown is only an example. The picture generation system and scene described in the embodiment of the present invention are intended to more clearly illustrate the technical solution of the embodiment of the present invention, and do not constitute a limitation on the technical solution provided by the embodiment of the present invention. Ordinary technicians in this field can know that with the evolution of the picture generation system and the emergence of new scenes, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.

[0035] See also Figure 2 , Figure 2 is a flow chart of a method for generating an image provided by an embodiment of the present invention. The method for generating an image can be performed by Figure 1 The picture generation device 110 shown is executed. The picture generation method may at least include the following steps:

[0036] 200. Based on the product information of the product, determine the image template corresponding to the product.

[0037] In this embodiment, the image generating device 110 may first obtain product information of a certain product, and then determine the image template corresponding to the product based on the product information of the product.

[0038] The product may be a commodity for which image advertisements are to be placed. The product information may be detailed description data about the product, including but not limited to the product's functions, characteristics, uses, quality, price, manufacturer, brand, and any related service or certificate information.

[0039] For example, in the food field, product information may include information such as the source of raw materials, production date, shelf life, nutritional ingredients, manufacturer, etc. In the field of electronic products, product information may include technical specifications, function descriptions, instructions for use, warranty information, etc.

[0040] In this embodiment, the picture template may be a predefined picture format or layout, and the picture template may include structured data corresponding to the picture that meets the preset quality screening conditions. The structured data may include but is not limited to elements such as the overall layout of the picture, fixed information, text, background image, and icons.

[0041] Among them, the overall layout of the picture can be the arrangement and combination of various visual elements within the picture, including the position, size and relationship information of each part of the picture; fixed information can be the information in the picture that is unchanged or not easy to change, such as the picture title, author, shooting time, location and other data; the copy can be the text information contained in the picture; the background image can be the background part of the picture, which can be an actual picture or a solid color or patterned background; the icon can be a graphic symbol in the picture used to visually enhance the product content or indicate the product function.

[0042] In some embodiments, determining a picture template corresponding to a product based on product information includes: determining a picture template set; and determining a picture template corresponding to the product from the picture template set based on the product information.

[0043] In this embodiment, the picture template set may be a collection of picture templates corresponding to various types of products.

[0044] In this embodiment, the image generating device 110 may first obtain an image template set, and then determine an image template corresponding to the product from the image template set based on the product information of the product.

[0045] In some embodiments, see Figure 3 , Figure 3 FIG. 1 is a flow chart of determining a picture template set according to an embodiment of the present invention. Figure 3 As shown, determine the image template set, including:

[0046] 2000. Obtain image dataset;

[0047] 2010. Preprocessing the image data set to obtain a preprocessed image data set;

[0048] 2020. Extract the features corresponding to each image in the image dataset;

[0049] 2030. Classify each image according to the features corresponding to each image to obtain a number of image data subsets, each image data subset corresponding to a type of image;

[0050] 2040. Based on the preset quality screening condition, determine the pictures in each picture data subset that meet the preset quality screening condition, and obtain a plurality of pictures that meet the preset quality screening condition;

[0051] 2050. Perform structured decomposition processing on a number of images that meet the preset quality screening conditions to obtain a picture template set, where the picture template set includes structured data corresponding to the number of images that meet the preset quality screening conditions.

[0052] In this embodiment, the image data set may come from a variety of channels such as public image libraries, social media, and works of professional photographers. The preset quality screening condition is used for the quality of each image in the image data subset, and the preset quality screening condition may include whether the image meets the preset clarity, whether it meets the preset resolution, whether it meets the preset composition ratio, etc.

[0053] The picture generating device 110 of this embodiment can first obtain a picture data set containing a large amount of picture data, and then preprocess the picture data set to obtain a preprocessed picture data set. For example, this embodiment can clean each picture in the picture data set to exclude pictures with low quality and copyright issues. Then, this embodiment can use image recognition and processing technology, such as deep learning algorithm to extract key features corresponding to each picture in the picture data set, such as color, texture, shape, theme, etc. This embodiment can use machine learning algorithm to automatically classify each picture according to the features corresponding to each picture to obtain several picture data subsets, wherein the machine learning algorithm can be implemented by training an existing classification model, such as convolutional neural network, etc. Each picture data subset corresponds to a picture type. For example, this embodiment can obtain three picture data subsets a, b, and c. Picture data subset a corresponds to product A, picture data subset corresponds to product B, and picture data subset c corresponds to product C. Product A, product B, and product C are different types of products.

[0054] This embodiment can also determine the pictures that meet the preset quality screening conditions in each picture data subset based on the preset quality screening conditions, and obtain several pictures that meet the preset quality screening conditions. For example, this embodiment can determine the pictures that meet the preset picture clarity in each picture data subset based on the preset picture clarity conditions, thereby obtaining several pictures that meet the preset picture clarity. Then, this embodiment can perform structured decomposition processing on several pictures that meet the preset quality screening conditions respectively to obtain a picture template set. For example, the picture generation device 110 of this embodiment can first use image recognition technology to analyze the picture content, identify different objects and elements in the picture, and then use image processing technologies such as threshold segmentation and edge detection to extract the identified objects and elements from the background. Then, the extracted objects can be vectorized, and the vectorized objects can be further decomposed into smaller, reusable graphic elements, such as lines, rectangles, ellipses, etc., and then these graphic elements after structured decomposition processing are made into structured data of the picture template.

[0055] 210. Based on the prompt word library, generate a plurality of first elements through a pre-connected text generation model.

[0056] In this embodiment, the first element is a text element, and the first element may include a copywriting element, etc. The text generation model may be a model for generating text according to a prompt word, and the text generation model may be an artificial intelligence model based on deep learning technology, and the text generation model has a large parameter scale and can process and generate natural language. The text generation model may be a model such as GPT, XLM, and mBERT. The text graph model may be an artificial intelligence model for generating a corresponding image according to an input text description, and the text graph model may use a deep learning technology of a structure such as a generative adversarial network (GANs) or a variational autoencoder (VAEs) to convert text into a visually presented image. Several text graph models may include a Midjourney model, DALLE3, etc. In this embodiment, each prompt word in the prompt word library may be input into a pre-connected text generation model, and several copywriting elements may be generated by the pre-connected text generation model.

[0057] The prompt word library of this embodiment may be a database storing a large number of prompt words for generating various types of picture materials. The prompt word library may include a first prompt word set, a second prompt word set, a third prompt word set, etc. The picture materials of this embodiment may be original visual elements used in the picture generation process. Picture materials may include text elements, background elements, and icon elements, etc. Among them, the text elements may be text information required to be included in the generated picture, and these words may be promotional information, titles, descriptions, or advertising slogans, etc.

[0058] For example, the prompt word library may include a first prompt word set, etc., and the first prompt word set may include several prompt words for generating different product type copywriting. Among them, several prompt words for generating different product type copywriting may include prompt words for generating technology product copywriting, generating household goods copywriting, generating food copywriting, generating sports goods copywriting, etc., wherein prompt words for generating technology product copywriting may be smart, innovative, high performance, artificial intelligence, ultra-long battery life, user-friendly, etc.; prompt words for generating household goods copywriting may be comfortable, modern design, space saving, durable, sustainable, multifunctional, concise, practical, etc.; prompt words for generating food copywriting may be healthy, delicious, nutritionally balanced, low sugar, low fat, high fiber, organic, etc.; prompt words for generating sports goods copywriting may be breathable, wear-resistant, lightweight, multifunctional, comfortable, fashionable, sporty, etc.

[0059] For example, the prompt word library may include a second prompt word set, etc., and the second prompt word set may include several prompt words for generating background images of different product types. Among them, several prompt words for generating background images of different product types may include prompt words for generating background images of smart phones, generating background images of kitchen appliances, generating background images of sports equipment, etc. Among them, prompt words for generating background images of smart phones may include modern sense, metal texture, screen display, thin frame, color matching, light reflection, etc.; prompt words for generating background images of kitchen appliances may include modern home, smooth material, high temperature paint, food grade safety, button feedback, light and texture, etc.; prompt words for generating background images of sports equipment may include vitality, breathable material, reflective details, functionality and fashion, dynamic composition, etc.

[0060] For example, the prompt word library may include a third prompt word set, etc., and the third prompt word set may include several prompt words for generating icons of different product types. Among them, several prompt words for generating icons of different product types may include prompt words for generating smartphone icons, generating laptop icons, generating kitchen appliance icons, generating home decoration icons, etc. Among them, prompt words for generating smartphone icons may include signal strength, microphone and earphones, camera lens, screen brightness, battery percentage, download / upload arrows, etc.; prompt words for generating laptop icons may include power plugs, network connections, hard disks or cloud storage, application icons, user accounts, zoom in or out arrows, etc.; prompt words for generating kitchen appliance icons may include knives and cutting boards, ovens or microwave ovens, coffee machines or teapots, spoons and bowls, etc.; prompt words for generating home decoration icons may include lamps and switches, curtains and awnings, sofas and beds, bookshelves and decorations, cleaning and maintenance tools, temperature and humidity controllers, etc.

[0061] In some embodiments, based on the prompt word library, a plurality of text elements are generated by a pre-connected text generation model, including: based on the first prompt word set, the text elements corresponding to each prompt word in the first prompt word set are generated by a pre-connected text generation model.

[0062] In this embodiment, the first prompt word set may include several prompt words for generating copywriting of different product types. In this embodiment, based on a pre-connected text generation model, a first model response of the text generation model to each prompt word in the first prompt word set may be obtained, and the first model response is a copywriting element corresponding to each prompt word in the first prompt word set.

[0063] 220. Optimize the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words.

[0064] In this embodiment, the content optimization model can be used to optimize each prompt word in the second prompt word set. The content optimization model can use a large language model. The content optimization model can be a GPT, XLM, mBERT, etc. model. The content optimization model can be used to optimize each prompt word in the third prompt word set. The content optimization model can be a GPT, XLM, mBERT, etc. model.

[0065] The content optimization model of this embodiment can be an optimizer for prompt words in the prompt word library. When a prompt word is input, the content optimization model will automatically generate more detailed optimized prompt words tailored for each text-based graph model, thereby improving the accuracy of subsequent background element and icon element generation.

[0066] In some embodiments, see Figure 4 , Figure 4 FIG. 1 is a flow chart of optimizing prompt words in a prompt word library provided by an embodiment of the present invention. Figure 4 As shown, the prompt words in the prompt word library are optimized by using the pre-connected content optimization model to obtain optimized prompt words, including:

[0067] 2200. Based on the second prompt word set, obtain a model response of the content optimization model to each prompt word in the second prompt word set, where the model response is an optimized prompt word corresponding to each prompt word in the second prompt word set;

[0068] 2210. Based on the third prompt word set, obtain a model response of the content optimization model to each prompt word in the third prompt word set, where the model response is an optimized prompt word corresponding to each prompt word in the third prompt word set.

[0069] In this embodiment, the second prompt word set may include a number of prompt words for generating background images of different product types, and the third prompt word set may include a number of prompt words for generating icons of different product types.

[0070] The content optimization model of this embodiment can be an optimizer for each prompt word in the second prompt word set. When a prompt word in the second prompt word set is input, the content optimization model will automatically generate a more detailed optimized prompt word tailored for each text graph model, thereby improving the accuracy of background element generation.

[0071] The content optimization model of this embodiment can also be an optimizer for each prompt word in the third prompt word set. When a prompt word in the third prompt word set is input, the content optimization model will automatically generate a more detailed optimized prompt word tailored for each text image model, thereby improving the accuracy of icon element generation.

[0072] 230. Generate a plurality of second elements corresponding to the optimization prompt words through a pre-connected text graph model.

[0073] In this embodiment, the second element is an image element, and the second element may include a background element, an icon element, and the like.

[0074] For example, in this embodiment, each prompt word in the second prompt word set can be optimized by a pre-connected content optimization model, and then the optimized prompt words corresponding to each prompt word in the second prompt word set are input into the text graph model, and the background elements of the optimized prompt words corresponding to each prompt word in the second prompt word set are generated by the text graph model.

[0075] For another example, this embodiment can also optimize each prompt word in the third prompt word set through a pre-connected content optimization model, and then input the optimized prompt words corresponding to each prompt word in the third prompt word set into a plurality of text graph models, and generate icon elements of the optimized prompt words corresponding to each prompt word in the third prompt word set through the plurality of text graph models.

[0076] In some embodiments, the second element includes a background element and an icon element. Figure 5 , Figure 5 1 is a flow chart of generating several second elements corresponding to the optimization prompt words provided by an embodiment of the present invention. Figure 5 As shown, several second elements corresponding to the optimization prompt words are generated by the pre-connected text graph model, including:

[0077] 2300. Based on the optimized prompt words corresponding to the prompt words in the second prompt word set, generate background elements of the optimized prompt words corresponding to the prompt words in the second prompt word set by using a text graph model;

[0078] 2310. Based on the optimized prompt words corresponding to the prompt words in the third prompt word set, generate icon elements of the optimized prompt words corresponding to the prompt words in the third prompt word set by using a text graph model.

[0079] In this embodiment, the background element can be a pattern or color behind the generated picture. The background element provides a visual framework for the picture and can enhance the communication effect of the copy or icon. The background can be a simple solid color or gradient color, or a complex pattern or photo. The icon element can be a graphic symbol in the picture, and the icon element can be used to represent a specific concept, function or object.

[0080] This embodiment can obtain, based on the text graph model, a second model response of the text graph model to the optimized prompt words corresponding to each prompt word in the second prompt word set, and the second model response is the background elements corresponding to the optimized prompt words corresponding to each prompt word in the second prompt word set; this embodiment can also obtain, based on the text graph model, a third model response of the text graph model to the optimized prompt words corresponding to each prompt word in the third prompt word set, and the third model response is the icon elements corresponding to the optimized prompt words corresponding to each prompt word in the third prompt word set.

[0081] 240. Determine image material corresponding to the product information from the plurality of first elements and the plurality of second elements.

[0082] In this embodiment, the first element includes text elements, etc., and the second element includes icon elements and background elements, etc. In this embodiment, several text elements, several background elements, and several icon elements may correspond to several picture materials, and the several picture materials may be picture materials corresponding to different types of products. In this embodiment, the picture material corresponding to the product information can be determined from the several picture materials according to the product information.

[0083] In some embodiments, determining image materials corresponding to product information from a number of first elements and a number of second elements includes: determining a product type in the product information; obtaining image materials that match the product type from the number of first elements and a number of second elements, the image materials that match the product type being the image materials corresponding to the product information.

[0084] In this embodiment, the image generating device 110 may first determine the product type in the product information; and then obtain image materials that match the product type from a plurality of image materials corresponding to a plurality of first elements and a plurality of second elements.

[0085] For example, if the product type of a certain product is a smartphone, the image generation device 110 of this embodiment can obtain image materials that match smartphones from a number of image materials according to the product type of the product. For another example, if the product type of a certain product is a sports shoe, the image generation device 110 of this embodiment can obtain image materials that match sports shoes from a number of image materials according to the product type of the product.

[0086] 250. The image material corresponding to the product information is synthesized by using the image template to obtain a synthesized image.

[0087] In this embodiment, the image generating device 110 can first obtain the image template corresponding to the product and the image material corresponding to the product information, and then synthesize the image material corresponding to the product information to obtain a synthesized image. The synthesized image is the advertising image generated by the image generating device 110. The image generating device 110 can send the synthesized image to the product organization platform 120. The product organization platform 120 puts the advertising image generated by the image generating device 110 online to promote the product to users.

[0088] In some embodiments, the picture material corresponding to the product information is synthesized through a picture template to obtain a synthesized picture, including: synthesizing the picture template and the picture material corresponding to the product information through a pre-connected image synthesis model to obtain a synthesized picture.

[0089] In this embodiment, the image synthesis model may be a model that combines different image elements into a complete image. The image synthesis model may be a generative adversarial network (GANs), a variational autoencoder (VAEs), a style transfer model, a conditional generation model, etc. In this embodiment, the image template, the text element, the background element, and the icon element may be synthesized by the image synthesis model to obtain a synthesized image.

[0090] In other embodiments, the image generating device 110 may also automatically synthesize the image template and the image material corresponding to the product information based on Sketch software, thereby obtaining a synthesized image.

[0091] The embodiments of this specification can separate multiple elements in the picture for individual generation and merge them at the end to obtain the final processed picture, especially for the image elements, the prompt words are first optimized, and then the Wensheng graph model is used for subsequent generation, so that each picture element is more focused on the quality of the element itself, and the quality of the synthesized picture is further improved. The embodiment of this specification isolates the production process of each picture element through the text generation model, the content optimization model and the Wensheng graph model, so that each picture element is more focused on the quality of the element itself, and the quality of the synthesized picture is further improved; and the embodiment of this specification synthesizes the picture material corresponding to the product information through the picture template, which can template the picture production chain. The embodiment of this specification conducts independent operation and review of the production of each picture element, while ensuring the compliance and quality of the picture elements before the picture synthesis, and further improves the quality of the synthesized picture and the efficiency of picture generation. In addition, the embodiment of this specification can accumulate production experience in the process of continuous delivery, and for newly launched products, it can quickly accumulate high-quality materials to shorten the start-up time.

[0092] According to the method described in the above embodiment, the following is further described in detail with examples.

[0093] The embodiments of this specification will take medical insurance products as an example to introduce the embodiments of this specification.

[0094] In this embodiment, please refer to Figure 6 , Figure 6 FIG. 2 shows a flow chart of another method for generating an image. Figure 6 As shown, the image generation method can be Figure 1 The picture generating device 110 shown is executed. The specific process is as follows:

[0095] A method for generating an image, comprising:

[0096] 300. Based on the medical insurance product information of the medical insurance product, determine the image template corresponding to the medical insurance product.

[0097] In this embodiment, the medical insurance agency platform sends the medical insurance product information of the medical insurance product to the image generating device 110. The image generating device 110 determines the image template corresponding to the medical insurance product based on the medical insurance product information of the medical insurance product, which may include determining a picture template set; based on the medical insurance product information of the medical insurance product, determining the picture template corresponding to the medical insurance product from the picture template set.

[0098] Among them, the product information of the medical insurance product may be detailed description data about the medical insurance product, including but not limited to the drug name, drug category, medical insurance code, manufacturer, medical insurance payment standard, price information, etc.

[0099] In some embodiments, determining a picture template corresponding to the medical insurance product based on the medical insurance product information of the medical insurance product includes: determining a picture template set; determining a picture template corresponding to the medical insurance product from the picture template set based on the medical insurance product information of the medical insurance product.

[0100] In this embodiment, the picture template set may be a set of picture templates corresponding to various products, and the picture template set may include picture templates corresponding to medical insurance products, etc. In this embodiment, the picture generating device 110 may first obtain the picture template set, and then determine the picture template corresponding to the medical insurance product from the picture template set based on the medical insurance product information of the medical insurance product.

[0101] In some embodiments, determining a picture template set includes: acquiring a picture data set; preprocessing the picture data set to obtain a preprocessed picture data set; extracting features corresponding to each picture in the picture data set; classifying each picture according to the features corresponding to each picture to obtain a number of picture data subsets, each picture data subset corresponding to a picture type; based on preset quality filtering conditions, determining pictures in each picture data subset that meet the preset quality filtering conditions to obtain a number of pictures that meet the preset quality filtering conditions; performing structured decomposition processing on the several pictures that meet the preset quality filtering conditions to obtain a picture template set, the picture template set including structured data corresponding to the several pictures that meet the preset quality filtering conditions.

[0102] In this embodiment, the image data set may come from a variety of channels such as public image libraries, social media, and works of professional photographers. The preset quality screening condition is used for the quality of each image in the image data subset, and the preset quality screening condition may include whether the image meets the preset clarity, whether it meets the preset resolution, whether it meets the preset composition ratio, etc.

[0103] The image generating device 110 of the present embodiment may first obtain an image data set containing a large amount of image data, and then preprocess the image data set to obtain a preprocessed image data set; then, based on preset quality filtering conditions, the images in each image data subset that meet the preset quality filtering conditions may be determined to obtain a number of images that meet the preset quality filtering conditions; the present embodiment may also perform structured decomposition processing on a number of images that meet the preset quality filtering conditions, respectively, to obtain an image template set.

[0104] For example, see Figure 7 , Figure 7 A schematic diagram of a picture template corresponding to a medical insurance product is shown. Figure 7 As shown, the image template corresponding to the medical insurance product includes the overall image layout, fixed information and background image, among which, the overall image layout of the image template corresponding to the medical insurance product: the left box is the location of the copy elements, the right is the location of the icon elements, the upper left corner is the logo of the product organization, and the upper right corner is the location of the fixed information; the fixed information of the image template corresponding to the medical insurance product can be the prompt information of the medical insurance organization platform: "For details of the insurance products, please refer to the insurance notice and insurance terms. The specific rate and insurance amount are subject to the actual payment"; the background image of the image template corresponding to the medical insurance product can be gray.

[0105] 310. Based on the prompt word library, a number of copywriting elements are generated through a pre-connected text generation model.

[0106] In this embodiment, the prompt word library may include a first prompt word set, a second prompt word set and a third prompt word set. The first prompt word set includes several prompt words for generating texts of different types of medical insurance products, the second prompt word set includes several prompt words for generating background images of different types of medical insurance products, and the third prompt word set includes several prompt words for generating icons of different types of medical insurance products.

[0107] In some embodiments, based on the prompt word library, a plurality of text elements are generated by a pre-connected text generation model, including: based on the first prompt word set, the text elements corresponding to each prompt word in the first prompt word set are generated by a pre-connected text generation model.

[0108] This embodiment can obtain a first model response of the text generation model to each prompt word in the first prompt word set based on a pre-connected text generation model, where the first model response is a text element corresponding to each prompt word in the first prompt word set.

[0109] 320. Optimize the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words.

[0110] In this embodiment, the prompt words in the prompt word library are optimized by a pre-connected content optimization model to obtain optimized prompt words, including: based on the second prompt word set, obtaining a model response of the content optimization model to each prompt word in the second prompt word set, the model response is the optimized prompt word corresponding to each prompt word in the second prompt word set; based on the third prompt word set, obtaining a model response of the content optimization model to each prompt word in the third prompt word set, the model response is the optimized prompt word corresponding to each prompt word in the third prompt word set.

[0111] 330. Generate a number of background elements and a number of icon elements corresponding to the optimization prompt words through the pre-connected text-based graph model.

[0112] In this embodiment, a plurality of background elements and a plurality of icon elements corresponding to the optimized prompt words are generated through a pre-connected text graph model, including: based on the optimized prompt words corresponding to each prompt word in the second prompt word set, the background elements of the optimized prompt words corresponding to each prompt word in the second prompt word set are generated through the text graph model; based on the optimized prompt words corresponding to each prompt word in the third prompt word set, the icon elements of the optimized prompt words corresponding to each prompt word in the third prompt word set are generated through the text graph model.

[0113] 340. Determine the image material corresponding to the medical insurance product information from a number of text elements, a number of background elements and a number of icon elements.

[0114] In this embodiment, determining the image material corresponding to the medical insurance product information from a number of text elements, a number of background elements, and a number of icon elements can include determining the medical insurance product type in the medical insurance product information; then obtaining the image material that conforms to the medical insurance product type from the number of text elements, a number of background elements, and a number of icon elements, and the image material that conforms to the medical insurance product type is the image material corresponding to the medical insurance product information.

[0115] Among them, the image materials corresponding to the medical insurance product information may include text elements corresponding to the medical insurance product information, backgrounds corresponding to the medical insurance product information, icon elements corresponding to the medical insurance product information, etc.

[0116] 350. The image materials corresponding to the medical insurance product information are synthesized by using an image template to obtain a synthesized medical insurance advertising image.

[0117] In this embodiment, the picture material corresponding to the medical insurance product information is synthesized through a picture template to obtain a synthesized picture, which may include synthesizing the picture template and the picture material corresponding to the medical insurance product information through a pre-connected image synthesis model to obtain a synthesized medical insurance advertising picture.

[0118] The image synthesis model may be a model that combines different image elements into a complete image. The image synthesis model may be a generative adversarial network (GANs), a variational autoencoder (VAEs), a style transfer model, a conditional generation model, etc. In this embodiment, the image template, the text element, the background element, and the icon element may be synthesized by the image synthesis model to obtain a synthesized medical insurance advertisement image.

[0119] For example, see Figure 8 , Figure 8 FIG. 1 shows a schematic diagram of a medical insurance advertisement image after synthesis processing. Figure 8 As shown, the upper right corner of the synthesized medical insurance advertising picture is the logo YYY of the medical insurance institution. The logo YYY of the medical insurance institution can be numbers, letters and / or pictures, etc. The text elements of the synthesized medical insurance advertising picture are "Product Name: XXX; Selling Points: 1. Full coverage of diseases; 2. Starting from only 19 yuan per month; 3. 80% direct reimbursement for online drug purchases", and the right side of the synthesized medical insurance advertising picture is an icon element. Figure 8 The middle icon element includes a number of scattered medicinal particles, which can very intuitively reflect the visual effect of the product; the background element in the synthesized medical insurance advertising picture can be light blue or other colors.

[0120] The embodiments of this specification can separate multiple elements in the picture for individual generation and merge them at the end to obtain the final processed picture, especially for the image elements, the prompt words are first optimized, and then the Wensheng graph model is used for subsequent generation, so that each picture element is more focused on the quality of the element itself, and the quality of the synthesized picture is further improved. The embodiment of this specification isolates the production process of each picture element through the text generation model, the content optimization model and the Wensheng graph model, so that each picture element is more focused on the quality of the element itself, and the quality of the synthesized picture is further improved; and the embodiment of this specification synthesizes the picture material corresponding to the product information through the picture template, which can template the picture production chain. The embodiment of this specification conducts independent operation and review of the production of each picture element, while ensuring the compliance and quality of the picture elements before the picture synthesis, and further improves the quality of the synthesized picture and the efficiency of picture generation. In addition, the embodiment of this specification can accumulate production experience in the process of continuous delivery, and for newly launched products, it can quickly accumulate high-quality materials to shorten the start-up time.

[0121] 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.

[0122] See also Fig. 9 , Fig. 9 A schematic diagram of the structure of a picture generating device provided in an embodiment of this specification.

[0123] like Fig. 9 As shown, the image generation device may at least include a template determination module 400, a first generation module 410, an optimization module 420, a second generation module 430, a material determination module 440 and an image synthesis module 450, wherein:

[0124] The template determination module 400 is used to determine the image template corresponding to the product based on the product information of the product;

[0125] A first generating module 410 is used to generate a plurality of first elements based on a prompt word library by using a pre-connected text generation model;

[0126] An optimization module 420 is used to optimize the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words;

[0127] The second generating module 430 is used to generate a plurality of second elements corresponding to the optimization prompt words through the pre-connected text graph model;

[0128] A material determination module 440, configured to determine the image material corresponding to the product information from the plurality of first elements and the plurality of second elements;

[0129] The picture synthesis module 450 is used to synthesize the picture materials corresponding to the product information through the picture template to obtain a synthesized picture.

[0130] In some embodiments, the template determination module includes a template set determination module and a template selection module; the template set determination module is used to determine the image template set; the template selection module is used to determine the image template corresponding to the product from the image template set based on the product information of the product.

[0131] In some embodiments, the template set determination module includes a picture set acquisition module, a preprocessing module, a feature extraction module, a classification module, a picture screening module and a structured decomposition module; the picture set acquisition module is used to acquire a picture data set; the preprocessing module is used to preprocess the picture data set to obtain a preprocessed picture data set; the feature extraction module is used to extract features corresponding to each picture in the picture data set; the classification module is used to classify each picture according to the features corresponding to each picture to obtain a number of picture data subsets, each picture data subset corresponding to a picture type; the picture screening module is used to determine the pictures in each picture data subset that meet the preset quality screening conditions based on preset quality screening conditions to obtain a number of pictures that meet the preset quality screening conditions; the structured decomposition module is used to perform structured decomposition processing on a number of pictures that meet the preset quality screening conditions respectively to obtain a picture template set, and the picture template set includes structured data corresponding to a number of pictures that meet the preset quality screening conditions.

[0132] In some embodiments, the prompt word library includes a first prompt word set, a second prompt word set and a third prompt word set. The first prompt word set includes several prompt words for generating copywriting of different product types, the second prompt word set includes several prompt words for generating background images of different product types, and the third prompt word set includes several prompt words for generating icons of different product types.

[0133] In some embodiments, the first element is a text element, and the text generation module includes a text generation module, which is used to generate text elements corresponding to each prompt word in the first prompt word set based on the first prompt word set through a pre-connected text generation model.

[0134] In some embodiments, the optimization module includes a first optimization module and a second optimization module. The first optimization module is used to obtain a model response of the content optimization model to each prompt word in the second prompt word set based on the second prompt word set, and the model response is an optimized prompt word corresponding to each prompt word in the second prompt word set; the second optimization module is used to obtain a model response of the content optimization model to each prompt word in the third prompt word set based on the third prompt word set, and the model response is an optimized prompt word corresponding to each prompt word in the third prompt word set.

[0135] In some embodiments, the second element includes a background element and an icon element. The second generation module also includes a background generation module and an icon generation module. The background generation module is used to generate background elements of the optimized prompt words corresponding to each prompt word in the second prompt word set through a text graph model based on the optimized prompt words corresponding to each prompt word in the second prompt word set; the icon generation module is used to generate icon elements of the optimized prompt words corresponding to each prompt word in the third prompt word set through a text graph model based on the optimized prompt words corresponding to each prompt word in the third prompt word set.

[0136] In some embodiments, the material determination module includes a type determination module and a material acquisition module. The type determination module is used to determine the product type in the product information; the material acquisition module is used to obtain picture materials that match the product type from a number of first elements and a number of second elements. The picture materials that match the product type are the picture materials corresponding to the product information.

[0137] In some embodiments, the image synthesis module includes a synthesis submodule, and the synthesis submodule is used to synthesize the image template and the image material corresponding to the product information through a pre-connected image synthesis model to obtain a synthesized image.

[0138] Based on the contents of the image generation system in multiple embodiments of this specification, it can be known that the embodiments of this specification can isolate the production process of each image element through the text generation model, content optimization model and text-generated image model, so that each image element is more focused on the quality of the element itself, and the quality of the synthesized image is further improved; and the embodiments of this specification synthesize the image materials corresponding to the product information through the image template, which can template the image production chain. The embodiments of this specification will independently review the production of each image element, while ensuring the compliance and quality of the image elements before the image synthesis, and further improve the quality of the synthesized image and the efficiency of image generation. In addition, the embodiments of this specification can accumulate production experience in the process of continuous launch, and for newly launched products, it can quickly accumulate high-quality materials to shorten the start-up time.

[0139] 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 picture generation system embodiment, since it is basically similar to the picture generation method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0140] See also Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0141] like Fig.10 As shown, the electronic device 500 may include: at least one processor 510 , at least one network interface 540 , a user interface 530 , a memory 550 , and at least one communication bus 520 .

[0142] The communication bus 520 may be used to realize the connection and communication among the above-mentioned components.

[0143] The user interface 530 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0144] The network interface 540 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, and the like.

[0145] Among them, the processor 510 may include one or more processing cores. The processor 510 uses various interfaces and lines to connect various parts within the entire electronic device 500, and executes various functions and processes data of the electronic device 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 550, and calling data stored in the memory 550. Optionally, the processor 510 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 510 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 510, but may be implemented separately through a chip.

[0146] Among them, the memory 550 may include RAM or ROM. Optionally, the memory 550 includes a non-transitory computer-readable medium. The memory 550 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 550 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 550 may also be at least one storage device located away from the aforementioned processor 510. The memory 550 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a picture generation application. The processor 510 can be used to call the picture generation application stored in the memory 550 and perform the picture generation steps mentioned in the aforementioned embodiments.

[0147] The embodiment of the present specification also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer or a processor, the computer or the processor executes the above Figure 2 to Figure 8 One or more steps in the illustrated embodiment. If the components of the electronic device described above are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.

[0148] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted by a computer-readable storage medium. The computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. Available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital versatile discs (DVD)), or semiconductor media (eg, solid state disks (SSD)).

[0149] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0150] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. A method for generating an image, comprising: Based on the product information of the product, determine the image template corresponding to the product; Based on the prompt word library, a plurality of first elements are generated by a pre-connected text generation model; Optimizing the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words; Generate a plurality of second elements corresponding to the optimization prompt words through a pre-connected text graph model; Determine the picture material corresponding to the product information from the plurality of first elements and the plurality of second elements; The picture material corresponding to the product information is synthesized using the picture template to obtain a synthesized picture.

2. The method according to claim 1, wherein determining the image template corresponding to the product based on the product information of the product comprises: Determine the image template set; Based on the product information of the product, a picture template corresponding to the product is determined from the picture template set.

3. The method according to claim 2, wherein determining the picture template set comprises: Get the image dataset; Preprocessing the image data set to obtain a preprocessed image data set; Extracting features corresponding to each picture in the picture data set; Classify the pictures according to the features corresponding to the pictures to obtain a plurality of picture data subsets, each picture data subset corresponding to a picture type; Based on the preset quality screening condition, determine the pictures in each picture data subset that meet the preset quality screening condition, and obtain a plurality of pictures that meet the preset quality screening condition; The plurality of pictures meeting the preset quality screening conditions are respectively subjected to structured decomposition processing to obtain a picture template set, wherein the picture template set includes structured data corresponding to the plurality of pictures meeting the preset quality screening conditions.

4. According to the method described in claim 1, the prompt word library includes a first prompt word set, a second prompt word set and a third prompt word set, the first prompt word set includes a number of prompt words for generating texts of different product types, the second prompt word set includes a number of prompt words for generating background images of different product types, and the third prompt word set includes a number of prompt words for generating icons of different product types.

5. The method according to claim 4, wherein the first element is a text element, and the generating of the plurality of first elements based on the prompt word library by a pre-connected text generation model comprises: Based on the first prompt word set, the text elements corresponding to the respective prompt words in the first prompt word set are generated by the pre-connected text generation model.

6. The method according to claim 5, wherein optimizing the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words comprises: Based on the second prompt word set, obtaining a model response of the content optimization model to each prompt word in the second prompt word set, wherein the model response is an optimized prompt word corresponding to each prompt word in the second prompt word set; Based on the third prompt word set, a model response of the content optimization model to each prompt word in the third prompt word set is obtained, wherein the model response is an optimized prompt word corresponding to each prompt word in the third prompt word set.

7. The method according to claim 6, wherein the second element comprises a background element and an icon element, and the generating of the plurality of second elements corresponding to the optimization prompt words by using the pre-connected text graph model comprises: Based on the optimized prompt words corresponding to the respective prompt words in the second prompt word set, generating background elements of the optimized prompt words corresponding to the respective prompt words in the second prompt word set by using the text graph model; Based on the optimized prompt words corresponding to the prompt words in the third prompt word set, icon elements of the optimized prompt words corresponding to the prompt words in the third prompt word set are generated by the text graph model.

8. The method according to claim 1, wherein determining the image material corresponding to the product information from the plurality of first elements and the plurality of second elements comprises: Determining a product type in the product information; Determine from the plurality of first elements and the plurality of second elements the picture materials corresponding to the product information and obtain picture materials that match the product type, the picture materials that match the product type being the picture materials corresponding to the product information.

9. The method according to claim 1, wherein the step of synthesizing the image material corresponding to the product information using the image template to obtain the synthesized image comprises: The image template and the image material corresponding to the product information are synthesized by using a pre-connected image synthesis model to obtain a synthesized image.

10. A picture generating device, comprising: A template determination module, used to determine the image template corresponding to the product based on the product information of the product; A first generation module, used to generate a plurality of first elements based on a prompt word library through a pre-connected text generation model; An optimization module, used for optimizing the prompt words in the prompt word library by using a pre-connected content optimization model to obtain optimized prompt words; A second generating module, used to generate a plurality of second elements corresponding to the optimization prompt words through a pre-connected text graph model; A material determination module, used to determine the image material corresponding to the product information from the plurality of first elements and the plurality of second elements; The picture synthesis module is used to synthesize the picture materials corresponding to the product information through the picture template to obtain a synthesized picture.

11. The device according to claim 10, wherein the template determination module comprises: A template set determination module, used to determine a picture template set; The template selection module is used to determine the image template corresponding to the product from the image template set based on the product information of the product.

12. The device according to claim 11, wherein the template set determination module comprises: Picture set acquisition module, used to acquire picture data sets; A preprocessing module, used to preprocess the image data set to obtain a preprocessed image data set; A feature extraction module, used to extract features corresponding to each image in the image data set; A classification module, used to classify each of the images according to the features corresponding to each of the images, to obtain a number of image data subsets, each of which corresponds to a type of image; An image screening module is used to determine, based on a preset quality screening condition, images in each image data subset that meet the preset quality screening condition, and obtain a plurality of images that meet the preset quality screening condition; The structured decomposition module is used to perform structured decomposition processing on the several pictures that meet the preset quality screening conditions respectively to obtain a picture template set, wherein the picture template set includes structured data corresponding to the several pictures that meet the preset quality screening conditions respectively.

13. According to the device of claim 10, the prompt word library includes a first prompt word set, a second prompt word set and a third prompt word set, the first prompt word set includes a number of prompt words for generating texts of different product types, the second prompt word set includes a number of prompt words for generating background images of different product types, and the third prompt word set includes a number of prompt words for generating icons of different product types.

14. The device according to claim 13, wherein the first element is a text element, and the text generation module comprises: The copywriting generation module is used to generate copywriting elements corresponding to each prompt word in the first prompt word set based on the first prompt word set and through the pre-connected text generation model.

15. The device according to claim 14, wherein the optimization module comprises: A first optimization module, configured to obtain, based on the second prompt word set, a model response of the content optimization model to each prompt word in the second prompt word set, wherein the model response is an optimized prompt word corresponding to each prompt word in the second prompt word set; The second optimization module is used to obtain, based on the third prompt word set, a model response of the content optimization model to each prompt word in the third prompt word set, wherein the model response is an optimized prompt word corresponding to each prompt word in the third prompt word set.

16. The device according to claim 15, wherein the second element comprises a background element and an icon element, and the second generating module further comprises: A background generation module, configured to generate background elements of the optimized prompt words corresponding to the respective prompt words in the second prompt word set by using the text graph model based on the optimized prompt words corresponding to the respective prompt words in the second prompt word set; The icon generation module is used to generate icon elements of the optimized prompt words corresponding to the respective prompt words in the third prompt word set through the text graph model based on the optimized prompt words corresponding to the respective prompt words in the third prompt word set.

17. The device according to claim 10, wherein the material determination module comprises: A type determination module, used to determine the product type in the product information; The material acquisition module is used to acquire picture materials that match the product type from the plurality of first elements and the plurality of second elements, wherein the picture materials that match the product type are picture materials corresponding to the product information.

18. The device according to claim 10, wherein the picture synthesis module comprises: The synthesis submodule is used to synthesize the image template and the image material corresponding to the product information through a pre-connected image synthesis model to obtain a synthesized image.

19. An electronic device comprising a processor and a memory; The processor is connected to the memory; The memory is used to store executable program code; The processor runs a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to execute the method according to any one of claims 1 to 9.

20. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Iron tower bird nest monitoring method and system based on multi-modal large model

    CN118692028A

  • File processing method and device, equipment and storage medium

    CN119322766A

  • system

    JP2026155561A

  • Methods, apparatus, devices, media, and computer programs for generating images

    JP2026533287A

  • Method and apparatus for displaying image-text page, and electronic device and program product

    WO2026194962A1