Special effect display method and device, electronic equipment and storage medium

By obtaining and loading custom asset files to obtain association relationship lists and information, and generating video special effects images, the problems of high cost of video special effects development and poor flexibility in use based on association relationship information in the prior art are solved, and the cost and More flexible special effects design.

CN119496959AActive Publication Date: 2025-02-21BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311049111.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-18
Publication Date
2025-02-21
Estimated Expiration
2043-08-18

AI Technical Summary

Technical Problem

In the prior art, video special effects based on association information need to obtain corresponding association information from the server, resulting in high development costs and poor usage flexibility, and it is impossible to personalize the design by ordinary users.

Method used

By responsive to the trigger of the target special effect, obtain the custom asset file, load the custom asset file to obtain the relationship list, obtain the relationship information from the server, and generate the special effect image.

Benefits of technology

It reduces the design difficulty and development cost of video special effects based on association information, improves the diversity and flexibility of target special effects, and allows general users to conduct personalized designs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496959A_ABST
    Figure CN119496959A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a special effect display method and device, electronic equipment and a storage medium, a corresponding custom asset file is obtained by responding to triggering of a target special effect, the target special effect is used for displaying at least one frame of special effect image, and the special effect image is an image generated based on incidence relation information of a current user. The association relationship information represents a user identifier of an associated user having an association relationship with the current user; loading the custom asset file through the resource reference interface of the target special effect to obtain an association relationship list corresponding to the target special effect; and according to the association relationship list, obtaining corresponding association relationship information from the server, and generating a corresponding special effect image based on the association relationship information. According to the embodiment of the invention, the self-defined asset file is utilized to realize decoupling of the step of acquiring the user information, so that the design difficulty of the target special effect based on the association relationship information is reduced, the development cost is reduced, and the diversity and flexibility of the target special effect are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of Internet technology, and in particular, to a special effect display method, device, electronic device and storage medium. Background Art

[0002] Currently, adding virtual elements such as virtual objects and pre-shot photos to videos is one of the common video special effects functions in video applications and video platforms. On this basis, by calling association information in the process of implementing video special effects to generate video special effects based on association information, the social attributes of video special effects can be further improved.

[0003] In the prior art, such video effects based on association information need to obtain the corresponding association information from the server to be realized. Therefore, such video effects based on association information need to be bound to the association information acquisition interface on the server side from the code level. This results in such video effects based on association information only being designed by developer users of video applications and platforms, and cannot be personalized by general users, which in turn leads to problems such as high development costs and poor flexibility of use for such video effects. Summary of the invention

[0004] The embodiments of the present disclosure provide a special effect display method, device, electronic device and storage medium to overcome the problems of high development cost and poor use flexibility of video special effects based on association relationship information.

[0005] In a first aspect, an embodiment of the present disclosure provides a special effect display method, including:

[0006] In response to the triggering of a target special effect, a corresponding custom asset file is obtained, wherein the target special effect is used to display at least one frame of a special effect image, and the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identifier of an associated user who has an association relationship with the current user; through the resource reference interface of the target special effect, the custom asset file is loaded to obtain an association relationship list corresponding to the target special effect; according to the association relationship list, the corresponding association relationship information is obtained from the server, and the corresponding special effect image is generated based on the association relationship information

[0007] In a second aspect, an embodiment of the present disclosure provides a special effect display device, including:

[0008] an acquisition module, configured to acquire a corresponding custom asset file in response to a trigger of a target special effect, wherein the target special effect is used to display at least one frame of a special effect image, the special effect image being an image generated based on the association relationship information of the current user, the association relationship information representing a user identifier of an associated user having an association relationship with the current user;

[0009] A loading module, used to load the custom asset file through the resource reference interface of the target special effect, and obtain a list of association relationships corresponding to the target special effect;

[0010] The generating module is used to obtain corresponding association relationship information from the server according to the association relationship list, and generate corresponding special effect images based on the association relationship information.

[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;

[0012] The memory stores computer-executable instructions;

[0013] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effects display method described in the first aspect and various possible designs of the first aspect.

[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the special effects display method described in the first aspect and various possible designs of the first aspect is implemented.

[0015] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the special effects display method described in the first aspect and various possible designs of the first aspect.

[0016] The special effect display method, device, electronic device and storage medium provided in this embodiment obtain the corresponding custom asset file in response to the triggering of the target special effect, wherein the target special effect is used to display at least one frame of special effect image, and the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identification of the associated user who has an association relationship with the current user; through the resource reference interface of the target special effect, the custom asset file is loaded to obtain the association relationship list corresponding to the target special effect; according to the association relationship list, the corresponding association relationship information is obtained from the server, and the corresponding special effect image is generated based on the association relationship information. After triggering the target special effect based on the association relationship information, the association relationship list corresponding to the target special effect is obtained by loading the custom asset file, and the capabilities provided by the custom asset file are used, and user information is obtained from the server based on the association relationship list, so as to generate the special effect image corresponding to the target special effect based on the user information. Since the user information acquisition step is decoupled by using the custom asset file, the target special effect does not need to consider the specific implementation method of acquiring the association relationship information in the design stage, thereby reducing the design difficulty of the target special effect based on the association relationship information, reducing the development cost, and improving the diversity and flexibility of the target special effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present disclosure 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 some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 An application scenario diagram of the special effect display method provided in the embodiment of the present disclosure;

[0019] Figure 2 A schematic diagram of the process of the special effect display method provided in the embodiment of the present disclosure Figure 1 ;

[0020] Figure 3 A flowchart of specific implementation steps for obtaining corresponding association relationship information from a server based on an association relationship list;

[0021] Figure 4 A schematic diagram of the process of the special effect display method provided in the embodiment of the present disclosure Figure 2 ;

[0022] Figure 5 A schematic diagram of a mapping relationship between a custom asset file and a special effect image provided in an embodiment of the present disclosure;

[0023] Figure 6 for Figure 4 A flowchart of specific implementation steps of step S203 in the illustrated embodiment;

[0024] Figure 7 A schematic diagram of first relationship data provided by an embodiment of the present disclosure;

[0025] Figure 8 A schematic diagram of another first relationship data provided by an embodiment of the present disclosure;

[0026] Fig. 9 for Figure 4 A flowchart of specific implementation steps of step S205 in the illustrated embodiment;

[0027] Fig.10 A schematic diagram of target association relationship information provided by an embodiment of the present disclosure;

[0028] Fig.11 A structural block diagram of a special effect display device provided in an embodiment of the present disclosure;

[0029] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0030] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] The application scenarios of the embodiments of the present disclosure are explained below:

