Special effects video generation methods, devices, electronic equipment and storage media

CN118869901BActive Publication Date: 2026-08-14BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

[0004]本公开实施例提供一种特效视频生成方法、装置、电子设备及存储介质,以克服特效视频的生成效率低、信息量少的问题

Benefits of technology

[0017]本实施例提供的特效视频生成方法、装置、电子设备及存储介质,通过显示应用界面;响应于针对特效组件的第一触发操作,获得区域信息,所述区域信息表征目标区域的目标区域特征;在所述应用界面内显示目标特效贴纸,其中,所述目标特效贴纸的特效内容是基于所述区域信息确定的;基于所述目标特效贴纸,生成特效视频。通过在触发特效组件后,在应用界面内显示由表征目标地区特征的目标地区的区域信息确定的特效内容,从而实现了区域信息与终端设备所触发的目标特效贴纸的特效内容之间的动态映射,进而使基于目标特效贴纸生成的特效视频能够与区域特征相匹配,无需用户进行手动编辑或输入,提高了视频生成效率,丰富了特效视频中的信息量。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869901B_ABST
    Figure CN118869901B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, electronic device, and storage medium for generating special effects videos. The method involves displaying an application interface; responding to a first trigger operation on a special effects component to obtain region information, where the region information represents the target region characteristics; displaying a target special effects sticker within the application interface, wherein the special effects content of the target special effects sticker is determined based on the region information; and generating a special effects video based on the target special effects sticker. By displaying the special effects content determined by the region information representing the target region characteristics within the application interface after triggering the special effects component, a dynamic mapping between the region information and the special effects content of the target special effects sticker triggered by the terminal device is achieved. This allows the special effects video generated based on the target special effects sticker to match the region characteristics, eliminating the need for manual editing or input by the user, improving video generation efficiency, and enriching the information content in the special effects video.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of Internet of Things (IoT) technology, and in particular to a method, apparatus, electronic device, and storage medium for generating special effects videos. Background Technology

[0002] Currently, processing videos to generate special effects videos with corresponding virtual effects is a common application scenario for video editing functions. Various applications and platforms provide users with preset special effects tools to achieve the above-mentioned function of generating special effects videos.

[0003] However, in existing technologies, once a special effects prop is selected and triggered by the user, the content of the displayed special effects sticker is fixed, and it is impossible to generate personalized special effects content suitable for the user, resulting in problems such as low generation efficiency and insufficient information in the special effects video. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for generating special effects videos, in order to overcome the problems of low generation efficiency and low information content in special effects videos.

[0005] In a first aspect, embodiments of this disclosure provide a method for generating special effects videos, including:

[0006] Display the application interface; in response to a first trigger operation on the special effects component, obtain region information, the region information representing the target region characteristics; display the target special effects sticker within the application interface, wherein the special effects content of the target special effects sticker is determined based on the region information; generate a special effects video based on the target special effects sticker.

[0007] Secondly, embodiments of this disclosure provide a special effects video generation apparatus, comprising:

[0008] The display module is used to display the application interface;

[0009] The processing module is used to obtain region information in response to a first trigger operation on the special effects component, wherein the region information characterizes the target region features of the target region;

[0010] A generation module is used to display a target special effects sticker within the application interface and generate a special effects video based on the target special effects sticker, wherein the special effects content of the target special effects sticker is determined based on the area information.

[0011] Thirdly, embodiments of this disclosure provide an electronic device, including:

[0012] A processor, and a memory communicatively connected to the processor;

[0013] The memory stores computer-executed instructions;

[0014] The processor executes computer execution 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.

[0015] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the special effects video generation method described in the first aspect and various possible designs of the first aspect.

[0016] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the special effects video generation method as described in the first aspect and various possible designs of the first aspect.

[0017] The special effects video generation method, apparatus, electronic device, and storage medium provided in this embodiment display an application interface; in response to a first trigger operation for a special effects component, obtain regional information, the regional information representing the target region characteristics; display a target special effects sticker within the application interface, wherein the special effects content of the target special effects sticker is determined based on the regional information; and generate a special effects video based on the target special effects sticker. By displaying the special effects content determined by the regional information representing the target region characteristics within the application interface after triggering the special effects component, 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. This allows the special effects video generated based on the target special effects sticker to match the regional characteristics, eliminating the need for manual editing or input by the user, improving video generation efficiency, and enriching the information content in the special effects video. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 An application scenario diagram of the special effects video generation method provided in the embodiments of this disclosure;

[0020] Figure 2 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 1 ;

[0021] Figure 3 for Figure 2 A flowchart illustrating the specific implementation of step S102 in the illustrated embodiment;

[0022] Figure 4 This is a schematic diagram illustrating the process of generating a special effects video according to an embodiment of the present disclosure;

[0023] Figure 5 This is a schematic diagram illustrating another process for generating special effects videos provided in this embodiment of the disclosure;

[0024] Figure 6 A schematic diagram showing a second identifier provided for an embodiment of this disclosure;

[0025] Figure 7 A schematic diagram showing a third identifier provided for an embodiment of this disclosure;

[0026] Figure 8 A schematic flowchart illustrating the generation process of a second identifier and / or a third identifier provided in an embodiment of this disclosure;

[0027] Figure 9 This is a flowchart illustrating the interaction between a terminal device and a server, provided as an embodiment of the present disclosure.

[0028] Figure 10 Another interaction flowchart between a terminal device and a server provided in this embodiment of the disclosure;

[0029] Figure 11 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 2 ;

[0030] Figure 12 A schematic diagram illustrating a process in response to a first editing operation, provided as an embodiment of this disclosure;

[0031] Figure 13 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 3 ;

[0032] Figure 14 This is a schematic diagram illustrating a process for setting the display position of each initial image within a frame, as provided in an embodiment of the present disclosure.

[0033] Figure 15 This is a schematic diagram illustrating the process of setting special effects content corresponding to each initial image, as provided in an embodiment of the present disclosure.

[0034] Figure 16 A structural block diagram of the special effects video generation apparatus provided in the embodiments of this disclosure;

[0035] Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0036] Figure 18 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0038] 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, data stored, data displayed, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.

[0039] The application scenarios of the embodiments of this disclosure are explained below:

