Poster generation method and device based on AIGC, equipment and medium
Through the AIGC-based poster generation method, the AIGC algorithm model and color acquisition algorithm are used to automatically generate poster header images and color schemes, which solves the shortcomings of existing design tools in terms of color intelligence, realizes an efficient and convenient poster generation process, and improves visual consistency and generation efficiency.
Patent Information
- Application Number
- CN202510534226.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-25
- Publication Date
- 2025-08-08
AI Technical Summary
The existing design tools have shortcomings in terms of intelligent color matching, which is difficult to take into account convenience and flexibility, and cannot automatically generate a color scheme that meets the brand style based on the image content, and the operation is complicated, making it difficult to meet diverse design needs.
AIGC-based poster generation method is adopted to extract and optimize the key information input by the user, and a poster header is generated using the AIGC algorithm model, and the main color tone is extracted from the poster header through the color acquisition algorithm to convert it into RGB values to generate a target color scheme. The poster template is generated based on the template list. Users can select the final poster in the front-end interface.
It realizes the rapid generation of high-quality posters without professional design skills, improves visual consistency and poster generation efficiency, and solves the problems of inconsistent color matching and inefficient template adaptation.
Smart Images

Figure CN120451336A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the financial field, and in particular to an AIGC-based poster generation method, device, equipment and medium. Background Art
[0002] With the diversification of design needs, a variety of design tools and platforms have emerged on the market, offering template selection and color matching capabilities. These tools can be roughly divided into two categories: simple design platforms for non-professional designers, and advanced design software for professional designers. While these tools offer varying degrees of automated design capabilities, they still have certain limitations.
[0003] Existing design platforms typically rely on offline image galleries and preset color schemes, limiting users to limited options. They lack the ability to automatically generate brand-specific color schemes based on image content. While these platforms support rapid creation of posters or social media content, the color schemes they offer are relatively basic, and their flexibility and customization capabilities struggle to meet diverse design needs. Professional design software, by contrast, offers more customization and greater flexibility. However, these tools are only suitable for experienced designers and are difficult to operate, requiring a long learning curve for novice users. Furthermore, these tools still rely on manual adjustments to color matching, which can reduce color matching effectiveness and increase design complexity.
[0004] Therefore, existing design tools are insufficient in terms of intelligent color matching, and it is difficult to strike a balance between convenience and flexibility. Summary of the Invention
[0005] The embodiments of the present invention provide a poster generation method, apparatus, device and medium based on AIGC, aiming to solve the problem that existing design tools are insufficient in intelligent color matching.
[0006] In a first aspect, an embodiment of the present invention provides a poster generation method based on AIGC, the method comprising:
[0007] Perform key information extraction on the text information input by the user to obtain the corresponding target key information;
[0008] Optimizing the text information according to the preset knowledge base and the key information to obtain optimized text content;
[0009] Input the text information into the AIGC algorithm model to generate a target poster header image;
[0010] Extracting the main color from the target poster header image according to a preset color extraction algorithm, and converting the main color into RGB values;
[0011] generating a target color scheme based on the RGB values;
[0012] Generate at least one poster template based on the preset template list, the optimized text content, the target poster header image, and the target color scheme, and display each poster template on the front-end interface;
[0013] The poster template selected by the user in the front-end interface is used as the target poster.
[0014] In a second aspect, an embodiment of the present invention further provides a poster generation device based on AIGC, the device comprising:
[0015] An extraction unit, configured to perform a key information extraction operation on the text information input by the user to obtain the corresponding target key information;
[0016] An optimization unit, configured to optimize the text information according to a preset knowledge base and the key information to obtain optimized text content;
[0017] A first generating unit is configured to input the text information into an AIGC algorithm model to generate a target poster header image;
[0018] A conversion unit, configured to extract a main color tone from the target poster header image according to a preset color extraction algorithm, and convert the main color tone into an RGB value;
[0019] A second generating unit, configured to generate a target color scheme based on the RGB values;
[0020] A third generating unit is configured to generate at least one poster template according to a preset template list, the optimized text content, the target poster header image, and the target color scheme, and to display each poster template on a front-end interface;
[0021] The determination unit is used to use the poster template selected by the user on the front-end interface as the target poster.
[0022] In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in the first aspect is implemented.
[0023] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method described in the first aspect can be implemented.
[0024] The present invention provides a poster generation method, device, equipment and medium based on AIGC. The method includes: performing a key information extraction operation on text information input by a user to obtain corresponding target key information; optimizing the text information according to a preset knowledge base and the key information to obtain optimized text content; inputting the text information into an AIGC algorithm model to generate a target poster header image; extracting a main color from the target poster header image according to a preset color extraction algorithm and converting the main color into RGB values; generating a target color scheme based on the RGB values; generating at least one poster template according to a preset template list, the optimized text content, the target poster header image and the target color scheme, and displaying each poster template on a front-end interface; and using the poster template selected by the user on the front-end interface as the target poster. In an embodiment of the present invention, a target poster header image can be generated through an AIGC algorithm model, and a main color from the target poster header image can be extracted using a color extraction algorithm to generate a target color scheme. This can effectively solve the problems of color inconsistency and inefficient template adaptation in the traditional poster design process, improve visual consistency and poster generation efficiency, and enable users to quickly generate high-quality posters without professional design skills. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0026] Figure 1 A flowchart of a poster generation method based on AIGC provided in an embodiment of the present invention;
[0027] Figure 2 A schematic block diagram of an AIGC-based poster generation device provided in an embodiment of the present invention;
[0028] Figure 3 A schematic block diagram of an electronic device provided in an embodiment of the present invention;
[0029] Figure 4 A schematic diagram of the application environment of the AIGC-based poster generation method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0031] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0032] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0033] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. The embodiment of the present invention provides a poster generation method, device, equipment and medium based on AIGC. The poster generation method based on AIGC can be found in Figure 4 , Figure 4 Schematic diagram of the application environment of the poster generation method based on AIGC provided by the embodiment of the present invention. The poster generation method based on AIGC is applied in Figure 4In an application environment, the user terminal communicates with the server terminal through a network. The server terminal can receive text information input by the user through the user terminal, perform key information extraction operations on the text information, and obtain corresponding target key information; optimize the text information according to a preset knowledge base and the key information to obtain optimized text content; input the text information into the AIGC algorithm model to generate a target poster header image; extract the main color tone from the target poster header image according to a preset color extraction algorithm, and convert the main color tone into RGB values; generate a target color scheme based on the RGB values; generate at least one poster template according to a preset template list, the optimized text content, the target poster header image and the target color scheme, and display each of the poster templates on the front-end interface of the user terminal; and use the poster template selected by the user on the front-end interface as the target poster. The embodiment of the present invention can generate a target poster header image through the AIGC algorithm model, and use the color picking algorithm to extract the main color from the target poster header image to generate a target color scheme. It can effectively solve the problems of color inconsistency and inefficient template adaptation in the traditional poster design process, improve visual consistency and poster generation efficiency, and enable users to quickly generate high-quality posters without professional design skills. Among them, the user end can be but is not limited to various personal computers, laptops, smart phones, tablets and portable wearable devices. The server end can be implemented with an independent server or a server cluster composed of multiple servers. The present invention is described in detail below through specific embodiments.
[0034] Figure 1 Schematic diagram of the process of the poster generation method based on AIGC provided by the embodiment of the present invention. Figure 1 As shown, the method includes the following steps S110-S170.
[0035] S110: Perform a key information extraction operation on the text information input by the user to obtain corresponding target key information.
[0036] In this embodiment, the user inputs text information on the front-end interface of the user terminal, and the text information includes a title and core copy. The server receives the text information through the user terminal, and performs a key information extraction operation on the text information based on the NLP (natural language processing) algorithm to obtain the corresponding target key information.
[0037] For ease of explanation, taking the financial business scenario as an example, the text information entered by the user on the front-end interface can be:
[0038] Title: Understand the basic concepts of finance in one minute;
[0039] Core copywriting: What is finance? How do banks make money? What is the difference between stocks and funds? What are credit cards?
[0040] The key information extracted from the above text information may include the concept of finance, how banks make money, the difference between stocks and funds, the concept of credit cards, etc.
[0041] S120: Optimize the text information according to a preset knowledge base and the key information to obtain optimized text content.
[0042] In this embodiment, if the input text information involves the financial field, the text information is optimized according to the knowledge base related to finance to obtain optimized text content; the optimized text content includes an optimized title and optimized copy; wherein, the optimized copy includes at least one content display module.
[0043] Taking the financial business scenario as an example, when the core copy is "What is finance? What is the difference between stocks and funds?", the corresponding optimized copy is as follows:
[0044] Module 1: Basic Financial Concepts
[0045] Finance is an economic activity in which market entities use financial instruments to transfer funds from the party with surplus funds to the party with scarce funds.
[0046] Module 2: Stocks and Funds
[0047] Stock: Stock is a portion of a company's ownership. Investors become shareholders by purchasing stock.
[0048] Fund: A fund is an investment tool issued by a fund company. After investors purchase the fund, the fund manager is responsible for the investment.
[0049] Preferably, based on the first prompt word information, the text information is optimized according to a preset knowledge base and the key information to obtain optimized text content; specifically, the development end communicates with the server end through a network, and the developer can customize the first prompt word information in the development interface of the development end, the first prompt word information includes at least one prompt word, and the first prompt word information is used to limit the poster copy editor role and / or the poster copy theme and / or the poster copy audience and / or the poster copy target and / or the poster copy content; for example, the first prompt word information includes a copy editor role prompt word and a copy prompt word, the copy editor role prompt word can be "You are a professional poster copywriter and artificial intelligence expert, who is good at expanding titles and core copy in short descriptions to form detailed poster copy content", and the text prompt word can be "The audience of the poster copy is patients or their families"; the server end can optimize the text information based on the first prompt word information according to the preset knowledge base and the key information to obtain more accurate optimized text content, thereby realizing intelligent and personalized generation of optimized text content.
[0050] Furthermore, if the user is not satisfied with the current optimized text content, he or she may click the "Regenerate" button to generate the corresponding text content regeneration instruction and send it to the server. If the server detects the text content regeneration instruction, it will optimize the text information according to the preset knowledge base and the key information and record the number of optimizations to obtain the new optimized text content for the user to choose.
[0051] Furthermore, if the number of optimizations is greater than a preset optimization threshold, a pop-up window is displayed to prompt the user to re-edit the text information.
[0052] S130: Input the text information into the AIGC algorithm model to generate a target poster header image.
[0053] In this embodiment, the text information is input into the AIGC (AI-Generated Content) algorithm model to generate a target poster header image; the present invention can use AIGC technology to automatically generate an image based on the text information, reducing the time for users to manually search the gallery and adjust the materials, improving the degree of automation of image generation, and being able to quickly generate a visual design with a unified style that conforms to the text context, which is suitable for scenarios such as bank marketing posters and securities promotional posters.
[0054] In one embodiment, the AIGC algorithm model includes a semantic parsing model and an image generation model, and step S130 includes: performing semantic parsing on the text information through the semantic parsing model to obtain a corresponding semantic parsing result; inputting the semantic parsing result into the image generation model to generate at least one poster header image; displaying each of the poster header images on the front-end interface; and using the poster header image selected by the user on the front-end interface as the target poster header image.
[0055] In this embodiment, the AIGC algorithm model includes a semantic parsing model and an image generation model. The text information is semantically parsed by the semantic parsing model to obtain a corresponding semantic parsing result; the semantic parsing result is input into the image generation model to generate at least one poster header image, and the generated poster header image conforms to the visual design of the text context; each of the poster header images is displayed on the front-end interface of the user end; and the poster header image selected by the user on the front-end interface is used as the target poster header image.
[0056] In one embodiment, after displaying each of the poster header images on the front-end interface, the method further includes: if a first regeneration instruction is detected, semantically parsing the text information through the AIGC algorithm model to obtain a new semantic parsing result; inputting the new semantic parsing result into the image generation model to generate at least one new poster header image.
[0057] In this embodiment, at least one poster header image is displayed on the front-end interface of the user end. If the user is not satisfied with the displayed poster header image, he or she may click the "Regenerate" button to generate a corresponding first regeneration instruction and send it to the server end. If the server end detects the first regeneration instruction, it performs semantic analysis on the text information through the AIGC algorithm model to obtain a new semantic analysis result; the new semantic analysis result is input into the image generation model to generate at least one new poster header image for the user to select.
[0058] S140 , extracting a main color tone from the target poster header image according to a preset color extraction algorithm, and converting the main color tone into an RGB value.
[0059] In this embodiment, the main color tone is extracted from the target poster header image according to a preset color picking algorithm, and the main color tone is converted into RGB value; wherein, the color picking algorithm can be a K-Means clustering uniform color picking algorithm.
[0060] S150: Generate a target color scheme based on the RGB values.
[0061] In this embodiment, a target color scheme is generated based on the RGB values, and the primary color of the text, the primary color of the frame, and the background color can be determined according to the target color scheme.
[0062] Preferably, a target color scheme is generated based on the second prompt word information and the RGB value. Specifically, the developer can customize the second prompt word information in the development interface. The second prompt word information is used to limit the designer role. The second prompt word information can be "You are a visual designer who focuses on designing modern and harmonious color schemes and can generate color schemes that conform to contemporary aesthetics based on RGB values." The server can generate a target color scheme based on the RGB value and the second prompt word information from the development end, thereby realizing intelligent and personalized generation of color schemes.
[0063] In one embodiment, step S150 includes: determining corresponding color information based on the RGB value; generating at least one color scheme based on preset color style information and the color information, and displaying each color scheme on the front-end interface; and using the color scheme selected by the user on the front-end interface as the target color scheme.
[0064] In this embodiment, the corresponding color information is determined according to the RGB value; the color information includes four colors: soft gradient (background light gradient color), hard gradient (background dark gradient color), word color (text main color) and box color (frame main color); among them, the background light gradient color is obtained by reducing the brightness or saturation, and the background light gradient color makes the overall vision softer and reduces visual interference; the background dark gradient color is obtained by adjusting the hue or increasing the brightness, and the background dark gradient color can enhance the sense of hierarchy and distinction; the text main color is obtained based on the background color optimized contrast to ensure that the text is clear and readable; the frame main color is obtained by fine-tuning the brightness and is consistent with the overall color scheme to ensure unified visual logic.
[0065] At least one color scheme is generated based on the preset color style information and the color information, and each color scheme is displayed on the front-end interface; the color scheme selected by the user on the front-end interface is used as the target color scheme; wherein, the color style information includes color schemes such as harmonious and elegant, lively contrast and steady and professional style; the harmonious and elegant style is based on the adjacent color matching method, selects adjacent colors on the hue wheel, and creates a soft and smooth visual effect by reducing saturation and contrast, which is suitable for designs that emphasize steady tonality; the lively contrast style is based on the complementary color matching method, uses relative colors on the hue wheel to create strong contrast, and enhances visual impact by increasing brightness and saturation, which is suitable for scenes that need to attract attention, such as marketing promotion; the steady and professional style adopts the monochrome color matching method, adjusts brightness and saturation within the same hue range, enhances visual consistency, and makes the overall presentation more professional and steady, which is suitable for scenes that emphasize trust, such as banking and investment.
[0066] Specifically, the color scheme is displayed in the form of color blocks on the front-end interface, and the color style and RGB values are marked; users can click on the color scheme to preview the large image effect to help determine whether the color scheme meets expectations.
[0067] Specifically, the color scheme generated by the color picking algorithm (K-Means clustering uniform color picking algorithm) will be encapsulated in JSON format and transmitted to the user's front-end interface through the API (Application Programming Interface). The color scheme is displayed in the form of color blocks for users to view and select. Among them, the JSON data contains detailed information for each color scheme, including background light gradient color (soft gradient), background dark gradient color (hard gradient), text primary color (word color) and box primary color (box color), and will be accompanied by a template version number to distinguish different styles. For example:
[0068]
[0069] In one embodiment, after displaying each of the color schemes on the front-end interface, it also includes: if a second regeneration instruction is detected, determining new color information based on the RGB value; generating at least one new color scheme based on the preset color style information and the new color information, and displaying each of the new color schemes on the front-end interface.
[0070] In this embodiment, if the user is not satisfied with the displayed color scheme, he or she may click the "Regenerate" button to generate a corresponding second regeneration instruction and send it to the server. If the server detects the second regeneration instruction, it determines the new color information based on the RGB value; generates at least one new color scheme based on the preset color style information and the new color information, and displays each new color scheme on the front-end interface for user selection.
[0071] S160: Generate at least one poster template according to the preset template list, the optimized text content, the target poster header image and the target color scheme, and display each poster template on the front-end interface.
[0072] In this embodiment, at least one poster template is generated based on a preset template list, the optimized text content, the target poster header image, and the target color scheme, and each poster template is displayed on the front-end interface; wherein the template list includes multiple template layout schemes, such as left-right structure, top-bottom structure, text box title centered, text box title left-aligned, gray background text box left-aligned, etc. The present invention can meet the diverse needs of users by setting multiple template layout schemes.
[0073] S170: Use the poster template selected by the user on the front-end interface as the target poster.
[0074] In this embodiment, the front-end interface displays different poster templates in a card-style layout. Each poster template contains the target poster header image and target color scheme previously selected by the user. The system automatically fills the text information into the corresponding area and adjusts the font size, alignment and white space according to different layout rules. Users can compare poster templates with different typesetting schemes through the card-style layout and select the favorite poster template as the target poster.
[0075] In one embodiment, step S170 includes: using the poster template selected by the user on the front-end interface as the initial poster; wherein the initial poster includes at least one content display module; performing keyword extraction on the text content in the content display module to obtain corresponding core keywords; generating at least one illustration based on the core keywords and the RGB values, and displaying each of the illustrations on the front-end interface; using the illustration selected by the user on the front-end interface as the target illustration and adding it to the corresponding content display module to obtain a target poster.
[0076] In this embodiment, the poster template selected by the user on the front-end interface is used as the initial poster; wherein, the initial poster includes at least one content display module; keyword extraction is performed on the text content in the content display module to obtain corresponding core keywords; illustrations matching the core keywords are generated in combination with the visual language of related industries (such as the financial industry); for example, when the core keyword is "smart investment", illustrations such as line trend charts and digital currency symbols are generated; at the same time, in order to make the generated illustrations consistent with the overall style, the hue, brightness and saturation of each illustration are adjusted according to the RGB value; each of the illustrations is displayed on the front-end interface; the illustration selected by the user on the front-end interface is used as the target illustration and added to the corresponding content display module to obtain the target poster.
[0077] After displaying each of the illustrations on the front-end interface, the method further includes: if the user is not satisfied with the currently displayed illustration, the user can click the "Regenerate" button to generate a corresponding fourth regeneration instruction and send it to the server. If the server detects the fourth regeneration instruction, it will generate at least one new illustration based on the core keyword and the RGB value, and display each of the new illustrations on the front-end interface for user selection.
[0078] Furthermore, during the poster design process, users can return to the previous steps at any time to readjust the color scheme or poster header image or text information.
[0079] After the user determines the target poster, the server will automatically synthesize the complete poster and provide a high-definition version for download; the target poster can be used online, such as social media promotion, digital advertising, etc., while ensuring consistent display effects on different terminal devices.
[0080] To sum up, the embodiment of the present invention can generate a target poster header image through the AIGC algorithm model, extract the main color tone from the target poster header image using the color picking algorithm, and generate a target color scheme. It can effectively solve the problems of color inconsistency and inefficient template adaptation in the traditional poster design process, improve visual consistency and poster generation efficiency, and enable users to quickly generate high-quality posters without professional design skills.
[0081] Figure 2 Schematic block diagram of a poster generation device based on AIGC provided by an embodiment of the present invention. Figure 2 As shown, corresponding to the above poster generation method based on AIGC, the present invention also provides a poster generation device based on AIGC, the device is configured as follows Figure 4In an application environment, the user terminal communicates with the server terminal through a network. The server terminal can receive text information input by the user through the user terminal, perform key information extraction operations on the text information, and obtain corresponding target key information; optimize the text information according to a preset knowledge base and the key information to obtain optimized text content; input the text information into the AIGC algorithm model to generate a target poster header image; extract the main color tone from the target poster header image according to a preset color extraction algorithm, and convert the main color tone into RGB values; generate a target color scheme based on the RGB values; generate at least one poster template according to a preset template list, the optimized text content, the target poster header image and the target color scheme, and display each of the poster templates on the front-end interface of the user terminal; and use the poster template selected by the user on the front-end interface as the target poster. The embodiment of the present invention can generate a target poster header image through the AIGC algorithm model, and use the color extraction algorithm to extract the main color from the target poster header image to generate a target color scheme. It can effectively solve the problems of color inconsistency and inefficient template adaptation in the traditional poster design process, improve visual consistency and poster generation efficiency, and enable users to quickly generate high-quality posters without professional design skills. Among them, the user end can be but not limited to various personal computers, laptops, smart phones, tablets and portable wearable devices. The server end can be implemented with an independent server or a server cluster composed of multiple servers. Specifically, please refer to Figure 2 , the AIGC-based poster generation device 700 includes:
[0082] The extraction unit 701 is used to perform a key information extraction operation on the text information input by the user to obtain the corresponding target key information;
[0083] An optimization unit 702 is configured to optimize the text information based on a preset knowledge base and the key information to obtain optimized text content;
[0084] The first generating unit 703 is configured to input the text information into an AIGC algorithm model to generate a target poster header image;
[0085] The conversion unit 704 is configured to extract a main color tone from the target poster header image according to a preset color extraction algorithm, and convert the main color tone into an RGB value;
[0086] A second generating unit 705 is configured to generate a target color scheme based on the RGB values;
[0087] The third generating unit 706 is configured to generate at least one poster template according to the preset template list, the optimized text content, the target poster header image, and the target color scheme, and display each poster template on the front-end interface;
[0088] The determination unit 707 is configured to use the poster template selected by the user on the front-end interface as the target poster.
[0089] In some embodiments, the AIGC algorithm model includes a semantic parsing model and an image generation model. When the first generation unit 703 inputs the text information into the AIGC algorithm model to generate a target poster header image, it is specifically configured to:
[0090] Performing semantic parsing on the text information using the semantic parsing model to obtain corresponding semantic parsing results;
[0091] Inputting the semantic parsing result into the image generation model to generate at least one poster header image;
[0092] Displaying each of the poster header images on the front-end interface;
[0093] The poster header image selected by the user on the front-end interface is used as the target poster header image.
[0094] In some embodiments, after executing the step of displaying each of the poster header images on the front-end interface, the first generating unit 703 is further configured to:
[0095] If a first regeneration instruction is detected, semantically parsing the text information using the AIGC algorithm model to obtain a new semantic parsing result;
[0096] The new semantic parsing result is input into the image generation model to generate at least one new poster header image.
[0097] In some embodiments, when executing the step of generating a target color scheme based on the RGB values, the second generating unit 705 is specifically configured to:
[0098] Determine corresponding color information according to the RGB value;
[0099] Generate at least one color scheme based on the preset color matching style information and the color information, and display each color scheme on the front-end interface;
[0100] The color scheme selected by the user in the front-end interface is used as the target color scheme.
[0101] In some embodiments, after executing the step of displaying each color scheme on the front-end interface, the second generating unit 705 is further configured to:
[0102] If a second regeneration instruction is detected, determining new color information according to the RGB values;
[0103] At least one new color scheme is generated according to the preset color matching style information and the new color information, and each new color scheme is displayed on the front-end interface.
[0104] In some embodiments, when executing the step of using the poster template selected by the user on the front-end interface as the target poster, the determining unit 707 is specifically configured to:
[0105] The poster template selected by the user on the front-end interface is used as the initial poster; wherein the initial poster includes at least one content display module;
[0106] Extract keywords from the text content in the content display module to obtain corresponding core keywords;
[0107] Generate at least one illustration based on the core keyword and the RGB value, and display each illustration on the front-end interface;
[0108] The illustration selected by the user in the front-end interface is used as the target illustration and added to the corresponding content display module to produce the target poster.
[0109] In some embodiments, after executing the step of displaying each poster template on the front-end interface, the third generating unit 706 is further configured to:
[0110] If a third regeneration instruction is detected, at least one new poster template is generated based on the preset backup template list, the optimized text content, the target poster header image and the target color scheme, and each new poster template is displayed on the front-end interface.
[0111] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned AIGC-based poster generation device and each unit can refer to the corresponding description in the aforementioned method embodiment. For the convenience and brevity of description, it will not be repeated here.
[0112] The above poster generation device based on AIGC can be implemented in the form of a computer program. The computer program can be used in Figure 3 Runs on the electronic devices shown.
[0113] See also Figure 3 , Figure 3 8 is a schematic block diagram of an electronic device provided by an embodiment of the present invention. The electronic device 800 can be a terminal or a server, wherein the terminal can be an electronic device with communication functions. The server can be a standalone server or a server cluster consisting of multiple servers.
[0114] See Figure 3The electronic device 800 includes a processor 802 , a memory, and a network interface 805 connected via a system bus 801 , wherein the memory may include a non-volatile storage medium 803 and an internal memory 804 .
[0115] The non-volatile storage medium 803 can store an operating system 8031 and a computer program 8032. The computer program 8032 includes program instructions, which, when executed, can enable the processor 802 to execute a poster generation method based on AIGC.
[0116] The processor 802 is used to provide computing and control capabilities to support the operation of the entire electronic device 800.
[0117] The internal memory 804 provides an environment for the operation of the computer program 8032 in the non-volatile storage medium 803. When the computer program 8032 is executed by the processor 802, the processor 802 can execute a poster generation method based on AIGC.
[0118] The network interface 805 is used to communicate with other devices over the network. Figure 3 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention, and does not constitute a limitation on the electronic device 800 to which the solution of the present invention is applied. The specific electronic device 800 may include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.
[0119] The processor 802 is configured to execute a computer program 8032 stored in the memory to implement the following steps:
[0120] Perform key information extraction on the text information input by the user to obtain the corresponding target key information;
[0121] Optimizing the text information according to the preset knowledge base and the key information to obtain optimized text content;
[0122] Input the text information into the AIGC algorithm model to generate a target poster header image;
[0123] Extracting the main color from the target poster header image according to a preset color extraction algorithm, and converting the main color into RGB values;
[0124] generating a target color scheme based on the RGB values;
[0125] Generate at least one poster template based on the preset template list, the optimized text content, the target poster header image, and the target color scheme, and display each poster template on the front-end interface;
[0126] The poster template selected by the user in the front-end interface is used as the target poster.
[0127] In some embodiments, the AIGC algorithm model includes a semantic parsing model and an image generation model. When the processor 802 inputs the text information into the AIGC algorithm model to generate a target poster header image, the processor 802 specifically implements the following steps:
[0128] Performing semantic parsing on the text information using the semantic parsing model to obtain corresponding semantic parsing results;
[0129] Inputting the semantic parsing result into the image generation model to generate at least one poster header image;
[0130] Displaying each of the poster header images on the front-end interface;
[0131] The poster header image selected by the user on the front-end interface is used as the target poster header image.
[0132] In some embodiments, after implementing the step of displaying each of the poster header images on the front-end interface, the processor 802 further implements the following steps:
[0133] If a first regeneration instruction is detected, semantically parsing the text information using the AIGC algorithm model to obtain a new semantic parsing result;
[0134] The new semantic parsing result is input into the image generation model to generate at least one new poster header image. In some embodiments, when the processor 802 implements the step of generating a target color scheme based on the RGB values, it specifically implements the following steps:
[0135] Determine corresponding color information according to the RGB value;
[0136] Generate at least one color scheme based on the preset color matching style information and the color information, and display each color scheme on the front-end interface;
[0137] The color scheme selected by the user in the front-end interface is used as the target color scheme.
[0138] In some embodiments, after implementing the step of displaying each color scheme on the front-end interface, the processor 802 further implements the following steps:
[0139] If a second regeneration instruction is detected, determining new color information according to the RGB values;
[0140] At least one new color scheme is generated according to the preset color matching style information and the new color information, and each new color scheme is displayed on the front-end interface.
[0141] In some embodiments, when implementing the step of using the poster template selected by the user on the front-end interface as the target poster, the processor 802 specifically implements the following steps:
[0142] The poster template selected by the user on the front-end interface is used as the initial poster; wherein the initial poster includes at least one content display module;
[0143] Extract keywords from the text content in the content display module to obtain corresponding core keywords;
[0144] Generate at least one illustration based on the core keyword and the RGB value, and display each illustration on the front-end interface;
[0145] The illustration selected by the user in the front-end interface is used as the target illustration and added to the corresponding content display module to produce the target poster.
[0146] In some embodiments, after implementing the step of displaying each poster template on the front-end interface, the processor 802 further implements the following steps:
[0147] If a third regeneration instruction is detected, at least one new poster template is generated based on the preset backup template list, the optimized text content, the target poster header image and the target color scheme, and each new poster template is displayed on the front-end interface.
[0148] It should be understood that in the embodiment of the present invention, the processor 802 may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0149] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.
[0150] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor performs the following steps:
[0151] Perform key information extraction on the text information input by the user to obtain the corresponding target key information;
[0152] Optimizing the text information according to the preset knowledge base and the key information to obtain optimized text content;
[0153] Input the text information into the AIGC algorithm model to generate a target poster header image;
[0154] Extracting the main color from the target poster header image according to a preset color extraction algorithm, and converting the main color into RGB values;
[0155] generating a target color scheme based on the RGB values;
[0156] Generate at least one poster template based on the preset template list, the optimized text content, the target poster header image, and the target color scheme, and display each poster template on the front-end interface;
[0157] The poster template selected by the user in the front-end interface is used as the target poster.
[0158] In one embodiment, the AIGC algorithm model includes a semantic parsing model and an image generation model. When the processor executes the program instructions to input the text information into the AIGC algorithm model and generate the target poster header image, the processor specifically implements the following steps:
[0159] Performing semantic parsing on the text information using the semantic parsing model to obtain corresponding semantic parsing results;
[0160] Inputting the semantic parsing result into the image generation model to generate at least one poster header image;
[0161] Displaying each of the poster header images on the front-end interface;
[0162] The poster header image selected by the user on the front-end interface is used as the target poster header image.
[0163] In one embodiment, after the processor executes the program instructions to implement the step of displaying each of the poster header images on the front-end interface, it further implements the following steps:
[0164] If a first regeneration instruction is detected, semantically parsing the text information using the AIGC algorithm model to obtain a new semantic parsing result;
[0165] The new semantic parsing result is input into the image generation model to generate at least one new poster header image.
[0166] In one embodiment, when the processor executes the program instructions to implement the step of generating a target color scheme based on the RGB values, the processor specifically implements the following steps:
[0167] Determine corresponding color information according to the RGB value;
[0168] Generate at least one color scheme based on the preset color matching style information and the color information, and display each color scheme on the front-end interface;
[0169] The color scheme selected by the user in the front-end interface is used as the target color scheme.
[0170] In one embodiment, after the processor executes the program instructions to display each color scheme on the front-end interface, it further implements the following steps:
[0171] If a second regeneration instruction is detected, determining new color information according to the RGB values;
[0172] At least one new color scheme is generated according to the preset color matching style information and the new color information, and each new color scheme is displayed on the front-end interface.
[0173] In one embodiment, when the processor executes the program instructions to implement the step of using the poster template selected by the user on the front-end interface as the target poster, the processor specifically implements the following steps:
[0174] The poster template selected by the user on the front-end interface is used as the initial poster; wherein the initial poster includes at least one content display module;
[0175] Extract keywords from the text content in the content display module to obtain corresponding core keywords;
[0176] Generate at least one illustration based on the core keyword and the RGB value, and display each illustration on the front-end interface;
[0177] The illustration selected by the user in the front-end interface is used as the target illustration and added to the corresponding content display module to produce the target poster.
[0178] In one embodiment, after the processor executes the program instructions to implement the step of displaying each of the poster templates on the front-end interface, it further implements the following steps:
[0179] If a third regeneration instruction is detected, at least one new poster template is generated based on the preset backup template list, the optimized text content, the target poster header image and the target color scheme, and each new poster template is displayed on the front-end interface.
[0180] The storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.
[0181] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0182] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.
[0183] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.
[0184] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the existing technology, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes a number of instructions for causing an electronic device (such as a personal computer, terminal, or network device) to execute all or part of the steps of the method described in various embodiments of the present invention.
[0185] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A poster generation method based on AIGC, characterized in that: The method comprises: Perform key information extraction on the text information input by the user to obtain the corresponding target key information; Optimizing the text information according to the preset knowledge base and the key information to obtain optimized text content; Input the text information into the AIGC algorithm model to generate a target poster header image; Extracting the main color from the target poster header image according to a preset color extraction algorithm, and converting the main color into RGB values; generating a target color scheme based on the RGB values; Generate at least one poster template based on the preset template list, the optimized text content, the target poster header image, and the target color scheme, and display each poster template on the front-end interface; The poster template selected by the user in the front-end interface is used as the target poster.
2. The poster generation method based on AIGC according to claim 1, characterized in that: The AIGC algorithm model includes a semantic parsing model and an image generation model. Inputting the text information into the AIGC algorithm model to generate a target poster header image includes: Performing semantic parsing on the text information using the semantic parsing model to obtain corresponding semantic parsing results; Inputting the semantic parsing result into the image generation model to generate at least one poster header image; Displaying each of the poster header images on the front-end interface; The poster header image selected by the user on the front-end interface is used as the target poster header image.
3. The poster generation method based on AIGC according to claim 2, characterized in that: After displaying the poster header images on the front-end interface, the method further includes: If a first regeneration instruction is detected, semantically parsing the text information using the AIGC algorithm model to obtain a new semantic parsing result; The new semantic parsing result is input into the image generation model to generate at least one new poster header image.
4. The poster generation method based on AIGC according to claim 1, characterized in that: Generating a target color scheme based on the RGB values includes: Determine corresponding color information according to the RGB value; Generate at least one color scheme based on the preset color matching style information and the color information, and display each color scheme on the front-end interface; The color scheme selected by the user in the front-end interface is used as the target color scheme.
5. The poster generation method based on AIGC according to claim 4, characterized in that: After displaying each color scheme on the front-end interface, the method further includes: If a second regeneration instruction is detected, determining new color information according to the RGB values; At least one new color scheme is generated according to the preset color matching style information and the new color information, and each new color scheme is displayed on the front-end interface.
6. The poster generation method based on AIGC according to claim 1, characterized in that: The method of using the poster template selected by the user on the front-end interface as the target poster includes: The poster template selected by the user on the front-end interface is used as the initial poster; wherein the initial poster includes at least one content display module; Extract keywords from the text content in the content display module to obtain corresponding core keywords; Generate at least one illustration based on the core keyword and the RGB value, and display each illustration on the front-end interface; The illustration selected by the user in the front-end interface is used as the target illustration and added to the corresponding content display module to produce the target poster.
7. The poster generation method based on AIGC according to claim 1, characterized in that: After displaying each of the poster templates on the front-end interface, the process further includes: If a third regeneration instruction is detected, at least one new poster template is generated based on the preset backup template list, the optimized text content, the target poster header image and the target color scheme, and each new poster template is displayed on the front-end interface.
8. A poster generation device based on AIGC, characterized in that: The device comprises: An extraction unit, configured to perform a key information extraction operation on the text information input by the user to obtain the corresponding target key information; An optimization unit, configured to optimize the text information according to a preset knowledge base and the key information to obtain optimized text content; A first generating unit is configured to input the text information into an AIGC algorithm model to generate a target poster header image; A conversion unit, configured to extract a main color tone from the target poster header image according to a preset color extraction algorithm, and convert the main color tone into an RGB value; A second generating unit, configured to generate a target color scheme based on the RGB values; A third generating unit is configured to generate at least one poster template according to a preset template list, the optimized text content, the target poster header image, and the target color scheme, and to display each poster template on a front-end interface; The determination unit is used to use the poster template selected by the user on the front-end interface as the target poster.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the poster generation method based on AIGC according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor executes the poster generation method based on AIGC according to any one of claims 1 to 7.