[0034] Figure 1This is an application scenario diagram of the special effects display method provided in the embodiment of the present disclosure. The special effects display method provided in the embodiment of the present disclosure can be applied to an application with a video special effects editing function, and more specifically, can be applied to the editing and use scenarios of video special effects based on association relationship information. The execution subject of this embodiment can be a terminal device running the above-mentioned application with a video special effects editing function, or a server running the service end corresponding to the above-mentioned application, or other electronic devices with similar functions. Figure 1 As shown in , taking the terminal device as an example, the terminal device loads a video special effect in the application based on the user's operation. The video special effect can be a custom special effect created through other applications or platforms. Afterwards, the terminal device triggers the video special effect and inserts the special effect image into the initial video, thereby generating a special effect video with a special effect image. Among them, the special effect image generated by the above video special effect is generated based on the association relationship information of the current user (for example, the user who logs in to the current application). Specifically, the special effect image is generated based on the relevant images and logos of the associated users that the current user is concerned about. The association relationship information needs to be downloaded from the server side based on the user's request and permission when the terminal device triggers the custom special effect.

[0035] In the prior art, for such video effects based on association information, it is necessary to obtain the corresponding association information from the server side to achieve them. Therefore, for video effects based on association information, it is necessary to bind the association information acquisition interface on the server side at the code level, so that when the special effects are triggered, the required user information can be obtained through the interface. However, it is difficult to implement the association information acquisition interface for video effects at the code level, and there is a high operational threshold. Therefore, such video effects based on association information can usually only be designed by developers of video editing applications and platforms, and cannot be customized by general users, which leads to problems such as high development costs and poor flexibility of use.

[0036] The embodiments of the present disclosure provide a special effect display method to solve the above problems.

[0037] refer to Figure 2 , Figure 2 A schematic diagram of the process of the special effect display method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a terminal device, and the special effect display method includes:

[0038] Step S101: in response to triggering of a target special effect, obtaining a corresponding custom asset file, wherein the target special effect is used to display at least one frame of special effect image, the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identifier of an associated user who has an association relationship with the current user.

[0039] For example, reference Figure 1 In the application scenario schematic diagram shown, after the terminal device runs an application with a video editing function, it first loads the original video to be processed, and then, based on the user instruction, selects the corresponding target special effect to load the target special effect into the original video to generate a video containing special effects (i.e., the target video referred to in the subsequent part of this embodiment). Among them, the target special effect in this embodiment is used to display at least one frame of special effect image in the original video, specifically, for example, including displaying a single frame image in the original video, such as a png picture, or displaying a dynamic image in the original video, such as a sequence frame. Further, the special effect image generated by the target special effect is generated based on the association relationship information of the current user, and the association relationship information represents the user identification of the associated user who has an association relationship with the current user. Among them, the current user is, for example, a user who logs in to the above-mentioned application or platform, and the associated user of the current user is a user who has an association relationship with the current user, such as a user who registers in the above-mentioned application or platform and follows the current user; another example is a user who registers in the above-mentioned application or platform and is followed by the current user; another example is a user who registers in the above-mentioned application or platform and becomes a fan of the current user. In addition to the above implementations, the specific definition and implementation of the associated user also includes other methods, which can be set according to business needs and are not specifically limited here. The user identifier of the associated user is, for example, the registered name, registration ID, user identification code, nickname, avatar, etc. of the associated user (in the above application or platform).

[0040] Furthermore, after the target special effect is triggered, the terminal device needs to obtain the corresponding association information of the current user in order to generate the above special effect image based on the association information of the current user. The terminal device achieves the above purpose by determining and obtaining the custom asset file corresponding to the target special effect. Specifically, the terminal device can determine the corresponding special effect file or folder according to the name of the target special effect (unique identification), and then obtain the custom asset file corresponding to the target special effect through the special effect file or folder. Among them, the custom asset file is a data format obtained after encapsulation based on a specific framework. The custom asset file has a specific data structure and file suffix. By loading and running the custom asset file, the purpose of obtaining user information can be achieved. Among them, the compilation method and data structure of the custom asset file are not specifically limited in this embodiment. The above application program run by the terminal device can realize the loading and use of the custom asset file after executing the target special effect (corresponding program script), thereby achieving the purpose of obtaining user information.

[0041] In a possible implementation, the target special effect is a user-defined special effect, that is, the special effect development user can set a special effect template with a customized style and effect according to needs and preferences based on other special effect production software. In the process of developing the target special effect, the special effect development user sets the above-mentioned pre-generated custom asset file in the engineering file of the target special effect, so as to realize the binding between the target special effect and the custom asset file, so that in the subsequent process of triggering the target special effect, the terminal device can accurately obtain the custom asset file corresponding to the target special effect and call it. The custom asset file is equivalent to the encapsulation of the "function of obtaining association information". Since the special effect development user can realize the target special effect of generating special effect images based on association information by setting the custom asset file, without having to implement the "function of obtaining association information" from the code level, the development difficulty of the target special effect of generating special effect images based on association information is greatly reduced, so that the "social relationship special effect" (i.e., target special effect) with such a program structure and implemented based on such a program structure has better diversity and flexibility.

[0042] Step S102: load the custom asset file through the resource reference interface of the target special effect, obtain the association relationship list corresponding to the target special effect, and obtain the corresponding association relationship information from the server based on the association relationship list.

[0043] Exemplarily, after obtaining the custom asset file, the resource reference interface of the target special effect is used to load the custom asset file, thereby realizing the use of the custom asset file, specifically, obtaining the data in the custom asset file, executing the processing logic in the custom asset file, thereby obtaining the association relationship list corresponding to the target special effect, and obtaining the corresponding association relationship information from the server based on the association relationship list, such as the nickname of the associated user, the avatar of the associated user, etc. Among them, the association relationship list is a collection of association relationship information corresponding to multiple associated users, and the number of corresponding association relationship information in the association relationship list is determined by using the data contained in the custom asset file after loading the custom asset file, that is, the number of corresponding association relationship information in the association relationship list is determined based on the custom asset file.

[0044] In one possible implementation, Figure 3 As shown, the specific implementation method of obtaining the corresponding association relationship information from the server based on the association relationship list in step S102 includes:

[0045] Step S1021: Obtain the target association relationship type.

[0046] Step S1022: Determine a target association relationship list from at least two association relationship lists.

[0047] Step S1023: Based on the target association relationship list, corresponding association relationship information is obtained from the server.

[0048] Exemplarily, the association relationship type represents the relationship category between the current user and its corresponding associated user, including, for example, "following user", that is, the associated user corresponding to the association relationship information in the association relationship list follows the current user; it also includes, for example, "followed user", that is, the associated user corresponding to the association relationship information in the association relationship list is followed by the current user; and it also includes, for example, "fan user", that is, the associated user corresponding to the association relationship information in the association relationship list is a fan of the current user.

