Data processing method and device, computer equipment and readable storage medium

By introducing filter effect switching controls into media data, adjusting the coverage ratio, and obtaining relevant resource data, the problem of users needing to continuously browse is solved, enabling rich interactive methods and efficient resource acquisition.

CN120931335APending Publication Date: 2025-11-11TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410579277.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-10
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Existing media data promotion solutions require users to actively trigger and continuously browse media data in order to obtain resource data, resulting in a limited user interaction method and an inability to perform other operations during the browsing process.

Method used

By displaying filter effect switching controls in business applications, the system responds to user operations by adjusting the ratio of filter coverage to original media data coverage, and retrieves associated resource data, including filter permissions, dubbing permissions, and video playback speed, when conditions are met.

Benefits of technology

It enriches the ways users interact with media data, allowing users to perform various operations during browsing, thereby improving the success rate of resource data acquisition and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120931335A_ABST
    Figure CN120931335A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and device, computer equipment and a readable storage medium, the method can be applied to scenes such as artificial intelligence, smart traffic, aided driving and advertisements, and the method comprises the steps of displaying media data containing a filter effect switching control in response to a trigger operation for a function control in a service application; in response to a trigger operation for the filter effect switching control, adjusting a coverage range ratio of filter media data to original media data in the media data; and when the trigger operation for the filter effect switching control satisfies an operation accumulation condition, or when the duration of browsing the media data satisfies a browsing duration condition, obtaining resource data associated with the function control. By adopting the method and the device, the interaction mode of the user to the media data can be enriched.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment, and readable storage medium. Background Technology

[0002] Existing media data promotion solutions require users to actively trigger and continuously browse media data within business applications. This forces users to remain browsing media data for a period before the relevant resource data can be obtained from the business application; otherwise, it cannot be acquired. However, users cannot perform any operations within the business application while browsing media data, making the method of browsing media data too simplistic. Summary of the Invention

[0003] This application provides a data processing method, apparatus, computer device, and readable storage medium, which can enrich the ways users interact with media data.

[0004] One embodiment of this application provides a data processing method, including:

[0005] Responding to trigger operations on functional controls in business applications, displaying media data including filter effect switching controls;

[0006] In response to trigger operations on the filter effect switching control, adjust the coverage ratio of the filter media data to the original media data in the media data;

[0007] When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, the resource data associated with the functional control is retrieved.

[0008] One embodiment of this application provides a data processing apparatus, including:

[0009] The media data display module is used to respond to the triggered operations of functional controls in business applications and display media data including filter effect switching controls;

[0010] The coverage adjustment module is used to respond to the trigger operation of the filter effect switching control and adjust the coverage ratio between the filter media data and the original media data in the media data.

[0011] The resource data acquisition module is used to acquire resource data associated with the functional control when the trigger operation for the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0012] The coverage adjustment module is specifically used to respond to the sliding operation of the filter effect switching control and obtain the sliding direction of the sliding operation.

[0013] The coverage adjustment module is specifically used to increase the coverage ratio of the filter media data to the original media data in the media data if the sliding direction is the first direction.

[0014] The coverage adjustment module is specifically used to reduce the coverage ratio of the filter media data to the original media data in the media data if the sliding direction is the second direction.

[0015] Among them, the resource data associated with the functional controls includes filter permissions;

[0016] The resource data acquisition module is specifically used to display the filter effect redemption control associated with the filter effect redemption function in the business application when the trigger operation for the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0017] The resource data acquisition module is specifically used to respond to the trigger operation of the filter effect redemption control, and redeem filter permissions with filter effects in the business application; filter permissions provide the first permission for business objects logged into the business application to use filter effects in the business application.

[0018] Among them, the resource data associated with the functional controls includes filter permissions;

[0019] The resource data acquisition module is specifically used to display incentive prompts in the business application when the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition. The incentive prompts indicate that the business application has enabled filter permissions. Filter permissions provide a second permission for business objects logged into the business application to use filter effects in the business application.

[0020] Among them, the resource data acquisition module is also specifically used to display media data to be switched in business applications;

[0021] The resource data acquisition module is also specifically used to respond to the triggering operation of filter effects in business applications. If the triggering operation of filter effects meets the permission conditions indicated by the second permission, the media data to be switched with filter effects will be displayed in the business application.

[0022] Among them, the resource data associated with the functional controls includes voice-over permissions;

[0023] The resource data acquisition module is specifically used to output the dubbing audio data associated with the media data in the business application when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0024] The resource data acquisition module is specifically used to acquire dubbing permissions for dubbing audio data; dubbing permissions refer to the permission of a business object logged into the business application to use dubbing audio data in the business application.

[0025] Among them, media data is video data, and the coverage area is used to control the playback speed of the video data; the resource data associated with the functional controls includes playback speed permissions;

[0026] The resource data acquisition module is specifically used to display video data in the business application according to the video playback speed indicated by the coverage area when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0027] The resource data acquisition module is specifically used to acquire the video playback speed permission indicated by the coverage area; the speed permission refers to the permission of the business object logged into the business application to use the video playback speed indicated by the coverage area in the business application.

[0028] The resource data acquisition module is specifically used to dynamically display resource objects associated with functional controls in business applications when the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0029] The resource data acquisition module is specifically used to respond to triggered operations on resource objects and retrieve the resource data indicated by the resource object in the business application.

[0030] Among them, the resource data associated with the functional controls includes business detail data;

[0031] The resource data acquisition module is specifically used to display a jump prompt message associated with the business link to which the media data belongs in the business application when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the browsing duration of the media data meets the browsing duration condition.

[0032] The resource data acquisition module is specifically used to display the business details data corresponding to the business link in the business application when the cumulative display time of the jump prompt information reaches the time threshold.

[0033] The device also includes:

[0034] The filter replacement module is used to respond to the trigger operation of the filter effect replacement function in the media data and obtain the updated filter media data corresponding to the trigger operation of the filter effect replacement function.

[0035] The filter replacement module is used to replace the displayed filter media data by updating the filter media data; the area in the original media data covered by the updated filter media data has the updated filter effect.

[0036] The device also includes:

[0037] The resource mapping module is used to respond to trigger operations for the mapping function in media data and display S mapping resources corresponding to the mapping function in the business application; S is a positive integer.

[0038] The resource mapping module is used to respond to selection operations on S texture resources and overlay the selected texture resource onto the media data.

[0039] The device also includes:

[0040] The data processing module is used to obtain the cumulative number of operations triggered by the filter effect switching control, compare the cumulative number of operations with the cumulative number threshold, and obtain the comparison result.

[0041] The data processing module is used to determine that the triggering operation of the filter effect switching control meets the operation accumulation condition if the comparison result indicates that the cumulative number of operations is greater than or equal to the cumulative number threshold.

[0042] The data processing module is used to determine that the triggering operation for the filter effect switching control does not meet the cumulative operation condition if the comparison result indicates that the cumulative number of operations is less than the cumulative number threshold.

[0043] The device also includes:

[0044] The data processing module is used to determine if the coverage ratio is greater than or equal to the ratio threshold, and if so, that the triggering operation of the filter effect switching control meets the operation accumulation condition.

[0045] The data processing module is used to determine whether the triggering operation for the filter effect switching control meets the operation accumulation condition if the coverage ratio is less than the ratio threshold.

[0046] Among them, the filter media data is displayed on the original media data; the filter media data includes a mask layer, which is used to crop the filter media data;

[0047] The coverage adjustment module is specifically used to respond to the trigger operation of the filter effect switching control. The original size of the mask layer is changed by the trigger operation to obtain the changed size of the mask layer.

[0048] The coverage adjustment module is specifically used to crop the filter media data based on the changed size to obtain the first filter media data; the coverage ratio of the first filter media data to the original media data is different from the coverage ratio of the second filter media data to the original media data; the second filter media data is obtained by cropping the filter media data based on the original size.

[0049] The coverage adjustment module is specifically used to respond to the sliding operation of the filter effect switching control and obtain the sliding start position and sliding end position corresponding to the sliding operation.

[0050] The coverage adjustment module is specifically used to perform a difference calculation on the horizontal coordinates at the start position and the end position of the slide to obtain the horizontal difference corresponding to the slide operation.

[0051] The coverage adjustment module is specifically used to determine the second direction as the sliding direction of the sliding operation if the horizontal difference is less than the difference threshold.

[0052] The coverage adjustment module is specifically used to determine the first direction as the sliding direction of the sliding operation if the horizontal difference is greater than the difference threshold.

[0053] The coverage adjustment module is specifically used to respond to the sliding operation of the filter effect switching control and to determine the starting position of the sliding operation as the starting position of the sliding operation.

[0054] The coverage adjustment module is specifically used to obtain the sliding speed corresponding to the sliding operation and determine the sliding offset distance of the sliding operation based on the sliding speed.

[0055] The coverage adjustment module is specifically used to determine the end position of the sliding operation based on the end position of the sliding operation and the sliding offset distance.

[0056] One embodiment of this application provides a computer device, including: a processor and a memory;

[0057] The processor is connected to a memory, which stores a computer program. When the computer program is executed by the processor, it causes the computer device to perform the method provided in the embodiments of this application.

[0058] One aspect of this application provides a computer-readable storage medium storing a computer program adapted to be loaded and executed by a processor, so that a computer device having the processor performs the method provided in this application.

[0059] One embodiment of this application provides a computer program product comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in this application embodiment.

[0060] This application embodiment can display media data including filter effect switching controls in a business application, and then respond to trigger operations on the filter effect switching controls to adjust the coverage ratio of the filter media data to the original media data. The original media data is media data without filter effects, and the filter media data is media data with filter effects. Since both the original media data and the filter media data belong to the media data in the business application, this application embodiment can enable user (i.e., business object) interaction with the media data (i.e., adjusting the coverage ratio of filter media data to original media data), rather than requiring the user to continuously browse media data for a period of time without being able to perform any operations during this continuous browsing process, thereby enriching the user's interaction methods with the media data. Attached Figure Description

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

[0062] Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application;

[0063] Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0064] Figure 3a This is a schematic diagram of a scenario for displaying media data provided in an embodiment of this application;

[0065] Figure 3b This is a schematic diagram of a scenario for displaying media data provided in an embodiment of this application;

[0066] Figure 3cThis is a schematic diagram of a scenario for displaying media data provided in an embodiment of this application;

[0067] Figure 3d This is a schematic diagram of a scenario for displaying media data provided in an embodiment of this application;

[0068] Figure 4 This is a schematic diagram illustrating a scenario for adjusting the coverage ratio, provided in an embodiment of this application.

[0069] Figure 5 This is a schematic diagram illustrating a scenario where media data is turned off, provided in an embodiment of this application.

[0070] Figure 6 This is a schematic diagram of a scenario for exchanging filter effects provided in an embodiment of this application;

