CN112559072B - Service function starting method and related equipment - Google Patents

Service function starting method and related equipment Download PDF

Info

Publication number
CN112559072B
CN112559072B CN202011479292.3A CN202011479292A CN112559072B CN 112559072 B CN112559072 B CN 112559072B CN 202011479292 A CN202011479292 A CN 202011479292A CN 112559072 B CN112559072 B CN 112559072B
Authority
CN
China
Prior art keywords
acceleration
target
determining
interval
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011479292.3A
Other languages
Chinese (zh)
Other versions
CN112559072A (en
Inventor
黄炎鑫
赖众程
洪叁亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011479292.3A priority Critical patent/CN112559072B/en
Publication of CN112559072A publication Critical patent/CN112559072A/en
Application granted granted Critical
Publication of CN112559072B publication Critical patent/CN112559072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality

Abstract

The invention relates to artificial intelligence and provides a service function starting method and related equipment. The method can acquire a first shaking acceleration when a plurality of users execute a preset behavior and a second shaking acceleration when a specific behavior is executed, determine a first interval and a second interval, determine a target interval according to the first interval and the second interval, determine a trigger user, select an acceleration threshold from the target interval according to the preset behavior of the trigger user, start a target application program, monitor an acceleration sensor, acquire a plurality of accelerations, determine a target axis according to any acceleration if any acceleration is greater than the acceleration threshold, and start a service function corresponding to the target axis. The invention can realize the quick start of the required service function on any page by shaking the equipment, thereby improving the flexibility of operation. Furthermore, the invention also relates to blockchain techniques, the acceleration threshold may be stored in a blockchain.

Description

Service function starting method and related equipment
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a service function starting method and related equipment.
Background
With the development of mobile internet, mobile terminals have penetrated into various fields of people's lives. In order to improve the flexibility of business management in office, the business function of the bank is also transferred to the mobile terminal, so that the business management can handle business for clients and the like through the mobile terminal at any time and any place.
At present, the business of a bank is complicated, so that the business functions in a bank application program are various, and a user cannot quickly start the required business functions in a bank application program page.
Disclosure of Invention
In view of the foregoing, there is a need to provide a service function starting method and a related device, which can implement quick starting of a required service function on an arbitrary page through shaking of the device, and improve flexibility of operation.
In one aspect, the present invention provides a method for starting a service function, where the method for starting a service function includes:
when the generation of an application program starting request is detected, acquiring first shaking acceleration of a plurality of users when executing a preset action, and acquiring second shaking acceleration of the plurality of users when executing a specific action;
determining a first interval according to the first shaking acceleration;
determining a second interval according to the second shaking acceleration;
determining a target interval according to the first interval and the second interval, and determining a trigger user of the application program starting request;
selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
starting a target application program in the application program starting request, and monitoring an acceleration sensor when the target application program is started;
acquiring a plurality of accelerations monitored from the acceleration sensor, and comparing the plurality of accelerations with the acceleration threshold;
and when any acceleration is larger than the acceleration threshold, determining a target axis according to the any acceleration, and starting a service function corresponding to the target axis.
According to a preferred embodiment of the present invention, the acquiring the first shake acceleration when the plurality of users perform the preset action includes:
determining a generating terminal of the application program starting request, and determining a terminal model of the generating terminal;
determining all terminals corresponding to the terminal models, and determining holding users of all the terminals;
determining target sensors on all the terminals;
monitoring the target sensor when the holding user executes the preset behavior;
the first shake acceleration is acquired from the target sensor.
According to a preferred embodiment of the present invention, the determining the triggering user of the application start request includes:
acquiring detection time for detecting the application program starting request;
acquiring a target log corresponding to the detection time from a preset log list;
and extracting a login account from the target log, and determining the trigger user according to the login account.
According to a preferred embodiment of the present invention, the selecting an acceleration threshold from the target interval according to the preset behavior of the trigger user includes:
acquiring a plurality of behavior accelerations of the triggering user when the preset behavior is executed;
cleaning the plurality of behavior accelerations, and determining the plurality of cleaned behavior accelerations as cleaning accelerations;
screening the acceleration with the maximum value from the cleaning acceleration to be used as a target value;
and selecting the acceleration larger than the target value from the target interval as the acceleration threshold value.
According to a preferred embodiment of the present invention, the determining a target axis according to the arbitrary acceleration and starting a service function corresponding to the target axis includes:
if the number of the arbitrary accelerations is multiple, determining the acceleration with the maximum value from the multiple arbitrary accelerations as a target acceleration;
determining an axial direction corresponding to the target acceleration as the target axis;
determining a function list corresponding to the target axis;
if a plurality of functions are stored in the function list, displaying the function list;
and starting the service function when detecting that the service function in the function list is triggered.
According to a preferred embodiment of the present invention, said determining a first interval from said first shake acceleration comprises:
calculating a probability of each first shake acceleration on the first shake acceleration;
generating a plurality of acceleration points according to each first shaking acceleration and each probability, and converting the plurality of acceleration points into the first acceleration curve;
obtaining a preset probability according to the first acceleration curve and a first preset value;
calculating the sum of the preset probability and a second preset value to obtain a first probability, and calculating the difference value of the preset probability and the second preset value to obtain a second probability;
calculating the mean value of the first shaking acceleration to obtain an acceleration mean value, and calculating the standard deviation of the first shaking acceleration according to the acceleration mean value to obtain an acceleration standard deviation;
calculating the product of the acceleration standard deviation and the first probability to obtain a first product, and calculating the sum of the first product and the acceleration mean value to obtain a first numerical value;
calculating the product of the acceleration standard deviation and the second probability to obtain a second product, and calculating the sum of the second product and the acceleration mean value to obtain a second numerical value;
and determining the first interval according to the first numerical value and the second numerical value.
According to a preferred embodiment of the present invention, the determining a target interval according to the first interval and the second interval comprises:
determining the intersection of the first interval and the second interval to obtain an interval intersection;
screening the shaking acceleration with the maximum value from the interval intersection as a first endpoint;
screening the shaking acceleration with the maximum value from the second interval to be used as a second endpoint;
and determining the target interval according to the first endpoint and the second endpoint.
On the other hand, the present invention further provides a service function starting apparatus, where the service function starting apparatus includes:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring first shaking acceleration when a plurality of users execute preset behaviors and acquiring second shaking acceleration when the users execute specific behaviors when detecting that an application program starting request is generated;
a determination unit configured to determine a first section from the first shake acceleration;
the determining unit is further used for determining a second interval according to the second shaking acceleration;
the determining unit is further configured to determine a target interval according to the first interval and the second interval, and determine a trigger user of the application program starting request;
the selecting unit is used for selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
the monitoring unit is used for starting a target application program in the application program starting request and monitoring an acceleration sensor when the target application program is started;
the acquisition unit is further used for acquiring a plurality of accelerations monitored from the acceleration sensor and comparing the plurality of accelerations with the acceleration threshold;
and the starting unit is used for determining a target axis according to any acceleration when the any acceleration is greater than the acceleration threshold value, and starting a service function corresponding to the target axis.
In another aspect, the present invention further provides an electronic device, including:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the service function initiation method.
In another aspect, the present invention further provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable storage medium, and the computer-readable instructions are executed by a processor in an electronic device to implement the service function starting method.
According to the technical scheme, on the premise that the business function in the target application program is complicated, the needed business function can be quickly started on any page of the target application program through shaking of the equipment, so that the operation flexibility is improved.
Drawings
Fig. 1 is a flow chart of a preferred embodiment of the service function starting method of the present invention.
FIG. 2 is a flowchart illustrating an embodiment of obtaining a first shake acceleration when a plurality of users perform a preset action.
Fig. 3 is a functional block diagram of a preferred embodiment of the service function starting apparatus of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device implementing a service function starting method according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flow chart of a service function starting method according to a preferred embodiment of the present invention. The order of the steps in the flow chart may be changed and some steps may be omitted according to different needs.
The service function starting method is applied to one or more electronic devices, and the electronic devices are devices capable of automatically performing numerical calculation and/or information processing according to computer readable instructions set in advance or stored in advance, and hardware of the electronic devices includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The electronic device may be any mobile electronic product capable of performing human-computer interaction with a user, for example, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an intelligent wearable device, and the like.
The electronic device may include a network device and/or a user device. Wherein the network device includes, but is not limited to, a single network electronic device, an electronic device group consisting of a plurality of network electronic devices, or a Cloud Computing (Cloud Computing) based Cloud consisting of a large number of hosts or network electronic devices.
The network in which the electronic device is located includes, but is not limited to: the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like.
S10, when the generation of the application program starting request is detected, first shaking acceleration when a plurality of users execute preset behaviors is obtained, and second shaking acceleration when the plurality of users execute specific behaviors is obtained.
In at least one embodiment of the present invention, the information carried in the application program initiation request includes, but is not limited to: trigger user, program identification, etc. The application may be the APP of any bank.
In at least one embodiment of the invention, the predetermined behavior comprises a combination of one or more of the following: sport activities, riding vehicles.
The specific behavior refers to a behavior in which the user intentionally shakes the electronic device.
Referring to fig. 2, fig. 2 is a flowchart of an embodiment of the present invention for obtaining a first shake acceleration when a plurality of users perform a preset action. In at least one embodiment of the present invention, the electronic device acquiring a first shake acceleration at the time when a plurality of users perform a preset action includes:
s100, determining a generating terminal of the application program starting request, and determining the terminal model of the generating terminal.
And the generating terminal is a terminal for generating the application program starting request.
The terminal model refers to a specific model of the generating terminal, for example, the terminal model may be hua be P30.
S101, determining all terminals corresponding to the terminal models, and determining holding users of all the terminals.
The holding user refers to a user holding a terminal with the terminal model.
And S102, determining the target sensors on all the terminals.
The target sensor refers to a three-axis acceleration sensor on all the terminals.
S103, monitoring the target sensor when the holding user executes the preset behavior.
And S104, acquiring the first shaking acceleration from the target sensor.
By monitoring the target sensor on the terminal corresponding to the terminal model, the performance of the sensor on the terminal of different terminal models is different, so that the first shaking acceleration can be accurately acquired from the target sensor.
And S11, determining a first interval according to the first shaking acceleration curve.
In at least one embodiment of the invention, the first acceleration profile is determined by accelerations resulting from the plurality of users performing the preset actions. The first interval refers to an acceleration generated when most users perform the preset behavior.
In at least one embodiment of the invention, said determining a first interval from said first shake acceleration comprises:
calculating a probability of each first shake acceleration on the first shake acceleration;
generating a plurality of acceleration points according to each first shaking acceleration and each probability, and converting the plurality of acceleration points into the first acceleration curve;
obtaining a preset probability according to the first acceleration curve and a first preset value;
calculating the sum of the preset probability and a second preset value to obtain a first probability, and calculating the difference value of the preset probability and the second preset value to obtain a second probability;
calculating the mean value of the first shaking acceleration to obtain an acceleration mean value, and calculating the standard deviation of the first shaking acceleration according to the acceleration mean value to obtain an acceleration standard deviation;
calculating the product of the acceleration standard deviation and the first probability to obtain a first product, and calculating the sum of the first product and the acceleration mean value to obtain a first numerical value;
calculating the product of the acceleration standard deviation and the second probability to obtain a second product, and calculating the sum of the second product and the acceleration mean value to obtain a second numerical value;
and determining the first interval according to the first numerical value and the second numerical value.
The first preset value is set according to an application scene, and the value of the first preset value is not limited by the invention.
The left end point of the first interval is the first numerical value, and the right end point of the first interval is the second numerical value.
According to the embodiment, the first shaking acceleration can be converted into the plurality of acceleration points, the first acceleration curve can be rapidly generated by the plurality of acceleration points, and the first interval can be determined according to the maximum probability on the first acceleration curve, so that the acceleration of most users when the preset behaviors are executed falls in the first interval, and the applicability of the first interval is improved.
And S12, determining a second interval according to the second shaking acceleration.
In at least one embodiment of the present invention, a manner of determining the second interval by the electronic device according to the second shake acceleration is the same as a manner of determining the first interval by the electronic device according to the first shake acceleration curve, and details of the present invention are not repeated.
And S13, determining a target interval according to the first interval and the second interval, and determining a trigger user of the application program starting request.
In at least one embodiment of the present invention, the target interval refers to an acceleration generated when a majority of users perform the specific behavior, and meanwhile, the acceleration when the majority of users perform the preset behavior does not fall in the target interval.
In at least one embodiment of the present invention, the triggering user refers to a user who triggers generation of the application start request.
In at least one embodiment of the present invention, the electronic device determining a target interval according to the first interval and the second interval includes:
determining the intersection of the first interval and the second interval to obtain an interval intersection;
screening the shaking acceleration with the maximum value from the interval intersection as a first endpoint;
screening the shaking acceleration with the maximum value from the second interval to be used as a second endpoint;
and determining the target interval according to the first endpoint and the second endpoint.
For example, the first interval is (10, 30), the second interval is (20, 40), the intersection of the intervals is (20, 30) after determination, the first end point is determined to be 30, the second end point is determined to be 40, and then the target interval can be determined to be (30, 40).
Through the implementation mode, the situation that the value in the target interval belongs to the acceleration of most users when the preset behaviors are executed can be avoided, and therefore the accuracy of the target interval is improved.
In at least one embodiment of the present invention, the determining, by the electronic device, the triggering user of the application launch request includes:
acquiring detection time for detecting the application program starting request;
acquiring a target log corresponding to the detection time from a preset log list;
and extracting a login account from the target log, and determining the trigger user according to the login account.
By the aid of the method and the device, the login account which triggers the generation of the application program starting request can be determined, and the triggering user can be accurately determined as the login account can uniquely identify the user.
S14, selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user.
It is emphasized that the acceleration threshold may also be stored in a node of a blockchain in order to further ensure privacy and security of the acceleration threshold.
In at least one embodiment of the present invention, the acceleration threshold is determined according to the acceleration generated when the triggering user performs the preset action and the target interval.
In at least one embodiment of the present invention, the electronic device selecting, according to the preset behavior of the trigger user, an acceleration threshold from the target interval includes:
acquiring a plurality of behavior accelerations of the triggering user when the preset behavior is executed;
cleaning the plurality of behavior accelerations, and determining the plurality of cleaned behavior accelerations as cleaning accelerations;
screening the acceleration with the maximum value from the cleaning acceleration to be used as a target value;
and selecting the acceleration larger than the target value from the target interval as the acceleration threshold value.
Through right a plurality of action accelerations wash the processing, can avoid the great acceleration of deviation to the influence of acceleration threshold value, simultaneously, through according to triggering the user and carrying out the acceleration when predetermineeing the action selects the acceleration threshold value, improve the degree of accuracy of acceleration threshold value.
And S15, starting the target application program in the application program starting request, and monitoring the acceleration sensor when the target application program is started.
In at least one embodiment of the invention, the target application refers to the application indicated by the application start request. And the electronic equipment determines the target application program through the program identification carried in the application program starting request.
In at least one embodiment of the present invention, the acceleration sensor includes a three-axis acceleration sensor, a gyroscope, or the like. And the electronic equipment monitors the acceleration sensor by using a monitor.
And S16, acquiring a plurality of accelerations monitored from the acceleration sensor, and comparing the plurality of accelerations with the acceleration threshold.
In at least one embodiment of the present invention, the plurality of accelerations includes a plurality of axial accelerations. For example, the plurality of accelerations include an X-axis acceleration, a Y-axis acceleration, and a Z-axis acceleration.
In at least one embodiment of the present invention, the electronic device compares each acceleration with the acceleration threshold, and closes the target application program if the accelerations are all smaller than the acceleration threshold.
And S17, when any acceleration is larger than the acceleration threshold, determining a target axis according to the any acceleration, and starting a service function corresponding to the target axis.
In at least one embodiment of the present invention, the arbitrary acceleration refers to an acceleration greater than the acceleration threshold. The target axis refers to an axial direction corresponding to the acceleration with the largest value in the arbitrary accelerations, and the target axis may be an X axis, a Y axis, or a Z axis.
The business function refers to any function in the target application program, for example, the business function may be a function corresponding to credit card business transaction, or a function corresponding to loan business transaction.
In at least one embodiment of the present invention, the determining, by the electronic device, a target axis according to the arbitrary acceleration, and starting a service function corresponding to the target axis includes:
if the number of the arbitrary accelerations is multiple, determining the acceleration with the maximum value from the multiple arbitrary accelerations as a target acceleration;
determining an axial direction corresponding to the target acceleration as the target axis;
determining a function list corresponding to the target axis;
if a plurality of functions are stored in the function list, displaying the function list;
and starting the service function when detecting that the service function in the function list is triggered.
And the function list stores the functions commonly used by the trigger user.
By the embodiment, the target axis triggered by the trigger user can be determined, and then the function list corresponding to the target axis is displayed, so that the trigger user can quickly start the service function from the function list, and the starting efficiency of the service function is improved.
In at least one embodiment of the present invention, if there is one and only one target function in the function list, the target function is started.
According to the technical scheme, on the premise that the business function in the target application program is complicated, the needed business function can be quickly started on any page of the target application program through shaking of the equipment, so that the operation flexibility is improved.
Fig. 3 is a functional block diagram of a preferred embodiment of the service function starting apparatus according to the present invention. The service function starting device 11 includes an obtaining unit 110, a determining unit 111, a selecting unit 112, a monitoring unit 113, and a starting unit 114. The module/unit referred to herein is a series of computer readable instruction segments that can be accessed by the processor 13 and perform a fixed function and that are stored in the memory 12. In the present embodiment, the functions of the modules/units will be described in detail in the following embodiments.
When it is detected that an application start request is generated, the acquisition unit 110 acquires a first shake acceleration at the time when a plurality of users perform a preset action, and acquires a second shake acceleration at the time when the plurality of users perform a specific action.
In at least one embodiment of the present invention, the information carried in the application program initiation request includes, but is not limited to: trigger user, program identification, etc. The application may be the APP of any bank.
In at least one embodiment of the invention, the predetermined behavior comprises a combination of one or more of the following: sport activities, riding vehicles.
The specific behavior refers to a behavior in which the user intentionally shakes the electronic apparatus.
In at least one embodiment of the present invention, the acquiring unit 110 acquires the first shake acceleration when the plurality of users perform the preset action includes:
and determining a generating terminal of the application program starting request, and determining the terminal model of the generating terminal.
And the generating terminal is a terminal for generating the application program starting request.
The terminal model refers to a specific model of the generating terminal, for example, the terminal model may be hua be P30.
And determining all terminals corresponding to the terminal models, and determining holding users of all the terminals.
The holding user refers to a user holding a terminal with the terminal model.
And determining target sensors on all the terminals.
The target sensor refers to a three-axis acceleration sensor on all the terminals.
And monitoring the target sensor when the holding user executes the preset behavior.
The first shake acceleration is acquired from the target sensor.
By monitoring the target sensor on the terminal corresponding to the terminal model, the performance of the sensor on the terminal of different terminal models is different, so that the first shaking acceleration can be accurately acquired from the target sensor.
The determination unit 111 determines a first section from the first shake acceleration.
In at least one embodiment of the invention, the first acceleration profile is determined by accelerations resulting from the plurality of users performing the preset actions. The first interval refers to an acceleration generated when most users perform the preset behavior.
In at least one embodiment of the present invention, the determining unit 111 determines the first section according to the first shake acceleration includes:
calculating a probability of each first shake acceleration on the first shake acceleration;
generating a plurality of acceleration points according to each first shaking acceleration and each probability, and converting the plurality of acceleration points into the first acceleration curve;
obtaining a preset probability according to the first acceleration curve and a first preset value;
calculating the sum of the preset probability and a second preset value to obtain a first probability, and calculating the difference value of the preset probability and the second preset value to obtain a second probability;
calculating the mean value of the first shaking acceleration to obtain an acceleration mean value, and calculating the standard deviation of the first shaking acceleration according to the acceleration mean value to obtain an acceleration standard deviation;
calculating the product of the acceleration standard deviation and the first probability to obtain a first product, and calculating the sum of the first product and the acceleration mean value to obtain a first numerical value;
calculating the product of the acceleration standard deviation and the second probability to obtain a second product, and calculating the sum of the second product and the acceleration mean value to obtain a second numerical value;
and determining the first interval according to the first numerical value and the second numerical value.
The first preset value is set according to an application scene, and the value of the first preset value is not limited by the invention.
The left end point of the first interval is the first numerical value, and the right end point of the first interval is the second numerical value.
According to the embodiment, the first shaking acceleration can be converted into the plurality of acceleration points, the first acceleration curve can be rapidly generated by the plurality of acceleration points, and the first interval can be determined according to the maximum probability on the first acceleration curve, so that the acceleration of most users when the preset behaviors are executed falls in the first interval, and the applicability of the first interval is improved.
The determination unit 111 determines a second interval from the second shake acceleration.
In at least one embodiment of the present invention, a manner of determining the second interval by the determining unit 111 according to the second shake acceleration is the same as a manner of determining the first interval by the determining unit 111 according to the first shake acceleration curve, and details of the present invention are not repeated.
The determining unit 111 determines a target interval according to the first interval and the second interval, and determines a trigger user of the application program start request.
In at least one embodiment of the present invention, the target interval refers to an acceleration generated when a majority of users perform the specific behavior, and meanwhile, the acceleration when the majority of users perform the preset behavior does not fall in the target interval.
In at least one embodiment of the present invention, the triggering user refers to a user who triggers generation of the application start request.
In at least one embodiment of the present invention, the determining unit 111 determines the target interval according to the first interval and the second interval, including:
determining the intersection of the first interval and the second interval to obtain an interval intersection;
screening the shaking acceleration with the maximum value from the interval intersection as a first endpoint;
screening the shaking acceleration with the maximum value from the second interval to be used as a second endpoint;
and determining the target interval according to the first endpoint and the second endpoint.
For example, the first interval is (10, 30), the second interval is (20, 40), the intersection of the intervals is (20, 30) after determination, the first end point is determined to be 30, the second end point is determined to be 40, and then the target interval can be determined to be (30, 40).
Through the implementation mode, the situation that the value in the target interval belongs to the acceleration of most users when the preset behaviors are executed can be avoided, and therefore the accuracy of the target interval is improved.
In at least one embodiment of the present invention, the determining unit 111 determines that the triggering user of the application start request includes:
acquiring detection time for detecting the application program starting request;
acquiring a target log corresponding to the detection time from a preset log list;
and extracting a login account from the target log, and determining the trigger user according to the login account.
By the aid of the method and the device, the login account which triggers the generation of the application program starting request can be determined, and the triggering user can be accurately determined as the login account can uniquely identify the user.
The selecting unit 112 selects an acceleration threshold from the target interval according to the preset behavior of the trigger user.
It is emphasized that the acceleration threshold may also be stored in a node of a blockchain in order to further ensure privacy and security of the acceleration threshold.
In at least one embodiment of the present invention, the acceleration threshold is determined according to the acceleration generated when the triggering user performs the preset action and the target interval.
In at least one embodiment of the present invention, the selecting unit 112 selects the acceleration threshold from the target interval according to the preset behavior of the trigger user, including:
acquiring a plurality of behavior accelerations of the triggering user when the preset behavior is executed;
cleaning the plurality of behavior accelerations, and determining the plurality of cleaned behavior accelerations as cleaning accelerations;
screening the acceleration with the maximum value from the cleaning acceleration to be used as a target value;
and selecting the acceleration larger than the target value from the target interval as the acceleration threshold value.
Through right a plurality of action accelerations wash the processing, can avoid the great acceleration of deviation to the influence of acceleration threshold value, simultaneously, through according to triggering the user and carrying out the acceleration when predetermineeing the action selects the acceleration threshold value, improve the degree of accuracy of acceleration threshold value.
The monitoring unit 113 starts the target application in the application start request and monitors the acceleration sensor when the target application starts.
In at least one embodiment of the invention, the target application refers to the application indicated by the application start request. The monitoring unit 113 determines the target application program through the program identifier carried in the application program starting request.
In at least one embodiment of the present invention, the acceleration sensor includes a three-axis acceleration sensor, a gyroscope, or the like. The monitoring unit 113 monitors the acceleration sensor using a monitor.
The acquiring unit 110 acquires a plurality of accelerations monitored from the acceleration sensor and compares the plurality of accelerations with the acceleration threshold.
In at least one embodiment of the present invention, the plurality of accelerations includes a plurality of axial accelerations. For example, the plurality of accelerations include an X-axis acceleration, a Y-axis acceleration, and a Z-axis acceleration.
In at least one embodiment of the present invention, the obtaining unit 110 compares each acceleration with the acceleration threshold, and closes the target application program if the accelerations are all smaller than the acceleration threshold.
When any acceleration is greater than the acceleration threshold, the starting unit 114 determines a target axis according to the any acceleration, and starts a service function corresponding to the target axis.
In at least one embodiment of the present invention, the arbitrary acceleration refers to an acceleration greater than the acceleration threshold. The target axis refers to an axial direction corresponding to the acceleration with the largest value in the arbitrary accelerations, and the target axis may be an X axis, a Y axis, or a Z axis.
The business function refers to any function in the target application program, for example, the business function may be a function corresponding to credit card business transaction, or a function corresponding to loan business transaction.
In at least one embodiment of the present invention, the starting unit 114 determines a target axis according to the arbitrary acceleration, and starting the service function corresponding to the target axis includes:
if the number of the arbitrary accelerations is multiple, determining the acceleration with the maximum value from the multiple arbitrary accelerations as a target acceleration;
determining an axial direction corresponding to the target acceleration as the target axis;
determining a function list corresponding to the target axis;
if a plurality of functions are stored in the function list, displaying the function list;
and starting the service function when detecting that the service function in the function list is triggered.
And the function list stores the functions commonly used by the trigger user.
By the embodiment, the target axis triggered by the trigger user can be determined, and then the function list corresponding to the target axis is displayed, so that the trigger user can quickly start the service function from the function list, and the starting efficiency of the service function is improved.
In at least one embodiment of the present invention, if there is one and only one target function in the function list, the target function is started.
According to the technical scheme, on the premise that the business function in the target application program is complicated, the needed business function can be quickly started on any page of the target application program through shaking of the equipment, so that the operation flexibility is improved.
Fig. 4 is a schematic structural diagram of an electronic device according to a preferred embodiment of the method for implementing service function activation of the present invention.
In one embodiment of the present invention, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer readable instructions, such as a service function initiation program, stored in the memory 12 and executable on the processor 13.
It will be appreciated by a person skilled in the art that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation of the electronic device 1, and that it may comprise more or less components than shown, or some components may be combined, or different components, e.g. the electronic device 1 may further comprise an input output device, a network access device, a bus, etc.
The Processor 13 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The processor 13 is an operation core and a control center of the electronic device 1, and is connected to each part of the whole electronic device 1 by various interfaces and lines, and executes an operating system of the electronic device 1 and various installed application programs, program codes, and the like.
Illustratively, the computer readable instructions may be partitioned into one or more modules/units that are stored in the memory 12 and executed by the processor 13 to implement the present invention. The one or more modules/units may be a series of computer readable instruction segments capable of performing specific functions, which are used for describing the execution process of the computer readable instructions in the electronic device 1. For example, the computer readable instructions may be partitioned into an acquisition unit 110, a determination unit 111, a selection unit 112, a listening unit 113, and an activation unit 114.
The memory 12 may be used for storing the computer readable instructions and/or modules, and the processor 13 implements various functions of the electronic device 1 by executing or executing the computer readable instructions and/or modules stored in the memory 12 and invoking data stored in the memory 12. The memory 12 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. The memory 12 may include non-volatile and volatile memories, such as: a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage device.
The memory 12 may be an external memory and/or an internal memory of the electronic device 1. Further, the memory 12 may be a memory having a physical form, such as a memory stick, a TF Card (Trans-flash Card), or the like.
The integrated modules/units of the electronic device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by hardware that is configured to be instructed by computer readable instructions, which may be stored in a computer readable storage medium, and when the computer readable instructions are executed by a processor, the steps of the method embodiments may be implemented.
Wherein the computer readable instructions comprise computer readable instruction code which may be in source code form, object code form, an executable file or some intermediate form, and the like. The computer-readable medium may include: any entity or device capable of carrying said computer readable instruction code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM).
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
With reference to fig. 1, the memory 12 in the electronic device 1 stores computer-readable instructions to implement a service function starting method, and the processor 13 can execute the computer-readable instructions to implement:
when the generation of an application program starting request is detected, acquiring first shaking acceleration of a plurality of users when executing a preset action, and acquiring second shaking acceleration of the plurality of users when executing a specific action;
determining a first interval according to the first shaking acceleration;
determining a second interval according to the second shaking acceleration;
determining a target interval according to the first interval and the second interval, and determining a trigger user of the application program starting request;
selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
starting a target application program in the application program starting request, and monitoring an acceleration sensor when the target application program is started;
acquiring a plurality of accelerations monitored from the acceleration sensor, and comparing the plurality of accelerations with the acceleration threshold;
and when any acceleration is larger than the acceleration threshold, determining a target axis according to the any acceleration, and starting a service function corresponding to the target axis.
Specifically, the processor 13 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer readable instructions, which is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The computer readable storage medium has computer readable instructions stored thereon, wherein the computer readable instructions when executed by the processor 13 are configured to implement the steps of:
when the generation of an application program starting request is detected, acquiring first shaking acceleration of a plurality of users when executing a preset action, and acquiring second shaking acceleration of the plurality of users when executing a specific action;
determining a first interval according to the first shaking acceleration;
determining a second interval according to the second shaking acceleration;
determining a target interval according to the first interval and the second interval, and determining a trigger user of the application program starting request;
selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
starting a target application program in the application program starting request, and monitoring an acceleration sensor when the target application program is started;
acquiring a plurality of accelerations monitored from the acceleration sensor, and comparing the plurality of accelerations with the acceleration threshold;
and when any acceleration is larger than the acceleration threshold, determining a target axis according to the any acceleration, and starting a service function corresponding to the target axis.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means described in the present invention can also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for starting service function is characterized in that the method for starting service function comprises the following steps:
when the generation of an application program starting request is detected, acquiring first shaking acceleration of a plurality of users when executing a preset action, and acquiring second shaking acceleration of the plurality of users when executing a specific action;
determining a first interval according to the first shaking acceleration;
determining a second interval according to the second shaking acceleration;
determining a target interval according to the first interval and the second interval, and determining a trigger user of the application program starting request;
selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
starting a target application program in the application program starting request, and monitoring an acceleration sensor when the target application program is started;
acquiring a plurality of accelerations monitored from the acceleration sensor, and comparing the plurality of accelerations with the acceleration threshold;
and when any acceleration is larger than the acceleration threshold, determining a target axis according to the any acceleration, and starting a service function corresponding to the target axis.
2. The service function startup method according to claim 1, wherein said obtaining a first shake acceleration at which a plurality of users perform a preset action comprises:
determining a generating terminal of the application program starting request, and determining a terminal model of the generating terminal;
determining all terminals corresponding to the terminal models, and determining holding users of all the terminals;
determining target sensors on all the terminals;
monitoring the target sensor when the holding user executes the preset behavior;
the first shake acceleration is acquired from the target sensor.
3. The business function launching method of claim 1, wherein said determining a triggering user of the application launching request comprises:
acquiring detection time for detecting the application program starting request;
acquiring a target log corresponding to the detection time from a preset log list;
and extracting a login account from the target log, and determining the trigger user according to the login account.
4. The service function startup method according to claim 1, wherein said selecting an acceleration threshold from the target interval according to the preset behavior of the trigger user comprises:
acquiring a plurality of behavior accelerations of the triggering user when the preset behavior is executed;
cleaning the plurality of behavior accelerations, and determining the plurality of cleaned behavior accelerations as cleaning accelerations;
screening the acceleration with the maximum value from the cleaning acceleration to be used as a target value;
and selecting the acceleration larger than the target value from the target interval as the acceleration threshold value.
5. The method for starting service function according to claim 1, wherein said determining a target axis according to the arbitrary acceleration and starting the service function corresponding to the target axis comprises:
if the number of the arbitrary accelerations is multiple, determining the acceleration with the maximum value from the multiple arbitrary accelerations as a target acceleration;
determining an axial direction corresponding to the target acceleration as the target axis;
determining a function list corresponding to the target axis;
if a plurality of functions are stored in the function list, displaying the function list;
and starting the service function when detecting that the service function in the function list is triggered.
6. The service function initiation method of claim 1 wherein said determining a first interval based on said first shake acceleration comprises:
calculating a probability of each first shake acceleration on the first shake acceleration;
generating a plurality of acceleration points according to each first shaking acceleration and each probability, and converting the acceleration points into a first acceleration curve;
obtaining a preset probability according to the first acceleration curve and a first preset value;
calculating the sum of the preset probability and a second preset value to obtain a first probability, and calculating the difference value of the preset probability and the second preset value to obtain a second probability;
calculating the mean value of the first shaking acceleration to obtain an acceleration mean value, and calculating the standard deviation of the first shaking acceleration according to the acceleration mean value to obtain an acceleration standard deviation;
calculating the product of the acceleration standard deviation and the first probability to obtain a first product, and calculating the sum of the first product and the acceleration mean value to obtain a first numerical value;
calculating the product of the acceleration standard deviation and the second probability to obtain a second product, and calculating the sum of the second product and the acceleration mean value to obtain a second numerical value;
and determining the first interval according to the first numerical value and the second numerical value.
7. The method for initiating a service function according to claim 1, wherein the determining a target interval according to the first interval and the second interval comprises:
determining the intersection of the first interval and the second interval to obtain an interval intersection;
screening the shaking acceleration with the maximum value from the interval intersection as a first endpoint;
screening the shaking acceleration with the maximum value from the second interval to be used as a second endpoint;
and determining the target interval according to the first endpoint and the second endpoint.
8. A service function initiating device, comprising:
the device comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring first shaking acceleration when a plurality of users execute preset behaviors and acquiring second shaking acceleration when the users execute specific behaviors when detecting that an application program starting request is generated;
a determination unit configured to determine a first section from the first shake acceleration;
the determining unit is further used for determining a second interval according to the second shaking acceleration;
the determining unit is further configured to determine a target interval according to the first interval and the second interval, and determine a trigger user of the application program starting request;
the selecting unit is used for selecting an acceleration threshold value from the target interval according to the preset behavior of the trigger user;
the monitoring unit is used for starting a target application program in the application program starting request and monitoring an acceleration sensor when the target application program is started;
the acquisition unit is further used for acquiring a plurality of accelerations monitored from the acceleration sensor and comparing the plurality of accelerations with the acceleration threshold;
and the starting unit is used for determining a target axis according to any acceleration when the any acceleration is greater than the acceleration threshold value, and starting a service function corresponding to the target axis.
9. An electronic device, characterized in that the electronic device comprises:
a memory storing computer readable instructions; and
a processor executing computer readable instructions stored in the memory to implement the service function initiation method of any of claims 1 to 7.
10. A computer-readable storage medium characterized by: the computer-readable storage medium stores computer-readable instructions, which are executed by a processor in an electronic device to implement the service function initiation method according to any one of claims 1 to 7.
CN202011479292.3A 2020-12-15 2020-12-15 Service function starting method and related equipment Active CN112559072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011479292.3A CN112559072B (en) 2020-12-15 2020-12-15 Service function starting method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011479292.3A CN112559072B (en) 2020-12-15 2020-12-15 Service function starting method and related equipment