[0049] Correspondingly, different association types have corresponding association lists. For example, for "following users", there is a corresponding association list list_1, and for "followed users", there is a corresponding association list list_2. The list type corresponding to the association list (i.e., information corresponding to the association type) can be obtained by reading the type attribute of the association list. Further, in a possible implementation, the association type can be fixedly corresponding to the target special effect. For example, the target special effect A corresponds to the "followed user"; the target special effect B corresponds to the "fan user"; in another possible implementation, the association type can be set by the user before triggering the target special effect. Regardless of the above implementation, after the target special effect is triggered, the terminal device can obtain a type identifier that represents the association type, and then determine the target association type based on the type identifier; then, from the multiple association lists obtained by loading the custom asset file through the resource reference interface, the target association list corresponding to the target association type is obtained. After that, based on the record data in the target association list, the corresponding association information is obtained from the corresponding storage location of the server. In one possible implementation, the record data in the target association relationship list includes a server address and storage location storing corresponding association relationship information. The association relationship information can be obtained by downloading data through the server address and storage location of the association relationship information in the above record data.

[0050] Step S103: Generate a corresponding special effect image based on the association relationship information.

[0051] Exemplarily, after obtaining the association relationship information, corresponding processing is performed based on the association relationship information to generate a corresponding special effect image. Specifically, for example, if the association relationship information is an associated user avatar, then on the basis of the associated user avatar, processing steps such as downsampling, blurring, or adding virtual item stickers can be performed to generate a special effect image. For another example, if the association relationship information is a user name (characters), the user name can be rendered as a nickname image, and then the nickname image can be subjected to preliminary processing such as the above to generate a special effect image. The above two implementation methods can be executed separately or simultaneously, and are not specifically limited in this embodiment.

[0052] Optionally, the generated special effect image can be rendered into the original video to achieve a special effect preview of the target video, or the target video containing the special effect image can be output to achieve the process of adding the target special effect to the original video. Afterwards, the generated target video can be further processed, such as published to the server side (i.e., published to an application or platform), or the target video can be saved, shared, etc.

[0053] In this embodiment, in response to the triggering of the target special effect, the corresponding custom asset file is obtained, wherein the target special effect is used to display at least one frame of special effect image, and the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identification of the associated user who has an association relationship with the current user; through the resource reference interface of the target special effect, the custom asset file is loaded to obtain the association relationship list corresponding to the target special effect; according to the association relationship list, the corresponding association relationship information is obtained from the server, and the corresponding special effect image is generated based on the association relationship information. After triggering the target special effect based on the association relationship information, the association relationship list corresponding to the target special effect is obtained by loading the custom asset file, and the capabilities provided by the custom asset file are used, and user information is obtained from the server based on the association relationship list, so as to generate the special effect image corresponding to the target special effect based on the user information. Since the custom asset file is used to achieve the decoupling of the step of obtaining user information, the target special effect does not need to consider the specific implementation method of obtaining the association relationship information in the design stage, thereby reducing the design difficulty of the target special effect based on the association relationship information, reducing the development cost, and improving the diversity and flexibility of the target special effect.

[0054] refer to Figure 4 , Figure 4 A schematic diagram of the process of the special effect display method provided in the embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the illustrated embodiment, step S102 is further refined, and the special effect display method includes:

[0055] Step S201: In response to triggering of a target special effect, a corresponding custom asset file is obtained, wherein the target special effect is used to display at least one frame of special effect image, the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identifier of an associated user who has an association relationship with the current user.

[0056] Step S202: Through the resource reference interface of the target special effect, load the custom asset file from the project file corresponding to the target special effect, obtain at least one associated resource object and the image style corresponding to the associated resource object, wherein the associated resource object is used to provide associated information for the special effect image corresponding to the image style.

[0057] Exemplarily, the target special effect corresponds to a project containing multiple project files, and the custom asset file is preset in the project of the target special effect. After the target special effect is triggered, the custom asset file is loaded from the project file through the resource reference interface of the target special effect, that is, in the program structure of the target special effect, the execution program of the target special effect and the program for obtaining user information are decoupled. The target special effect loads the custom asset file through the resource reference interface to obtain the association relationship information required for the subsequent generation of the special effect image. Specifically, after loading the custom asset file, an association relationship resource object will be generated in the terminal device, and the association relationship resource object can be the instantiation result of a class in the custom asset file. The association relationship resource object corresponds to the attributes of the image style. By using the association relationship resource object, the purpose of providing association relationship information for the special effect image corresponding to the image style is finally achieved. Afterwards, according to the association relationship resource object and the corresponding image style, the association relationship list corresponding to the target special effect is obtained.

[0058] Exemplarily, the image styles corresponding to the association resource objects include at least single-frame images and dynamic images, where the single-frame images are, for example, PNG images, and the dynamic images are, for example, sequence frames. That is, through the association resource objects corresponding to the above image styles, special effect images of corresponding types can be generated. Figure 5 A schematic diagram of a mapping relationship between a custom asset file and a special effect image provided in an embodiment of the present disclosure, such as Figure 5 As shown, after the custom asset file A is loaded, the associated resource object A_1 and the corresponding image style mod_1 (shown as mod_1 in the figure) are obtained, wherein the image style mod_1 represents a single-frame image, and then, based on the associated resource object A_1 and the corresponding image style mod_1, a corresponding associated list list_1 is generated, and then, based on the associated list list_1, the associated information info_1 that meets the generation requirements of the single-frame image is obtained from the server, and the corresponding single-frame image P1 (P1.png) is generated, that is, the special effect image corresponding to the custom asset file A; on the other hand, the custom asset file A is loaded with the associated resource object A_1 and the corresponding image style mod_1 is loaded with the associated relationship list list_1, and the associated relationship information info_1 that meets the generation requirements of the single-frame image is obtained from the server, and the special effect image corresponding to the custom asset file A is generated. After the definition asset file B is loaded, the association resource object B_1 and the corresponding image style mod_2 are obtained, wherein the image style mod_2 represents the sequence frame (i.e., a dynamic image containing multiple frames of images). Then, based on the association resource object B_1 and the corresponding image style mod_2, the corresponding association list list_2 is generated. Then, based on the association list list_2, the association information info_2 that meets the generation requirements of the sequence frame is obtained from the server, and the corresponding sequence frame P2 (png-seq, i.e., a collection of multiple png images) is generated, i.e., the special effect image corresponding to the custom asset file B. The single-frame image P1 and the sequence frame P2 are the special effect images corresponding to the target special effect.

[0059] Furthermore, the image style corresponding to the association resource object can be determined according to the suffix of the custom asset file when loading the custom asset file. The following is a detailed introduction to the specific implementation steps of obtaining the association list corresponding to the target special effect according to the association resource object and the corresponding image style.

[0060] Step S203: When the image style is a single-frame image, access the first attribute of the associated relationship resource object to obtain first relationship data indicating the associated user, wherein the first relationship data includes a first identifier and a corresponding second identifier, wherein the first identifier represents an associated user name of the associated user, and the second identifier represents an associated user avatar of the associated user.

[0061] Exemplarily, the associated relationship resource object has multiple accessible attributes, and the attributes of the associated relationship resource object can be accessed through the corresponding preset interface. When the image style is a single-frame image, accessing the first attribute of the associated relationship resource object can obtain the first relationship data representing the associated relationship information, and the first relationship data is the user information required for generating special effects images of the single-frame image type. Specifically, the first relationship data includes a first identifier and a corresponding second identifier, wherein the first identifier represents the associated user name of the associated user, and the second identifier represents the associated user avatar of the associated user.