[0040] The special effects video generation method provided in this disclosure can be applied to video editing and generation scenarios. Specifically, it can be applied to video editing scenarios that generate location-related special effects, such as location tagging effects and scenery sharing effects. The specific implementation methods of the above special effects will be described in detail in subsequent embodiments. Figure 1 This is an application scenario diagram of the special effects video generation method provided in the embodiments of this disclosure, such as... Figure 1 As shown, the method provided in this embodiment can be applied to terminal devices, such as smartphones. The terminal device runs an application (APP) that can add special effects to the initial image. In the application interface of the application, there are special effects components that add virtual special effects to the initial image. 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 sticker is displayed in the application interface, such as the "glasses" sticker shown in the figure, so as to achieve the purpose of adding special effects to the initial image.

[0041] In existing technologies, for the typical video editing application scenarios mentioned above, the content of the special effects stickers displayed after the special effects components are triggered is fixed, such as the "glasses" effect in the example above. Its effect content is fixed. However, in other application scenarios, such as video editing themed around "location check-in" or "scenery sharing," the aforementioned fixed-content video effects cannot meet the user's personalized image editing needs, nor can they automatically generate personalized special effects content. In this case, users can only manually insert text or labels into the initial image to meet their personalized image editing needs, resulting in low efficiency and limited information in the generation of special effects videos. This disclosure provides a method for generating special effects videos to solve the above problems.

[0042] refer to Figure 2 , Figure 2 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 1 The method of this embodiment can be applied to terminal devices. This special effects video generation method includes:

[0043] Step S101: Display the application interface.

[0044] Step S102: In response to the first trigger operation for the special effects component, obtain region information, which represents the target region characteristics of the target region.

[0045] Step S103: Display the target effect sticker in the application interface, wherein the effect content of the target effect sticker is determined based on the area information.

[0046] Step S104: Generate special effects video based on the target special effects sticker.

[0047] For example, refer to Figure 1 The illustrated application scenario shows that the execution subject of the method provided in this application embodiment can be a terminal device, such as a smartphone. The terminal device implements the special effects video generation method provided in this embodiment by running a target application. Specifically, after running the target application, the terminal device displays the application interface of the target application on the screen. Further, a special effects component is set in the application interface. After the user triggers the special effects component by operating the terminal device through a first trigger operation such as clicking or long-pressing, the target special effects sticker corresponding to the special effects component is displayed in the application interface. The special effects content of the target special effects sticker is determined based on regional information, which represents the target region characteristics. In one possible implementation, the regional information can be determined based on image data manually loaded by the user. Exemplarily, the specific implementation of step S102 includes:

[0048] Step S1021: In response to the first trigger operation for the special effects component, acquire image data.

[0049] Step S1022: Perform feature extraction on the image data to obtain region information.

[0050] The regional information includes at least one of the following: the regional location of the target region, the topographic features of the target region, and the target object information within the target region.

[0051] For example, after responding to a first trigger operation on a special effects component, the terminal device obtains image data, which may include video or images. Taking an image as an example, after the terminal device loads the image data in response to a user instruction, it performs feature extraction on the image data to obtain the target area features, i.e., area information, of the target area represented in the image. The area information may include the 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 both. Topographic features refer to the terrain of the target area, such as grassland or glaciers. Target object information within the target area refers to a specific target object located within the target area, or the characteristics of the target object, such as the type or appearance of the target object. Specifically, for example, the target object information may describe the characteristics of a "sunflower" within the target area; further, the target object information may also describe the characteristics of a "flower" or a "red sunflower." Specific implementation methods can be set as needed, and will not be elaborated further here. Furthermore, the image content in the image data includes the target region. After the terminal device extracts features from the image data, it obtains at least one of the following: the location of the target region represented by the image data, the terrain features of the target region, and the target object information of the target region. For example, the region information includes descriptive information representing "grassland," or more specifically, the region information contains the string "grassland." Another example is that the region information includes descriptive information representing "region A," or more specifically, the region information contains the string "region A." The region information can also directly contain specific location coordinates. Of course, in another possible implementation, the region information can simultaneously represent the region location and terrain features, such as "grassland in region A." The specific implementation of the region information can be set as needed, and will not be elaborated here.

[0052] In one possible implementation, the effect content of the target effect sticker includes a first identifier.

[0053] Specifically, such as Figure 3 As shown, the specific implementation steps of step S103 include:

[0054] Step 1031: In response to the first triggering operation for the special effects component, display the first identifier in the application interface.

[0055] For example, after responding to the first trigger operation for the special effects component, the terminal device obtains the region information input by the user, or the region information obtained by the user request, and determines the target region category of the corresponding target region based on the region information. Then, it obtains the text, icon, and other information corresponding to the target region category or the identification mark of the target region category, i.e., the first mark; and displays the first mark representing the target region category in the application interface.

[0056] Figure 4 This is a schematic diagram illustrating a process for generating special effects videos according to an embodiment of the present disclosure, such as... Figure 4 As shown, in one possible implementation, the application interface is a camera viewfinder interface. Within the camera viewfinder interface, an effect component C1 (shown as C1 in the figure) is set. When the user clicks on the effect component C1, the terminal device obtains the area information and determines the corresponding target area category (area A) based on the area information. Then, the first identifier "Area A, I'm here" generated based on the target area category is displayed in the camera viewfinder interface, which is the effect content of the target effect sticker. Subsequently, in response to a third trigger operation on the camera viewfinder interface, the terminal device captures image data. The image data may include single-frame images, multi-frame images, or videos captured by the terminal device's camera. In one possible implementation, after the image data capture process is completed, the terminal device directly renders the image data and the target special effects sticker to generate the final special effects video. In another possible implementation, after the image data capture process is completed, the terminal device returns to the image editing page to preview the overlay effect of the image data and the target special effects sticker. The user can further edit the image data or the target special effects sticker to change the content of the special effects image. After editing, the image data and the target special effects sticker are merged and rendered to generate the final special effects video.

[0057] During the image capture process, target effect stickers are simultaneously displayed in the camera viewfinder, allowing users to preview the final generated effect video while capturing image data, thus improving video editing efficiency.