[0071] Figure 7 This is a schematic diagram of a scenario where a filter effect is being tried out, provided in an embodiment of this application.

[0072] Figure 8 This is a schematic diagram of a scenario for using dubbing audio data, provided in an embodiment of this application.

[0073] Figure 9 This is a schematic diagram illustrating a scenario of adjusting the playback speed of a video, as provided in an embodiment of this application.

[0074] Figure 10 This is a schematic diagram illustrating a scenario for retrieving resource data provided in an embodiment of this application;

[0075] Figure 11 This is a schematic diagram illustrating a scenario for displaying business details data, provided in an embodiment of this application.

[0076] Figure 12a This is a scene illustration of a filter replacement effect provided in an embodiment of this application;

[0077] Figure 12b This is a scene illustration of a filter replacement effect provided in an embodiment of this application;

[0078] Figure 13 This is a schematic diagram of a scenario for selecting texture resources provided in an embodiment of this application;

[0079] Figure 14 This is a flowchart illustrating a data processing method provided in an embodiment of this application;

[0080] Figure 15 This is a schematic diagram of a scenario for dividing media data according to an embodiment of this application;

[0081] Figure 16 This is a schematic diagram of a scenario for cropping filter media data provided in an embodiment of this application;

[0082] Figure 17 This is a schematic diagram of a data processing flow provided in an embodiment of this application;

[0083] Figure 18 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;

[0084] Figure 19 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0085] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0086] Interstitial rewarded ads: A type of ad format that is actively triggered (i.e., user-initiated). Users can view interstitial rewarded ads (in formats including but not limited to images, videos, text, and audio) in half-screen or full-screen mode to obtain product resource data (e.g., rewards, privilege usage opportunities, privilege usage counts). For example, a privilege usage opportunity could be a 10-minute free trial of a filter effect, privilege usage counts could be 3 free trial opportunities of a filter effect, and a reward could be one piece of game equipment. For ease of understanding, this application embodiment may refer to interstitial rewarded ads as business data.

[0087] For details, please see Figure 1 , Figure 1 This is a schematic diagram of a network architecture provided in an embodiment of this application. Figure 1 As shown, this network architecture may include a server 2000 and a terminal device cluster. The terminal device cluster may specifically include one or more terminal devices; the number of terminal devices in the cluster is not limited here. Figure 1 As shown, the multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n can be directly or indirectly connected to server 2000 via wired or wireless communication, so that each terminal device can interact with server 2000 through the network connection.

[0088] Each terminal device in the terminal device cluster can include: smartphones, tablets, laptops, desktop computers, intelligent voice interaction devices, smart home appliances (e.g., smart TVs), wearable devices, in-vehicle terminals, aircraft, and other intelligent terminals with data processing capabilities. In-vehicle terminals can be terminal devices used in intelligent transportation scenarios and assisted driving scenarios. It should be understood that, for example... Figure 1 Each terminal device in the terminal device cluster shown can have an application client installed. When the application client runs on each terminal device, it can communicate with each other. Figure 1 Data interaction occurs between the servers 2000 shown. For ease of understanding, the application client in this embodiment can be referred to as a business application.

[0089] Specifically, the business applications may include in-vehicle clients, smart home clients, entertainment clients (e.g., game clients), multimedia clients (e.g., video clients, music clients, photo editing clients), social clients, and information clients (e.g., news clients) that have data processing capabilities. These business applications may be integrated into a client (e.g., a social client) or may be standalone clients (e.g., a photo editing client). This application does not limit the type of business application.

[0090] Among them, such as Figure 1 The server 2000 shown can be a server corresponding to a business application. The server 2000 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0091] For ease of understanding, the embodiments of this application may be described in detail below. Figure 1 From the multiple terminal devices shown, one terminal device is selected as the target terminal device. For example, in the embodiments of this application, it can be... Figure 1 The terminal device 3000a shown serves as the target terminal device, which can have a business application with data processing capabilities installed. In this case, the target terminal device can interact with the server 2000 through the business application.

[0092] For ease of understanding, the user in this embodiment can be referred to as a business object, which can be a user logged into a business application. The target terminal device can display media data containing filter effect switching controls within the business application, respond to trigger operations on the filter effect switching controls, and adjust the coverage ratio between the filter media data and the original media data. The filter media data has filter effects, while the original media data does not. The filter effect (referred to as filter) is a preset image processing algorithm that can change color, contrast, brightness, etc.

[0093] In this embodiment, the media data can be video data (e.g., movie data), audio data (e.g., music data), image data, or text data (e.g., novel data). The specific form of the media data is not limited here. Media data (including raw media data and filtered media data; for example, raw media data can be raw image data, filtered media data can be filtered image data, raw media data can be raw video data, and filtered media data can be filtered video data) can belong to the business data submitted by advertisers (i.e., legal persons, other economic organizations, or individuals who design, produce, and publish advertisements themselves or entrust others to do so for the purpose of promoting goods or providing services). Raw media data can also be referred to as advertising materials in the business data, and filtered media data represents the application of filter effects to the advertising materials in the business data.

[0094] It should be understood that the operations in the embodiments of this application (e.g., triggering operations, selection operations, transformation operations, etc.) may include contact operations such as clicking, long pressing, and swiping, or non-contact operations such as voice and gestures. This application does not limit them here.

[0095] For ease of understanding, the interfaces in the business application in this embodiment can be collectively referred to as client interfaces. Different client interfaces can be the same interface in the business application or different interfaces in the business application. Therefore, switching client interfaces can refer to switching between the same interface in the business application or switching between different interfaces in the business application.

[0096] Therefore, embodiments of this application can display business data (i.e., advertisements) in business applications. This business data can include media data containing filter effect switching controls. By adjusting the coverage ratio between the filter media data and the original media data, interaction with the business data can be achieved (i.e., users can interact with the advertisements while browsing them), thereby enriching the ways users interact with the business data and providing new advertisement styles and scenarios. Furthermore, since the business object can interact with the business data without continuously browsing the advertisements, the business object will not quickly close the business data, thus interrupting the acquisition of resource data and improving the success rate of resource data acquisition.

[0097] Further, please see Figure 2 , Figure 2 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, a terminal device, or both. The server can be one of the aforementioned... Figure 1 The server 2000 in the corresponding embodiment can be the terminal device described above. Figure 1 The target terminal device in the corresponding embodiment. For ease of understanding, this application embodiment uses the execution of the method by the target terminal device as an example for illustration. The data processing method may include the following steps S101-S103:

[0098] Step S101: Respond to the trigger operation of the functional control in the business application and display the media data including the filter effect switching control;

[0099] Among them, the functional control is used to prompt the business object that it can obtain resource data by browsing the business data. The functional control can be used to display business data in the business application. The business data may include media data containing filter effect switching controls. The media data can be used to obtain resource data in the business application (i.e., resource data associated with the functional control, which represents the resource data obtained through the functional control).

[0100] It is understood that media data can include raw media data and filtered media data. Terminal devices can display raw media data without displaying filtered media data in business applications, or they can display filtered media data without displaying raw media data, or they can display both raw media data and filtered media data simultaneously in business applications. Since raw media data does not have filter effects, while filtered media data does, the embodiments of this application allow users to experience filter effects in advance within business applications, enhancing user experience, increasing interactive fun, and achieving a win-win situation for business users, business applications, and advertisers.

[0101] The filter effect switching control can represent a control set on the media data. This control can be set locally on the media data (e.g., at the boundary between the original media data and the filter media data; the boundary can trigger the control, switching the display area of ​​the original media data to the display area of ​​the filter media data, or vice versa), or globally on the media data (i.e., the area occupied by the media data, including the area shared by the original and filter media data; any location within the original and filter media data can trigger the control, switching the display area of ​​the original media data to the display area of ​​the filter media data, or vice versa). For ease of understanding, this embodiment uses the example of a filter effect switching control set globally on the media data. In this case, triggering the filter effect switching control can represent triggering the media data itself.

[0102] It is understood that when a terminal device displays both original media data and filter media data simultaneously, the original media data can overlap the filter media data, or vice versa. For ease of understanding, this embodiment uses the example of filter media data overlapping the original media data. In this case, the coverage area of ​​the filter media data over the original media data is used to determine the ratio of the coverage areas of the filter media data to the original media data, also referred to as the ratio of the coverage areas of the filter media data to the original media data. The area of ​​the original media data covered by the filter media data has a filter effect, while the area of ​​the original media data not covered by the filter media data does not have a filter effect. Optionally, if the original media data overlaps the filter media data, the coverage area of ​​the original media data over the filter media data is used to determine the ratio of the coverage areas of the filter media data to the original media data. This embodiment does not limit the specific form of the filter effect; for example, the filter effect can represent a special effect (e.g., a pink effect) or a blurring effect (e.g., a dusty effect, a mosaic effect).

[0103] In this application, the overlay method of the original media data and the filter media data is not limited. For example, the original media data and the filter media data can be overlaid horizontally or vertically. For ease of understanding, this application uses the example of the original media data and the filter media data being overlaid horizontally as an illustration.

[0104] In this embodiment, when the original media data and filter media data are overlapped horizontally, the orientation of the original media data and filter media data is not limited. For example, the original media data can be on the left and the filter media data on the right, or the original media data can be on the right and the filter media data on the left. For ease of understanding, this embodiment will be described using the example of the original media data on the left and the filter media data on the right.

[0105] For easier understanding, please refer to Figure 3a , Figure 3b , Figure 3c and Figure 3d , Figure 3a , Figure 3b , Figure 3c and Figure 3d This is a schematic diagram illustrating a scenario for displaying media data according to an embodiment of this application. Figure 3a In business applications, raw media data can be displayed instead of filtered media data. Figure 3b In business applications, filter media data can be displayed instead of the original media data. Figure 3c and Figure 3d Both can display raw media data and filtered media data simultaneously in business applications. Figure 3c Filter media data and Figure 3d The filter media data in the data have different filter effects. Figure 3a Client interface 30a in Figure 3b Client interface 30a in Figure 3c The client interface 30a and Figure 3d The client interface 30a in the text is the same client interface.

[0106] like Figure 3a The client interfaces 30a and 30b shown can be the client interfaces of a business application at different times. The terminal device can display the functional control 32a in the client interface 30a. Furthermore, the business object can perform a trigger operation on the functional control 32a. In this way, the terminal device can respond to the trigger operation performed by the business object on the functional control 32a, switching the client interface 30a to the client interface 30b, and displaying the raw media data 32b in the client interface 30b. The raw media data 32b does not have filter effects.

[0107] like Figure 3bThe client interfaces 30a and 30c shown can be the client interfaces of a business application at different times. The terminal device can display functional controls 32a in client interface 30a. Furthermore, the business object can perform a trigger operation on functional controls 32a. In this way, the terminal device can respond to the trigger operation performed by the business object on functional controls 32a, switching client interface 30a to client interface 30c, and displaying filter media data 32c in client interface 30c. The filter media data 32c has a filter effect.