[0062] For example, Figure 6 As shown, the specific implementation of step S203 includes:

[0063] Step S2031: obtaining at least one first identifier and at least one second identifier by accessing the first attribute of the association relationship resource object.

[0064] Step S2032: Pair and store the first identifier and the second identifier having the same identification information to obtain a pairing table including at least one pairing record.

[0065] Figure 7 A schematic diagram of a first relationship data provided by an embodiment of the present disclosure, such as Figure 7As shown, the first relationship data is composed of a pairing table, which contains N pairing records, namely pairing records rec_1 to rec_N, each pairing record includes a first identifier and a corresponding second identifier, wherein the first identifier is a user nickname of the associated user (such as User_1 and User_2 shown in the figure), and the second identifier is an avatar of the associated user; each pairing record corresponds to a unique identification information, which is used to characterize a user; when accessing the first attribute of the associated relationship resource object, the associated relationship resource object obtains at least one first identifier and at least one second identifier by accessing the server, and then pairs are paired based on the identification information corresponding to the first identifier and the identification information corresponding to the second identifier, and the ones with the same identification information form a pairing record, thereby generating the above-mentioned pairing table.

[0066] For example, in one possible implementation, after obtaining the pairing table, the first relationship data can be directly generated according to the pairing table, that is, the first relationship data only includes the paired first identifier and the second identifier. When a special effect image is subsequently generated based on the first relationship data, a special effect image having both the first identifier (user nickname) and the second identifier (associated user avatar) can be generated. In another possible implementation, a non-pairing table can be further obtained, and the first relationship data can be jointly generated based on the pairing table and the non-pairing table.

[0067] Step S2033: the first identifications or the second identifications that do not have the same identification information are stored separately to obtain a non-pairing table.

[0068] Step S2034: Generate first relationship data according to the matching table and the non-matching table.

[0069] For example, similarly, while obtaining the paired first identifier and the second identifier based on the identification information, the unpaired first identifier or the second identifier is used to generate a pairing record containing only one identifier (the first identifier or the second identifier), thereby obtaining an unpaired table. Afterwards, the pairing table and the unpaired table are combined to jointly generate the first relationship data. When a special effect image is subsequently generated based on the first relationship data, a special effect image containing only the first identifier (user nickname) or the second identifier (associated user avatar) can be generated. Figure 8 A schematic diagram of another first relationship data provided by an embodiment of the present disclosure, such as Figure 8 As shown, the first relationship data is composed of a matching table and a non-matching table. The specific meaning of the matching table is Figure 7The non-pairing table includes pairing records n_rec_1 to n_rec_M, each of which only includes the first identifier (user nickname) or the second identifier (associated user avatar). For example, as shown in the figure, the pairing record n_rec_1 includes the user nickname User_3 but does not include the associated user avatar (indicated by NULL, the same below); while the pairing record n_rec_2 includes the associated user avatar but does not include the user nickname.

[0070] Afterwards, in a possible implementation, the combination of the pairing table and the non-pairing table is the first relationship data, and according to each pairing record in the first relationship data, an association relationship list corresponding to the target special effect can be generated.

[0071] Step S204: When the image style is a dynamic image, access the second attribute of the associated relationship resource object to obtain second relationship data indicating the associated user, the second relationship data includes a preset number of third identifiers, the third identifiers correspond to user information of the associated user, and the preset number is the number of image frames of the dynamic image.

[0072] Exemplarily, in another possible implementation, when the image style of the associated relationship resource object is a dynamic image, such as a sequence frame, the associated relationship resource object has a second attribute, and the second relationship data can be obtained by accessing the second attribute of the associated relationship resource object, and the second relationship data includes a preset number of third identifiers representing the number of image frames of the first dynamic image. Exemplarily, the third identifier represents an image containing an associated user name and an associated user avatar, that is, each third identifier corresponds to a piece of associated relationship information, wherein the number of third identifiers in the second relationship data (preset number) is the number of image frames corresponding to the dynamic image (sequence length in the sequence frame). The specific implementation method of accessing the second attribute of the associated relationship resource object to obtain the second relationship data is similar to the specific implementation method of accessing the first attribute of the associated relationship resource object to obtain the first relationship data, and reference may be made to the introduction in the previous section, which will not be repeated here.

[0073] Furthermore, in a possible implementation, after obtaining the second relationship data, an association relationship list corresponding to the target special effect can be generated according to the second relationship data. The specific implementation method is similar to the method of generating the association relationship list based on the first relationship data, and will not be repeated here.

[0074] Step S205: Determine an association relationship list according to the first relationship data and / or the second relationship data.

[0075] Exemplarily, based on the above introduction, the association relationship list can be generated based on the first relationship data or the second relationship data alone. The specific implementation method depends on the custom asset file corresponding to the target special effect. Specifically, for example, if the target special effect only corresponds to (generates) one special effect image, then the corresponding first relationship data or second relationship data is obtained according to the image type of the special effect image, that is, the image style (single-frame image or sequence frame) corresponding to the association relationship resource object. Afterwards, based on the obtained first relationship data or second relationship data, the corresponding association relationship list is obtained to implement the corresponding type of special effect image.

[0076] Exemplarily, in another possible implementation, when the target special effect corresponds to (generates) more than one special effect image, and the image styles corresponding to the special effect images are different, the association relationship list can be jointly determined based on the first relationship data and the second relationship data.

[0077] For example, Fig. 9 As shown, the specific implementation of step S205 includes:

[0078] Step S2051: Determine the number of target associated users according to the first relationship data and the second relationship data.

[0079] Step S2052: Obtain a list of association relationships corresponding to the target special effects according to the number of target associated users.

[0080] First, according to the first relationship data and the second relationship data, the target number of associated users is determined, and the target number of associated users is the number of associated users set in the association relationship list. For example, the current user User_1 has a total of 100 associated users. Based on the first relationship data and the second relationship data, 10 associated users are determined, and the corresponding association relationship list is generated. Then, the corresponding user information is obtained and the special effect image is generated. Among them, 10 in the above example is the target number of associated users. Afterwards, based on the determined number of target associated users, the target number of associated users is selected from all the associated users of all the current users in a specific way to generate an association relationship list corresponding to the target special effect.

[0081] Exemplarily, the specific implementation of step S2051 includes:

[0082] Step S2051A: Acquire the first associated user quantity, where the first associated user quantity is a larger value between the capacity of the pairing table corresponding to the first relationship data and the preset quantity corresponding to the second relationship data.

[0083] Step S2051B: Determine the target number of associated users according to the sum of the first number of associated users and the capacity of the non-pairing table corresponding to the first relationship data.