[0058] Figure 5 This is a schematic diagram illustrating another process for generating special effects videos provided in this embodiment of the disclosure, such as... Figure 5As shown, in one possible implementation, the application interface is an image editing interface. Within the image editing interface, an 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. The image data includes video or at least one frame of picture. Specifically, for example, when a user clicks the album component, they select a single image, multiple images, or a video from the opened album page. The terminal device identifies this as image data and displays the image data in the image editing interface. Before or after this, the special effects component C2 is triggered, for example, when the user clicks the special effects component C2. Then, the terminal device obtains region information to determine the corresponding target region category (region B). Subsequently, the terminal device displays the content of the image data in the first layer of the application interface. Specifically, this can be done through one of the following methods: playing a video, displaying the first frame of a video, displaying a single image, or displaying multiple images in a carousel. The second layer of the application interface displays a first identifier "Region B, here I come," generated based on the target region category. Optionally, the first layer is located below the second layer, meaning the target special effects sticker covers the content of the image data, thus providing a better display effect for the target special effects sticker. At this point, the terminal device previews the overlay effect of the image data and the target special effects sticker. Users can further edit the image data or the target special effects sticker to change the content of the special effects image. After editing, the terminal device executes the user-inputted generation command, renders the image data and the target special effects sticker, and generates the final special effects video.

[0059] In one possible implementation, such as Figure 3 As shown, after step S1031, the following steps are also included:

[0060] Step S1032: Display a second identifier in the application interface according to the target area category.

[0061] Specifically, the special effects content of the target effect sticker also includes a second identifier. This second identifier represents the cumulative number of triggers of the target event corresponding to the target area category. The target event includes video effects generated by the terminal device based on the target effect sticker. For example, in one possible implementation, among numerous terminal devices running the target application (APP), when terminal device D1 triggers the aforementioned target effect sticker by calling the special effects component within the target application and generates the corresponding video effect, this is considered a triggering of a target event. Since the triggering of the aforementioned target event is based on the target area category—that is, the special effects content of the target effect sticker differs depending on the target area category—the target area category is the input parameter for the aforementioned target event, and there is a one-to-one correspondence between the target area category and the target event. When terminal device D1 is located within the target area category, after the aforementioned target event is triggered, the cumulative number of triggers of the target event corresponding to the target area category is incremented by 1.

[0062] In a concrete implementation, for example, when a terminal device triggers a target event, it sends a notification message to the server. The server obtains the cumulative trigger data by acquiring the notification message carrying information about the same region. Then, the server responds to the data request sent by the terminal device, sending the cumulative trigger count to the terminal device, enabling the terminal device to generate a second identifier based on the cumulative trigger count corresponding to the target region category. In another possible implementation, the target event can also generate a corresponding video effect for the terminal device based on the target effect sticker, and publish the video effect. For example, publishing refers to uploading the effect video to the server corresponding to the target application, so that other users can view the video effect within the target application.

[0063] 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 A schematic diagram showing a second identifier provided in an embodiment of this disclosure, such as... Figure 6 As shown, within the application interface, based on time sequence, the first identifier, i.e., the string "Area A, I've arrived," is displayed at the first moment. Then, at the second moment, the string "Total number of check-ins in Area A: 65535," i.e., the content of the second identifier, is displayed. This represents the category (e.g., within the target area) Figure 4 or Figure 5 In the illustrated embodiment (area A or area B), the cumulative number of times the target event (e.g., publishing a special effects video based on the target special effects sticker) is triggered is 65,535. In other possible implementations, the first identifier and the second identifier can appear simultaneously. The second identifier can always be located in the same position within the application interface, or it can change its position within the application interface over time.

[0064] In one possible implementation, such as Figure 3 As shown, after step S1031, the following steps are also included:

[0065] Step S1033: Display a third identifier in the application interface according to the target area category.

[0066] For example, the special effects content of the target effect sticker also includes a third identifier, which represents the ranking of the target area category among all area categories based on the cumulative trigger count. This third identifier corresponds to the second identifier, and in one possible implementation, the third identifier is generated based on the second identifier. Specifically, for example, among many terminal devices running the target application, when terminal device D1 triggers the target effect sticker by calling the special effects component within the target application and generates the corresponding video effect, it is considered as triggering a target event. When terminal device D1 is located in area A (target area category), after the target event is triggered, the cumulative trigger count of the target event corresponding to area A increases by 1. At the same time, when terminal devices located in other areas trigger the target event, it will also cause the cumulative trigger count of other areas to increase. Therefore, different areas correspond to a dynamically changing cumulative trigger count, and based on this cumulative trigger count, the target area category has a ranking sequence among all areas (including the target area category and other areas), for example, a ranking sequence based on the cumulative trigger count from most to least.

[0067] In a specific implementation, for example, the ranking sequence corresponding to all the regions and / or the ranking of the target region category in the ranking sequence can be obtained by the server after obtaining the cumulative trigger data corresponding to all regions and comparing the cumulative trigger data of all regions. Then, the server responds to the data request sent by the terminal device and sends the ranking sequence corresponding to all regions and / or the ranking of the target region 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 regions and / or the ranking of the target region category in the ranking sequence.

[0068] 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 A schematic diagram showing a third identifier provided in an embodiment of this disclosure, such as... Figure 7As shown, within the application interface, based on chronological order, the first identifier is displayed at the first moment, the second identifier at the second moment, and the third identifier at the third moment. The third identifier includes the ranking of each region (Region A, Region B, Region C, etc.) based on the cumulative number of triggers across all regions. As shown in the figure, Region B ranks first, Region A ranks second, and Region C ranks third. Furthermore, the second identifier can be displayed simultaneously, that is, in addition to displaying the ranking, the cumulative number of triggers for each region can be shown. Other possible implementations include displaying the third identifier after or simultaneously with the first or second identifier; these will not be elaborated upon here. The third identifier can always be located in the same position within the application interface, or it can change its position within the application interface over time.

[0069] It should be noted that the above steps S1032 and S1033 can be executed simultaneously with step S1031, or sequentially or simultaneously after step S1031. The execution order between steps S1032 and S1033 can be set as needed, and no specific restrictions are imposed here.

[0070] Furthermore, the generation process of the second and / or third identifiers will be described in more detail below. Figure 8 This is a schematic flowchart illustrating the generation process of a second identifier and / or a third identifier, provided as an embodiment of the present disclosure. For example, as shown... Figure 8 As shown, before displaying the second and / or third identifiers, the following steps are also included:

[0071] Step S1020A: Send a first data request to the server. The first data request includes first information representing the target special effects sticker and second information representing the target area category.

[0072] Step S1020B: Receive event data returned by the server. The event data includes at least the cumulative number of target events triggered for the target region, and / or the ranking of the target region category among all region categories based on the cumulative number of triggers.