[0108] like Figure 3c The client interfaces 30a and 30d shown can be the client interfaces of the business application at different times. The terminal device can display the functional control 32a in the client interface 30a. Furthermore, the business object can perform a trigger operation on the functional control 32a. In this way, the terminal device can respond to the trigger operation performed by the business object on the functional control 32a, switching the client interface 30a to the client interface 30d. The client interface 30d displays the original media data 32e (i.e., the aforementioned original media data 32b) and the filter media data 32d (i.e., the aforementioned filter media data 32c). The filter media data 32d has a filter effect, while the original media data 32e does not have a filter effect. The filter effect in the filter media data 32d is a "pink skin" filter.

[0109] like Figure 3d The client interfaces 30a and 30e shown can be the client interfaces of the business application at different times. The terminal device can display the functional control 32a in the client interface 30a. Furthermore, the business object can perform a trigger operation on the functional control 32a. In this way, the terminal device can respond to the trigger operation performed by the business object on the functional control 32a, switching the client interface 30a to the client interface 30e, displaying the original media data 32g (i.e., the aforementioned original media data 32b) and the filter media data 32f in the client interface 30e. The filter media data 32f has a filter effect, while the original media data 32g does not. The filter effect in the filter media data 32f is a "mosaic" filter, which can be used to achieve a blur-to-sharp transition.

[0110] Step S102: In response to the trigger operation of the filter effect switching control, adjust the coverage ratio of the filter media data to the original media data in the media data;

[0111] Specifically, the terminal device can respond to a sliding operation on the filter effect switching control (for ease of understanding, this embodiment uses a sliding operation on the filter effect switching control as an example; optionally, the triggering operation on the filter effect switching control can also be a tilting operation on the terminal device, and the tilting direction can be used to adjust the coverage ratio of filter media data to original media data in the media data), and obtain the sliding direction of the sliding operation. This embodiment does not limit the specific direction of the sliding operation; the sliding operation on the filter effect switching control can be a sliding operation on the original media data or a sliding operation on the filter media data. For ease of understanding, this embodiment uses leftward (i.e., a leftward sliding operation) and rightward (i.e., a rightward sliding operation) as examples. Further, if the sliding direction is a first direction (e.g., a leftward direction), the terminal device can increase the coverage ratio of filter media data to original media data in the media data. Optionally, if the sliding direction is a second direction (for example, the second direction can be a rightward direction), the terminal device can reduce the coverage ratio of the filter media data to the original media data in the media data.

[0112] Among them, the ratio of the coverage area of ​​the filter media data in the expanded media data to the coverage area of ​​the original media data in the media data of the terminal device indicates that the coverage area of ​​the filter media data on the original media data is expanded, the display area of ​​the filter media data is expanded, and the display area of ​​the original media data is reduced; the ratio of the coverage area of ​​the filter media data in the reduced media data to the coverage area of ​​the original media data in the media data of the terminal device indicates that the coverage area of ​​the filter media data on the original media data is reduced, the display area of ​​the filter media data is reduced, and the display area of ​​the original media data is expanded.

[0113] For easier understanding, please refer to Figure 4 , Figure 4 This is a schematic diagram illustrating a scenario for adjusting the coverage ratio, as provided in an embodiment of this application. Figure 4 The client interfaces 40a and 40b shown can be client interfaces for business applications at different times. The terminal device can display raw media data 41a and filter media data 41b in client interface 40a. Client interface 40a can be the aforementioned... Figure 3c In the corresponding embodiment, the client interface 30d and the original media data 41a can be as described above. Figure 3c The original media data 32e and filter media data 41b in the corresponding embodiment can be the above-mentioned Figure 3c The filter media data 32d in the corresponding embodiment.

[0114] like Figure 4 As shown, the business object can perform a sliding operation on the filter effect switching control (here, the sliding operation is a left sliding operation as an example). In this way, the terminal device can respond to the sliding operation performed by the business object on the filter effect switching control, and switch the client interface 40a to the client interface 40b. In the client interface 40b, the coverage ratio of the filter media data in the media data to the original media data in the media data is adjusted (here, the coverage ratio of the filter media data in the media data to the original media data in the media data is expanded as an example, and the adjusted coverage is full coverage (i.e., the coverage ratio is equal to 1) as an example).

[0115] Step S103: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, obtain the resource data associated with the functional control.

[0116] The specific process by which the terminal device determines whether the trigger operation for the filter effect switching control meets the operation accumulation condition can be found in the following: Figure 14 The description of step S205 in the corresponding embodiment; the specific process by which the terminal device determines whether the duration of browsing media data meets the browsing duration condition can be found in the following. Figure 14 The description of step S205 in the corresponding embodiment: The terminal device determines whether the trigger operation of the filter effect switching control meets the operation accumulation condition, that is, whether the sliding operation of the filter effect switching control meets the operation accumulation condition.

[0117] The resource data associated with the functional controls includes filter permissions. It should be understood that when the triggering operation for the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can display the filter effect redemption control associated with the filter effect redemption function in the business application. Furthermore, the terminal device can respond to the triggering operation for the filter effect redemption control and redeem filter permissions with filter effects in the business application. The filter permission provides a first permission for a business object logged into the business application to use filter effects in the business application. This application embodiment does not limit the specific form of the first permission; for example, the first permission can be permanent (i.e., the business object can permanently use the filter effects in the filter media data in the business application), or the first permission can be 20 times (i.e., the business object can use the filter effects in the filter media data 20 times in the business application).

[0118] For easier understanding, please refer to Figure 6 , Figure 6 This is a schematic diagram illustrating a scenario for exchanging filter effects provided in an embodiment of this application. For example... Figure 6The client interfaces 60a and 60b shown can be the client interfaces of the business application at different times. Client interface 60a can be the aforementioned Figure 3c The client interface 30d in the corresponding embodiment.

[0119] like Figure 6 As shown, the business object can perform a sliding operation on the filter effect switching control (here, a left swipe is used as an example). The terminal device can respond to this sliding operation. When the sliding operation on the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the client interface 60a is switched to client interface 60b. Client interface 60b displays the filter effect redemption control 61a associated with the filter effect redemption function. Furthermore, the business object can perform a trigger operation on the filter effect redemption control 61a. The terminal device can respond to this trigger operation and redeem filter permissions with filter effects within the business application.

[0120] The resource data associated with the functional controls includes filter permissions. It should be understood that when the triggering operation of the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can display an incentive prompt message in the business application. The incentive prompt message indicates that the business application has enabled filter permissions. Filter permissions provide a second permission for business objects logged into the business application to use filter effects within the application. This application embodiment does not limit the specific form of the second permission; for example, the second permission can be 10 minutes (i.e., the business object can use the filter effects in the filter media data for 10 minutes in the business application), or the second permission can be 3 times (i.e., the business object can use the filter effects in the filter media data 3 times in the business application).

[0121] Please see again. Figure 4 When the sliding operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can display incentive prompt information 41c in the client interface 40b (for example, incentive prompt information 41c can be "Get 10 minutes of beauty filter usage opportunity").

[0122] Optionally, the terminal device can display a close control in the business application while simultaneously displaying the incentive prompt information. Furthermore, the terminal device can respond to a trigger operation on the close control to cancel the display of media data (i.e., cancel the display of original media data and filter media data) in the business application. Therefore, embodiments of this application allow business objects to flexibly close business data, and ensure that before closing business data, the business object knows that it can still obtain resource data even if business data is closed, without affecting the acquisition of resource data.

[0123] For easier understanding, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating a scenario where media data is disabled, as provided in an embodiment of this application. Figure 5 The client interfaces 50a and 50b shown can be the client interfaces of a business application at different times. The terminal device can display a close control 51a in the client interface 50a. The client interface 50a can be the one described above. Figure 4 The client interface 40b in the corresponding embodiment.

[0124] like Figure 5 As shown, the business object can perform a trigger operation on the close control 51a. In response, the terminal device can switch the client interface 50a to the client interface 50b, cancel the display of media data on the client interface 50b, and display a permission activation prompt message 51b (for example, "Congratulations on receiving 10 minutes of free beauty filter access"). The permission activation prompt message 51b indicates that the business application can use the filter effect corresponding to the filter permission, and it can be displayed continuously in the business application for a period of time (e.g., 3 seconds).

[0125] Furthermore, the terminal device can display media data to be switched in the business application. This media data can be media data to which a filter effect is to be added (or media data to which a filter effect is to be switched). Furthermore, the terminal device can respond to triggering operations for filter effects in the business application. If the triggering operation for the filter effect satisfies the permission conditions indicated by the second permission, then the media data to be switched with the filter effect is displayed in the business application. Therefore, the terminal device can use the filter effect corresponding to the filter permission in the business application. Here, we take filter permission as the second permission as an example for explanation. For the specific process of the terminal device using the first permission in the business application, please refer to the description of using the second permission in the business application, which will not be repeated here.

[0126] The permission condition indicated by the second permission refers to the remaining permissions of the second permission. For example, if the second permission is 10 minutes, after 2 minutes, the permission condition indicated by the second permission is 8 minutes, at which point the triggering operation for the filter effect satisfies the permission condition indicated by the second permission. As another example, if the second permission is 3 times, after using it once, the permission condition indicated by the second permission is 2 times, at which point the triggering operation for the filter effect satisfies the permission condition indicated by the second permission. Yet another example, if the second permission is 10 minutes, after 12 minutes, the permission condition indicated by the second permission is 0 minutes, at which point the triggering operation for the filter effect does not satisfy the permission condition indicated by the second permission.

[0127] For easier understanding, please refer to Figure 7 , Figure 7 This is a schematic diagram illustrating a scenario demonstrating the effect of a filter, as provided in an embodiment of this application. Figure 7 The client interfaces 70a and 70b shown can be the client interfaces of a business application at different times. Figure 5 After the permission activation prompt information 51b in the corresponding embodiment is continuously displayed for a period of time, the terminal device can switch the client interface 50b to the client interface 70a. The client interface 70a displays the media data 72a to be switched and G filter controls. The G filter controls can each correspond to different filter effects. Here, G can be a positive integer; for ease of understanding, we will use G equal to 4 as an example. The four filter effects can include filter effect 71a, filter effect 71b, filter effect 71c, and filter effect 71d. Filter effects 71a and 71b are filter effects that can be used by the business application, while filter effects 71c and 71d are filter effects that cannot be used by the business application. Filter effect 71a is a filter effect obtained through the business data (i.e., the filter permission of filter effect 71a is the resource data obtained through the business data).