[0084] The pairing table corresponding to the first relationship data includes pairing records of user names and associated user avatars stored in pairs, and the capacity of the pairing table is the number of pairing records of user names and associated user avatars stored in pairs; and the preset number corresponding to the first relationship data is the number of image frames corresponding to the dynamic image, and the capacity and preset number of the pairing table are the number of associated users corresponding to the two image styles and containing complete associated relationship information (user name plus associated user avatar), and the larger of the two is determined as the first associated user number, and the number of associated relationship information required to cover the special effect images corresponding to the two image styles is obtained, and then the capacity of the non-pairing table corresponding to the first relationship data is obtained, for example, the second associated user number, and finally the sum of the first associated user number and the second associated user number is calculated to obtain the target associated user number. Among them, the non-pairing table corresponding to the first relationship data contains non-paired user information (i.e., a single user name or associated user avatar), and the above non-paired user information needs to be used when generating a special effect image of a single-frame image type, so the final target associated user number (generated association relationship list) needs to be able to cover this part of the user information.

[0085] The target number of associated users obtained in the steps of this embodiment is equivalent to the minimum number of associated users required for a special effect image that can realize two image styles. Compared with the association relationship list generated directly using the total number of associated users of the current user, the association relationship list generated based on the target number of associated users occupies less memory space and system resources and improves the speed of loading special effect images.

[0086] It should be noted that, based on the previous introduction, since the first relationship data and the second relationship data are determined based on the associated relationship resource object and the corresponding image style, the above steps S203-S205 determine the specific implementation method of the corresponding target associated user quantity based on the associated relationship resource object and the corresponding image style.

[0087] Exemplarily, after obtaining the target number of associated users, associated users of the target number of associated users are selected from all associated users in a random or other specific manner, such as parameters such as intimacy (between the current user and the associated users), communication frequency, etc., to obtain an association relationship list. The specific implementation method has been introduced in the previous embodiment section and will not be repeated here.

[0088] Step S206: Acquire corresponding association relationship information from the server based on the association relationship list.

[0089] Step S207: Generate a corresponding special effect image based on the association relationship information.

[0090] Exemplarily, after obtaining the association relationship list, the corresponding association relationship information is downloaded from the server for the associated users represented by the association relationship list, and then the corresponding special effect image is generated based on the association relationship information. The specific implementation method has been introduced in the previous embodiment section and will not be repeated here. In one possible implementation method, if after the above steps, no valid image is obtained using the custom asset file, for example, the current user has no associated users, or the total number of associated users of the current user is too small, then the corresponding special effect image is replaced by a preset backup image, and the specific implementation process steps are repeated.

[0091] Optionally, after generating the corresponding special effect image, the method further includes:

[0092] Step S208: Generate a target video based on the special effect image, and publish the target video.

[0093] Step S209: After the target video is released, at least one target association relationship information is obtained, where the target association relationship information is the association relationship information corresponding to the target special effect image displayed in the target display posture in the target video.

[0094] Exemplarily, after obtaining the special effect image based on the above steps, the special effect image is rendered to the original video to obtain the corresponding target video. The specific implementation process is prior art and will not be repeated here. Afterwards, in response to user instructions or the logic preset by the application, the target video can be further published, that is, the target video is published to the application or platform, so that other users can watch the target video. Afterwards, the terminal device obtains a target special effect image among the special effect images displayed in the target video. The target special effect image is a special effect image displayed in a specific target display posture, and the association relationship information corresponding to the target special effect image is the target association relationship information.

[0095] Specifically, the above-mentioned steps can be applied to the following specific application scenarios:

[0096] In activity scenarios such as platform user lotteries and random selection of lucky fans, based on the above-mentioned target special effects, it is possible to dynamically display multiple single-frame images or display the visual effects of sequence frames in the target video, that is, the association relationship information of different associated users generates special effect images (such as images containing associated user avatars and nicknames) that will move and / or rotate in the target video, and finally randomly select a target special effect image from the multiple special effect images in the target video, and display it in a specific position and posture, indicating that the special effect image (corresponding associated user) is selected. Thereby realizing the above-mentioned platform user lotteries and random selection of lucky fans and other activities. Among them, the above-mentioned "randomly selected" associated users are the target associated users, and correspondingly, the association relationship information corresponding to the target associated users is the target association relationship information.

[0097] Fig.10 A schematic diagram of target association relationship information provided by an embodiment of the present disclosure, such as Fig. 9 As shown, when adding target special effects to the original video, the generated target video contains a cube-shaped virtual prop. At the same time, the special effect image generated based on the association relationship information includes the avatars of 6 associated users, and is respectively set on the six faces of the virtual prop (only 3 faces are shown in the figure, corresponding to the association relationship information User_1, User_2, and User_3). When the above target special effects are triggered, the virtual prop appears in the video and simulates the real physical collision law to randomly roll and move. The special effect images on the 6 surfaces of the virtual prop also rotate and move accordingly. After the virtual prop stops, the association relationship information corresponding to the special effect image facing the lens side (shown as User_3 in the figure) is determined as the target association relationship information. The above process is the image-based random extraction process, and the specific implementation principle and method will not be repeated.

[0098] It should be noted that in the above-mentioned random drawing activity scenarios such as platform user drawing lots, random selection of lucky fans, etc., there are many specific implementation processes for randomly selecting a selected target platform user (target associated user) from multiple platform users (associated users), such as the random selection process, special effects style, etc., which can all be set based on needs. The above embodiments are only used to exemplify the method of determining the target association relationship information.

[0099] Step S210: Sending hit information to the server based on the target association relationship information, where the hit information is used to enable the server to send a notification message to the target association user corresponding to the target association relationship information.

[0100] Exemplarily, the randomly selected result, i.e., the target user information determined in the above steps, is then notified to the corresponding target-associated user. The specific implementation method is that the terminal device sends hit information to the server, and the hit information includes an identifier indicating the target user information; the server sends a notification message to the corresponding target-associated user based on the hit information, and after receiving the notification message, the target-associated user displays or broadcasts it to achieve the purpose of the hit prompt.

[0101] Exemplarily, the hit information includes at least one of the following: an identification mark of the current user, an identification mark of the target special effect, and a release time of the target video.

[0102] In this embodiment, in a randomly selected scenario, by sending the random selection result based on the target special effect to the hit user (target associated user), better social attributes of the target special effect are achieved and the social effect is improved.

[0103] Optionally, in another possible implementation, after step S202, the method further includes:

[0104] Step S208A: Obtain the notification switch status by loading the custom asset file.

[0105] Step S208B: When the switch state is the target state, execute step S209.

[0106] Exemplarily, on the other hand, by loading a custom asset file, the notification switch state can be obtained, and the notification switch is a switch module used to set whether to send a notification to the target associated user (hit user) in the above step. In a possible implementation, the notification switch has a first state and a second state, the first state indicates that the function is turned on, and the second state indicates that the function is turned off; in this case, the first state is the target state, and when the switch state is the first state, the above step S210 is executed, that is, the hit information is sent to the server based on the target association relationship information; conversely, when the switch state is the second state, it ends and no longer sends a hit message.

