A data processing method, device, computer equipment and storage medium
By capturing and analyzing multiple screen touch points in the screen-scraping operation, and dynamically adjusting the sensitivity parameters, the problem of difficulty in setting sensitivity parameters in the prior art is solved, and the accuracy of screen-scraping operation and the display effect of display information are improved.
Patent Information
- Application Number
- CN202110125047.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-29
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2041-01-29
AI Technical Summary
When performing screen-scraping operations, it is difficult to accurately set the sensitivity parameters, resulting in inaccurate steering angles of steering operations and reducing the accuracy of display information.
By capturing multiple screen touch points associated with the target screen operation, a screen trajectory is constructed, and the screen distance and speed are determined based on the trajectory, and the sensitivity parameters are adjusted in real time to adapt to the user's operation intention.
Dynamically adjust the sensitivity parameters, improve the accuracy of screen-scraping operations and the display effect of display information, and avoid angle errors caused by unreasonable artificial settings.
Smart Images

Figure CN113568555B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment and storage medium. Background Art
[0002] In the process of human-computer interaction, the sensitivity parameter is an important indicator to measure the swiping operation performed by the swiping user. When the swiping user performs the swiping operation, the existing swiping solution will indiscriminately use the same sensitivity parameter to control the business objects in the business application to perform the turning operation to obtain the display information after the turn. However, in the process of manually setting the sensitivity parameter, the setting of the sensitivity parameter is often difficult to grasp. Once the sensitivity parameter is set unreasonably (for example, the sensitivity parameter is set too large or too small), it will often cause the steering angle indicated by the steering operation to be too large or too small, thereby reducing the accuracy of the displayed information when performing the swiping operation. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, apparatus, computer device and storage medium, which can improve the accuracy of displayed information when performing a screen swiping operation.
[0004] An embodiment of the present application provides a data processing method, including:
[0005] In response to a target swipe operation on an application display interface of a business application, N screen touch points associated with the target swipe operation are captured, and a trajectory constructed by the N screen touch points is determined as a swipe trajectory corresponding to the target swipe operation; N is a positive integer greater than or equal to 2; a sensitivity parameter of the business application within a unit time length is an initial sensitivity; and the unit time length is determined by capture timestamps of any two adjacent screen touch points among the N screen touch points;
[0006] Determine a swiping distance indicated by a target swiping operation within a unit time based on the swiping trajectory, and determine a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time;
[0007] Obtaining a target frame rate of the service application within a unit time, and determining a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target screen swiping rate, and configuration parameters associated with the service application;
[0008] Based on the scaling parameter, the sensitivity parameter is adjusted from the initial sensitivity to the target sensitivity; the target sensitivity is used to instruct the business application to update the display information of the business object in the application display interface.
[0009] An embodiment of the present application provides a data processing device, including:
[0010] A screen swiping trajectory determination module is used to respond to a target screen swiping operation on an application display interface of a business application, capture N screen touch points associated with the target screen swiping operation, and determine the trajectory constructed by the N screen touch points as the screen swiping trajectory corresponding to the target screen swiping operation; N is a positive integer greater than or equal to 2; the sensitivity parameter of the business application within a unit time length is an initial sensitivity; and the unit time length is determined by the capture timestamps of any two adjacent screen touch points among the N screen touch points;
[0011] A target rate determination module, used to determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping trajectory, and determine the target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time;
[0012] A scaling parameter determination module, used to obtain a target frame rate of the business application within a unit time length, and determine a scaling parameter for adjusting a sensitivity parameter based on the target frame rate, a target screen swiping rate, and configuration parameters associated with the business application;
[0013] The sensitivity adjustment module is used to adjust the sensitivity parameter from the initial sensitivity to the target sensitivity based on the scaling parameter; the target sensitivity is used to instruct the business application to update the display information of the business object in the application display interface.
[0014] The screen swiping trajectory determination module includes:
[0015] The interface output unit is used to respond to the startup operation of the business application and output the application display interface of the business application; the application display interface is used to display the display information of the business objects in the business application;
[0016] A screen swiping instruction generating unit, used to respond to a target screen swiping operation on the application display interface and generate a screen swiping instruction for triggering a program engine in the business application;
[0017] A touch point capture unit, configured to trigger a program engine based on a screen swiping instruction, so that the program engine captures N screen touch points associated with a swiping user; a swiping user is a user who continuously presses a terminal screen corresponding to an application display interface;
[0018] The screen swiping trajectory determining unit is used to determine the trajectory constructed by N screen touch points as the screen swiping trajectory corresponding to the target screen swiping operation.
[0019] Wherein, the touch point capturing unit comprises:
[0020] A pressing duration recording subunit, used to trigger a program engine based on a screen swiping instruction, and record the pressing duration of the terminal screen continuously pressed by the swiping user through the program engine;
[0021] The unit duration determination subunit is used to use the time interval between adjacent capture timestamps of the program engine as the unit duration associated with the business application;
[0022] A touch point capture subunit is used to capture two adjacent screen touch points obtained when the screen is continuously pressed by the user within a unit time length;
[0023] The merging processing subunit is used to merge the captured screen touch points associated with the time mapping relationship based on the time mapping relationship between the pressing time and the unit time, and obtain N screen touch points obtained when the swiping user continuously presses the screen within the pressing time.
[0024] The number of unit durations is k, and k unit durations are used to constitute the pressing duration; k is a positive integer;
[0025] The target rate determination module includes:
[0026] A splitting processing unit, used for splitting the screen swiping track based on the k unit durations of the program engine to obtain k sub-tracks corresponding to the screen swiping track; each sub-track includes starting position information and end position information;
[0027] a screen swiping distance determining unit, configured to determine the number of screen swiping pixels corresponding to each sub-trajectory based on the starting position information of each sub-trajectory and the ending position information of each sub-trajectory, and determine the number of screen swiping pixels corresponding to each sub-trajectory as the screen swiping distance corresponding to each sub-trajectory;
[0028] A swiping rate determining unit, configured to determine a swiping rate corresponding to each sub-track based on a swiping distance corresponding to each sub-track and a unit time length of each sub-track;
[0029] The target rate determination unit is used to determine a target swiping rate corresponding to the swiping distance based on the swiping rate corresponding to each sub-track.
[0030] Among them, k sub-trajectories include sub-trajectory Z i ; i is a positive integer less than or equal to k; sub-trajectory Z i The adjacent capture timestamps within the unit time length include a first capture timestamp and a second capture timestamp; the first capture timestamp is earlier than the second capture timestamp;
[0031] The screen swiping distance determining unit comprises:
[0032] The starting position determination subunit is used to obtain the sub-track Z from each sub-track i , the sub-trajectory Z i The unit duration is taken as the target unit duration, from the sub-trajectory Z iDetermine the first screen position information corresponding to the first capture timestamp of the target unit duration, and use the determined first screen position information as the starting position information corresponding to the first capture timestamp of the target unit duration;
[0033] The end position determination subunit is used to determine the end position of the sub-track Z i Determine the second screen position information corresponding to the second capture timestamp of the target unit duration, and use the determined second screen position information as the end point position information corresponding to the second capture timestamp of the target unit duration;
[0034] The pixel number determination subunit is used to determine the sub-track Z based on the starting position information and the end position information. i The corresponding number of screen pixels, based on sub-track Z i The corresponding number of screen pixels is obtained to obtain the sub-track Z i Corresponding screen swiping distance;
[0035] The swipe distance determination subunit is used to determine the distance based on the sub-track Z i The corresponding screen swiping distance is obtained to obtain the screen swiping distance corresponding to each sub-track.
[0036] The starting position information includes the coordinate value X a and coordinate value Y a ; The end point position information includes the coordinate value X b and coordinate value Y b ; Coordinate value X a With coordinate value X b All belong to the coordinate values in the first direction; coordinate value Y a With coordinate value Y b All belong to the coordinate values in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0037] The pixel number determination subunit is also used for:
[0038] Determine the coordinate value X a With coordinate value X b The first absolute value between , determines the first absolute value as the first screen swipe pixel number in the first direction by the screen swiping user, and takes the first screen swipe pixel number as the sub-trace Z i The corresponding first swipe distance;
[0039] Determine the coordinate value Y a With coordinate value Y b The second absolute value between the second absolute value and the second absolute value is determined as the second screen swiping pixel number in the second direction by the screen swiping user, and the second screen swiping pixel number is used as the sub-trace Z i The corresponding second swipe distance;
[0040] The first swipe distance and the second swipe distance are taken as sub-track Z i The corresponding screen swipe distance.
[0041] Among them, the sub-trajectory Z in each sub-trajectory i The corresponding screen swiping distance includes a first screen swiping distance and a second screen swiping distance;
[0042] The screen swiping rate determining unit includes:
[0043] The first direction speed determination subunit is used to determine the speed of the sub-track Z from the sub-track Z i The first swipe distance is obtained from the corresponding swipe distance, and the first swipe distance is used as the distance of the swiping user in sub-trace Z. i The first swiping direction speed of sliding within a unit time length; the first swiping direction speed is the swiping speed of the swiping user in the first direction;
[0044] The second direction speed determination subunit is used to determine the speed from the sub-track Z i The second swipe distance is obtained from the corresponding swipe distance, and the second swipe distance is used as the distance of the swiping user in the sub-trace Z. i The second swiping direction speed of sliding within a unit time length; the second swiping direction speed is the swiping speed of the swiping user in the second direction;
[0045] The screen swiping speed determination subunit is used to use the first screen swiping direction speed and the second screen swiping direction speed as sub-track Z i The corresponding screen swiping rate, based on sub-track Z i The swiping rate of each sub-track is determined by the swiping rate of the sub-track.
[0046] Wherein, the scaling parameter determination module includes:
[0047] A target frame rate acquisition unit, used to acquire a target frame rate of a business application within a unit time length;
[0048] A scaling rule acquisition unit, used to call a program engine associated with a business application to acquire a sensitivity scaling rule configured for the program engine; the sensitivity scaling rule includes a configuration parameter associated with the business application;
[0049] The scaling parameter determining unit is used to determine the scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target screen swiping rate, the configuration parameters and the sensitivity scaling rule.
[0050] The configuration parameters include a first configuration parameter corresponding to the first variable, a second configuration parameter corresponding to the second variable, and a third configuration parameter corresponding to the third variable; the first configuration parameter is used to characterize the maximum value corresponding to the sensitivity parameter; the second configuration parameter is used to characterize the minimum value corresponding to the sensitivity parameter; the third configuration parameter is used to characterize the growth coefficient associated with the scaling parameter;
[0051] The scaling parameter determination unit comprises:
[0052] A first determination subunit is used to obtain a first swiping direction rate in the target swiping rate, and determine a first scaling parameter for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the first swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the first direction;
[0053] The second determination subunit is used to obtain a second swiping direction rate in the target swiping rate, and determine a second scaling parameter for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the second swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0054] The scaling parameter determination subunit is configured to use the first scaling parameter and the second scaling parameter as scaling parameters for adjusting the sensitivity parameter.
[0055] The device further comprises:
[0056] An initial rule establishing module, used to establish an initial scaling rule for adjusting the sensitivity parameter; the initial scaling rule includes a first variable, a second variable and a third variable;
[0057] A mapping relationship building module, used to obtain a sample screen swiping rate associated with a sample screen swiping operation and a sample frame rate associated with the sample screen swiping rate, and to build a first mapping relationship between the sample screen swiping rate and a scaling parameter based on the sample frame rate, and to build a second mapping relationship between the sample frame rate and the scaling parameter based on the sample screen swiping rate;
[0058] A parameter determination module, configured to determine a maximum value and a minimum value corresponding to the scaling parameter based on the first mapping relationship and the second mapping relationship, and determine a growth coefficient associated with the scaling parameter based on the maximum value and the minimum value;
[0059] A parameter configuration module, used to use the maximum value as a first configuration parameter for configuring the first variable, the minimum value as a second configuration parameter for configuring the second variable, and the growth coefficient as a third configuration parameter for configuring the third variable;
[0060] The scaling rule determination module is used to determine the sensitivity scaling rule based on the first configuration parameter, the second configuration parameter, the third configuration parameter and the initial scaling rule.
[0061] Among them, business applications include game applications; display information of business objects includes a virtual control component corresponding to a camera component in the game application; target sensitivity includes a first target conversion coefficient and a second target conversion coefficient; the first target conversion coefficient is used to adjust the sensitivity of the steering angle indicated in the sensitivity parameter; the second target conversion coefficient is used to adjust the sensitivity of the pitch angle indicated in the sensitivity parameter; the swiping distance includes a first swiping distance and a second swiping distance; the first swiping distance is determined by a swiping user performing a target swiping operation in a first direction associated with the steering angle; the second swiping distance is determined by a swiping user performing a target swiping operation in a second direction associated with the pitch angle; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0062] The device also includes:
[0063] A first angle determination module, configured to determine a first rotation direction corresponding to the camera assembly based on a first swiping distance, and to determine a first angle required for the camera assembly to indicate the virtual control assembly to rotate in the first rotation direction based on the first swiping distance and a first target conversion coefficient;
[0064] A second angle determination module is used to determine a second rotation direction corresponding to the camera assembly based on a second swiping distance, and determine a second angle that the camera assembly indicates the virtual control assembly to rotate in the second rotation direction based on the second swiping distance and a second target conversion coefficient;
[0065] A rotation module, used to rotate the steering angle of the virtual control component by a first angle in a first rotation direction, and to rotate the pitch angle of the virtual control component by a second angle in a second rotation direction;
[0066] The first updating module is used to update the rotated virtual control component to the application display interface to obtain the display information of the updated business object.
[0067] The display information of the business object in the application display interface includes slideable display data; the target sensitivity includes a target movement conversion coefficient; the target movement conversion coefficient is used to adjust the sensitivity of the movement distance indicated in the sensitivity parameter;
[0068] The device also includes:
[0069] A moving direction determination module, used to determine the moving direction corresponding to the slidable display data based on the screen swiping distance;
[0070] A moving distance determination module, used to determine the moving distance required for sliding display data based on the screen swiping distance and the target movement conversion coefficient;
[0071] The second updating module is used to move the slidable display data by a moving distance in a moving direction, and update the moved slidable display data into the application display interface to obtain updated display information of the business object.
[0072] An embodiment of the present application provides a computer device, including: a processor and a memory;
[0073] The processor is connected to the memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.
[0074] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.
[0075] In one aspect, the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in the present application.
[0076] In an embodiment of the present application, when a swiping user performs a target swiping operation on an application display interface of a business application, a computer device running a business application can respond to the target swiping operation, capture N screen touch points associated with the target swiping operation, and obtain a swiping trajectory corresponding to the target swiping operation, and then determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping trajectory. Furthermore, the computer device can monitor the target swiping rate corresponding to the swiping distance and the target frame rate associated with the business application in real time to obtain a scaling parameter that can appropriately scale the sensitivity parameter, and then the sensitivity parameter can be adjusted from the initial sensitivity to the target sensitivity that meets the expected effect of the swiping user through the scaling parameter. The target sensitivity here can be used to update the display information of the business object in the application display interface. During the entire process, the computer device can dynamically adjust the sensitivity parameter corresponding to the target swiping operation without manually setting the sensitivity parameter, thereby improving the accuracy of the displayed information when performing the swiping operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0078] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;
[0079] Figure 2 This is a schematic diagram of a scenario for data interaction provided by an embodiment of the present application;
[0080] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0081] Figure 4 is a schematic diagram of a scenario for determining a swiping rate corresponding to a sub-track provided in an embodiment of the present application;
[0082] Figure 5 is a schematic diagram of a process for determining a scaling parameter provided in an embodiment of the present application;
[0083] Figure 6a is a schematic diagram of a scenario of determining a steering angle provided by an embodiment of the present application;
[0084] Figure 6b It is a schematic diagram of a scenario for determining a steering angle of a pitch angle provided in an embodiment of the present application;
[0085] Figure 7 It is a flowchart of a data processing method provided in an embodiment of the present application;
[0086] Figure 8 is a schematic diagram of a mapping relationship associated with a scaling parameter provided in an embodiment of the present application;
[0087] Fig. 9 is a schematic diagram of a process for determining a steering angle provided in an embodiment of the present application;
[0088] Fig.10 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;
[0089] Fig.11 It is a schematic diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0090] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0091] See also Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a server 10 and a user terminal cluster. The user terminal cluster may include one or more user terminals, and the number of user terminals is not limited here. Figure 1 As shown, it may specifically include user terminal 100a, user terminal 100b, user terminal 100c, ..., user terminal 100n. Figure 1 As shown, user terminal 100a, user terminal 100b, user terminal 100c, ..., user terminal 100n can be respectively connected to the server 10 through a network, so that each user terminal can exchange data with the server 10 through the network connection. The network connection here does not limit the connection method, and can be directly or indirectly connected through a wired communication method, directly or indirectly connected through a wireless communication method, or through other methods, which are not limited in this application.
[0092] Each user terminal in the user terminal cluster may include: a smart phone, a tablet computer, a laptop computer, a desktop computer, a wearable device, a smart home, a head-mounted device, and other smart terminals with data processing functions. Figure 1 Each user terminal in the user terminal cluster shown in FIG. 1 may be installed with a service application (ie, an application client). When the application client runs in each user terminal, it may be respectively connected to the above-mentioned Figure 1 The server 10 shown in the figure performs data interaction. The application client may include a social client, a multimedia client (e.g., a video client), an entertainment client (e.g., a game client), an education client, a live broadcast client, and other clients with data display functions. The business client may be an independent client or an embedded sub-client integrated in a client, which is not limited here.
[0093] like Figure 1As shown, the server 10 in the embodiment of the present application can be a server corresponding to the business application. The server 10 can be an independent physical server, or 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 communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0094] For ease of understanding, the embodiments of the present application can be Figure 1 Select one user terminal from the multiple user terminals shown as the target user terminal. For example, the embodiment of the present application can Figure 1 The user terminal 100a shown is used as a target user terminal, and the business application can be integrated into the target user terminal. The user corresponding to the target user terminal can be a swiping user who performs a swiping operation (for example, a target swiping operation) on the application display interface of the business application. The swiping operation here can refer to a trigger operation of continuously pressing the terminal screen corresponding to the application display interface. At this time, the target user terminal can realize data interaction with the server 10 through the business data platform corresponding to the business application.
[0095] It should be understood that when the swiping user performs a target swiping operation on the application display interface in the business application, the swiping user can trigger the swiping logic associated with the business application. Among them, the swiping logic here can be used to control the display information of the business objects in the business application (for example, the game application) to perform a steering operation. For example, in a game scene, the display information of the business objects included in the application display interface of the game application may include a virtual control component (for example, a game gun) corresponding to the camera component. When the swiping user performs a target swiping operation on the application display interface of the game application, the computer device running the game application (for example, the target user terminal) can control the game gun to rotate to a corresponding angle based on the target swiping operation, so that the swiping user can shoot the enemy in the game.
[0096] Optionally, the swiping logic here can also be used to control the display information of the business object in the business application (e.g., shopping application) to move. For example, in a shopping scenario, the display information of the business object included in the application display interface of the shopping application may include image data of a certain product (e.g., enlarged image data). When the swiping user performs a target swiping operation on the application display interface of the shopping application, the computer device running the shopping application can control the image data to move a corresponding distance based on the target swiping operation, so that the swiping user can view the details of the product.
[0097] Optionally, the swiping logic here can also be used to control the display information of business objects in business applications (for example, reading applications) to perform flipping operations. For example, the display information of business objects included in the application display interface of the reading application may include slidable display data (for example, text data corresponding to an e-book, i.e., slidable text display data). When the swiping user finishes browsing the current chapter of the e-book, the target swiping operation can be performed on the application display interface of the reading application. At this time, the computer device running the reading application can control the text data corresponding to the e-book to flip based on the target swiping operation, so that the swiping user can browse the content of the next chapter. Of course, the swiping logic here can also control the display information of business objects in business applications to perform other corresponding operations, which will not be exemplified one by one here.
[0098] Among them, the sensitivity parameter in the embodiment of the present application refers to the swiping sensitivity corresponding to the swiping operation. For example, in a game scenario, the swiping sensitivity refers to the ratio between the swiping distance indicated by the swiping operation and the rotation angle of the display information of the business object. It can be understood that the sensitivity parameter is an important indicator for measuring the swiping operation. It can be understood that at the same swiping distance, the higher the sensitivity corresponding to the sensitivity parameter, the greater the angle required to rotate the display information corresponding to the business object.
[0099] In order to meet the needs of both precise operation and large-scale operation, when a swiping user performs a target swiping operation on the application display interface of a business application, a computer device running the business application (e.g., a target user terminal) can determine the target swiping rate corresponding to the swiping distance based on the swiping distance indicated by the target swiping operation within a unit time and the unit time, and then can determine the scaling parameter for adjusting the sensitivity parameter based on the target swiping rate, the target frame rate of the business application within a unit time, and the configuration parameters associated with the business application. It is understandable that since the scaling parameter is affected by the target swiping rate and the target frame rate, in actual operation, the computer device can dynamically adjust the sensitivity parameter according to the scaling parameter, and then can achieve the operation effect expected by the intelligently fitting swiping user, so as to improve the accuracy of the displayed information when performing the swiping operation.
[0100] For further understanding, please refer to Figure 2 , Figure 2 Schematic diagram of a scenario for data interaction provided by an embodiment of the present application. Figure 2 As shown, the computer device in the embodiment of the present application may be a user terminal 20W running a business application (e.g., a game application), and the user terminal 20W may be a mobile terminal, which may generally refer to a mobile phone terminal, including but not limited to all handheld portable game devices. The user terminal 20W may be the above Figure 1Any user terminal in the user terminal cluster shown, for example, user terminal 100a.
[0101] It should be understood that in a game scenario, the swiping user (e.g., a game player) can perform a trigger operation (e.g., a start operation) on the game application, so that the user terminal 20W can respond to the start operation and output the application display interface of the game application (e.g., Figure 2 The application display interface 200a shown in the figure). The trigger operation may include non-contact operations such as voice and gestures, and may also include contact operations such as clicks and long presses, which will not be limited here. The application display interface 200a may include display information of business objects in the game application. It is understandable that the embodiment of the present application may refer to the display information in the application display interface 200a as the first display information. For example, the first display information may include a virtual control component (e.g., a game gun) corresponding to the camera component in the game application.
[0102] like Figure 2 As shown, when the screen-swiping user needs to manipulate the game gun in the application display interface 200a to perform a steering operation, the screen-swiping user can perform a screen-swiping operation (i.e., a target screen-swiping operation) on the application display interface 200a. The screen-swiping operation here may refer to continuous pressing of the terminal screen corresponding to the application display interface 200a. At this time, the user terminal 20W can respond to the target screen-swiping operation to capture the N screen touch points associated with the target screen-swiping operation, and then the trajectory constructed by the N screen touch points can be determined as the screen-swiping trajectory corresponding to the target screen-swiping operation. Here, N can be a positive integer greater than or equal to 2. It can be understood that in the application display interface 200a, the embodiment of the present application can refer to the sensitivity parameter of the game application within a unit time length as the initial sensitivity (e.g., 0.7). Among them, it can be understood that the initial sensitivity is 0.7, which means that when the screen-swiping distance determined by the user terminal 20W is 50 pixels, the user terminal 20W can control the virtual control component in the application display interface 200a to rotate 35 degrees in the corresponding rotation direction.
[0103] The unit duration here can be determined by the capture timestamps of any two adjacent screen touch points among the N screen touch points. For example, the embodiment of the present application can use the time interval between adjacent capture timestamps of the program engine in the game application as the unit duration. It is understandable that the time interval between adjacent capture timestamps of the program engine can be updated in real time with the target frame rate of the game application. Among them, the time interval between adjacent capture timestamps of the program engine can be the inverse of the target frame rate. For example, when the target frame rate is 40 frames / second, the time interval between adjacent capture timestamps of the program engine can be 25 milliseconds. This means that when the target frame rate is 40 frames / second, the unit duration can be 25 milliseconds.
[0104] Further, the user terminal 20W can determine the swiping distance indicated by the swiping user performing the target swiping operation within the unit time based on the swiping trajectory. The swiping distance here can be the number of swiping pixels (for example, 50 pixels) slid by the swiping user when performing the target swiping operation on the application display interface 200a. At this time, the user terminal 20W can determine the target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time. The target swiping rate here can refer to the ratio between the number of swiping pixels and the unit time. It can be understood that since the time interval between adjacent capture timestamps of the program engine is very short, which means that the unit time here is very short, the user terminal 20W can also directly use the swiping distance as the target swiping rate corresponding to the swiping distance.
[0105] In addition, when the swiping user performs the target swiping operation, the user terminal 20W can also obtain the target frame rate of the game application within the unit time. It can be understood that the target frame rate here can be the average value of the real-time frame rates of each image frame counted by the game application within the unit time when the swiping user performs the target swiping operation on the terminal screen corresponding to the application display interface 200a, wherein the real-time frame rate of the game application within the unit time may vary to varying degrees due to the network status, for example, the real-time frame rate of the game application within a certain unit time may include real-time frame rate 1 (for example, 38 frames / second), real-time frame rate 2 (40 frames / second), real-time frame rate 3 (42 frames / second) and real-time frame rate 4 (for example, 40 frames / second), at this time, the user terminal 20W can use the average value of these 4 real-time frame rates (for example, 40 frames / second) as the target frame rate of the game application within this unit time. Optionally, the target frame rate here can also be the real-time frame rate of the game application at the first capture timestamp within a unit time length (for example, adjacent capture timestamps) when the screen-swiping user performs the target screen-swiping operation on the terminal screen corresponding to the application display interface 200a. For example, the real-time frame rate of the game application at the first capture timestamp within a certain unit time length is 35 frames / second. At this time, the user terminal 20W can directly use 35 frames / second as the target frame rate within this unit time length. Of course, the target frame rate here can also be determined in other ways, which are not limited here.
[0106] Furthermore, the user terminal 20W can obtain pre-configured sensitivity scaling rules. Among them, the sensitivity scaling rules may include configuration parameters associated with the game application. The configuration parameters here may be configured by the user terminal 20W for the program engine of the game application through a large amount of sample data (for example, sample frame rate and sample swiping rate corresponding to sample swiping operations). At this time, the user terminal 20W can determine the scaling parameter for adjusting the sensitivity parameter based on the target frame rate, target swiping rate and configuration parameters associated with the game application, and then can adjust the sensitivity parameter from the initial sensitivity to the target sensitivity based on the scaling parameter. For example, if the scaling parameter determined by the user terminal 20W is 0.3, the user terminal 20W can adjust the sensitivity parameter from 0.7 to 0.21.
[0107] Furthermore, the user terminal 20W may perform conversion based on the target sensitivity and the swiping distance to obtain a steering angle corresponding to the target swiping operation. For example, if the target sensitivity determined by the user terminal 20W is 0.21, the user terminal may use the product of the swiping distance corresponding to the target swiping operation (e.g., 50 pixels) and the target sensitivity as the steering angle (e.g., 10.5 degrees).
[0108] At this time, the user terminal 20W can update the display information of the business object in the application display interface 200a based on the turning angle, and then output the updated display information to the application display interface of the game application (for example, Figure 2 In other words, the user terminal 20W can rotate the virtual control component (e.g., the game gun) in the application display interface 200a by 10.5 degrees in the corresponding direction indicated by the target screen swiping operation, and output the rotated virtual control component to the application display interface 200b. It can be understood that the embodiment of the present application can refer to the display information in the application display interface 200b as the second display information.
[0109] It can be seen that when the swiping user performs a target swiping operation on the application display interface of a business application, the user terminal 20W in the embodiment of the present application can monitor in real time the target swiping rate and target frame rate corresponding to the swiping distance indicated by the target swiping operation per unit time, and obtain a scaling parameter for appropriately scaling the sensitivity parameter according to the sensitivity scaling rule, and then the sensitivity parameter can be adjusted from the initial sensitivity to the target sensitivity that meets the expected effect of the swiping user through the scaling parameter. The target sensitivity here can reasonably update the display information of the business objects in the application display interface. During the whole process, the user terminal 20W can adaptively adjust the sensitivity parameter corresponding to each swiping operation, without the need for the swiping user to frequently change the setting of the sensitivity parameter through manual experience, thereby improving the accuracy of the displayed information when performing the swiping operation.
[0110] The computer device determines the scaling parameter for adjusting the sensitivity parameter according to the target swiping rate corresponding to the swiping distance indicated by the target swiping operation within the unit time, the target frame rate of the service application within the unit time, and the pre-configured configuration parameters. The specific implementation method for dynamically adjusting the sensitivity parameter can be seen in the following Figure 3-Figure 9 The corresponding embodiment.
[0111] For further information, see Figure 3 , Figure 3 is a flow chart of a data processing method provided in an embodiment of the present application. Figure 3 As shown, the method can be executed by a computer device running a business application, and the computer device can be the above Figure 1 Any user terminal in the user terminal cluster shown, for example, user terminal 100a. The method may at least include the following steps S101-S104:
[0112] Step S101, in response to a target swiping operation on an application display interface of a business application, N screen touch points associated with the target swiping operation are captured, and a track constructed by the N screen touch points is determined as a swiping track corresponding to the target swiping operation.
[0113] Specifically, when the user corresponding to the computer device (i.e., the swiping user) performs a startup operation (e.g., a click operation) on a business application, the computer device can output an application display interface of the business application. The application display interface can be used to display the display information of the business object in the business application. When the swiping user needs to update the display information of the business object, a target swiping operation can be performed on the application display interface so that the computer device can respond to the target swiping operation to generate a swiping instruction for triggering the program engine in the business application. Furthermore, the computer device can trigger the program engine based on the swiping instruction so that the program engine captures N screen touch points associated with the swiping user. Wherein, N here can be a positive integer greater than or equal to 2. At this time, the computer device can determine the trajectory constructed by these N screen touch points as the swiping trajectory corresponding to the target swiping operation.
[0114] It should be understood that the swiping user in the embodiment of the present application can be a user who continuously presses the terminal screen corresponding to the application display interface. When the swiping user performs a target swiping operation on the application display interface in the business application, the swiping user can trigger the swiping logic associated with the business application so that the computer device updates the display information of the business object in the business application based on the target swiping operation. The embodiment of the present application can take a game application as an example to illustrate that the computer device dynamically adjusts the sensitivity parameters based on the target swiping operation to control the display information of the business object to perform a steering operation.
[0115] It is understandable that the computer device can respond to the target screen swiping operation, generate a screen swiping instruction for triggering the program engine (e.g., Unreal Engine) in the business application, and then can trigger the program engine based on the screen swiping instruction, and record the pressing time of the terminal screen continuously pressed by the screen swiping user through the program engine. Further, the computer device can use the time interval between adjacent capture timestamps of the program engine as the unit time associated with the business application. In other words, the unit time here can refer to the interval between two ticks set by the program engine. The unit time can be in milliseconds. The interval here can be updated in real time with the target frame rate of the business application. Among them, the time interval between adjacent capture timestamps of the program engine can be the reciprocal of the target frame rate. Generally, the value range of the target frame rate of the business application can be in the range of 20 (frames / second) to 60 (frames / second), so the value range of the time interval (i.e., unit time) between adjacent capture timestamps of the program engine can be in the range of 16 milliseconds to 50 milliseconds. For example, when the target frame rate is 20 frames per second, the interval time can be 50 milliseconds, which means that the program engine can generate a Tick event at timestamp 1 (i.e., the first capture timestamp), and another Tick event at timestamp 2 (i.e., the second capture timestamp) 50 milliseconds after timestamp 1, that is, the computer device can capture two adjacent screen touch points within 50 milliseconds.
[0116] It should be understood that the computer device can capture two adjacent screen touch points obtained when the swiping user continuously presses within a unit time. At this time, the computer device can merge the captured screen touch points associated with the time mapping relationship based on the time mapping relationship between the pressing time and the unit time, so as to obtain N screen touch points obtained when the swiping user continuously presses within the pressing time. Further, the computer device can determine the trajectory constructed by these N screen touch points as the swiping trajectory corresponding to the target swiping operation.
[0117] For example, the pressing duration recorded by the program engine may be 3 seconds, and the program engine associated with the business application may be 50 milliseconds. Among them, the duration mapping relationship between the pressing duration and the unit duration determined by the computer device may be: the pressing duration is composed of 60 unit durations. At this time, the computer device may merge the captured screen touch points associated with the duration mapping relationship based on the duration mapping relationship to obtain 61 screen touch points obtained when the swiping user continuously presses within the pressing duration. Furthermore, the computer device may determine the trajectory constructed by these 61 screen touch points as the swiping trajectory corresponding to the target swiping operation.
[0118] Step S102: determining a swiping distance indicated by a target swiping operation within a unit time period based on the swiping trajectory, and determining a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time period.
[0119] Among them, the number of unit durations associated with the business application can be k, and the k unit durations can be used to constitute the pressing duration corresponding to the program engine, where k is a positive integer. Specifically, the computer device can split the screen swiping trajectory based on the k unit durations of the program engine to obtain k sub-trajectories corresponding to the screen swiping trajectory. Among them, each sub-trajectory can include starting position information and end position information. Further, the computer device can determine the number of screen swiping pixels corresponding to each sub-trajectory based on the starting position information of each sub-trajectory and the end position information of each sub-trajectory, and then the number of screen swiping pixels corresponding to each sub-trajectory can be determined as the screen swiping distance corresponding to each sub-trajectory. It should be understood that the computer device can determine the screen swiping rate corresponding to each sub-trajectory based on the screen swiping distance corresponding to each sub-trajectory and the unit duration of each sub-trajectory, and determine the target screen swiping rate corresponding to the screen swiping distance based on the screen swiping rate corresponding to each sub-trajectory.
[0120] Among them, the track type of the swiping track corresponding to the target swiping operation performed by the swiping user may be a straight line type, an arc type, an irregular curve type, etc., and the computer device may determine the corresponding target swiping rate for different track types in the same way. It can be understood that if the number of unit durations associated with the business application is 1 (i.e., k=1), it means that the pressing duration corresponding to the swiping track is composed of 1 unit duration. At this time, the computer device can directly determine the swiping distance of the target swiping operation within the unit duration based on the swiping. Optionally, if the number of unit durations associated with the business application is multiple (for example, k=5), it means that the pressing duration corresponding to the swiping track is composed of these 5 unit durations. At this time, since the unit duration is very short, the computer device can split the swiping track based on these 5 unit durations to obtain a combination of many short straight lines (i.e., 5 sub-trajectories), and then determine the swiping rate corresponding to each sub-trajectory based on the swiping distance of the split sub-trajectories and the unit duration of each sub-trajectory.
[0121] It can be understood that the k sub-trajectories obtained after the computer device splits the screen swiping trajectory may include sub-trajectory Z i ; Here i is a positive integer less than or equal to k. It can be understood that the sub-trajectory Z i Adjacent capture timestamps within the unit time length may include a first capture timestamp and a second capture timestamp; the first capture timestamp may be earlier than the second capture timestamp.
[0122] It should be understood that the computer device can obtain the sub-trajectory Z from each sub-trajectory i , and sub-trajectory Z i The unit duration of Z is used as the target unit duration. Further, the computer device can i In the example, the first screen position information corresponding to the first capture timestamp of the target unit duration is determined, and the determined first screen position information can be used as the starting position information corresponding to the first capture timestamp of the target unit duration. i In the example, the second screen position information corresponding to the second capture timestamp of the target unit duration is determined, and then the determined second screen position information can be used as the end position information corresponding to the second capture timestamp of the target unit duration. At this time, the computer device can determine the sub-track Z based on the starting position information and the end position information. i The corresponding number of screen pixels can be based on the sub-track Z i The corresponding number of screen pixels determines the sub-track Z i The corresponding screen swipe distance.
[0123] The starting position information may include the coordinate value X a and coordinate value Y a , the end point position information may include coordinate value X b and coordinate value Y b The coordinate value X a With the coordinate value X b All belong to the coordinate value in the first direction, the coordinate value Y a With the coordinate value Y b The first direction and the second direction may be two directions perpendicular to each other in the application display interface.
[0124] It is understood that the computer device can determine the coordinate value X a With coordinate value X b The first absolute value between , and then the first absolute value can be determined as the first screen swipe pixel number in the first direction by the screen swiping user, and the first screen swipe pixel number is used as the sub-trace Z i At the same time, the computer device can determine the coordinate value Y a With coordinate value Y b The second absolute value between , and then the second absolute value can be determined as the second screen swiping pixel number in the second direction by the screen swiping user, and the second screen swiping pixel number is used as the sub-trace Z i At this time, the computer device can use the first swipe distance and the second swipe distance as sub-track Z i The corresponding screen swipe distance.
[0125] Furthermore, the computer device may determine the swiping rate corresponding to each sub-trace based on the swiping distance corresponding to each sub-trace and the unit time corresponding to each sub-trace. It is understood that the computer device may use the ratio between the swiping distance corresponding to each sub-trace and the unit time corresponding to each sub-trace as the swiping rate corresponding to each sub-trace. For example, sub-trace Z i The corresponding screen swiping distance is 500 pixels, and the sub-track Z i The corresponding unit time length is 50 milliseconds. At this time, the sub-trace Z determined by the computer device is i The corresponding screen swiping rate may be 10 pixels / millisecond.
[0126] Optionally, since the time interval between adjacent capture timestamps of the program engine is very short, which means that the unit time length here is very short, the computer device can directly determine the swiping distance corresponding to each sub-trace as the swiping rate corresponding to each sub-trace. It can be understood that the computer device can obtain the swiping distance from the sub-trace Z. i The first swipe distance is obtained from the corresponding swipe distance, and the first swipe distance can be directly used as the distance of the swiping user in the sub-trace Z i The first swipe direction speed of sliding in a unit time length. The first swipe direction speed may be the swipe speed of the swiping user in the first direction. At the same time, the computer device may i The second swipe distance is obtained from the corresponding swipe distance, and then the second swipe distance can be used as the swipe user in the sub-track Z. i The second swipe direction rate of sliding in a unit time length. The second swipe direction rate may be the swipe speed of the swiping user in the second direction. Further, the computer device may use the first swipe direction rate and the second swipe direction rate as sub-track Z i The corresponding screen swiping rate, and based on the sub-track Z i The swiping rate of each sub-track is determined by the swiping rate of the sub-track.
[0127] For further understanding, please refer to Figure 4 , Figure 4 is a schematic diagram of a scenario for determining a swiping rate corresponding to a sub-track provided in an embodiment of the present application. Figure 4 As shown, the computer device in the embodiment of the present application can run a business application, and the computer device can be the above Figure 1 Any user terminal in the user terminal cluster shown, for example, user terminal 100a.
[0128] It should be understood that the application display interface corresponding to the business application can be as follows: Figure 4In the application display interface 400 shown in FIG. 1 , the swiping user corresponding to the computer device can perform a target swiping operation on the application display interface 400, so that the computer device can determine the target swiping operation based on the target swiping operation. Figure 4 The screen swiping track shown in the figure. The screen swiping track can be constructed by N (for example, 10) screen touch points captured by the computer device. The 10 screen touch points can include screen touch point 1, screen touch point 2, screen touch point 3, screen touch point 4, screen touch point 5, screen touch point 6, screen touch point 7, screen touch point 8, screen touch point 9 and screen touch point 10.
[0129] The number of unit durations in the embodiment of the present application may be k, where k is a positive integer. For ease of explanation, the embodiment of the present application may take 9 unit durations as an example. These 9 unit durations may be used to constitute the pressing duration of the swiping user to perform the target swiping operation. It is understandable that the computer device may, based on these 9 unit durations of the program engine, Figure 4 The screen swiping track shown in FIG. 1 is split to obtain 9 sub-tracks corresponding to the screen swiping track. The 9 sub-tracks may include sub-track Z 1 , sub-trajectory Z 2 , sub-trajectory Z 3 , sub-trajectory Z 4 , sub-trajectory Z 5 , sub-trajectory Z 6 , sub-trajectory Z 7 , sub-trajectory Z 8 and sub-trajectory Z 9 It is understandable that each sub-track may include starting position information and ending position information. 1 For example, the starting position information may be the position information corresponding to the screen touch point 1, and the ending position information may be the position information corresponding to the screen touch point 2. 2 For example, the starting position information may be the position information corresponding to the screen touch point 2, the ending position information may be the position information corresponding to the screen touch point 3, and so on.
[0130] It should be understood that the computer device can determine the number of screen swiping pixels corresponding to each sub-trajectory based on the starting position information of each sub-trajectory and the ending position information of each sub-trajectory, and then determine the number of screen swiping pixels corresponding to each sub-trajectory as the screen swiping distance corresponding to each sub-trajectory.
[0131] like Figure 4As shown, the embodiment of the present application can establish a rectangular coordinate system in the application display interface 400 to facilitate the acquisition of the starting position information and the ending position information of the sub-track. For example, the embodiment of the present application can use the axis of the X direction as the horizontal axis of the rectangular coordinate system, and the axis of the Y direction as the vertical axis of the rectangular coordinate system. Here, the X direction and the Y direction are two directions perpendicular to each other in the application display interface 400. Among them, the embodiment of the present application can use the Z direction of the sub-track as the horizontal axis of the rectangular coordinate system. 4 As an example, it is used to illustrate the specific implementation method of obtaining the screen swiping distance of the sub-track by the computer device.
[0132] like Figure 4 As shown, the computer device can convert the sub-trajectory Z 4 The unit duration of Z is used as the target unit duration. 4 In the example, the first screen position information corresponding to the first capture timestamp of the target unit duration is determined. The first screen position information may be Figure 4 The position information a(X) corresponding to the screen touch point 4 shown a , Y a ), for example, the location information a may be (60, 100). At this time, the computer device may a , Y a ) as the starting position information corresponding to the first capture timestamp of the target unit duration.
[0133] At the same time, the computer device can 4 In the embodiment, the second screen position information corresponding to the second capture timestamp of the target unit duration is determined, wherein the second screen position information may be Figure 4 The position information b(X) corresponding to the screen touch point 5 shown b , Y b ). For example, the location information b may be (80, 60). At this time, the computer device may b , Y b ) as the endpoint position information corresponding to the second capture timestamp of the target unit duration.
[0134] Further, the computer device can determine the coordinate value X a With coordinate value X b The first absolute value between |80-60|=20 is calculated to obtain the first number of pixels swiped in the first direction by the swiping user, and the first number of pixels swiped is used as the sub-trace Z 4 The corresponding first swiping distance (for example, 20 pixels) is obtained. Since the unit time is short, the computer device can directly use the first swiping distance as the distance between the swiping user and the sub-trace Z. 4The first swiping direction speed of sliding within a unit time length (for example, 20 pixels / milliseconds). The first swiping speed here may be the swiping speed of the swiping user in the X direction.
[0135] At the same time, the computer device can determine the coordinate value Y a With coordinate value Y b , to obtain the second screen swiping pixel number in the second direction, and use the second screen swiping pixel number as the sub-trace Z 4 The corresponding second swiping distance (for example, 40 pixels) is obtained. Since the unit time is short, the computer device can directly use the second swiping distance as the distance of the swiping user in sub-trace Z. 4 The second screen swiping direction rate of sliding within a unit time length (for example, 40 pixels / milliseconds). The second screen swiping direction rate here can be the screen swiping rate of the swiping user in the Y direction.
[0136] It is understandable that in the embodiment of the present application, the first screen swiping direction rate (for example, 20 pixels / millisecond) and the second screen swiping direction rate (for example, 40 pixels / millisecond) can be determined as the sub-track Z. 4 By analogy, the embodiment of the present application can also determine the swiping rates corresponding to other sub-trajectories, wherein the specific implementation of the computer device determining the swiping rates corresponding to other sub-trajectories can refer to the above-mentioned computer device determining the sub-trajectory Z 4 The specific implementation method of the corresponding screen swiping rate will not be further described here.
[0137] Step S103 : obtaining a target frame rate of the service application within a unit time length, and determining a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target screen swiping rate, and configuration parameters associated with the service application.
[0138] Specifically, the computer device can obtain the target frame rate of the business application within a unit time, and then call the program engine associated with the business application to obtain the sensitivity scaling rules configured for the program engine. Among them, the sensitivity scaling rules here may include configuration parameters associated with the business application. Further, the computer device can determine the scaling parameters for adjusting the sensitivity parameters based on the target frame rate, the target screen swiping rate, the configuration parameters, and the sensitivity scaling rules.
[0139] It should be understood that the sensitivity scaling rule in the embodiment of the present application can be used to dynamically adjust the size of the sensitivity parameter to improve the accuracy of the target screen swiping operation. The calculation formula of the sensitivity scaling rule can be referred to formula (1):
[0140] Scale = Min(X 1 ,(X 2 +RotSpd*FrameRate / X 3 )), (1)
[0141] Wherein, Scale refers to a scaling parameter used to adjust a sensitivity parameter; RotSpd may refer to a target swiping rate corresponding to a swiping distance indicated by a target swiping operation; FrameRate may refer to a target frame rate of a service application within a unit time; X 1 It may refer to a first configuration parameter (for example, 0.4) corresponding to the first variable, and the first configuration parameter may be used to characterize the maximum value corresponding to the sensitivity parameter; X 2 It may refer to a second configuration parameter (for example, 0.2) corresponding to the second variable, and the second configuration parameter may be used to characterize the minimum value corresponding to the sensitivity parameter; X 3 It may refer to a third configuration parameter (e.g., 75) corresponding to the third variable, which may be used to characterize a growth coefficient associated with a scaling parameter; it is understandable that the first configuration parameter, the second configuration parameter, and the third configuration parameter here may be collectively referred to as configuration parameters associated with a business application. The configuration parameters may be adjusted according to the actual needs of the business application and are not limited here. Among them, the algorithm Min(a, b) may refer to taking the minimum value between a and b.
[0142] For further understanding, please refer to Figure 5 , Figure 5 FIG. 1 is a flow chart of determining a scaling parameter provided by an embodiment of the present application. Figure 5 As shown, the computer device in the embodiment of the present application can run a business application. The computer device in the embodiment of the present application can input the target frame rate, the target swiping rate, and the configuration parameters configured for the program engine of the business application into the pre-configured sensitivity scaling rules to obtain scaling parameters for adjusting the sensitivity parameters. Among them, the target frame rate (for example, 40 frames per second) refers to the real-time frame rate of the business application obtained by the computer device within a unit time length (for example, 25 milliseconds), and the target swiping rate is determined by the swiping distance indicated by the target swiping operation within the unit time length.
[0143] Among them, the target swiping operation corresponding to the target swiping rate may include a first swiping direction rate and a second swiping rate. The first swiping direction rate here may be the swiping rate corresponding to the target swiping operation performed by the swiping user in the first direction. The second swiping direction rate here may be the swiping rate corresponding to the target swiping operation performed by the swiping user in the second direction. Among them, the first direction and the second direction may be two directions perpendicular to each other in the application display interface of the business application.
[0144] It should be understood that the computer device can obtain the first swipe direction rate in the target swipe rate, and then determine the first scaling parameter for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swipe direction rate, the target frame rate, the configuration parameters (including the first configuration parameter, the second configuration parameter, and the third configuration parameter) and the sensitivity scaling rule. 4 The first swiping direction rate of the swiping user in the X direction (ie, the first direction) is obtained from the corresponding swiping speed. The first swiping direction rate can be |X b -X a | (e.g., 20 pixels / milliseconds)). Further, the computer device may determine a first scaling parameter (e.g., 0.211) for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swiping direction rate, the target frame rate (e.g., 40 frames / second), the first configuration parameter (e.g., 0.4), the second configuration parameter (e.g., 0.2), the third configuration parameter (75), and the sensitivity scaling rule shown in the above formula (1).
[0145] Similarly, the computer device can also obtain the second swipe direction rate in the target swipe rate, and then determine the second scaling parameter for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swipe direction rate, the target frame rate, the configuration parameters (including the first configuration parameter, the second configuration parameter and the third configuration parameter) and the sensitivity scaling rule. Figure 4 As shown, the computer device is in sub-trace Z 4 The second swiping direction rate of the swiping user in the Y direction is obtained from the corresponding swiping speed. The second swiping direction rate can be |Y b -Y a | (e.g., 40 pixels / milliseconds)). Further, the computer device may determine a second scaling parameter (e.g., 0.221) for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swiping direction rate, the target frame rate (e.g., 40 frames / second), the first configuration parameter (e.g., 0.4), the second configuration parameter (e.g., 0.2), the third configuration parameter (75), and the sensitivity scaling rule shown in the above formula (1).
[0146] It is understandable that the computer device may refer to both the first scaling parameter and the second scaling parameter as scaling parameters for adjusting the sensitivity parameter. The first scaling parameter and the second scaling parameter are both determined based on the swiping rate in the corresponding swiping direction, the target frame rate per unit time, the configuration parameters, and the sensitivity scaling rule. The first scaling parameter and the second scaling parameter may be the same or different, which is not limited here.
[0147] Step S104: Based on the scaling parameter, the sensitivity parameter is adjusted from the initial sensitivity to the target sensitivity.
[0148] Specifically, the computer device may adjust the sensitivity parameter from the initial sensitivity to the target sensitivity based on the scaling parameter. In other words, the computer device may scale the initial sensitivity based on the scaling parameter, that is, the product of the scaling parameter and the initial sensitivity is used as the target sensitivity. The target sensitivity may be used to instruct the business application to update the display information of the business object in the application display interface.
[0149] It is understandable that the computer device can record the target sensitivity, target swiping rate and target frame rate corresponding to the current target swiping operation as historical record information. When a large amount of historical record information is obtained, the computer device can build a sensitivity query list based on the historical record information, so that when the swiping user subsequently performs a new target swiping operation in the business application, the sensitivity parameters corresponding to the new target swiping operation can be quickly queried from the sensitivity query list without having to input the swiping rate and real-time frame rate corresponding to the new target swiping operation into the sensitivity scaling rule, and then calculate the new target sensitivity corresponding to the new target swiping operation, thereby improving the speed of determining the target sensitivity.
[0150] For ease of understanding, please further refer to Table 1, which is a sensitivity query list provided in an embodiment of the present application.
[0151] Table 1
[0152] Swipe rate Real-time frame rate Sensitivity parameters Rate 1 Frame rate Sensitivity 1a Rate 1 Frame rate Sensitivity 1b Rate 2 Frame rate Sensitivity 2a Rate 2 Frame rate Sensitivity 2b Rate 2 Frame ratec Sensitivity 2c
[0153] Among them, as shown in Table 1, the sensitivity query list may include a screen swiping rate, a real-time frame rate, and a sensitivity parameter. Of course, the sensitivity query list may also include other parameters, which are not limited here. It can be understood that the sensitivity query list may include multiple screen swiping rates and frame rates within multiple unit time lengths. For the sake of ease of explanation, Table 1 in the embodiment of the present application only takes two screen swiping rates as an example, and the sensitivity query list may be updated regularly to supplement the sensitivity parameters under the new screen swiping rate and the new real-time frame rate combination. Among them, rate 1 and rate 2 here can be two screen swiping rates of different sizes, and frame rate a, frame rate b, and frame rate c here are two real-time frame rates of different sizes.
[0154] It is understandable that when a computer device responds to a swiping operation (e.g., swiping operation 1) of a swiping user corresponding to the computer device, the computer device can determine the swiping rate corresponding to the local swiping operation and the frame rate of the business application within this unit time, and then can query the sensitivity query list shown in Table 1 based on the determined swiping rate and frame rate. If the swiping rate corresponding to the current swiping operation (e.g., swiping operation 1) determined by the computer device is rate 1 (e.g., 10 pixels / milliseconds) and the frame rate is frame rate a (e.g., 38 frames / second), the computer device can query the corresponding sensitivity parameter from the sensitivity query list as sensitivity 1a. At this time, the computer device can use sensitivity 1a as the target sensitivity corresponding to executing swiping operation 1.
[0155] Optionally, if the screen swiping rate corresponding to a certain screen swiping operation (e.g., screen swiping operation 2) determined by the computer device is rate 3 (e.g., 30 pixels / milliseconds) and the frame rate is frame rate a (e.g., 38 frames / milliseconds), the computer device may query in the sensitivity query list shown in Table 1 above. It is understandable that the computer device does not find the sensitivity parameter corresponding to the screen swiping operation 2 in the sensitivity query list. At this time, the computer device may determine the scaling parameter corresponding to the screen swiping operation 2 based on rate 3, frame rate a, configuration parameters, and the sensitivity scaling formula shown in formula (1) above, and then determine the target sensitivity corresponding to the screen swiping operation 2 based on the scaling parameter and the initial sensitivity. It is understandable that the computer device may obtain the historical record information corresponding to the screen swiping operation 2, and then update Table 1 above based on the historical record information corresponding to the screen swiping operation 2.
[0156] Furthermore, the computer device can update the display information of the business object in the application display interface based on the target sensitivity. The display information of the updated business object is consistent with the expected sensitivity of the swiping user, and can achieve the effect of intelligently fitting the user's expected operation. Intelligent fitting refers to the process of intelligently judging the sensitivity expected by the swiping user based on the two inputs of the target swiping rate and the target frame rate, and scaling the sensitivity parameters accordingly in real time.
[0157] It is understandable that if the swiping logic triggered by the swiping user performing the target swiping operation can be used to control the display information of the business object in the business application (for example, the virtual control component corresponding to the camera component) to perform a steering operation, then the computer device can perform a proportional conversion on the target sensitivity and the swiping distance corresponding to the target swiping operation, so as to obtain the steering angle required for the virtual control component to rotate. Furthermore, the computer device rotates the virtual control component in the corresponding rotation direction based on the steering angle to update the display information of the business object in the application display interface of the business application.
[0158] For further understanding, please refer to Figure 6a , Figure 6a is a schematic diagram of a scene of determining a steering angle provided by an embodiment of the present application. Figure 6a As shown, the business application in the embodiment of the present application may include a game application, and the display information of the business object may include a virtual control component corresponding to the camera component in the game application.
[0159] It is understandable that when the swiping user performs the target swiping operation, the computer device can determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping track corresponding to the target swiping operation. It is understandable that the swiping distance can be the starting position information (X) included in a sub-track. a , Y a ) and the end point location information (X b , Y b ). The swiping distance may include a first swiping distance. The first swiping distance may be determined by the swiping user in a first direction associated with a steering angle (for example, Figure 4 The target sensitivity determined by the computer device based on the scaling parameter may include a first target conversion coefficient, and the first target conversion coefficient may be used to adjust the sensitivity of the steering angle indicated in the sensitivity parameter.
[0160] Furthermore, the computer device may determine the first rotation direction corresponding to the camera assembly based on the first swiping distance, and further determine the first angle that the camera assembly indicates the virtual control assembly to rotate in the first rotation direction based on the first swiping distance and the first target conversion coefficient. For example, the first angle may be Figure 6a The steering angle shown is 60. At this time, the computer device can rotate the steering angle of the virtual control component by a first angle in a first rotation direction.
[0161] It can be understood that the first swipe distance is determined by the coordinate value X in the starting position information. a The coordinate value X in the end point position information b Determined. If the coordinate value X a Less than coordinate value X b , which means that X b -X a The result is a positive number. At this time, the computer device can determine that the first rotation direction corresponding to the camera assembly is the positive direction corresponding to the X direction, for example, rotating to the right. On the contrary, if the coordinate value X a Greater than coordinate value X b , which means that X b -Xa The result is a negative number. At this time, the computer device can determine that the first rotation direction corresponding to the camera assembly is the opposite direction of the X direction, for example, rotating to the left. If the first target conversion coefficient determined by the computer device is 0.28, the first angle determined by the computer device can be the product of the first screen swiping distance (for example, 50 pixels) and the first target conversion coefficient (for example, 0.28), that is, the first angle can be 14 degrees. In other words, if the coordinate value X a Less than coordinate value X b , then the computer device can rotate the virtual control component corresponding to the camera component 14 degrees to the right. a Greater than coordinate value X b , the computer device can rotate the virtual control component corresponding to the camera component 14 degrees to the left.
[0162] For further information, see Figure 6b , Figure 6b Schematic diagram of a scene for determining a steering angle of a pitch angle provided by an embodiment of the present application. Figure 6b As shown, the business application in the embodiment of the present application may include a game application, and the display information of the business object may include a virtual control component corresponding to the camera component in the game application.
[0163] It is understandable that the swiping distance corresponding to the target swiping operation may be the starting position information (X a , Y a ) and the end point location information (X b , Y b The swiping distance may include a second swiping distance. The second swiping distance may be determined by the swiping user in a second direction associated with the pitch angle (for example, Figure 4 The target sensitivity determined by the computer device based on the zoom parameter may include a second target conversion coefficient, and the second target conversion coefficient may be used to adjust the sensitivity of the pitch angle indicated in the sensitivity parameter.
[0164] It should be understood that the computer device can determine the second rotation direction corresponding to the camera component based on the second swiping distance, and determine the second angle that the camera component indicates the virtual control component to rotate in the second rotation direction based on the second swiping distance and the second target conversion coefficient. For example, the second angle can be Figure 6b The pitch angle shown is 61. At this time, the computer device can rotate the steering angle of the virtual control component by a second angle in the second rotation direction.
[0165] It can be understood that the second swiping distance is determined by the coordinate value Y in the starting position information. a The coordinate value Y in the end point position information b Determined. If the coordinate value Y a Less than coordinate value Y b , which means that Y b -Y a The result is a positive number. At this time, the computer device can determine that the second rotation direction corresponding to the camera assembly is the positive direction corresponding to the Y direction, for example, upward rotation. On the contrary, if the coordinate value Y a Greater than coordinate value Y b , which means that Y b -Y a The result is a negative number. At this time, the computer device can determine that the second rotation direction corresponding to the camera assembly is the opposite direction of the Y direction, for example, downward rotation. If the second target conversion coefficient determined by the computer device is 0.3, the second angle determined by the computer device can be the product of the second screen swiping distance (for example, 60 pixels) and the second target conversion coefficient (for example, 0.3), that is, the second angle can be 18 degrees. In other words, if the coordinate value Y a Less than coordinate value Y b , the computer device can rotate the virtual control component corresponding to the camera component upward by 18 degrees. a Greater than coordinate value Y b , the computer device can rotate the virtual control component corresponding to the camera component downward by 18 degrees.
[0166] Optionally, if the swiping logic triggered by the swiping user performing the target swiping operation can be used to control the display information of the business object in the business application (for example, swipable display data) to perform movement operations such as flipping or turning pages, then the computer device can proportionally convert the target sensitivity and the swiping distance corresponding to the target swiping operation, so as to obtain the movement distance associated with the business object. The swipable display data here may include swipable text display data (for example, text data corresponding to an e-book in a reading application), swipable image display data (for example, image data that has been magnified), or swipable list display data (for example, contact list data in a social application), etc.
[0167] It is understandable that when the swiping user performs a target swiping operation, the computer device can determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping track corresponding to the target swiping operation, and further determine the moving direction corresponding to the swipable display data based on the swiping distance. The swiping distance can be the starting position information (X a , Y a) and the end point location information (X b , Y b ) determined by.
[0168] Wherein, if the swiping distance is the number of swiping pixels slid in a first direction (e.g., X direction), the moving direction determined by the computer device may be the positive direction or the negative direction in the X direction. Optionally, if the swiping distance is the number of swiping pixels slid in a second direction (e.g., Y direction), the moving direction determined by the computer device may be the positive direction or the negative direction in the Y direction. Optionally, if the swiping distance is the number of swiping pixels synthesized from the sub-distance in the first direction and the swiping distance in the second direction, the moving direction determined by the computer device may also be the synthesized direction of the first direction and the second direction.
[0169] Furthermore, the computer device may determine the moving distance that the slidable display data needs to move based on the swiping distance and the target movement conversion coefficient included in the target sensitivity. The target movement conversion coefficient here can be used to adjust the sensitivity of the moving distance indicated in the sensitivity parameter. At this time, the computer device may move the slidable display data in the moving direction by the determined moving distance, and then update the moved slidable display data to the application display interface to obtain the display information of the updated business object.
[0170] In an embodiment of the present application, when a swiping user performs a target swiping operation on an application display interface of a business application, a computer device running a business application can respond to the target swiping operation and capture N screen touch points associated with the target swiping operation to obtain a swiping trajectory corresponding to the target swiping operation, and then determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping trajectory. Furthermore, the computer device can monitor the target swiping rate corresponding to the swiping distance and the target frame rate associated with the business application in real time to obtain a scaling parameter that can appropriately scale the sensitivity parameter, and then the sensitivity parameter can be adjusted from the initial sensitivity to a target sensitivity that meets the expected effect of the swiping user through the scaling parameter. The target sensitivity here can be used to update the display information of the business object in the application display interface. During the entire process, the computer device can dynamically adjust the sensitivity parameter corresponding to the target swiping operation without manually setting the sensitivity parameter, thereby improving the accuracy of the displayed information when performing a swiping operation.
[0171] For further information, see Figure 7 , Figure 7 is a flow chart of a data processing method provided in an embodiment of the present application. Figure 7 As shown, the method can be executed by a computer device running a business application, and the computer device can be the above Figure 1 Any user terminal in the user terminal cluster shown, for example, user terminal 100a. The method may at least include the following steps S201-S209:
[0172] Step S201, in response to a target swiping operation on an application display interface of a business application, capturing N screen touch points associated with the target swiping operation, and determining a track constructed by the N screen touch points as a swiping track corresponding to the target swiping operation;
[0173] Step S202, determining a swiping distance indicated by a target swiping operation within a unit time based on the swiping trajectory, and determining a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time;
[0174] Step S203, obtaining a target frame rate of the service application within a unit time length, and determining a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target screen swiping rate, and configuration parameters associated with the service application;
[0175] Step S204, adjusting the sensitivity parameter from the initial sensitivity to the target sensitivity based on the scaling parameter;
[0176] The specific implementation of steps S201 to S204 can be found in the above Figure 3 The description of step S101 to step S104 in the corresponding embodiment will not be repeated here. It can be understood that the sensitivity scaling formula for determining the scaling parameter by the computer device can refer to the description of step S205 to step S209 below.
[0177] Step S205, establishing an initial scaling rule for adjusting the sensitivity parameter;
[0178] Specifically, through research and testing, the embodiments of the present application can establish an initial scaling rule for adjusting the sensitivity parameter. It can be understood that the initial scaling rule here can be related to the swiping rate corresponding to the swiping operation and the real-time frame rate.
[0179] Step S206, obtain the sample screen swiping rate associated with the sample screen swiping operation and the sample frame rate associated with the sample screen swiping rate, and based on the sample frame rate, construct a first mapping relationship between the sample screen swiping rate and the scaling parameter, and based on the sample screen swiping rate, construct a second mapping relationship between the sample frame rate and the scaling parameter.
[0180] Specifically, the computer device can obtain a sample swiping rate associated with the sample swiping operation and a sample frame rate associated with the sample swiping rate through a large amount of debugging. Further, the computer device can construct a first mapping relationship between the sample swiping rate and the scaling parameter value based on the sample frame rate. At the same time, the computer device can also construct a second mapping relationship between the sample frame rate and the scaling parameter based on the sample swiping rate.
[0181] Step S207, determining a maximum value and a minimum value corresponding to the scaling parameter based on the first mapping relationship and the second mapping relationship, and determining a growth coefficient associated with the scaling parameter based on the maximum value and the minimum value;
[0182] Step S208, using the maximum value as a first configuration parameter for configuring the first variable, using the minimum value as a second configuration parameter for configuring the second variable, and using the growth coefficient as a third configuration parameter for configuring the third variable;
[0183] Step S209: determining a sensitivity scaling rule based on the first configuration parameter, the second configuration parameter, the third configuration parameter and the initial scaling rule.
[0184] For further understanding, please see Figure 8 , Figure 8 is a schematic diagram of a mapping relationship associated with a scaling parameter provided in an embodiment of the present application. Figure 8 As shown, the mapping relationship diagram associated with the scaling parameters fitted by the computer device in the embodiment of the present application may include a first mapping relationship diagram and a second mapping relationship diagram.
[0185] It should be understood that Figure 8 The first mapping relationship diagram shown can be based on the sample frame rate to construct a mapping relationship between the sample swipe rate and the scaling parameter. Figure 8 From the first mapping relationship diagram shown, we can know that: in the case of a fixed sample frame rate, if the sample swipe rate does not reach the rate threshold, the scaling parameter can increase significantly with the increase of the sample swipe rate; if the sample swipe rate reaches the rate threshold, the scaling parameter tends to remain unchanged with the increase of the sample swipe rate. In other words, after the sample swipe rate reaches the rate threshold, the size of the scaling parameter will not be significantly changed. The rate threshold here can be Figure 8 As shown in (X 1 -X 2 )*X 3 / sample frame rate.
[0186] also, Figure 8The second mapping relationship diagram shown can be based on the sample screen swiping rate to construct a mapping relationship between the sample frame rate and the scaling parameter. When the sample screen swiping rate is fixed, if the sample frame rate does not reach the frame rate threshold, the scaling parameter will increase significantly with the increase of the sample frame rate. If the sample frame rate reaches the frame rate threshold, the scaling parameter will tend to remain unchanged with the increase of the sample frame rate. In other words, after the sample frame rate reaches the frame rate threshold, the scaling parameter will not be significantly changed. In other words, after the sample frame rate reaches the frame rate threshold, the scaling parameter will not be significantly changed. The frame rate threshold here can be Figure 8 As shown in (X 1 -X 2 )*X 3 / Sample swipe rate.
[0187] It should be understood that the initial scaling rule established in the embodiment of the present application can be as shown in the above formula (1), that is, the growth part can adopt a linear relationship. Of course, the initial scaling rule established in the embodiment of the present application can also include other forms, for example, the growth part adopts a nonlinear relationship, etc., which is not limited here. The initial scaling rule in the embodiment of the present application can take formula (1) as an example to illustrate the specific implementation method of the computer device determining the configuration parameters, that is, Scale = Min (X 1 ,(X 2 +RotSpd*FrameRate / X 3 )).
[0188] It is understandable that the embodiment of the present application can find the most suitable configuration parameters after repeated debugging and testing and configure them in the program engine of the business application. 1 (that is, the first configuration parameter corresponding to the first variable) may be the upper limit of the result corresponding to the above formula, which means maximizing the degree to which the swiping user performs the swiping operation. When configuring the first variable, the sample swiping operation may refer to sliding the terminal screen at a faster speed (that is, the sample swiping rate) on a real machine. At this time, the computer device may determine the sample swiping rate, the sample frame rate, and the steering effect of the business object (for example, the camera component, that is, the camera). After continuous debugging, the computer device may obtain the maximum value corresponding to the scaling parameter (for example, 0.4), and then may use 0.4 as the first configuration parameter for configuring the first variable.
[0189] Among them, X 2(that is, the second configuration parameter corresponding to the second variable) can be the lower limit of the result corresponding to the above formula, which means minimizing the degree to which the swiping user performs the swiping operation. When configuring the second variable, the sample swiping operation may refer to sliding the terminal screen at an extremely slow speed (that is, the sample swiping rate) on a real machine. At this time, the computer device can determine the sample swiping rate, the sample frame rate, and the steering effect of the business object (for example, the camera component, that is, the camera). After continuous debugging, the computer device can obtain the minimum value corresponding to the scaling parameter (for example, 0.2), and then 0.2 can be used as the second configuration parameter for configuring the second variable.
[0190] Among them, X 3 (ie, the third configuration parameter corresponding to the third variable) may refer to the slope of the growth portion in the first mapping relationship diagram or the second mapping relationship diagram. 3 It can be used to control the growth coefficient (i.e., growth rate) of the scaling parameter as the sample swipe rate or sample frame rate increases. The third configuration parameter corresponding to the third variable needs to be adjusted after the first configuration parameter and the second configuration parameter are determined, otherwise it will be affected by the constant changes of these two variables. After debugging, the third configuration parameter can be set to 75 as the third configuration parameter corresponding to the third variable.
[0191] Further, the computer device may perform parameter configuration based on a maximum value (e.g., 0.4), a minimum value (e.g., 0.2), and a growth factor (e.g., 75) to obtain a sensitivity scaling formula. The sensitivity scaling formula may be Scale=Min(0.4, (0.2+RotSpd*FrameRate / 75)).
[0192] For further information, see Fig. 9 , Fig. 9 It is a flow chart of determining a steering angle provided by an embodiment of the present application. It is understandable that the computer device in the embodiment of the present application can run a business application, and the swiping logic triggered by executing a target swiping operation on the application display interface of the business application can control the display information of the business object in the business application (for example, a game application) to perform a steering operation.
[0193] like Fig. 9As shown, when the swiping user performs a target swiping operation on the display interface of the business application, the computer device can execute step S91 to respond to the target swiping operation. Further, the computer device can execute step S92 to determine the swiping distance indicated by the target swiping operation within the unit time length based on the swiping track corresponding to the target swiping operation to obtain the swiping rate corresponding to the target swiping operation. It should be understood that the computer device can also obtain the target frame rate of the business application within the unit time length, and then execute step S93 to input the target frame rate and the target swiping rate into the pre-configured sensitivity scaling formula to obtain the scaling parameter for adjusting the sensitivity parameter. Further, the computer device can execute step S94 to scale the sensitivity parameter based on the scaling parameter and adjust the initial sensitivity to the target sensitivity. At this time, the computer device can execute step S95 to determine the steering angle required for the business object to rotate based on the target sensitivity and the swiping distance within the unit time length, and then execute step S96 to update the display information of the business object in the application display interface based on the steering angle.
[0194] In an embodiment of the present application, a computer device running a business application can obtain a large number of sample swipe rates and sample frame rates after repeated debugging to configure a sensitivity scaling rule that can dynamically adjust the size of the sensitivity parameter. When the swiping user performs a target swiping operation, the computer device can monitor in real time the target swiping rate corresponding to the swiping distance indicated by the target swiping operation within a unit time length, as well as the target frame rate of the business application within a unit time length, and then appropriately scale the sensitivity parameter through the sensitivity scaling formula. In other words, the computer device can judge the operation trend of the swiping user based on the operation input of the swiping user, and can also combine the influence of the frame rate at each moment to finally obtain the corresponding scaling parameter to adjust the sensitivity parameter to meet the expected effect of the swiping user. When the target swiping rate of the swiping user performing the target swiping operation is too large, that is, when the target swiping operation is performed at a faster speed, the computer device can judge that the swiping user tends to make a large-scale emergency turn, so the sensitivity parameter will be slightly enlarged; vice versa. In addition, when the target frame rate of the business application obtained by the computer device within a unit time is a low frame rate, the computer device can appropriately reduce the sensitivity parameter to compensate for the exaggerated target swipe operation performed by the swiping user when the swiping user mistakenly believes that the sensitivity parameter is too low, and vice versa. During the entire application operation, the swiping user does not need to constantly change the sensitivity parameter setting. Instead, the sensitivity parameter is dynamically adjusted each time the swiping user performs a swipe operation, or each small segment of a swipe operation, to improve the accuracy of displayed information when the swipe operation is performed.
[0195] For further information, see Fig.10 , Fig.10Schematic diagram of a data processing device provided in an embodiment of the present application. Fig.10 As shown, the data processing device 1 may be a computer program (including program code) running in a computer device, for example, the data processing device 1 is an application software; the data processing device 1 may be used to execute the corresponding steps of the method provided in the embodiment of the present application. Fig.10 As shown, the data processing device 1 can be run on a computer device installed with a business application. The data processing device 1 may include: a screen swiping trajectory determination module 11, a target rate determination module 12, a zoom parameter determination module 13, a sensitivity adjustment module 14, an initial rule establishment module 15, a mapping relationship construction module 16, a parameter determination module 17, a parameter configuration module 18, a zoom rule determination module 19, a first angle determination module 20, a second angle determination module 21, a rotation module 22, a first update module 23, a moving direction determination module 24, a moving distance determination module 25 and a second update module 26.
[0196] The screen swiping trajectory determination module 11 is used to respond to a target swiping operation on an application display interface of a business application, capture N screen touch points associated with the target swiping operation, and determine the trajectory constructed by the N screen touch points as the swiping trajectory corresponding to the target swiping operation; N is a positive integer greater than or equal to 2; the sensitivity parameter of the business application within a unit time length is the initial sensitivity; and the unit time length is determined by the capture timestamps of any two adjacent screen touch points among the N screen touch points.
[0197] The screen swiping trajectory determination module 11 includes: an interface output unit 111 , a screen swiping instruction generation unit 112 , a touch point capture unit 113 and a screen swiping trajectory determination unit 114 .
[0198] The interface output unit 111 is used to respond to the start operation of the business application and output the application display interface of the business application; the application display interface is used to display the display information of the business object in the business application;
[0199] The swipe instruction generating unit 112 is used to generate a swipe instruction for triggering a program engine in a business application in response to a target swipe operation on an application display interface;
[0200] The touch point capture unit 113 is used to trigger the program engine based on the screen swiping instruction, so that the program engine captures N screen touch points associated with the screen swiping user; the screen swiping user is a user who continuously presses the terminal screen corresponding to the application display interface.
[0201] The touch point capturing unit 113 includes: a pressing duration recording subunit 1131 , a unit duration determining subunit 1132 , a touch point capturing subunit 1133 and a merging processing subunit 1134 .
[0202] The pressing duration recording subunit 1131 is used to trigger the program engine based on the screen swiping instruction, and record the pressing duration of the terminal screen continuously pressed by the swiping user through the program engine;
[0203] The unit duration determination subunit 1132 is used to use the time interval between adjacent capture timestamps of the program engine as the unit duration associated with the business application;
[0204] The touch point capture subunit 1133 is used to capture two adjacent screen touch points obtained when the screen is continuously pressed by the user within a unit time length;
[0205] The merging processing sub-unit 1134 is used to merge the captured screen touch points associated with the time mapping relationship based on the time mapping relationship between the pressing time and the unit time, and obtain N screen touch points obtained when the swiping user continuously presses the screen within the pressing time.
[0206] The specific implementation of the pressing duration recording subunit 1131, the unit duration determining subunit 1132, the touch point capturing subunit 1133 and the merging processing subunit 1134 can be found in the above Figure 4 The description of the screen touch points in the corresponding embodiment will not be repeated here.
[0207] The screen swiping trajectory determining unit 114 is used to determine the trajectory constructed by the N screen touch points as the screen swiping trajectory corresponding to the target screen swiping operation.
[0208] The specific implementation of the interface output unit 111, the screen swiping instruction generating unit 112, the touch point capturing unit 113 and the screen swiping trajectory determining unit 114 can be referred to in the above Figure 3 The description of step S101 in the corresponding embodiment will not be repeated here.
[0209] The target rate determination module 12 is used to determine the swiping distance indicated by the target swiping operation within a unit time based on the swiping trajectory, and determine the target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time.
[0210] The number of unit durations is k, and k unit durations are used to constitute the pressing duration; k is a positive integer;
[0211] The target rate determination module 12 includes: a splitting processing unit 121 , a swiping distance determination unit 122 , a swiping rate determination unit 123 and a target rate determination unit 124 .
[0212] The splitting processing unit 121 is used to split the screen swiping track based on the k unit durations of the program engine to obtain k sub-tracks corresponding to the screen swiping track; each sub-track includes starting position information and end position information;
[0213] The swiping distance determining unit 122 is used to determine the number of swiping pixels corresponding to each sub-trajectory based on the starting position information of each sub-trajectory and the ending position information of each sub-trajectory, and determine the number of swiping pixels corresponding to each sub-trajectory as the swiping distance corresponding to each sub-trajectory.
[0214] Among them, k sub-trajectories include sub-trajectory Z i ; i is a positive integer less than or equal to k; sub-trajectory Z i The adjacent capture timestamps within the unit time length include a first capture timestamp and a second capture timestamp; the first capture timestamp is earlier than the second capture timestamp;
[0215] The swiping distance determining unit 122 includes: a starting position determining subunit 1221 , an end position determining subunit 1222 , a pixel number determining subunit 1223 and a swiping distance determining subunit 1224 .
[0216] The starting position determination subunit 1221 is used to obtain the sub-track Z from each sub-track. i , the sub-trajectory Z i The unit duration is taken as the target unit duration, from the sub-trajectory Z i Determine the first screen position information corresponding to the first capture timestamp of the target unit duration, and use the determined first screen position information as the starting position information corresponding to the first capture timestamp of the target unit duration;
[0217] The end position determination subunit 1222 is used to determine the end position from the sub-track Z i Determine the second screen position information corresponding to the second capture timestamp of the target unit duration, and use the determined second screen position information as the end point position information corresponding to the second capture timestamp of the target unit duration;
[0218] The pixel number determination subunit 1223 is used to determine the sub-track Z based on the starting position information and the end position information. i The corresponding number of screen pixels, based on sub-track Z i The corresponding number of screen pixels is obtained to obtain the sub-track Z i The corresponding screen swipe distance.
[0219] The starting position information includes the coordinate value X a and coordinate value Y a ; The end point position information includes the coordinate value X b and coordinate value Y b ; Coordinate value X a With coordinate value X b All belong to the coordinate values in the first direction; coordinate value Y a With coordinate value Y b All belong to the coordinate values in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0220] The pixel number determination subunit 1223 is also used for:
[0221] Determine the coordinate value X a With coordinate value X b The first absolute value between , determines the first absolute value as the first screen swipe pixel number in the first direction by the screen swiping user, and takes the first screen swipe pixel number as the sub-trace Z i The corresponding first swipe distance;
[0222] Determine the coordinate value Y a With coordinate value Y b The second absolute value between the second absolute value and the second absolute value is determined as the second screen swiping pixel number in the second direction by the screen swiping user, and the second screen swiping pixel number is used as the sub-trace Z i The corresponding second swipe distance;
[0223] The first swipe distance and the second swipe distance are taken as sub-track Z i The corresponding screen swipe distance.
[0224] The screen swiping distance determination subunit 1224 is used to determine the distance based on the sub-track Z i The corresponding screen swiping distance is obtained to obtain the screen swiping distance corresponding to each sub-track.
[0225] The specific implementation of the start position determination subunit 1221, the end position determination subunit 1222, the pixel number determination subunit 1223 and the screen swiping distance determination subunit 1224 can be referred to in the above Figure 4 The description of the swiping distance in the corresponding embodiment will not be repeated here.
[0226] The swiping rate determining unit 123 is configured to determine a swiping rate corresponding to each sub-trace based on a swiping distance corresponding to each sub-trace and a unit time length of each sub-trace.
[0227] Among them, the sub-trajectory Z in each sub-trajectory i The corresponding screen swiping distance includes a first screen swiping distance and a second screen swiping distance;
[0228] The screen swiping rate determining unit 123 includes: a first direction rate determining subunit 1231 , a second direction rate determining subunit 1232 and a screen swiping rate determining subunit 1233 .
[0229] The first direction speed determination subunit 1231 is used to determine the speed of the sub-trajectory Z from i The first swipe distance is obtained from the corresponding swipe distance, and the first swipe distance is used as the distance of the swiping user in sub-trace Z. i The first swiping direction speed of sliding within a unit time length; the first swiping direction speed is the swiping speed of the swiping user in the first direction;
[0230] The second direction speed determination subunit 1232 is used to determine the speed of the sub-trajectory Z from the sub-trajectory Z i The second swipe distance is obtained from the corresponding swipe distance, and the second swipe distance is used as the distance of the swiping user in the sub-trace Z. i The second swiping direction speed of sliding within a unit time length; the second swiping direction speed is the swiping speed of the swiping user in the second direction;
[0231] The screen swiping speed determination subunit 1233 is used to use the first screen swiping direction speed and the second screen swiping direction speed as the sub-track Z i The corresponding screen swiping rate, based on sub-track Z i The swiping rate of each sub-track is determined by the swiping rate of the sub-track.
[0232] The specific implementation of the first direction rate determination subunit 1231, the second direction rate determination subunit 1232 and the screen swiping rate determination subunit 1233 can be referred to above. Figure 3 The description of the screen swiping rate in the corresponding embodiment will not be repeated here.
[0233] The target rate determination unit 124 is configured to determine a target swiping rate corresponding to the swiping distance based on the swiping rate corresponding to each sub-trace.
[0234] The specific implementation of the split processing unit 121, the swiping distance determining unit 122, the swiping rate determining unit 123 and the target rate determining unit 124 can be referred to above. Figure 3 The description of step S102 in the corresponding embodiment will not be repeated here.
[0235] The scaling parameter determination module 13 is used to obtain a target frame rate of the business application within a unit time length, and determine a scaling parameter for adjusting a sensitivity parameter based on the target frame rate, a target screen swiping rate, and configuration parameters associated with the business application.
[0236] The scaling parameter determination module 13 includes: a target frame rate acquisition unit 131 , a scaling rule acquisition unit 132 and a scaling parameter determination unit 133 .
[0237] The target frame rate acquisition unit 131 is used to acquire the target frame rate of the service application within a unit time length;
[0238] The scaling rule acquisition unit 132 is used to call a program engine associated with a business application to acquire a sensitivity scaling rule configured for the program engine; the sensitivity scaling rule includes a configuration parameter associated with the business application;
[0239] The scaling parameter determining unit 133 is used to determine a scaling parameter for adjusting a sensitivity parameter based on a target frame rate, a target screen swiping rate, configuration parameters, and a sensitivity scaling rule.
[0240] The configuration parameters include a first configuration parameter corresponding to the first variable, a second configuration parameter corresponding to the second variable, and a third configuration parameter corresponding to the third variable; the first configuration parameter is used to characterize the maximum value corresponding to the sensitivity parameter; the second configuration parameter is used to characterize the minimum value corresponding to the sensitivity parameter; the third configuration parameter is used to characterize the growth coefficient associated with the scaling parameter;
[0241] The scaling parameter determining unit 133 includes: a first determining subunit 1331 , a second determining subunit 1332 and a scaling parameter determining subunit 1333 .
[0242] The first determining subunit 1331 is used to obtain a first swiping direction rate in the target swiping rate, and determine a first scaling parameter for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the first swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the first direction;
[0243] The second determining subunit 1332 is used to obtain a second swiping direction rate in the target swiping rate, and determine a second scaling parameter for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the second swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0244] The scaling parameter determining subunit 1333 is configured to use the first scaling parameter and the second scaling parameter as scaling parameters for adjusting the sensitivity parameter.
[0245] The specific implementation of the first determination subunit 1331, the second determination subunit 1332 and the scaling parameter determination subunit 1333 can be found in the above Figure 5 The description of the scaling parameters in the corresponding embodiment will not be repeated here.
[0246] The specific implementation of the target frame rate acquisition unit 131, the scaling rule acquisition unit 132 and the scaling parameter determination unit 133 can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.
[0247] The sensitivity adjustment module 14 is used to adjust the sensitivity parameter from the initial sensitivity to the target sensitivity based on the scaling parameter; the target sensitivity is used to instruct the business application to update the display information of the business object in the application display interface.
[0248] The initial rule establishing module 15 is used to establish an initial scaling rule for adjusting the sensitivity parameter; the initial scaling rule includes a first variable, a second variable and a third variable;
[0249] The mapping relationship building module 16 is used to obtain a sample swiping rate associated with the sample swiping operation and a sample frame rate associated with the sample swiping rate, and to build a first mapping relationship between the sample frame rate and the scaling parameter based on the sample swiping rate and to build a second mapping relationship between the sample swiping rate and the scaling parameter based on the sample frame rate;
[0250] The parameter determination module 17 is used to determine the maximum value and the minimum value corresponding to the scaling parameter based on the first mapping relationship and the second mapping relationship, and determine the growth coefficient associated with the scaling parameter based on the maximum value and the minimum value;
[0251] The parameter configuration module 18 is used to use the maximum value as a first configuration parameter for configuring the first variable, the minimum value as a second configuration parameter for configuring the second variable, and the growth coefficient as a third configuration parameter for configuring the third variable;
[0252] The scaling rule determination module 19 is used to determine a sensitivity scaling rule based on the first configuration parameter, the second configuration parameter, the third configuration parameter and the initial scaling rule.
[0253] Among them, business applications include game applications; display information of business objects includes a virtual control component corresponding to a camera component in the game application; target sensitivity includes a first target conversion coefficient and a second target conversion coefficient; the first target conversion coefficient is used to adjust the sensitivity of the steering angle indicated in the sensitivity parameter; the second target conversion coefficient is used to adjust the sensitivity of the pitch angle indicated in the sensitivity parameter; the swiping distance includes a first swiping distance and a second swiping distance; the first swiping distance is determined by a swiping user performing a target swiping operation in a first direction associated with the steering angle; the second swiping distance is determined by a swiping user performing a target swiping operation in a second direction associated with the pitch angle; the first direction and the second direction are two directions perpendicular to each other in the application display interface;
[0254] The first angle determination module 20 is used to determine the first rotation direction corresponding to the camera assembly based on the first swiping distance, and determine the first angle that the camera assembly indicates the virtual control assembly to rotate in the first rotation direction based on the first swiping distance and the first target conversion coefficient;
[0255] The second angle determination module 21 is used to determine the second rotation direction corresponding to the camera assembly based on the second swiping distance, and determine the second angle that the camera assembly indicates the virtual control assembly to rotate in the second rotation direction based on the second swiping distance and the second target conversion coefficient;
[0256] The rotation module 22 is used to rotate the steering angle of the virtual control component by a first angle in a first rotation direction, and to rotate the pitch angle of the virtual control component by a second angle in a second rotation direction;
[0257] The first updating module 23 is used to update the rotated virtual control component to the application display interface to obtain the display information of the updated business object.
[0258] The display information of the business object in the application display interface includes slideable display data; the target sensitivity includes a target movement conversion coefficient; the target movement conversion coefficient is used to adjust the sensitivity of the movement distance indicated in the sensitivity parameter;
[0259] The moving direction determining module 24 is used to determine the moving direction corresponding to the slidable display data based on the screen swiping distance;
[0260] The moving distance determination module 25 is used to determine the moving distance required for the slidable display data to move based on the swiping distance and the target movement conversion coefficient;
[0261] The second updating module 26 is used to move the slidable display data by a moving distance in the moving direction, and update the moved slidable display data into the application display interface to obtain updated display information of the business object.
[0262] Among them, the specific implementation methods of the screen swiping trajectory determination module 11, the target rate determination module 12, the scaling parameter determination module 13, the sensitivity adjustment module 14, the initial rule establishment module 15, the mapping relationship construction module 16, the parameter determination module 17, the parameter configuration module 18, the scaling rule determination module 19, the first angle determination module 20, the second angle determination module 21, the rotation module 22, the first update module 23, the moving direction determination module 24, the moving distance determination module 25 and the second update module 26 can be referred to above Figure 7 The description of steps S201 to S209 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated.
[0263] For further information, see Fig.11 , Fig.11 Schematic diagram of a computer device provided in an embodiment of the present application. Fig.11 As shown, the computer device 1000 may be a computer device running a business application, and the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and a keyboard (Keyboard), and the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As shown in FIG. Fig.11 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and a device control application.
[0264] exist Fig.11 In the computer device 1000 shown, the network interface 1004 is mainly used for network communication; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:
[0265] In response to a target swipe operation on an application display interface of a business application, N screen touch points associated with the target swipe operation are captured, and a trajectory constructed by the N screen touch points is determined as a swipe trajectory corresponding to the target swipe operation; N is a positive integer greater than or equal to 2; a sensitivity parameter of the business application within a unit time length is an initial sensitivity; and the unit time length is determined by capture timestamps of any two adjacent screen touch points among the N screen touch points;
[0266] Determine a swiping distance indicated by a target swiping operation within a unit time based on the swiping trajectory, and determine a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time;
[0267] Obtaining a target frame rate of the service application within a unit time, and determining a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target screen swiping rate, and configuration parameters associated with the service application;
[0268] Based on the scaling parameter, the sensitivity parameter is adjusted from the initial sensitivity to the target sensitivity; the target sensitivity is used to instruct the business application to update the display information of the business object in the application display interface.
[0269] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 and Figure 7 The description of the data processing method in the corresponding embodiment can also be performed as described above. Fig.10 The description of the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.
[0270] The present application also provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, Figure 3 and Figure 7 For details on the data transmission methods provided in each step, see Figure 3 as well as Figure 7 The implementation methods provided by each step will not be repeated here.
[0271] The computer-readable storage medium may be the data transmission device provided in any of the aforementioned embodiments or the internal storage unit of the computer device, such as the hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smartmedia card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both the internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0272] On one hand, the present application provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can execute the above Figure 3 or Figure 7 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated here.
[0273] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0274] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A data processing method, characterized in that: include: In response to a target swiping operation on an application display interface of a business application, N screen touch points associated with the target swiping operation are captured, and a track constructed by the N screen touch points is determined as a swiping track corresponding to the target swiping operation; N is a positive integer greater than or equal to 2; The sensitivity parameter of the service application within a unit time is the initial sensitivity; The unit duration is determined by capture timestamps of any two adjacent screen touch points among the N screen touch points; Determine a swiping distance indicated by the target swiping operation within the unit time based on the swiping trajectory, and determine a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time; Obtaining a target frame rate of the business application within the unit duration, and determining a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target swiping rate, a configuration parameter associated with the business application in a sensitivity scaling rule, and the sensitivity scaling rule; Based on the scaling parameter, adjusting the sensitivity parameter from the initial sensitivity to a target sensitivity; the target sensitivity is used to instruct the business application to update display information of the business object in the application display interface; The configuration parameters include a first configuration parameter corresponding to the first variable, a second configuration parameter corresponding to the second variable, and a third configuration parameter corresponding to the third variable; the first configuration parameter is used to characterize the maximum value corresponding to the sensitivity parameter; the second configuration parameter is used to characterize the minimum value corresponding to the sensitivity parameter; the third configuration parameter is used to characterize the growth coefficient associated with the scaling parameter; The determining, based on the target frame rate, the target screen swiping rate, the configuration parameter associated with the business application in the sensitivity scaling rule, and the sensitivity scaling rule, a scaling parameter for adjusting the sensitivity parameter includes: Obtaining a first swiping direction rate in the target swiping rate, and determining a first scaling parameter for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the first swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the first direction; Obtain a second swiping direction rate in the target swiping rate, and determine a second scaling parameter for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the second swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface; The first scaling parameter and the second scaling parameter are used as scaling parameters for adjusting the sensitivity parameter.
2. The method according to claim 1, characterized in that The responding to a target swiping operation on an application display interface of a business application, capturing N screen touch points associated with the target swiping operation, and determining a track constructed by the N screen touch points as a swiping track corresponding to the target swiping operation, includes: In response to a start-up operation for a business application, an application display interface of the business application is output; the application display interface is used to display display information of a business object in the business application; In response to a target swiping operation on the application display interface, generating a swiping instruction for triggering a program engine in the business application; The program engine is triggered based on the screen swiping instruction, so that the program engine captures N screen touch points associated with a swiping user; the swiping user is a user who continuously presses the terminal screen corresponding to the application display interface; The trajectory constructed by the N screen touch points is determined as the screen swiping trajectory corresponding to the target screen swiping operation.
3. The method according to claim 2, characterized in that The triggering of the program engine based on the screen swiping instruction so that the program engine captures N screen touch points associated with the screen swiping user includes: The program engine is triggered based on the screen swiping instruction, and the program engine records the pressing time of the terminal screen continuously pressed by the screen swiping user; Using the time interval between adjacent capture timestamps of the program engine as a unit duration associated with the business application; Capturing two adjacent screen touch points obtained when the swiping user continuously presses the screen within the unit time length; Based on the duration mapping relationship between the pressing duration and the unit duration, the captured screen touch points associated with the duration mapping relationship are merged to obtain N screen touch points obtained when the swiping user continuously presses within the pressing duration.
4. The method according to claim 3, characterized in that The number of the unit durations is k, and the k unit durations are used to constitute the pressing duration; k is a positive integer; The determining, based on the swiping trajectory, a swiping distance indicated by the target swiping operation within the unit time length, and determining, based on the swiping distance and the unit time length, a target swiping rate corresponding to the swiping distance, includes: Based on the k unit durations of the program engine, the screen swiping trajectory is split to obtain k sub-trajectories corresponding to the screen swiping trajectory; each sub-trajectory includes starting position information and end position information; Determine the number of screen swiping pixels corresponding to each sub-trajectory based on the starting position information of each sub-trajectory and the ending position information of each sub-trajectory, and determine the number of screen swiping pixels corresponding to each sub-trajectory as the screen swiping distance corresponding to each sub-trajectory; Determining a swiping rate corresponding to each sub-trace based on a swiping distance corresponding to each sub-trace and a unit time length of each sub-trace; A target swiping rate corresponding to the swiping distance is determined based on the swiping rate corresponding to each sub-trace.
5. The method according to claim 4, characterized in that The k sub-trajectories include sub-trajectory Z i ; i is a positive integer less than or equal to k; the sub-track Z i The adjacent capture timestamps within the unit time length include a first capture timestamp and a second capture timestamp; the first capture timestamp is earlier than the second capture timestamp; The determining, based on the starting position information of each sub-trajectory and the ending position information of each sub-trajectory, the number of screen swiping pixels corresponding to each sub-trajectory, and determining the number of screen swiping pixels corresponding to each sub-trajectory as the screen swiping distance corresponding to each sub-trajectory, includes: Get the sub-trajectory Z from each sub-trajectory i , the sub-trajectory Z i The unit duration is taken as the target unit duration, from the sub-trajectory Z i determining first screen position information corresponding to the first capture timestamp of the target unit duration, and using the determined first screen position information as the starting position information corresponding to the first capture timestamp of the target unit duration; From the sub-trajectory Z i determining the second screen position information corresponding to the second capture timestamp of the target unit duration, and using the determined second screen position information as the end point position information corresponding to the second capture timestamp of the target unit duration; Based on the starting position information and the ending position information, the sub-track Z is determined i The corresponding number of screen pixels is based on the sub-track Z i The corresponding number of screen pixels is obtained by i Corresponding screen swiping distance; Based on the sub-trajectory Z i The corresponding screen swiping distance is obtained to obtain the screen swiping distance corresponding to each sub-track.
6. The method according to claim 5, characterized in that The starting position information includes coordinate values X a and coordinate value Y a The end point position information includes the coordinate value X b and coordinate value Y b ; The coordinate value X a With the coordinate value X b All belong to the coordinate values in the first direction; the coordinate value Y a With the coordinate value Y b are all coordinate values in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface; The sub-trajectory Z is determined based on the starting position information and the end position information. i The corresponding number of screen pixels is based on the sub-track Z i The corresponding number of screen pixels is obtained by i The corresponding screen swipe distance includes: Determine the coordinate value X a With the coordinate value X b , determine the first absolute value as the first screen swiping pixel number of the swiping user in the first direction, and use the first screen swiping pixel number as the sub-trace Z i The corresponding first swipe distance; Determine the coordinate value Y a With the coordinate value Y b The second absolute value between , the second absolute value is determined as the second screen swiping pixel number of the swiping user in the second direction, and the second screen swiping pixel number is used as the sub-trace Z i The corresponding second swipe distance; The first swiping distance and the second swiping distance are used as the sub-track Z i The corresponding screen swipe distance.
7. The method according to claim 5, characterized in that The sub-trajectory Z in each sub-trajectory i The corresponding screen swiping distance includes a first screen swiping distance and a second screen swiping distance; The determining, based on the swiping distance corresponding to each sub-trace and the unit time length of each sub-trace, the swiping rate corresponding to each sub-trace includes: From the sub-trajectory Z i The first screen swiping distance is obtained from the corresponding screen swiping distance, and the first screen swiping distance is used as the distance between the swiping user and the sub-trace Z. i The first swiping direction speed of sliding within a unit time length; the first swiping direction speed is the swiping speed of the swiping user in the first direction; From the sub-trajectory Z i The second swiping distance is obtained from the corresponding swiping distance, and the second swiping distance is used as the distance between the swiping user and the sub-trace Z. i The second swiping direction speed of sliding within a unit time length; the second swiping direction speed is the swiping speed of the swiping user in the second direction; The first swipe direction speed and the second swipe direction speed are used as the sub-track Z i The corresponding screen swiping rate is based on the sub-track Z i The screen swiping rate corresponding to each sub-track is determined by the screen swiping rate.
8. The method according to claim 1, characterized in that Before determining the scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target swiping rate, the configuration parameter associated with the business application in the sensitivity scaling rule, and the sensitivity scaling rule, the method further includes: According to the target frame rate and the target screen swiping rate, query the sensitivity parameter corresponding to the target screen swiping operation in the sensitivity query list; If the sensitivity parameter corresponding to the target swiping operation is not found in the sensitivity query list, the program engine associated with the business application is called to obtain the sensitivity scaling rule configured for the program engine; the sensitivity scaling rule includes the configuration parameters associated with the business application.
9. The method according to claim 8, characterized in that The method further comprises: If a sensitivity parameter corresponding to the target screen swiping operation is found in the sensitivity query list, the found sensitivity parameter is used as the target sensitivity corresponding to the target screen swiping operation.
10. The method according to claim 1, characterized in that The method further comprises: Establishing an initial scaling rule for adjusting a sensitivity parameter; the initial scaling rule comprising a first variable, a second variable, and a third variable; Acquire a sample screen swiping rate associated with a sample screen swiping operation and a sample frame rate associated with the sample screen swiping rate, construct a first mapping relationship between the sample screen swiping rate and the scaling parameter based on the sample frame rate, and construct a second mapping relationship between the sample frame rate and the scaling parameter based on the sample screen swiping rate; Determine a maximum value corresponding to the scaling parameter and a minimum value corresponding to the scaling parameter based on the first mapping relationship and the second mapping relationship, and determine a growth coefficient associated with the scaling parameter based on the maximum value corresponding to the scaling parameter and the minimum value corresponding to the scaling parameter; Using the maximum value corresponding to the scaling parameter as a first configuration parameter for configuring the first variable, using the minimum value corresponding to the scaling parameter as a second configuration parameter for configuring the second variable, and using the growth coefficient as a third configuration parameter for configuring the third variable; The sensitivity scaling rule is determined based on the first configuration parameter, the second configuration parameter, the third configuration parameter, and the initial scaling rule.
11. The method according to claim 1, characterized in that: The business application includes a game application; the display information of the business object includes a virtual control component corresponding to the camera component in the game application; the target sensitivity includes a first target conversion coefficient and a second target conversion coefficient; the first target conversion coefficient is used to adjust the sensitivity of the steering angle indicated in the sensitivity parameter; the second target conversion coefficient is used to adjust the sensitivity of the pitch angle indicated in the sensitivity parameter; the swiping distance includes a first swiping distance and a second swiping distance; the first swiping distance is determined by a swiping user performing the target swiping operation in a first direction associated with the steering angle; the second swiping distance is determined by the swiping user performing the target swiping operation in a second direction associated with the pitch angle; The first direction and the second direction are two directions perpendicular to each other in the application display interface; The method further comprises: Determine a first rotation direction corresponding to the camera assembly based on the first swiping distance, and determine a first angle that the camera assembly indicates the virtual control assembly to rotate in the first rotation direction based on the first swiping distance and the first target conversion coefficient; Determine a second rotation direction corresponding to the camera assembly based on the second swiping distance, and determine a second angle that the camera assembly indicates the virtual control assembly to rotate in the second rotation direction based on the second swiping distance and the second target conversion coefficient; In the first rotation direction, the steering angle of the virtual control component is rotated by the first angle, and in the second rotation direction, the pitch angle of the virtual control component is rotated by the second angle; The rotated virtual control component is updated to the application display interface to obtain the display information of the updated business object.
12. The method according to claim 1, characterized in that The display information of the business object in the application display interface includes slidable display data; the target sensitivity includes a target movement conversion coefficient; The target movement conversion coefficient is used to adjust the sensitivity of the movement distance indicated in the sensitivity parameter; The method further comprises: Determining a moving direction corresponding to the slidable display data based on the swiping distance; Determining a moving distance required for the slidable display data to move based on the swiping distance and the target movement conversion coefficient; In the moving direction, the slidable display data is moved by the moving distance, and the moved slidable display data is updated in the application display interface to obtain updated display information of the business object.
13. A data processing device, characterized in that: include: a screen swiping trajectory determination module, configured to respond to a target swiping operation on an application display interface of a business application, capture N screen touch points associated with the target swiping operation, and determine a trajectory constructed by the N screen touch points as a swiping trajectory corresponding to the target swiping operation; wherein N is a positive integer greater than or equal to 2; The sensitivity parameter of the service application within a unit time length is an initial sensitivity; the unit time length is determined by the capture timestamps of any two adjacent screen touch points among the N screen touch points; a target rate determination module, configured to determine a swiping distance indicated by the target swiping operation within the unit time period based on the swiping trajectory, and determine a target swiping rate corresponding to the swiping distance based on the swiping distance and the unit time period; a scaling parameter determination module, configured to obtain a target frame rate of the business application within the unit duration, and determine a scaling parameter for adjusting the sensitivity parameter based on the target frame rate, the target swiping rate, a configuration parameter associated with the business application in a sensitivity scaling rule, and the sensitivity scaling rule; A sensitivity adjustment module, configured to adjust the sensitivity parameter from the initial sensitivity to a target sensitivity based on the scaling parameter; the target sensitivity is used to instruct the business application to update display information of the business object in the application display interface; The configuration parameters include a first configuration parameter corresponding to the first variable, a second configuration parameter corresponding to the second variable, and a third configuration parameter corresponding to the third variable; the first configuration parameter is used to characterize the maximum value corresponding to the sensitivity parameter; the second configuration parameter is used to characterize the minimum value corresponding to the sensitivity parameter; the third configuration parameter is used to characterize the growth coefficient associated with the scaling parameter; The scaling parameter determination module is specifically used for: Obtaining a first swiping direction rate in the target swiping rate, and determining a first scaling parameter for adjusting the sensitivity corresponding to the steering angle indicated in the sensitivity parameter based on the first swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the first swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the first direction; Obtain a second swiping direction rate in the target swiping rate, and determine a second scaling parameter for adjusting the sensitivity corresponding to the pitch angle indicated in the sensitivity parameter based on the second swiping direction rate, the target frame rate, the first configuration parameter, the second configuration parameter, the third configuration parameter, and the sensitivity scaling rule; the second swiping direction rate is a swiping rate corresponding to performing the target swiping operation in the second direction; the first direction and the second direction are two directions perpendicular to each other in the application display interface; The first scaling parameter and the second scaling parameter are used as scaling parameters for adjusting the sensitivity parameter.
14. A computer device, characterized in that: include: Processor and memory; The processor is connected to a memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Dynamic Adjustment Of Video Frame Sampling Rate
US20160057382A1
Method of selection and manipulation of graphical objects
US20190354279A1