WO2020042807A1 - Target function calling method and apparatus, mobile terminal and storage medium - Google Patents

Target function calling method and apparatus, mobile terminal and storage medium Download PDF

Info

Publication number
WO2020042807A1
WO2020042807A1 PCT/CN2019/096454 CN2019096454W WO2020042807A1 WO 2020042807 A1 WO2020042807 A1 WO 2020042807A1 CN 2019096454 W CN2019096454 W CN 2019096454W WO 2020042807 A1 WO2020042807 A1 WO 2020042807A1
Authority
WO
WIPO (PCT)
Prior art keywords
mobile terminal
motion trajectory
target function
motion
function
Prior art date
Application number
PCT/CN2019/096454
Other languages
French (fr)
Chinese (zh)
Inventor
黄金龙
Original Assignee
阿里巴巴集团控股有限公司
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 阿里巴巴集团控股有限公司 filed Critical 阿里巴巴集团控股有限公司
Publication of WO2020042807A1 publication Critical patent/WO2020042807A1/en

Links

Images

Classifications

    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Definitions

  • the embodiments of the present specification relate to the field of computer technology, and in particular, to a method, a device, a mobile terminal, and a storage medium for invoking a target function.
  • the current smart mobile terminal is widely used in mobile payment, shooting and other scenarios.
  • the shooting function or code scanning function of the mobile terminal needs to be called.
  • payment is completed by scanning a two-dimensional code
  • information is acquired by scanning a two-dimensional code
  • photographing or video recording is performed by calling a shooting function of a mobile terminal.
  • target functions Calling the above-mentioned functions of the mobile terminal (hereinafter referred to as target functions) often requires the user to find the icon or button corresponding to the target function in the corresponding application program, and implement the call to the target function by clicking or other methods.
  • the code scanning function needs to be called quickly.
  • the shooting function needs to be called quickly.
  • the embodiments of the present specification provide a method, a device, a mobile terminal, and a storage medium for invoking a target function, so as to achieve the purpose of quickly invoking the target function.
  • an embodiment of the present specification provides a method for invoking a target function, including:
  • the detection trigger condition When the detection trigger condition is satisfied, detect the motion trajectory of the mobile terminal; match the detected motion trajectory with the target function motion trajectory, which is the motion trajectory generated by the mobile terminal calling the target function; confirm the match Then, the target function of the mobile terminal is called.
  • an embodiment of the present specification provides a device for invoking a target function, including:
  • a motion trajectory detection module configured to detect a motion trajectory of a mobile terminal when a detection trigger condition is satisfied
  • a motion trajectory matching module configured to match the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
  • the target function calling module is configured to call the target function of the mobile terminal after the matching is confirmed.
  • an embodiment of the present specification provides a mobile terminal including: a memory for storing a computer program; and a processor for implementing the steps of the foregoing method embodiment when the computer program is executed.
  • an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the foregoing method embodiment are implemented.
  • the inventor discovered through creative labor that the movement trajectory generated by the mobile terminal calling the target function has certain rules. Therefore, when the detection trigger condition is satisfied, the motion trajectory of the mobile terminal is detected, and the detected motion trajectory is matched with the target function motion trajectory. If they match, it means that the user has a need to call the target function, so the mobile is called The target function of the terminal.
  • the user does not need to manually trigger the call to the target function, but only needs to make an action using the target function (for example, the action of picking up the mobile terminal to scan the code).
  • the technical solution provided by the embodiment of the present specification The user's intention can be automatically recognized, and then the target function is called, and the implementation method is fast and convenient.
  • FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present specification
  • FIG. 2 is a schematic diagram of a coordinate direction of a gyroscope according to an embodiment of the present specification
  • FIG. 3 is a schematic diagram of a coordinate direction of an accelerometer in a first posture of a mobile terminal according to an embodiment of the present specification
  • FIG. 4 is a schematic diagram of a coordinate direction of an accelerometer in a second posture of a mobile terminal according to an embodiment of the present specification
  • FIG. 6 is a schematic diagram of a device provided by an embodiment of the present specification.
  • the posture of the mobile terminal when the user scans or takes pictures with the mobile terminal is different from the posture when the user usually uses the mobile terminal or when the mobile terminal is just taken out.
  • the mobile terminal moves from taking out to moving
  • the terminal aligns with the identification code and starts scanning.
  • the movement trajectory of the mobile terminal in the space is regularly found.
  • the user first takes out and lifts the mobile terminal, and then aligns the identification code.
  • the mobile terminal accelerates in a direction perpendicular to the ground, and the deceleration finally stops (the acceleration result is reflected in the vertical movement Distance), and the mobile terminal will also have rotation (the rotation result is reflected in the included angle with the horizontal line.
  • the mobile terminal can be obtained during scanning or shooting Motion characteristics (ie, target function motion trajectory), once it is detected that the user's mobile terminal's motion trajectory matches the target function's motion trajectory, then it can be determined that the user wants to open the camera to start scanning or shooting, and directly enter the code scanning page Or take a page, there is no need for the user to click the scan button, thereby reducing the user's operation path and quickly calling the target function.
  • Motion characteristics ie, target function motion trajectory
  • the motion sensor of the mobile terminal may be a gyroscope, an accelerometer, or the like.
  • the gyroscope is based on the principle of conservation of angular momentum, and measures the rotation rate along a certain coordinate axis (X axis, Y axis, Z axis).
  • X axis, Y axis, Z axis In use, when the rotor of the gyroscope rotates at high speed, it always points to a fixed direction. When the moving direction of the moving object deviates from the predetermined direction, the gyroscope can feel it.
  • the accelerometer is a sensor capable of measuring acceleration.
  • the reference coordinate system of the accelerometer is established based on the mobile terminal.
  • the planes where the X and Y axes are located are coplanar with the mobile terminal, and the Z axis is always perpendicular to the plane of the mobile terminal.
  • the accelerometer detects the force on three axes, of which gravity cannot be ignored. Take Figure 3 as an example.
  • the mobile terminal is vertical, the negative direction of the Y axis points to the basic salary.
  • the value obtained by the accelerometer is (0, -1, 0).
  • the mobile terminal receives 0 in the X-axis and Z-axis directions, and receives gravity in the Y-axis direction, and its acceleration is the acceleration of gravity; taking Figure 4 as an example, if the mobile terminal is tilted, the gravity that can be obtained through the accelerometer is on the Y-axis And the Z-axis components, the tilt angle in the X-axis is calculated by geometric principles.
  • the rotation angle of the mobile terminal on the X-axis, Y-axis, or Z-axis can be calculated by an accelerometer.
  • the rotation rate of the mobile terminal on the X-axis, Y-axis, or Z-axis can be obtained through a gyroscope.
  • the movement speed and distance of the Y-axis (the vertical direction of the ground) and the Z-axis can be calculated from the data obtained by the gyroscope and accelerometer.
  • an embodiment of the present specification provides a method for invoking a target function. Referring to FIG. 5, the method includes:
  • Step 501 When a detection trigger condition is satisfied, detect a motion trajectory of the mobile terminal.
  • the detection time of the motion trajectory may be a preset fixed time period or a variable time period.
  • the motion trajectory is detected by a motion sensor, for example, it can be detected by a gyroscope and an accelerometer, and it can also be detected only by a gyroscope or only an accelerometer.
  • Step 503 Match the detected motion trajectory with the target function motion trajectory, and the target function motion trajectory is a motion trajectory generated by the mobile terminal calling the target function.
  • either all the detected motion trajectories can be matched with the target motion trajectory, or part of the detected motion trajectories can be matched with the target motion trajectory.
  • the motion data can be the moving distance and movement in a certain direction Speed, acceleration of movement, rotation angle in a certain direction, angular velocity, angular acceleration.
  • Step 505 After confirming the match, the target function of the mobile terminal is called.
  • the target function of the mobile terminal may include, but is not limited to, a code scanning function or a shooting function.
  • the method provided in the embodiment of the present specification detects a motion trajectory of a mobile terminal when a detection trigger condition is satisfied, and matches the detected motion trajectory with a target function motion trajectory. If they match, it means that the user needs to call the target function. Therefore, the target function of the mobile terminal is called.
  • the user does not need to manually trigger a call to the target function, but only needs to perform an action using the target function (such as picking up a mobile terminal to perform a code scanning action).
  • the method provided in the embodiment of the present specification can be used. Automatically recognize the user's intent, and then call the target function, and its implementation is fast and convenient.
  • the above detection trigger condition may include, but is not limited to, at least one of the following: a target application of the mobile terminal is called; the motion data of the mobile terminal reaches a set threshold, and the like. If the target function is a shooting function, the above detection trigger condition may include, but is not limited to, at least one of the following: the mobile terminal is woken up; the motion data of the mobile terminal reaches a set threshold.
  • the foregoing step 503. there are multiple implementation manners of the foregoing step 503. For example, they can be implemented by threshold matching, or by model matching. If it is implemented by model matching, specifically, the detected motion trajectory is input into the target function motion trajectory model.
  • the target function motion trajectory model is obtained by training using the target function motion trajectory sample, and the target function motion trajectory sample is based on the target function motion. The trajectory is processed.
  • deep learning models such as CNN and RNN (LSTM) may be used, but are not limited thereto.
  • the model depth can be 4 or 5 layers.
  • CNN as an example, several layers of convolution, several layers of pooling can be used, and tanh or relu is used as the activation function.
  • a target function motion trajectory model may be trained using target function motion trajectory samples of a historical use target function process of multiple users.
  • the movement characteristics of the mobile terminal are different for each person during the code scanning process. For example, some people have long arms, so the vertical movement distance is longer.
  • These data can be extracted from the user ’s historical code scanning process data. , Thereby improving the recognition rate.
  • the target functional motion trajectory is obtained by training using the historical target functional motion trajectory samples of the mobile terminal. That is, the target function motion trajectory model is trained by using the target function motion trajectory samples obtained by the user's own historical code scanning process, thereby improving the matching accuracy.
  • the method of acquiring the historical target function motion trajectory sample of the mobile terminal may be, but is not limited to: recording a motion trajectory of the mobile terminal when a recording trigger condition is satisfied; when the confirmation target function is called, according to the recorded motion trajectory Generate historical target function motion trajectory samples.
  • the target application of the mobile terminal when the target application of the mobile terminal is called, it means that the user may need to call the code scanning function. Therefore, when the target application of the mobile terminal is called, the recording trigger condition is met. However, when the target application is called, it does not mean that the target function must be called. Taking Alipay as an example, the user opens Alipay. Although it means that the user may use its code scanning function, it does not mean that the user must use the code scanning function.
  • the trigger condition is satisfied, although the motion trajectory of the motion terminal is recorded, it does not mean that the motion trajectory must be the motion trajectory of the target function.
  • the recorded motion trajectory can be generated into the historical target function only after it is determined that the target function is called. Motion trajectory samples.
  • the recording of the motion trajectory can be real-time, that is, the motion trajectory can be recorded in real time when the trigger condition is dynamically detected; the recording of the motion trajectory can also be non-real-time, for example, by calling the log of the mobile terminal or the log of the target application, According to the information recorded in the log, determine whether the target application is called, the motion trajectory after each call, and whether the call is to call the target function.
  • the recording trigger condition is not limited to the target application of the mobile terminal being called, but may also be other triggering conditions, for example, the mobile terminal ’s motion data reaches a set threshold to start recording, and is generated after it is determined that the target function is called sample.
  • the mobile terminal when the mobile terminal is woken up, it means that the user may need to call the shooting function of the camera. Therefore, when the mobile terminal is woken up, the recording trigger condition is satisfied.
  • the wake-up of the mobile terminal does not mean that the target function is necessarily called. Therefore, when the trigger condition is met, although the motion track of the motion terminal is recorded, it does not mean that the motion track must be the motion track of the target function. After the target function is called, the recorded motion trajectory can be used to generate historical target function motion trajectory samples.
  • the recording of the motion track can be real-time, that is, when the trigger condition is dynamically detected, the motion track can be recorded in real time; the recording of the motion track can also be non-real-time, for example, by calling the log of the mobile terminal, according to the information recorded in the log Determine whether the camera is called, the motion trajectory after each call, and whether the call is to call the target function.
  • the recording trigger condition is not limited to the mobile terminal's mobile terminal being woken up, but also other trigger conditions.
  • the mobile terminal's motion data reaches a set threshold to start recording, and a sample is generated after it is determined that the target function is called. .
  • the code scanning function and the shooting function can Using the same motion trajectory model, correspondingly, the historical trajectory scanning motion trajectory sample and the historical shooting function trajectory sample can be used to train a common motion trajectory model.
  • the recording trigger condition may be at least one of the following conditions: the target application is called, the mobile terminal is woken up, the motion data reaches a set threshold, and so on.
  • the motion trajectory includes a collection of motion data of the mobile terminal, and the motion data is obtained according to data collected by the motion sensor according to a set sampling frequency.
  • an embodiment of the present specification provides a device for invoking a target function. Please refer to FIG. 6, including:
  • a motion trajectory detection module 601 configured to detect a motion trajectory of a mobile terminal when a detection trigger condition is satisfied
  • a motion trajectory matching module 602 configured to match the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
  • the target function calling module 603 is configured to call the target function of the mobile terminal after confirming the matching.
  • the device provided in the embodiment of the present specification detects a motion trajectory of a mobile terminal when a detection trigger condition is met, and matches the detected motion trajectory with a target function motion trajectory. If they match, it means that the user needs to call the target function. Therefore, the target function of the mobile terminal is called.
  • the user does not need to manually trigger the call to the target function, but only needs to make an action using the target function (for example, the action of picking up the mobile terminal to scan the code).
  • the user's intention can be automatically recognized, and then the target function is called, and the implementation method is fast and convenient.
  • the motion trajectory matching module is specifically configured to:
  • the detected motion trajectory is input into a target function motion trajectory model, and the target function motion trajectory model is obtained by training using target function motion trajectory samples.
  • the target function motion trajectory is obtained by training using historical target function motion trajectory samples of the mobile terminal.
  • a historical motion trajectory sample acquisition module for:
  • the target function of the mobile terminal includes a code scanning function
  • the recording trigger condition includes:
  • a target application of the mobile terminal is called
  • the target function of the mobile terminal includes a shooting function
  • the recording trigger condition includes: the mobile terminal is woken up.
  • the motion trajectory includes a collection of motion data of the mobile terminal, and the motion data is obtained according to data collected by a motion sensor of the mobile terminal according to a set sampling frequency.
  • the target function of the mobile terminal includes a code scanning function
  • the detection trigger condition includes at least one of the following: a target application of the mobile terminal is called; and the motion data of the mobile terminal reaches a set threshold.
  • the target function of the mobile terminal includes a shooting function
  • the detection trigger condition includes at least one of the following: the mobile terminal is woken up; the motion data of the mobile terminal reaches a set threshold.
  • an embodiment of the present specification provides a mobile terminal including: a memory for storing a computer program; and a processor for implementing the steps of any of the foregoing method embodiments when the computer program is executed.
  • an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the foregoing method embodiments are implemented.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Abstract

The embodiments of the present description provide a target function calling method and apparatus, a mobile terminal and a storage medium. Said method comprises: when a detection triggering condition is satisfied, detecting a motion trajectory of a mobile terminal; matching the detected motion trajectory with a target function motion trajectory, the target function motion trajectory being a motion trajectory of the mobile terminal generated by calling a target function; and upon confirmation of the matching, calling the target function of the mobile terminal. The technical solution provided in the present description can automatically identify a user's intention, and then calls a target function, and is fast and easy to implement.

Description

一种调用目标功能的方法、装置、移动终端及存储介质Method, device, mobile terminal and storage medium for calling target function 技术领域Technical field
本说明书实施例涉及计算机技术领域,尤其涉及一种调用目标功能的方法、装置、移动终端及存储介质。The embodiments of the present specification relate to the field of computer technology, and in particular, to a method, a device, a mobile terminal, and a storage medium for invoking a target function.
背景技术Background technique
目前的智能移动终端广泛应用于移动支付、拍摄等场景中,在诸多场景中,都需要调用移动终端的拍摄功能或扫码功能。例如,通过扫描二维码完成支付,又例如,通过扫描二维码获取信息,还例如,通过调用移动终端的拍摄功能拍照或录制视频。The current smart mobile terminal is widely used in mobile payment, shooting and other scenarios. In many scenarios, the shooting function or code scanning function of the mobile terminal needs to be called. For example, payment is completed by scanning a two-dimensional code, and information is acquired by scanning a two-dimensional code, and for example, photographing or video recording is performed by calling a shooting function of a mobile terminal.
调用移动终端的上述功能(以下简称目标功能),往往需要用户在相应的应用程序中找到目标功能对应的图标或按钮,通过点击或其他方式实现对目标功能的调用。Calling the above-mentioned functions of the mobile terminal (hereinafter referred to as target functions) often requires the user to find the icon or button corresponding to the target function in the corresponding application program, and implement the call to the target function by clicking or other methods.
在上述场景中,往往需要快速调用目标功能。例如,为缩短交易等待时间,需要快速调用扫码功能,又例如,为了拍摄转瞬即逝的美景或捕捉其他经常带瞬间,需要快速调用拍摄功能。In the above scenarios, it is often necessary to quickly call the target function. For example, in order to shorten the transaction waiting time, the code scanning function needs to be called quickly. For example, in order to capture the fleeting beauty or capture other frequently-used moments, the shooting function needs to be called quickly.
发明内容Summary of the Invention
本说明书实施例提供及一种调用目标功能的方法、装置、移动终端和存储介质,以达到快速调用目标功能的目的。The embodiments of the present specification provide a method, a device, a mobile terminal, and a storage medium for invoking a target function, so as to achieve the purpose of quickly invoking the target function.
第一方面,本说明书实施例提供一种调用目标功能的方法,包括:In a first aspect, an embodiment of the present specification provides a method for invoking a target function, including:
当满足检测触发条件时,检测移动终端的运动轨迹;将检测到的所述运动轨迹与目标功能运动轨迹匹配,所述目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹;在确认匹配后,调用所述移动终端的目标功能。When the detection trigger condition is satisfied, detect the motion trajectory of the mobile terminal; match the detected motion trajectory with the target function motion trajectory, which is the motion trajectory generated by the mobile terminal calling the target function; confirm the match Then, the target function of the mobile terminal is called.
第二方面,本说明书实施例提供一种调用目标功能的装置,包括:In a second aspect, an embodiment of the present specification provides a device for invoking a target function, including:
运动轨迹检测模块,用于当满足检测触发条件时,检测移动终端的运动轨迹;A motion trajectory detection module, configured to detect a motion trajectory of a mobile terminal when a detection trigger condition is satisfied;
运动轨迹匹配模块,用于将检测到的所述运动轨迹与目标功能运动轨迹匹配,所述目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹;A motion trajectory matching module, configured to match the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
目标功能调用模块,用于在确认匹配后,调用所述移动终端的目标功能。The target function calling module is configured to call the target function of the mobile terminal after the matching is confirmed.
第三方面,本说明书实施例提供一种移动终端,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述方法实施例的步骤。In a third aspect, an embodiment of the present specification provides a mobile terminal including: a memory for storing a computer program; and a processor for implementing the steps of the foregoing method embodiment when the computer program is executed.
第四方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述方法实施例的步骤。In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the foregoing method embodiment are implemented.
本说明书实施例有益效果如下:The beneficial effects of the embodiments of this specification are as follows:
发明人通过创造性劳动发现,移动终端调用目标功能所产生的运动轨迹有一定规律。因此,当满足检测触发条件时,检测移动终端的运动轨迹,并将检测到的运动轨迹与目标功能运动轨迹匹配,若匹配,则意味着用户有调用目标功能的需求,因此,调用所述移动终端的目标功能。采用本说明书实施例提供的技术方案,用户不需要手动触发对目标功能的调用,只需要作出使用目标功能的动作(例如拿起移动终端作出扫码的动作),本说明书实施例提供的技术方案即可自动识别用户的意图,进而调用目标功能,其实现方式快速、便捷。The inventor discovered through creative labor that the movement trajectory generated by the mobile terminal calling the target function has certain rules. Therefore, when the detection trigger condition is satisfied, the motion trajectory of the mobile terminal is detected, and the detected motion trajectory is matched with the target function motion trajectory. If they match, it means that the user has a need to call the target function, so the mobile is called The target function of the terminal. With the technical solution provided by the embodiment of the present specification, the user does not need to manually trigger the call to the target function, but only needs to make an action using the target function (for example, the action of picking up the mobile terminal to scan the code). The technical solution provided by the embodiment of the present specification The user's intention can be automatically recognized, and then the target function is called, and the implementation method is fast and convenient.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本说明书实施例提供的场景示意图;FIG. 1 is a schematic diagram of a scenario provided by an embodiment of the present specification;
图2为本说明书实施例提供的陀螺仪的坐标方向示意图;2 is a schematic diagram of a coordinate direction of a gyroscope according to an embodiment of the present specification;
图3为本说明书实施例提供的移动终端第一姿态时加速度计的坐标方向示意图;3 is a schematic diagram of a coordinate direction of an accelerometer in a first posture of a mobile terminal according to an embodiment of the present specification;
图4为本说明书实施例提供的移动终端第二姿态的加速度计的坐标方向示意图;4 is a schematic diagram of a coordinate direction of an accelerometer in a second posture of a mobile terminal according to an embodiment of the present specification;
图5为本说明书实施例提供的方法流程图;5 is a flowchart of a method provided by an embodiment of the present specification;
图6为本说明书实施例提供的装置示意图。FIG. 6 is a schematic diagram of a device provided by an embodiment of the present specification.
具体实施方式detailed description
为了更好的理解上述技术方案,下面通过附图以及具体实施例对本说明书实施例的技术方案做详细的说明,应当理解本说明书实施例以及实施例中的具体特征是对本说明书实施例技术方案的详细的说明,而不是对本说明书技术方案的限定,在不冲突的情况下,本说明书实施例以及实施例中的技术特征可以相互组合。In order to better understand the above technical solutions, the technical solutions of the embodiments of the present specification will be described in detail through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present specification and specific features in the embodiments are the technical solutions of the embodiments of the present specification. The detailed description is not a limitation on the technical solutions of the present specification. In the case of no conflict, the embodiments of the present specification and the technical features in the embodiments can be combined with each other.
本说明书实施例广泛应用于扫码、拍摄等场景。The embodiments of this specification are widely used in scenes such as code scanning and shooting.
以扫码为例,如图1所示,用户使用移动终端扫码或拍照时移动终端的姿势与用户 平时使用移动终端或者刚拿出移动终端时的姿势不同,移动终端从拿出来,到移动终端对准识别码开始扫码,这个过程中移动终端在空间中的运动轨迹是有规律可寻的。假设识别码张贴在墙壁上,用户首先拿出并举起移动终端,进而对准识别码,这一过程中移动终端在与地面的垂直方向上有一个加速,减速最后几乎停止(加速结果体现在垂直移动距离),且移动终端还会有旋转(旋转结果体现在与水平线的夹角角度。这些数据都是可以通过移动终端内置的运动传感器获取并计算出来。因此可以获取移动终端在扫码或拍摄过程的运动特征(即目标功能运动轨迹),一旦检测到用户使用的移动终端的运动轨迹符合目标功能运动轨迹,那么就可以判断出用户想要打开摄像头开始扫码或拍摄,而直接进入扫码页面或拍摄页面,无需用户点击扫码按钮,从而减少用户操作路径,快速调用目标功能。Taking code scanning as an example, as shown in FIG. 1, the posture of the mobile terminal when the user scans or takes pictures with the mobile terminal is different from the posture when the user usually uses the mobile terminal or when the mobile terminal is just taken out. The mobile terminal moves from taking out to moving The terminal aligns with the identification code and starts scanning. In this process, the movement trajectory of the mobile terminal in the space is regularly found. Assuming the identification code is posted on the wall, the user first takes out and lifts the mobile terminal, and then aligns the identification code. In this process, the mobile terminal accelerates in a direction perpendicular to the ground, and the deceleration finally stops (the acceleration result is reflected in the vertical movement Distance), and the mobile terminal will also have rotation (the rotation result is reflected in the included angle with the horizontal line. These data can be obtained and calculated by the mobile terminal's built-in motion sensor. Therefore, the mobile terminal can be obtained during scanning or shooting Motion characteristics (ie, target function motion trajectory), once it is detected that the user's mobile terminal's motion trajectory matches the target function's motion trajectory, then it can be determined that the user wants to open the camera to start scanning or shooting, and directly enter the code scanning page Or take a page, there is no need for the user to click the scan button, thereby reducing the user's operation path and quickly calling the target function.
本说明书实施例中,移动终端的运动传感器可以是陀螺仪、加速度计等等。In the embodiment of the present specification, the motion sensor of the mobile terminal may be a gyroscope, an accelerometer, or the like.
其中,如图2所示,陀螺仪是基于角动量守恒的原理,沿着某个特定的坐标轴(X轴、Y轴、Z轴)测量旋转速率。在使用中,陀螺仪的转子在高速旋转时,始终指向一个固定的方向,当运动物体的运动方向偏离预定方向时,陀螺仪就可以感受出来。Among them, as shown in FIG. 2, the gyroscope is based on the principle of conservation of angular momentum, and measures the rotation rate along a certain coordinate axis (X axis, Y axis, Z axis). In use, when the rotor of the gyroscope rotates at high speed, it always points to a fixed direction. When the moving direction of the moving object deviates from the predetermined direction, the gyroscope can feel it.
其中,加速度计是一种能够测量加速度的传感器。如图3所示,加速度计的参考坐标系是基于移动终端建立的,其X轴和Y轴所在平面与移动终端共面,Z轴始终垂直于移动终端的平面。加速度计检测在三个轴上的受力情况,其中重力不可忽略,以图3为例,移动终端垂直时,Y轴负方向指向底薪,加速度计获得的值为(0,-1,0),即移动终端在X轴和Z轴方向受力为0,在Y轴方向受到重力,其加速度为重力加速度;以图4为例,若移动终端倾斜,可以通过加速度计获取的重力在Y轴和Z轴的分量,通过几何原理计算出在X轴的倾斜角度。Among them, the accelerometer is a sensor capable of measuring acceleration. As shown in FIG. 3, the reference coordinate system of the accelerometer is established based on the mobile terminal. The planes where the X and Y axes are located are coplanar with the mobile terminal, and the Z axis is always perpendicular to the plane of the mobile terminal. The accelerometer detects the force on three axes, of which gravity cannot be ignored. Take Figure 3 as an example. When the mobile terminal is vertical, the negative direction of the Y axis points to the basic salary. The value obtained by the accelerometer is (0, -1, 0). That is, the mobile terminal receives 0 in the X-axis and Z-axis directions, and receives gravity in the Y-axis direction, and its acceleration is the acceleration of gravity; taking Figure 4 as an example, if the mobile terminal is tilted, the gravity that can be obtained through the accelerometer is on the Y-axis And the Z-axis components, the tilt angle in the X-axis is calculated by geometric principles.
综上,移动终端在X轴、Y轴或Z轴的旋转角度可以通过加速度计计算得到,移动终端在X轴、Y轴或Z轴上的旋转速率可以通过陀螺仪获得,移动终端在X轴、Y轴(地面的垂直方向)、Z轴的运动速度和距离可以通过陀螺仪和加速度计获取的数据综合计算得出。In summary, the rotation angle of the mobile terminal on the X-axis, Y-axis, or Z-axis can be calculated by an accelerometer. The rotation rate of the mobile terminal on the X-axis, Y-axis, or Z-axis can be obtained through a gyroscope. The movement speed and distance of the Y-axis (the vertical direction of the ground) and the Z-axis can be calculated from the data obtained by the gyroscope and accelerometer.
第一方面,本说明书实施例提供一种调用目标功能的方法,请参考图5,包括:In a first aspect, an embodiment of the present specification provides a method for invoking a target function. Referring to FIG. 5, the method includes:
步骤501、当满足检测触发条件时,检测移动终端的运动轨迹。Step 501: When a detection trigger condition is satisfied, detect a motion trajectory of the mobile terminal.
其中,运动轨迹的检测时间可以是预先设定的固定时长,也可以是可变时长。The detection time of the motion trajectory may be a preset fixed time period or a variable time period.
其中,运动轨迹是通过运动传感器检测的,例如,可以通过陀螺仪和加速度计检测, 还可以仅通过陀螺仪或仅通过加速度计检测。The motion trajectory is detected by a motion sensor, for example, it can be detected by a gyroscope and an accelerometer, and it can also be detected only by a gyroscope or only an accelerometer.
步骤503、将检测到的上述运动轨迹与目标功能运动轨迹匹配,目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹。Step 503: Match the detected motion trajectory with the target function motion trajectory, and the target function motion trajectory is a motion trajectory generated by the mobile terminal calling the target function.
其中,既可以将检测到的全部运动轨迹与目标运动轨迹进行匹配,也可以将检测到的部分运动轨迹与目标运动轨迹进行匹配。Among them, either all the detected motion trajectories can be matched with the target motion trajectory, or part of the detected motion trajectories can be matched with the target motion trajectory.
以固定检测时长为例,假设目标运动轨迹是时间长度为2秒,检测时长也为2秒,则将检测到的2秒运动轨迹与目标运动轨迹进行匹配;以不固定检测时长为例,假设目标运动轨迹的时间长度为2秒,检测了5秒的移动终端运动轨迹,那么,优选地使用其中2秒运动轨迹与目标功能运动轨迹进行匹配。运动轨迹的截取方式有多种,例如,取最后2秒运动轨迹,又例如,截取从运动数据满足设定阈值起的2秒的运动轨迹,运动数据可以是在某个方向的移动距离、移动速度、移动加速度、在某个方向上的旋转角度、角速度、角加速度。Take the fixed detection time as an example, assuming that the target motion trajectory is 2 seconds in length and the detection time is also 2 seconds, then match the detected 2 sec motion trajectory with the target motion trajectory; take the fixed detection time as an example, suppose The time length of the target motion trajectory is 2 seconds, and the mobile terminal motion trajectory of 5 seconds is detected. Then, it is preferable to use the 2 sec motion trajectory to match the target function motion trajectory. There are many ways to intercept motion trajectories, for example, taking the last 2 seconds of motion trajectory, and for example, intercepting the motion trajectory of 2 seconds from the time when the motion data meets the set threshold. The motion data can be the moving distance and movement in a certain direction Speed, acceleration of movement, rotation angle in a certain direction, angular velocity, angular acceleration.
步骤505、在确认匹配后,调用移动终端的目标功能。Step 505: After confirming the match, the target function of the mobile terminal is called.
本说明书实施例提供的方法,移动终端的目标功能可以但不仅限于包括扫码功能或拍摄功能。In the method provided in the embodiment of the present specification, the target function of the mobile terminal may include, but is not limited to, a code scanning function or a shooting function.
本说明书实施例提供的方法,当满足检测触发条件时,检测移动终端的运动轨迹,并将检测到的运动轨迹与目标功能运动轨迹匹配,若匹配,则意味着用户有调用目标功能的需求,因此,调用所述移动终端的目标功能。采用本说明书实施例提供的方法,用户不需要手动触发对目标功能的调用,只需要作出使用目标功能的动作(例如拿起移动终端作出扫码的动作),本说明书实施例提供的方法即可自动识别用户的意图,进而调用目标功能,其实现方式快速、便捷。The method provided in the embodiment of the present specification detects a motion trajectory of a mobile terminal when a detection trigger condition is satisfied, and matches the detected motion trajectory with a target function motion trajectory. If they match, it means that the user needs to call the target function. Therefore, the target function of the mobile terminal is called. By adopting the method provided in the embodiment of the present specification, the user does not need to manually trigger a call to the target function, but only needs to perform an action using the target function (such as picking up a mobile terminal to perform a code scanning action). The method provided in the embodiment of the present specification can be used. Automatically recognize the user's intent, and then call the target function, and its implementation is fast and convenient.
本说明书实施例中,若目标功能是扫码功能,上述检测触发条件可以但不仅限于包括以下至少一条:移动终端的目标应用程序被调用;移动终端的运动数据达到设定阈值等等。若目标功能是拍摄功能,上述检测触发条件可以但不仅限于包括以下至少一条:移动终端被唤醒;移动终端的运动数据达到设定阈值。In the embodiment of the present specification, if the target function is a code scanning function, the above detection trigger condition may include, but is not limited to, at least one of the following: a target application of the mobile terminal is called; the motion data of the mobile terminal reaches a set threshold, and the like. If the target function is a shooting function, the above detection trigger condition may include, but is not limited to, at least one of the following: the mobile terminal is woken up; the motion data of the mobile terminal reaches a set threshold.
在应用过程中,可以设置单一触发条件,也可以设置多个触发条件。During the application process, you can set a single trigger condition or multiple trigger conditions.
本说明书实施例中,上述步骤503的实现方式有多种,例如,可以通过阈值匹配的方式实现,也可以通过模型匹配的方式实现。若采用模型匹配的方式实现,具体的,将检测到的运动轨迹输入目标功能运动轨迹模型,目标功能运动轨迹模型是使用目标功能 运动轨迹样本训练得到的,目标功能运动轨迹样本是对目标功能运动轨迹进行处理得到的。In the embodiment of the present specification, there are multiple implementation manners of the foregoing step 503. For example, they can be implemented by threshold matching, or by model matching. If it is implemented by model matching, specifically, the detected motion trajectory is input into the target function motion trajectory model. The target function motion trajectory model is obtained by training using the target function motion trajectory sample, and the target function motion trajectory sample is based on the target function motion. The trajectory is processed.
本说明书实施例中,可以但不仅限于采用深度学习模型,例如CNN和RNN(LSTM)。其中,模型深度可以为4或者5层,以CNN为例,可以使用几层卷积、几层池化,使用tanh或relu作为激活函数。In the embodiments of the present specification, deep learning models such as CNN and RNN (LSTM) may be used, but are not limited thereto. Among them, the model depth can be 4 or 5 layers. Taking CNN as an example, several layers of convolution, several layers of pooling can be used, and tanh or relu is used as the activation function.
本说明书实施例中,可以使用多个用户的历史使用目标功能过程的目标功能运动轨迹样本训练目标功能运动轨迹模型。In the embodiment of the present specification, a target function motion trajectory model may be trained using target function motion trajectory samples of a historical use target function process of multiple users.
每个人在扫码过程中,移动终端运动特征是不尽相同的,比如有的人的手臂长,那么在垂直方向的运动距离就长一些,这些数据可以通过用户的历史扫码过程的数据提取,进而提升识别率。优选地,使用上述移动终端的历史目标功能运动轨迹样本训练得到目标功能运动轨迹。即使用用户自己的历史扫码过程得到的目标功能运动轨迹样本训练目标功能运动轨迹模型,从而提高匹配的精度。The movement characteristics of the mobile terminal are different for each person during the code scanning process. For example, some people have long arms, so the vertical movement distance is longer. These data can be extracted from the user ’s historical code scanning process data. , Thereby improving the recognition rate. Preferably, the target functional motion trajectory is obtained by training using the historical target functional motion trajectory samples of the mobile terminal. That is, the target function motion trajectory model is trained by using the target function motion trajectory samples obtained by the user's own historical code scanning process, thereby improving the matching accuracy.
其中,所述移动终端的历史目标功能运动轨迹样本的获取方式可以但不仅限于是:在满足记录触发条件时,记录所述移动终端的运动轨迹;当确认目标功能被调用,根据记录的运动轨迹生成历史目标功能运动轨迹样本。The method of acquiring the historical target function motion trajectory sample of the mobile terminal may be, but is not limited to: recording a motion trajectory of the mobile terminal when a recording trigger condition is satisfied; when the confirmation target function is called, according to the recorded motion trajectory Generate historical target function motion trajectory samples.
以扫码为例,当移动终端的目标应用程序被调用,意味着用户有可能需要调用扫码功能,因此,移动终端的目标应用程序被调用即满足了记录触发条件。但目标应用程序被调用,不意味着一定调用了目标功能,以支付宝为例,用户打开了支付宝,虽然意味着用户有可能使用其扫码功能,但不意味着用户必然使用扫码功能,因此,在满足触发条件时,虽然记录运动终端的运动轨迹,但并不意味着该运动轨迹一定是目标功能的运动轨迹,只有在确定目标功能被调用后,才能将记录的运动轨迹生成历史目标功能运动轨迹样本。Taking code scanning as an example, when the target application of the mobile terminal is called, it means that the user may need to call the code scanning function. Therefore, when the target application of the mobile terminal is called, the recording trigger condition is met. However, when the target application is called, it does not mean that the target function must be called. Taking Alipay as an example, the user opens Alipay. Although it means that the user may use its code scanning function, it does not mean that the user must use the code scanning function. When the trigger condition is satisfied, although the motion trajectory of the motion terminal is recorded, it does not mean that the motion trajectory must be the motion trajectory of the target function. The recorded motion trajectory can be generated into the historical target function only after it is determined that the target function is called. Motion trajectory samples.
其中,运动轨迹的记录可以是实时的,即在动态检测到触发条件满足时,实时记录运动轨迹;运动轨迹的记录也可以是非实时的,例如通过调用移动终端的日志或者目标应用程序的日志,根据日志中记录的信息确定目标应用程序是否被调用,每次调用后的运动轨迹,以及本次调用是否为了调用目标功能。The recording of the motion trajectory can be real-time, that is, the motion trajectory can be recorded in real time when the trigger condition is dynamically detected; the recording of the motion trajectory can also be non-real-time, for example, by calling the log of the mobile terminal or the log of the target application, According to the information recorded in the log, determine whether the target application is called, the motion trajectory after each call, and whether the call is to call the target function.
应当指出的是,记录触发条件不仅限于移动终端的目标应用程序被调用,还可以是其他触发条件,例如,移动终端的运动数据达到设定阈值即开始记录,且在确定目标功能被调用后生成样本。It should be noted that the recording trigger condition is not limited to the target application of the mobile terminal being called, but may also be other triggering conditions, for example, the mobile terminal ’s motion data reaches a set threshold to start recording, and is generated after it is determined that the target function is called sample.
以拍摄为例,当移动终端被唤醒,意味着用户有可能需要调用摄像头的拍摄功能,因此,移动终端的移动终端被唤醒即满足了记录触发条件。但移动终端被唤醒,不意味着一定调用了目标功能,因此,在满足触发条件时,虽然记录运动终端的运动轨迹,但并不意味着该运动轨迹一定是目标功能的运动轨迹,只有在确定目标功能被调用后,才能将记录的运动轨迹生成历史目标功能运动轨迹样本。Taking shooting as an example, when the mobile terminal is woken up, it means that the user may need to call the shooting function of the camera. Therefore, when the mobile terminal is woken up, the recording trigger condition is satisfied. However, the wake-up of the mobile terminal does not mean that the target function is necessarily called. Therefore, when the trigger condition is met, although the motion track of the motion terminal is recorded, it does not mean that the motion track must be the motion track of the target function. After the target function is called, the recorded motion trajectory can be used to generate historical target function motion trajectory samples.
其中,运动轨迹的记录可以是实时的,即在动态检测到触发条件满足时,实时记录运动轨迹;运动轨迹的记录也可以是非实时的,例如通过调用移动终端的日志,根据日志中记录的信息确定摄像头是否被调用,每次调用后的运动轨迹,以及本次调用是否为了调用目标功能。The recording of the motion track can be real-time, that is, when the trigger condition is dynamically detected, the motion track can be recorded in real time; the recording of the motion track can also be non-real-time, for example, by calling the log of the mobile terminal, according to the information recorded in the log Determine whether the camera is called, the motion trajectory after each call, and whether the call is to call the target function.
应当指出的是,记录触发条件不仅限于移动终端的移动终端被唤醒,还可以是其他触发条件,例如,移动终端的运动数据达到设定阈值即开始记录,且在确定目标功能被调用后生成样本。It should be noted that the recording trigger condition is not limited to the mobile terminal's mobile terminal being woken up, but also other trigger conditions. For example, the mobile terminal's motion data reaches a set threshold to start recording, and a sample is generated after it is determined that the target function is called. .
发明人在实现本申请的过程中注意到,使用移动终端扫码功能和拍摄功能的时候,都需要调用摄像头,且拍摄轨迹很相似,因此,本说明书实施例中,扫码功能和拍摄功能可以使用相同的运动轨迹模型,相应的,历史扫码功能运动轨迹样本和历史拍摄功能运动轨迹样本均可以用来训练共同的运动轨迹模型。相应的,记录触发条件可以是以下至少一个条件:目标应用程序被调用、移动终端被唤醒、运动数据达到设定阈值等等。The inventor noticed in the process of implementing this application that when using the mobile terminal ’s code scanning function and shooting function, the camera needs to be called, and the shooting trajectories are very similar. Therefore, in the embodiment of this specification, the code scanning function and the shooting function can Using the same motion trajectory model, correspondingly, the historical trajectory scanning motion trajectory sample and the historical shooting function trajectory sample can be used to train a common motion trajectory model. Correspondingly, the recording trigger condition may be at least one of the following conditions: the target application is called, the mobile terminal is woken up, the motion data reaches a set threshold, and so on.
本说明书实施例中,运动轨迹包括移动终端的运动数据的集合,运动数据是根据运动传感器按照设定的采样频率采集的数据得到的。In the embodiment of the present specification, the motion trajectory includes a collection of motion data of the mobile terminal, and the motion data is obtained according to data collected by the motion sensor according to a set sampling frequency.
第二方面,基于同一发明构思,本说明书实施例提供一种调用目标功能的装置,请参考图6,包括:In the second aspect, based on the same inventive concept, an embodiment of the present specification provides a device for invoking a target function. Please refer to FIG. 6, including:
运动轨迹检测模块601,用于当满足检测触发条件时,检测移动终端的运动轨迹;A motion trajectory detection module 601, configured to detect a motion trajectory of a mobile terminal when a detection trigger condition is satisfied;
运动轨迹匹配模块602,用于将检测到的所述运动轨迹与目标功能运动轨迹匹配,所述目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹;A motion trajectory matching module 602, configured to match the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
目标功能调用模块603,用于在确认匹配后,调用所述移动终端的目标功能。The target function calling module 603 is configured to call the target function of the mobile terminal after confirming the matching.
本说明书实施例提供的装置,当满足检测触发条件时,检测移动终端的运动轨迹,并将检测到的运动轨迹与目标功能运动轨迹匹配,若匹配,则意味着用户有调用目标功能的需求,因此,调用所述移动终端的目标功能。采用本说明书实施例提供的技术方案,用户不需要手动触发对目标功能的调用,只需要作出使用目标功能的动作(例如拿起移 动终端作出扫码的动作),本说明书实施例提供的技术方案即可自动识别用户的意图,进而调用目标功能,其实现方式快速、便捷。The device provided in the embodiment of the present specification detects a motion trajectory of a mobile terminal when a detection trigger condition is met, and matches the detected motion trajectory with a target function motion trajectory. If they match, it means that the user needs to call the target function. Therefore, the target function of the mobile terminal is called. With the technical solution provided in the embodiment of the present specification, the user does not need to manually trigger the call to the target function, but only needs to make an action using the target function (for example, the action of picking up the mobile terminal to scan the code). The user's intention can be automatically recognized, and then the target function is called, and the implementation method is fast and convenient.
可选的,所述运动轨迹匹配模块具体用于:Optionally, the motion trajectory matching module is specifically configured to:
将检测到的所述运动轨迹输入目标功能运动轨迹模型,所述目标功能运动轨迹模型是使用目标功能运动轨迹样本训练得到的。The detected motion trajectory is input into a target function motion trajectory model, and the target function motion trajectory model is obtained by training using target function motion trajectory samples.
可选的,所述目标功能运动轨迹是使用所述移动终端的历史目标功能运动轨迹样本训练得到的。Optionally, the target function motion trajectory is obtained by training using historical target function motion trajectory samples of the mobile terminal.
可选的,还包括历史运动轨迹样本获取模块,用于:Optionally, it also includes a historical motion trajectory sample acquisition module for:
在满足记录触发条件时,记录所述移动终端的运动轨迹;当确认目标功能被调用,根据记录的运动轨迹生成历史目标功能运动轨迹样本。When the recording trigger condition is satisfied, record the motion trajectory of the mobile terminal; when it is confirmed that the target function is called, generate a historical target function motion trajectory sample according to the recorded motion trajectory.
可选的,所述移动终端的目标功能包括扫码功能,所述记录触发条件包括:Optionally, the target function of the mobile terminal includes a code scanning function, and the recording trigger condition includes:
所述移动终端的目标应用程序被调用;A target application of the mobile terminal is called;
可选的,所述移动终端的目标功能包括拍摄功能,所述记录触发条件包括:所述移动终端被唤醒。Optionally, the target function of the mobile terminal includes a shooting function, and the recording trigger condition includes: the mobile terminal is woken up.
可选的,所述运动轨迹包括所述移动终端的运动数据的集合,所述运动数据是根据所述移动终端的运动传感器按照设定的采样频率采集到的数据得到的。Optionally, the motion trajectory includes a collection of motion data of the mobile terminal, and the motion data is obtained according to data collected by a motion sensor of the mobile terminal according to a set sampling frequency.
可选的,所述移动终端的目标功能包括扫码功能,所述检测触发条件包括以下至少一条:所述移动终端的目标应用程序被调用;所述移动终端的运动数据达到设定阈值。Optionally, the target function of the mobile terminal includes a code scanning function, and the detection trigger condition includes at least one of the following: a target application of the mobile terminal is called; and the motion data of the mobile terminal reaches a set threshold.
可选的,所述移动终端的目标功能包括拍摄功能,所述检测触发条件包括以下至少一条:所述移动终端被唤醒;所述移动终端的运动数据达到设定阈值。Optionally, the target function of the mobile terminal includes a shooting function, and the detection trigger condition includes at least one of the following: the mobile terminal is woken up; the motion data of the mobile terminal reaches a set threshold.
本说明书实施例提供的装置,其实现方式可以参照上述方法实施例的描述,重复之处不再赘述。For the implementation manner of the device provided in the embodiments of the present specification, reference may be made to the description of the foregoing method embodiments, and duplicated details are not described repeatedly.
第三方面,本说明书实施例提供一种移动终端,包括:存储器,用于存储计算机程序;处理器,用于执行所述计算机程序时实现上述任意方法实施例的步骤。In a third aspect, an embodiment of the present specification provides a mobile terminal including: a memory for storing a computer program; and a processor for implementing the steps of any of the foregoing method embodiments when the computer program is executed.
第四方面,本说明书实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任意方法实施例的步骤。In a fourth aspect, an embodiment of the present specification provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of any of the foregoing method embodiments are implemented.
本说明书是参照根据本说明书实施例的方法、设备(系统)、和计算机程序产品的 流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的设备。This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of this specification. It should be understood that each process and / or block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, so that the instructions generated by the processor of the computer or other programmable data processing device are used to generate instructions A device for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令设备的制造品,该指令设备实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including the instruction device, the instructions The device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.
尽管已描述了本说明书的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本说明书范围的所有变更和修改。Although the preferred embodiments of the present specification have been described, those skilled in the art can make other changes and modifications to these embodiments once they know the basic inventive concepts. Therefore, the following claims are intended to be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this description.
显然,本领域的技术人员可以对本说明书进行各种改动和变型而不脱离本说明书的精神和范围。这样,倘若本说明书的这些修改和变型属于本说明书权利要求及其等同技术的范围之内,则本说明书也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this specification without departing from the spirit and scope of this specification. In this way, if these modifications and variations of this specification belong to the scope of the claims of this specification and their equivalent technologies, this specification also intends to include these modifications and variations.

Claims (16)

  1. 一种调用目标功能的方法,其特征在于,包括:A method for invoking a target function, comprising:
    当满足检测触发条件时,检测移动终端的运动轨迹;When the detection trigger condition is satisfied, detecting the motion trajectory of the mobile terminal;
    将检测到的所述运动轨迹与目标功能运动轨迹匹配,所述目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹;Matching the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
    在确认匹配后,调用所述移动终端的目标功能。After confirming the match, the target function of the mobile terminal is called.
  2. 根据权利要求1所述的方法,其特征在于,所述将检测到的所述运动轨迹与目标功能运动轨迹匹配,包括:The method according to claim 1, wherein the matching the detected motion trajectory with a target functional motion trajectory comprises:
    将检测到的所述运动轨迹输入目标功能运动轨迹模型,所述目标功能运动轨迹模型是使用目标功能运动轨迹样本训练得到的。The detected motion trajectory is input into a target function motion trajectory model, and the target function motion trajectory model is obtained by training using target function motion trajectory samples.
  3. 根据权利要求2所述的方法,其特征在于,所述目标功能运动轨迹是使用所述移动终端的历史目标功能运动轨迹样本训练得到的。The method according to claim 2, wherein the target function motion trajectory is obtained by training using a historical target function motion trajectory sample of the mobile terminal.
  4. 根据权利要求3所述的方法,其特征在于,所述移动终端的历史目标功能运动轨迹样本的获取方式包括:The method according to claim 3, wherein the acquiring method of the historical target function motion trajectory sample of the mobile terminal comprises:
    在满足记录触发条件时,记录所述移动终端的运动轨迹;When the recording trigger condition is satisfied, recording the motion trajectory of the mobile terminal;
    当确认目标功能被调用,根据记录的运动轨迹生成历史目标功能运动轨迹样本。When it is confirmed that the target function is called, a historical target function motion trajectory sample is generated according to the recorded motion trajectory.
  5. 根据权利要求4所述的方法,其特征在于,所述移动终端的目标功能包括扫码功能,所述记录触发条件包括:所述移动终端的目标应用程序被调用;;The method according to claim 4, wherein the target function of the mobile terminal comprises a code scanning function, and the recording trigger condition comprises: a target application of the mobile terminal is called;
    或者,or,
    所述移动终端的目标功能包括拍摄功能,所述记录触发条件包括:The target function of the mobile terminal includes a shooting function, and the recording trigger condition includes:
    所述移动终端被唤醒。The mobile terminal is woken up.
  6. 根据权利要求1~5任一项所述的方法,其特征在于,所述运动轨迹包括所述移动终端的运动数据的集合,所述运动数据是根据所述移动终端的运动传感器按照设定的采样频率采集到的数据得到的。The method according to any one of claims 1 to 5, wherein the motion trajectory includes a set of motion data of the mobile terminal, and the motion data is set according to a motion sensor of the mobile terminal according to a set Obtained from the data collected at the sampling frequency.
  7. 根据权利要求1~5任一项所述的方法,其特征在于,所述移动终端的目标功能包括扫码功能,所述检测触发条件包括以下至少一条:The method according to any one of claims 1 to 5, wherein a target function of the mobile terminal includes a code scanning function, and the detection trigger condition includes at least one of the following:
    所述移动终端的目标应用程序被调用;A target application of the mobile terminal is called;
    所述移动终端的运动数据达到设定阈值;The motion data of the mobile terminal reaches a set threshold;
    所述移动终端的目标功能包括拍摄功能,所述检测触发条件包括以下至少一条:The target function of the mobile terminal includes a shooting function, and the detection trigger condition includes at least one of the following:
    所述移动终端被唤醒;The mobile terminal is woken up;
    所述移动终端的运动数据达到设定阈值。The motion data of the mobile terminal reaches a set threshold.
  8. 一种调用目标功能的装置,其特征在于,包括:A device for invoking a target function, comprising:
    运动轨迹检测模块,用于当满足检测触发条件时,检测移动终端的运动轨迹;A motion trajectory detection module, configured to detect a motion trajectory of a mobile terminal when a detection trigger condition is satisfied;
    运动轨迹匹配模块,用于将检测到的所述运动轨迹与目标功能运动轨迹匹配,所述目标功能运动轨迹为移动终端调用目标功能所产生的运动轨迹;A motion trajectory matching module, configured to match the detected motion trajectory with a target function motion trajectory, where the target function motion trajectory is a motion trajectory generated by a mobile terminal calling a target function;
    目标功能调用模块,用于在确认匹配后,调用所述移动终端的目标功能。The target function calling module is configured to call the target function of the mobile terminal after the matching is confirmed.
  9. 根据权利要求8所述的装置,其特征在于,所述运动轨迹匹配模块具体用于:The apparatus according to claim 8, wherein the motion trajectory matching module is specifically configured to:
    将检测到的所述运动轨迹输入目标功能运动轨迹模型,所述目标功能运动轨迹模型是使用目标功能运动轨迹样本训练得到的。The detected motion trajectory is input into a target function motion trajectory model, and the target function motion trajectory model is obtained by training using target function motion trajectory samples.
  10. 根据权利要求8所述的装置,其特征在于,所述目标功能运动轨迹是使用所述移动终端的历史目标功能运动轨迹样本训练得到的。The device according to claim 8, wherein the target function motion trajectory is obtained by training using a historical target function motion trajectory sample of the mobile terminal.
  11. 根据权利要求10所述的装置,其特征在于,还包括历史运动轨迹样本获取模块,用于:The device according to claim 10, further comprising a historical motion trajectory sample acquisition module, configured to:
    在满足记录触发条件时,记录所述移动终端的运动轨迹;When the recording trigger condition is satisfied, recording the motion trajectory of the mobile terminal;
    当确认目标功能被调用,根据记录的运动轨迹生成历史目标功能运动轨迹样本。When it is confirmed that the target function is called, a historical target function motion trajectory sample is generated according to the recorded motion trajectory.
  12. 根据权利要求11所述的装置,其特征在于,所述移动终端的目标功能包括扫码功能,所述记录触发条件包括:The device according to claim 11, wherein the target function of the mobile terminal comprises a code scanning function, and the recording trigger condition comprises:
    所述移动终端的目标应用程序被调用;A target application of the mobile terminal is called;
    或者,or,
    所述移动终端的目标功能包括拍摄功能,所述记录触发条件包括:The target function of the mobile terminal includes a shooting function, and the recording trigger condition includes:
    所述移动终端被唤醒。The mobile terminal is woken up.
  13. 根据权利要求8~12任一项所述的装置,其特征在于,所述运动轨迹包括所述移动终端的运动数据的集合,所述运动数据是根据所述移动终端的运动传感器按照设定的采样频率采集到的数据得到的。The device according to any one of claims 8 to 12, wherein the motion trajectory includes a set of motion data of the mobile terminal, and the motion data is set according to a motion sensor of the mobile terminal. Obtained from the data collected at the sampling frequency.
  14. 根据权利要求8~12任一项所述的装置,其特征在于,所述移动终端的目标功能包括扫码功能,所述检测触发条件包括以下至少一条:The device according to any one of claims 8 to 12, wherein a target function of the mobile terminal includes a code scanning function, and the detection trigger condition includes at least one of the following:
    所述移动终端的目标应用程序被调用;A target application of the mobile terminal is called;
    所述移动终端的运动数据达到设定阈值;The motion data of the mobile terminal reaches a set threshold;
    所述移动终端的目标功能包括拍摄功能,所述检测触发条件包括以下至少一条:The target function of the mobile terminal includes a shooting function, and the detection trigger condition includes at least one of the following:
    所述移动终端被唤醒;The mobile terminal is woken up;
    所述移动终端的运动数据达到设定阈值。The motion data of the mobile terminal reaches a set threshold.
  15. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    存储器,用于存储计算机程序;Memory for storing computer programs;
    处理器,用于执行所述计算机程序时实现权利要求1~7任一项所述方法的步骤。A processor, configured to implement the steps of the method according to any one of claims 1 to 7 when executing the computer program.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1~7中任一项所述的方法的步骤。A computer-readable storage medium having stored thereon a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
PCT/CN2019/096454 2018-08-31 2019-07-18 Target function calling method and apparatus, mobile terminal and storage medium WO2020042807A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811015715.9 2018-08-31
CN201811015715.9A CN109324737A (en) 2018-08-31 2018-08-31 A kind of method, apparatus, mobile terminal and the storage medium of invocation target function

Publications (1)

Publication Number Publication Date
WO2020042807A1 true WO2020042807A1 (en) 2020-03-05

Family

ID=65263718

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/096454 WO2020042807A1 (en) 2018-08-31 2019-07-18 Target function calling method and apparatus, mobile terminal and storage medium

Country Status (3)

Country Link
CN (1) CN109324737A (en)
TW (1) TWI717772B (en)
WO (1) WO2020042807A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324737A (en) * 2018-08-31 2019-02-12 阿里巴巴集团控股有限公司 A kind of method, apparatus, mobile terminal and the storage medium of invocation target function
CN111738736B (en) * 2020-07-24 2020-12-18 支付宝(杭州)信息技术有限公司 Method and system for data feedback
CN113283493A (en) * 2021-05-19 2021-08-20 Oppo广东移动通信有限公司 Sample acquisition method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160077627A1 (en) * 2014-09-17 2016-03-17 Red Hat, Inc. User interface for a device
CN106325467A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Method and device for controlling mobile terminal, and mobile terminal
CN107613214A (en) * 2017-10-25 2018-01-19 广东工业大学 A kind of camera interface access method, apparatus and system
CN107656684A (en) * 2017-09-21 2018-02-02 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN109324737A (en) * 2018-08-31 2019-02-12 阿里巴巴集团控股有限公司 A kind of method, apparatus, mobile terminal and the storage medium of invocation target function

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103309618A (en) * 2013-07-02 2013-09-18 姜洪明 Mobile operating system
CN104216753A (en) * 2014-10-10 2014-12-17 深圳市东方拓宇科技有限公司 Method for rapidly starting application program for terminal, and terminal
CN107209580A (en) * 2015-01-29 2017-09-26 艾尔希格科技股份有限公司 Identification system and method based on action

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160077627A1 (en) * 2014-09-17 2016-03-17 Red Hat, Inc. User interface for a device
CN106325467A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Method and device for controlling mobile terminal, and mobile terminal
CN107656684A (en) * 2017-09-21 2018-02-02 珠海市魅族科技有限公司 Pay control method, device, computer installation and computer-readable recording medium
CN107613214A (en) * 2017-10-25 2018-01-19 广东工业大学 A kind of camera interface access method, apparatus and system
CN109324737A (en) * 2018-08-31 2019-02-12 阿里巴巴集团控股有限公司 A kind of method, apparatus, mobile terminal and the storage medium of invocation target function

Also Published As

Publication number Publication date
TW202011772A (en) 2020-03-16
TWI717772B (en) 2021-02-01
CN109324737A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
WO2020042807A1 (en) Target function calling method and apparatus, mobile terminal and storage medium
CN110434853B (en) Robot control method, device and storage medium
EP3373202B1 (en) Verification method and system
WO2019179442A1 (en) Interaction target determination method and apparatus for intelligent device
US9977954B2 (en) Robot cleaner and method for controlling a robot cleaner
US8373654B2 (en) Image based motion gesture recognition method and system thereof
JP3834297B2 (en) Image processing device
US8660362B2 (en) Combined depth filtering and super resolution
TWI684136B (en) Robot, control system and method for operating the robot
CN109079809B (en) Robot screen unlocking method and device, intelligent device and storage medium
CN105930775B (en) Facial orientation recognition methods based on sensitivity parameter
EP3287873A3 (en) System and method for distant gesture-based control using a network of sensors across the building
JP6815707B2 (en) Face posture detection method, device and storage medium
KR20190134589A (en) System and method for concurrent localization and mapping
JP2015147256A (en) Robot, robot system, control device, and control method
CN108885469A (en) System and method for the initialized target object in tracking system
CN109933061A (en) Robot and control method based on artificial intelligence
US20170124692A1 (en) 3d object rotation-based mechanical parts selection through 2d image processing
WO2019076105A1 (en) Identification code identification method, apparatus and device
WO2017101496A1 (en) Method and device for gesture recognition
WO2018214499A1 (en) Method and device for starting fingerprint recognition, and intelligent terminal
JP2015044257A (en) Robot, robot control method and robot control program
CN114466139A (en) Tracking and positioning method, system, device, equipment, storage medium and product
WO2021248857A1 (en) Obstacle attribute discrimination method and system, and intelligent robot
US11307668B2 (en) Gesture recognition method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19856292

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19856292

Country of ref document: EP

Kind code of ref document: A1