[0107] Among them, the notification switch status can be a parameter set based on user instructions. After loading the custom asset file, the notification switch status is obtained through the interface provided by the association relationship resource unit, and the above-mentioned judgment step is performed. That is, the custom asset file provides the ability to obtain the notification switch status, so that the terminal device can obtain the notification switch status by loading the custom asset file. The specific implementation process will not be repeated here.

[0108] In this embodiment, the implementation method of step S201 is the same as that of the present disclosure. Figure 2 The implementation method of step SS101 in the illustrated embodiment is the same and will not be described in detail here.

[0109] Corresponding to the special effects display method of the above embodiment, Fig.11 This is a structural block diagram of a special effect display device provided by an embodiment of the present disclosure. For ease of description, only the parts related to the embodiment of the present disclosure are shown.

[0110] Reference Fig.10 , the special effect display device 3 comprises:

[0111] The acquisition module 31 is used to acquire the corresponding custom asset file in response to the triggering of the target special effect, wherein the target special effect is used to display at least one frame of special effect image, and the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identification of the associated user who has an association relationship with the current user;

[0112] The loading module 32 is used to load the custom asset file through the resource reference interface of the target special effect, obtain the association relationship list corresponding to the target special effect, and obtain the corresponding association relationship information from the server based on the association relationship list;

[0113] The generating module 33 is used to generate a corresponding special effect image based on the association relationship information.

[0114] In one embodiment of the present disclosure, when the loading module 32 loads a custom asset file through the resource reference interface of the target special effect and obtains a list of association relationships corresponding to the target special effect, it is specifically used to: load the custom asset file from the project file corresponding to the target special effect through the resource reference interface of the target special effect, and obtain at least one association relationship resource object and an image style corresponding to the association relationship resource object, wherein the association relationship resource object is used to provide association relationship information for the special effect image of the corresponding image style; and obtain the list of association relationships corresponding to the target special effect according to the association relationship resource object and the corresponding image style.

[0115] In one embodiment of the present disclosure, when the loading module 32 obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: when the image style is a single-frame image, access the first attribute of the association relationship resource object to obtain first relationship data indicating the associated user, the first relationship data includes a first identifier and a corresponding second identifier, wherein the first identifier represents the associated user name of the associated user, and the second identifier represents the associated user avatar of the associated user; based on the first relationship data, generate the association relationship list corresponding to the target special effect.

[0116] In one embodiment of the present disclosure, when the loading module 32 accesses the first attribute of the association relationship resource object and obtains the first relationship data indicating the associated user, it is specifically used to: obtain at least one first identifier and at least one second identifier by accessing the first attribute of the association relationship resource object; store the first identifier and the second identifier having the same identification information in pairs to obtain a pairing table containing at least one pairing record; and generate the first relationship data according to the pairing table.

[0117] In one embodiment of the present disclosure, the loading module 32 is further used to: independently store the first identification or the second identification that does not have the same identification information to obtain a non-pairing table; when the loading module 32 generates the first relationship data according to the pairing table, it is specifically used to: generate the first relationship data according to the pairing table and the non-pairing table.

[0118] In one embodiment of the present disclosure, when the loading module 32 obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: when the image style is a dynamic image, access the second attribute of the association relationship resource object to obtain second relationship data indicating the associated user, the second relationship data includes a preset number of third identifiers, the third identifier corresponds to the user information of the associated user, and the preset number is the number of image frames of the dynamic image; based on the second relationship data, generate the association relationship list corresponding to the target special effect.

[0119] In one embodiment of the present disclosure, when the loading module 32 obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: determine the corresponding target associated user number based on the association relationship resource object and the corresponding image style; and obtain the association relationship list corresponding to the target special effect based on the target associated user number.

[0120] In one embodiment of the present disclosure, when the loading module 32 determines the corresponding target associated user number based on the associated relationship resource object and the corresponding image style, it is specifically used to: obtain the first associated user number, the first associated user number is the larger value of the capacity of the pairing table corresponding to the first relationship data and the preset number corresponding to the second relationship data; determine the target associated user number based on the sum of the first associated user number and the capacity of the non-pairing table corresponding to the first relationship data.

[0121] In one embodiment of the present disclosure, when the loading module 32 obtains corresponding association relationship information from the server based on the association relationship list, it is specifically used to: obtain the target association relationship type, determine the target association relationship list from at least two association relationship lists; and obtain corresponding association relationship information from the server based on the target association relationship list.

[0122] In one embodiment of the present disclosure, after generating a corresponding special effect image based on the association relationship information, the generation module 33 further includes: generating a target video based on the special effect image; after the target video is released, obtaining at least one target association relationship information, the target association relationship information being the association relationship information corresponding to the target special effect image displayed in a target display posture in the target video; sending hit information to the server based on the target association relationship information, the hit information being used to enable the server to send a notification message to the target associated user corresponding to the target association relationship information.

[0123] In one embodiment of the present disclosure, the loading module 32 is also used to: obtain notification of the switch status by loading a custom asset file; when the generation module 33 sends hit information to the server based on the target association relationship information, it is specifically used to: when the switch state is the target state, send hit information to the server based on the target association relationship information.

[0124] In one embodiment of the present disclosure, the hit information includes at least one of the following: an identification mark of the current user, an identification mark of the target special effect, and a release time of the target video.

[0125] The acquisition unit 31, the loading unit 32 and the generation unit 33 are connected in sequence. The special effect display device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.

[0126] Fig.12 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.12 As shown, the electronic device 4 includes:

[0127] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0128] The memory 42 stores computer executable instructions;

[0129] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 10 The special effects display method in the illustrated embodiment.

[0130] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0131] For related instructions, please refer to Figure 2-Figure 10 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.

[0132] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 10 The special effects display method provided by any one of the corresponding embodiments.

[0133] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.

[0134] refer to Fig.13, which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.13 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0135] like Fig.13 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0136] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.13 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0137] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0138] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0139] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0140] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0141] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0143] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0144] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0145] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0146] In a first aspect, according to one or more embodiments of the present disclosure, a special effect display method is provided, comprising:

[0147] In response to the triggering of a target special effect, a corresponding custom asset file is obtained, wherein the target special effect is used to display at least one frame of special effect image, and the special effect image is an image generated based on the association relationship information of the current user, and the association relationship information represents the user identifier of an associated user who has an association relationship with the current user; through the resource reference interface of the target special effect, the custom asset file is loaded to obtain an association relationship list corresponding to the target special effect, and based on the association relationship list, corresponding association relationship information is obtained from a server; and a corresponding special effect image is generated based on the association relationship information.

[0148] According to one or more embodiments of the present disclosure, the method of loading the custom asset file through the resource reference interface of the target special effect to obtain the association relationship list corresponding to the target special effect includes: loading the custom asset file from the project file corresponding to the target special effect through the resource reference interface of the target special effect to obtain at least one association relationship resource object and an image style corresponding to the association relationship resource object, wherein the association relationship resource object is used to provide association relationship information for the special effect image of the corresponding image style; and obtaining the association relationship list corresponding to the target special effect according to the association relationship resource object and the corresponding image style.