[0073] Step S1020C: Generate a second identifier and / or a third identifier based on the event data.

[0074] 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 the second trigger operation. That is, in one possible implementation, the first identifier and / or the second identifier are initially invisible after generation; after the terminal device receives and responds to the second trigger operation, the second identifier and / or the third identifier are displayed within the application interface.

[0075] Figure 9This disclosure provides an interaction flowchart between a terminal device and a server, as shown in the embodiments below. Figure 9 As shown, exemplarily, after the terminal device D1 located in area A (target area category) triggers the aforementioned target event, it sends a first data request to the corresponding server (i.e., the server 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 the notification information for the target special effect sticker prop_1 sent by all terminal devices (including the target terminal device and other terminal devices) in area A based on the first and second information therein, and obtains the cumulative trigger count Data_1 (shown as Data_1 in the figure) of the target event (i.e. the event of generating a special effect video based on the target special effect sticker prop_1) corresponding to area A, and sends the obtained cumulative trigger count Data_1 to terminal device D1. Terminal device D1 generates a second identifier through the cumulative trigger count Data_1.

[0076] Figure 10This is another flowchart illustrating the interaction between a terminal device and a server provided in this embodiment of the disclosure. For example, while obtaining the cumulative trigger count (Data_1) of the target event corresponding to region A, the server asynchronously obtains the cumulative trigger count of the target event corresponding to other regions through notification information sent by terminal devices in other regions regarding the target effect sticker (prop_1). Examples include the cumulative trigger count (Data_2) for region B (shown as Data_2 in the diagram) and the cumulative trigger count (Data_3) for region C (shown as Data_3 in the diagram). The server then ranks the cumulative trigger counts across multiple regions to obtain event data, and finally sends the event data to terminal device D1. Terminal device D1 generates a second identifier and / or a third identifier based on the event data. The event data includes at least the cumulative number of triggers for the target event corresponding to the target region, and / or the ranking of the target region category among all region categories based on the cumulative number of triggers. In one possible implementation, the event data includes a ranking sequence Array_data, which stores the region ranking sequence and the cumulative number of triggers for each region. For example, the ranking sequence Array_data = {A = a; B = c; C = c}, where A, B, and C are the region identifiers representing regions A, B, and C, respectively, and a, b, and c are the cumulative number of triggers for different regions, with a => b => c (or a <= b <= c). Alternatively, in other possible implementations, the ranking sequence Array_data may only include the region 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 based on the ranking sequence Array_data.

[0077] Afterwards, once the target effect sticker is displayed in the application interface, based on the user's input generation command, the terminal device can render the target effect sticker onto the corresponding initial image or initial video, thereby generating an effect video. This rendering process is existing technology and will not be elaborated here. Optionally, after generating the effect video, the terminal device can further send a notification message to the server, based on the previous description, so that the server can update the cumulative trigger count and ranking sequence, realizing dynamic updates of the effect content of the target effect sticker in the effect video.

[0078] By displaying the application interface; responding to the first trigger operation for the special effects component, displaying the target special effects sticker within the application interface, wherein the special effects content of the target special effects sticker is determined based on region information; and generating a special effects video based on the target special effects sticker. By displaying the special effects content determined by the region information triggered by the terminal device when the target special effects sticker is triggered within the application interface after the special effects component is triggered, a dynamic mapping between region information and the special effects content of the target special effects sticker triggered by the terminal device is achieved. This allows the special effects video generated based on the target special effects 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 effects video.

[0079] refer to Figure 11 , Figure 11 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 2 In this embodiment, Figure 2 Based on the illustrated embodiment, a further process of modifying and setting the target special effects sticker is added, and the special effects video generation method includes:

[0080] Step S201: Display the application interface.

[0081] Step S202: In response to the first trigger operation for the special effects component, display the target special effects sticker in the application interface, wherein the special effects content of the target special effects sticker is determined based on the area information.

[0082] Step S203: In response to the first editing operation on the target effect sticker, set the effect content of the target effect sticker to the fourth identifier, wherein the fourth identifier represents the custom area category.

[0083] Step S204: Display the fourth identifier within the application interface.

[0084] For example, after responding to the first trigger operation for the special effects component, the terminal device first displays the corresponding target special effects sticker in the application interface according to the region information (the specific method for obtaining the region information can be found in the previous embodiments). Figure 2 The first identifier, second identifier, third identifier, etc., in the illustrated embodiment. Specific implementation details are as follows... Figure 2The embodiments shown have been described in detail and will not be repeated here. Because the target area category corresponding to the area information implemented using location coordinates has multi-level characteristics—that is, the same device can be located within the corresponding city A, within district A_1 of city A, or within park A_1_1 of district A_1 (i.e., area information can correspond to multiple area levels)—the area level corresponding to the first identifier of the device area information may not match the area level of interest to the user, leading to area level misalignment. To solve this problem, in this embodiment, the terminal device responds to the first edit operation input by the user to modify the effect content of the target effect sticker, thereby modifying the area level. Specifically, for example, based on the previous steps, the displayed content of the target effect sticker includes a first identifier, the content of which is the string "City A"; then, the terminal device responds to the first edit operation and modifies the content of the first identifier to "Park A_1_1" (the fourth identifier). Since this fourth identifier is generated based on the user's operation, and corresponds 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 this custom area category can be determined based on the user's input, and will not be elaborated here.

[0085] Step S205: Based on the custom region category, display the fifth identifier and / or the sixth identifier in the application interface, wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom region category; and the sixth identifier represents the ranking of the custom region category in all regions based on the cumulative number of triggers.

[0086] Furthermore, based on the first editing instruction, after obtaining the custom region category, the terminal device can also display a fifth identifier and / or a sixth identifier corresponding to the fourth identifier within the application interface. The fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom region category; the sixth identifier represents the ranking of the custom region category among all regions based on the cumulative number of triggers. 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 and third identifiers are generated based on the target region category, while the fifth and sixth identifiers are generated based on the custom region category. Correspondingly, the generation method of the fifth and sixth identifiers is also based on the custom region category, implemented by sending a data request to the server and receiving time information sent by the server. Specifically, the specific implementation of step S205 includes:

[0087] Step S2051: Send a second data request, the second data request including first information representing the target special effects sticker and second information representing the custom area category;

[0088] Step S2052: Receive event data returned by the server. The event data includes at least the cumulative number of triggers of the target event corresponding to the custom region category, and / or the ranking of the custom region category in all regions based on the cumulative number of triggers.

[0089] Step S2053: Generate a fifth identifier and / or a sixth identifier based on the event data, and display them.

[0090] For the specific generation methods of the aforementioned fifth and / or sixth identifiers, please refer to [reference needed]. Figure 8 The specific implementation method for generating the second identifier and / or the third identifier in the illustrated embodiment will not be described in detail here.

[0091] Figure 12 This is a schematic diagram illustrating a process in response to a first editing operation, as provided in an embodiment of this disclosure. Figure 12 As shown, when the application interface displays the first identifier ("I'm in Area A"), the second identifier ("65535 check-ins"), and the third identifier ("Area A: National Ranking 3"), the terminal device responds to the user's first edit input, changing the first identifier to the fourth identifier ("I'm in Park A_1_1"). Then, based on the content of this fourth identifier, the terminal device obtains the corresponding custom area category "Park A_1_1". Based on this custom area category "Park A_1_1", it accordingly changes the second identifier to the fourth identifier ("305 check-ins") and the third identifier to the fifth identifier ("Park A_1_1: National Ranking 1402"), displaying them in the application interface. This achieves the setting and updating of the target effect sticker's content. In this process, only the first identifier needs to be modified; the second and third identifiers will automatically match and correct based on the change in area (the target area category becomes the custom area category), eliminating the need for manual modification and improving image editing efficiency.

[0092] Step S206: Generate a special effects video based on the target special effects sticker.

[0093] In this embodiment, the specific implementation methods of steps S201-S202 and S206 are the same as those of... Figure 2 The specific implementation methods of steps S101-S103 in the illustrated embodiments are the same. For detailed discussion, please refer to the discussion in steps S101-S103. They will not be repeated here.

[0094] In this embodiment, the special effects content of the target special effects sticker is modified based on the first editing operation, so that the area level represented by the target special effects sticker can match the area level that the user is interested in, thereby avoiding the problem of misalignment of area levels, improving the accuracy of the information displayed in the special effects video, and meeting the user's personalized needs.

[0095] refer to Figure 13 , Figure 13 Flowchart of the special effects video generation method provided in the embodiments of this disclosure Figure 3 In this embodiment, Figure 2 or Figure 11 Based on the illustrated embodiment, the scheme for setting the position and content of the target special effects sticker is further refined. This special effects video generation method includes:

[0096] Step S301: Display the application interface.

[0097] Step S302: In response to the first trigger operation for the special effects component, display the target special effects sticker in the application interface, wherein the special effects content of the target special effects sticker is determined based on the area information.

[0098] Step S303: In response to the second editing operation on the target effect sticker, set the display position of the target effect sticker in the effect video, and / or the effect content of the target effect sticker in the effect video.

[0099] For example, the second editing operation is used to set the display position and / or effect content of the target effect sticker in the effect video. The second editing operation may include coordinate information to set the display position of the target effect sticker in the effect video; the second editing operation may also include content information, such as a string, to set the effect content of the target effect sticker, for example, changing the effect content of the target effect sticker from a first identifier to a fourth identifier.

[0100] In one possible implementation, the special effects video is generated based on at least two initial frames and a target special effects sticker. The terminal device obtains the special effects video by acquiring the pre-generated at least two initial frames and the target special effects sticker, and then rendering them. In this case, exemplarily, the second editing operation includes at least two first sub-editing operations on the initial images. The first sub-editing operations are used to edit a single initial frame, thereby causing the target special effects sticker to appear in different positions within the at least two initial frames. One possible implementation of step S303 includes:

[0101] Step S3031: In the first sub-edit operation for the initial image, set the display position in the frame corresponding to each initial image so that when the special effects video is played, the target special effects sticker is displayed at the display position in the frame corresponding to each initial image.

[0102] Figure 14 This is a schematic diagram illustrating a process for setting the display position of each initial image within a frame, as provided in an embodiment of this disclosure. Figure 14As shown, 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: 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 based on each click coordinate, it obtains the corresponding display positions o1, o2, and o3 in the frame. After setting the display positions based on the above frames, during the video editing stage, i.e. when the application interface is a video editing interface, the target special effects stickers are also displayed simultaneously in the corresponding frame display positions of each initial image while the initial image P1, initial image P2, and initial image P3 are displayed sequentially or cyclically within the video editing interface based on preset intervals. The content displayed in the 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 effects stickers are displayed at the corresponding frame display positions of each initial image.

[0103] In this embodiment, the terminal device, in response to the second editing command, sets the appearance position of the target effect sticker in each initial image, thereby enabling the target effect sticker to dynamically move based on the image frame dimension in the generated effect video. This avoids the problem of the target effect sticker obscuring key targets (such as the human torso or face) in the image, improving the visual effect of the effect video.

[0104] For example, the second editing operation includes at least two second sub-editing operations on the initial image, and another possible implementation of step S303 includes:

[0105] Step S3032: In response to the second sub-edit operation on the initial image, set the effect content of the target effect sticker in at least one frame of the initial image, so that when the effect video is played, the target effect sticker is displayed based on the effect content corresponding to each initial image.

[0106] For example, similar to the first sub-editing operation, the second sub-editing operation is for the initial image and is used to change the effect content of the target effect sticker in the initial image. In one possible implementation, 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 effect sticker to the fourth identifier, so that each frame of the initial image corresponds to a different effect content of the target effect sticker.

[0107] Figure 15 This is a schematic diagram illustrating the process of setting special effects content corresponding to each initial image, as provided in an embodiment of this disclosure. Figure 15 As shown, 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 second sub-editing operations: 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 effects content in each initial image. As shown in the figure, the special effects content of the target special effects sticker in initial image P1 includes the string "City A", the special effects content of the target special effects sticker in initial image P1 includes the string "A_1 District", and the special effects content of the target special effects sticker in initial image P3 includes the string "A_1_1 Park". Based on initial images P1, P2, and P3, and combined with target effect stickers, the generated effect video is rendered. When played, the target effect stickers are displayed based on the effect content corresponding to each initial image. That is, the video screen corresponding to initial image P1 displays the string "City A", the video screen corresponding to initial image P2 displays the string "A_1 District", and the video screen corresponding to initial image P3 displays the string "A_1_1 Park".

[0108] In this embodiment, the terminal device responds to the second editing command and sets the effect content of the target effect sticker in each initial image, so that the target effect sticker can achieve dynamic content transformation based on the image frame dimension in the generated effect video, thereby improving the information richness and information display efficiency in the effect video.

[0109] Step S304: Generate special effects video based on the target special effects sticker.

[0110] In this embodiment, the specific implementation methods of steps S301-S302 and S304 are the same as those of... Figure 2 The specific implementation methods of steps S101-S103 in the illustrated embodiment are consistent. For a detailed discussion, please refer to the discussions in steps S101-S103; they will not be repeated here. It should also be noted that the solution provided in this embodiment can also be used in… Figure 11 This is implemented based on the illustrated embodiment, that is, after executing sequentially... Figure 11 After steps S201-S205 in the illustrated embodiment, steps S303-S304 in this embodiment are executed to further set the display position and / or effect content of the target effect sticker. These settings can be made according to specific needs and will not be elaborated here.

[0111] Corresponding to the special effects video generation method in the above embodiments, Figure 16 This is a structural block diagram of a special effects video generation apparatus provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 16 Special effects video generation device 4 includes:

[0112] Display module 41 is used to display the application interface;

[0113] Processing module 42 is configured to obtain region information in response to a first trigger operation on a special effects component, wherein the region information represents a target region having target region characteristics;

[0114] The generation module 43 is used to display the target special effects sticker in the application interface and generate a special effects video based on the target special effects sticker, wherein the special effects content of the target special effects sticker is determined based on the area information.

[0115] In one embodiment of this disclosure, the processing module 42 is specifically configured to: acquire image data in response to a first trigger operation on a special effects component; and extract features from the image data to obtain region information, wherein the region information includes the regional location and / or topographic features of the target region.

[0116] In one embodiment of this disclosure, the special effects content of the target special effects sticker includes a first identifier; when the generation module 43 displays the target special effects sticker in the application interface, it is specifically used to: determine the target area category of the target area according to the area information; generate the first identifier according to the target area category; and display the first identifier in the application interface.

[0117] In one embodiment of this disclosure, the special effects content of the target special effects sticker further includes a second identifier, the second identifier representing the cumulative number of target events triggered corresponding to the target area category, the target events including video special effects generated by the terminal device based on the target special effects sticker; when the generation module 43 displays the target special effects sticker in the application interface, it is also used to: display the second identifier in the application interface.

[0118] In one embodiment of this disclosure, the special effects content of the target special effects sticker further includes a third identifier, which represents the ranking of the target area category among all area categories based on the cumulative number of triggers; when the generation module 43 displays the target special effects sticker in the application interface, it is also used to: display the third identifier in the application interface.

[0119] In one embodiment of this disclosure, the generation module 32 is further configured to: send a first data request to a server, the first data request including first information characterizing the target effect sticker and second information characterizing the target area category; receive event data returned by the server, the event data including at least the cumulative number of target events 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.

[0120] In one embodiment of this disclosure, the generation module 32 is further configured to: in response to a first editing operation on the target special effects sticker, set the special effects content of the target special effects sticker as a fourth identifier, wherein the fourth identifier represents a custom area category; and display the fourth identifier in the application interface.

[0121] In one embodiment of this disclosure, the generation module 32 is further configured to: display a fifth identifier and / or a sixth identifier in the application interface based on the custom region category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom region category; and the sixth identifier represents the ranking of the custom region category among all region categories based on the cumulative number of triggers.

[0122] In one embodiment of this disclosure, the generation module 32 is further configured 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.

[0123] In one embodiment of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two first sub-editing operations on the initial images. When the generation module 32 sets the display position of the target special effects sticker in the special effects video in response to the second editing operation on the target special effects sticker, it is specifically used to: set the display position in the frame corresponding to each initial image in response to the first sub-editing operation on the initial images, so that when the special effects video is played, the target special effects sticker is displayed at the display position in the frame corresponding to each initial image.

[0124] In one embodiment of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two second sub-editing operations for the initial images. The generation module 32 is further configured to: in response to the second sub-editing operations for the initial images, set the special effects content of the target special effects sticker in at least one frame of the initial images, so that when the special effects video is played, the target special effects sticker is displayed based on the special effects content corresponding to each of the initial images.

[0125] In one embodiment of this disclosure, the generation module 33 is further configured to: acquire pre-generated image data, the image data including video or at least one frame of image; display the content of the image data in a first layer within the application interface; when displaying the target effect sticker in the application interface, the generation module 33 is further configured to: display the target effect sticker in a second layer of the application interface, wherein the first layer is located below the second layer.

[0126] In one embodiment of this disclosure, the application interface is a camera viewfinder interface, and the generation module 33 is further configured to: in response to a third trigger operation on the camera viewfinder interface, capture image data, the image data being used to generate the special effects video in combination with the target special effects sticker; and during the capture of the image data, display the target special effects sticker within the viewfinder interface.

[0127] The display module 41, processing module 42, and generation module 43 are connected. The special effects video generation device 4 provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, so it will not be described again here.

[0128] Figure 17 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 17 As shown, the electronic device 5 includes:

[0129] Processor 51, and memory 52 communicatively connected to processor 51;

[0130] Memory 52 stores instructions executed by the computer;

[0131] The processor 51 executes computer-executable instructions stored in the memory 52 to achieve, for example, Figures 2-15 The special effects video generation method in the illustrated embodiment.

[0132] Optionally, the processor 51 and the memory 52 are connected via a bus 53.

[0133] For relevant instructions, please refer to the corresponding text. Figures 2-15The relevant descriptions and effects of the steps in the corresponding embodiments are understood, and will not be elaborated on here.

[0134] This disclosure provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement this disclosure. Figures 2-15 The special effects video generation method provided in any of the corresponding embodiments.

[0135] This disclosure provides a computer program product, including a computer program that, when executed by a processor, implements as follows: Figures 2-15 The special effects video generation method in the illustrated embodiment,

[0136] refer to Figure 18 The diagram illustrates a structural schematic of an electronic device 900 suitable for implementing embodiments of the present disclosure. The electronic device 900 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, personal digital assistants (PDAs), portable Android devices (PADs), portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 18 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0137] like Figure 18 As shown, the electronic device 900 may include a processing unit (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. The RAM 903 also stores various programs and data required for the operation of the electronic device 900. The processing unit 901, ROM 902, and RAM 903 are interconnected via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0138] Typically, the following devices can be connected to I / O interface 905: input devices 906 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 907 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 908 including, for example, magnetic tapes, hard disks, etc.; and communication devices 909. Communication device 909 allows electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 18 An electronic device 900 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0139] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by a processing device 901, it performs the functions defined in the methods of embodiments of this disclosure.

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