Publications (2)

Publication Number Publication Date
CN112559072A CN112559072A (en) 2021-03-26
CN112559072B true CN112559072B (en) 2022-04-08

Family

ID=75063741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011479292.3A Active CN112559072B (en) 2020-12-15 2020-12-15 Service function starting method and related equipment

Country Status (1)

Country Link
CN (1) CN112559072B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166128A1 (en) * 2016-03-30 2017-10-05 华为技术有限公司 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode
CN110196438A (en) * 2019-06-17 2019-09-03 广东顺德雷舜信息科技有限公司 Localization method, positioning device and terminal device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938808B (en) * 2012-11-23 2016-03-23 小米科技有限责任公司 Information method for recording in mobile terminal and device
US9930251B2 (en) * 2014-02-27 2018-03-27 Huawei Device Co., Ltd. Method for quick photographing by mobile terminal, and mobile terminal
CN104519188A (en) * 2014-12-26 2015-04-15 上海斐讯数据通信技术有限公司 Automatic recording system and method for movable terminal in communication
CN105975294A (en) * 2016-03-31 2016-09-28 乐视控股(北京)有限公司 Startup method and device of mobile terminal application program
CN105930144A (en) * 2016-04-12 2016-09-07 上海斐讯数据通信技术有限公司 Method and system for rapidly switching and starting application programs of intelligent terminal
CN109565529B (en) * 2016-10-31 2021-07-09 华为技术有限公司 Application starting method and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166128A1 (en) * 2016-03-30 2017-10-05 华为技术有限公司 Method, device and mobile terminal for entering power saving mode, and method, device and mobile terminal for exiting power saving mode
CN110196438A (en) * 2019-06-17 2019-09-03 广东顺德雷舜信息科技有限公司 Localization method, positioning device and terminal device