[0128] like Figure 7As shown, the business object can perform a trigger operation on the filter control corresponding to filter effect 71b. In this way, the terminal device can respond to the trigger operation performed by the business object on the filter control corresponding to filter effect 71b. Furthermore, if the trigger operation of the business object on the filter control corresponding to filter effect 71b satisfies the permission conditions indicated by the second permission, the terminal device can switch the client interface 70a to the client interface 70b, displaying the media data 72b to be switched with filter effect 71b in the client interface 70b. Similarly, the business object can perform a trigger operation on the filter control corresponding to filter effect 71a. However, since the business application has not enabled filter permissions for filter effects 71c and filter efficiency 71d, the business object cannot perform trigger operations on the filter controls corresponding to filter effects 71c and filter efficiency 71d respectively.

[0129] The resource data associated with the functional controls includes voice-over permissions. It should be understood that when the triggering operation of the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can fully output the voice-over audio data associated with the media data in the business application. Here, the voice-over audio data represents the voice-over data (i.e., background music) of the media data. Fully outputting the voice-over audio data means outputting the voice-over audio data at a standard volume (e.g., 50 decibels) or according to the duration of the voice-over audio data (i.e., the complete duration). Furthermore, the terminal device can obtain voice-over permissions for the voice-over audio data. Voice-over permissions refer to the permission of a business object logged into the business application to use the voice-over audio data within the business application; that is, the business object can use the voice-over audio data to perform voice-over within the business application, where the business application can be the client implementing the voice-over.

[0130] For easier understanding, please refer to Figure 8 , Figure 8 This is a schematic diagram illustrating a scenario for using dubbing audio data, as provided in an embodiment of this application. Figure 8 The client interfaces 80a and 80b shown can be the client interfaces of the business application at different times. Client interface 80a can be the aforementioned Figure 3c The client interface 30d in the corresponding embodiment.

[0131] like Figure 8As shown, the business object can perform a sliding operation on the filter effect switching control (here, a left sliding operation is used as an example for explanation). The terminal device can then respond to the sliding operation performed by the business object on the filter effect switching control. When the sliding operation on the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the client interface 80a is switched to the client interface 80b. The client interface 80b outputs the complete dubbing audio data associated with the media data and displays a dubbing permission prompt message 81a (for example, dubbing permission prompt message 81a could be "Obtain the opportunity to use dubbing audio data"). The dubbing permission prompt message 81a indicates that the business application can use the dubbing audio data to perform dubbing.

[0132] The media data refers to video data, and the coverage area controls the playback speed of the video data. Resource data associated with the functional controls includes playback speed permissions. It should be understood that when the triggering operation of the filter effect switching control meets the cumulative operation condition, or when the duration of browsing the media data meets the browsing duration condition, the terminal device can display the video data in the business application according to the playback speed indicated by the coverage area. Different coverage areas can refer to different video playback speeds, for example, as described above. Figure 3c In the corresponding embodiment, the coverage area in the client interface 30c can refer to 2x speed. Further, the terminal device can obtain speed permission for the video playback speed indicated by the coverage area. This speed permission means that a business object logged into the business application has the permission to use the video playback speed indicated by the coverage area within the business application; that is, the business object can use the video playback speed indicated by the coverage area to achieve double-speed playback within the business application, where the business application can be a client that implements double-speed playback.

[0133] For easier understanding, please refer to Figure 9 , Figure 9 This is a schematic diagram illustrating a scenario of adjusting the playback speed of a video, as provided in an embodiment of this application. Figure 9 The client interfaces 90a and 90b shown can be the client interfaces of the business application at different times. Client interface 90a can be the aforementioned Figure 3c The client interface 30d in the corresponding embodiment.

[0134] like Figure 9As shown, the business object can perform a sliding operation on the filter effect switching control (here, a left swipe is used as an example). The terminal device can respond to this sliding operation. When the sliding operation on the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the client interface 90a is switched to client interface 90b. In client interface 90b, video data is displayed at the playback speed indicated by the coverage area, and a speed-permission prompt message 91a is displayed (for example, speed-permission prompt message 91a could be "Gain the opportunity to use video playback speed"). The speed-permission prompt message 91a indicates that the business application can use the video playback speed indicated by the coverage area to achieve accelerated playback.

[0135] It should be understood that when the trigger operation for the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can dynamically display resource objects associated with the functional control in the business application. This application embodiment does not limit the specific number or form of the resource objects; for example, the number of resource objects can be three, and the form of the resource objects can be hearts, flowers, lucky bags, etc. This application embodiment does not limit the specific form of dynamic display; for example, dynamic display can be flashing display, moving display, etc. Resource objects can also be called Easter eggs, and resource objects can enhance the fun of business data. Furthermore, the terminal device can respond to the trigger operation for the resource object and retrieve the resource data indicated by the resource object in the business application. This application embodiment does not limit the resource data indicated by the resource object; for example, the resource data indicated by flowers can be coupons, the resource data indicated by hearts can be heart points in a game client, and the resource data indicated by lucky bags can be account activity in a social client.

[0136] For easier understanding, please refer to Figure 10 , Figure 10 This is a schematic diagram illustrating a scenario for retrieving resource data provided in an embodiment of this application. For example... Figure 10 The client interfaces 100a and 100b shown can be the client interfaces of the business application at different times.

[0137] like Figure 10As shown, when the sliding operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can dynamically display the resource object (e.g., resource object 101a) in the client interface 100a. Further, the business object can perform a trigger operation on the resource object (e.g., resource object 101a) in the client interface 100a. In this way, the terminal device can respond to the trigger operation performed by the business object on resource object 101a, switching the client interface 100a to the client interface 100b. In the client interface 100b, the terminal device can retrieve the resource data indicated by resource object 101a (e.g., the resource data indicated by resource object 101a could be a free 10-minute beauty filter privilege) and display a resource data retrieval prompt message 101b (e.g., the resource data retrieval prompt message 101b could be "Congratulations on obtaining a free 10-minute beauty filter privilege"). The resource data retrieval prompt message 101b indicates that the resource data indicated by resource object 101a has been retrieved in the business application.

[0138] The resource data associated with the functional controls includes business detail data. It should be understood that when the triggering operation of the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can display a redirection prompt associated with the business link to which the media data belongs in the business application. Here, the business link can represent a link to business data, the media data can represent a summary of the business data, and the business detail data can represent the details of the business data (i.e., the detail page, landing page). Further, when the cumulative display duration of the redirection prompt (i.e., the display duration of the redirection prompt) reaches a duration threshold, the terminal device can display the business detail data corresponding to the business link in the business application. This application embodiment does not limit the specific value of the duration threshold; for example, the duration threshold can be 3 seconds. This application embodiment does not limit the specific form of the business detail data; for example, the business detail data can include image data and text data. Therefore, displaying business detail data in the business application can improve advertising effectiveness, thereby increasing advertising conversion rates (including shallow conversion rates and deep conversion rates).

[0139] For easier understanding, please refer to Figure 11 , Figure 11 This is a schematic diagram illustrating a scenario for displaying business details data, provided in an embodiment of this application. For example... Figure 11 The client interfaces 110a and 110b shown can be the client interfaces of the business application at different times.

[0140] like Figure 11As shown, when the sliding operation of the filter effect switching control meets the cumulative operation condition, or when the duration of browsing media data meets the browsing duration condition, the terminal device can display a jump prompt message 111a associated with the business link in the client interface 110a (for example, the jump prompt message 111a can be "You will be redirected to the advertisement details page in 3 seconds"). Further, when the cumulative display duration of the jump prompt message reaches a duration threshold (i.e., the duration indicated by the continuous display duration threshold of the jump prompt message), the terminal device can switch the client interface 110a to the client interface 110b, displaying the business details data 111b corresponding to the business link in the client interface 110b.

[0141] Optionally, the terminal device can respond to a trigger operation for the filter effect replacement function in the media data and obtain the updated filter media data corresponding to the trigger operation. Further, the terminal device can replace the displayed filter media data by updating the filter media data (i.e., replace the filter media data with the updated filter media data). Specifically, the area in the original media data covered by the updated filter media data has the updated filter effect, while the area in the original media data not covered by the updated filter media data does not have the updated filter effect. The filter effect in the original filter media data and the updated filter effect in the updated filter media data are different filter effects, thus achieving filter effect replacement in business applications. Before and after replacing the filter media data with the updated filter media data, the coverage area of ​​the filter media data on the original media data is equivalent to the coverage area of ​​the updated filter media data on the original media data. Business applications can provide business objects with the permission to use the updated filter effect in the business application, thereby allowing them to experience the resource data in the business application in advance in the advertisement.

[0142] The trigger operation for the filter effect replacement function can be a sliding operation on the filter effect switching control. The sliding direction here differs from the sliding direction in step S102 described above. This embodiment does not limit the specific direction of the sliding operation. The sliding operation on the filter effect switching control can be a sliding operation on the original media data or a sliding operation on the filter media data. For ease of understanding, this embodiment uses upward (i.e., an up-slide operation) and downward (i.e., a down-slide operation) as examples. Optionally, the trigger operation for the filter effect replacement function can be a selection operation on the filter control. The terminal device can update the filter media data and replace the filter media data through the selection operation on the filter control.

[0143] For easier understanding, please refer to Figure 12a and Figure 12b , Figure 12a and Figure 12bThis is a schematic diagram illustrating a scenario where a filter replacement effect is provided in an embodiment of this application. For example... Figure 12a The client interfaces 120a and 120b shown can be the client interfaces of the business application at different times, such as Figure 12b The client interfaces 122a, 122b, 122c, and 122d shown can be the client interfaces of the business application at different times. Figure 12a The explanation will take the triggering operation of the filter effect replacement function as an example of the sliding operation of the filter effect switching control. Figure 12b The example of using the trigger operation for the filter effect replacement function as an example of the filter control selection operation allows business objects to switch between different filter effects.

[0144] like Figure 12a As shown, the terminal device can display filter media data 121a in the client interface 120a, and the filter effect in the filter media data 121a can be the filter effect corresponding to the beauty filter. Furthermore, the business object can perform a swipe operation (e.g., an upward swipe) on the filter media data 121a. In this way, the terminal device can respond to the swipe operation performed by the business object on the filter media data 121a, switching the client interface 120a to the client interface 120b. In the client interface 120b, the updated filter media data 121b replaces the displayed filter media data 121a. The updated filter effect in the filter media data 121b can be the filter effect corresponding to the beauty filter.

[0145] Similarly, the business object can perform a swipe operation (e.g., a swipe down) on the updated filter media data 121b. In this way, the terminal device can respond to the swipe operation performed by the business object on the updated filter media data 121b, switch the client interface 120b to the client interface 120a, and replace the updated filter media data 121b with the filter media data 121a in the client interface 120a.