[0141] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0142] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0143] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone 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 remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0144] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0145] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0146] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

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

[0148] In a first aspect, according to one or more embodiments of this disclosure, a method for generating special effects videos is provided, comprising:

[0149] Display the application interface; in response to a first trigger operation on the special effects component, obtain region information, the region information representing the target region characteristics; display the target special effects sticker within the application interface, wherein the special effects content of the target special effects sticker is determined based on the region information; generate a special effects video based on the target special effects sticker.

[0150] According to one or more embodiments of this disclosure, obtaining region 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; and performing feature extraction on the image data to obtain region information, wherein the region information includes the regional location and / or topographic features of the target region.

[0151] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker includes a first identifier; displaying the target special effects 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.

[0152] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker further includes a second identifier, the second identifier representing the cumulative number of target events triggered corresponding to the target area category, the target events including video special effects generated by the terminal device based on the target special effects sticker; the step of displaying the target special effects sticker in the application interface further includes: displaying the second identifier in the application interface.

[0153] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker further includes a third identifier, the third identifier representing the ranking of the target area category among all area categories based on the cumulative number of triggers; the display of the target special effects sticker in the application interface further includes: displaying the third identifier in the application interface.

[0154] According to one or more embodiments of this disclosure, the method further includes: sending a first data request to a server, the first data request including first information characterizing the target special effects sticker and second information characterizing the target area category; receiving event data returned by the server, the event data including at least the cumulative number of target events triggered 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.

