Picture generation method and device, computer device and readable storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- XINGIN INFORMATION TECH (SHANGHAI) CO LTD
- Filing Date
- 2026-02-06
- Publication Date
- 2026-06-05
Smart Images

Figure CN122156364A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, and in particular to an image generation method, apparatus, computer device, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of internet technology, the types of applications are becoming increasingly diverse, such as shopping, social networking, and games. Users can publish content on applications, such as text, images, and videos. Currently, the methods for publishing text on applications are relatively limited. Summary of the Invention
[0003] Therefore, it is necessary to provide an image generation method, apparatus, computer device, computer-readable storage medium, and computer program product that can enrich the text publishing methods to address the aforementioned technical problems.
[0004] Firstly, this application provides an image generation method, including:
[0005] The page displays an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published, which is obtained by merging the text and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template.
[0006] In response to a triggering operation on the emotion-associated template, an input control for emotion parameters is displayed;
[0007] The input control receives emotion parameters, and the image to be published is displayed in the image preview area, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template.
[0008] Secondly, this application also provides an image generation method, including:
[0009] The page displays an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published, which is obtained by merging the text and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template.
[0010] In response to a trigger operation on the background image template, an editing control is displayed on the image selection page;
[0011] In response to a triggering operation on the editing control, a color selection page is displayed, which displays a custom control and at least one color image, each color image having a different color;
[0012] In response to a triggering operation on the custom control, a color selection control is displayed;
[0013] The color selection control receives a custom color, and the image to be published, which is a fusion of the text to be published and the target image, is displayed in the image preview area. The target image is generated based on the custom color.
[0014] Thirdly, this application also provides an image generation apparatus, comprising:
[0015] The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template.
[0016] The parameter input module is used to display an input control for emotion parameters in response to a trigger operation on the emotion association template.
[0017] The fusion module is used to receive emotion parameters through the input control and display the image to be published in the image preview area, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template.
[0018] Fourthly, this application also provides an image generation apparatus, comprising:
[0019] The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template.
[0020] The color selection module is used to display an editing control on the image selection page in response to a trigger operation on the background image template; to display a color selection page in response to a trigger operation on the editing control, the color selection page displaying a custom control and at least one color image, each color image having a different color; and to display a color selection control in response to a trigger operation on the custom control.
[0021] The fusion module is used to receive a custom color through the color selection control and display the image to be published in the image preview area, which is a fusion of the text to be published and the target image, wherein the target image is generated based on the custom color.
[0022] Fifthly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method provided in the first or second aspect.
[0023] Sixthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the first or second aspect.
[0024] In a seventh aspect, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the method provided in the first or second aspect.
[0025] The aforementioned image generation method, apparatus, computer device, computer-readable storage medium, and computer program product display an image selection page for text to be published. The image selection page includes an image preview area for displaying an image to be published obtained by fusing the text and an image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template. In response to a trigger operation on the emotion-related template, an input control for emotion parameters is displayed. The emotion parameters are received through the input control, and the image to be published, obtained by fusing the text and an image from the emotion-related template that matches the emotion parameters, is displayed in the image preview area. This allows the image to be published to convey the user's current desired emotion, enriching the expression of the text content and increasing the user's willingness to publish the text. Attached Figure Description
[0026] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0027] Figure 1 This is an application environment diagram of the image generation method in one embodiment;
[0028] Figure 2 This is a flowchart illustrating an image generation method in one embodiment. Figure 1 ;
[0029] Figure 3 This is a schematic diagram illustrating multiple publishing entry points in one embodiment;
[0030] Figure 4 This is a schematic diagram of a text input page in one embodiment;
[0031] Figure 5 This is a schematic diagram of a short text input page in one embodiment;
[0032] Figure 6 This is a schematic diagram illustrating the triggering of the image selection page in one embodiment;
[0033] Figure 7 This is an interactive diagram of an emotion-related template in one embodiment;
[0034] Figure 8 This is an interactive illustration of a mood template in one embodiment. Figure 1 ;
[0035] Figure 9 This is an interactive illustration of a mood template in one embodiment. Figure 2 ;
[0036] Figure 10 This is a schematic diagram of a content publishing page in one embodiment. Figure 1 ;
[0037] Figure 11 This is an example of the interaction of a weather template. Figure 1 ;
[0038] Figure 12 This is an example of the interaction of a weather template. Figure 2 ;
[0039] Figure 13 This is a schematic diagram of a color selection page in one embodiment;
[0040] Figure 14 This is a schematic diagram of a color selection control in one embodiment;
[0041] Figure 15 This is a schematic diagram of a color collection control in one embodiment;
[0042] Figure 16 This is a schematic diagram of a content publishing page in one embodiment. Figure 2 ;
[0043] Figure 17 This is a flowchart illustrating an image generation method in one embodiment. Figure 2 ;
[0044] Figure 18This is a schematic diagram illustrating the interaction between a terminal and a server in one embodiment;
[0045] Figure 19 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0047] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0048] The image generation method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or placed on a cloud or other network server. Terminal 102 and server 104 cooperate to achieve the following: displaying an image selection page for the text to be published, the image selection page including an image preview area 10, which displays an image to be published based on the fusion of the text and the image; the image selection page also displays at least one candidate image template, each candidate image template including at least one image; the at least one candidate image template includes an emotion-related template 11; in response to a trigger operation on the emotion-related template 11, displaying an input control 12 for emotion parameters; receiving the emotion parameters through the input control, and displaying the image to be published in the image preview area 10, based on the text to be published and the image in the emotion-related template 11 that matches the emotion parameters. This allows the image to be published to convey the user's current desired emotion, enriching the expression of the text content and increasing the user's willingness to publish the text. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, and projection equipment. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted displays. Head-mounted displays can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0049] In one exemplary embodiment, such as Figure 2 As shown, an image generation method is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps 202 to 206. Wherein:
[0050] Step 202: Display an image selection page for the text to be published. The image selection page includes an image preview area 10, which is used to display the image to be published obtained by fusing the text and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template 11.
[0051] Optionally, the text to be published is text entered by the user for publication.
[0052] Optionally, users can enter the text to be published through the text publishing entry.
[0053] Optionally, users can trigger the content publishing control, and the terminal will display multiple publishing entry points. Each publishing entry point corresponds to different publishing requirements. These publishing entry points include a text publishing entry point, through which users can input the text to be published.
[0054] For example, see Figure 3 As shown, the terminal provides a content publishing control. After the user triggers this content publishing control, the terminal will provide multiple publishing entry points, which are: an entry point for selecting pictures and / or videos from the album to publish (…). Figure 3 The entry point uses "Select from album" to identify the content and allows users to publish photos and / or videos taken with the camera on the device. Figure 3 The text is used to identify the document, and a text publishing entry is provided. Figure 3 The term "written text" is used to indicate this.
[0055] Optionally, when a user triggers the text publishing entry, the terminal displays a text input page. The text input page displays short text input controls and long text input controls, and the user can input the text to be published through the short text input control.
[0056] For example, see Figure 4 As shown, after a user triggers the text posting entry, the terminal displays a text input page. This page includes a short text input control, which displays prompts for the user to enter information, such as... Figure 4 The text input page includes options such as "Write your thoughts," "Say something," or "Ask a question." It also displays a long text input control with a tooltip indicating its function, such as... Figure 4 The text mentions features like "writing long articles" and "supporting over 1,000 words with a full-screen reading experience."
[0057] Optionally, after the user enters the text to be published, a page for selecting accompanying images can be further triggered.
[0058] Optionally, after the user triggers the short text input control, the terminal displays a short text input page, where the user can enter the text to be published. After the user finishes entering the text, an image selection page can be displayed.
[0059] For example, see Figure 5 As shown, after the user triggers the short text input control, the terminal displays a short text input page, where the user can enter the text to be published. See also Figure 6As shown, assuming the user enters the text to be published as "A nameless sadness welled up in my heart", after the input is completed, the next step is triggered, and the terminal will display a page for selecting images for the text to be published.
[0060] The image selection page for the text to be published includes an image preview area 10, which is used to display the image to be published, which is obtained by merging the text to be published and the image.
[0061] Optionally, the illustration may include at least one of the following: background image, font color, highlight style, highlight color, illustration element, and color of illustration element.
[0062] In some possible implementations, a text and image fusion algorithm can be suggested in advance, and the fusion algorithm can be used to merge the text and image to be published to obtain the image to be published.
[0063] In some possible implementations, the text to be published and the accompanying image can be input into a large model, which will then merge the text and image to be published and output the final image.
[0064] The image selection page also displays at least one candidate image template, and each candidate image template includes at least one image.
[0065] Optionally, each candidate image template corresponds to a template style, and the style of each image included in the candidate image template is consistent with the corresponding template style.
[0066] Optionally, the template styles corresponding to at least one candidate image template displayed on the image selection page include: illustration, memo, doodle, journal, etc. For example, the candidate image templates corresponding to the illustration template style all include illustrations, and the candidate image templates corresponding to the journal template style all include journal images.
[0067] Among them, the at least one candidate image template includes an emotion-related template 11, which refers to a template that can be associated with human emotions.
[0068] Optionally, the number of emotion-related templates 11 can be one or more.
[0069] In some possible implementations, the template style corresponding to the emotion association template 11 can be mood, and the various illustrations included in the emotion association template 11 have different colors. The colors of the illustrations change from cool to warm tones, so that different illustrations can reflect different moods.
[0070] In some possible implementations, the template style corresponding to the emotion association template 11 can be weather. The various pictures included in the emotion association template 11 represent different weather conditions, such as sunny, cloudy, rainy, and snowy days, so that different pictures can reflect different moods.
[0071] Step 204: In response to the triggering operation of the emotion association template 11, the input control 12 for emotion parameters is displayed.
[0072] Optionally, the user can trigger the emotion-associated template 11, and in response to the triggering operation, the terminal displays the input control 12 for emotion parameters.
[0073] Optionally, the input control 12 for the emotion parameter can be a slider-type input control, a selection-type input control, or a write-type input control; this embodiment does not limit this.
[0074] Step 206: Receive emotion parameters through the input control, and display the image to be published in the image preview area 10, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template 11.
[0075] Users can input emotion parameters through the emotion parameter input control 12, based on the emotion they currently want to express.
[0076] Optionally, the emotion parameter is a parameter used to characterize emotion. For example, the emotion parameter refers to a value or level that characterizes the degree of positivity / negativity.
[0077] In one possible implementation, the emotion parameter input control 12 is a slider-type input control. Specifically, the emotion parameter input control 12 includes an emotion tendency slider and a target element that can move on the emotion tendency slider. The user can input the emotion parameter by moving the target element.
[0078] In some possible implementations, the emotion parameter input control 12 is a selection input control. Specifically, the emotion parameter input control 12 displays multiple emotion categories and a selection control corresponding to each emotion category. The user can trigger a selection control, and the terminal displays the selection control as selected and determines the emotion parameter based on the emotion category corresponding to the selection control.
[0079] Optionally, after obtaining the emotion parameter, the image to be published is displayed in the image preview area 10, which is obtained by fusing the text to be published and the image matching the emotion parameter in the emotion association template 11.
[0080] In some possible implementations, a text and image fusion algorithm can be suggested in advance. This fusion algorithm is used to fuse the text to be published and the images in the emotion association template 11 that match the aforementioned emotion parameters to obtain the image to be published.
[0081] In some possible implementations, the text to be published and the accompanying image can be input into a large model, which then merges the text to be published with the accompanying image in the emotion association template 11 that matches the aforementioned emotion parameters, and outputs the image to be published.
[0082] See Figure 7 As shown, after a user triggers at least one emotion-related template 11 from the candidate image templates, the terminal displays an input control 12 for emotion parameters. The user can input the emotion parameters through this input control, and the terminal will then display a preview area showing a fusion of the text to be published by the user and the image in the emotion-related template 11 that matches the emotion parameters.
[0083] In the above embodiment, an image selection page is displayed for the text to be published. The image selection page includes an image preview area 10, which displays an image to be published obtained by fusing the text and an image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template 11. In response to a trigger operation on the emotion-related template 11, an input control 12 for emotion parameters is displayed. The emotion parameters are received through the input control, and the image to be published, obtained by fusing the text and an image from the emotion-related template 11 that matches the emotion parameters, is displayed in the image preview area 10. This allows the image to be published to convey the user's current desired emotion, enriching the expression of the text content and increasing the user's willingness to publish the text.
[0084] In some embodiments, the colors of each of the at least one illustrations included in the emotion association template 11 are different, and the colors of the illustrations that match the emotion parameters correspond to the emotion parameters.
[0085] Optionally, the emotion-association template 11 includes at least one illustration. The pattern in each illustration is the same, but the colors of the pattern are different.
[0086] Optionally, the emotion parameter refers to a value or level representing the degree of positivity / negativity. Based on theories of the correspondence between color and human emotion, a pre-established correspondence between emotion parameters and colors can be created. Different images in the emotion association template 11 are paired with different colors; a matching relationship between emotion parameters and images can be established based on this correspondence. The color of the image matching the emotion parameter corresponds to that emotion parameter.
[0087] For example, the more positive the emotion, the warmer the color; the more negative the emotion, the cooler the color. Warm colors include yellow and red. Cool colors include blue and purple.
[0088] Optionally, the template style corresponding to emotion-related template 11 can be defined as mood.
[0089] For example, see Figure 8 As shown, the user-input text to be published is "A nameless sadness wells up in my heart." The candidate image templates displayed on the image selection page correspond to the following template styles: Basic, Mood, Weather, Book Excerpt, and Notes. Among them, the "Mood" template style corresponds to the Emotion-Related Template 11. After the user triggers the Emotion-Related Template 11, the terminal displays a slider-type input control. The user inputs a value or level representing the degree of positivity / negativity, i.e., the emotion parameter, through the slider-type input control. After receiving the emotion parameter, the terminal merges the text to be published and the image in the Emotion-Related Template 11 that matches the emotion parameter to obtain the image to be published, and displays the image to be published in the image preview area 10. Figure 8 The image to be published displayed in preview area 10 was generated when the user-input emotional parameters were predominantly negative. See also... Figure 9 As shown, when the user's input emotion parameters are predominantly positive, the image to be published displayed in image preview area 10 is as follows: Figure 9 As shown. In other words, the colors of the image to be published will be different depending on the emotional parameters input by the user. The colors correspond to the emotional parameters; for example, if the emotional parameters are positive, the colors will be warm, and if the emotional parameters are negative, the colors will be cool. Figure 8 and Figure 9 This includes a next step control; when the user triggers the next step control, the terminal will display the content publishing page. Figure 10 In order to be in Figure 9 An example of the content displayed on the publishing page after triggering the next control.
[0090] In the above embodiment, after the user triggers the emotion association template 11, the terminal displays an input control 12 for emotion parameters. After the user inputs the emotion parameters through the input control, the terminal determines the matching image in the emotion association template 11 that matches the emotion parameters. The color of the matching image corresponds to the emotion parameters; for example, when the emotion parameters are positive, the color of the matching image is warm, and when the emotion parameters are negative, the color of the matching image is cool. The text to be published and the matching image are merged to obtain the image to be published, which is then displayed in the image preview area 10. This ensures that the color of the image to be published reflects the emotion the user currently wants to express, which can enrich the expression of the text content and increase the user's willingness to publish the text.
[0091] In some embodiments, the at least one illustration included in the emotion association template 11 represents different weather conditions, and the weather represented by the illustration that matches the emotion parameter corresponds to the emotion parameter.
[0092] Optionally, the emotion-associated template 11 includes at least one image. Each image represents a different type of weather. The weather represented by each image may include, for example, sunny, rainy, sunrise, snow, thunderstorm, etc., so that different images can reflect different moods.
[0093] Optionally, the emotion parameter refers to a value or level representing the degree of positivity / negativity. A pre-suggested correspondence between emotion parameters and weather can be established. Based on this correspondence, a matching relationship is created between the emotion parameter and the accompanying image. The weather represented by the image matching the emotion parameter corresponds to that emotion parameter.
[0094] For example, negative emotions correspond to weather such as rain and thunderstorms, while positive emotions correspond to weather such as sunny days and sunrises.
[0095] Optionally, the template style corresponding to emotion-related template 11 can be defined as weather.
[0096] For example, see Figure 11 As shown, the user-input text to be published is "A nameless sadness wells up in my heart." The candidate image templates displayed on the image selection page correspond to the following template styles: Basic, Mood, Weather, Book Excerpt, and Notes. Among them, the "Weather" template style corresponds to the emotion-related template 11. After the user triggers the emotion-related template 11, the terminal displays a slider-type input control. The user inputs a value or level representing the degree of positivity / negativity, i.e., the emotion parameter, through the slider-type input control. After receiving the emotion parameter, the terminal merges the text to be published and the image in the emotion-related template 11 that matches the emotion parameter to obtain the image to be published, and displays the image to be published in the image preview area 10. Figure 11 The image to be published displayed in preview area 10 was generated when the user-input emotional parameters were predominantly negative. See also... Figure 12 As shown, when the user's input emotion parameters are predominantly positive, the image to be published displayed in image preview area 10 is as follows: Figure 12 As shown. In other words, the weather for the image to be published will be different depending on the emotional parameters input by the user. The weather corresponds to the emotional parameters; for example, a positive emotional parameter will result in sunny weather, and a negative emotional parameter will result in gloomy weather.
[0097] In the above embodiment, after the user triggers the emotion association template 11, the terminal displays an input control 12 for emotion parameters. After the user inputs the emotion parameters through the input control, the terminal determines the matching image in the emotion association template 11 that matches the emotion parameters. The weather of the matching image corresponds to the emotion parameters; for example, when the emotion parameters are positive, the weather of the matching image is sunny, and when the emotion parameters are negative, the weather of the matching image is cloudy and rainy. The text to be published and the matching image are merged to obtain the image to be published, which is then displayed in the image preview area 10. This ensures that the weather of the image to be published reflects the emotion the user currently wants to express, which can enrich the expression of the text content and increase the user's willingness to publish the text.
[0098] In some embodiments, the input control includes: an emotion tendency slider and a target element movable on the emotion tendency slider; receiving emotion parameters through the input control includes: in response to an operation of moving the target element on the emotion tendency slider, determining emotion parameters based on the target position of the target element on the emotion tendency slider.
[0099] Optionally, the input control 12 for emotion parameters can be displayed on the overlay of the image selection page.
[0100] Optionally, the mood preference slider can be displayed horizontally.
[0101] Optionally, the style of the target element can be flexibly set according to the actual situation. For example, the target element can be a circle. Users can control the target element to move back and forth on the emotion preference slider.
[0102] Optionally, users can trigger the target element to move to the target position on the emotion tendency slider according to the emotion they currently want to express, and the terminal will then map the target position to the emotion parameter.
[0103] In the above embodiment, the input control 12 for emotion parameters is set as an emotion tendency slider and a target element that can move on the emotion tendency slider. The user can trigger the target element to move to a target position on the emotion tendency slider according to the emotion they currently want to express, and the terminal will then determine the emotion parameter based on that target position. This setting is more in line with the user's input habits, and the operation is more convenient, improving the efficiency of emotion parameter input.
[0104] In some embodiments, the two ends of the emotion tendency slider are respectively displayed with a first emotion icon and a second emotion icon, wherein the emotion represented by the first emotion icon and the emotion represented by the second emotion icon are opposite to each other.
[0105] The two ends of the emotion slider represent two opposing emotions, such as negative and positive.
[0106] In order to make it easier for users to see what emotions the two ends of the emotion tendency slider represent, so that users can accurately move the target element to the corresponding position according to the emotion they want to express, this embodiment of the application displays a first emotion icon and a second emotion icon representing the above two emotions at the two ends of the emotion tendency slider.
[0107] Optionally, the first emotion identifier and the second emotion identifier can be text identifiers, graphic identifiers, or a combination of both, and this application embodiment does not limit this.
[0108] For example, as described above Figures 8-9 , Figures 11-12 The emotion slider represents two opposing emotions: negative and positive. Specifically, the left end of the slider represents negative, and the right end represents positive. Both the primary negative emotion marker and the secondary positive emotion marker are text labels; the text for the primary emotion marker is "Negative," and the text for the secondary emotion marker is "Positive."
[0109] In the above embodiments, when the input control 12 for emotion parameters includes an emotion tendency slider and a target element that can move on the emotion tendency slider, the two ends of the emotion tendency slider respectively display a first emotion icon and a second emotion icon representing two opposing emotions, so that the user can accurately move the target element to the corresponding position according to the emotion he / she wants to express, thereby improving the user experience.
[0110] In some embodiments, determining the emotion parameter based on the target position of the target element on the emotion tendency slider includes:
[0111] In the pre-established correspondence between element positions and emotion parameters, find the emotion parameter corresponding to the target position of the target element on the emotion tendency slider.
[0112] In the case where the emotion parameter input control 12 includes an emotion tendency slider and a target element that can move on the emotion tendency slider, it is necessary to pre-establish the correspondence between the element position and the emotion parameter. After the user triggers the target element to move to the target position on the emotion tendency slider according to the emotion he / she wants to express, the terminal can find the emotion parameter corresponding to the target position in the above correspondence for the generation of the image to be published.
[0113] Optionally, the emotion parameter refers to a value or level representing the degree of positivity / negativity. The emotion tendency slider can be divided into multiple segments, each corresponding to a value or level. The terminal can determine the segment where the target location is located and use the value or level corresponding to that segment as the emotion parameter for that target location.
[0114] In the above embodiments, when the input control 12 for emotion parameters includes an emotion tendency slider and a target element that can move on the emotion tendency slider, a method is provided for the terminal to determine the emotion parameter corresponding to the target position after the user triggers the target element to move to the target position on the emotion tendency slider. This setting is more in line with the user's input habits, and the operation is more convenient, improving the efficiency of emotion parameter input.
[0115] In some embodiments, the at least one candidate image template includes a background image template; the image generation method provided in this application also includes:
[0116] In response to a trigger operation on the background image template, an editing control is displayed on the image selection page; in response to a trigger operation on the editing control, a color selection page is displayed, which displays a custom control and at least one color image, each with a different color; in response to a trigger operation on the custom control, a color selection control is displayed; a custom color is received through the color selection control, and a to-be-published image, obtained by fusing the text to be published and the target image, is displayed in the image preview area 10, where the target image is generated based on the custom color.
[0117] Optionally, the background images included in the background image template are all solid color images, and the background images of different images have different colors.
[0118] When a user triggers a background image template, the terminal displays editing controls on the image selection page. For example, the terminal displays the editing controls in the upper right corner of the image selection page.
[0119] Among them, see Figure 13 As shown, after the user triggers the editing control, the terminal will display a color selection page. This color selection page displays a custom control and at least one color image. Each color image has a different color, and at least one color image is a color that the user has saved.
[0120] When a user triggers a color image, the terminal displays the image to be published in the image preview area 10, which is a fusion of the text to be published and the first image. The first image is generated based on the color corresponding to the color image, and the background image of the first image is a solid color image of that color.
[0121] Optionally, the background image template has a corresponding image generation method. After a user triggers a certain color image, the first image can be generated based on the color corresponding to that color image using the above image generation method.
[0122] In one possible implementation, the background image template has a corresponding image generation algorithm. After the user triggers a certain color image, the corresponding color of that color image can be input into the image generation algorithm to obtain the first image.
[0123] In one possible implementation, a background image template corresponding to the image generation model can be pre-trained. When a user triggers a certain color image, the color corresponding to that color image can be input into the image generation model, which will then output the first image.
[0124] Among them, see Figure 14 As shown, after a user triggers a custom control, the terminal can display a color selection control. Optionally, the color selection control can be a color spectrum control. The color spectrum control includes a color bar and a first element that can move on the color bar; for example, the first element can be a circle. Various selectable colors are displayed on the color bar, and the user can trigger the first element to move to their preferred color to select that color. The color spectrum control can also include a transparency control and a second element that can move within the transparency control; for example, the second element can also be a circle. After the user triggers the first element to move to their preferred color, they can trigger the second element to move to the target transparency level, thereby selecting the transparency of that color.
[0125] For ease of explanation, the color and transparency entered by the user through the color selection control can be referred to as the custom color. For example... Figure 14 As shown, after receiving the custom color, the terminal displays the image to be published, which is a fusion of the text to be published and the target image, in the image preview area 10. The target image is generated based on the custom color, and the background image of the target image is a solid color image of the custom color.
[0126] It should be noted that, in order to ensure that the background and text in the merged image are easily distinguishable and that the text is clearly displayed for easy reading, the contrast between the font color and the background image in the target image needs to be within a preset color contrast range. For example, the contrast ratio between the font color and the background image can be 4.5:1. See [example...] for further details. Figure 14 As shown, after the user inputs a custom color, the background of the image to be published displayed in the image preview area changes accordingly, and the color of the text in the image to be published also changes, ensuring the readability of the text.
[0127] As described above, the background image template has a corresponding image generation method. After the user inputs a custom color, the target image can be generated based on the custom color using the image generation method described above.
[0128] In one possible implementation, the background image template has a corresponding image generation algorithm. After the user inputs a custom color, the custom color can be input into the image generation algorithm to obtain the target image.
[0129] In one possible implementation, an image generation model corresponding to the background image template can be pre-trained. After the user inputs a custom color, the custom color can be input into the image generation model, which will then output the target image.
[0130] In the above embodiments, after a user triggers the background image template, the terminal displays an editing control on the image selection page. After the user triggers the editing control, the terminal displays a color selection page, which displays a custom control and at least one color image. The user can select their desired color through the custom control or by selecting a color image. If the user triggers the custom control, the terminal displays the color selection control, which displays a variety of colors. The user can select their desired color as the custom color. In response to this selection operation, the terminal displays the image to be published in the image preview area 10, which is a fusion of the text to be published and the target image. The target image is an image generated based on the custom color. When the existing images in the background image template cannot meet the user's needs, the user can select their desired color to generate a new image, so that the final image to be published is a color that satisfies the user, thus expanding the functionality of the background image template.
[0131] In some embodiments, the color selection page also displays a color collection control; the image generation method provided in this application embodiment further includes: in response to a trigger operation on the color collection control, displaying a color image corresponding to the custom color, and adding the target image to the background image template.
[0132] Optionally, after the user inputs a custom color through a custom control, the terminal can display a color collection control on the color selection page.
[0133] Optionally, the user can trigger the color collection control, and the terminal will generate a color image corresponding to the custom color, adding this color image to at least one of the aforementioned color images for display. The next time the user triggers the color selection page, the color selection page will display at least one color image corresponding to the custom color, thus achieving the purpose of collection.
[0134] Optionally, after the user triggers the color collection control, in addition to displaying the color image corresponding to the custom color on the color selection page, the terminal can also add the target image to the background image template. In this way, the user can directly use the background image template's matching function to directly call up the target image next time, realizing the personalized expansion of the background image template.
[0135] For example, see Figure 15 As shown, after the user inputs a custom color through a custom control, triggering the color collection control, the terminal will generate a color image corresponding to the custom color and add it to at least one of the aforementioned color images for display. When the user triggers the next step control, the terminal will display the content publishing page. See the example of the content publishing page for details. Figure 16 .
[0136] In the above embodiments, after the user inputs a custom color through a custom control, the terminal can display a color collection control on the color selection page. When the user triggers the color collection control, the terminal will generate a color image corresponding to the custom color and display at least one other color image together, thereby achieving the purpose of collection. The terminal can also add the target image to the background image template, so that the user can directly use the background image template's matching function to directly call up the target image next time, realizing the personalized expansion of the background image template.
[0137] In some embodiments, such as Figure 17 As shown, an image generation method is provided, which can be applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps 1702 to 1710. Wherein:
[0138] Step 1702: Display an image selection page for the text to be published. The image selection page includes an image preview area 10, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template.
[0139] Optionally, the text to be published is text entered by the user for publication.
[0140] Optionally, users can enter the text to be published through the text publishing entry.
[0141] Optionally, users can trigger a content publishing control, which will then display multiple publishing entry points on the terminal. Each entry point corresponds to a different publishing requirement. These entry points include a text publishing entry point, through which users can input the text to be published. See the example of a text publishing entry point. Figure 3 As shown.
[0142] Optionally, when a user triggers the text publishing entry, the terminal displays a text input page. This page includes short text input controls and long text input controls, allowing the user to enter the text to be published using the short text input control. See the example of the short text input control for details. Figure 4 As shown.
[0143] Optionally, after the user enters the text to be published, a page for selecting accompanying images can be further triggered.
[0144] Optionally, after the user triggers the short text input control, the terminal displays a short text input page. The user can enter the text to be published on this page, and after completion, an image selection page can be displayed. See the example of the short text input page. Figure 5 As shown in Figure 6, an example of triggering the display of the image selection page is shown in Figure 6.
[0145] The image selection page for the text to be published includes an image preview area 10, which is used to display the image to be published, which is obtained by merging the text to be published and the image.
[0146] Optionally, the illustration may include at least one of the following: background image, font color, highlight style, highlight color, illustration element, and color of illustration element.
[0147] In some possible implementations, a text and image fusion algorithm can be suggested in advance, and the fusion algorithm can be used to merge the text and image to be published to obtain the image to be published.
[0148] In some possible implementations, the text to be published and the accompanying image can be input into a large model, which will then merge the text and image to be published and output the final image.
[0149] The image selection page also displays at least one candidate image template, and each candidate image template includes at least one image.
[0150] Optionally, each candidate image template corresponds to a template style, and the style of each image included in the candidate image template is consistent with the corresponding template style.
[0151] Optionally, the template styles corresponding to at least one candidate image template displayed on the image selection page include: illustration, memo, doodle, journal, etc. For example, the candidate image templates corresponding to the illustration template style all include illustrations, and the candidate image templates corresponding to the journal template style all include journal images.
[0152] Optionally, the at least one candidate image template includes a background image template. The background image template includes solid color images for each image, with different background images for different images.
[0153] Step 1704: In response to the triggering operation of the background image template, an editing control is displayed on the image selection page.
[0154] When a user triggers a background image template, the terminal displays editing controls on the image selection page. For example, the terminal displays the editing controls in the upper right corner of the image selection page.
[0155] Step 1706: In response to a triggering operation on the editing control, a color selection page is displayed, the color selection page displaying a custom control and at least one color image, each color image having a different color.
[0156] When a user triggers the editing control, the terminal displays a color selection page. This page shows a custom control and at least one color image, each with a different color. At least one color image is a color from the user's favorite color collection. See example. Figure 13 .
[0157] When a user triggers a color image, the terminal displays the image to be published in the image preview area 10, which is a fusion of the text to be published and the first image. The first image is generated based on the color corresponding to the color image, and the background image of the first image is a solid color image of that color.
[0158] Optionally, the background image template has a corresponding image generation method. After a user triggers a certain color image, the first image can be generated based on the color corresponding to that color image using the above image generation method.
[0159] In one possible implementation, the background image template has a corresponding image generation algorithm. After the user triggers a certain color image, the corresponding color of that color image can be input into the image generation algorithm to obtain the first image.
[0160] In one possible implementation, a background image template corresponding to the image generation model can be pre-trained. When a user triggers a certain color image, the color corresponding to that color image can be input into the image generation model, which will then output the first image.
[0161] Step 1708: In response to the triggering operation of the custom control, display the color selection control.
[0162] Step 1710: Receive a custom color through the color selection control, and display the image to be published in the image preview area 10, which is a fusion of the text to be published and the target image, and the target image is generated based on the custom color.
[0163] When a user triggers a custom control, the terminal can display a color selection control. Optionally, the color selection control can be a color spectrum control. The color spectrum control includes a color bar and a first element that can move on the color bar; for example, the first element can be a circle. Various selectable colors are displayed on the color bar, and the user can trigger the first element to move to their preferred color to select that color. The color spectrum control can also include a transparency control and a second element that can move within the transparency control; for example, the second element can also be a circle. After the user triggers the first element to move to their preferred color, they can trigger the second element to move to a target transparency level, thereby selecting the transparency of that color. See example. Figure 14 .
[0164] For ease of explanation, the color and transparency entered by the user through the color selection control can be referred to as the custom color. After receiving this custom color, the terminal displays the image to be published, which is a fusion of the text to be published and the target image, in the image preview area 10. The target image is generated based on the custom color, and its background image is a solid color image of that custom color. See example. Figure 14 .
[0165] As described above, the background image template has a corresponding image generation method. After the user inputs a custom color, the target image can be generated based on the custom color using the image generation method described above.
[0166] In one possible implementation, the background image template has a corresponding image generation algorithm. After the user inputs a custom color, the custom color can be input into the image generation algorithm to obtain the target image.
[0167] In one possible implementation, an image generation model corresponding to the background image template can be pre-trained. After the user inputs a custom color, the custom color can be input into the image generation model, which will then output the target image.
[0168] In the above embodiments, after a user triggers the background image template, the terminal displays an editing control on the image selection page. After the user triggers the editing control, the terminal displays a color selection page, which displays a custom control and at least one color image. The user can select their desired color through the custom control or by selecting a color image. If the user triggers the custom control, the terminal displays the color selection control, which displays a variety of colors. The user can select their desired color as the custom color. In response to this selection operation, the terminal displays the image to be published in the image preview area 10, which is a fusion of the text to be published and the target image. The target image is an image generated based on the custom color. When the existing images in the background image template cannot meet the user's needs, the user can select their desired color to generate a new image, so that the final image to be published is a color that satisfies the user, thus expanding the functionality of the background image template.
[0169] In some embodiments, the color selection page also displays a color collection control; the image generation method provided in this application embodiment further includes: in response to a trigger operation on the color collection control, displaying a color image corresponding to the custom color, and adding the target image to the background image template. The specific implementation of color collection can be found above and will not be repeated here.
[0170] It is understandable that at least one candidate image template in the image selection page for the text to be published may include only the background image template, or only the emotion-related template 11, or both the background image template and the emotion-related template 11. As mentioned above, the emotion-related template 11 may be a template with the "mood" style as described above, or it may be a template with the "weather" style as described above. At least one candidate image template in the image selection page for the text to be published may include only the template with the "mood" style, or only the template with the "weather" style, or both the template with the "mood" style and the template with the "weather" style.
[0171] In some embodiments, see Figure 18As shown, a terminal and server interaction method is provided. The method includes: S1, the terminal displays an image selection page for text to be published, the image selection page including an image preview area 10, the image preview area 10 being used to display an image to be published obtained by fusing the text to be published and an image; the image selection page also displays at least one candidate image template, each candidate image template including at least one image; the at least one candidate image template includes an emotion-related template 11; S2, the user triggers the emotion-related template 11; S3, the terminal displays an input control 12 for emotion parameters; S4, the user inputs emotion parameters through the emotion parameter input control 12; S5, the terminal sends the emotion parameters to the server; S6, the server fusing the image to be published based on the text to be published and an image in the emotion-related template 11 that matches the emotion parameters; S7, the terminal displays the image to be published in the image preview area 10.
[0172] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0173] Based on the same inventive concept, this application also provides an image generation apparatus for implementing the image generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more image generation apparatus embodiments provided below can be found in the limitations of the image generation method described above, and will not be repeated here.
[0174] In one exemplary embodiment, an image generation apparatus is provided, comprising:
[0175] The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template.
[0176] The parameter input module is used to display an input control for emotion parameters in response to a trigger operation on the emotion association template.
[0177] The fusion module is used to receive emotion parameters through the input control and display the image to be published in the image preview area, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template.
[0178] In some embodiments, the colors of each of the at least one illustrations included in the emotion association template are different, and the colors of the illustrations that match the emotion parameters correspond to the emotion parameters.
[0179] In some embodiments, the emotion association template includes at least one illustration, each illustration representing different weather conditions, and the weather represented by the illustration that matches the emotion parameter corresponds to the emotion parameter.
[0180] In some embodiments, the input control includes: an emotion tendency slider and a target element movable on the emotion tendency slider; and a fusion module for determining emotion parameters based on the target position of the target element on the emotion tendency slider in response to an operation of moving the target element on the emotion tendency slider.
[0181] In some embodiments, the two ends of the emotion tendency slider are respectively displayed with a first emotion icon and a second emotion icon, wherein the emotion represented by the first emotion icon and the emotion represented by the second emotion icon are opposite to each other.
[0182] In some embodiments, the fusion module is used to find the emotion parameter corresponding to the target position of the target element on the emotion tendency slider in a pre-established correspondence between element position and emotion parameter.
[0183] In some embodiments, the at least one candidate image template includes a background image template; the fusion module is configured to: display an editing control on the image selection page in response to a triggering operation on the background image template;
[0184] In response to a triggering operation on the editing control, a color selection page is displayed, which displays a custom control and at least one color image, each color image having a different color;
[0185] In response to a triggering operation on the custom control, a color selection control is displayed;
[0186] The color selection control receives a custom color, and the image to be published, which is a fusion of the text to be published and the target image, is displayed in the image preview area. The target image is generated based on the custom color.
[0187] In some embodiments, the color selection page also displays a color collection control; the fusion module is used to respond to the trigger operation of the color collection control, display the color image corresponding to the custom color, and add the target image to the background image template.
[0188] In one exemplary embodiment, an image generation apparatus is provided, comprising:
[0189] The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template.
[0190] The color selection module is used to display an editing control on the image selection page in response to a trigger operation on the background image template; to display a color selection page in response to a trigger operation on the editing control, the color selection page displaying a custom control and at least one color image, each color image having a different color; and to display a color selection control in response to a trigger operation on the custom control.
[0191] The fusion module is used to receive a custom color through the color selection control and display the image to be published in the image preview area, which is a fusion of the text to be published and the target image, wherein the target image is generated based on the custom color.
[0192] In some embodiments, the color selection page also displays a color collection control; the fusion module is used to respond to the trigger operation of the color collection control, display the color image corresponding to the custom color, and add the target image to the background image template.
[0193] Each module in the aforementioned image generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0194] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 19 As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements an image generation method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0195] Those skilled in the art will understand that Figure 19 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0196] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-described image generation method.
[0197] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the image generation method described above.
[0198] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the image generation method described above.
[0199] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0200] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0201] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for generating an image, characterized in that, The method includes: The page displays an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published, which is obtained by merging the text and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template. In response to a triggering operation on the emotion-associated template, an input control for emotion parameters is displayed; The input control receives emotion parameters, and the image to be published is displayed in the image preview area, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template.
2. The method according to claim 1, characterized in that, The emotion association template includes at least one image in which each image has a different color, and the color of the image that matches the emotion parameter corresponds to the emotion parameter.
3. The method according to claim 1, characterized in that, The emotion association template includes at least one illustration, each illustration representing different weather conditions, and the weather represented by the illustration that matches the emotion parameter corresponds to the emotion parameter.
4. The method according to claim 1, characterized in that, The input control includes: a mood tendency slider and a target element that can move on the mood tendency slider; The receipt of emotion parameters through the input control includes: In response to the operation of moving the target element on the emotion tendency slider, an emotion parameter is determined based on the target position of the target element on the emotion tendency slider.
5. The method according to claim 4, characterized in that, The two ends of the emotion tendency slider are respectively displayed as a first emotion icon and a second emotion icon, with the emotions represented by the first emotion icon and the emotions represented by the second emotion icon being opposite.
6. The method according to claim 4, characterized in that, Determining the emotion parameter based on the target position of the target element on the emotion tendency slider includes: In the pre-established correspondence between element positions and emotion parameters, find the emotion parameter corresponding to the target position of the target element on the emotion tendency slider.
7. The method according to claim 1, characterized in that, The at least one candidate image template includes a background image template; The method further includes: In response to a trigger operation on the background image template, an editing control is displayed on the image selection page; In response to a triggering operation on the editing control, a color selection page is displayed, which displays a custom control and at least one color image, each color image having a different color; In response to a triggering operation on the custom control, a color selection control is displayed; The color selection control receives a custom color, and the image to be published, which is a fusion of the text to be published and the target image, is displayed in the image preview area. The target image is generated based on the custom color.
8. The method according to claim 7, characterized in that, The color selection page also displays a color favorites control; the method further includes: In response to the triggering operation of the color collection control, the color image corresponding to the custom color is displayed, and the target image is added to the background image template.
9. A method for generating an image, characterized in that, The method includes: The page displays an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published, which is obtained by merging the text and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template. In response to a trigger operation on the background image template, an editing control is displayed on the image selection page; In response to a triggering operation on the editing control, a color selection page is displayed, which displays a custom control and at least one color image, each color image having a different color; In response to a triggering operation on the custom control, a color selection control is displayed; The color selection control receives a custom color, and the image to be published, which is a fusion of the text to be published and the target image, is displayed in the image preview area. The target image is generated based on the custom color.
10. The method according to claim 9, characterized in that, The color selection page also displays a color favorites control; the method further includes: In response to the triggering operation of the color collection control, the color image corresponding to the custom color is displayed, and the target image is added to the background image template.
11. An image generation apparatus, characterized in that, The device includes: The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes an emotion-related template. The parameter input module is used to display an input control for emotion parameters in response to a trigger operation on the emotion association template. The fusion module is used to receive emotion parameters through the input control and display the image to be published in the image preview area, which is a fusion of the text to be published and the image matching the emotion parameters in the emotion association template.
12. An image generation apparatus, characterized in that, The device includes: The image selection module is used to display an image selection page for the text to be published. The image selection page includes an image preview area, which is used to display the image to be published obtained by merging the text to be published and the image. The image selection page also displays at least one candidate image template, each candidate image template including at least one image. The at least one candidate image template includes a background image template. The color selection module is used to display an editing control on the image selection page in response to a trigger operation on the background image template; to display a color selection page in response to a trigger operation on the editing control, the color selection page displaying a custom control and at least one color image, each color image having a different color; and to display a color selection control in response to a trigger operation on the custom control. The fusion module is used to receive a custom color through the color selection control and display the image to be published in the image preview area, which is a fusion of the text to be published and the target image, wherein the target image is generated based on the custom color.
13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 10.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 10.