[0146] like Figure 12bAs shown, the terminal device can display the filter replacement control 123a and filter media data 124a in the client interface 122a. Further, the business object can execute a trigger operation on the filter replacement control 123a. In this way, the terminal device can respond to the trigger operation executed by the business object on the filter replacement control 123a, switching the client interface 122a to the client interface 122b, where G filter controls are displayed. Each of the G filter controls corresponds to a different filter effect. Here, G can be a positive integer; for ease of understanding, we will use G equal to 4 as an example. The four filter effects can include filter effect 124a, filter effect 124b, filter effect 124c, and filter effect 124d. Filter effect 124b is selected, while filter effects 124a, 124c, and 124d are unselected. Filter effect 124b is the filter effect in the filter media data 124a.

[0147] like Figure 12b As shown, the business object can perform a trigger operation on the filter control corresponding to filter effect 124c. In this way, the terminal device can respond to the trigger operation performed by the business object on the filter control corresponding to filter effect 124c, switching the client interface 122b to client interface 122c. In client interface 122c, filter media data 124b is updated to replace the displayed filter media data 124a. The filter effect in the updated filter media data 124b can be the filter effect corresponding to the "Miaoji" filter.

[0148] like Figure 12b As shown, a business object can perform a trigger operation on the close control 123b in the client interface 122c. In this way, the terminal device can respond to the trigger operation performed by the business object on the close control 123b, switching the client interface 122c to the client interface 122d. In the client interface 122d, the media data (including filter media data 124b) is not displayed, and a permission activation prompt message 123c is displayed (for example, permission activation prompt message 123c could be "Congratulations on receiving 10 minutes of free use of the Miaoji filter"). The permission activation prompt message 123c indicates that the business application can use the filter effects in the updated filter media data 124b, and the permission activation prompt message 123c can be continuously displayed in the business application for a period of time (for example, 3 seconds). Similarly, the terminal device can respond to the trigger operation performed by the business object on the above... Figure 12a The triggering operation performed by the closing control 121c in the corresponding embodiment will not be described in detail here.

[0149] Optionally, the terminal device can respond to a trigger operation for the sticker function in the media data, displaying S sticker resources (i.e., stickers) corresponding to the sticker function in the business application. Here, S can be a positive integer, and the trigger operation for the sticker function can be a trigger operation for a resource sticker control. This embodiment does not limit the specific form of the sticker resources; for example, the sticker resource can be a heart. Further, the terminal device can respond to a selection operation for the S sticker resources, overlaying the selected sticker resource onto the media data. The terminal device can overlay the selected sticker resource onto the original media data, onto filter media data, or simultaneously onto both the original and filter media data. Further, the terminal device can respond to a transformation operation for the target sticker resource (i.e., the sticker resource selected in the selection operation) on the media data, changing the size or position of the target sticker resource. The business application can provide business objects with permission to use the target sticker resource in the business application, thereby allowing them to experience the resource data in the business application in advance in the advertisement.

[0150] For easier understanding, please refer to Figure 13 , Figure 13 This is a schematic diagram illustrating a scenario for selecting texture resources, as provided in an embodiment of this application. Figure 13 The client interfaces 130a, 130b, 130c, and 130d shown can be the client interfaces of a business application at different times. The terminal device can display the resource texture control 131a in the client interface 130a. Client interface 130a can be one of the aforementioned interfaces. Figure 12b The client interface 122a in the corresponding embodiment.

[0151] like Figure 13 As shown, the business object can perform a trigger operation on the resource texture control 131a. In this way, the terminal device can respond to the trigger operation performed by the business object on the resource texture control 131a, switching the client interface 130a to the client interface 130b. The client interface 130b displays the resource controls corresponding to the S texture resources. Here, S can be a positive integer; for ease of understanding, we will use S equal to 4 as an example. The four resource controls can include resource controls 132a, 132b, 132c, and 132d.

[0152] like Figure 13As shown, the business object can perform a selection operation on S texture resources (i.e., perform a selection operation on S resource controls). In this way, the terminal device can respond to the selection operation performed by the business object on the S texture resources, switch the client interface 130b to the client interface 130c, and overlay the texture resource selected by the selection operation (e.g., texture resource 131c corresponding to resource control 132c) onto the media data in the client interface 130c.

[0153] like Figure 13 As shown, the business object can perform a trigger operation on the close control 131b in the client interface 130c. In this way, the terminal device can respond to the trigger operation performed by the business object on the close control 131b, switching the client interface 130c to the client interface 130d. In the client interface 130d, media data is not displayed, and a permission activation prompt message 131d is displayed (for example, the permission activation prompt message 131d could be "Congratulations on receiving a free Love Sticker"). Figure 10 (Minutes of rights). Among them, permission activation prompt message 131d is used to indicate that the business application can use the texture resource 131c, and permission activation prompt message 131d can be continuously displayed in the business application for a period of time (e.g., 3 seconds).

[0154] Optionally, the terminal device can respond to a trigger operation for special effects functions in the media data, displaying H special effects resources corresponding to the special effects functions in the business application. Here, H can be a positive integer, and the trigger operation for the special effects function can be a trigger operation for special effects resource controls. Special effects resources can represent special effects controls for the media data; this embodiment does not limit the specific form of the special effects resources, for example, special effects resources can be makeup, styling, etc. Further, the terminal device can respond to a selection operation for the H special effects resources, overlaying the selected special effects resource onto the media data. Specifically, the terminal device can overlay the selected special effects resource onto the original media data, or onto filter media data, or simultaneously overlay the selected special effects resource onto both the original media data and filter media data. The business application can provide business objects with the permission to use the selected special effects resource in the business application, thereby allowing them to experience the resource data in the business application in advance in the advertisement.

[0155] Therefore, this application embodiment can display media data including filter effect switching controls in business applications, and then respond to trigger operations on the filter effect switching controls to adjust the coverage ratio of the filter media data to the original media data. Here, the original media data is media data without filter effects, and the filter media data is media data with filter effects. Since both the original media data and the filter media data belong to the media data in the business application, this application embodiment can enable user (i.e., business object) interaction with the media data (i.e., adjusting the coverage ratio of filter media data to original media data), rather than requiring the user to continuously browse media data for a period of time without being able to perform any operations during this continuous browsing process, thereby enriching the user's interaction methods with the media data.

[0156] Further, please see Figure 14 , Figure 14 This is a flowchart illustrating a data processing method provided in an embodiment of this application. The method can be executed by a server, a terminal device, or both. The server can be one of the aforementioned... Figure 1 The server 2000 in the corresponding embodiment can be the terminal device described above. Figure 1 The target terminal device in the corresponding embodiment. For ease of understanding, this application embodiment uses the execution of the method by the target terminal device as an example for illustration. The data processing method may include the following steps S201-S205:

[0157] Step S201: Respond to the trigger operation of the functional control in the business application and display the media data including the filter effect switching control;

[0158] Specifically, the terminal device can respond to trigger operations on functional controls in the business application by sending a media data acquisition request to the server corresponding to the terminal device (i.e., the server corresponding to the business application). This media data acquisition request instructs the server to acquire media data containing filter effect switching controls. The media data can include original media data and filter media data. For example, the original media data and filter media data can be two advertising views of the same size (e.g., the advertising views can be View, ViewGroup, etc., where View and ViewGroup represent different UI (User Interface) components). The original media data can be the original image, and the filter media data can be the filter image. Further, the terminal device can receive the media data returned by the server and create a pop-up window (i.e., a Dialog) in the business application to carry the business data (i.e., display the business data in the pop-up window), thus displaying the media data in the business application. Optionally, the server can obtain the URL (Uniform Resource Locator) corresponding to the media data. In this way, the terminal device can receive the URL returned by the server and load the media data according to the returned URL.

[0159] The media data acquisition request is used to request the loading of business data and simultaneously transmit business parameters associated with the business application. These business parameters may include an application identifier (i.e., the identifier of the business application) and an ad placement identifier (i.e., the identifier of the location of the functional control within the business application). The server uses the application identifier and ad placement identifier to acquire the business data, which includes media data containing filter effect switching controls. Different application identifiers and ad placement identifiers can be used to acquire different business data.

[0160] Optionally, when responding to trigger operations on functional controls in a business application, the terminal device can acquire media data containing filter effect switching controls through an artificial intelligence model, and then display the media data in the business application. Specifically, in response to trigger operations on functional controls in a business application, the terminal device can acquire K filter effects that have been granted permissions in the business application (i.e., filter effects that can be used in the business application), extract features from each of the K filter effects, and obtain filter features corresponding to each of the K filter effects. Here, K can be a positive integer. Further, the terminal device can perform self-attention fusion on the K filter features to obtain fused filter features corresponding to each of the K filter features. Further, the terminal device can perform feature fusion (e.g., weighted summation) on the K fused filter features to obtain fused features. Further, the terminal device can perform fully connected processing on the fused features to obtain fully connected features corresponding to the fused features, and then normalize the fully connected features to obtain normalized features. Further, the terminal device can determine the filter effects associated with the business application based on the normalized features. Among these, filter effects associated with business applications are not among the K filter effects. Further, the terminal device can acquire raw media data associated with the business objects of the business application (e.g., image data that the business objects may be interested in), perform filter fusion on the raw media data and filter effects (i.e., filter effects associated with the business objects), and obtain filter media data with filter effects. The filter media data and the raw media data are then determined as media data containing filter effect switching controls. In other words, the terminal device can determine the filter media data and the raw media data as media data, and set filter effect switching controls on the media data to obtain media data containing filter effect switching controls. Furthermore, the terminal device can display the media data in the business application.

[0161] The normalized features can include the probability values ​​corresponding to W filter effects in the business application, where W can be a positive integer greater than K, and the W filter effects can represent all filter effects in the business application. The W filter effects include K filter effects, and the W probability values ​​include the probability values ​​corresponding to the K filter effects. It should be understood that the terminal device can obtain WK probability values ​​(excluding the K probability values) from the W probability values, and determine the filter effect corresponding to the highest probability value among the WK probability values ​​as the filter effect associated with the business application. The WK probability values ​​are the probability values ​​corresponding to the WK filter effects for which permissions have not been granted.

[0162] Step S202: Respond to the sliding operation of the filter effect switching control and obtain the sliding direction of the sliding operation;

[0163] Specifically, the terminal device can respond to a sliding operation on the filter effect switching control and obtain the start and end positions of the sliding operation. Further, the terminal device can perform a difference operation on the horizontal coordinates of the start position (i.e., the first horizontal coordinate) and the end position (i.e., the second horizontal coordinate) to obtain the horizontal difference value corresponding to the sliding operation. Further, if the horizontal difference value is less than a difference threshold (for example, the difference threshold can be equal to 0), the terminal device can determine the second direction as the sliding direction of the sliding operation, thereby executing step S204. Optionally, if the horizontal difference value is greater than the difference threshold, the terminal device can determine the first direction as the sliding direction of the sliding operation, thereby executing step S203. Optionally, if the horizontal difference value is equal to the difference threshold, the terminal device can determine that the sliding operation is invalid, thereby not executing steps S203 and S204.