[0155] According to one or more embodiments of this disclosure, the method further includes: in response to a first editing operation on the target effect sticker, setting the effect content of the target effect sticker as a fourth identifier, wherein the fourth identifier represents a custom area category; and displaying the fourth identifier within the application interface.

[0156] According to one or more embodiments of this disclosure, the method further includes: displaying a fifth identifier and / or a sixth identifier within the application interface based on the custom region category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom region category; and the sixth identifier represents the ranking of the custom region category among all region categories based on the cumulative number of triggers.

[0157] According to one or more embodiments of this 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.

[0158] According to one or more embodiments of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two first sub-editing operations on the initial images. The step of setting the display position of the target special effects sticker in the special effects video in response to the second editing operation on the target special effects sticker includes: setting the frame-in-frame display position corresponding to each initial image in response to the first sub-editing operation on the initial images, so that when the special effects video is played, the target special effects sticker is displayed at the frame-in-frame display position corresponding to each initial image.

[0159] According to one or more embodiments of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two second sub-editing operations for the initial images. The method further includes: in response to the second sub-editing operations for the initial images, setting the special effects content of the target special effects sticker in at least one frame of the initial images, so that when the special effects video is played, the target special effects sticker is displayed based on the special effects content corresponding to each of the initial images.

[0160] According to one or more embodiments of this disclosure, the method further includes: acquiring pre-generated image data, the image data including a video or at least one frame of image; displaying the content of the image data in a first layer within the application interface; the step of displaying a target effect sticker in the application interface includes: displaying the target effect sticker in a second layer of the application interface, wherein the first layer is located below the second layer.

[0161] According to one or more embodiments of this 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, the image data being used to generate the special effects video in combination with the target special effects sticker; and displaying the target special effects sticker within the viewfinder interface during the capture of the image data.

[0162] Secondly, according to one or more embodiments of this disclosure, a special effects video generation apparatus is provided, comprising:

[0163] The display module is used to display the application interface; the processing module is used to respond to a first trigger operation for the special effects component, obtain area information, the area information representing a target area with target area characteristics; the generation module is used to display the target special effects sticker in the application interface, and generate a special effects video based on the target special effects sticker, wherein the special effects content of the target special effects sticker is determined based on the area information.

[0164] According to one or more embodiments of this disclosure, the processing module is specifically configured to: acquire image data in response to a first trigger operation on a special effects component; and extract features from the image data to obtain region information, wherein the region information includes the regional location and / or topographic features of the target region.

[0165] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker includes a first identifier; when the generation module displays the target special effects sticker in the application interface, it is specifically used to: determine the target area category of the target area according to the area information; generate the first identifier according to the target area category; and display the first identifier in the application interface.

[0166] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker further includes a second identifier, the second identifier representing the cumulative number of target events triggered corresponding to the target area category, the target events including video special effects generated by the terminal device based on the target special effects sticker; when the generation module displays the target special effects sticker in the application interface, it is further configured to: display the second identifier in the application interface.

[0167] According to one or more embodiments of this disclosure, the special effects content of the target special effects sticker further includes a third identifier, the third identifier representing the ranking of the target area category among all area categories based on the cumulative number of triggers; when the generation module displays the target special effects sticker in the application interface, it is further configured to: display the third identifier in the application interface.

[0168] According to one or more embodiments of this disclosure, the generation module is further configured to: send a first data request to a server, the first data request including first information characterizing the target effect sticker and second information characterizing the target area category; receive event data returned by the server, the event data including at least the cumulative number of target events 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.

[0169] According to one or more embodiments of this disclosure, the generation module is further configured to: in response to a first editing operation on the target special effects sticker, set the special effects content of the target special effects sticker as a fourth identifier, wherein the fourth identifier represents a custom area category; and display the fourth identifier in the application interface.

[0170] According to one or more embodiments of this disclosure, the generation module is further configured to: display a fifth identifier and / or a sixth identifier in the application interface based on the custom region category; wherein the fifth identifier represents the cumulative number of triggers of the target event corresponding to the custom region category; and the sixth identifier represents the ranking of the custom region category among all region categories based on the cumulative number of triggers.

[0171] According to one or more embodiments of this disclosure, the generation module is further configured 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.

[0172] According to one or more embodiments of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two first sub-editing operations on the initial images. When the generation module sets the display position of the target special effects sticker in the special effects video in response to the second editing operation on the target special effects sticker, it is specifically configured to: set the frame-in-frame display position corresponding to each initial image in response to the first sub-editing operation on the initial images, so that when the special effects video is played, the target special effects sticker is displayed at the frame-in-frame display position corresponding to each initial image.

