Interface rendering method, device, electronic device and computer program product
Through dynamic rendering of information promotion interface, the sorting and parameter settings of static templates and dynamic elements are used to solve the static problem of information promotion interface in the existing technology, and improve user attractiveness and promotion effect.
Patent Information
- Application Number
- CN202411793468.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-12-06
AI Technical Summary
The existing technology is difficult to dynamically render the information promotion interface, resulting in poor information promotion effect.
By obtaining static templates, the order of attractiveness to users based on different promotion elements, the dynamic effect elements are determined, and the dynamic effect parameters are set for them to achieve rendering of dynamic effects.
It realizes dynamic display of the information promotion interface, improving user attractiveness and the effectiveness of information promotion.
Smart Images

Figure CN119271341B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent media technology, and in particular to an interface rendering method, device, electronic device, and computer program product. Background Art
[0002] Companies, businesses and online platforms often use templates that display promotional information for information promotion. When promoting information, using a dynamic interface is more attractive than using a static interface. Therefore, it is necessary to use a dynamic interface for information promotion. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide an interface rendering method, device, electronic device and computer program product to dynamically render an information promotion interface. The specific technical solution is as follows:
[0004] According to one aspect of an embodiment of the present application, a method for rendering an interface is provided, the method comprising:
[0005] Get the static template of the information promotion interface;
[0006] Determining a dynamic effect element from the promotion elements included in the static template based on the ranking of the attractiveness of different promotion elements to users;
[0007] Setting the animation parameters for the animation element;
[0008] A dynamic effect is rendered for the motion effect element based on the motion effect parameter, and elements in the static template except the motion effect element are statically rendered.
[0009] In one embodiment of the present application, the ranking of the attractiveness of the different promotional elements to the user is determined based on at least one of the following information:
[0010] Whether it is a promotional element of a set style, wherein the set style includes: at least one of a preset element appearance, a preset element structure, and a preset element background;
[0011] Promote the semantics of the text in the element;
[0012] Whether it is a promotional element with repeated style;
[0013] Whether the content in the promotion element is of a set media type, wherein the set media type is: text type or image type.
[0014] In one embodiment of the present application, the dynamic effect element is determined from the promotion elements included in the static template in the following manner:
[0015] Determine a first type of promotional element including text in the promotional elements included in the static template;
[0016] Obtaining the semantics of the characters in the first type of promotional elements;
[0017] According to the order of semantic priority, based on the semantics of the characters in the first category of promotional elements, motion effect elements are selected from the first category of promotional elements, wherein the order of semantic priority is the order of at least two of the following semantics: price of the promotion object, content of the promotion activity, and attributes of the promotion object to be advertised.
[0018] In one embodiment of the present application, the dynamic effect element is determined from the promotion elements included in the static template in the following manner:
[0019] Determining that there is no second type of promotional element with a repeated style in the static template;
[0020] If there is a third-category promotional element in the second-category promotional element, the semantics of the characters in the third-category promotional element are obtained, wherein the third-category promotional element is: a promotional element containing characters in the second-category promotional element; based on the semantics of the characters in the third-category promotional element, a motion effect element is selected from the third-category promotional element
[0021] and / or
[0022] If the third type of promotional elements does not exist in the second type of promotional elements, a first preset number of promotional elements are selected from the promotional elements in the second type of promotional elements that are presented in the form of pictures as motion effect elements.
[0023] In one embodiment of the present application, the determining that there is no second-type promotion element of a repeated style in the static template includes:
[0024] Searching for promotion element symbols that are not associated with repeated element symbols from the abstract description formula of the static template, wherein the abstract description formula is used to describe: the promotion elements included in the static template, the number of each promotion element, and whether there is an inclusion relationship between the promotion elements;
[0025] The promotion element represented by the found promotion element symbol is determined as a second type of promotion element having no repeated pattern in the static template.
[0026] In one embodiment of the present application, when it is determined that the number of obtained motion effect elements is greater than or equal to two, after determining the motion effect element from the promotion elements included in the static template based on the ranking of different promotion elements to attract users, the method further includes:
[0027] Calculate and determine the ratio of the total area occupied by the dynamic effect elements in the information promotion interface;
[0028] If the ratio of the total area is greater than a preset ratio threshold, based on the ranking of the attractiveness of different promotional elements to users, the least attractive motion effect element is removed from the determined motion effect elements, and the step of calculating the ratio of the total area occupied by the determined motion effect elements in the information promotion interface is re-executed.
[0029] In one embodiment of the present application, setting the dynamic effect parameters for the dynamic effect element includes:
[0030] Obtaining the element size of the dynamic effect element; if the element size is larger than a first preset size, reducing the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element; if the element size is smaller than a second preset size, increasing the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element; if the element size is smaller than the first preset size and larger than the second preset size, determining the number of presentations and the duration of the dynamic effect of the dynamic effect element to be the default number of presentations and the default duration;
[0031] and / or
[0032] According to the media type of the content in the motion effect element, the motion effect mode of the motion effect element at the appearance stage is determined.
[0033] According to another aspect of an embodiment of the present application, an interface rendering device is provided, the device comprising:
[0034] Template acquisition module, used to obtain static templates of information promotion interface;
[0035] An element determination module, configured to determine a dynamic effect element from the promotion elements included in the static template based on the ranking of different promotion elements in terms of their attractiveness to users;
[0036] A parameter setting module, used to set the dynamic effect parameters for the dynamic effect element;
[0037] An element rendering module is used to render a dynamic effect for the motion effect element based on the motion effect parameters, and to statically render elements in the static template except the motion effect element.
[0038] In one embodiment of the present application, the ranking of the different promotional elements in terms of their attractiveness to users is determined based on at least one of the following information: whether it is a promotional element of a set style, wherein the set style includes: at least one of a preset element appearance, a preset element structure, and a preset element background; the semantics of the text in the promotional element; whether it is a promotional element with a repeated style; whether the content in the promotional element is of a set media type, wherein the set media type is: text type or image type.
[0039] In one embodiment of the present application, dynamic effect elements are determined from the promotional elements included in the static template in the following manner: a first category of promotional elements including texts in the promotional elements included in the static template is determined; the semantics of the texts in the first category of promotional elements are obtained; and dynamic effect elements are selected from the first category of promotional elements in an order of semantic priority based on the semantics of the texts in the first category of promotional elements, wherein the order of semantic priority is an order of at least two of the following semantics: price of the promotion object, content of the promotion activity, and attributes of the promotion object to be promoted.
[0040] In one embodiment of the present application, a motion effect element is determined from the promotional elements included in the static template in the following manner: determine that there are no second-category promotional elements of a repeated style in the static template; if there are third-category promotional elements in the second-category promotional elements, obtain the semantics of the characters in the third-category promotional elements, wherein the third-category promotional elements are: promotional elements containing text in the second-category promotional elements; based on the semantics of the characters in the third-category promotional elements, select motion effect elements from the third-category promotional elements; and / or if there are no third-category promotional elements in the second-category promotional elements, select a first preset number of promotional elements from the promotional elements in the second category that are presented in the form of pictures as motion effect elements.
[0041] In one embodiment of the present application, the element determination module is specifically used to: search for a promotional element symbol that is not associated with a repeated element symbol from the abstract description formula of the static template, wherein the abstract description formula is used to describe: the promotional elements included in the static template, the number of each promotional element, and whether there is an inclusion relationship between the promotional elements; and determine the promotional element represented by the found promotional element symbol as a second type of promotional element that does not have a repeated pattern in the static template.
[0042] In one embodiment of the present application, after determining that there are no second-category promotional elements of a repeated style in the static template, it also includes: if the third-category promotional elements do not exist in the second-category promotional elements, selecting a first preset number of promotional elements from the promotional elements in the second-category promotional elements that are presented in the form of pictures as dynamic effect elements.
[0043] In one embodiment of the present application, when it is determined that the number of obtained motion effect elements is greater than or equal to two, the device further includes: a proportion calculation module, used to calculate the proportion of the total area occupied by the determined motion effect elements in the information promotion interface; an element removal module, used to, when the proportion of the total area is greater than a preset proportion threshold, remove the least attractive motion effect element from the determined motion effect elements based on the ranking of the attractiveness of different promotion elements to users, and re-execute the step of calculating the proportion of the total area occupied by the determined motion effect elements in the information promotion interface.
[0044] In one embodiment of the present application, the parameter setting module is specifically used to: obtain the element size of the motion effect element; if the element size is larger than a first preset size, reduce the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the motion effect element; if the element size is smaller than a second preset size, increase the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the motion effect element; if the element size is smaller than the first preset size and larger than the second preset size, determine the number of presentations and the duration of the dynamic effect of the motion effect element to be the default number of presentations and the default duration; and / or determine the motion effect mode of the appearance stage of the motion effect element according to the media type of the content in the motion effect element.
[0045] According to another aspect of the embodiments of the present application, there is provided an electronic device, including:
[0046] Memory, used to store computer programs;
[0047] The processor is used to implement any of the above-mentioned interface rendering methods when executing the program stored in the memory.
[0048] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any of the above-mentioned interface rendering methods is implemented.
[0049] According to another aspect of the embodiments of the present application, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any of the above-mentioned interface rendering methods.
[0050] Beneficial effects of the embodiments of the present application:
[0051] From the above, it can be seen that the solution provided in the embodiment of the present application is based on the ranking of different promotional elements based on their attractiveness to users. The motion effect elements that need to be dynamically displayed are determined from the promotional elements included in the static template, and the motion effect parameters are configured for the motion effect elements. In this way, dynamic effects can be rendered for the motion effect elements based on the motion effect parameters, thereby realizing the dynamic display of the information promotion interface.
[0052] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] 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, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0054] Figure 1 A flowchart of an interface rendering method provided in an embodiment of the present application;
[0055] Figure 2a A schematic diagram of a first static template provided in an embodiment of the present application;
[0056] Figure 2b A schematic diagram of a second static template provided in an embodiment of the present application;
[0057] Figure 2c A schematic diagram of the dynamic effect of a dynamic element provided in an embodiment of the present application;
[0058] Figure 2d A schematic diagram of a third static template provided in an embodiment of the present application;
[0059] Figure 2e A schematic diagram of another dynamic element provided in an embodiment of the present application;
[0060] Figure 2f A schematic diagram of a fourth static template provided in an embodiment of the present application;
[0061] Figure 2g A schematic diagram of a repetitive pattern element provided in an embodiment of the present application;
[0062] Figure 3 A schematic diagram of the structure of an interface rendering device provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0065] The execution subject of the embodiment of the present application is described below.
[0066] The solution provided in the embodiment of the present application can be applied to electronic devices such as desktop computers, laptops, tablet computers, and smart phones, and can also be applied to information promotion platforms that promote information to users. For ease of description, the execution subject of the interface rendering method provided in the embodiment of the present application is collectively referred to as a rendering platform.
[0067] The interface rendering method provided in the embodiment of the present application is described in detail below.
[0068] In one embodiment of the present application, see Figure 1 A flow chart of an interface rendering method is provided, wherein the method comprises the following steps S101-S104.
[0069] Step S101: Obtain a static template of an information promotion interface.
[0070] Specifically, the rendering platform may obtain a static template of the information promotion interface to be rendered uploaded by the information promoter.
[0071] The information promotion interface may be an advertising interface. The static template of the information promotion interface is a user interface template for information promotion made by the information promoter. Based on the static template, a static image screen can be rendered and presented to the user. For example, see Figure 2a The schematic diagram and Figure 2b A schematic diagram of a second static template is provided. The static template includes a promotional element, and the promotional information in the promotional element may include text and / or images, for example, Figure 2a The elements with the words "Hot-selling Recommendation" are promotional elements that include text. Figure 2a Elements that include beverage images are promotional elements that include images. You can set various styles of borders, backgrounds, etc. for promotional elements, such as Figure 2a Including " The promotional element with the words "9.9 Limited Time Offer" uses a dotted circular border. In addition, different background images can be set for different promotional elements. Promotional elements can also include promotional sub-elements, such as Figure 2bThe promotion element encircled by the dotted ellipse includes three promotion sub-elements, for example, a promotion sub-element including a beverage image, a promotion sub-element including the words "Top1", and a promotion sub-element including the words "Juice Grape".
[0072] Step S102: Based on the ranking of different promotional elements in terms of their attractiveness to users, a dynamic effect element is determined from the promotional elements included in the static template.
[0073] The ranking of different promotional elements in terms of their attractiveness to users is: the ranking order obtained by arranging the promotional elements in advance according to their attractiveness to users. For example, the ranking order may be from high to low in terms of attractiveness, or from low to high in terms of attractiveness.
[0074] The above ranking can be presented in different forms, for example,
[0075] In one case, the above-mentioned sorting may be presented in the form of a file. In this case, the sorting of different promotional elements in terms of their attractiveness to users may be stored in the sorting file. That is, the above-mentioned sorting file records the sorting of different promotional elements in terms of their attractiveness to users. Based on this, when determining the motion effect elements, the rendering platform may import the above-mentioned sorting file into memory, and then search for the above-mentioned sorting from the file that has been imported into memory.
[0076] In another case, the above-mentioned sorting can be presented in the form of a list. In this case, after starting to execute the solution provided by the embodiment of the present application, the above-mentioned sorting can be read into the cache during the parameter initialization stage. Based on this, when determining the motion effect element, the above-mentioned sorting stored in the cache can be directly used to confirm the motion effect element.
[0077] The following describes the implementation method of determining the dynamic effect element in step S102.
[0078] In one implementation, the rendering platform searches for a first preset number of promotional elements in descending order of their attractiveness to users among the promotional elements included in the static template according to the ranking of different promotional elements in terms of their attractiveness to users, and uses the found promotional elements as motion effect elements.
[0079] For example, if the order of attractiveness to users is from high to low: promotional elements with set styles, promotional elements with text semantics as promotional sentences, promotional elements with no repeated styles, and promotional elements of image type, then the rendering platform can search for promotional elements with set styles, promotional elements with text semantics as promotional sentences, promotional elements with no repeated styles, and promotional elements of image type in the promotional elements of the static template in turn. Each time a promotional element is found, it can be determined whether the number of promotional elements found has reached the first preset number. If not, the search will continue until the first preset number of promotional elements is found as the motion effect element.
[0080] For example, the first preset number may be one, so that the most attractive promotion element in the information promotion interface can be highlighted, making the key promotion elements of the information promotion interface more prominent. The first preset number may also be multiple, so that the promotion interface can be more attractive.
[0081] Furthermore, when it is determined that the number of obtained motion effect elements is greater than or equal to two, after determining the motion effect elements in step S102, the rendering platform can also calculate the proportion of the total area occupied by the obtained motion effect elements in the information promotion interface. The proportion of the total area is: the proportion of the total area occupied by each motion effect element to the area of the information promotion interface. Multiple motion effect elements may not overlap with each other. In this case, the total area occupied by each motion effect element is equal to the sum of the areas of each motion effect element. Multiple motion effect elements may overlap with each other. In this case, the rendering platform can determine the total area of the overall element of the superimposed motion effect elements based on the position and size of each motion effect element.
[0082] After the ratio of the total area is calculated, if the ratio of the total area is greater than the preset ratio threshold, based on the ranking of the attractiveness of different promotional elements to users, the least attractive dynamic effect element is removed from the determined dynamic effect elements, and the step of calculating the ratio of the total area occupied by the determined dynamic effect elements in the information promotion interface is re-executed. If the calculated ratio of the total area is still greater than the preset ratio threshold, the least attractive dynamic effect element is continued to be removed from the determined dynamic effect elements, and if the calculated ratio of the total area is less than or equal to the preset ratio threshold, the remaining determined dynamic effect elements are used as the final dynamic effect elements.
[0083] In addition, when the least attractive motion effect element is removed until the number of remaining motion effect elements is one, it is no longer necessary to determine whether the proportion of the total area occupied by the remaining motion effect elements in the information promotion interface is less than a preset proportion threshold, and the remaining motion effect element can be directly used as the final motion effect element.
[0084] In this way, the area occupied by dynamic elements in the information promotion interface can be adjusted to reduce the situation where too much content in the information promotion interface is dynamically rendered, thereby reducing the problem of the information promotion interface not highlighting the key points. By controlling the area occupied by dynamic elements in the promotion interface, the prominence of key content in the information promotion interface can be improved, the attractiveness of dynamic elements to users in the promotion interface can be improved, and the effect of dynamic display of the information promotion interface can be improved.
[0085] The description of the ranking of different promotional elements in terms of their attractiveness to users and other implementations of step S102 will be described in the following embodiments and will not be described in detail here.
[0086] Step S103: setting motion effect parameters for the motion effect element.
[0087] The dynamic effect parameters may include at least one of the following parameters: the appearance stage of the dynamic effect and the dynamic effect mode of the appearance stage, the number of presentations of the dynamic effect, the interval between two adjacent presentations of the dynamic effect, and the duration of the dynamic effect. In this way, a variety of different dynamic effects can be flexibly set for the dynamic effect elements, which can highlight the dynamic effect elements, make the rendered dynamic information promotion interface more diverse, and improve the attractiveness of the information promotion interface to users.
[0088] In one implementation, the rendering platform can set default values for the appearance stage of the dynamic effect, the number of presentations of the dynamic effect, the interval time between two adjacent presentations of the dynamic effect, and the duration of the dynamic effect in the dynamic effect parameters. Then, a random matching method is used to set the dynamic effect method for each appearance stage. For example, for each dynamic effect element, the appearance stage of the dynamic effect can be set to include at least one of the following stages: an entry stage and a loop stage. The dynamic effect method of the entry stage is a randomly matched dynamic effect method in the entry dynamic effect pool, and the dynamic effect method of the loop stage is a randomly matched dynamic effect method in the loop dynamic effect pool. For the entry stage, the number of presentations of the dynamic effect can be set to once by default, and for the loop stage, the default setting can be set to loop until the end of the dynamic effect duration. The interval time between two adjacent presentations of the dynamic effect can be two seconds, etc.
[0089] In addition, the rendering platform may set the dynamic effect appearance stage in the dynamic effect parameters for the dynamic effect element, and the dynamic effect appearance stage may include at least one of the following stages: an entry stage, a cycle stage, and an exit stage, wherein the dynamic effect mode of the exit stage may be configured for the exit stage. For example, the dynamic effect mode of the exit stage may be randomly matched in the exit dynamic effect pool.
[0090] Different animation modes can be set for different appearance stages. For example, different animation pools can be set for each appearance stage. When setting an animation mode for an appearance stage, the animation mode can be determined from the animation pool corresponding to the stage. For example, the entry animation pool corresponding to the entry stage may include at least one of: fade-in effect, center pop-in effect, rotation pop-in effect, expansion effect along a preset direction, movement effect along a preset direction, and gradual enlargement effect.
[0091] The looping motion effect pool in the looping stage may include at least one of: a jelly effect, an amplified shaking effect, a shaking effect, and a vertical inward turning effect.
[0092] The exit animation pool corresponding to the exit stage may include: at least one of a fade-out effect, a center pop-up effect, a rotating pop-up effect, a shrinking effect along a preset direction, a moving effect along a preset direction, and a gradually shrinking effect.
[0093] For example, if Figure 2a Taking the static template provided as an example, the dynamic effect element is determined to contain " 9.9 Limited Time Offer" promotional element, and the corresponding dynamic effect mode of the dynamic effect element in the entry stage is the rotating pop-up effect, and the number of presentations of the dynamic effect is once, and the corresponding dynamic effect mode in the loop stage is the magnification and shaking effect, and the dynamic effect is presented in a loop for 2 seconds, and the interval between the center pop-up effect and the magnification and shaking effect is 0.5 seconds. Then, the effect of the dynamic effect can be seen in Figure 2c A schematic diagram of the motion effect of a dynamic element is provided. The first figure shows that the motion effect element begins to enter the scene according to the motion effect of a rotating pop-up effect. Then, as shown in the second figure, the motion effect element rotates and bounces to the position of the motion effect element. After the motion effect element completes the entry stage according to the rotating pop-up effect, an interface as shown in the third figure can be seen. After an interval of 0.5 seconds, the dynamic effect of the motion effect element begins to enter the loop stage. As shown in the fourth figure, the motion effect element presents an amplified and jittering effect.
[0094] In another implementation, specifically, after determining the motion effect elements, the rendering platform can rank the attractiveness of the motion effect elements according to the rank of the attractiveness of different promotional elements to users, and then configure motion effect parameters for the motion effect elements according to the rank of the attractiveness of the motion effect elements, so that the motion effect elements are displayed in order from high to low attractiveness. For example, the configured motion effect parameters may also include the order in which the motion effect elements display the motion effects.
[0095] In yet another implementation, the rendering platform may configure motion effect parameters for the motion effect elements according to the attribute information of each motion effect element.
[0096] The rendering platform can set the animation parameters for the animation element in the following way 1 and / or way 2:
[0097] Method 1
[0098] The rendering platform obtains the size information of the dynamic element.
[0099] If the element size is larger than the first preset size, the default number of presentations and the default duration of the dynamic effect are reduced to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element. If the element size is smaller than the second preset size, the default number of presentations and the default duration of the dynamic effect are increased to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element. If the element size is smaller than the first preset size and larger than the second preset size, the number of presentations and the duration of the dynamic effect of the dynamic effect element are determined to be the default number of presentations and the default duration.
[0100] Among them, when the element size is equal to the first preset size, the rendering platform can reduce the default presentation times and default duration of the dynamic effect to set the motion effect parameters, or use the default presentation times and default duration to set the motion effect parameters. When the element size is equal to the second preset size, the rendering platform can increase the default presentation times and default duration of the dynamic effect to set the motion effect parameters, or use the default presentation times and default duration to set the motion effect parameters.
[0101] The following describes a method for determining the size relationship of an element relative to a preset size.
[0102] In one embodiment, the preset size may include a preset width along the horizontal direction of the display interface and a preset height along the horizontal direction of the display interface. The rendering platform may obtain the maximum element width along the horizontal direction of the display interface and the maximum element height along the horizontal direction of the display interface as the size information of the animation element. The rendering platform compares the maximum element width with the preset width and the maximum element height with the preset height. There are three situations:
[0103] Case 1: If the maximum element width is greater than the preset width and / or the maximum element height is greater than the preset height, the element size is greater than the preset size.
[0104] Case 2: If the maximum element width is less than the preset width and the maximum element height is less than or equal to the preset height, or the maximum element width is less than or equal to the preset width and the maximum element height is less than the preset height, the element size is less than the preset size.
[0105] Case 3: If the maximum element width is equal to the preset width and the maximum element height is equal to the preset height, the element size is equal to the preset size.
[0106] In another manner, the preset size may include a preset area. The rendering platform may obtain the element area of the motion effect element as the size information of the motion effect element. The rendering platform compares the element area with the preset area. If the element area is greater than the preset area, the element size is greater than the preset size; if the element area is equal to the preset area, the element size is equal to the preset size; if the element area is less than the preset area, the element size is less than the preset size.
[0107] The following describes how to increase or decrease the default number of rendering times and the default duration of dynamic effects.
[0108] In one method, a preset number adjustment value and a preset time adjustment value can be set, and the default number of presentations and the default duration can be adjusted based on the preset number adjustment value and the preset time adjustment value. For example, in the case of increasing the default number of presentations, the default number of presentations is added to the preset number adjustment value. In the case of reducing the default number of presentations, the default number of presentations is subtracted from the preset number of adjustment values. For another example, assuming that the default duration is 2 seconds and the preset time adjustment value is 0.5 seconds, in the case of increasing the default duration, the sum of 2 and 0.5 is calculated to obtain 2.5 seconds, and the duration of the dynamic effect of the motion effect element is set to 2.5 seconds.
[0109] In another way, a preset number adjustment coefficient and a preset time adjustment coefficient can be set, and the default presentation times and default duration can be adjusted based on the preset number adjustment coefficient, the preset time adjustment coefficient, and the interpolation of the element size and the preset size. For example, when the element size is larger than the first preset size and the default presentation times are increased, the absolute value of the difference between the element size and the first preset size is multiplied by the preset number adjustment coefficient to calculate the number adjustment value, and the default presentation times and the number adjustment value are added. When the element size is smaller than the second preset size and the default presentation times are reduced, the absolute value of the difference between the element size and the second preset size is multiplied by the preset number adjustment coefficient to calculate the number adjustment value, and the default presentation times are subtracted from the number adjustment value. Among them, when the element size and the preset size include multiple numbers, the difference between the element size and the first preset size and the difference between the element size and the second preset size can select the difference with the largest value.
[0110] Method 2
[0111] The rendering platform determines the animation method for the appearance stage of the animation element according to the media type of the content in the animation element. Specifically, a correspondence relationship between the media type and the animation method for the appearance stage can be established in advance. After the rendering platform determines the animation element, it determines the animation method for the appearance stage corresponding to this media type according to the media type of the content in the animation element. If the number of determined animation methods for the appearance stage is multiple, one is randomly selected from the determined animation methods for the appearance stage as the animation method for the appearance stage of the animation element.
[0112] For example, for an animation element with a media type of image type, the determined animation methods corresponding to the entry stage may include at least one of fade-in and fade-out effects, center bounce-in effect, rotation bounce-in effect, rightward expansion effect, circular effect. The determined animation methods corresponding to the loop stage may include at least one of jelly effect, zoom jitter effect, shake effect. Similarly, for an animation element with a media type of text type, the determined animation methods corresponding to the entry stage may include at least one of fade-in and fade-out effects, center bounce-in effect, rotation bounce-in effect, rightward expansion effect, circular effect, text moving rightward in sequence, text moving downward in sequence, text gradually zooming in effect. For example, for an animation element with a media type of text type, the determined animation method corresponding to the entry stage is the effect of text moving downward in sequence. As, taking the static template shown in the schematic diagram of the third static template provided Figure 2d as an example, if the determined animation element is the promotion element with the words "During the event, members enter the store and buy one get one free" in the figure, then the set animation method corresponding to the entry stage, which is the effect of text moving downward in sequence, can refer to Figure 2e the animation schematic diagram of another dynamic element provided. Figure 2e In the first two figures in, to more clearly show the effect of text moving downward in sequence in the dynamic element, the text in the promotion element containing "classics will last forever" is not shown for easy viewing. Figure 2e In, the text of "During the event, members enter the store and buy one get one free" moves downward in sequence from top to bottom until each piece of text moves to its corresponding position.
[0113] In this way, the animation parameters of the animation element can be flexibly adjusted according to information such as the size and content of the animation element, so that the animation element can be displayed with diverse dynamic effects, making the rendered dynamic information promotion interface more attractive to users.
[0114] Step S104: Render dynamic effects for the animation element based on the animation parameters, and statically render the elements in the static template other than the animation element.
[0115] In one implementation, when setting the motion effect parameters for the motion effect element including the appearance stage, the motion effect mode of the appearance stage, the interval time, and the number of presentations of the dynamic effect, in the appearance stage of the dynamic effect, the dynamic effect is rendered a preset number of times in the motion effect mode of the appearance stage according to the interval time between two adjacent presentations of the dynamic effect, wherein each rendered dynamic effect lasts for a preset time.
[0116] Furthermore, the rendering platform can statically render the elements in the static template except the motion effect elements in the first layer, and render dynamic effects for the motion effect elements based on the motion effect parameters in the second layer on the first layer.
[0117] From the above, it can be seen that the solution provided in the embodiment of the present application is based on the ranking of different promotional elements based on their attractiveness to users. The motion effect elements that need to be dynamically displayed are determined from the promotional elements included in the static template, and the motion effect parameters are configured for the motion effect elements. In this way, dynamic effects can be rendered for the motion effect elements based on the motion effect parameters, thereby realizing the dynamic display of the information promotion interface.
[0118] The following is an explanation of the information used to determine the ranking of the attractiveness of different promotional elements to users.
[0119] The ranking of different promotional elements in terms of their attractiveness to users may be determined based on at least one of the following information: whether it is a promotional element of a set style, the semantics of the characters in the promotional element, whether it is a promotional element of repeated style, or whether it is a promotional element of a set media type.
[0120] 1. Is it a promotional element with a set style?
[0121] The promotional element with a set style is a promotional element with a specified appearance, and the set style includes: at least one of a preset element shape, a preset element structure, and a preset element background. Then, the promotional element with a set style can be a promotional element that satisfies at least one of the following conditions: the element structure in the promotional element is a preset element structure, the element shape in the promotional element is a preset element shape, and the element background in the promotional element is a preset element background. Among them, the element shape represents the shape of the promotional element, the element structure represents the layout structure of the sub-elements contained in the promotional element, wherein the layout structure of the sub-elements can be represented by the position and size of the sub-elements, and the element background includes at least one of the background image, background color, and background fill in the promotional element. For example, the element shape may include at least one of a star, a bubble shape, a crown shape, a circle, and a triangle. For another example, the element structure may be: the upper left corner and the lower left corner of the promotional element are respectively provided with the same Figure 2b The position and size of the "Top1" and "Juice Grapes" sub-elements in the middle are controlled by the sub-elements, and the same sub-elements are set on the right side of "Top1" and "Juice Grapes". Figure 2bThe position and size of the cup sub-element on the right side of "Top1".
[0122] When determining whether it is a promotional element of a set style, it can be determined based on the preset setting style whether the element structure, element appearance and element background of each promotional element matches the set style. If any of the above element structure, element appearance and element background can match the set style, then the promotional element is determined to be a promotional element of the set style.
[0123] For example, if the preset element shape of the set style is a bubble shape, such as Figure 2d The bubble-shaped promotion element shown in the figure is a promotion element with a set style. If the preset element shape of the set style is a star shape, such as Figure 2f The star-shaped promotion element in the schematic diagram of the fourth static template provided is a promotion element of a set style.
[0124] For another example, the preset element structure of the set style is: the upper left corner and the lower left corner of the promotion element are respectively set with the same Figure 2b The position and size of the "Top1" and "Juice Grapes" sub-elements in the middle are controlled by the sub-elements, and the same sub-elements are set on the right side of "Top1" and "Juice Grapes". Figure 2b The position and size of the cup sub-element on the right side of "Top1" in the example. Figure 2b In the static template shown, it can be confirmed that the three promotion elements including the words "Top1", "Top2" and "Top3" respectively are all promotion elements of the preset element structure.
[0125] Information promoters usually set information that they want to highlight and emphasize in promotional elements with set styles. Such information is usually more attractive to users. In addition, the appearance of promotional elements with set styles is usually more specific and special, which is more attractive to users. Therefore, promotional elements with set styles are usually more attractive to users.
[0126] 2. The semantics of the characters in the promotion element
[0127] Specifically, semantic analysis can be performed on the characters in the elements to obtain semantic information of the characters in the promotion elements. For example, the semantic information of the characters in the promotion elements can be extracted using a semantic analysis model. Furthermore, based on the semantic information, the category of the promotion object description information to which the promotion element text information belongs can be determined, and the determined category of the promotion object description information can be used as the semantic category. Promotion information with different semantics in the promotion template has different appeal to users. For example, users usually pay more attention to promotion information in the price semantic category. Based on the determined semantic category of the characters in the promotion element, the degree of appeal of the characters in the promotion element to users can be determined.
[0128] For promotion templates with different promotion themes, the information that is more attractive to users is also different. Therefore, different attractiveness rankings can also be set according to the promotion theme of the promotion template. For example, for a static template with a promotion theme of catering, if the semantic category of the text in the promotion element is text information describing the price of catering products or text information describing promotional activities, then the promotion element is more attractive to users. For another example, for a static template with a promotion theme of electronic products. If the semantic category of the text in the promotion element is: text information describing the price of electronic products, text information describing promotional activities, or text information describing the hardware of electronic products, then the promotion element is more attractive to users. For another example, for a static template with a promotion theme of books. If the semantic category of the text in the promotion element is text information describing the author of the book, then the promotion element is more attractive to users. It can be seen that the attractiveness of the promotion element to users can be determined based on the semantics of the text in the promotion element.
[0129] 3. Whether it is a promotional element with repeated style
[0130] The promotional elements with repeated styles may be promotional elements whose element structure similarity is greater than a preset threshold. Figure 2d A schematic diagram of a promotional element with repeated patterns is provided. Figure 2d Only promotional elements with repeated styles are shown, and the text information in the figure is ignored. Figure 2b The three promotional elements marked with dotted ovals are promotional elements with repeated styles, the five promotional elements marked with dotted boxes are promotional elements with repeated styles, and the two promotional elements marked with hexagons are promotional elements with repeated styles. In addition, in each promotional element marked with a dotted box, the promotional sub-elements in the promotional element also include promotional elements with repeated styles. For example, in each promotional element marked with a dotted box, the promotional sub-elements marked with a solid box in the promotional element are also promotional elements with repeated styles. A lower attractiveness ranking can be set for promotional elements with repeated styles. Promotional elements with repeated styles usually lack differentiation and are more likely to be visually monotonous and boring. For users who watch promotional elements with repeated styles, it is easy to make users feel numb and tired.
[0131] The method of determining promotional elements with repeated styles is described in the following embodiments and will not be described in detail here.
[0132] 4. Is the content in the promotion element of the set media type?
[0133] Specifically, it can be determined whether the promotional element in the static template includes the content of the set media type, and then determine whether the promotional element is a promotional element of the set media type. For example, the promotional element of the set media type can be: an image type promotional element or a text type promotional element. Generally, image information is richer and more colorful, and it is easier to attract users. In this case, the promotional element of the set media type can be set to be more attractive. For example, if the media type is set to be an image type, then when determining whether it is a promotional element of the image type, it can be determined whether the promotional element is a promotional element of the set media type based on whether the promotional element includes an image. In the case of a large number of images in the static template, the information in the image is more messy, and the user is prone to fatigue when watching the numerous images in the static template. In this case, clear text is usually more prominent. In this case, the promotional element of the set media type can be set to be more attractive.
[0134] The following is an explanation of the method for determining the ranking of different promotional elements in terms of their attractiveness to users.
[0135] Method 1
[0136] The promotion object, media type, semantic information and user portrait of the users in the static template will affect the ranking of the promotion elements in the static template in terms of their attractiveness to users. Therefore, for each static template, the ranking of the promotion elements corresponding to the static template in terms of their attractiveness to users can be set. For example, the ranking of the promotion elements in terms of their attractiveness to users can be preset in descending order: promotion elements with set styles, promotion elements with text semantics as promotional sentences, promotion elements with no repeated styles, and promotion elements of image type.
[0137] Method 2
[0138] Static templates of different themes have different characteristics, so the ranking of promotional elements in static templates of different themes that are attractive to users is also different. For different promotional themes, you can set the ranking of the promotional elements corresponding to each promotional theme that are attractive to users, and record the correspondence between each promotional theme and the attractiveness ranking. When the rendering platform obtains a static template, you can obtain the promotional theme of the static template, and based on the promotional theme of the template and the above correspondence, determine the ranking of the promotional elements corresponding to the promotional theme of the template that are attractive to users. Among them, the promotional theme is the theme of the static template promotion information. For example, the promotional theme can include: physical goods, film and television, travel, entertainment, and at least one of various services.
[0139] For example, the correspondence between different promotional themes and attractiveness rankings can be as follows: for a static template with a restaurant theme, the price of the restaurant and the image of the restaurant are more attractive, so the attractiveness ranking corresponding to the preset restaurant theme is ranked from high to low as follows: promotional elements whose text semantics are price information, promotional elements whose text semantics are restaurant image type, promotional elements with a set style, and promotional elements with no repeated style. For a static template with a movie theme, information such as the starring actor and director of the movie is more attractive, so the attractiveness ranking corresponding to the preset movie theme is ranked from high to low as follows: promotional elements whose text semantics are information about the starring actor or director, promotional elements whose text semantics are price information, promotional elements of image type, promotional elements with a set style, and promotional elements with no repeated style.
[0140] The following is an explanation of how to determine the promotion theme of a static template.
[0141] In one implementation, the rendering platform can use optical character recognition technology to recognize text in an image. Based on the recognized text, if the image is recognized to include text information, the semantic information of the text is determined, and then the promotion theme of the static template is determined based on the correspondence between the preset semantic category and the promotion theme.
[0142] If text information cannot be recognized in the image, the rendering platform can use image semantic recognition technology to perform semantic analysis on the image in the static template, determine the semantic category of the image in the static template, and then determine the promotion theme of the static template based on the correspondence between the preset semantic category and the promotion theme.
[0143] In another implementation, the rendering platform can directly identify whether there is text in the static template. If so, it can perform semantic analysis on the text in the static template to determine the semantic category of the text, and then determine the promotion theme of the static template based on the correspondence between the preset semantic category and the promotion theme.
[0144] From the above, it can be seen that determining the ranking of different promotional elements in terms of their attractiveness to users based on different information is to consider the attractiveness of promotional elements to users from different factors affecting attractiveness. The ranking of promotional elements in terms of their attractiveness to users determined from more comprehensive factors affecting attractiveness is more accurate. The dynamic effect elements determined in this way are promotional elements that are more attractive to users in static templates, thereby making the rendered dynamic information promotion interface more attractive to users.
[0145] Other implementation methods of determining the dynamic effect element in step S102 are described below.
[0146] Embodiment 1
[0147] The rendering platform determines the motion effect element from the promotion elements included in the static template in the following manner: determine the first category of promotion elements including text in the promotion elements included in the static template. Obtain the semantics of the text in the first category of promotion elements. Select the motion effect element from the first category of promotion elements based on the semantics of the text in the first category of promotion elements in accordance with the semantic priority order. The semantic priority order can characterize the order in which promotion elements of different semantic categories are attractive to users.
[0148] Specifically, the rendering platform may determine that the promotional elements whose element contents include text are the first-category promotional elements. Then, the element contents including text are semantically parsed to obtain the semantic category to which the text included in the promotional element belongs, and according to the priority of the obtained semantic category to which the text belongs in the semantic priority order, the motion effect element is selected from the first-category promotional elements.
[0149] The semantic priority order is explained below.
[0150] The semantic priority order is the order of at least two of the following semantics: the price of the promotion object, the content of the promotion activity, and the attributes of the promotion object to be promoted.
[0151] The semantic priority order can be set from high to low: the price of the promotion object, the content of the promotion activity, and the attributes of the object to be promoted of the promotion object. For example, for a static template for information promotion of single products and / or multiple products, the dynamic effect elements can be determined in priority according to the above semantic priority order, and the elements including the text of the price of the promotion object that are more attractive to users can be displayed dynamically, which meets the user's focus, so that the effect of the rendered dynamic information promotion interface is better. In addition, the semantic priority order can also be set from high to low: the attributes of the object to be promoted of the promotion object, the price of the promotion object, and the content of the promotion activity. For example, for a static template for information promotion of a newly launched brand-new product, the dynamic effect elements can be determined in priority according to the above semantic priority order. The promotion element of the semantic category of the attributes of the object to be promoted of the promotion object is a slogan that describes the product characteristics of the object to be promoted in the static template. For example, for electronic product promotion objects, the promotion element belonging to the semantic category of the attributes of the object to be promoted of the promotion object can be: a promotion element including a slogan that describes at least one of the performance, hardware, functions and appearance characteristics of the electronic product. As another example, for food promotion objects, the promotional elements belonging to the semantic category of the attributes of the promotional object to be promoted may be promotional elements that include slogans describing at least one of the food taste, mouthfeel, and ingredients. The dynamic display of the new features of new products is more in line with the user's focus and increases the attractiveness of the promotional interface rendered by the interface. In this way, according to the semantic priority order determined by the price of the promotional object, the content of the promotional activity, and the attributes of the promotional object to be promoted, a more accurate ranking of the attractiveness of different promotional elements to users can be determined, and then dynamic elements can be selected from the promotional elements containing text, so that promotional elements that attract users can be selected more accurately, thereby increasing the attractiveness of the dynamic information promotion interface.
[0152] In another case, the semantic priority order can be determined according to the promotion theme of the static template. Corresponding semantic priority orders can also be set for different promotion themes. For example, when the promotion theme is a movie, the semantic priority order can be set in sequence as follows: the attributes of the object to be promoted of the promotion object, the content of the promotion activity, and the price of the promotion object. In this way, the determined motion effect elements are more in line with the user's focus on the promotion object and the promotion theme, making the motion effect elements more attractive. Among them, the semantic category and the promotion theme can refer to the above description of the semantics of the text in the promotion element. The semantic category of the promotion element may include the category of the promotion object description information to which the promotion element text information belongs. For example, the semantic category may include: at least one of: text information describing the price of the promotion object, text information describing the attributes of the object to be promoted of the promotion object, and text information describing the content of the promotion activity.
[0153] From the above, it can be seen that by selecting motion elements based on the semantics of the text in the promotional elements including text in the order of semantic priority, it is possible to more accurately determine the promotional elements that are attractive to users from the static templates as motion elements, so that the rendered dynamic information promotion interface is more able to attract the user's attention.
[0154] Embodiment 2
[0155] The rendering platform may determine the dynamic effect element from the promotional elements included in the static template in the following manner 1 and / or manner 2:
[0156] Method 1
[0157] The rendering platform determines the dynamic effect elements from the promotional elements included in the static template according to the following steps 1, 2, and 3:
[0158] Step 1: Identify the second type of promotional elements that do not have duplicate styles in the static template.
[0159] In one implementation, a promotional element symbol that is not associated with a repeated element symbol is searched from the abstract description of the static template, and the promotional element represented by the searched promotional element symbol is determined as a second type of promotional element that does not have a repeated pattern in the static template.
[0160] The abstract description formula is used to describe: the promotion elements included in the static template, the number of each promotion element, and whether there is an inclusion relationship between the promotion elements.
[0161] For example, in the abstract description, A represents a promotional element whose semantics is the content of the promotional activity, B represents a promotional element whose presentation form is a picture, C represents a promotional element whose semantics is the name of the promotion object, D represents a promotional element whose semantics is the category of the promotion object, E represents a promotional element whose semantics is the price of the promotion object, and F represents a promotional element whose semantics is other. Figure 2g A schematic diagram of a repeating style element provided for Figure 2gThe static template shown can be described in an abstract manner as follows: A+B+E+[C×3]+[D+[C+E×2]×4]×3+[[C+E×2]×5]×2+[F×2], where the multiplication sign "×" can be regarded as a repeated element symbol, and the letters on the left side of "×" represent the semantic category of the promotional element of the repeated pattern. The number on the right side of "×" is the number of repetitions of the repeated pattern. If the multiplication sign "×" is multiplied by an integer greater than 1, then the promotional element represented by the letter on the left side of "×" or in the left curly bracket is the promotional element associated with the repeated element symbol. The promotional element associated with the repeated element symbol is a repeated element. On the contrary, the promotional element that is not on the left side of the multiplication sign "×" or in the left curly bracket and is not associated with the repeated element symbol is a promotional element that does not have a repeated pattern. For example, in “[D+[C+E×2]×4]×3”, the left side curly brackets of the multiplication sign of “×3” include D, C, and E, so the repeated element symbol in “×3” is associated with the extended elements represented by D, C, and E; the left side curly brackets of the multiplication sign of “×4” include C and E, so the repeated element symbol in “×4” is associated with the extended elements represented by C and E; the left side of the multiplication sign of “×2” is E, so the repeated element symbol in “×2” is associated with the extended element represented by E. Figure 2g In the example, the promotional element with the words "Hot and Best Seller" is a promotional element with the semantics of the promotional activity, and there is no promotional element with a similar style to this promotional element in the static template, which is "A" in the abstract description. The promotional element with the beverage image in the lower left corner of the product template is a promotional element with the presentation form of a picture, and there is no promotional element with a similar style to this promotional element in the static template, which is "B" in the abstract description. The promotion element "18" is a promotion element with the text containing the semantics of the promotion object price, and there is no promotion element with a similar style to the promotion element in the static template, that is, "E" in the abstract description. The promotion elements with the words "juicy grapes", "icy orange juice" and "mint ice lemon" are promotion elements with the text containing the semantics of the promotion object name, and there are three promotion elements with similar styles in the figure, that is, "[C×3]" in the abstract description. The promotion elements with the words "fruit tea series", "milk tea series" and "lemon series" are promotion elements with the text containing the semantics of the promotion object category, and each promotion element with the semantics of the promotion object category also contains It includes four groups of name-price elements, where each group of elements includes one promotion element with the semantics of the name of the promotion object and two promotion elements with the semantics of the price of the promotion object. It can be seen from the figure that there are three promotion elements with similar styles including the promotion element with the semantics of the promotion object category and the four groups of name-price elements, that is, "[D+[C+E×2]×4]×3" in the abstract description. Then, under the product catalog, there are two promotion elements with similar styles including five groups of name-price elements, that is, "[C+E×2]×5]×2" in the abstract description. In addition, in the lower right corner of the product catalog, there are also two promotion elements with other semantics, that is, "[F×2]" in the abstract description. In addition, Figure 2a-2g The slogans, dish names, etc. contained in the figure are only examples. For example, the words "Crafted with Craftsmanship | Adhere to Fresh Ingredients", "Limited Time Offer", "Popular and Best-Seller", "Coffee and Milk Tea", "Spicy Beef Burger", "American Crispy Sausage Pizza", etc. in the figure do not limit the embodiments of the present application and do not need to be paid attention to.
[0162] The following describes the method of constructing an abstract description through steps 1-1 to 1-5.
[0163] Step 1-1: Obtain the inclusion relationship of each promotion element in the static template, wherein the promotion element included by other promotion elements can be called a sub-element of the above other promotion elements.
[0164] Step 1-2: According to the above inclusion relationship, find the promotion element in the static template that is not included by any other promotion element as the first promotion element.
[0165] Step 1-3: Search for the first promotional element whether there is a first promotional element whose typesetting style similarity is within the style similarity threshold, and use it as a repeated first promotional element. If there is no repeated first promotional element, determine that there is no promotional element with a repeated style between the found first promotional elements, and record the semantics of the found first promotional element. If there is a repeated first promotional element, record the repeated first promotional element as a promotional element with a repeated style, and record the semantics of the repeated first promotional element.
[0166] Step 1-4: In the case that the current first promotion element contains sub-elements, for each first promotion element, determine the sub-elements contained in the first promotion element and not contained in other elements outside the first promotion element, as the latest first promotion element, and return to step 1-3 until the first promotion element found does not contain sub-elements.
[0167] Step 1-5: Construct an abstract description based on the non-repeating promotion elements, the repeating promotion elements and the semantics corresponding to the promotion elements found in the above process.
[0168] Based on the pre-constructed abstract description formula, the promotion element symbol within the repeated element symbol is determined, and then the promotion element represented by the promotion element symbol is determined to be a promotion element without a repeated style. In this way, the promotion element without a repeated style can be determined more quickly and accurately, thereby improving the efficiency of rendering the information promotion interface.
[0169] Step 2: Obtain the semantics of the characters in the third type of promotion elements.
[0170] Among them, the third category of promotional elements is: promotional elements containing text in the second category of promotional elements.
[0171] Specifically, the rendering platform performs semantic analysis on the Chinese characters in the third category of promotion elements to obtain the semantics of the Chinese characters in the third category of promotion elements.
[0172] Step 3: Based on the semantics of the characters in the third category of promotional elements, select motion effect elements from the third category of promotional elements.
[0173] In one implementation, the rendering platform may determine that the semantics of the characters in the third-category promotional elements are promotional sentences as the third-category promotional elements. If it is determined that the semantics of the third-category promotional elements are not promotional sentences, a first preset number of promotional elements may be selected from the promotional elements in the second-category promotional elements that are presented in the form of pictures as the motion effect elements. If the semantics of the characters in the third-category promotional elements are not promotional sentences, the third-category promotional elements belonging to the promotion object classification information in the third-category promotional elements may be selected as the motion effect elements.
[0174] In another implementation, the rendering platform may select a first preset number of promotional elements as motion effect elements in an order of semantic priority based on the semantics of characters in the third category of promotional elements.
[0175] In another implementation, the rendering platform may determine, based on the promotion theme of the static template, third-category promotion elements whose semantic similarity with the promotion theme is greater than a preset similarity threshold as dynamic effect elements.
[0176] In this way, by identifying the semantics of promotional elements that do not have repeated styles in static templates, it is possible to more accurately exclude elements that do not need to be highlighted, determine the dynamic elements that are attractive to users, and flexibly determine more appropriate dynamic elements based on the needs of information promotion, so that the rendered dynamic information promotion interface is more effective.
[0177] Furthermore, after the above step 1, if there is no third-category promotional element in the second-category promotional element, a first preset number of promotional elements are selected from the second-category promotional elements as motion effect elements.
[0178] Method 2
[0179] The rendering platform determines the dynamic effect elements from the promotional elements included in the static template according to the following steps 1 and 4:
[0180] Step 1: Identify the second type of promotional elements that do not have duplicate styles in the static template.
[0181] Step 4: If the third category of promotional elements does not exist in the second category of promotional elements, a first preset number of promotional elements are selected from the promotional elements in the second category of promotional elements that are presented in the form of pictures as motion effect elements.
[0182] In the case where the second category of promotional elements includes promotional elements presented in the form of pictures, the rendering platform can perform image semantic recognition on the pictures, identify the semantic information of the images in each second category of promotional elements, and select the first preset number of promotional elements with the highest to lowest similarity as the dynamic effect elements based on the similarity between the image semantics and the promotional theme to which the static template belongs. The semantic information of the image can be obtained through a pre-trained image semantic recognition model.
[0183] In this way, when it is difficult to determine the elements that most need to be dynamically displayed, the promotional elements relative to the attractive pictures can also be used as dynamic elements, which can reasonably highlight the key promotional elements and improve the effect of rendering the dynamic information promotion interface.
[0184] The second type of promotional elements without repeated styles are preferentially determined by using the method of the second embodiment. Then, if there are promotional elements containing text in the second type of promotional elements, the dynamic effect elements are preferentially selected according to the semantics of the text in the second type of promotional elements. If there are no promotional elements containing text in the second type of promotional elements, the dynamic effect elements are selected from the promotional elements presented in the form of pictures. It can be seen that the second embodiment determines the dynamic effect elements in the order of "the attractiveness of different promotional elements to users is from high to low: promotional elements without repeated styles, promotional elements with text semantics of preset semantic types, and promotional elements presented in the form of pictures". In step 1, it is determined that the second type of promotional elements obtained are "promotional elements without repeated styles". Then, on the basis of "promotional elements without repeated styles", if there are third promotional elements containing text in the second type of promotional elements, the semantics of the Chinese characters of the third promotional elements are obtained, and then the dynamic effect elements are selected from the third type of promotional elements based on the semantics of the text. In this way, dynamic effect elements that meet both the "promotional elements without repeated styles" and the "promotional elements with text semantics of preset semantic types" can be selected. When there is no third promotional element containing text in the second category of promotional elements, a promotional element presented as a picture is selected from the second category of promotional elements. In this way, a dynamic effect element that meets both the requirements of "promotional elements with no repeated styles" and "promotional elements presented as pictures" can be selected.
[0185] When the rendering platform obtains a static template, it can determine the ranking of the promotional elements corresponding to the static template in terms of their attractiveness to users, and then determine the dynamic effect elements in different ways according to the specific order of the ranking. For example, if it is determined that the ranking of the promotional elements in terms of their attractiveness to users includes "the attractiveness of different promotional elements to users is ranked from high to low: promotional elements that are not repeated in style, promotional elements whose text semantics are of a preset semantic type, and promotional elements whose presentation form is a picture", the dynamic effect elements can be determined according to the above-mentioned embodiment 2.
[0186] Embodiment 3
[0187] In one embodiment of the present application, the rendering platform can search for promotional elements of a set style from a static template. If found, it is determined that the promotional elements of the set style are dynamic elements. If not found, the rendering platform searches for dynamic elements in the promotional elements of the static template based on the template type of the static template and the ranking of different promotional elements in terms of their attractiveness to users.
[0188] For example, if the attribute information of the static template indicates that the static template is a single product / multi-product promotion type static template, the motion effect element can be determined using the method of the first embodiment above. If the motion effect element cannot be determined using the method of the first embodiment, the motion effect element can be determined using the method of the second embodiment.
[0189] If the attribute information of the static template indicates that the static template is a static template of a catalog promotion type, the method of the above-mentioned second embodiment may be used to determine the dynamic effect element.
[0190] Corresponding to the above-mentioned interface rendering method, an embodiment of the present application provides an interface rendering device.
[0191] In one embodiment of the present application, see Figure 3 A schematic diagram of the structure of an interface rendering device is provided, the device comprising:
[0192] The template acquisition module 301 is used to obtain a static template of the information promotion interface;
[0193] The element determination module 302 is used to determine the dynamic effect element from the promotion elements included in the static template based on the ranking of different promotion elements in terms of their attractiveness to users.
[0194] The parameter setting module 303 is used to set the dynamic effect parameters for the dynamic effect element.
[0195] The element rendering module 304 is used to render dynamic effects for the motion effect elements based on the motion effect parameters, and statically render the elements in the static template except the motion effect elements.
[0196] From the above, it can be seen that the solution provided in the embodiment of the present application is based on the ranking of different promotional elements based on their attractiveness to users. The motion effect elements that need to be dynamically displayed are determined from the promotional elements included in the static template, and the motion effect parameters are configured for the motion effect elements. In this way, dynamic effects can be rendered for the motion effect elements based on the motion effect parameters, thereby realizing the dynamic display of the information promotion interface.
[0197] In one embodiment of the present application, the ranking of different promotional elements in terms of their attractiveness to users is determined based on at least one of the following information: whether it is a promotional element of a set style, wherein the set style includes: at least one of a preset element appearance, a preset element structure, and a preset element background; the semantics of the text in the promotional element; whether it is a promotional element with a repeated style; whether the content in the promotional element is of a set media type, wherein the set media type is: text type or image type.
[0198] From the above, it can be seen that determining the ranking of different promotional elements in terms of their attractiveness to users based on different information is to consider the attractiveness of promotional elements to users from different factors affecting attractiveness. The ranking of promotional elements in terms of their attractiveness to users determined from more comprehensive factors affecting attractiveness is more accurate. The dynamic effect elements determined in this way are promotional elements that are more attractive to users in static templates, thereby making the rendered dynamic information promotion interface more attractive to users.
[0199] In one embodiment of the present application, dynamic effect elements are determined from the promotional elements included in the static template in the following manner: determine a first category of promotional elements including text in the promotional elements included in the static template; obtain the semantics of the text in the first category of promotional elements; and select dynamic effect elements from the first category of promotional elements based on the semantics of the text in the first category of promotional elements in an order of semantic priority, wherein the order of semantic priority is an order of at least two of the following semantics: price of the promotion object, content of the promotion activity, and attributes of the promotion object to be promoted.
[0200] From the above, it can be seen that by selecting motion elements based on the semantics of the text in the promotional elements including text in the order of semantic priority, it is possible to more accurately determine the promotional elements that are attractive to users from the static templates as motion elements, so that the rendered dynamic information promotion interface is more able to attract the user's attention.
[0201] In one embodiment of the present application, dynamic effect elements are determined from the promotional elements included in the static template in the following manner: determine that there are no second-category promotional elements of a repeated style in the static template; if the third-category promotional elements exist in the second-category promotional elements, obtain the semantics of the characters in the third-category promotional elements, wherein the third-category promotional elements are: promotional elements containing text in the second-category promotional elements; based on the semantics of the characters in the third-category promotional elements, select dynamic effect elements from the third-category promotional elements; and / or if the third-category promotional elements do not exist in the second-category promotional elements, select a first preset number of promotional elements from the promotional elements in the second category that are presented in the form of pictures as dynamic effect elements.
[0202] In this way, by identifying the semantics of promotional elements that do not have repeated styles in static templates, it is possible to more accurately exclude elements that do not need to be highlighted, determine the dynamic effect elements that are attractive to users, and flexibly determine more appropriate dynamic effect elements based on the needs of information promotion, so that the rendered dynamic information promotion interface is more effective. In this way, when it is difficult to determine the elements that most need to be dynamically displayed, promotional elements that are relatively attractive pictures can also be used as dynamic effect elements, which can reasonably highlight the key promotional elements and improve the effect of rendering dynamic information promotion interfaces.
[0203] In one embodiment of the present application, the element determination module 302 is specifically used to: search for promotional element symbols that are not associated with repeated element symbols from the abstract description formula of the static template, wherein the abstract description formula is used to describe: the promotional elements included in the static template, the number of each promotional element, and whether there is an inclusion relationship between the promotional elements; and determine the promotional element represented by the found promotional element symbol as a second type of promotional element that does not have a repeated pattern in the static template.
[0204] Based on the pre-constructed abstract description formula, the promotion element symbol within the repeated element symbol is determined, and then the promotion element represented by the promotion element symbol is determined to be a promotion element without a repeated style. In this way, the promotion element without a repeated style can be determined more quickly and accurately, thereby improving the efficiency of rendering the information promotion interface.
[0205] In one embodiment of the present application, when it is determined that the number of obtained motion effect elements is greater than or equal to two, the device further includes: a proportion calculation module, used to calculate the proportion of the total area occupied by the determined motion effect elements in the information promotion interface; an element removal module, used to, when the proportion of the total area is greater than a preset proportion threshold, remove the least attractive motion effect element from the determined motion effect elements based on the ranking of the attractiveness of different promotion elements to users, and re-execute the step of calculating the proportion of the total area occupied by the determined motion effect elements in the information promotion interface.
[0206] In this way, the area occupied by dynamic elements in the information promotion interface can be adjusted to reduce the situation where too much content in the information promotion interface is dynamically rendered, thereby reducing the problem of the information promotion interface not highlighting the key points. By controlling the area occupied by dynamic elements in the promotion interface, the prominence of key content in the information promotion interface can be improved, the attractiveness of dynamic elements to users in the promotion interface can be improved, and the effect of dynamic display of the information promotion interface can be improved.
[0207] In one embodiment of the present application, the parameter setting module 303 is specifically used to: obtain the element size of the motion effect element; if the element size is larger than a first preset size, reduce the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the motion effect element; if the element size is smaller than a second preset size, increase the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the motion effect element; if the element size is smaller than the first preset size and larger than the second preset size, determine the number of presentations and the duration of the dynamic effect of the motion effect element to be the default number of presentations and the default duration; and / or determine the motion mode of the appearance stage of the motion effect element according to the media type of the content in the motion effect element.
[0208] In this way, the animation parameters of the animation elements can be flexibly adjusted according to the size, content and other information of the animation elements, so that the animation elements can be displayed with various dynamic effects, making the rendered dynamic information promotion interface more attractive to users.
[0209] The present application also provides an electronic device, such as Figure 4 As shown, including:
[0210] Memory 401, used for storing computer programs;
[0211] The processor 402 is used to implement any of the above-mentioned interface rendering methods when executing the program stored in the memory 401.
[0212] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 402, the communication interface, and the memory 401 communicate with each other via the communication bus.
[0213] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0214] The communication interface is used for communication between the above electronic device and other devices.
[0215] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0216] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0217] In another embodiment provided in the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned interface rendering methods are implemented.
[0218] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any interface rendering method in the above embodiments.
[0219] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0220] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0221] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, electronic device, storage medium, and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0222] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. An interface rendering method, characterized in that: The method comprises: Get the static template of the information promotion interface; Determining a dynamic effect element from the promotion elements included in the static template based on the ranking of the attractiveness of different promotion elements to users; Setting the animation parameters for the animation element; Rendering a dynamic effect for the motion effect element based on the motion effect parameter, and statically rendering the elements in the static template except the motion effect element; Determine the dynamic effect element from the promotion elements included in the static template in the following manner: Determining that there is no second type of promotional element with a repeated style in the static template; If there are third-category promotional elements in the second-category promotional elements, obtaining the semantics of the characters in the third-category promotional elements, wherein the third-category promotional elements are promotional elements containing characters in the second-category promotional elements; based on the semantics of the characters in the third-category promotional elements, selecting motion effect elements from the third-category promotional elements; and / or If the third category of promotional elements does not exist in the second category of promotional elements, a first preset number of promotional elements are selected from the promotional elements in the second category of promotional elements that are presented in the form of pictures as motion effect elements.
2. The method according to claim 1, characterized in that The ranking of the attractiveness of the different promotional elements to the user is determined based on at least one of the following information: Whether it is a promotional element of a set style, wherein the set style includes: at least one of a preset element appearance, a preset element structure, and a preset element background; Promote the semantics of the text in the element; Whether it is a promotional element with repeated style; Whether the content in the promotion element is of a set media type, wherein the set media type is: text type or image type.
3. The method according to claim 1 or 2, characterized in that: Determine the dynamic effect element from the promotion elements included in the static template in the following manner: Determine a first type of promotional element including text in the promotional elements included in the static template; Obtaining the semantics of the characters in the first type of promotional elements; According to the order of semantic priority, based on the semantics of the characters in the first category of promotional elements, motion effect elements are selected from the first category of promotional elements, wherein the order of semantic priority is the order of at least two of the following semantics: price of the promotion object, content of the promotion activity, and attributes of the promotion object to be advertised.
4. The method according to claim 1, characterized in that: The step of determining that there is no second type of promotional element with a repeated style in the static template includes: Searching for promotion element symbols that are not associated with repeated element symbols from the abstract description formula of the static template, wherein the abstract description formula is used to describe: the promotion elements included in the static template, the number of each promotion element, and whether there is an inclusion relationship between the promotion elements; The promotion element represented by the found promotion element symbol is determined as a second type of promotion element having no repeated pattern in the static template.
5. The method according to claim 1 or 2, characterized in that: When it is determined that the number of obtained motion effect elements is greater than or equal to two, after determining the motion effect element from the promotion elements included in the static template based on the ranking of the attractiveness of different promotion elements to users, the method further includes: Calculate and determine the ratio of the total area occupied by the dynamic effect elements in the information promotion interface; If the ratio of the total area is greater than a preset ratio threshold, based on the ranking of the attractiveness of different promotional elements to users, the least attractive motion effect element is removed from the determined motion effect elements, and the step of calculating the ratio of the total area occupied by the determined motion effect elements in the information promotion interface is re-executed.
6. The method according to claim 1, characterized in that The step of setting the dynamic effect parameters for the dynamic effect element includes: Obtaining the element size of the dynamic effect element; if the element size is larger than a first preset size, reducing the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element; if the element size is smaller than a second preset size, increasing the default number of presentations and the default duration of the dynamic effect to obtain the number of presentations and the duration of the dynamic effect of the dynamic effect element; if the element size is smaller than the first preset size and larger than the second preset size, determining the number of presentations and the duration of the dynamic effect of the dynamic effect element to be the default number of presentations and the default duration; and / or According to the media type of the content in the motion effect element, the motion effect mode of the motion effect element at the appearance stage is determined.
7. An interface rendering device, characterized in that: The device comprises: Template acquisition module, used to obtain static templates of information promotion interface; An element determination module, configured to determine a dynamic effect element from the promotion elements included in the static template based on the ranking of different promotion elements in terms of their attractiveness to users; A parameter setting module, used to set the dynamic effect parameters for the dynamic effect element; An element rendering module, used to render a dynamic effect for the motion effect element based on the motion effect parameters, and to statically render elements in the static template except the motion effect element; Determine the dynamic effect element from the promotion elements included in the static template in the following manner: Determining that there is no second type of promotional element with a repeated style in the static template; If there are third-category promotional elements in the second-category promotional elements, obtaining the semantics of the characters in the third-category promotional elements, wherein the third-category promotional elements are promotional elements containing characters in the second-category promotional elements; based on the semantics of the characters in the third-category promotional elements, selecting motion effect elements from the third-category promotional elements; and / or If the third category of promotional elements does not exist in the second category of promotional elements, a first preset number of promotional elements are selected from the promotional elements in the second category of promotional elements that are presented in the form of pictures as motion effect elements.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-6 when executing a program stored in a memory.
9. A computer program product comprising instructions, characterized in that When the computer program product is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Dynamic effect generation method and device, electronic equipment and storage medium
CN117173290A
Advertisement generation method, electronic equipment, network equipment and computer storage medium
CN119067723A