[0164] The sliding start position may include a horizontal coordinate (i.e., a first horizontal coordinate) and a vertical coordinate (i.e., a first vertical coordinate), and the sliding end position may include a horizontal coordinate (i.e., a second horizontal coordinate) and a vertical coordinate (i.e., a second vertical coordinate). The first and second horizontal coordinates can be coordinates in the horizontal direction, and the first and second vertical coordinates can be coordinates in the vertical direction. For ease of understanding, this embodiment uses a left or right sliding operation as an example. Optionally, if the sliding operation is a vertical or horizontal operation, the terminal device can perform a difference calculation between the vertical coordinates at the sliding start position and the vertical coordinates at the sliding end position to obtain the vertical difference value corresponding to the sliding operation, and then determine the sliding direction of the sliding operation based on the vertical threshold and the vertical difference value.

[0165] It is understood that the terminal device can respond to a sliding operation on the filter effect switching control, and determine the start position of the sliding operation as the corresponding sliding start position. Further, the terminal device can obtain the sliding speed corresponding to the sliding operation and determine the sliding offset distance based on the sliding speed. Generally, a larger sliding speed results in a larger sliding offset distance, and a smaller sliding speed results in a smaller sliding offset distance. This embodiment does not limit the specific method of determining the sliding offset distance; for example, the terminal device can determine the sliding offset distance as the product of the sliding speed and a speed weight (e.g., the speed weight can be equal to 0.5). Further, the terminal device can determine the corresponding sliding end position based on the sliding end position and the sliding offset distance. Optionally, the terminal device can determine the sliding end position as the corresponding sliding end position.

[0166] Specifically, the terminal device can offset the end position of the sliding operation by a certain distance along the direction from the start position to the end position. This offset distance is called the sliding offset distance. It should be understood that the end position corresponding to the sliding operation should be on the terminal device. If the end position obtained after offsetting by the sliding offset distance is not on the terminal device, then the terminal device can determine the final position obtained after offsetting by the sliding offset distance as the end position corresponding to the sliding operation. The final position represents the last position on the terminal device during the offset process. If the offset continues beyond the final position, the positions after the offset will not be on the terminal device.

[0167] It should be understood that in order to implement the swipe operation for switching filter effects, the terminal device needs to detect touch events. The touch events detected by the terminal device can include ACTION_DOWN, ACTION_MOVE, and ACTION_UP events. Among them, the ACTION_DOWN event can be used to record the starting position of the business object being pressed (i.e., the starting position of the swipe operation, also known as the initial position); the ACTION_MOVE event can be used to calculate the difference between the current position and the initial position (i.e., the horizontal offset value), and then adjust the coverage of the filter media data over the original media data according to this difference (expanding or shrinking the coverage of the filter media data over the original media data); the ACTION_UP event can be used to record the ending position of the business object being pressed (i.e., the ending position of the swipe operation) and determine whether the filter media data completely covers the original media data or exposes a certain percentage of the original media data.

[0168] It is understood that the filter media data in the media data is displayed on top of the original media data; that is, the filter media data overlays the original media data. The area of ​​the original media data covered by the filter media data has a filter effect, while the area of ​​the original media data not covered by the filter media data does not have a filter effect. For ease of understanding, this application embodiment uses the example of the original media data and filter media data overlapping horizontally. The filter media data includes a mask layer (i.e., a FrameLayout mask layer), which is used to crop the filter media data (i.e., the portion of the mask layer used to set the filter media data for display on the terminal device). In other words, the width of the mask layer can be used to determine the display width of the filter media data, thereby determining the display width of the original media data. The display width of the filter media data and the display width of the original media data are not the actual widths of the filter media data and the original media data, but rather the widths of the filter media data and the original media data displayed on the terminal device. The actual widths of the filter media data and the original media data remain unchanged.

[0169] Specifically, if the business object is swiped to the right (i.e., the swipe operation is a right swipe), the terminal device can expand the width of the mask layer, reduce the display width of the filter media data, and expose the original media data (i.e., reduce the coverage area of ​​the filter media data on the original media data and expand the display width of the original media data); if the business object is swiped to the left (i.e., the swipe operation is a left swipe), the terminal device can reduce the width of the mask layer, expand the display width of the filter media data, and cover the original media data (i.e., expand the coverage area of ​​the filter media data on the original media data and reduce the display width of the original media data).

[0170] For easier understanding, please refer to Figure 15 , Figure 15 This is a schematic diagram illustrating a scenario for dividing media data according to an embodiment of this application. For example... Figure 15 As shown, filter media data 150b is displayed on the original media data 150a, and a mask layer 150c is displayed on the filter media data 150b. The terminal device can also add a transparent layer 150d to the filter media data 150b and the original media data 150a to detect sliding operations (e.g., touch events). The transparent layer 150d can be used to control the width of the mask layer 150c (i.e., adjust its size by setting the layout parameters of the mask layer), thereby controlling the display width of the original media data 150a and the display width of the filter media data 150b. The size of the transparent layer 150d is the same as the size of the media data, or it can be slightly larger. The transparent layer 150d can be understood as a filter effect switching control set on the media data.

[0171] It should be understood that the terminal device can respond to trigger operations on the filter effect switching control (e.g., a sliding operation on the filter effect switching control), and change the size of the original size of the mask layer through the trigger operation (e.g., a sliding operation), thus obtaining the changed size of the mask layer. The original size and the changed size of the mask layer have different widths. Further, the terminal device can crop the filter media data based on the changed size to obtain first filter media data. The coverage ratio of the first filter media data to the original media data is different from the coverage ratio of the second filter media data to the original media data (i.e., the first filter media data is different from the second filter media data), and the second filter media data is obtained by cropping the filter media data based on the original size; both the first and second filter media data are the media data displayed on the terminal device (i.e., the media data that the business object can see on the terminal device).

[0172] The coverage ratios of the first filter media data and the original media data, and the second filter media data and the original media data, both refer to the coverage ratios of the filter media data and the original media data. The first filter media data coverage ratio represents the ratio of the first filter media data within the media data (i.e., the ratio of the display width of the first filter media data to the actual width of the media data). The second filter media data coverage ratio represents the ratio of the second filter media data within the media data (i.e., the ratio of the display width of the second filter media data to the actual width of the media data). The filter media data coverage ratio also represents the ratio of the media data displayed on the terminal device (in this embodiment, the media data displayed on the terminal device can be directly referred to as filter media data) within the media data (i.e., the ratio of the display width of the filter media data to the actual width of the media data, where the actual width of the media data can be either the actual width of the filter media data or the actual width of the original media data). For example, the above... Figure 3a In the corresponding embodiment, the coverage ratio of the filter media data to the original media data is equal to 0. Figure 3b In the corresponding embodiment, the coverage ratio of the filter media data to the original media data is equal to 1. Figure 3c In the corresponding embodiment, the coverage ratio of the filter media data to the original media data is equal to 0.5. Figure 3d In the corresponding embodiment, the coverage ratio of the filter media data to the original media data is equal to 0.5.

[0173] Optionally, the coverage ratio of the first filter media data to the original media data, the coverage ratio of the second filter media data to the original media data, and the coverage ratio of the filter media data to the original media data can also represent the ratio of the original media data in the media data (i.e., the ratio of the display width of the original media data to the actual width of the media data).

[0174] For easier understanding, please refer to Figure 16 , Figure 16 This is a schematic diagram illustrating a scenario for cropping filter media data provided in an embodiment of this application. For example... Figure 16 The original media data 160a shown can be the above Figure 15 The original media data 150a in the corresponding embodiment, such as Figure 16 The filter media data 160b shown can be the above Figure 15 The filter media data 150b in the corresponding embodiment, such as Figure 16 The masking layer shown can be the one described above. Figure 15 The masking layer 150c in the corresponding embodiment.

[0175] like Figure 16 As shown, the terminal device can display the mask layer 160c on the filter media data 160b to obtain media data 161a displayed on the terminal device; the terminal device can also display the mask layer 160c and the filter media data 160b on the original media data 160a to obtain media data 161a and media data 161b displayed on the terminal device. Media data 161a is the media data displayed by the filter media data 160b on the terminal device, and the width of media data 161a is the display width of the filter media data 160b; media data 161b is the media data displayed by the original media data 160a on the terminal device, and the width of media data 161b is the display width of the original media data 160a.

[0176] Step S203: If the sliding direction is the first direction, then increase the ratio of the coverage of the filter media data to the original media data in the media data.

[0177] Optionally, the terminal device can respond to a trigger operation (e.g., a sliding operation) on the filter effect switching control, and change the size of the original size of the mask layer through the trigger operation (e.g., the sliding operation) to obtain the changed size of the mask layer. The original size and the changed size of the mask layer have different widths, with the width of the original size being greater than the width of the changed size. Further, the terminal device can crop the filter media data based on the changed size to obtain first filter media data. The ratio of the coverage area of ​​the first filter media data to the original media data is greater than the ratio of the coverage area of ​​the second filter media data to the original media data (i.e., the first filter media data is larger than the second filter media data), and the second filter media data is obtained by cropping the filter media data based on the original size; both the first and second filter media data are the media data displayed on the terminal device.

[0178] Step S204: If the sliding direction is the second direction, then reduce the coverage ratio of the filter media data in the media data to the original media data in the media data.

[0179] Optionally, the terminal device can respond to a trigger operation (e.g., a sliding operation) on the filter effect switching control, and change the size of the original size of the mask layer through the trigger operation (e.g., the sliding operation) to obtain the changed size of the mask layer. The original size and the changed size of the mask layer have different widths, with the width of the original size being smaller than the width of the changed size. Further, the terminal device can crop the filter media data based on the changed size to obtain first filter media data. The ratio of the coverage area of ​​the first filter media data to the original media data is smaller than the ratio of the coverage area of ​​the second filter media data to the original media data (i.e., the first filter media data is smaller than the second filter media data), and the second filter media data is obtained by cropping the filter media data based on the original size; both the first and second filter media data are the media data displayed on the terminal device.

[0180] Optionally, at the end of the swipe operation, the terminal device can display an ending animation associated with the swipe operation in the business application. The ending animation can be used to indicate the end of the swipe operation. This embodiment does not limit the specific form of the ending animation; for example, the ending animation can be a light effect animation, which can include a flashing light at the end of the swipe operation.

[0181] Optionally, after displaying media data containing filter effect switching controls, the terminal device can automatically adjust the coverage ratio of the filter media data to the original media data without responding to the trigger operation of the filter effect switching controls.

[0182] Step S205: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, obtain the resource data associated with the functional control.

[0183] The specific process by which the terminal device acquires resource data associated with the functional controls can be found in the above description. Figure 2 The description of step S103 in the corresponding embodiments will not be repeated here.