[0173] According to one or more embodiments of this disclosure, the special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two second sub-editing operations for the initial images. The generation module is further configured to: in response to the second sub-editing operations for the initial images, set the special effects content of the target special effects sticker in at least one frame of the initial images, so that when the special effects video is played, the target special effects sticker is displayed based on the special effects content corresponding to each of the initial images.

[0174] According to one or more embodiments of this disclosure, the generation module is further configured to: acquire pre-generated image data, the image data including video or at least one frame of image; display the content of the image data in a first layer within the application interface; when the generation module 33 displays the target effect sticker in the application interface, it is further configured to: display the target effect sticker in a second layer of the application interface, wherein the first layer is located below the second layer.

[0175] According to one or more embodiments of this disclosure, the application interface is a camera viewfinder interface, and the generation module is further configured to: in response to a third trigger operation on the camera viewfinder interface, capture image data, the image data being used to generate the special effects video in combination with the target special effects sticker; and during the capture of the image data, display the target special effects sticker within the viewfinder interface.

[0176] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, including: a processor, and a memory communicatively connected to the processor;

[0177] The memory stores computer-executed instructions;

[0178] The processor executes computer execution 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.

[0179] Fourthly, according to one or more embodiments of this disclosure, a computer-readable storage medium is provided, wherein computer-executable instructions are stored therein, and 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.

[0180] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the special effects video generation method as described in the first aspect and various possible designs of the first aspect.

[0181] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0182] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0183] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for generating special effects videos, characterized in that, include: Display the application interface; In response to a first trigger operation on a special effects component, region information is obtained, the region information representing the characteristics of the target region; The regional information includes at least one of the regional location of the target region and the geomorphological features of the target region; Based on the region information, obtain the target region category of the target region; Based on the target area category, a target effect sticker is generated; wherein, the content of the target effect sticker includes a first identifier and a second identifier; wherein, the first identifier is associated with the target area category, and the second identifier includes the cumulative number of target events triggered corresponding to the target area category; The target effect sticker is displayed within the application interface; Based on the target special effects sticker, generate a special effects video.

2. The method according to claim 1, characterized in that, The response to the first triggering operation for the special effects component, obtaining region information, includes: In response to the first trigger action on the special effects component, image data is acquired; Feature extraction is performed on the image data to obtain region information.

3. The method according to claim 1, characterized in that, The step of displaying the target special effects sticker within the application interface includes: Generate the first identifier based on the target region category; The first identifier is displayed within the application interface.

4. The method according to claim 3, characterized in that, The target event includes the terminal device generating corresponding video effects based on the target effect sticker; The step of displaying the target special effects sticker within the application interface also includes: The second identifier is displayed within the application interface.

5. The method according to claim 3, characterized in that, The special effects content of the target special effects sticker also includes a third identifier, which represents the ranking of the target area category among all area categories based on the cumulative number of triggers; The step of displaying the target special effects sticker within the application interface also includes: The third identifier is displayed within the application interface.

6. The method according to claim 3, characterized in that, The method further includes: Send a first data request to the server, the first data request including first information characterizing the target special effects sticker and second information characterizing the target area category; Receive event data returned by the server, the event data including at least the cumulative number of target events triggered for the target region category, and / or the ranking of the target region category among all region categories based on the cumulative number of triggers; Based on the event data, generate a second identifier and / or a third identifier.

7. The method according to claim 1, characterized in that, The method further includes: In response to a first editing operation on the target effect sticker, the effect content of the target effect sticker is set to a fourth identifier, wherein the fourth identifier represents a custom area category; The fourth identifier is displayed within the application interface.

8. The method according to claim 7, characterized in that, The method further includes: Based on the custom region category, a fifth identifier and / or a sixth identifier are displayed within the application interface; The fifth identifier represents the cumulative number of target events triggered corresponding to the custom region category; The sixth identifier represents the ranking of the custom region category among all region categories based on the cumulative number of triggers.

9. The method according to claim 1, characterized in that, The method further includes: In response to a second editing operation on the target effect sticker, the display position of the target effect sticker in the effect video is set, and / or the effect content of the target effect sticker in the effect video is set.

10. The method according to claim 9, characterized in that, The special effects video is generated based on at least two initial images and the target special effects sticker, and the second editing operation includes at least two first sub-editing operations on the initial images; The step of setting the display position of the target special effects sticker in the special effects video in response to a second editing operation on the target special effects sticker includes: In response to the first sub-edit operation on the initial image, the display position in the frame corresponding to each initial image is set so that when the special effects video is played, the target special effects sticker is displayed at the display position in the frame corresponding to each initial image.

11. The method according to claim 9, characterized in that, The special effects video is generated based on at least two initial images and the target special effects sticker. The second editing operation includes at least two second sub-editing operations on the initial images. The method further includes: In response to a second sub-edit operation on the initial image, the effect content of the target effect sticker is set in at least one frame of the initial image, so that when the effect video is played, the target effect sticker is displayed based on the effect content corresponding to each initial image.

12. The method according to claim 1, characterized in that, The method further includes: Acquire pre-generated image data, which includes video or at least one frame of image; The image data content is displayed in the first layer within the application interface; The step of displaying the target special effects sticker within the application interface includes: The target effect sticker is displayed in the second layer of the application interface, wherein the first layer is located below the second layer.

13. The method according to claim 1, characterized in that, 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, image data is captured, and the image data is used to generate the special effects video by combining the target special effects sticker; During the process of capturing the image data, the target effect sticker is displayed in the viewfinder interface.

14. A special effects video generation device, characterized in that, include: The display module is used to display the application interface; The processing module is configured to obtain region information in response to a first trigger operation on a special effects component, wherein the region information represents features having target region characteristics; The regional information includes at least one of the regional location of the target region and the geomorphological features of the target region; The generation module is used to obtain the target region category of the target region based on the region information; Based on the target area category, a target effect sticker is generated; wherein, the content of the target effect sticker includes a first identifier and a second identifier; wherein, the first identifier is associated with the target area category, and the second identifier includes the cumulative number of target events triggered corresponding to the target area category; The target effect sticker is displayed within the application interface, and an effect video is generated based on the target effect sticker.

15. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the special effects video generation method as described in any one of claims 1 to 13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the special effects video generation method as described in any one of claims 1 to 13.

17. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the special effects video generation method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Method and device for generating watermark picture

    CN104867097A

  • Image display method and device and computer readable storage medium

    CN108174099A