Poster design method and device, equipment, storage medium and product
By obtaining poster material data, inputting it into preset image templates, editing preset big model and adjusting business scenarios, the problem of AI intelligent generation of poster images requires designers to integrate later, and the efficiency of poster design is improved.
Patent Information
- Application Number
- CN202411502124.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-03-11
AI Technical Summary
In the prior art, AI intelligently generated poster pictures are usually used as basic elements, and designers require post-integration and innovation, resulting in increased work repetition and reduced poster design efficiency.
By obtaining poster material data, input it into the preset image template to generate the initial poster picture, and then edit the preset big model to generate the workflow file. Finally, adjust the workflow file according to the business scenario to obtain the target poster file.
It reduces the cumbersome process of secondary creation by designers, improves poster design efficiency, and can quickly generate poster files that meet needs.
Smart Images

Figure CN119600150A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of visual communication design, and in particular to a poster design method, device, equipment, storage medium and computer program product. Background Art
[0002] In daily life, posters are widely used in advertising marketing, corporate promotion, etc. At present, with the popularization of ChatGPT, the field of artificial intelligence generated content (AIGC) has ushered in innovation. Today, Internet users have widely experienced the power of AIGC. AI intelligent generation of pictures is one of the very important applications. Only by entering a simple prompt word, poster designers can quickly generate design materials and other tasks. The current AI tools are of various types and can meet most of the needs of generating pictures, but they rely on precise command input. Pictures generated by AI intelligence are usually used as basic elements, and designers are still required to carry out later integration and innovation. This has increased the repetitiveness of work to a certain extent and reduced the efficiency of poster design.
[0003] Therefore, how to improve the efficiency of poster design is a problem that needs to be solved urgently.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a poster design method, device, equipment, storage medium and computer program product, aiming to solve the technical problem in related technologies that pictures generated by AI intelligence are usually used as basic elements and require designers to perform post-integration and innovation, which to a certain extent increases the repetitiveness of work and reduces the efficiency of poster design.
[0006] To achieve the above objectives, the present application proposes a poster design method, which includes:
[0007] Get poster material data;
[0008] Input the poster material data into a preset picture template to generate an initial poster picture;
[0009] Edit the initial poster image by using a preset large model to obtain a workflow file;
[0010] The workflow file is formatted and adjusted to obtain a target poster file.
[0011] In one embodiment, the step of inputting the poster material data into a preset picture template to generate an initial poster picture includes:
[0012] Inputting the poster material data into a preset picture template, and extracting the material picture and material text in the poster material data based on the preset picture template;
[0013] Adjusting the styles of the material pictures and the material texts according to the preset required styles, and after the adjustment is completed, comparing the material pictures and the material texts with the poster required standards to obtain a comparison result;
[0014] If the comparison result shows that the material picture and the material text meet the poster requirement standard, the material text and the material picture are integrated to obtain an initial poster picture.
[0015] In one embodiment, the step of editing the initial poster image by using a preset large model to obtain a workflow file includes:
[0016] Get poster requirement language data;
[0017] Based on the preset macro model, converting the poster demand language data into feature data;
[0018] The feature data is divided into positive condition data and negative condition data, and based on the positive condition data and the negative condition data, the initial poster image is edited at different processing nodes to obtain a workflow file.
[0019] In one embodiment, the step of adjusting the format of the workflow file to obtain a target poster file includes:
[0020] Call the business rules corresponding to the current business scenario;
[0021] Based on the business rules, the workflow file is formatted and adjusted to obtain a target poster file.
[0022] In one embodiment, the business rules include framework adjustment rules, and the step of adjusting the form of the workflow file based on the business rules to obtain the target poster file includes:
[0023] When it is determined that the frame adjustment rule is a selection box adjustment rule, adjusting the selection box size of the workflow file to obtain poster files of different sizes;
[0024] According to the device to which the user belongs, selecting a target poster file from the poster files;
[0025] When it is determined that the frame adjustment rule is an input box adjustment rule, extracting the poster text received by the preset input box;
[0026] Positive prompt words and negative prompt words are extracted from the poster text, and the workflow file is adjusted in form according to the positive prompt words and negative prompt words to obtain a target poster file.
[0027] In one embodiment, the business rules further include picture adjustment rules, and the step of adjusting the form of the workflow file based on the business rules to obtain the target poster file further includes:
[0028] Receive image demand data uploaded by users;
[0029] Based on the picture adjustment rule and the picture requirement data, the workflow file is adjusted to obtain a first poster file;
[0030] When it is determined that the first poster file needs to be processed with an image mask, the image mask portion is processed according to preset customization requirements to obtain a target poster file.
[0031] In addition, to achieve the above purpose, the present application also proposes a poster design device, which includes:
[0032] An acquisition module is used to acquire poster material data;
[0033] A generation module, used for inputting the poster material data into a preset picture template to generate an initial poster picture;
[0034] An editing module, used to edit the initial poster image through a preset large model to obtain a workflow file;
[0035] The adjustment module is used to adjust the form of the workflow file to obtain a target poster file.
[0036] In addition, to achieve the above objectives, the present application also proposes a poster design device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the poster design method described above.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the poster design method described above are implemented.
[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the poster design method described above are implemented.
[0039] The present application proposes a poster design method, device, equipment, storage medium and computer program product. The present application obtains poster material data, inputs the poster material data into a preset image template, processes the poster material data through the preset image template to generate an initial poster image, and then edits the initial poster image through a preset large model to generate a workflow file. Finally, the workflow file is adjusted in form according to different business scenarios to obtain the required target poster file. In the poster design process, the poster material data is processed by jointly processing the image template and the preset large model, the poster is designed from multiple aspects, and the obtained workflow file is adjusted in form to obtain a poster file that meets the requirements, thereby reducing the cumbersome process of secondary creation required by designers and improving the design efficiency of posters. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flowchart of the first embodiment of the poster design method of this application is provided;
[0043] Figure 2 This is a schematic diagram of the structure of the preset image template involved in the poster design method of this application;
[0044] Figure 3 A schematic diagram of the workflow file generation process involved in the poster design method of this application;
[0045] Figure 4 A flowchart of the second embodiment of the poster design method of this application is provided;
[0046] Figure 5 A flowchart of adjusting the workflow file through business rules for the poster design method of this application;
[0047] Figure 6 This is a schematic diagram of the module structure of the poster design device according to an embodiment of the present application;
[0048] Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the poster design method in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] The main solutions of the embodiments of this application are:
[0053] Get poster material data;
[0054] Input the poster material data into a preset picture template to generate an initial poster picture;
[0055] Edit the initial poster image by using a preset large model to obtain a workflow file;
[0056] The workflow file is formatted and adjusted to obtain a target poster file.
[0057] In existing technologies, images generated by AI intelligence are usually used as basic elements and require designers to perform post-integration and innovation. This increases the repetitiveness of work to a certain extent and reduces the efficiency of poster design.
[0058] At present, similar technologies have the following defects:
[0059] (1) In the traditional poster creation process, companies often need to hire full-time designers, which not only involves significant labor costs, but also consumes a lot of time and energy. For small companies, such expenses may constitute a major pressure, while for large companies, despite relatively abundant resources, it is still difficult to achieve efficient and flexible poster design to meet the ever-changing marketing needs.
[0060] (2) The images produced by AI usually still need to be post-processed by professional designers to complete the poster design. This causes repetitive work to some extent, and the design results are difficult to reuse, thus wasting precious resources and time.
[0061] (3) AI intelligent design relies on precise input instructions. Any ambiguous description may cause the generated image to deviate from expectations. In different business environments, it is crucial to maintain the consistency of poster style. However, under current technical conditions, it is challenging to generate appropriate business posters relying solely on prompts.
[0062] (4) The rapid iteration of AIGC technology has brought new problems. Existing technologies may not be able to use new technologies in business in a timely manner and require a certain development cycle. This has, to a certain extent, affected the company's technology update speed and ability to respond to market changes.
[0063] The present application proposes a poster design method, device, equipment, storage medium and computer program product. The present application obtains poster material data, inputs the poster material data into a preset image template, processes the poster material data through the preset image template to generate an initial poster image, and then edits the initial poster image through a preset large model to generate a workflow file. Finally, the workflow file is adjusted in form according to different business scenarios to obtain the required target poster file. In the poster design process, the poster material data is processed by jointly processing the image template and the preset large model, the poster is designed from multiple aspects, and finally the obtained workflow file is adjusted to obtain a poster file that meets the requirements, thereby reducing the cumbersome process of secondary creation required by designers and improving the design efficiency of posters.
[0064] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a poster design device, etc. The following takes a poster design device as an example to illustrate this embodiment and the following embodiments.
[0065] Based on this, the embodiment of the present application provides a poster design method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the poster design method of this application.
[0066] In this embodiment, the poster design method includes steps S10 to S40:
[0067] Step S10, obtaining poster material data;
[0068] It should be noted that poster material data can be various poster element files such as text, pictures and documents that can be used to make posters. The purpose of poster design is to integrate text and pictures in the required style to obtain posters required for business promotion, thereby meeting business needs.
[0069] It should be noted that the method disclosed in the embodiment of the present application is applied to a poster design system, which includes: an image editing module, a workflow module and a poster generation module. Among these modules, the image editing module is used to edit poster images, the workflow module is used to use an AI model to receive language instructions issued by users based on poster requirements, and generate images that meet the requirements according to the language instructions; the poster generation module is used to adjust the style of the poster file according to preset business rules, and finally export the required poster file.
[0070] Step S20, inputting the poster material data into a preset picture template to generate an initial poster picture;
[0071] It should be noted that the preset image templates are set in the image editor. The main functions of the image editor module include poster style design, template saving, poster export, and use of existing templates.
[0072] It should be noted that the preset image template can be a blank template or a JSON template containing various style information. JSON (JavaScript Object Notation) is a lightweight data exchange format that is easy for people to read and write, and easy for machines to parse and generate. By inputting the poster material data into the preset image template, the poster material data is processed according to the style designed in the template to obtain the initial poster image.
[0073] It should be noted that the initial poster image is a preliminarily generated poster image. The initial poster image generated by the preset image template may not necessarily meet user needs and needs to be adjusted through the workflow module and the poster generation module.
[0074] In a feasible implementation manner, the step S20 of inputting the poster material data into a preset picture template to generate an initial poster picture includes:
[0075] Inputting the poster material data into a preset picture template, and extracting the material picture and material text in the poster material data based on the preset picture template;
[0076] It should be noted that after the poster material data is input into the preset image template, the material images and material text in the poster material data are extracted through the preset image template, which facilitates the subsequent integration of these material images and material text, as well as style adjustment, to obtain the required poster image.
[0077] Adjusting the styles of the material pictures and the material texts according to the preset required styles, and after the adjustment is completed, comparing the material pictures and the material texts with the poster required standards to obtain a comparison result;
[0078] It should be noted that the preset demand style corresponds to the poster style in the preset picture template. When the preset picture template is a blank template, the poster copy involves the poster picture according to the poster size required in the preset demand style. When the preset picture template is an already set picture template, the required poster picture can be directly exported.
[0079] It should be noted that the poster requirement standard can be a picture size standard or a text position standard. For example, the picture size standard can be 10cm×10cm, or it can be other standards, without specific limitation.
[0080] It should be noted that the comparison result may be that the material image and the material text meet the poster requirement standards or do not meet the poster requirement standards.
[0081] If the comparison result shows that the material picture and the material text meet the poster requirement standard, the material text and the material picture are integrated to obtain an initial poster picture.
[0082] It should be noted that when the material pictures and material texts meet the standards, after the material texts and material pictures are integrated, the integration process can be to superimpose the texts on the corresponding positions of the pictures to obtain the required initial poster picture.
[0083] Specifically, the structural diagram of the preset picture template is as follows: Figure 2 As shown, in the preset image template, there are clipping paths and array categories. The clipping paths mainly include adjustments to the image width, image height, and background color, and others include adjustments to the height and width of the text. After the required style adjustments are completed, the initial poster image is output.
[0084] Step S30, editing the initial poster image by using a preset large model to obtain a workflow file;
[0085] It should be noted that the preset large model can be a computer vision large model. The editing process of the initial poster image is executed in the workflow module. The main function of the workflow module is to design the process of AI intelligent image generation. The received user language is converted into feature data recognizable by the model through the preset large model. The initial poster image is edited through the positive or negative conditions contained in the feature data to obtain the required workflow file.
[0086] It should be noted that the workflow module is designed using the ComfyUI editor, which has a simple and flexible interface, supports various third-party plug-ins, and can customize the image generation process so that the AI-generated images are in line with expectations. In addition, most of AIGC's new drawing technologies will generally support ComfyUI within a few days, which can achieve the ability of AIGC's new technology to adapt quickly.
[0087] Specifically, ComfyUI is a node-based, steadily spreading graphical user interface (GUI) for image generation and management workflows, which builds image generation workflows by combining different modules together. Here are some detailed introductions to ComfyUI:
[0088] Definition and Features: ComfyUI is a node-based GUI that provides a more intuitive and flexible way to operate and manage the generation process for Stable Diffusion. It allows users to build image generation workflows by linking different blocks (called nodes), which can be loading checkpoint models, input prompts, specifying samplers, etc.
[0089] Installation and configuration: Installing ComfyUI requires a certain technical foundation, including downloading the integrated package, unzipping it to a suitable location, configuring the model, etc. For beginners, it may take some time to get familiar with and master it.
[0090] The main functions include: Text to Image: ComfyUI supports generating images from text descriptions, which is one of its most basic functions. Users can guide the model to generate images that match the description by entering prompt words.
[0091] Image to Image: In addition to text to image, ComfyUI also supports image to image conversion, that is, users can upload a picture as a basis, and then generate a new image by modifying the prompt word or adjusting other parameters.
[0092] SDXL workflow: ComfyUI also supports the SDXL (Stable Diffusion XL) workflow, which is a more advanced image generation technology that can produce higher quality and more realistic images.
[0093] Custom node management: ComfyUI Manager allows users to manage custom nodes in the GUI, which enables users to add or delete specific functional modules according to their needs.
[0094] Impact Pack: Impact Pack is a collection of useful ComfyUI nodes, which provides users with more tools and options to extend the functionality of ComfyUI.
[0095] In a feasible implementation manner, the step S30 of editing the initial poster image by using a preset large model to obtain a workflow file includes:
[0096] Get poster requirement language data;
[0097] Based on the preset macro model, converting the poster demand language data into feature data;
[0098] It should be noted that the poster requirement language data may be a language instruction uploaded by the user. After the workflow module receives the uploaded language instruction, the poster requirement language data is converted into feature data that can be recognized by the model.
[0099] The feature data is divided into positive condition data and negative condition data, and based on the positive condition data and the negative condition data, the initial poster image is edited at different processing nodes to obtain a workflow file.
[0100] It should be noted that positive conditional data can be conditions that are expected to appear or be met in a specific situation or task. These conditions are usually positive and favorable, and can promote the achievement of goals or the solution of problems. In the field of image generation, positive conditions tell the sampler what elements to contain in the generated image through instructions. For example, in the process of text-to-image generation, users can specify what should be contained in the generated image by entering specific prompt words (such as "sunny beach" or "cute kitten"). These prompt words serve as positive conditions to guide the model to generate images that meet expectations.
[0101] It should be noted that negative conditional data can be conditions that are not desired or should be avoided in a specific situation or task. These conditions are usually negative and unfavorable and may hinder the achievement of goals or the resolution of problems. In the field of image generation, negative conditions tell the sampler what kind of elements the generated image does not contain through instructions. For example, the user can specify that certain specific objects or scenes (such as "no dark clouds" or "no horror elements") do not want to appear in the generated image to avoid generating images that do not meet expectations. These instructions serve as negative conditions to help the model exclude unwanted content.
[0102] It should be noted that for the two types of conditional data, the initial poster image needs to be edited and processed in parallel at two different processing nodes to obtain a workflow file, wherein the workflow file can be a poster pixel image or a poster image with a certain design style.
[0103] It should be noted that the execution flow chart of the workflow module is as follows Figure 3 As shown by Figure 3It can be seen that by selecting the required large model in the "Checkpoint Loader" node, and then converting human language into a data format that the model can understand through the Clip encoder, two types of conditional data can be generated, flowing to positive conditions and negative conditions respectively. According to the preconditions, the K sampler generates images that meet the requirements by continuously adding noise and denoising. Then, the image in the Latent potential space is converted into a pixel map visible to the naked eye through the VAE decoder, and finally, the workflow file is exported.
[0104] Step S40, adjusting the format of the workflow file to obtain a target poster file.
[0105] It should be noted that different poster files are suitable for different business scenarios. When the business scenarios are different, the workflow file needs to be adaptively adjusted to obtain the required target poster file.
[0106] The present application proposes a poster design method, device, equipment, storage medium and computer program product. The present application obtains poster material data, inputs the poster material data into a preset image template, processes the poster material data through the preset image template to generate an initial poster image, and then edits the initial poster image through a preset large model to generate a workflow file. Finally, the workflow file is adjusted in form according to different business scenarios to obtain the required target poster file. In the poster design process, the poster material data is processed by jointly processing the image template and the preset large model, the poster is designed from multiple aspects, and finally the obtained workflow file is adjusted to obtain a poster file that meets the requirements, thereby reducing the cumbersome process of secondary creation required by designers and improving the design efficiency of posters.
[0107] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 The step S40 of adjusting the form of the workflow file to obtain the target poster file includes steps S41 to S42:
[0108] Step S41, calling the business rules corresponding to the current business scenario;
[0109] It should be noted that this embodiment is mainly applied to the poster generation module, and the main function of the poster generation module is to combine the workflow file and the poster template to generate a poster that can be directly used by the business. According to the differences in different business scenarios, multiple corresponding business rules are formulated.
[0110] Step S42: Based on the business rules, the workflow file is formatted and adjusted to obtain a target poster file.
[0111] It should be noted that the workflow file is adjusted in form through different business rules to obtain the target poster file required by the current business scenario.
[0112] In a feasible implementation manner, the business rules include framework adjustment rules, and the step S42 of adjusting the form of the workflow file based on the business rules to obtain the target poster file includes:
[0113] When it is determined that the frame adjustment rule is a selection box adjustment rule, adjusting the selection box size of the workflow file to obtain poster files of different sizes;
[0114] According to the device to which the user belongs, selecting a target poster file from the poster files;
[0115] It should be noted that the frame adjustment rules include selection box adjustment rules and input box adjustment rules. When the frame adjustment rules are determined to be selection box adjustment rules, through the built-in style workflow, users can choose the built-in style to generate posters of different styles; workflows of different sizes are designed and generated for users to choose, and users can generate posters of different sizes according to different devices (pads, mobile phones, etc.).
[0116] When it is determined that the frame adjustment rule is an input box adjustment rule, extracting the poster text received by the preset input box;
[0117] Positive prompt words and negative prompt words are extracted from the poster text, and the workflow file is adjusted in form according to the positive prompt words and negative prompt words to obtain a target poster file.
[0118] It should be noted that the input box adjustment rules are mainly used to generate the corresponding poster file based on the poster text instructions in the input box. In the process of generating the poster file, the various prompt words in the poster text need to be divided. Since there may be conflicts between the positive prompt words and the reverse prompt words, they need to be adjusted in form separately to generate the required target poster file.
[0119] In a feasible implementation manner, the business rules further include picture adjustment rules, and the step S42 of adjusting the form of the workflow file based on the business rules to obtain the target poster file further includes:
[0120] Receive image demand data uploaded by users;
[0121] Based on the picture adjustment rule and the picture requirement data, the workflow file is adjusted to obtain a first poster file;
[0122] It should be noted that the image adjustment rules are rules for adjusting images, and are mainly used in the workflow of image generation. The image requirement data uploaded by the user can be image materials, or images with a style similar to the target poster file. Based on the image requirement data, the workflow file can be adjusted through image adjustment rules to make the generated poster file suitable for more business scenarios.
[0123] It should be noted that the first poster file is a poster image generated after style adjustment is performed based on the material image.
[0124] When it is determined that the first poster file needs to be processed with an image mask, the image mask portion is processed according to preset customization requirements to obtain a target poster file.
[0125] It should be noted that the preset customization requirement may be that a certain area of the image needs to be masked or the transparency needs to be changed. According to the customization requirement, the first poster file is masked to obtain a target poster file.
[0126] It should be noted that image masking is a common technique in web design and image processing, which changes the visual effect of an image by covering it with a transparent, semi-transparent or patterned layer. When it is determined that the first poster file needs to be masked, the masking process can be performed by controlling the transparency of the element, setting the background image of the element, and drawing a graphic to generate a target poster file.
[0127] Specifically, the flowchart of adjusting the workflow file through business rules is as follows: Figure 5 As shown, the workflow file is processed according to these rules, which helps users better understand AI intelligent image generation and helps users get started quickly. Then, the workflow file is used in combination with the poster template, and users can directly modify the template's images, text, and other content. If the user is not satisfied with the poster, they can continue to jump to the image editor for fine-tuning. From then on, the poster design process is completed.
[0128] In this embodiment, the workflow file is adjusted in form according to different business scenarios, so that the generated poster file can be quickly adjusted for various work scenarios, thereby reducing the poster design time.
[0129] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the poster design method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0130] This application also provides a poster design device, please refer to Figure 6 , the poster design device comprises:
[0131] An acquisition module 10 is used to acquire poster material data;
[0132] A generating module 20, for inputting the poster material data into a preset picture template to generate an initial poster picture;
[0133] An editing module 30, used to edit the initial poster image by using a preset large model to obtain a workflow file;
[0134] The adjustment module 40 is used to adjust the format of the workflow file to obtain a target poster file.
[0135] Optionally, the generating module includes:
[0136] An input unit, used to input the poster material data into a preset picture template, and extract material pictures and material texts from the poster material data based on the preset picture template;
[0137] A first adjustment unit is used to adjust the styles of the material picture and the material text according to a preset required style, and after the adjustment is completed, compare the material picture and the material text with the poster requirement standard to obtain a comparison result;
[0138] An integration processing unit is used to integrate the material text and the material picture to obtain an initial poster picture if the comparison result shows that the material picture and the material text meet the poster requirement standard.
[0139] Optionally, the editing module includes:
[0140] An acquisition unit, used for acquiring poster required language data;
[0141] A conversion unit, configured to convert the poster demand language data into feature data based on the preset macro model;
[0142] The editing unit is used to divide the feature data into positive condition data and negative condition data, and based on the positive condition data and the negative condition data, edit the initial poster image at different processing nodes to obtain a workflow file.
[0143] Optionally, the adjustment module includes:
[0144] A calling unit is used to call the business rules corresponding to the current business scenario;
[0145] The second adjustment unit is used to adjust the form of the workflow file based on the business rule to obtain a target poster file.
[0146] Optionally, the second adjustment unit includes:
[0147] A first adjustment subunit is used to adjust the selection box size of the workflow file to obtain poster files of different sizes when it is determined that the framework adjustment rule is a selection box adjustment rule;
[0148] A selection subunit, used for selecting a target poster file from the poster files according to the device to which the user belongs;
[0149] An extraction subunit, configured to extract the poster text received by the preset input box when determining that the frame adjustment rule is an input box adjustment rule;
[0150] The second adjustment subunit is used to extract positive prompt words and negative prompt words from the poster text, and perform form adjustment on the workflow file according to the positive prompt words and negative prompt words to obtain a target poster file.
[0151] Optionally, the second adjustment unit further includes:
[0152] A receiving subunit, used to receive the image demand data uploaded by the user;
[0153] A third adjustment subunit, configured to adjust the workflow file based on the picture adjustment rule and the picture requirement data to obtain a first poster file;
[0154] The processing subunit is used to process the masked part of the picture according to preset customization requirements to obtain a target poster file when it is determined that the first poster file needs to be subjected to picture mask processing.
[0155] The poster design device provided by the present application adopts the poster design method in the above embodiment, which can solve the technical problems of poster design. Compared with the prior art, the beneficial effects of the poster design device provided by the present application are the same as the beneficial effects of the poster design method provided by the above embodiment, and the other technical features in the poster design device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0156] The present application provides a poster design device, which includes: at least one processor; and a memory that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the poster design method in the above-mentioned embodiment one.
[0157] Reference below Figure 7, which shows a schematic diagram of the structure of a poster design device suitable for implementing the embodiment of the present application. The poster design device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The poster design device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0158] like Figure 7 As shown, the poster design device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the poster design device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. Communication device 1009 can allow the poster design device to communicate with other devices wirelessly or by wire to exchange data. Although the poster design device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0159] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0160] The poster design device provided by the present application adopts the poster design method in the above embodiment to solve the technical problems of poster design. Compared with the prior art, the beneficial effects of the poster design device provided by the present application are the same as the beneficial effects of the poster design method provided by the above embodiment, and the other technical features in the poster design device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0161] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0162] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0163] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the poster design method in the above-mentioned embodiment.
[0164] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0165] The computer-readable storage medium may be included in the poster design device; or may exist independently without being assembled into the poster design device.
[0166] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the poster design device, the poster design device:
[0167] Get poster material data;
[0168] Input the poster material data into a preset picture template to generate an initial poster picture;
[0169] Edit the initial poster image by using a preset large model to obtain a workflow file;
[0170] The workflow file is formatted and adjusted to obtain a target poster file.
[0171] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0172] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0173] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0174] The readable storage medium provided in this application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned poster design method, and can solve the technical problems of poster design. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the poster design method provided in the above-mentioned embodiment, and will not be repeated here.
[0175] The present application also provides a computer program product, including a computer program, which implements the steps of the poster design method as described above when executed by a processor.
[0176] The computer program product provided in this application can solve the technical problem of poster design. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the poster design method provided in the above embodiment, which will not be repeated here.
[0177] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A poster design method, characterized in that: The method comprises: Get poster material data; Input the poster material data into a preset picture template to generate an initial poster picture; Edit the initial poster image by using a preset large model to obtain a workflow file; The workflow file is formatted and adjusted to obtain a target poster file.
2. The method according to claim 1, characterized in that The step of inputting the poster material data into a preset picture template to generate an initial poster picture includes: Inputting the poster material data into a preset picture template, and extracting the material picture and material text in the poster material data based on the preset picture template; Adjusting the styles of the material pictures and the material texts according to the preset required styles, and after the adjustment is completed, comparing the material pictures and the material texts with the poster required standards to obtain a comparison result; If the comparison result shows that the material picture and the material text meet the poster requirement standard, the material text and the material picture are integrated to obtain an initial poster picture.
3. The method according to claim 1, characterized in that The step of editing the initial poster image by using the preset large model to obtain a workflow file includes: Get poster requirement language data; Based on the preset macro model, converting the poster demand language data into feature data; The feature data is divided into positive condition data and negative condition data, and based on the positive condition data and the negative condition data, the initial poster image is edited at different processing nodes to obtain a workflow file.
4. The method according to claim 1, characterized in that The step of adjusting the form of the workflow file to obtain the target poster file includes: Call the business rules corresponding to the current business scenario; Based on the business rules, the workflow file is formatted and adjusted to obtain a target poster file.
5. The method according to claim 4, characterized in that The business rules include framework adjustment rules. The step of adjusting the form of the workflow file based on the business rules to obtain the target poster file includes: When it is determined that the frame adjustment rule is a selection box adjustment rule, adjusting the selection box size of the workflow file to obtain poster files of different sizes; According to the device to which the user belongs, selecting a target poster file from the poster files; When it is determined that the frame adjustment rule is an input box adjustment rule, extracting the poster text received by the preset input box; Positive prompt words and negative prompt words are extracted from the poster text, and the workflow file is adjusted in form according to the positive prompt words and negative prompt words to obtain a target poster file.
6. The method according to claim 4, characterized in that The business rules also include picture adjustment rules. The step of adjusting the form of the workflow file based on the business rules to obtain the target poster file also includes: Receive image demand data uploaded by users; Based on the picture adjustment rule and the picture requirement data, the workflow file is adjusted to obtain a first poster file; When it is determined that the first poster file needs to be processed with an image mask, the image mask portion is processed according to preset customization requirements to obtain a target poster file.
7. A poster design device, characterized in that: The device comprises: An acquisition module is used to acquire poster material data; A generation module, used for inputting the poster material data into a preset picture template to generate an initial poster picture; An editing module, used to edit the initial poster image through a preset large model to obtain a workflow file; The adjustment module is used to adjust the form of the workflow file to obtain a target poster file.
8. A poster design device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the poster design method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the poster design method according to any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the poster design method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Media content processing method and device, equipment, storage medium and program product
CN121284345A