Application calling method, terminal equipment and media
By using the inertial measurement sensor data of the terminal equipment to predict the operation of the operator, call the application in advance and enter the pre-use state, the problem of long wait time during the application call process is solved, and the response timeliness and operation efficiency is improved.
Patent Information
- Application Number
- CN202311533172.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2043-11-16
AI Technical Summary
The call of applications in the terminal device requires manual operation, resulting in a long switching waiting process, affecting the application's timely response and operation efficiency.
By obtaining the inertial data of the inertial measurement sensor of the terminal device, calculating the actual motion data, and when the actual motion data is preset motion data, the corresponding application program is called in advance to enter the pre-used state.
It avoids the waiting process of the application switching from the sleep state to the wake state, and improves the application's response timeliness and operation efficiency.
Smart Images

Figure CN117573389B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method for calling an application program, a terminal device and a medium. Background Art
[0002] Currently, the calling of applications in terminal devices requires operators to manually operate the corresponding applications. After the operator clicks the corresponding application by touch or key, the application is switched from a sleep state to a wake-up state for use.
[0003] However, during the operation, it was found that the application was switched from the sleep state to the wake-up state only after the operator clicked on the corresponding application. The switching waiting process was long, which was not conducive to the timely response of the application and resulted in low operating efficiency of the application. Summary of the invention
[0004] The main purpose of the present invention is to provide a method for calling an application, a terminal device and a medium, aiming to solve the technical problem of how to improve the timeliness of application response and the efficiency of operation.
[0005] To achieve the above object, the present invention provides a method for calling an application program, the method for calling an application program is applied to a terminal device, and the method for calling an application program comprises the following steps:
[0006] Acquire inertial data of an inertial measurement sensor provided in the terminal device during a preset time period;
[0007] Calculate the actual motion data of the terminal device according to the inertial data;
[0008] When the actual motion data is preset motion data, an application corresponding to the preset motion data is called to enter a pre-use state.
[0009] Optionally, the inertial measurement sensor includes an acceleration sensor and a gyroscope sensor, and the inertial data includes acceleration data acquired based on the acceleration sensor and angle data acquired based on the gyroscope sensor.
[0010] Optionally, the actual motion data includes a coordinate difference value set and an angle difference value set, and the step of calculating and obtaining the actual motion data of the terminal device according to the inertial data includes:
[0011] According to the three-dimensional coordinate data in the acceleration data, the longitudinal difference between each longitudinal coordinate data in the three-dimensional coordinate data and the preset longitudinal coordinate data is calculated, and the vertical difference between each vertical coordinate data in the three-dimensional coordinate data and the preset vertical coordinate data is calculated to obtain the coordinate difference set; and, the angle difference between each angle data and the preset angle data is calculated to obtain the angle difference set.
[0012] Optionally, after the step of calculating actual motion data of the terminal device according to the inertial data, the calling method further includes:
[0013] The difference change state of the coordinate difference value set and the angle difference value set in the same preset time period is obtained, and whether the actual motion data is the preset motion data is determined according to the difference change state.
[0014] Optionally, the step of obtaining a difference change state of the coordinate difference value set and the angle difference value set in the same preset time period includes:
[0015] Obtain the size relationship between each of the longitudinal differences in the coordinate difference set and the preset longitudinal difference as the time length increases over the preset time period, and obtain the size relationship between each of the vertical differences in the coordinate difference set and the preset vertical difference as the time length increases over the preset time period; and, obtain the variable relationship between each of the angle differences in the angle difference set and the previous angle difference as the time length increases over the preset time period.
[0016] Optionally, the preset motion data includes first preset motion data, the application corresponding to the first preset motion data is an identification recognition program, and after the step of judging whether the actual motion data is the preset motion data according to the difference change state, the method for calling the application further includes:
[0017] If, according to the size relationship between the increasing time length of each longitudinal difference in the preset time period and the preset longitudinal difference, it is obtained that after any time point in the preset time period, the longitudinal difference is greater than the preset longitudinal difference, and according to the size relationship between the increasing time length of each vertical difference in the preset time period and the preset vertical difference, it is obtained that after any time point in the preset time period, the vertical difference is greater than the preset vertical difference; and, according to the variable relationship between the increasing time length of each angle difference in the preset time period and the previous angle difference, it is obtained that the variable relationship between each angle difference and the previous angle difference of each angle difference is in a downward trend, then it is determined that the actual motion data is the first preset motion data;
[0018] The step of calling the application corresponding to the preset motion data to enter the pre-use state includes:
[0019] The identification recognition program is called to enter a pre-use state.
[0020] Optionally, the preset motion data includes second preset motion data, and the application corresponding to the second preset motion data is a scanning program. After the step of judging whether the actual motion data is the preset motion data according to the difference change state, the method for calling the application further includes:
[0021] If, according to the size relationship between the increasing time length of each longitudinal difference value and the preset longitudinal difference value in the preset time period, it is obtained that after any first time point in the preset time period, the longitudinal difference value is greater than the preset longitudinal difference value, and after any second time point, the longitudinal coordinate data corresponding to the longitudinal difference value approaches the calibration longitudinal data, and according to the size relationship between the increasing time length of the vertical difference value and the preset vertical difference value in the preset time period, it is obtained that after any third time point in the preset time period, the vertical difference value is greater than the preset vertical difference value, and after any fourth time point, the vertical coordinate data corresponding to the vertical difference value approaches the calibration vertical data; and, according to the variable relationship between the increasing time length of each angle difference value and the previous angle difference value in the preset time period, it is obtained that the variable relationship between each angle difference value and the previous angle difference value of each angle difference value first shows a first downward trend, then a reverse upward trend, and a second downward trend, then the actual motion data is determined to be the second preset motion data;
[0022] The step of calling the application corresponding to the preset motion data to enter the pre-use state includes:
[0023] The scanning program is called to enter a pre-use state.
[0024] Optionally, after the step of calling the application corresponding to the preset motion data to enter the pre-use state, the method for calling the application further includes:
[0025] If an identity authentication operation is set on the application, the fingerprint information collected by the fingerprint sensor set on the terminal device is obtained, and when the fingerprint information is preset fingerprint information, the pre-stored verification information is called to perform the identity authentication operation.
[0026] In addition, to achieve the above-mentioned purpose, the present invention provides a terminal device, which includes a memory, a processor, and a calling program stored in the memory and executable on the processor, and the calling program implements the steps of the calling method of the application as described above when executed by the processor.
[0027] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a calling program is stored, and when the calling program is executed by a processor, the steps of the calling method of the application program described above are implemented.
[0028] The present invention proposes a method for calling an application, a terminal device and a medium. The method obtains inertial data of an inertial measurement sensor set in a terminal device during a preset time period, calculates actual motion data of the terminal device according to the inertial data, and predicts the operation to be performed by an operator when picking up the terminal device based on the actual motion data. When the actual motion data is the preset motion data, the application corresponding to the preset motion data is called to enter a pre-use state, thereby avoiding the need to wait for the application to switch from a sleep state to a wake-up state when a subsequent operator clicks on the application. By advancing the waiting process to before the operator clicks on the application, the timeliness of response and the efficiency of operation of the application are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention;
[0030] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for calling an application program of the present invention;
[0031] Figure 3 FIG. 4 is a flow chart of a second embodiment of a method for calling an application program of the present invention.
[0032] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0033] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0034] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present invention.
[0035] The terminal of the present invention is a terminal device, such as Figure 1As shown, the terminal device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, 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), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. 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 stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0036] Optionally, the terminal device may further include an RF (Radio Frequency) circuit, a sensor, a WiFi module, etc. Among them, sensors such as light sensors, motion sensors and other sensors are not described in detail here.
[0037] Those skilled in the art will understand that Figure 1 The terminal device structure shown in the figure does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0038] like Figure 1 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 calling program.
[0039] exist Figure 1 In the terminal device shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the calling program stored in the memory 1005 and perform the following operations:
[0040] Acquire inertial data of an inertial measurement sensor provided in the terminal device during a preset time period;
[0041] Calculate the actual motion data of the terminal device according to the inertial data;
[0042] When the actual motion data is preset motion data, an application corresponding to the preset motion data is called to enter a pre-use state.
[0043] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0044] The actual motion data includes a coordinate difference set and an angle difference set. The step of calculating the actual motion data of the terminal device based on the inertial data includes: calculating the longitudinal difference between each longitudinal coordinate data in the three-dimensional coordinate data and the preset longitudinal coordinate data, and calculating the vertical difference between each vertical coordinate data in the three-dimensional coordinate data and the preset vertical coordinate data, to obtain the coordinate difference set; and calculating the angle difference between each angle data and the preset angle data, to obtain the angle difference set.
[0045] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0046] After the step of calculating the actual motion data of the terminal device based on the inertial data, the difference change state of the coordinate difference set and the angle difference set in the same preset time period is obtained, and whether the actual motion data is the preset motion data is determined based on the difference change state.
[0047] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0048] The step of obtaining the difference change state of the coordinate difference value set and the angle difference value set over the same preset time period includes: obtaining the size relationship between each of the longitudinal differences in the coordinate difference value set and the preset longitudinal difference as the time length increases over the preset time period, and obtaining the size relationship between each of the vertical differences in the coordinate difference value set and the preset vertical difference as the time length increases over the preset time period; and, obtaining the variable relationship between each of the angle differences in the angle difference value set and the previous angle difference as the time length increases over the preset time period.
[0049] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0050] The preset motion data includes first preset motion data, and the application corresponding to the first preset motion data is an identification recognition program. After the step of judging whether the actual motion data is the preset motion data according to the difference change state, if, according to the size relationship between each of the longitudinal differences increasing with time length in the preset time period and the preset longitudinal difference, it is obtained that after any time point in the preset time period, the longitudinal difference is greater than the preset longitudinal difference, and according to the size relationship between each of the vertical differences increasing with time length in the preset time period and the preset vertical difference, it is obtained that after any time point in the preset time period, the vertical difference is greater than the preset vertical difference; and, according to the variable relationship between each of the angle differences increasing with time length in the preset time period and the previous angle difference, it is obtained that the variable relationship between each of the angle differences and the previous angle difference of each of the angle differences shows a downward trend, then the actual motion data is determined to be the first preset motion data;
[0051] The step of calling the application corresponding to the preset motion data to enter the pre-use state includes:
[0052] The identification recognition program is called to enter a pre-use state.
[0053] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0054] The preset motion data includes second preset motion data, and the application corresponding to the second preset motion data is a scanning program. After the step of judging whether the actual motion data is the preset motion data according to the difference change state, if, according to the relationship between the longitudinal difference values increasing with time length in the preset time period and the preset longitudinal difference value, it is obtained that after any first time point in the preset time period, the longitudinal difference value is greater than the preset longitudinal difference value, and after any second time point, the longitudinal coordinate data corresponding to the longitudinal difference value approaches the calibrated longitudinal data, and according to the vertical difference value in the preset time period, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, and ... the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, and the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, the longitudinal coordinate data corresponding to the According to the relationship between the increment of the time length and the preset vertical difference value in the preset time period, after any third time point in the preset time period, the vertical difference value is greater than the preset vertical difference value, and after any fourth time point, the vertical coordinate data corresponding to the vertical difference value approaches the calibration vertical data; and, according to the variable relationship between the increment of the time length and the previous angle difference value in the preset time period, the variable relationship between each angle difference value and the previous angle difference value of each angle difference value first presents a first downward trend, then a reverse upward trend and a second downward trend, and the actual motion data is determined to be the second preset motion data;
[0055] The step of calling the application corresponding to the preset motion data to enter the pre-use state includes:
[0056] The scanning program is called to enter a pre-use state.
[0057] Further, the processor 1001 may call a calling program stored in the memory 1005, and further perform the following operations:
[0058] After the step of calling the application corresponding to the preset motion data to enter the pre-use state, if an identity authentication operation is set on the application, the fingerprint information collected by the fingerprint sensor set on the terminal device is obtained, and when the fingerprint information is the preset fingerprint information, the pre-stored verification information is called to perform the identity authentication operation.
[0059] Reference Figure 2 In the first embodiment of the present invention, the calling method of the application program includes:
[0060] Step S10, acquiring inertial data of an inertial measurement sensor provided in the terminal device in a preset time period.
[0061] In this embodiment, by utilizing the change trend of gravity acceleration when the terminal device is placed on a horizontal surface and picked up by an operator, the application to be pre-called by the operator is predicted, so that before the operator formally clicks the icon corresponding to the application and calls the application into the use state, the application is set to the pre-use state in advance, so that when the operator formally clicks the icon corresponding to the application and implements the corresponding operation function based on the application, the application can be quickly switched to the use state, avoiding the existing operator having to wait for the application to switch from the sleep state to the use state after formally clicking the icon corresponding to the application.
[0062] Based on the above effects, in order to obtain the changing trend of the gravity acceleration of the terminal device, this embodiment collects the inertial data of the inertial measurement sensor set by the terminal device in a preset time period, and determines the changing trend of the gravity acceleration of the terminal device based on the inertial data, so as to make timely predictions on the applications pre-called by the corresponding operator.
[0063] It should be noted that the preset time periods set in this embodiment are two time points with an interval of 500 ms, and can be set to other time periods in actual applications.
[0064] Step S20, calculating actual motion data of the terminal device according to the inertial data.
[0065] After obtaining the inertial data over a preset time period, it is necessary to calculate actual motion data based on the inertial data that can reflect the motion state of the terminal device over the preset time period, so that the current motion state of the terminal device can be determined according to the actual motion data of the terminal device, and the application pre-triggered by the operator can be predicted and called in advance according to the current motion state.
[0066] Optionally, the step of calculating the actual motion data of the terminal device according to the inertial data in step S20 includes:
[0067] Step S201, based on the multiple three-dimensional coordinate data in the acceleration data, calculate the longitudinal difference between each longitudinal coordinate data in the multiple three-dimensional coordinate data and the preset longitudinal coordinate data, and calculate the vertical difference between each vertical coordinate data in the multiple three-dimensional coordinate data and the preset vertical coordinate data to obtain the coordinate difference set.
[0068] Step S202, calculating the angle difference between each of the angle data and the preset angle data to obtain the angle difference set.
[0069] The inertial measurement sensor in this embodiment includes an acceleration sensor and a gyroscope sensor. After acquiring acceleration data collected by the acceleration sensor and angle data collected by the gyroscope sensor in the same preset time period, difference calculation is performed based on the collected acceleration data and angle data.
[0070] It should be noted that the acceleration data of the acceleration sensor is {x, y, z}, which represents the three acceleration directions of the terminal device in the three-dimensional space, and the acceleration sensor in each terminal device is calibrated to {0, 0, 9.8}, that is, the default static state of the terminal device placed on a horizontal plane is {0, 0, 9.8}, and the angle data collected by the gyroscope sensor is R = {0} when the terminal device is placed on a horizontal plane.
[0071] Specifically, assuming that the acceleration data collected by the acceleration sensor in the preset time period is {{0,2,11.8}, {0,4,13.8}, {1,6,15.8}, {1.5,8,17.8}, {2,10,19.5}}, the preset longitudinal coordinate data is 3, and the preset vertical coordinate data is 14.8, then the longitudinal difference calculated at this time is {-1,1,3,5,7}, and the vertical difference is {-3,-1,1,3,5}, and the obtained coordinate difference set is {{ -1,-3}, {1,-1}, {3,1}, {5,3}, {7,5}}; assuming that the angle data collected by the gyroscope sensor is R={2,4,6,8,10}, and the preset angle data is 5, then the angle difference calculated at this time is -3,-1,1.3,5, that is, the corresponding angle difference set is {-3,-1,1,3,5}. By comparing the difference between the actual data collected and the preset data, the motion change value of the terminal device relative to the static state is obtained.
[0072] It should be noted that, in order to improve the accuracy of the acceleration data, this embodiment proposes to perform filtering processing on the collected acceleration data to eliminate noise and interference in the collected acceleration data.
[0073] Optionally, after the step of calculating the actual motion data of the terminal device according to the inertial data in step S20, the calling method further includes:
[0074] Step S203: obtaining a difference change state of the coordinate difference value set and the angle difference value set in the same preset time period, and judging whether the actual motion data is the preset motion data according to the difference change state.
[0075] After obtaining the difference change status corresponding to the coordinate difference set and the angle difference set in the same preset time period, it is possible to directly judge whether the actual motion data of the terminal device is the preset motion data based on the difference change status, so as to judge whether the operator's action of picking up the terminal device is an action that triggers a certain application.
[0076] Specifically, this embodiment proposes preset motion data corresponding to two types of applications, as described in detail as follows.
[0077] Optionally, the step of obtaining the difference change state of the coordinate difference value set and the angle difference value set in the same preset time period in step S203 includes:
[0078] Step S204, obtaining the size relationship between each of the longitudinal difference values in the coordinate difference value set and the preset longitudinal difference value as the time length increases over the preset time period, and obtaining the size relationship between each of the vertical difference values in the coordinate difference value set and the preset vertical difference value as the time length increases over the preset time period; and, obtaining the variable relationship between each of the angle difference values in the angle difference value set and the previous angle difference value as the time length increases over the preset time period.
[0079] By judging the size relationship between each longitudinal difference in the coordinate difference set and the preset longitudinal difference as the time length increases within a preset time period, the size relationship between the vertical difference in the preset time period and the preset vertical difference, and the size relationship between each angle difference in the angle difference set and the previous angle difference as the time length increases over the preset time period, an automatic perception process of the usage status of the terminal device is realized based on the size relationship, and through the change process of each size relationship as the time length increases within the preset time period, the terminal device has an early initialization and calling process for the components enabled by the application, so that the terminal device can achieve a low power consumption environment in the standby state, and when the operator pre-activates the corresponding application, the operator can quickly judge and respond to the usage status of the terminal device so as to call the corresponding application in advance, thereby meeting the rapid response effect of the application when the terminal device is in use.
[0080] Step S30, when the actual motion data is preset motion data, calling an application corresponding to the preset motion data to enter a pre-use state.
[0081] If the actual motion data of the terminal device is determined to be the preset motion data, it means that the operator's motion posture when picking up the terminal device is the same as the motion posture when activating a certain application. At this time, the terminal device believes that the operator is about to trigger the application to perform an operation. Therefore, in order to reduce the waiting time required for the operator to trigger the application, this embodiment directly calls the application to enter the pre-use state when it is determined that the operator's motion posture when picking up the terminal device is the same as the motion posture when activating a certain application. When the operator triggers the application to enter the use state, the waiting time for the application to go from the sleep state to the use state can be skipped, thereby improving the timeliness of the response of the application relative to the operator and speeding up the efficiency of the operator in using the application.
[0082] Optionally, after the step of determining whether the actual motion data is the preset motion data according to the difference change state in step S203, the method for calling the application further includes:
[0083] Step S205, if according to the size relationship between the increasing time length of each of the longitudinal differences in the preset time period and the preset longitudinal difference, it is obtained that after any time point in the preset time period, the longitudinal difference is greater than the preset longitudinal difference, and according to the size relationship between the increasing time length of each of the vertical differences in the preset time period and the preset vertical difference, it is obtained that after any time point in the preset time period, the vertical difference is greater than the preset vertical difference.
[0084] And, in step S206, based on the variable relationship between each angle difference value and the previous angle difference value as the time length increases over the preset time period, it is obtained that the variable relationship between each angle difference value and the previous angle difference value of each angle difference value shows a downward trend, then the actual motion data is determined to be the first preset motion data.
[0085] Optionally, in step S30, the step of calling an application corresponding to the preset motion data to enter a pre-use state includes:
[0086] Step S301, calling the identification recognition program to enter a pre-use state.
[0087] Specifically, the first type is that the application is an identification recognition program.
[0088] If, according to the size relationship between each longitudinal difference and each vertical difference as time increases over a preset time period and the preset longitudinal difference and the preset vertical difference, it is obtained that after any time point in the preset time period, the longitudinal difference and the vertical difference are always greater than the corresponding preset longitudinal difference and the preset vertical difference, and according to the size relationship between each angle difference as time increases over a preset time period and the previous angle difference, it is obtained that the variable relationship between each angle difference and the previous angle difference of each angle difference shows a decreasing trend, then the motion state of the terminal device is determined, that is, the actual motion data is consistent with the motion state when the identification recognition program is enabled (that is, the first preset motion data), and the processor on the terminal device believes that the operator is about to enable the identification recognition program, then the identification recognition program will be directly called to enter the pre-use state, so that the operator can skip the waiting time from the dormant state to the use state after the conventional triggering program after officially triggering the identification recognition program, thereby improving the response timeliness of the identification recognition program.
[0089] Assuming that the preset longitudinal difference and the preset vertical difference are both 3, the coordinate difference set in the preset time period is {{-1,-3}, {1,-1}, {3,1}, {5,3}, {7,5}}. It can be obtained that after the time point corresponding to the longitudinal difference of "3", the longitudinal difference is always greater than the preset longitudinal difference, and after the time point corresponding to the vertical difference of "3", the vertical difference is always greater than the preset vertical difference; assuming that the angle difference set is {5,3,2,1.5,1.4}, it can be obtained that in the preset time period, as time increases, the variable relationship between the angle difference and the previous angle difference of the angle difference shows a downward trend, and the change approaches 0. Because the preset time period is the same as the preset time period for judging the coordinate difference set above, it is considered that the motion posture of the terminal device at this time is the motion posture of enabling the identification recognition program.
[0090] Optionally, after the step of determining whether the actual motion data is the preset motion data according to the difference change state in step S203, the method for calling the application further includes:
[0091] Step S207, if according to the size relationship between the longitudinal difference value increasing with the time length in the preset time period and the preset longitudinal difference value, it is obtained that after any first time point in the preset time period, the longitudinal difference value is greater than the preset longitudinal difference value, and after any second time point, the longitudinal coordinate data corresponding to the longitudinal difference value is close to the calibrated longitudinal data, and according to the size relationship between the vertical difference value increasing with the time length in the preset time period and the preset vertical difference value, it is obtained that after any third time point in the preset time period, the vertical difference value is greater than the preset vertical difference value, and after any fourth time point, the vertical coordinate data corresponding to the vertical difference value is close to the calibrated vertical data.
[0092] And, in step S208, based on the variable relationship between each angle difference value and the previous angle difference value as the time length increases over the preset time period, it is obtained that the variable relationship between each angle difference value and the previous angle difference value of each angle difference value first shows a first downward trend, then a reverse upward trend and a second downward trend, then the actual motion data is determined to be the second preset motion data.
[0093] Optionally, in step S30, the step of calling an application corresponding to the preset motion data to enter a pre-use state includes:
[0094] Step S302: calling the scanning program to enter a pre-use state.
[0095] Specifically, the second application is a scanning program.
[0096] If, according to the size relationship between the increase of each longitudinal difference value with the time length in the preset time period and the preset longitudinal difference value, it is obtained that after any first time point in the preset time period, the longitudinal difference value is greater than the preset longitudinal difference value, and after any second time point, the longitudinal coordinate data corresponding to the longitudinal difference value gradually approaches the calibration longitudinal data, and according to the size relationship between the increase of each vertical difference value with the time length in the preset time period and the preset vertical difference value, it is obtained that after any third time point in the preset time period, the vertical difference value is greater than the preset vertical difference value, and after any fourth time period, the vertical coordinate data corresponding to the vertical difference value gradually approaches the calibration vertical data, and according to the size relationship between the increase of each angular difference value with the time length in the preset time period and the previous angular difference value, The variable relationship between the angle difference value and the previous angle difference value of each angle difference value first shows a first downward trend, then a reverse upward trend, and finally a second downward trend. At the same time, the variable value in the variable relationship gradually approaches 0. The motion state of the terminal device is determined, that is, the actual motion data is consistent with the motion state when the scanning program is enabled (that is, the second preset motion data). The processor on the terminal device believes that the operator is about to start the scanning program. At this time, the scanning program will be directly called to enter the pre-use state, so that the operator can skip the waiting time for the program to switch from the dormant state to the use state after the scanning program is officially triggered, thereby improving the response timeliness of the scanning program.
[0097] Assuming that the preset longitudinal difference and the preset vertical difference are both 3, the preset longitudinal coordinate data is 3, the preset vertical coordinate data is 14.8, and the coordinate difference set in the preset time period is {{3,1}, {9,7}, {15,13}, {5,3}, {-2.9,-4.9}}, it can be obtained that after the first time point corresponding to the longitudinal difference of "3", the longitudinal difference is greater than the preset longitudinal difference, and after the second time point corresponding to the longitudinal difference of "5", the longitudinal coordinate data "0.1" corresponding to the longitudinal difference approaches the calibration longitudinal data "0" set in this embodiment, after the third time point corresponding to the vertical difference of "1", the vertical difference is greater than the preset vertical difference, and after the fourth time point corresponding to the vertical difference of "3", the longitudinal coordinate data "9.9" corresponding to the vertical difference approaches. Close to the calibration vertical data "9.8" set in the present embodiment; assuming that the angle difference value set is {5,3,4,2,1.9}, it can be obtained that in the preset time period, as time increases, the variable relationship between each angle difference value and the previous angle difference value of the angle difference value first presents a first decreasing area (that is, angle difference value "5" to angle difference value "3"), and then presents an upward trend (that is, angle difference value "3" to angle difference value "4"), and finally presents a second decreasing trend (that is, angle difference value "4" to angle difference value "2"), and then the variable relationship between the angle differences approaches "0" (that is, angle difference value "2" to angle difference "1.9"). Because the preset time period is the same time period as the preset time period for judging the coordinate difference set mentioned above, it is considered that the motion posture of the terminal device at this time is the motion posture of enabling the scanning program.
[0098] It should be noted that, in this embodiment, the first time point is earlier than the second time point, and the third time point is earlier than the fourth time point.
[0099] In addition, in actual application, the application can also be other applications besides the identification recognition program and the scanning program. As long as the corresponding numerical value is set according to the corresponding motion posture when the application is enabled, the terminal device can predict the activation of the application.
[0100] In this embodiment, by acquiring inertial data of an inertial measurement sensor provided on a terminal device over a preset time period, actual motion data of the terminal device is calculated based on the inertial data, and the operation to be performed by the operator when picking up the terminal device is predicted based on the actual motion data. When the actual motion data is the preset motion data, the application corresponding to the preset motion data is called to enter a pre-use state, thereby avoiding the need to wait for the application to switch from a sleep state to a wake-up state when a subsequent operator clicks on the application. By advancing the waiting process to before the operator clicks on the application, the timeliness of the response and the efficiency of the operation are improved.
[0101] Reference Figure 3 In the second embodiment of the present invention, after the step of calling the application corresponding to the preset motion data to enter the pre-use state in step S30, the method for calling the application further includes:
[0102] Step S40, if the application is provided with an identity authentication operation, the fingerprint information collected by the fingerprint sensor provided on the terminal device is obtained, and when the fingerprint information is the preset fingerprint information, the pre-stored verification information is called to perform the identity authentication operation.
[0103] In addition, if there is an identity authentication operation set on the application that was called in advance, in order to be able to quickly enter the operation interface of the application when the operator triggers the application, the fingerprint information of the operator is obtained through the fingerprint sensor set on the terminal device, and the fingerprint information is compared with the preset fingerprint information. If the comparison is consistent, the pre-stored verification information used to open the application is directly called to perform an identity authentication operation, so that the application enters the pre-use state, realizes quick login of the application, and further improves usage efficiency.
[0104] It should be noted that a login mapping table of applications is provided in the terminal device, and the login mapping table records the name of the corresponding application to be started, preset fingerprint information corresponding to verifying the application, and pre-stored verification information corresponding to enabling the application.
[0105] In this embodiment, if an identity authentication operation is set on the application, the fingerprint information collected by the fingerprint sensor set on the terminal device is obtained, and when the fingerprint information is the preset fingerprint information, the pre-stored verification information is called to perform the identity authentication operation, so that the application enters the pre-use state, realizes the quick login of the application, and further improves the usage efficiency.
[0106] In addition, the present invention also proposes a terminal device, which includes a memory, a processor, and a calling program stored in the memory and executable on the processor, wherein the calling program implements the steps of the calling method of the application as described above when executed by the processor.
[0107] In addition, the present invention also proposes a computer-readable storage medium, on which a calling program is stored. When the calling program is executed by a processor, the steps of the calling method of the application program described above are implemented.
[0108] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0109] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0110] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0111] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for calling an application, characterized in that: The application calling method is applied to a terminal device, and the application calling method comprises the following steps: Acquire inertial data of an inertial measurement sensor set in the terminal device in a preset time period, wherein the inertial measurement sensor includes an acceleration sensor and a gyroscope sensor, and the inertial data includes acceleration data acquired based on the acceleration sensor and angle data acquired based on the gyroscope sensor; Calculating actual motion data of the terminal device according to the inertial data, wherein the actual motion data includes a coordinate difference value set and an angle difference value set; When the actual motion data is preset motion data, calling an application corresponding to the preset motion data to enter a pre-use state; Wherein, the step of calculating the actual motion data of the terminal device according to the inertial data includes: According to the plurality of three-dimensional coordinate data in the acceleration data, a longitudinal difference between each longitudinal coordinate data in the plurality of three-dimensional coordinate data and a preset longitudinal coordinate data is calculated, and a vertical difference between each vertical coordinate data in the plurality of three-dimensional coordinate data and a preset vertical coordinate data is calculated to obtain the coordinate difference set; and, Calculating the angle difference between each of the angle data and the preset angle data to obtain the angle difference set; Obtaining the magnitude relationship between each longitudinal difference value in the coordinate difference value set and the preset longitudinal difference value as the time length increases over the preset time period, and obtaining the magnitude relationship between each vertical difference value in the coordinate difference value set and the preset vertical difference value as the time length increases over the preset time period, and obtaining the variable relationship between each angle difference value in the angle difference value set and the previous angle difference value as the time length increases over the preset time period; Obtaining the magnitude relationship between each longitudinal difference value in the coordinate difference value set and the preset longitudinal difference value as the time length increases over the preset time period, and obtaining the magnitude relationship between each vertical difference value in the coordinate difference value set and the preset vertical difference value as the time length increases over the preset time period; and, Obtaining a variable relationship between each angle difference value in the angle difference value set and a previous angle difference value as time length increases over the preset time period; Determining whether the actual motion data is the preset motion data according to the difference change state; The preset motion data includes first preset motion data, the application corresponding to the first preset motion data is an identification recognition program, and after the step of judging whether the actual motion data is the preset motion data according to the difference change state, the method for calling the application further includes: If, according to the size relationship between the increasing time length of each longitudinal difference in the preset time period and the preset longitudinal difference, it is obtained that after any time point in the preset time period, the longitudinal difference is greater than the preset longitudinal difference, and according to the size relationship between the increasing time length of each vertical difference in the preset time period and the preset vertical difference, it is obtained that after any time point in the preset time period, the vertical difference is greater than the preset vertical difference; and, According to the variable relationship between each angle difference value and the previous angle difference value as the time length increases over the preset time period, it is obtained that the variable relationship between each angle difference value and the previous angle difference value of each angle difference value shows a downward trend, then determining that the actual motion data is the first preset motion data; The step of calling the application corresponding to the preset motion data to enter the pre-use state includes: Calling the identification program to enter a pre-use state; or, The preset motion data includes second preset motion data, the application corresponding to the second preset motion data is a scanning program, and after the step of judging whether the actual motion data is the preset motion data according to the difference change state, the method for calling the application further includes: If, according to the size relationship between the longitudinal difference value increasing with time length in the preset time period and the preset longitudinal difference value, it is obtained that after any first time point in the preset time period, the longitudinal difference value is greater than the preset longitudinal difference value, and after any second time point, the longitudinal coordinate data corresponding to the longitudinal difference value approaches the calibration longitudinal data, and according to the size relationship between the vertical difference value increasing with time length in the preset time period and the preset vertical difference value, it is obtained that after any third time point in the preset time period, the vertical difference value is greater than the preset vertical difference value, and after any fourth time point, the vertical coordinate data corresponding to the vertical difference value approaches the calibration vertical data; and, According to the variable relationship between each angle difference value and the previous angle difference value as the time length increases over the preset time period, it is obtained that the variable relationship between each angle difference value and the previous angle difference value of each angle difference value first presents a first downward trend, then a reverse upward trend and a second downward trend, then the actual motion data is determined to be the second preset motion data; The step of calling the application corresponding to the preset motion data to enter the pre-use state includes: The scanning program is called to enter a pre-use state.
2. The method for calling an application program according to claim 1, wherein: After the step of calling the application corresponding to the preset motion data to enter the pre-use state, the method for calling the application further includes: If an identity authentication operation is set on the application, the fingerprint information collected by the fingerprint sensor set on the terminal device is obtained, and when the fingerprint information is preset fingerprint information, the pre-stored verification information is called to perform the identity authentication operation.
3. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a calling program stored in the memory and executable on the processor, and when the calling program is executed by the processor, the steps of the calling method of the application program described in any one of claims 1-2 are implemented.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a calling program, and when the calling program is executed by a processor, the steps of the calling method of the application program described in any one of claims 1 to 2 are implemented.
Citation Information
Patent Citations
Application startup method, terminal, and computer readable storage medium
CN107193379A
Method, device and electronic device for calling application program function
CN109085967A