[0149] According to one or more embodiments of the present disclosure, obtaining the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style includes: when the image style is a single-frame image, accessing the first attribute of the association relationship resource object to obtain first relationship data indicating the associated user, the first relationship data including a first identifier and a corresponding second identifier, wherein the first identifier represents an associated user name of the associated user, and the second identifier represents an associated user avatar of the associated user; generating the association relationship list corresponding to the target special effect based on the first relationship data.

[0150] According to one or more embodiments of the present disclosure, the accessing the first attribute of the association relationship resource object to obtain the first relationship data indicating the associated user includes: acquiring at least one first identifier and at least one second identifier by accessing the first attribute of the association relationship resource object; storing the first identifier and the second identifier having the same identification information in a pairing manner to obtain a pairing table including at least one pairing record; and generating the first relationship data according to the pairing table.

[0151] According to one or more embodiments of the present disclosure, the method further includes: independently storing the first identifier or the second identifier that does not have the same identification information to obtain a non-pairing table; generating the first relationship data according to the pairing table includes: generating the first relationship data according to the pairing table and the non-pairing table.

[0152] According to one or more embodiments of the present disclosure, obtaining the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style includes: when the image style is a dynamic image, accessing the second attribute of the association relationship resource object to obtain second relationship data indicating the associated user, the second relationship data including a preset number of third identifiers, the third identifiers corresponding to user information of the associated user, and the preset number being the number of image frames of the dynamic image; generating the association relationship list corresponding to the target special effect based on the second relationship data.

[0153] According to one or more embodiments of the present disclosure, obtaining the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style includes: determining the corresponding target associated user number based on the association relationship resource object and the corresponding image style; and obtaining the association relationship list corresponding to the target special effect based on the target associated user number.

[0154] According to one or more embodiments of the present disclosure, determining the corresponding target associated user quantity based on the associated relationship resource object and the corresponding image style includes: obtaining a first associated user quantity, where the first associated user quantity is a larger value between a capacity of a pairing table corresponding to first relationship data and a preset quantity corresponding to second relationship data; and determining the target associated user quantity based on the sum of the first associated user quantity and a capacity of a non-pairing table corresponding to the first relationship data.

[0155] According to one or more embodiments of the present disclosure, obtaining corresponding association relationship information from the server based on the association relationship list includes: obtaining a target association relationship type, and determining a target association relationship list from at least two association relationship lists; and obtaining corresponding association relationship information from the server based on the target association relationship list.

[0156] According to one or more embodiments of the present disclosure, after generating a corresponding special effect image based on the association relationship information, it also includes: generating a target video based on the special effect image; after the target video is released, obtaining at least one target association relationship information, the target association relationship information being the association relationship information corresponding to the target special effect image displayed in a target display posture in the target video; sending hit information to a server based on the target association relationship information, the hit information being used to enable the server to send a notification message to a target associated user corresponding to the target association relationship information.

[0157] According to one or more embodiments of the present disclosure, it also includes: obtaining a notification switch status by loading the custom asset file; sending hit information to the server based on the target association relationship information includes: when the switch status is the target status, sending hit information to the server based on the target association relationship information.

[0158] According to one or more embodiments of the present disclosure, the hit information includes at least one of the following: an identification mark of the current user, an identification mark of the target special effect, and a release time of the target video.

[0159] In a second aspect, according to one or more embodiments of the present disclosure, a special effect display device is provided, comprising:

[0160] an acquisition module, configured to acquire a corresponding custom asset file in response to a trigger of a target special effect, wherein the target special effect is used to display at least one frame of a special effect image, the special effect image being an image generated based on the association relationship information of the current user, the association relationship information representing a user identifier of an associated user having an association relationship with the current user;

[0161] A loading module, used to load the custom asset file through the resource reference interface of the target special effect, obtain the association relationship list corresponding to the target special effect, and obtain the corresponding association relationship information from the server based on the association relationship list;

[0162] A generation module is used to generate a corresponding special effect image based on the association relationship information.

[0163] According to one or more embodiments of the present disclosure, when the loading module loads the custom asset file through the resource reference interface of the target special effect and obtains the association relationship list corresponding to the target special effect, it is specifically used to: load the custom asset file from the project file corresponding to the target special effect through the resource reference interface of the target special effect, and obtain at least one association relationship resource object and an image style corresponding to the association relationship resource object, wherein the association relationship resource object is used to provide association relationship information for the special effect image of the corresponding image style; and obtain the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style.

[0164] According to one or more embodiments of the present disclosure, when the loading module obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: when the image style is a single-frame image, access the first attribute of the association relationship resource object to obtain first relationship data indicating the associated user, the first relationship data including a first identifier and a corresponding second identifier, wherein the first identifier represents an associated user name of the associated user, and the second identifier represents an associated user avatar of the associated user; based on the first relationship data, generate the association relationship list corresponding to the target special effect.

[0165] According to one or more embodiments of the present disclosure, when the loading module accesses the first attribute of the association relationship resource object to obtain the first relationship data indicating the associated user, it is specifically used to: obtain at least one first identifier and at least one second identifier by accessing the first attribute of the association relationship resource object; store the first identifier and the second identifier having the same identification information in pairs to obtain a pairing table containing at least one pairing record; and generate the first relationship data according to the pairing table.

[0166] According to one or more embodiments of the present disclosure, the loading module is further used to: independently store the first identification or the second identification that does not have the same identification information to obtain a non-pairing table; when the loading module generates the first relationship data according to the pairing table, it is specifically used to: generate the first relationship data according to the pairing table and the non-pairing table.

[0167] According to one or more embodiments of the present disclosure, when the loading module obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: when the image style is a dynamic image, access the second attribute of the association relationship resource object to obtain second relationship data indicating the associated user, the second relationship data includes a preset number of third identifiers, the third identifier corresponds to the user information of the associated user, and the preset number is the number of image frames of the dynamic image; based on the second relationship data, generate the association relationship list corresponding to the target special effect.

[0168] According to one or more embodiments of the present disclosure, when the loading module obtains the association relationship list corresponding to the target special effect based on the association relationship resource object and the corresponding image style, it is specifically used to: determine the corresponding target associated user number based on the association relationship resource object and the corresponding image style; and obtain the association relationship list corresponding to the target special effect based on the target associated user number.

[0169] According to one or more embodiments of the present disclosure, when the loading module determines the corresponding target associated user number based on the associated relationship resource object and the corresponding image style, it is specifically used to: obtain the first associated user number, which is the larger value of the capacity of the pairing table corresponding to the first relationship data and the preset number corresponding to the second relationship data; determine the target associated user number based on the sum of the first associated user number and the capacity of the non-pairing table corresponding to the first relationship data.

[0170] According to one or more embodiments of the present disclosure, when the loading module obtains corresponding association relationship information from the server based on the association relationship list, it is specifically used to: obtain a target association relationship type, determine a target association relationship list from at least two association relationship lists; and obtain corresponding association relationship information from the server based on the target association relationship list.

[0171] According to one or more embodiments of the present disclosure, after generating a corresponding special effect image based on the association relationship information, the generation module further includes: generating a target video based on the special effect image; after the target video is released, obtaining at least one target association relationship information, the target association relationship information being the association relationship information corresponding to the target special effect image displayed in a target display posture in the target video; sending hit information to the server based on the target association relationship information, the hit information being used to enable the server to send a notification message to the target associated user corresponding to the target association relationship information.

[0172] According to one or more embodiments of the present disclosure, the loading module is further used to: obtain notification of the switch status by loading the custom asset file; when the generation module sends hit information to the server based on the target association relationship information, it is specifically used to: when the switch status is the target status, send hit information to the server based on the target association relationship information.

[0173] According to one or more embodiments of the present disclosure, the hit information includes at least one of the following: an identification mark of the current user, an identification mark of the target special effect, and a release time of the target video.

[0174] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;

[0175] The memory stores computer-executable instructions;

[0176] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the special effects display method described in the first aspect and various possible designs of the first aspect.

[0177] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the special effects display method described in the first aspect and various possible designs of the first aspect is implemented.

[0178] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the special effect display method described in the first aspect and various possible designs of the first aspect is implemented.

[0179] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0180] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0181] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. A special effect display method, characterized in that: include: In response to triggering of a target special effect, a corresponding custom asset file is acquired, wherein the target special effect is used to display at least one frame of special effect image, the special effect image is an image generated based on association relationship information of the current user, and the association relationship information represents a user identifier of an associated user who has an association relationship with the current user; Loading the custom asset file through the resource reference interface of the target special effect, obtaining an association relationship list corresponding to the target special effect, and acquiring corresponding association relationship information from a server based on the association relationship list; A corresponding special effect image is generated based on the association relationship information.

2. The method according to claim 1, characterized in that The step of loading the custom asset file through the resource reference interface of the target special effect to obtain a list of association relationships corresponding to the target special effect includes: Through the resource reference interface of the target special effect, a custom asset file is loaded from the project file corresponding to the target special effect to obtain at least one associated resource object and an image style corresponding to the associated resource object, wherein the associated resource object is used to provide associated information for the special effect image corresponding to the image style; According to the association relationship resource object and the corresponding image style, an association relationship list corresponding to the target special effect is obtained.

3. The method according to claim 2, characterized in that The obtaining, according to the association relationship resource object and the corresponding image style, an association relationship list corresponding to the target special effect includes: When the image style is a single-frame image, access the first attribute of the associated relationship resource object to obtain first relationship data indicating the associated user, wherein the first relationship data includes a first identifier and a corresponding second identifier, wherein the first identifier represents an associated user name of the associated user, and the second identifier represents an associated user avatar of the associated user; Generate an association relationship list corresponding to the target special effect according to the first relationship data.

4. The method according to claim 3, characterized in that The accessing the first attribute of the association relationship resource object to obtain the first relationship data indicating the associated user includes: Obtain at least one first identifier and at least one second identifier by accessing the first attribute of the association relationship resource object; Pairing and storing the first identifier and the second identifier having the same identification information to obtain a pairing table including at least one pairing record; According to the pairing table, first relationship data is generated.

5. The method according to claim 4, characterized in that The method further comprises: The first identifications or the second identifications that do not have the same identification information are stored separately to obtain a non-pairing table; Generating first relationship data according to the pairing table includes: First relationship data is generated according to the matching table and the non-matching table.

6. The method according to claim 2, characterized in that The obtaining, according to the association relationship resource object and the corresponding image style, an association relationship list corresponding to the target special effect includes: When the image style is a dynamic image, access the second attribute of the association relationship resource object to obtain second relationship data indicating the associated user, wherein the second relationship data includes a preset number of third identifiers, the third identifiers correspond to user information of the associated user, and the preset number is the number of image frames of the dynamic image; Generate an association relationship list corresponding to the target special effect according to the second relationship data.

7. The method according to claim 2, characterized in that The obtaining, according to the association relationship resource object and the corresponding image style, an association relationship list corresponding to the target special effect includes: Determine the corresponding number of target associated users according to the associated relationship resource object and the corresponding image style; According to the number of target-associated users, a list of association relationships corresponding to the target special effects is obtained.

8. The method according to claim 7, characterized in that The determining the corresponding number of target associated users according to the associated relationship resource object and the corresponding image style includes: Acquire a first number of associated users, where the first number of associated users is a larger value of a capacity of a pairing table corresponding to the first relationship data and a preset number corresponding to the second relationship data; The target number of associated users is determined according to the sum of the first number of associated users and the capacity of the non-pairing table corresponding to the first relationship data.

9. The method according to claim 1, characterized in that: The acquiring corresponding association relationship information from the server based on the association relationship list includes: Obtaining a target association relationship type, and determining a target association relationship list from at least two association relationship lists; Based on the target association relationship list, corresponding association relationship information is obtained from a server.

10. The method according to claim 1, characterized in that After generating a corresponding special effect image based on the association relationship information, the method further includes: Generate a target video based on the special effect image; After the target video is released, obtaining at least one target association relationship information, wherein the target association relationship information is association relationship information corresponding to a target special effect image displayed in a target display posture in the target video; Hit information is sent to a server based on the target association relationship information, and the hit information is used to enable the server to send a notification message to a target-associated user corresponding to the target association relationship information.

11. The method according to claim 10, characterized in that Also includes: By loading the custom asset file, the notification switch status is obtained; The sending the hit information to the server based on the target association relationship information includes: When the switch state is the target state, hit information is sent to the server based on the target association relationship information.

12. The method according to claim 10, characterized in that The hit information includes at least one of the following: The identification ID of the current user, the identification ID of the target special effect, and the release time of the target video.

13. A special effect display device, characterized in that: include: an acquisition module, configured to acquire a corresponding custom asset file in response to a trigger of a target special effect, wherein the target special effect is used to display at least one frame of a special effect image, the special effect image being an image generated based on the association relationship information of the current user, the association relationship information representing a user identifier of an associated user having an association relationship with the current user; A loading module, used to load the custom asset file through the resource reference interface of the target special effect, obtain the association relationship list corresponding to the target special effect, and obtain the corresponding association relationship information from the server based on the association relationship list; A generation module is used to generate a corresponding special effect image based on the association relationship information.

14. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the special effect display method according to any one of claims 1 to 12.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the processor executes the computer-executable instructions, the special effect display method according to any one of claims 1 to 12 is implemented.

16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the special effect display method according to any one of claims 1 to 12 is implemented.

Citation Information

Patent Citations

  • Fluid effect rendering method and device

    CN115120966A

  • Special effect generation method and device, electronic equipment and storage medium

    CN115988255A

  • File exporting method, device and equipment

    CN116483783A

  • Image processing apparatus, image processing method, and program

    US20100104217A1

  • Generation apparatus, generation method, and non-transitory computer readable storage medium

    US20160309223A1