[0184] Among them, the judgment of the cumulative operation conditions can avoid excessively interrupting the core experience link of the business object in the business application, without restricting the business object from browsing business data, and can provide the business object with relevant resource data, thereby improving user experience and user engagement.

[0185] It should be understood that the terminal device can obtain the cumulative number of trigger operations for the filter effect switching control, compare the cumulative number of operations with a cumulative number threshold, and obtain a comparison result. Here, the cumulative number of operations refers to the number of times the operation is triggered. Further, if the comparison result indicates that the cumulative number of operations is greater than or equal to the cumulative number threshold, the terminal device can determine that the trigger operation for the filter effect switching control meets the operation accumulation condition. Optionally, if the comparison result indicates that the cumulative number of operations is less than the cumulative number threshold, the terminal device can determine that the trigger operation for the filter effect switching control does not meet the operation accumulation condition. In this embodiment, the specific value of the cumulative number threshold is not limited. For example, the cumulative number threshold can be equal to 1, where a cumulative number threshold of 1 indicates that one trigger operation for the filter effect switching control is sufficient to meet the operation accumulation condition.

[0186] It should be understood that if the coverage ratio is greater than or equal to the ratio threshold, the terminal device can determine that the triggering operation for the filter effect switching control satisfies the operation accumulation condition. Optionally, if the coverage ratio is less than the ratio threshold, the terminal device can determine that the triggering operation for the filter effect switching control does not satisfy the operation accumulation condition. In this embodiment, the specific value of the ratio threshold is not limited. For example, the ratio threshold can be equal to 1, where a ratio threshold of 1 indicates that the operation accumulation condition is satisfied when the filter media data completely covers the original media data.

[0187] The browsing duration condition includes a duration threshold. This application embodiment does not limit the specific value of the duration threshold; for example, the duration threshold can be equal to 2 seconds. It should be understood that if the duration of browsing the media data is greater than or equal to the duration threshold, the terminal device can determine that the browsing duration of the media data meets the browsing duration condition. Optionally, if the duration of browsing the media data is less than the duration threshold, the terminal device can determine that the browsing duration of the media data does not meet the browsing duration condition.

[0188] Optionally, the terminal device may not need to determine whether the trigger operation for the filter effect switching control meets the operation accumulation condition, or whether the duration of browsing media data meets the browsing duration condition. Instead, it can directly obtain the resource data associated with the functional control after reducing or increasing the coverage ratio of the filter media data to the original media data. In this case, the execution flow of the terminal device is the same as that of the terminal device when the cumulative number of times threshold equals 1. Optionally, the terminal device may not need to respond to the trigger operation for the filter effect switching control. Instead, it can directly obtain the resource data associated with the functional control after displaying the media data containing the filter effect switching control.

[0189] For easier understanding, please refer to Figure 17 , Figure 17 This is a schematic diagram of a data processing flow provided in an embodiment of this application. For example... Figure 17 As shown, the business object can execute step S11, in which it can click to unlock the filter entry, meaning the business object can perform a trigger operation on the functional control, thereby enabling the business object to actively trigger and browse the rewarded interstitial advertisement. Then, the terminal device can execute step S12, requesting to load the rewarded interstitial advertisement (i.e., initializing the advertisement using the advertising SDK (Software Development Kit),) to obtain business data. Further, the terminal device can execute step S13, displaying the rewarded interstitial advertisement after it has been loaded (i.e., triggering the advertisement display), thus displaying business data in the business application. The business data may include media data containing filter effect switching controls. At this point, the business data can provide clear feedback to the business object, informing it that it can obtain resource data after browsing the business data. This embodiment does not limit the specific method of feedback; for example, the terminal device can provide clear feedback to the business object through pop-ups or text prompts. Furthermore, the terminal device can execute step S14, which provides interactive elements (e.g., swipe operations) so that the business object can obtain resource data in the business application. For example, the business object can try out filter effects in the business data by swiping.

[0190] like Figure 17As shown, the terminal device can execute step S15 to determine whether the business object has completed the interaction, that is, whether the business object has performed a sliding operation on the filter effect switching control. Further, if the business object has not performed a sliding operation on the filter effect switching control, the terminal device can execute step S16 to wait for interaction (i.e., wait for the business object to perform a sliding operation on the filter effect switching control) and continuously detect the interaction (i.e., continuously detect the interaction behavior). Optionally, if the business object performs a sliding operation on the filter effect switching control, the terminal device can execute step S17 to trigger the rights unlocking logic (i.e., trigger the resource object unlocking logic) and add resource data to the business object. That is, when the triggered operation on the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition, the resource data associated with the functional control is obtained. Furthermore, the terminal device can execute step S18 to update the interface (i.e., update the client interface). The updated client interface is used to indicate the acquired resource data. For example, the terminal device can display the acquired filter effect (e.g., "pink skin" filter) in the updated client interface and prompt the business object to use the filter effect.

[0191] Therefore, this application embodiment can display media data containing filter effect switching controls in business applications, and then respond to sliding operations on the filter effect switching controls. Depending on the sliding direction, the ratio of the coverage area of ​​the filter media data to the original media data in the media data can be increased or decreased. The area of ​​the original media data covered by the filter media data has a filter effect, while the area of ​​the original media data not covered by the filter media data does not have a filter effect. Since both the original media data and the filter media data belong to the media data in the business application, this application embodiment can enable user (i.e., business object) interaction with the media data (i.e., adjusting the coverage ratio of the filter media data to the original media data), rather than requiring the user to continuously browse media data for a period of time without being able to perform any operations during this continuous browsing process, thus enriching the user's interaction methods with the media data.

[0192] Further, please see Figure 18 , Figure 18 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. The data processing device 1 may include: a media data display module 11, a coverage adjustment module 12, and a resource data acquisition module 13; further, the data processing device 1 may also include: a filter replacement module 14, a resource mapping module 15, and a data processing module 16.

[0193] The media data display module 11 is used to respond to the triggering operation of the functional control in the business application and display media data including filter effect switching control;

[0194] The coverage adjustment module 12 is used to respond to the trigger operation of the filter effect switching control and adjust the coverage ratio between the filter media data and the original media data in the media data.

[0195] Among them, the coverage adjustment module 12 is specifically used to respond to the sliding operation of the filter effect switching control and obtain the sliding direction of the sliding operation;

[0196] Among them, the coverage adjustment module 12 is specifically used to respond to the sliding operation of the filter effect switching control and obtain the sliding start position and sliding end position corresponding to the sliding operation;

[0197] The coverage adjustment module 12 is specifically used to perform a difference calculation on the horizontal coordinates at the start position and the end position of the slide to obtain the horizontal difference value corresponding to the slide operation.

[0198] The coverage adjustment module 12 is specifically used to determine the second direction as the sliding direction of the sliding operation if the horizontal difference is less than the difference threshold.

[0199] The coverage adjustment module 12 is specifically used to determine the first direction as the sliding direction of the sliding operation if the horizontal difference is greater than the difference threshold.

[0200] Among them, the coverage adjustment module 12 is specifically used to respond to the sliding operation of the filter effect switching control and to determine the starting position of the sliding operation as the sliding start position corresponding to the sliding operation.

[0201] The coverage adjustment module 12 is specifically used to obtain the sliding speed corresponding to the sliding operation and determine the sliding offset distance of the sliding operation based on the sliding speed.

[0202] The coverage adjustment module 12 is specifically used to determine the end position of the sliding operation based on the end position of the sliding operation and the sliding offset distance.

[0203] The coverage adjustment module 12 is specifically used to increase the coverage ratio of the filter media data to the original media data in the media data if the sliding direction is the first direction.

[0204] The coverage adjustment module 12 is specifically used to reduce the coverage ratio of the filter media data to the original media data in the media data if the sliding direction is the second direction.

[0205] Among them, the filter media data is displayed on the original media data; the filter media data includes a mask layer, which is used to crop the filter media data;

[0206] The coverage adjustment module 12 is specifically used to respond to the trigger operation of the filter effect switching control, and to change the size of the original size of the mask layer through the trigger operation to obtain the changed size of the mask layer;

[0207] The coverage adjustment module 12 is specifically used to crop the filter media data based on the changed size to obtain the first filter media data; the coverage ratio of the first filter media data to the original media data is different from the coverage ratio of the second filter media data to the original media data; the second filter media data is obtained by cropping the filter media data based on the original size.

[0208] The resource data acquisition module 13 is used to acquire resource data associated with the functional control when the trigger operation for the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0209] Among them, the resource data associated with the functional controls includes filter permissions;

[0210] The resource data acquisition module 13 is specifically used to display the filter effect redemption control associated with the filter effect redemption function in the business application when the trigger operation for the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0211] The resource data acquisition module 13 is specifically used to respond to the trigger operation of the filter effect redemption control, and redeem filter permissions with filter effects in the business application; the filter permission provides the business object logged into the business application with the first permission to use filter effects in the business application.

[0212] Among them, the resource data associated with the functional controls includes filter permissions;

[0213] The resource data acquisition module 13 is specifically used to display incentive prompts in the business application when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition; the incentive prompts are used to indicate that the business application has enabled filter permissions; filter permissions provide the business objects logged into the business application with a second permission to use filter effects in the business application.

[0214] Among them, the resource data acquisition module 13 is also specifically used to display the media data to be switched in business applications;

[0215] The resource data acquisition module 13 is also specifically used to respond to the trigger operation for the filter effect in the business application. If the trigger operation for the filter effect meets the permission conditions indicated by the second permission, the media data to be switched with the filter effect will be displayed in the business application.

[0216] Among them, the resource data associated with the functional controls includes voice-over permissions;

[0217] The resource data acquisition module 13 is specifically used to output the dubbing audio data associated with the media data in the business application when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0218] Resource data acquisition module 13 is specifically used to acquire dubbing permissions for dubbing audio data; dubbing permissions refer to the permission of a business object logged into the business application to use dubbing audio data in the business application.

[0219] Among them, media data is video data, and the coverage area is used to control the playback speed of the video data; the resource data associated with the functional controls includes playback speed permissions;

[0220] The resource data acquisition module 13 is specifically used to display video data in the business application according to the video playback speed indicated by the coverage area when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0221] Resource data acquisition module 13 is specifically used to acquire the speed permission for video playback indicated by the coverage area; the speed permission refers to the permission of the business object logged into the business application to use the video playback speed indicated by the coverage area in the business application.

[0222] Among them, the resource data acquisition module 13 is specifically used to dynamically display the resource object associated with the functional control in the business application when the trigger operation for the filter effect switching control meets the operation accumulation condition, or when the duration of browsing media data meets the browsing duration condition.

[0223] The resource data acquisition module 13 is specifically used to respond to triggered operations on resource objects and retrieve the resource data indicated by the resource object in the business application.