Also Published As

Publication number Publication date
CN112559072A (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN112669138B (en) Data processing method and related equipment
CN111949708B (en) Multi-task prediction method, device, equipment and medium based on time sequence feature extraction
CN111831485A (en) Data recovery method, device, electronic equipment and medium
CN114035827A (en) Application program updating method, device, equipment and storage medium
CN111641678A (en) Task scheduling method and device, electronic equipment and medium
CN111796936A (en) Request processing method and device, electronic equipment and medium
CN114418398A (en) Scene task development method, device, equipment and storage medium
CN112199483B (en) Information input assisting method and device, electronic equipment and storage medium
CN114116108A (en) Dynamic rendering method, device, equipment and storage medium
CN112559072B (en) Service function starting method and related equipment
CN115037790B (en) Abnormal registration identification method, device, equipment and storage medium
CN111277626A (en) Server upgrading method and device, electronic equipment and medium
CN114360732B (en) Medical data analysis method, device, electronic equipment and storage medium
CN112491839B (en) Cross-system-based login processing method and device, computer equipment and medium
CN114329095A (en) System logic diagram generation method, device, equipment and storage medium
CN114003784A (en) Request recording method, device, equipment and storage medium
CN112434237A (en) Page loading method and device, electronic equipment and storage medium
CN114490262A (en) Database monitoring method, device, equipment and storage medium
CN112926293B (en) Method, device and equipment for switching form items and storage medium
CN112330080A (en) Factor screening method, device, equipment and medium based on connectivity graph
CN112817742A (en) Data migration method, device, equipment and storage medium
CN112819305A (en) Service index analysis method, device, equipment and storage medium
CN112527830A (en) Data query method, device, equipment and storage medium
CN112016889A (en) Process construction method and device, electronic equipment and storage medium
CN113179380B (en) Signature recording method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant