Special effect video generation method and apparatus, electronic device, and storage medium
By acquiring and dynamically determining the regional information of special effects videos, the problem of low generation efficiency and low information content of special effects videos in the existing technology is solved, the matching of special effects videos and regional features is achieved, and the efficiency of video generation and information richness are improved.
Patent Information
- Application Number
- PCT/CN2024/086757
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-09
- Publication Date
- 2024-10-31
AI Technical Summary
In existing video editing applications, the content of the special effects stickers displayed after the special effects props are triggered is fixed, and personalized special effects content cannot be generated, resulting in low efficiency and low information content in special effects video generation.
By responding to the triggering operation of the special effects component, regional information is obtained, the content of the special effects sticker is dynamically determined, and the target special effects sticker is displayed in the application interface to generate a special effects video.
It achieves the matching of special effects videos and regional features without the need for manual editing by users, improves the efficiency of video generation, and enriches the information content of special effects videos.
Smart Images

Figure CN2024086757_31102024_PF_FP_ABST
Abstract
Description
Special effects video generation method, device, electronic device and storage medium
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese Patent Application No. 202310485260.1, entitled “Special Effects Video Generation Method, Device, Electronic Device and Storage Medium,” filed on April 28, 2023, the disclosure of which is incorporated herein by reference in its entirety. Technical Field
[0003] The embodiments of the present disclosure relate to the field of Internet of Things technology, and in particular to a method, device, electronic device, and storage medium for generating special effects videos. Background Art
[0004] Currently, processing videos to generate special effects videos with corresponding virtual special effects is a common application scenario for video editing functions. Various applications and platforms implement this function by providing users with preset special effects props.
[0005] Summary of the Invention
[0006] Embodiments of the present disclosure provide a method, device, electronic device, and storage medium for generating special effects videos.
[0007] In a first aspect, an embodiment of the present disclosure provides a method for generating a special effects video, comprising:
[0008] Display an application interface; obtain area information in response to a first trigger operation for a special effect component, wherein the area information represents target area characteristics of a target area; display a target special effect sticker within the application interface, wherein the special effect content of the target special effect sticker is determined based on the area information; and generate a special effect video based on the target special effect sticker.
[0009] In a second aspect, an embodiment of the present disclosure provides a special effects video generation device, comprising:
[0010] Display module, used to display the application interface;
[0011] a processing module, configured to obtain region information in response to a first triggering operation on the special effect component, wherein the region information represents a target region feature of the target region;
[0012] A generation module is used to display target special effect stickers in the application interface and generate special effect videos based on the target special effect stickers, wherein the special effect content of the target special effect stickers is determined based on the area information.
[0013] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0014] a processor, and a memory communicatively connected to the processor;
[0015] The memory stores computer-executable instructions;
[0016] The processor executes the computer-executable instructions stored in the memory to implement the special effects video generation method described in the first aspect and various possible designs of the first aspect.
[0017] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the special effects video generation method described in the first aspect and various possible designs of the first aspect is implemented.
[0018] 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 video generation method described in the first aspect and various possible designs of the first aspect.
[0019] In a sixth aspect, an embodiment of the present disclosure provides a computer program, which, when executed by a processor, implements the special effects video generation method described in the first aspect and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. 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 any creative labor.
[0021] FIG1 is a diagram illustrating an application scenario of a special effects video generation method provided by an embodiment of the present disclosure;
[0022] FIG2 is a flowchart of a method for generating special effects videos according to an embodiment of the present disclosure;
[0023] FIG3 is a flowchart of a specific implementation method of step S102 in the embodiment shown in FIG2 ;
[0024] FIG4 is a schematic diagram of a process for generating a special effects video according to an embodiment of the present disclosure;
[0025] FIG5 is a schematic diagram of another process for generating special effects videos provided by an embodiment of the present disclosure;
[0026] FIG6 is a schematic diagram showing a second identifier according to an embodiment of the present disclosure;
[0027] FIG7 is a schematic diagram showing a third identifier according to an embodiment of the present disclosure;
[0028] FIG8 is a schematic diagram of a process flow for generating a second identifier and / or a third identifier provided by an embodiment of the present disclosure;
[0029] FIG9 is a flowchart of an interaction between a terminal device and a server provided by an embodiment of the present disclosure;
[0030] FIG10 is another flowchart of interaction between a terminal device and a server provided by an embodiment of the present disclosure;
[0031] FIG11 is a second flow chart of a method for generating special effects videos according to an embodiment of the present disclosure;
[0032] FIG12 is a schematic diagram of a process of responding to a first editing operation according to an embodiment of the present disclosure;
[0033] FIG13 is a third flow chart of a method for generating special effects videos according to an embodiment of the present disclosure;
[0034] FIG14 is a schematic diagram of a process for setting the display position in a frame corresponding to each initial image provided by an embodiment of the present disclosure;
[0035] FIG15 is a schematic diagram of a process for setting special effect content corresponding to each initial image provided by an embodiment of the present disclosure;
[0036] FIG16 is a structural block diagram of a special effects video generating device provided by an embodiment of the present disclosure;
[0037] FIG17 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0038] FIG18 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0040] 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.
[0041] In the solutions in the related art, when the special effects props are selected and triggered by the user, the content of the displayed special effects stickers is fixed, and personalized special effects content suitable for the user cannot be generated, resulting in low efficiency in generating special effects videos and small amount of information.
[0042] According to the special effects video generation method, device, electronic device and storage medium provided by the embodiments of the present disclosure, an application interface is displayed; in response to a first trigger operation for a special effects component, regional information is obtained, wherein the regional information represents the target area characteristics of the target area; a target special effects sticker is displayed within the application interface, wherein the special effects content of the target special effects sticker is determined based on the regional information; and a special effects video is generated based on the target special effects sticker. By displaying the special effects content determined by the regional information of the target area representing the target area characteristics within the application interface after the special effects component is triggered, a dynamic mapping between the regional information and the special effects content of the target special effects sticker triggered by the terminal device is achieved, thereby enabling the special effects video generated based on the target special effects sticker to match the regional characteristics without the need for manual editing or input by the user, thereby improving the efficiency of video generation and enriching the amount of information in the special effects video.
[0043] The following explains the application scenarios of the embodiments of the present disclosure:
[0044] The special effects video generation method provided by the embodiment of the present disclosure can be applied to application scenarios of video editing and generation. Specifically, it can be applied to video editing scenarios for generating regional location-related special effects. Regional location-related special effects include, for example, location punch-in special effects, scenery sharing special effects, etc. The specific implementation methods of the above special effects will be described in detail in subsequent embodiments. Figure 1 is an application scenario diagram of the special effects video generation method provided by the embodiment of the present disclosure. As shown in Figure 1, the method provided by the embodiment of the present disclosure can be applied to a terminal device, such as a smart phone, on which runs an application (Application, APP) having an image editing function capable of adding special effects to the initial image. In the application interface of the application, a special effects component for adding virtual special effects to the initial image is provided. When the user operates the terminal device and clicks on the special effects component, the special effects component is triggered, and then the corresponding special effects stickers are displayed in the application interface, such as the "glasses" sticker shown in the figure, to achieve the purpose of adding special effects to the initial image.
[0045] In the related art, for the above-mentioned typical video editing application scenarios, the content of the special effect stickers displayed after the special effect component is triggered is fixed, such as the "glasses" special effect in the above example. Its special effect content is fixed. However, in other application scenarios, such as video editing with themes such as "location check-in" and "scenery sharing", the video special effects with the above-mentioned fixed content cannot meet the user's personalized image editing needs, nor can they automatically generate personalized special effect content. In this case, the user can only manually insert text or logos and other information into the initial picture to meet the personalized needs of image editing, resulting in problems such as low generation efficiency and small amount of information of special effect videos. The disclosed embodiment provides a special effect video generation method to solve the above problems.
[0046] Referring to FIG2 , FIG2 is a flow chart of a method for generating special effects videos provided by an embodiment of the present disclosure. The method of this embodiment can be applied in a terminal device, and the method for generating special effects videos includes:
[0047] Step S101: Display the application interface.
[0048] Step S102: in response to a first triggering operation on the special effect component, obtaining region information, where the region information represents target region features of the target region.
[0049] Step S103: Displaying the target special effect sticker in the application interface, wherein the special effect content of the target special effect sticker is determined based on the area information.
[0050] Step S104: Generate a special effects video based on the target special effects sticker.
[0051] Exemplarily, referring to the schematic diagram of the application scenario shown in FIG1 , the execution subject of the method provided in the embodiment of the present application may be a terminal device, such as a smart phone, and the terminal device implements the special effects video generation method provided in this embodiment by running the target application. Specifically, after running the target application, the terminal device displays the application interface of the target application through the display screen. Furthermore, a special effects component is provided in the application interface. After the user triggers the special effects component through a first trigger operation such as clicking or long pressing by operating the terminal device, the target special effects sticker corresponding to the special effects component is displayed in the application interface. Among them, the special effects content of the target special effects sticker is determined based on the regional information, and the regional information characterizes the target area characteristics of the target area. In one possible implementation method, the regional information can be determined based on image data manually loaded by the user. Exemplarily, the specific implementation method of step S102 includes:
[0052] Step S1021: In response to a first triggering operation on the special effect component, image data is acquired.
[0053] Step S1022: Perform feature extraction on the image data to obtain region information.
[0054] The area information includes at least one of the following: the area location of the target area, the topographic features of the target area, and the target object information within the target area.
[0055] Exemplarily, after responding to a first trigger operation on a special effects component, a terminal device obtains image data, which may include a video or an image. For example, if the image data is an image, after the terminal device loads the image data in response to a user instruction, it performs feature extraction on the image data to obtain target area features, i.e., area information, of the target area represented in the image. The area information may include area location, topographic features, and target object information. The area location refers to the location point of the target area, or the area range of the target area, or a combination of the two. Topographic features refer to the topography of the target area, such as grassland or glacier. Target object information within the target area refers to a specific target object located within the target area, or features of the target object, such as the type or appearance of the target object. Specifically, for example, the target object information may be feature information describing a "sunflower" within the target area. Furthermore, the target object information may also be feature information describing a "flower" or a "red sunflower." The specific implementation method can be configured as needed and will not be detailed here. Furthermore, the image content in the image data includes a target area. After the terminal device extracts features from the image data, it obtains at least one of the regional position corresponding to the target area represented by the image data, the geomorphic features of the target area, and the target object information of the target area. For example, the regional information includes descriptive information representing "grassland", and more specifically, the regional information includes the character string "grassland"; for another example, the regional information includes descriptive information representing "A region", and more specifically, the regional information includes the character string "A place", and the regional information can also directly include specific location coordinates. Of course, in another possible implementation method, the regional information can simultaneously represent the regional position and geomorphic features, such as "A place grassland". The specific implementation method of the regional information can be set as needed and will not be repeated here.
[0056] In a possible implementation, the special effect content of the target special effect sticker includes the first identifier. Specifically, as shown in FIG3 , the specific implementation steps of step S103 include:
[0057] Step 1031: In response to a first triggering operation on the special effect component, a first logo is displayed in the application interface.
[0058] Exemplarily, in response to a first trigger operation on a special effect component, the terminal device obtains region information input by the user, or region information obtained by the user's request, and determines a target region category of the corresponding target region based on the region information. Subsequently, the terminal device obtains information such as text or an icon corresponding to the target region category or an identification mark of the target region category, i.e., a first identifier, and displays the first identifier representing the target region category within the application interface.
[0059] Figure 4 is a schematic diagram of a process for generating a special effects video provided by an embodiment of the present disclosure. As shown in Figure 4, exemplarily, in a possible implementation method, the application interface is a camera viewfinder interface, and a special effects component C1 (shown as C1 in the figure) is provided in the camera viewfinder interface. When the user clicks on the special effects component C1, the terminal device obtains the area information and determines the corresponding target area category (A area) based on the area information. Afterwards, the first identification "A area, here I come" generated based on the target area category is displayed in the camera viewfinder interface, that is, the special effects content of the target special effects sticker. Afterwards, the terminal device responds to the third trigger operation on the camera viewfinder interface to capture image data. The image data may include a single-frame picture, multiple-frame pictures or videos captured by the camera of the terminal device. In one possible implementation method, after the process of capturing the image data is completed, the terminal device directly renders the image data and the target special effect stickers to generate the final special effect video; in another possible implementation method, after the process of capturing the image data is completed, the terminal device returns to the image editing page to preview the superimposed display effect of the image data and the target special effect stickers. The user can further edit the image data or the target special effect stickers to change the content of the special effect image. After the editing is completed, the image data and the target special effect stickers are fused and rendered to generate the final special effect video.
[0060] In the process of shooting image data, the target special effects stickers are displayed in the camera viewfinder interface at the same time, so that users can preview the content of the final special effects video while shooting image data, thereby improving video editing efficiency.
[0061] Figure 5 is a schematic diagram of another process for generating special effects videos provided by an embodiment of the present disclosure. As shown in Figure 5, exemplarily, in one possible implementation method, the application interface is an image editing interface. In the image editing interface, a special effects component C2 (shown as C2 in the figure) and an album component (shown as C3 in the figure) are set. By triggering the album component, pre-generated image data is loaded, and the image data includes a video or at least one frame of a picture. Specifically, for example, when the user clicks on the album component and selects a frame of image, multiple frames of image or a video from the opened album page, the terminal device determines it as image data and displays the image data in the image editing interface; before or after this, the special effect component C2 is triggered, for example, the user clicks on the special effect component C2, and then the terminal device obtains the area information and determines the corresponding target area category (area B). After that, the terminal device displays the content of the image data on the first layer in the application interface, specifically, for example, one of the methods of playing a video, displaying the first frame of a video, displaying a frame of picture, displaying multiple frames of pictures in a carousel, etc., and displays the first logo "Area B, here I come" generated based on the target area category on the second layer of the application interface, wherein, optionally, the first layer is located below the second layer, that is, the target special effect sticker covers the content of the image data, so that the target special effect sticker has a better display effect. At this time, the terminal device previews the superimposed display effect of the image data and the target special effect stickers. The user can further edit the image data or the target special effect stickers to change the content of the special effect image. After the editing is completed, the generation instruction input by the user is executed, and the terminal device renders the image data and the target special effect stickers to generate the final special effect video.
[0062] In a possible implementation, as shown in FIG3 , after step S1031, the process further includes:
[0063] Step S1032: Display a second identifier in the application interface according to the target area category.
[0064] Specifically, the special effect content of the target special effect sticker also includes a second identifier, which represents the cumulative triggering number of target events corresponding to the target area category. The target event includes the terminal device generating the corresponding video special effect based on the target special effect sticker. For example, in one possible implementation method, among the many terminal devices running the target application (APP), when the terminal device D1 triggers the above-mentioned target special effect sticker by calling the special effect component in the target application and generates the corresponding video special effect, it is regarded as triggering a target event. Since the triggering of the above-mentioned target event is based on the target area category, that is, when the target area category is different, the special effect content of the target special effect sticker is different. Therefore, the target area category is the input parameter of the above-mentioned target event, and the target area category and the target event have a one-to-one correspondence. When the terminal device D1 is located in the target area category, after the above-mentioned target event is triggered, the cumulative triggering number of the target event corresponding to the target area category is increased by 1.
[0065] In a specific implementation, for example, when a terminal device triggers a target event, it sends a notification message to the server. The server obtains the notification message carrying the same area information to obtain the cumulative trigger data. The server then responds to the data request sent by the terminal device and sends the cumulative trigger count to the terminal device, so that the terminal device can generate a second identifier based on the cumulative trigger count corresponding to the target area category. In another possible implementation, the target event can also generate a corresponding video special effect for the terminal device based on the target special effect sticker and publish the video special effect. For example, publishing means uploading the special effect video to the server corresponding to the target application so that other users can view the video special effect within the target application.
[0066] Furthermore, the terminal device generates a corresponding second identifier based on the cumulative number of triggers, and displays the second identifier in the application interface. Figure 6 is a schematic diagram of displaying a second identifier provided by an embodiment of the present disclosure. As shown in Figure 6, in the application interface, based on the time sequence, the first identifier is displayed at the first moment, that is, the character string "A area, I am here", and then, at the second moment, the character string "The total number of people who check in in area A: 65535" is displayed, that is, the content of the second identifier. It is characterized in that in the target area category (such as area A or area B in the embodiment shown in Figure 4 or Figure 5), the cumulative number of times the target event is triggered (such as publishing a special effects video based on the target special effects sticker) is 65535 times. Among them, in other possible implementations, the first identifier and the second identifier can also appear at the same time, and the second identifier can always be located at the same position in the application interface, or it can be located at different positions in the application interface as time changes.
[0067] In a possible implementation, as shown in FIG3 , after step S1031, the process further includes:
[0068] Step S1033: Display a third identifier in the application interface according to the target area category.
[0069] Among them, illustratively, the special effect content of the target special effect sticker also includes a third identifier, which represents the ranking of the target area category in all area categories based on the cumulative number of triggers. The third identifier corresponds to the second identifier. In one possible implementation, the third identifier is generated based on the second identifier. Specifically, for example, among the many terminal devices running the target application, when the terminal device D1 triggers the above-mentioned target special effect sticker by calling the special effect component in the target application and generates the corresponding video special effect, it is considered to have triggered a target event. When the terminal device D1 is located in area A (target area category), after the above-mentioned target event is triggered, the cumulative number of triggers of the target event corresponding to area A is increased by 1. At the same time, after the terminal devices located in other areas trigger the above-mentioned target event, the cumulative number of triggers in other areas will also increase. Therefore, different areas correspond to a dynamically changing cumulative number of triggers, and based on the cumulative number of triggers, the target area category has a ranking sequence in all areas (including the target area category and other areas), such as a ranking sequence based on the cumulative number of triggers ranked from most to least.
[0070] In a specific implementation, for example, the ranking sequence corresponding to all the above-mentioned areas, and / or the ranking of the target area category in the ranking sequence, can be obtained by the server after obtaining the cumulative trigger data corresponding to all areas by comparing the cumulative trigger data of all areas. Thereafter, the server responds to the data request sent by the terminal device and sends the ranking sequence corresponding to all areas, and / or the ranking of the target area category in the ranking sequence to the terminal device, so that the terminal device can generate a third identifier based on the ranking sequence corresponding to all areas, and / or the ranking of the target area category in the ranking sequence.
[0071] Furthermore, the terminal device generates a third identifier based on the ranking sequence of the cumulative number of triggers, and / or the ranking of the target area category in the ranking sequence, and displays the third identifier in the application interface. Figure 7 is a schematic diagram of a display of a third identifier provided by an embodiment of the present disclosure. As shown in Figure 7, in the application interface, based on the time sequence, the first identifier is displayed at the first moment, the second identifier is displayed at the second moment, and the third identifier is displayed at the third moment; the third identifier includes the ranking of each area (area A, area B, area C, etc.) in all areas based on the cumulative number of triggers. As shown in the figure, area B ranks first, area A ranks second, and area C ranks third. On this basis, the second identifier can be displayed at the same time, that is, on the basis of displaying the ranking, the cumulative number of triggers corresponding to each area is displayed. In other possible implementations, the third identifier can also be displayed after displaying the first identifier or the second identifier, or at the same time as the first identifier or the second identifier is displayed, which will not be repeated here. Among them, the third identifier can always be located at the same position in the application interface, or it can be located at different positions in the application interface as time changes.
[0072] It should be noted that the above steps S1032 and S1033 can be executed simultaneously with step S1031, or can be executed sequentially or simultaneously after step S1031. The execution order between step S1032 and step S1033 can be set based on needs and is not specifically limited here.
[0073] Furthermore, the following further describes the process of generating the second identifier and / or the third identifier. FIG8 is a flow chart of a process of generating the second identifier and / or the third identifier provided in an embodiment of the present disclosure. Exemplarily, as shown in FIG8 , before displaying the second identifier and / or the third identifier, the following steps are further included:
[0074] Step S1020A: Send a first data request to the server, where the first data request includes first information representing the target special effect sticker and second information representing the target area category.
[0075] Step S1020B: receiving event data returned by the server, the event data including at least the cumulative number of triggers of the target event corresponding to the target area, and / or the ranking of the target area category among all area categories based on the cumulative number of triggers.
[0076] Step S1020C: Generate a second identifier and / or a third identifier based on the event data.
[0077] Optionally, after generating the second identifier and / or the third identifier, the method further includes: displaying the second identifier and / or the third identifier within the application interface in response to a second triggering operation. That is, in one possible implementation, the first identifier and / or the second identifier are initially invisible after being generated; after the terminal device receives and responds to the second triggering operation, the second identifier and / or the third identifier are displayed within the application interface.
[0078] Figure 9 is an interaction flow chart between a terminal device and a server provided by an embodiment of the present disclosure. As shown in Figure 9, exemplarily, after the terminal device D1 located in area A (target area category) triggers the above-mentioned target event, it sends a first data request to the corresponding server (i.e., the server end of the target application) through the target application. The first data request includes first information representing the target special effect sticker prop_1 and second information representing area A. After receiving the first data request, the server obtains notification information for the target special effect sticker prop_1 sent by all terminal devices in area A (including the target terminal device and other terminal devices) based on the first information and the second information, obtains the cumulative trigger number Data_1 (shown as Data_1 in the figure) of the target event corresponding to area A (i.e., the event of generating a special effect video based on the target special effect sticker prop_1), and sends the obtained cumulative trigger number Data_1 to the terminal device D1. The terminal device D1 generates a second identifier based on the cumulative trigger number Data_1.
[0079] FIG10 is another flow chart of interaction between a terminal device and a server provided in an embodiment of the present disclosure. For example, while obtaining the cumulative trigger count Data_1 for the target event corresponding to area A, the server asynchronously obtains the cumulative trigger counts for target events corresponding to other areas, such as the cumulative trigger count Data_2 for area B (shown as Data_2 in the figure) and the cumulative trigger count Data_3 for area C (shown as Data_3 in the figure), through notification information sent by terminal devices in other areas regarding the target special effect sticker prop_1. The cumulative trigger counts for all multiple areas are ranked to obtain event data, which is then sent to terminal device D1. Terminal device D1 generates a second identifier and / or a third identifier based on the event data. Among them, the event data includes at least the cumulative triggering number of the target event corresponding to the target area, and / or the ranking of the target area category in all area categories based on the cumulative triggering number. In one possible implementation method, the event data includes a ranking sequence Array_data, which stores the area ranking sequence and the cumulative triggering number corresponding to each area. For example, the ranking sequence Array_data = {A = a; B = c; C = c}, wherein A, B, and C are area identifiers representing area A, area B, and area C respectively, a, b, and c are the cumulative triggering numbers of different areas, and a=>b=>c (or a<=b<=c). Of course, in other possible implementation methods, the ranking sequence Array_data may also only include the area ranking sequence, for example, Array_data = {A; B; C}. The server sends the ranking sequence Array_data (event data) corresponding to the target event to the terminal device, and the terminal device generates a second identifier and / or a third identifier through the ranking sequence Array_data.
[0080] Afterwards, after the target special effect sticker is displayed in the application interface, based on the generation instruction input by the user, the terminal device can render the target special effect sticker into the corresponding initial image or initial video, thereby generating a special effect video. This rendering process is an existing technology and will not be described in detail here. Afterwards, optionally, after generating the special effect video, the terminal device can further send a notification message to the server based on the previous introduction, so that the server can update the cumulative trigger quantity and ranking sequence, thereby realizing dynamic update of the special effect content of the target special effect sticker in the special effect video.
[0081] By displaying an application interface; in response to a first trigger operation on a special effect component, displaying a target special effect sticker within the application interface, wherein the special effect content of the target special effect sticker is determined based on the region information; and generating a special effect video based on the target special effect sticker. After the special effect component is triggered, by displaying the special effect content determined by the region information when the terminal device triggers the target special effect sticker within the application interface, a dynamic mapping is achieved between the region information and the special effect content of the target special effect sticker triggered by the terminal device. This allows the special effect video generated based on the target special effect sticker to match the region information, eliminating the need for manual editing by the user, improving video generation efficiency, and enriching the information content in the special effect video.
[0082] Referring to Figure 11, Figure 11 is a second flow chart of the special effects video generation method provided by the embodiment of the present disclosure. In this embodiment, based on the embodiment shown in Figure 2, a process of modifying and setting the target special effects sticker is further added. The special effects video generation method includes:
[0083] Step S201: Display the application interface.
[0084] Step S202: In response to a first triggering operation on the special effect component, a target special effect sticker is displayed in the application interface, wherein the special effect content of the target special effect sticker is determined based on the area information.
[0085] Step S203: In response to the first editing operation on the target special effect sticker, the special effect content of the target special effect sticker is set to a fourth identifier, wherein the fourth identifier represents a custom area category.
[0086] Step S204: Displaying a fourth identifier in the application interface.
[0087] Exemplarily, after responding to the first trigger operation for the special effect component, the terminal device first displays the corresponding target special effect sticker in the application interface according to the regional information (the specific method for obtaining the regional information can be found in the introduction of the previous embodiment), such as the first identifier, the second identifier, the third identifier, etc. in the embodiment shown in Figure 2. The specific implementation method has been introduced in detail in the embodiment shown in Figure 2 and will not be repeated here. Since the target area category corresponding to the regional information implemented by the location coordinates has a multi-level feature, that is, the same device can be located in the corresponding city A, in the A_1 district in the city A, or in the A_1_1 park in the A_1 district (that is, the regional information can correspond to multiple regional levels); therefore, the regional level corresponding to the first identifier of the terminal device based on the device regional information may not match the regional level that the user is interested in, resulting in the problem of regional level misalignment. In order to solve the above problem, in this embodiment, the terminal device responds to the first editing operation input by the user to modify the special effect content of the target special effect sticker, thereby realizing the modification of the regional level. Specifically, for example, based on the previous steps, the content of the displayed target special effect sticker includes a first identifier, and the content of the first identifier is the string "City A"; thereafter, the terminal device responds to the first editing operation and modifies the content of the first identifier to "A_1_1 Park" (fourth identifier). Since the fourth identifier is generated based on the user's operation, corresponding to the first identifier representing the target area category where the area information is located, the fourth identifier represents a custom area category. The specific content of the custom area category can be determined based on the user's specific input and will not be repeated here.
[0088] Step S205: Based on the custom area category, a fifth identifier and / or a sixth identifier are displayed in the application interface, wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom area category; and the sixth identifier represents the ranking of the custom area category in all areas based on the cumulative number of triggers.
[0089] Furthermore, based on the first editing instruction, after obtaining the custom area category, the terminal device can also display the fifth identifier and / or the sixth identifier corresponding to the fourth identifier in the application interface, wherein the fifth identifier represents the cumulative trigger quantity of the target event corresponding to the custom area category; the sixth identifier represents the ranking of the custom area category in all areas based on the cumulative trigger quantity. The fifth identifier is equivalent to the second identifier in the previous embodiment, and the sixth identifier is equivalent to the identifier in the previous embodiment. The difference is that the second identifier and the third identifier are generated based on the target area category, while the fifth identifier and the sixth identifier are generated based on the custom area category. Accordingly, the generation method of the fifth identifier and the sixth identifier is also based on the custom area category, by sending a data request to the server and receiving the time information sent by the server. Specifically, the specific implementation method of step S205 includes:
[0090] Step S2051: Send a second data request, where the second data request includes first information representing the target special effect sticker and second information representing the custom area category;
[0091] Step S2052: receiving event data returned by the server, the event data including at least the cumulative number of triggers of the target event corresponding to the custom area category, and / or the ranking of the custom area category in all areas based on the cumulative number of triggers;
[0092] Step S2053: Generate a fifth identifier and / or a sixth identifier based on the event data and display them.
[0093] The specific method for generating the fifth identifier and / or the sixth identifier mentioned above can refer to the specific implementation method for generating the second identifier and / or the third identifier in the embodiment shown in Figure 8, which will not be repeated here.
[0094] FIG12 is a schematic diagram of a process of responding to a first editing operation provided by an embodiment of the present disclosure. As shown in FIG12 , when the first identifier (content is "I am in area A"), the second identifier (content is "65535 check-ins") and the third identifier (content is "A area: national ranking 3") are displayed in the application interface, the terminal device responds to the first editing operation input by the user and modifies the first identifier to the fourth identifier (content is "I am in A_1_1 Park"). After that, the terminal device obtains the corresponding custom area category "A_1_1 Park" based on the content of the fourth identifier, and based on the custom area category "A_1_1 Park", the second identifier is modified to the fifth identifier (content is "305 check-ins") and the third identifier is modified to the sixth identifier (content is "A_1_1 Park: national ranking 1402"), and displayed in the application interface, thereby realizing the content setting and updating of the target special effect sticker. In the above process, only the first identifier needs to be modified. The second and third identifiers will automatically match and correct based on the change of the area (the target area category becomes the custom area category), without the need for manual modification, thereby improving image editing efficiency.
[0095] Step S206: Generate a special effects video based on the target special effects sticker.
[0096] In this embodiment, the specific implementation of steps S201-S202 and step S206 is consistent with the specific implementation of steps S101-S103 in the embodiment shown in Figure 2. For detailed discussion, please refer to the discussion in steps S101-S103, which will not be repeated here.
[0097] In this embodiment, the special effect content of the target special effect sticker is modified based on the first editing operation so that the regional level represented by the target special effect sticker can match the regional level that the user is interested in, thereby avoiding the problem of regional level misalignment, improving the accuracy of the information displayed in the special effect video, and meeting the user's personalized needs.
[0098] Referring to FIG13 , FIG13 is a flow chart of the third method for generating a special effects video provided by an embodiment of the present disclosure. In this embodiment, based on the embodiment shown in FIG2 or FIG11 , the method for setting the position and content of the target special effects sticker is further refined. The method for generating a special effects video includes:
[0099] Step S301: Display the application interface.
[0100] Step S302: In response to a first triggering operation on the special effect component, a target special effect sticker is displayed in the application interface, wherein the special effect content of the target special effect sticker is determined based on the region information.
[0101] Step S303: In response to the second editing operation on the target special effect sticker, set the display position of the target special effect sticker in the special effect video, and / or the special effect content of the target special effect sticker in the special effect video.
[0102] Exemplarily, the second editing operation is used to set the display position and / or special effect content of the target special effect sticker in the special effect video. The second editing operation may include coordinate information, which is used to set the display position of the target special effect sticker in the special effect video; the second editing operation may also include content information, such as a string, which is used to set the special effect content of the target special effect sticker, for example, changing the special effect content of the target special effect sticker from the first identifier to the fourth identifier.
[0103] In one possible implementation, the special effects video is generated based on at least two frames of initial images and target special effects stickers. The terminal device obtains the pre-generated at least two frames of initial images and target special effects stickers and renders them to obtain the special effects video. In this case, exemplarily, the second editing operation includes at least two first sub-editing operations on the initial image, and the first sub-editing operation is used to edit a single frame of the initial image so that the target special effects sticker appears in different positions in the at least two frames of the initial image. A possible implementation of step S303 includes:
[0104] Step S3031: In the first sub-editing operation for the initial picture, the display position in the frame corresponding to each initial picture should be set so that when the special effect video is played, the target special effect stickers are displayed at the display position in the frame corresponding to each initial picture.
[0105] FIG14 is a schematic diagram of a process for setting the display position in the frame corresponding to each initial image provided by an embodiment of the present disclosure. As shown in FIG14 , the initial images used to generate the special effects video include initial image P1, initial image P2, and initial image P3. The second editing operation includes three first sub-editing operations, namely, operation op_01 (shown as op_01 in the figure) for initial image P1, operation op_02 (shown as op_02 in the figure) for initial image P2, and operation op_03 (shown as op_03 in the figure) for initial image P3. Each first sub-editing operation corresponds to a click operation. After the terminal device responds to each first sub-editing operation, it obtains the corresponding click coordinates, and obtains the corresponding display positions o1, o2, and o3 in the frame according to each click coordinate. After the settings are made based on the display position in the above frames, in the video editing stage, that is, when the application interface is the video editing interface, the above initial image P1, initial picture P2 and initial picture P3 are displayed in sequence or in a loop based on preset intervals in the video editing interface, and the target special effect stickers are also displayed at the corresponding display position in the frame of each initial picture. The display content in the above video editing interface is equivalent to a preview of the special effects video, that is, when the special effects video is played, the target special effect stickers are displayed at the display position in the frame corresponding to each initial picture.
[0106] In this embodiment, the terminal device responds to the second editing instruction and sets the appearance position of the target special effect sticker in each initial image, so that in the generated special effect video, the target special effect sticker can achieve dynamic movement based on the image frame dimension. This can avoid the problem of the target special effect sticker obscuring key objects in the image (such as the human torso or face), and improve the visual effect of the special effect video.
[0107] Exemplarily, the second editing operation includes at least two second sub-editing operations on the initial image. Another possible implementation of step S303 includes:
[0108] Step S3032: In response to the second sub-editing operation on the initial picture, set the special effect content of the target special effect sticker in at least one frame of the initial picture, so that when the special effect video is played, the target special effect sticker is displayed based on the special effect content corresponding to each initial picture.
[0109] Exemplarily, similar to the first sub-editing operation, the second sub-editing operation is targeted at the initial picture and is used to change the special effect content of the target special effect sticker in the initial picture. In one possible implementation method, the second sub-editing operation is implemented in the same way as the first editing operation in the previous embodiment, for example, it is used to modify the first identifier corresponding to the target special effect sticker to the fourth identifier, so that each frame of the initial image corresponds to different special effect content of the target special effect sticker.
[0110] Figure 15 is a schematic diagram of a process for setting special effect content corresponding to each initial image provided by an embodiment of the present disclosure. As shown in Figure 15, the initial images used to generate the special effect video include initial image P1, initial image P2, and initial image P3. The second editing operation includes three second sub-editing operations, namely operation op_11 (shown as op_11 in the figure) for initial image P1, operation op_12 (shown as op_12 in the figure) for initial image P2, and operation op_13 (shown as op_13 in the figure) for initial image P3. Each second sub-editing operation corresponds to a string input operation. After the terminal device responds to each second sub-editing operation, it sets the corresponding special effect content in each initial image. As shown in the figure, the special effect content of the target special effect sticker in the initial image P1 includes the string "A City", the special effect content of the target special effect sticker in the initial image P1 includes the string "A_1 District", and the special effect content of the target special effect sticker in the initial image P3 includes the string "A_1_1 Park". When rendering is performed based on the initial image P1, the initial image P2 and the initial image P3 in combination with the target special effect stickers, the generated special effect video is displayed on the target special effect stickers based on the special effect content corresponding to each initial picture during playback, that is, the character string "A City" is displayed in the video screen corresponding to the initial image P1, the character string "A_1 District" is displayed in the video screen corresponding to the initial image P2, and the character string "A_1_1 Park" is displayed in the video screen corresponding to the initial image P3.
[0111] In the steps of this embodiment, the terminal device responds to the second editing instruction to set the special effect content of the target special effect sticker in each initial picture, so that in the generated special effect video, the target special effect sticker can realize dynamic content transformation based on the image frame dimension, thereby improving the information richness and information display efficiency in the special effect video.
[0112] Step S304: Generate a special effects video based on the target special effects sticker.
[0113] In this embodiment, the specific implementation of steps S301-S302 and step S304 is consistent with the specific implementation of steps S101-S103 in the embodiment shown in Figure 2. For detailed discussion, please refer to the discussion in steps S101-S103, which will not be repeated here. At the same time, it should be noted that the solution provided by this embodiment can also be implemented on the basis of the embodiment shown in Figure 11, that is, after sequentially executing steps S201-S205 in the embodiment shown in Figure 11, steps S303-S304 in this embodiment are executed to further set the display position and / or special effect content of the target special effect sticker. This can be set according to specific needs, which will not be repeated here.
[0114] Corresponding to the special effects video generation method of the above embodiment, FIG16 is a structural block diagram of the special effects video generation device provided by the embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Referring to FIG16, the special effects video generation device 4 includes:
[0115] Display module 41, used to display the application interface;
[0116] A processing module 42 is configured to obtain region information in response to a first triggering operation on the special effect component, wherein the region information represents a target region having target region characteristics;
[0117] The generation module 43 is used to display the target special effect sticker in the application interface and generate a special effect video based on the target special effect sticker, wherein the special effect content of the target special effect sticker is determined based on the area information.
[0118] In one embodiment of the present disclosure, the processing module 42 is specifically used to: obtain image data in response to a first trigger operation on the special effects component; perform feature extraction on the image data to obtain area information, wherein the area information includes the area location and / or topographic features of the target area.
[0119] In one embodiment of the present disclosure, the special effect content of the target special effect sticker includes a first identifier; when the generation module 43 displays the target special effect sticker in the application interface, it is specifically used to: determine the target area category of the target area based on the area information; generate the first identifier based on the target area category; and display the first identifier in the application interface.
[0120] In one embodiment of the present disclosure, the special effect content of the target special effect sticker also includes a second identifier, which represents the cumulative triggering number of target events corresponding to the target area category, and the target event includes the terminal device generating the corresponding video special effect based on the target special effect sticker; when the generation module 43 displays the target special effect sticker in the application interface, it is also used to: display the second identifier in the application interface.
[0121] In one embodiment of the present disclosure, the special effect content of the target special effect sticker also includes a third identifier, which represents the ranking of the target area category in all area categories based on the cumulative number of triggers; when the generation module 43 displays the target special effect sticker in the application interface, it is also used to: display the third identifier in the application interface.
[0122] In one embodiment of the present disclosure, the generation module 32 is also used to: send a first data request to the server, wherein the first data request includes first information representing the target special effect sticker and second information representing the target area category; receive event data returned by the server, wherein the event data includes at least the cumulative number of triggers of the target event corresponding to the target area, and / or the ranking of the target area in all areas based on the cumulative number of triggers; and generate a second identifier and / or a third identifier based on the event data.
[0123] In one embodiment of the present disclosure, the generation module 32 is also used to: in response to a first editing operation on the target special effect sticker, set the special effect content of the target special effect sticker to a fourth identifier, wherein the fourth identifier represents a custom area category; and display the fourth identifier in the application interface.
[0124] In one embodiment of the present disclosure, the generation module 32 is further used to: display a fifth identifier and / or a sixth identifier in the application interface based on the custom area category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom area category; and the sixth identifier represents the ranking of the custom area category in all area categories based on the cumulative number of triggers.
[0125] In one embodiment of the present disclosure, the generation module 32 is also used to: in response to a second editing operation on the target special effect sticker, set the display position of the target special effect sticker in the special effect video, and / or the special effect content of the target special effect sticker in the special effect video.
[0126] In one embodiment of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, and the second editing operation includes at least two first sub-editing operations for the initial pictures; the generation module 32, in response to the second editing operation for the target special effects stickers, sets the display position of the target special effects stickers in the special effects video, and is specifically used to: in response to the first sub-editing operation for the initial pictures, set the display position in the frame corresponding to each of the initial pictures, so that when the special effects video is played, the target special effects stickers are respectively displayed at the display position in the frame corresponding to each of the initial pictures.
[0127] In one embodiment of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, and the second editing operation includes at least two second sub-editing operations for the initial pictures. The generation module 32 is also used to: in response to the second sub-editing operation for the initial picture, set the special effects content of the target special effects sticker in at least one frame of the initial picture, so that when the special effects video is played, the target special effects stickers are displayed based on the special effects content corresponding to each of the initial pictures.
[0128] In one embodiment of the present disclosure, the generation module 33 is further used to: obtain pre-generated image data, the image data including a video or at least one frame of a picture; display the content of the image data on the first layer within the application interface; when the generation module 33 displays the target special effect stickers within the application interface, it is also used to: display the target special effect stickers on the second layer of the application interface, wherein the first layer is located below the second layer.
[0129] In one embodiment of the present disclosure, the application interface is a camera viewfinder interface, and the generation module 33 is also used for at least one of the following: in response to a third trigger operation on the camera viewfinder interface, capturing image data, and the image data is used to generate the special effects video in combination with the target special effects stickers; in the process of capturing the image data, displaying the target special effects stickers in the viewfinder interface.
[0130] The display module 41, the processing module 42 and the generating module 43 are connected. The special effect video generating device 4 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.
[0131] FIG17 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. As shown in FIG17 , the electronic device 5 includes:
[0132] A processor 51, and a memory 52 communicatively connected to the processor 51;
[0133] Memory 52 stores computer-executable instructions;
[0134] The processor 51 executes the computer-executable instructions stored in the memory 52 to implement the special effects video generation method in the embodiments shown in Figures 2 to 15.
[0135] Optionally, the processor 51 and the memory 52 are connected via a bus 53 .
[0136] The relevant explanations can be understood by referring to the relevant descriptions and effects corresponding to the steps in the embodiments corresponding to Figures 2 to 15, and no further details will be given here.
[0137] An embodiment of the present disclosure provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, they are used to implement the special effects video generation method provided in any of the embodiments corresponding to Figures 2 to 15 of the present disclosure.
[0138] The present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, the special effects video generation method in the embodiments shown in FIG. 2 to FIG. 15 is implemented.
[0139] Referring to FIG18 , there is shown a schematic diagram of the structure of an electronic device 900 suitable for implementing an embodiment of the present disclosure. 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, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG18 is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0140] As shown in FIG18 , 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 into a random access memory (RAM) 903. Various programs and data required for the operation of the electronic device 900 are also stored in the RAM 903. 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.
[0141] Typically, the following devices can be connected to the I / O interface 905: an input device 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 908 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 909. The communication device 909 can allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although FIG18 shows an electronic device 900 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0142] 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 includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 909, or installed from the storage device 908, or installed from the 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 performed.
[0143] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, 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 that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport 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 thereof.
[0144] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0145] 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.
[0146] 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 a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0147] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two 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 box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0148] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0149] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and 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 chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0150] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.
[0151] In a first aspect, according to one or more embodiments of the present disclosure, a method for generating a special effects video is provided, comprising:
[0152] Display an application interface; obtain area information in response to a first trigger operation for a special effect component, wherein the area information represents target area characteristics of a target area; display a target special effect sticker within the application interface, wherein the special effect content of the target special effect sticker is determined based on the area information; and generate a special effect video based on the target special effect sticker.
[0153] According to one or more embodiments of the present disclosure, obtaining regional information in response to a first trigger operation on a special effects component includes: acquiring image data in response to a first trigger operation on a special effects component; performing feature extraction on the image data to obtain regional information, wherein the regional information includes the regional location and / or topographic features of the target area.
[0154] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker includes a first identifier; displaying the target special effect sticker in the application interface includes: determining the target area category of the target area based on the area information; generating the first identifier based on the target area category; and displaying the first identifier in the application interface.
[0155] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker also includes a second identifier, which represents the cumulative triggering number of target events corresponding to the target area category, and the target event includes the terminal device generating a corresponding video special effect based on the target special effect sticker; the displaying of the target special effect sticker in the application interface also includes: displaying the second identifier in the application interface.
[0156] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker also includes a third identifier, and the third identifier represents the ranking of the target area category in all area categories based on the cumulative number of triggers; the display of the target special effect sticker in the application interface also includes: displaying the third identifier in the application interface.
[0157] According to one or more embodiments of the present disclosure, the method also includes: sending a first data request to a server, wherein the first data request includes first information representing the target special effect sticker and second information representing the target area category; receiving event data returned by the server, wherein the event data includes at least the cumulative number of triggers of the target event corresponding to the target area, and / or the ranking of the target area in all areas based on the cumulative number of triggers; and generating a second identifier and / or a third identifier based on the event data.
[0158] According to one or more embodiments of the present disclosure, the method further includes: in response to a first editing operation on the target special effect sticker, setting the special effect content of the target special effect sticker to a fourth identifier, wherein the fourth identifier represents a custom area category; and displaying the fourth identifier within the application interface.
[0159] According to one or more embodiments of the present disclosure, the method further includes: displaying a fifth identifier and / or a sixth identifier in the application interface based on the custom area category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom area category; and the sixth identifier represents the ranking of the custom area category in all area categories based on the cumulative number of triggers.
[0160] According to one or more embodiments of the present disclosure, the method further includes: in response to a second editing operation on the target special effects sticker, setting the display position of the target special effects sticker in the special effects video, and / or the special effects content of the target special effects sticker in the special effects video.
[0161] According to one or more embodiments of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, and the second editing operation includes at least two first sub-editing operations for the initial pictures; the display position of the target special effects stickers in the special effects video is set in response to the second editing operation for the target special effects stickers, including: in response to the first sub-editing operation for the initial pictures, the display position in the frame corresponding to each of the initial pictures is set, so that when the special effects video is played, the target special effects stickers are respectively displayed at the display position in the frame corresponding to each of the initial pictures.
[0162] According to one or more embodiments of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, the second editing operation includes at least two second sub-editing operations for the initial pictures, and the method further includes: in response to the second sub-editing operation for the initial picture, setting the special effects content of the target special effects stickers in at least one frame of the initial picture, so that when the special effects video is played, the target special effects stickers are displayed based on the special effects content corresponding to each of the initial pictures.
[0163] According to one or more embodiments of the present disclosure, the method also includes: obtaining pre-generated image data, the image data including a video or at least one frame of a picture; displaying the content of the image data on a first layer within the application interface; displaying the target special effect stickers on a second layer within the application interface, including: displaying the target special effect stickers on a second layer of the application interface, wherein the first layer is located below the second layer.
[0164] According to one or more embodiments of the present disclosure, the application interface is a camera viewfinder interface, and the method further includes at least one of the following: in response to a third trigger operation on the camera viewfinder interface, capturing image data, wherein the image data is used to generate the special effects video in combination with the target special effects stickers; and in the process of capturing the image data, displaying the target special effects stickers in the viewfinder interface.
[0165] In a second aspect, according to one or more embodiments of the present disclosure, a special effects video generation device is provided, comprising:
[0166] A display module is used to display an application interface; a processing module is used to obtain area information in response to a first trigger operation on a special effect component, wherein the area information represents a target area with target area characteristics; a generation module is used to display a target special effect sticker in the application interface, and generate a special effect video based on the target special effect sticker, wherein the special effect content of the target special effect sticker is determined based on the area information.
[0167] According to one or more embodiments of the present disclosure, the processing module is specifically used to: obtain image data in response to a first trigger operation on the special effects component; perform feature extraction on the image data to obtain area information, wherein the area information includes the area location and / or topographic features of the target area.
[0168] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker includes a first identifier; when the generation module displays the target special effect sticker in the application interface, it is specifically used to: determine the target area category of the target area based on the area information; generate the first identifier based on the target area category; and display the first identifier in the application interface.
[0169] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker also includes a second identifier, which represents the cumulative triggering number of target events corresponding to the target area category, and the target event includes the terminal device generating the corresponding video special effect based on the target special effect sticker; when the generation module displays the target special effect sticker in the application interface, it is also used to: display the second identifier in the application interface.
[0170] According to one or more embodiments of the present disclosure, the special effect content of the target special effect sticker also includes a third identifier, which represents the ranking of the target area category in all area categories based on the cumulative number of triggers; when the generation module displays the target special effect sticker in the application interface, it is also used to: display the third identifier in the application interface.
[0171] According to one or more embodiments of the present disclosure, the generation module is also used to: send a first data request to the server, wherein the first data request includes first information representing the target special effect sticker and second information representing the target area category; receive event data returned by the server, wherein the event data includes at least the cumulative number of triggers of the target event corresponding to the target area, and / or the ranking of the target area in all areas based on the cumulative number of triggers; and generate a second identifier and / or a third identifier based on the event data.
[0172] According to one or more embodiments of the present disclosure, the generation module is also used to: in response to a first editing operation on the target special effect sticker, set the special effect content of the target special effect sticker to a fourth identifier, wherein the fourth identifier represents a custom area category; and display the fourth identifier within the application interface.
[0173] According to one or more embodiments of the present disclosure, the generation module is also used to: display a fifth identifier and / or a sixth identifier in the application interface based on the custom area category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom area category; and the sixth identifier represents the ranking of the custom area category in all area categories based on the cumulative number of triggers.
[0174] According to one or more embodiments of the present disclosure, the generation module is also used to: in response to a second editing operation on the target special effects sticker, set the display position of the target special effects sticker in the special effects video, and / or the special effects content of the target special effects sticker in the special effects video.
[0175] According to one or more embodiments of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, and the second editing operation includes at least two first sub-editing operations for the initial pictures; when the generation module sets the display position of the target special effects stickers in the special effects video in response to the second editing operation for the target special effects stickers, it is specifically used to: in response to the first sub-editing operation for the initial pictures, set the display position in the frame corresponding to each of the initial pictures, so that when the special effects video is played, the target special effects stickers are respectively displayed at the display position in the frame corresponding to each of the initial pictures.
[0176] According to one or more embodiments of the present disclosure, the special effects video is generated based on at least two frames of initial pictures and the target special effects stickers, and the second editing operation includes at least two second sub-editing operations for the initial pictures. The generation module is also used to: in response to the second sub-editing operation for the initial picture, set the special effects content of the target special effects sticker in at least one frame of the initial picture, so that when the special effects video is played, the target special effects stickers are displayed based on the special effects content corresponding to each of the initial pictures.
[0177] According to one or more embodiments of the present disclosure, the generation module is also used to: obtain pre-generated image data, the image data including video or at least one frame of picture; display the content of the image data on the first layer within the application interface; when the generation module 33 displays the target special effect stickers in the application interface, it is also used to: display the target special effect stickers on the second layer of the application interface, wherein the first layer is located below the second layer.
[0178] According to one or more embodiments of the present disclosure, the application interface is a camera viewfinder interface, and the generation module is further used for at least one of the following: in response to a third trigger operation on the camera viewfinder interface, capturing image data, and the image data is used to generate the special effects video in combination with the target special effects stickers; in the process of capturing the image data, displaying the target special effects stickers in the viewfinder interface.
[0179] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0180] The memory stores computer-executable instructions;
[0181] The processor executes the computer-executable instructions stored in the memory to implement the special effects video generation method described in the first aspect and various possible designs of the first aspect.
[0182] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the special effects video generation method described in the first aspect and various possible designs of the first aspect is implemented.
[0183] 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 video generation method described in the first aspect and various possible designs of the first aspect.
[0184] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. 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 the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.
[0185] 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 have been 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.
[0186] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A special effects video generation method, comprising: Display the application interface; In response to a first trigger operation on the special effect component, obtaining region information, wherein the region information represents a target region feature of the target region; Displaying a target special effect sticker in the application interface, wherein the special effect content of the target special effect sticker is determined based on the area information; Based on the target special effect sticker, a special effect video is generated.
2. The method according to claim 1, wherein: The step of obtaining the region information in response to the first trigger operation on the special effect component includes: In response to a first trigger operation on the special effect component, acquiring image data; Perform feature extraction on the image data to obtain region information, wherein the region information includes at least one of the following: The area location of the target area, the geomorphic features of the target area, and the target object information in the target area.
3. The method according to claim 1 or 2, wherein: The special effect content of the target special effect sticker includes a first mark; The displaying of the target special effect sticker in the application interface includes: Determining a target area category of the target area according to the area information; generating the first identifier according to the target area category; The first identifier is displayed in the application interface.
4. The method according to claim 3, wherein: The special effect content of the target special effect sticker also includes a second identifier, which represents the cumulative triggering number of target events corresponding to the target area category, and the target event includes a terminal device generating a corresponding video special effect based on the target special effect sticker; The displaying of the target special effect sticker in the application interface also includes: The second identifier is displayed in the application interface.
5. The method according to claim 4, wherein: The special effect content of the target special effect sticker also includes a third identifier, and the third identifier represents the ranking of the target area category among all area categories based on the cumulative number of triggers; The displaying of the target special effect sticker in the application interface also includes: The third identifier is displayed in the application interface.
6. The method according to any one of claims 3 to 5, wherein: The method further comprises: Sending a first data request to a server, wherein the first data request includes first information representing the target special effect sticker and second information representing the target area category; receiving event data returned by the server, the event data including at least a cumulative number of triggers of target events corresponding to the target area category, and / or a ranking of the target area category among all area categories based on the cumulative number of triggers; A second identifier and / or a third identifier is generated according to the event data.
7. The method according to any one of claims 1 to 6, wherein: The method further comprises: In response to a first editing operation on the target special effect sticker, setting the special effect content of the target special effect sticker to a fourth identifier, wherein the fourth identifier represents a custom area category; The fourth identifier is displayed in the application interface.
8. The method according to claim 7, wherein: The method further comprises: Based on the custom area category, displaying a fifth identifier and / or a sixth identifier in the application interface; The fifth identifier represents the cumulative triggering quantity of the target event corresponding to the custom area category; The sixth identifier represents the ranking of the user-defined area category among all area categories based on the cumulative number of triggers.
9. The method according to any one of claims 1 to 8, wherein: The method further comprises: In response to a second editing operation on the target special effect sticker, a display position of the target special effect sticker in the special effect video and / or a special effect content of the target special effect sticker in the special effect video are set.
10. The method according to claim 9, wherein: The special effect video is generated based on at least two frames of initial pictures and the target special effect stickers, and the second editing operation includes at least two first sub-editing operations for the initial pictures; In response to the second editing operation on the target special effect sticker, setting the display position of the target special effect sticker in the special effect video includes: In response to the first sub-editing operation for the initial picture, the display position in the frame corresponding to each of the initial pictures is set so that when the special effect video is played, the target special effect stickers are respectively displayed at the display position in the frame corresponding to each of the initial pictures.
11. The method according to claim 9 or 10, wherein: The special effect video is generated based on at least two frames of initial pictures and the target special effect stickers, the second editing operation includes at least two second sub-editing operations for the initial pictures, and the method further includes: In response to the second sub-editing operation for the initial picture, the special effect content of the target special effect sticker in at least one frame of the initial picture is set, so that when the special effect video is played, the target special effect sticker is displayed based on the special effect content corresponding to each of the initial pictures.
12. The method according to any one of claims 1 to 11, wherein: The method further comprises: Acquire pre-generated image data, wherein the image data includes a video or at least one frame of a picture; Displaying the content of the image data in a first layer within the application interface; The displaying of the target special effect sticker in the application interface includes: The target special effect sticker is displayed in a second layer of the application interface, wherein the first layer is located below the second layer.
13. The method according to any one of claims 1 to 12, wherein: The application interface is a camera viewfinder interface, and the method further includes at least one of the following: In response to a third trigger operation on the camera viewfinder interface, capturing image data, wherein the image data is used to generate the special effect video in combination with the target special effect sticker; During the process of capturing image data, the target special effect sticker is displayed in the viewfinder interface.
14. A special effects video generating device, comprising: Display module, used to display the application interface; A processing module, configured to obtain region information in response to a first trigger operation on the special effect component, wherein the region information represents a target region having target region characteristics; A generation module is used to display target special effect stickers in the application interface and generate special effect videos based on the target special effect stickers, wherein the special effect content of the target special effect stickers is determined based on the area information.
15. An electronic device, comprising: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the special effect video generation method according to any one of claims 1 to 13.
16. A computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the special effect video generation method according to any one of claims 1 to 13 is implemented.
17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the special effect video generation method according to any one of claims 1 to 13 is implemented.
18. A computer program, which, when executed by a processor, implements the special effect video generation method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Image display method and device and computer readable storage medium
CN108174099A
Video generation method and electronic equipment
CN110650304A
Video call method and device, electronic equipment and storage medium
CN111770298A
Method, device and equipment for adding special effect in video and readable storage medium
CN112422844A
Special effect test method and device, equipment and storage medium
CN115841583A