[0224] Among them, the resource data associated with the functional controls includes business detail data;

[0225] The resource data acquisition module 13 is specifically used to display a jump prompt message associated with the business link to which the media data belongs in the business application when the trigger operation of the filter effect switching control meets the operation accumulation condition, or when the browsing duration of the media data meets the browsing duration condition.

[0226] The resource data acquisition module 13 is specifically used to display the business details data corresponding to the business link in the business application when the cumulative display time of the jump prompt information reaches the time threshold.

[0227] Optionally, the filter replacement module 14 is used to respond to the trigger operation of the filter effect replacement function in the media data and obtain the updated filter media data corresponding to the trigger operation of the filter effect replacement function.

[0228] The filter replacement module 14 is used to replace the displayed filter media data by updating the filter media data; the area in the original media data covered by the updated filter media data has the updated filter effect.

[0229] Resource mapping module 15 is used to respond to the trigger operation of the mapping function in media data and display S mapping resources corresponding to the mapping function in the business application; S is a positive integer;

[0230] The resource mapping module 15 is used to respond to the selection operation for S texture resources and overlay the selected texture resource onto the media data.

[0231] Data processing module 16 is used to obtain the cumulative number of operations triggered by the filter effect switching control, compare the cumulative number of operations with the cumulative number threshold, and obtain the comparison result.

[0232] The data processing module 16 is used to determine that the triggering operation of the filter effect switching control meets the operation accumulation condition if the comparison result indicates that the cumulative number of operations is greater than or equal to the cumulative number threshold.

[0233] The data processing module 16 is used to determine that the triggering operation for the filter effect switching control does not meet the operation accumulation condition if the comparison result indicates that the cumulative number of operations is less than the cumulative number threshold.

[0234] Data processing module 16 is used to determine that the triggering operation of the filter effect switching control meets the operation accumulation condition if the coverage ratio is greater than or equal to the ratio threshold.

[0235] The data processing module 16 is used to determine that the triggering operation of the filter effect switching control does not meet the operation accumulation condition if the coverage ratio is less than the ratio threshold.

[0236] The specific implementation methods of the media data display module 11, coverage adjustment module 12, resource data acquisition module 13, filter replacement module 14, resource texture module 15, and data processing module 16 can be found in the above description. Figure 2 In the corresponding embodiment, steps S101-S103 and Figure 14 The descriptions of steps S201-S205 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated.

[0237] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0238] Further, please see Figure 19 , Figure 19 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device may be a terminal device or a server. Figure 19 As shown, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. Furthermore, the computer device 1000 may also include a user interface 1003 and at least one communication bus 1002. The communication bus 1002 is used to enable communication between these components. In some embodiments, the user interface 1003 may include a display screen and a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. Optionally, the network interface 1004 may include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 1005 may also be at least one storage device located remotely from the processor 1001. Figure 19 As shown, the memory 1005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application.

[0239] In such Figure 19In the computer device 1000 shown, the network interface 1004 can provide network communication functions; the user interface 1003 is mainly used to provide an input interface for users; and the processor 1001 can be used to call the computer program stored in the memory 1005 to implement the steps in the methods of the various embodiments of this application.

[0240] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figure 2 and Figure 14 The description of the data processing method in the corresponding embodiments can also be performed as described above. Figure 18 The description of the data processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.

[0241] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the aforementioned data processing device 1. When the processor executes the computer program, it can execute the aforementioned... Figure 2 and Figure 14 The description of the data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0242] Furthermore, it should be noted that this application also provides a computer program product, which may include a computer program that can be stored in a computer-readable storage medium. The processor of a computer device reads the computer program from the computer-readable storage medium, and the processor can execute the computer program, causing the computer device to perform the aforementioned... Figure 2 and Figure 14 The description of the data processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer program product embodiments related to this application, please refer to the description of the method embodiments of this application.

[0243] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0244] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A data processing method, characterized in that, include: Responding to trigger operations on functional controls in business applications, displaying media data including filter effect switching controls; In response to a trigger operation on the filter effect switching control, adjust the coverage ratio of the filter media data to the original media data in the media data; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained.

2. The method according to claim 1, characterized in that, The response to the triggering operation of the filter effect switching control adjusts the coverage ratio of the filter media data to the original media data in the media data, including: In response to a sliding operation on the filter effect switching control, the sliding direction of the sliding operation is obtained; If the sliding direction is the first direction, then the coverage ratio of the filter media data in the media data to the original media data in the media data is increased; If the sliding direction is the second direction, then the ratio of the coverage area of ​​the filter media data to the original media data in the media data is reduced.

3. The method according to claim 1, characterized in that, Resource data associated with the functional controls includes filter permissions; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the filter effect redemption control associated with the filter effect redemption function is displayed in the business application. In response to a trigger operation on the filter effect redemption control, the user redeems the filter permission with the filter effect in the business application; the filter permission provides the business object logged into the business application with the first permission to use the filter effect in the business application.

4. The method according to claim 1, characterized in that, Resource data associated with the functional controls includes filter permissions; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the browsing time of the media data meets the browsing time condition, an incentive prompt message is displayed in the business application; the incentive prompt message is used to indicate that the business application has enabled the filter permission; the filter permission provides a second permission for business objects logged into the business application to use the filter effect in the business application.

5. The method according to claim 4, characterized in that, The method further includes: The media data to be switched is displayed in the aforementioned business application; In response to a triggering operation for the filter effect in the business application, if the triggering operation for the filter effect satisfies the permission conditions indicated by the second permission, then the media data to be switched with the filter effect is displayed in the business application.

6. The method according to claim 1, characterized in that, Resource data associated with the functional controls includes voice-over permissions; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the browsing duration of the media data meets the browsing duration condition, the dubbing audio data associated with the media data is fully output in the business application. Obtain the dubbing permission for the dubbing audio data; the dubbing permission refers to the permission of a business object logged into the business application to use the dubbing audio data in the business application.

7. The method according to claim 1, characterized in that, The media data is video data, and the coverage area is used to control the playback speed of the video data; the resource data associated with the functional control includes playback speed permissions; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the browsing duration of the media data meets the browsing duration condition, the video data is displayed in the business application according to the video playback speed indicated by the coverage area. Obtain the playback speed permission for the video playback speed indicated by the coverage area; the playback speed permission refers to the permission of the business object logged into the business application to use the video playback speed indicated by the coverage area in the business application.

8. The method according to claim 1, characterized in that, When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource object associated with the functional control is dynamically displayed in the business application. In response to a triggered operation on the resource object, the resource data indicated by the resource object is retrieved in the business application.

9. The method according to claim 1, characterized in that, The resource data associated with the functional controls includes business detail data; When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition, the resource data associated with the functional control is obtained, including: When the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the browsing time of the media data meets the browsing time condition, a jump prompt message associated with the business link to which the media data belongs is displayed in the business application; When the cumulative display duration of the redirection prompt information reaches a duration threshold, the business details data corresponding to the business link will be displayed in the business application.

10. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation for the filter effect replacement function in the media data, obtain the updated filter media data corresponding to the trigger operation for the filter effect replacement function; The updated filter media data replaces the original filter media data; the area in the original media data covered by the updated filter media data has the updated filter effect.

11. The method according to claim 1, characterized in that, The method further includes: In response to a trigger operation for the sticker function in the media data, S sticker resources corresponding to the sticker function are displayed in the business application; where S is a positive integer. In response to a selection operation on S of the texture resources, the texture resource selected by the selection operation is overlaid and displayed on the media data.

12. The method according to claim 1, characterized in that, The method further includes: Obtain the cumulative number of trigger operations for the filter effect switching control, compare the cumulative number of operations with a cumulative number threshold, and obtain the comparison result; If the comparison result indicates that the cumulative number of operations is greater than or equal to the cumulative number of operations threshold, then it is determined that the triggering operation for the filter effect switching control satisfies the cumulative operation condition. If the comparison result indicates that the cumulative number of operations is less than the cumulative number threshold, then it is determined that the triggering operation for the filter effect switching control does not meet the cumulative operation condition.

13. The method according to claim 1, characterized in that, The method further includes: If the coverage ratio is greater than or equal to the ratio threshold, then the triggering operation for the filter effect switching control is determined to satisfy the operation accumulation condition. If the coverage ratio is less than the ratio threshold, then the triggering operation for the filter effect switching control does not meet the operation accumulation condition.

14. The method according to claim 1, characterized in that, The filtered media data in the media data is displayed on top of the original media data in the media data; the filtered media data includes a mask layer, which is used to crop the filtered media data; The response to the triggering operation of the filter effect switching control adjusts the coverage ratio of the filter media data to the original media data in the media data, including: In response to a trigger operation on the filter effect switching control, the original size of the mask layer is changed through the trigger operation to obtain the changed size of the mask layer; The filter media data is cropped based on the changed size to obtain the first filter media data; the coverage ratio of the first filter media data to the original media data is different from the coverage ratio of the second filter media data to the original media data; the second filter media data is obtained by cropping the filter media data based on the original size.

15. The method according to claim 2, characterized in that, The response to the sliding operation of the filter effect switching control includes obtaining the sliding direction of the sliding operation, including: In response to a sliding operation on the filter effect switching control, obtain the sliding start position and sliding end position corresponding to the sliding operation; The difference between the horizontal coordinate at the start position of the slide and the horizontal coordinate at the end position of the slide is calculated to obtain the horizontal difference value corresponding to the slide operation. If the horizontal difference is less than the difference threshold, then the second direction is determined as the sliding direction of the sliding operation; If the horizontal difference is greater than the difference threshold, then the first direction is determined as the sliding direction of the sliding operation.

16. The method according to claim 15, characterized in that, The response to the sliding operation of the filter effect switching control includes obtaining the start and end positions of the sliding operation, including: In response to a sliding operation on the filter effect switching control, the starting position of the sliding operation is determined as the sliding start position corresponding to the sliding operation; Obtain the sliding speed corresponding to the sliding operation, and determine the sliding offset distance of the sliding operation based on the sliding speed; The sliding end position corresponding to the sliding operation is determined based on the ending position of the sliding operation and the sliding offset distance.

17. A data processing apparatus, characterized in that, include: The media data display module is used to respond to the triggered operations of functional controls in business applications and display media data including filter effect switching controls; The coverage adjustment module is used to respond to the trigger operation of the filter effect switching control and adjust the coverage ratio of the filter media data to the original media data in the media data; The resource data acquisition module is used to acquire resource data associated with the functional control when the triggering operation of the filter effect switching control meets the operation accumulation condition, or when the duration of browsing the media data meets the browsing duration condition.

18. A computer device, characterized in that, include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to invoke the computer program to cause the computer device to perform the method according to any one of claims 1-16.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-16.

20. A computer program product, characterized in that, The computer program product includes a computer program stored in a computer-readable storage medium and adapted to be read and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-16.