CN109960409B - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN109960409B
CN109960409B CN201910203764.3A CN201910203764A CN109960409B CN 109960409 B CN109960409 B CN 109960409B CN 201910203764 A CN201910203764 A CN 201910203764A CN 109960409 B CN109960409 B CN 109960409B
Authority
CN
China
Prior art keywords
electronic equipment
programs
sensing parameter
condition
electronic device
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
CN201910203764.3A
Other languages
Chinese (zh)
Other versions
CN109960409A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910203764.3A priority Critical patent/CN109960409B/en
Publication of CN109960409A publication Critical patent/CN109960409A/en
Application granted granted Critical
Publication of CN109960409B publication Critical patent/CN109960409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • 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/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • 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
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3274Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being displayed on the M-device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an information processing method, an information processing device and electronic equipment. That is, according to the solution disclosed in the present application, a user can determine a control instruction to execute a predetermined function by controlling the electronic device to perform the spatial movement in the direction of the obstacle and stopping the spatial movement after encountering the obstacle, thereby simplifying the user operation.

Description

Information processing method and device and electronic equipment
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an information processing method and apparatus, and an electronic device.
Background
At present, along with the intelligent development of mobile phones, more and more applications and more functions are installed in the mobile phones. When a user wants to use a certain function in the mobile phone, the operation of the user is relatively locked, for example, when the user wants to use the payment function, the user needs to light the screen first, then finds the icon of the application (such as a pay pal, WeChat, etc.) with the payment function, then clicks the icon to enter the application program, and opens a specific interface in the application program to display the payment code, so that the payment function can be used. Therefore, how to simplify the user operation becomes a technical problem to be solved urgently.
Disclosure of Invention
The present application is directed to an information processing method, an information processing apparatus, and an electronic device, so as to at least partially overcome technical problems in the prior art.
In order to achieve the purpose, the application provides the following technical scheme:
an information processing method comprising:
obtaining a first induction parameter through a gyroscope of the electronic equipment, wherein the first induction parameter is used for representing the space motion of the electronic equipment;
obtaining a second sensing parameter through an accelerometer of the electronic device, the second sensing parameter being used for characterizing an acceleration of the spatial motion of the electronic device;
if the first induction parameter meets a first condition and the second induction parameter meets a second condition, determining a control instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
The above method, preferably, the stopping the spatial movement when encountering the obstacle during the spatial movement at least comprises:
stopping the spatial movement once when the process of the spatial movement of the electronic device encounters an obstacle;
the process of the spatial motion of the electronic device encounters an obstacle to stop the inverse motion of the spatial motion.
The above-described process, preferably,
the first condition is a threshold value used for characterizing the movement mode of the electronic equipment in the space;
the second condition is a variation process value for characterizing the movement of the electronic device in the space according to the movement mode.
In the above method, preferably, a final variation value among the variation process values approaches zero.
In the method, preferably, the control instruction is a call instruction of a first function module of M programs, and M is an integer greater than or equal to 1.
In the above method, preferably, the first functional module of the M programs is a payment functional module;
the method further comprises the following steps:
responding to the control instruction;
wherein responding to the control instruction comprises:
obtaining status information of the electronic device,
determining whether to respond to the control instruction based on a security verification result based on the state information.
The above-described process, preferably,
if M is greater than or equal to 2, the responding to the control instruction comprises:
and displaying a display page corresponding to the payment function modules of the M programs through a display screen of the electronic equipment.
In the above method, preferably, the first functional module of the M programs is a code scanning functional module;
the responding to the control instruction comprises:
calling a camera of the electronic equipment to acquire an image;
and providing the image acquired by the camera with at least one program with an identification function.
An information processing apparatus comprising:
the first sensing module is used for obtaining a first sensing parameter through a gyroscope of the electronic equipment, and the first sensing parameter is used for representing the spatial motion of the electronic equipment;
the second sensing module is used for obtaining a second sensing parameter through an accelerometer of the electronic equipment, and the second sensing parameter is used for representing the acceleration of the space motion of the electronic equipment;
the determining module is used for determining a control instruction if the first induction parameter meets a first condition and the second induction parameter meets a second condition;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
An electronic device, comprising:
a gyroscope, an accelerometer, a memory, and a processor; wherein the content of the first and second substances,
the memory is used for storing at least one group of instruction sets;
the processor is configured to call and execute the set of instructions in the memory by executing the set of instructions to:
obtaining a first sensing parameter through the gyroscope, wherein the first sensing parameter is used for representing the space motion of the electronic equipment;
obtaining a second sensing parameter by the accelerometer, the second sensing parameter being used to characterize an acceleration of the spatial motion of the electronic device;
if the first induction parameter meets a first condition and the second induction parameter meets a second condition, determining a control instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
According to the scheme, the induction parameters are obtained through the gyroscope and the accelerometer, the process that the electronic equipment performs space motion under the action of external force is determined according to the obtained induction parameters, and the control command is determined when the space motion stops due to the fact that the space motion meets an obstacle in the process of the space motion. That is, according to the solution disclosed in the present application, a user can determine a control instruction to execute a predetermined function by controlling the electronic device to perform the spatial movement in the direction of the obstacle and stopping the spatial movement after encountering the obstacle, thereby simplifying the user operation.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of an information processing method according to an embodiment of the present application;
FIG. 2 is a flow chart of an implementation of responding to control commands according to an embodiment of the present disclosure;
fig. 3 is an exemplary diagram of a display page corresponding to a payment function module for displaying two programs on a display screen at a time according to an embodiment of the present application;
fig. 4a is an exemplary diagram of a display page corresponding to a payment function module for displaying a program on a display screen according to an embodiment of the present application;
fig. 4b is an exemplary diagram of a display page corresponding to a payment function module of another program displayed on a display screen according to an embodiment of the present application;
FIG. 5 is a flow chart of another implementation of responding to control instructions according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be practiced otherwise than as specifically illustrated.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
The information processing method provided by the application can be applied to the electronic equipment with the gyroscope and the accelerometer. The electronic device may be a portable electronic device such as a mobile phone.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of an information processing method according to an embodiment of the present application, which may include:
step S11: obtaining a first induction parameter through a gyroscope of the electronic equipment, wherein the first induction parameter is used for representing the space motion of the electronic equipment; and obtaining a second sensing parameter through an accelerometer of the electronic equipment, wherein the second sensing parameter is used for representing the acceleration of the space motion of the electronic equipment.
In the embodiment of the application, the spatial movement of the electronic device may be a yaw movement or a tilt movement of the electronic device. Alternatively, the spatial movement of the electronic device may comprise a translational movement, i.e. a translation with simultaneous deflection or tilting, in addition to a yaw movement or a tilt movement. The first sensing parameter may be a rotational angular velocity of the electronic device when the electronic device performs a yaw motion or a tilt motion. The corresponding second sensed parameter may be a linear acceleration of the above-mentioned spatial movement of the electronic device.
Step S12: and if the first induction parameter meets the first condition and the second induction parameter meets the second condition, determining a control command.
Wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion stops when meeting an obstacle in the process of the space motion.
That is to say, the control instruction can be determined by completing the somatosensory gesture by using the obstacle encountered in the motion process of the electronic device.
According to the information processing method, the induction parameters are obtained through the gyroscope and the accelerometer, the process that the electronic equipment performs space motion under the action of external force is determined according to the obtained induction parameters, and when the space motion process meets an obstacle and stops the space motion, the control instruction is determined. That is, according to the solution disclosed in the present application, a user only needs to control the electronic device to perform the above-mentioned spatial movement in a certain direction (which may be a direction toward an obstacle), and directly stops the movement after encountering the obstacle (i.e., the electronic device is stationary relative to the obstacle when encountering the obstacle) to determine a control instruction to perform a predetermined function, thereby simplifying the user operation.
Furthermore, according to the scheme disclosed by the application, the control instruction is determined through the sensors (namely the gyroscope and the accelerometer), and the input gesture of one beat can be determined through the sensors in any state of the electronic device. For example, the non-screen-locked state, the screen-locked state, and the screen-blank state may be used. That is, the electronic device may be in a high power consumption state, such as a non-screen-locked state, or in a low power consumption state, such as a black screen state. If the electronic equipment is in a low power consumption state, the sensor can be awakened (the sensor is awakened by actions such as lightening a screen or picking up the electronic equipment) to be in a running state, so that the electronic equipment can be collected when the electronic equipment performs spatial motion under the action of external force and stops encountering an obstacle; of course, if the electronic device is in a low power consumption state, the sensor may also be controlled to be in an operating state; so that the electronic equipment can be collected when the electronic equipment performs space movement under the action of external force and stops encountering obstacles.
In addition, when the user holds the electronic equipment to move towards the direction of the obstacle, the orientation of the electronic equipment does not need to be particularly concerned, for example, when the user holds the mobile phone to move towards the direction of the other hand, the display screen can face the other hand, and the mobile phone rear shell can also face the other hand. Of course, the obstacle may be other parts of the user's body than the other hand, for example, by slapping the phone to the user's thigh, etc.
In summary, the scheme disclosed in the embodiment of the application is simple in user operation and can ensure low power consumption of the electronic device.
In an alternative embodiment, the stopping of the spatial movement when the obstacle is encountered during the spatial movement may include at least:
the process of the spatial movement of the electronic device meets an obstacle and stops the spatial movement once, namely, the electronic device directly stops at the obstacle if meeting the obstacle in the process of the spatial movement.
The process of the space movement of the electronic equipment meets an obstacle to stop the reverse movement of the space movement, namely, if the electronic equipment meets the obstacle in the process of the space movement, the electronic equipment directly stops the space movement without reciprocating movement or other movements.
For example, a user holds a mobile phone, shoots a certain part of his body, and stops at the part after shooting the part, and does not move away from the part any more. For example, a user holds a mobile phone, shoots his or her leg, and stops at the leg after shooting the leg. Or the user holds the mobile phone with the right hand, shoots the mobile phone towards the left hand, and stops in the left hand after shooting the left hand. Or the user holds the mobile phone by the left hand, shoots the right arm of the user, and stops on the right arm after shooting the right arm.
In an alternative embodiment, the first condition is a threshold value for characterizing a movement pattern of the electronic device in the space.
The second condition is a variation process value for characterizing the movement of the electronic device in the space according to the movement mode.
That is, the first condition may be one value and the second condition may be a plurality of values. The final variation of the above-described variation values is zero or approaches zero.
Optionally, in the above change process value, a difference between a final change value and a previous change value is greater than a difference between two adjacent change values before the previous change value. That is, the previous variation value to the final variation value is a sudden process, i.e., the electronic device is suddenly stopped.
In an optional embodiment, the control instruction is a call instruction of a first functional module of M programs, and M is a positive integer greater than or equal to 1.
In this embodiment, the control instruction may be a call instruction of the same functional module of multiple programs.
Optionally, the first functional module may be a payment functional module, a photographing functional module, or a quick recording functional module, such as a text recording functional module, or a recording functional module.
In an optional embodiment, when the first functional module of the M programs is a payment functional module, the information processing method provided by the present application may further include:
and responding to the control instruction to call the payment function modules of the M programs. Based on the payment function module, payment related functions such as payment receiving/paying and transferring can be realized.
Optionally, as shown in fig. 2, an implementation flowchart responding to the control instruction may include:
step S21: status information of the electronic device is obtained.
The state information of the electronic device may refer to a state of whether security authentication is required. For example, if the electronic device is in a screen locking state and the user sets a screen locking password, security verification is required, otherwise, security verification is not required. For another example, if the user sets an open password (e.g., an application lock) to the program itself, security authentication may be required, otherwise, security authentication may not be required. For another example, if the user sets a password for the payment function module in the program, security authentication is required, otherwise, security authentication is not required.
The state information of the electronic device may be state information of whether the electronic device locks a screen, or the state information of the electronic device may be state information of whether authentication is required when the payment function module is called.
Step S22: and determining whether to respond to the control command based on the safety verification result based on the state information.
For example, if the electronic device is in a screen locking state and a screen locking password is set by a user, a screen locking interface is displayed so that the user can input an unlocking password, then security verification is performed according to the unlocking password input by the user, and if the security verification result is that the unlocking password is correct, the payment function modules of the M programs are called.
For another example, if the electronic device is not in the screen locking state, but the user sets a password for the first program, the verification interface corresponding to the first program is displayed, so that the user can input verification information, then security verification is performed according to the verification information input by the user, and if the security verification result is that the verification information is correct, the payment function modules of the M programs are called.
For another example, if the electronic device is not in a screen locking state, the user does not set a password for the program, but sets a password for the payment function module of the second program, the authentication interface of the second program is displayed so that the user can input authentication information, then security authentication is performed according to the authentication information input by the user, and if the security authentication result is that the authentication information is correct, the payment function modules of the M programs are called.
In some cases, the user may set a password only for a part of the programs or payment function modules of the part of the programs, and optionally, in order to quickly provide payment-related functions for the user, when the electronic device is not in the lock screen state, the payment function module of the unencrypted program may be called in response to the control instruction, and when the user switches to the next program, if the next program is a program requiring security authentication, it is determined whether to call the payment function module of the switched program based on the security authentication result.
That is, when the electronic device is not in the screen lock state, and a part of the M programs is encrypted and a part of the M programs is not encrypted, the payment function module of the unencrypted program may be preferentially invoked in response to the control instruction, and when the user does not want to use the payment function module of the unencrypted program and instructs to switch to the encrypted program, the user determines whether to invoke the payment function module of the switched encrypted program based on the verification result.
The unencrypted program means that the program itself is not encrypted, and the payment function module of the program is also not encrypted.
In an alternative embodiment, if M is greater than or equal to 2, the response control command may include:
and displaying a display page corresponding to the payment function modules of the M programs through a display screen of the electronic equipment. Specifically, there may be several optional display modes:
in a first mode
And displaying display pages corresponding to the payment function modules of the M programs on the display screen at one time, wherein the display pages of different programs are displayed in different areas.
For example, assuming that two programs each have a payment function module, a first display page corresponding to the payment function module of the first program may be displayed in an upper area of the display screen, and a second display page corresponding to the payment function module of the second program may be displayed in a lower area of the display screen. When the payment related function is required to be performed, a user designates a page to perform the payment related function. As shown in fig. 3, an exemplary diagram of a display page corresponding to a payment function module for displaying two programs on a display screen at a time is provided in the embodiment of the present application.
Mode two
And only displaying a first display page corresponding to the payment function module of the first program on the display screen. Through this first display page, the user can use only the payment-related functions provided by the first program.
After the first display page is displayed, if a user wants to use the payment related functions of other programs, the display pages corresponding to different programs can be switched by performing sliding operation on the display screen. Or, the somatosensory gesture disclosed in the foregoing embodiment is executed again to switch to a display page corresponding to a different program.
When the somatosensory gesture is executed for the first time, the first program may be any one of the M programs, or may be one of the M programs in which a user has the highest frequency of using the payment function module, and after the somatosensory gesture is executed for the first time to display the payment function module of one program, when a display page corresponding to another program needs to be switched, a different program may be randomly determined and a display page corresponding to the payment function module thereof may be displayed, or a program may be determined and a display page corresponding to the payment function module thereof may be displayed in the order from high to low according to the frequency of using the payment function module by the user.
Fig. 4a is an exemplary diagram of a display page corresponding to a payment function module for displaying a program on a display screen according to an embodiment of the present application. Fig. 4b is an exemplary diagram of a display page corresponding to a payment function module for displaying another program on a display screen according to an embodiment of the present application. And the payment function module of other programs can be displayed on the display page corresponding to the payment function module of each program. For example, at the bottom of the display page shown in fig. 4a, names of the payment function modules of other programs are listed, including the name of the payment function module of the program corresponding to the page shown in fig. 4 b. Similarly, the display page shown in FIG. 4b also includes the names of the payment function modules of the other programs.
In the case where the electronic device displays the display page shown in fig. 4a, the user switches to the display page shown in fig. 4b by performing a slide operation on the display screen. Or, the user performs the somatosensory gesture disclosed in the foregoing embodiment again to switch to the display page displayed in fig. 4 b.
In an optional embodiment, the first functional module of the M programs may be a code scanning functional module, and the information processing method provided by the present application may further include:
and responding to the control instruction to call the code scanning function modules of the M programs.
Optionally, as shown in fig. 5, an implementation flowchart responding to the control instruction may include:
step S51: and calling a camera of the electronic equipment to acquire an image.
The acquired image contains identifiable information, such as a bar code, a two-dimensional code, and the like.
Step S52: the image acquired by the camera is provided with at least one (for convenience of description, denoted as N) program with an identification function. The N programs having the identification function are at least one program among the M programs. I.e. N is less than or equal to M.
Specifically, the acquired image may be provided with each of the N programs having the identification function to obtain N identification results, but only one of the programs (for convenience of description, referred to as a third program) outputs the identification result of the acquired image. When the user indicates switching to another program, the recognition result of the acquired image by the other program is output.
The third program may be any one of the N programs having the identification function, or may be one of the N programs having the identification function, which is used by the user the most number of times in the last period of time. The way in which the user instructs to switch to another program can be seen in the aforementioned way, for example, by sliding on the display screen, or by again performing the aforementioned somatosensory gesture.
Alternatively, the first and second electrodes may be,
the acquired image may be provided with each of the N programs having the identification function to obtain N identification results, but only the identification result of the acquired image by the third program is output. Before outputting the recognition result of the third program on the acquired image, it may be determined whether the recognition result is wrong recognition information or interface, if yes, the recognition result is masked (i.e., the result is not output, so that the user does not see the wrong recognition information or interface), and the recognition result of another program on the acquired image is called, and if no, the recognition result is output for the user to view. That is, before outputting the recognition result, it is determined whether the recognition result is the wrong information or interface, and the recognition result is output only if the determination result is negative.
The third program may be any one of the N programs having the identification function, or may be one of the N programs having the identification function, which is used by the user the most number of times in the last period of time.
Alternatively, the first and second electrodes may be,
the acquired image can be provided with each program of the N programs with the identification function to obtain N identification results, the N identification results are output simultaneously, namely the N identification results are displayed on the display screen, the N identification results can be displayed in a thumbnail mode, when a user selects one of the thumbnails, the thumbnail is displayed in a full screen mode, so that the display screen only displays the identification result of one program, and when the user indicates to switch to another program, the identification result of the other program is displayed in the full screen mode.
Alternatively, the first and second electrodes may be,
the acquired image may be provided with one of the N programs with the identification function (for convenience of description, referred to as a fourth program), and the fourth program may be any one of the N programs with the identification function, or may be one of the N programs with the identification function, which is used by the user the most times in the latest period of time.
After the recognition result returned by the fourth program is obtained, the recognition result can be directly output, and when the user indicates to switch to another program, the acquired image is provided for the other program so that the other program can recognize the acquired image. The way in which the user instructs to switch to another program can be seen in the aforementioned way, for example, by sliding on the display screen, or by again performing the aforementioned somatosensory gesture. When another program is provided, it may be determined randomly that an un-called program is provided for the captured image, or it may be determined that an un-called program is provided for the captured image in order of the frequency of use of the program by the user from high to low.
In this embodiment, the N programs having the identification function may be started at the same time in the background, but only one of the programs having the identification function is provided for the acquired image at a time, so that the processing speed may be increased compared with a case where the program is started as needed.
Alternatively, the first and second electrodes may be,
the acquired image may be provided with one of the N programs with the identification function (for convenience of description, referred to as a fourth program), and the fourth program may be any one of the N programs with the identification function, or may be one of the N programs with the identification function, which is used by the user the most times in the latest period of time.
After the identification result returned by the fourth program is obtained, whether the identification result is information or an interface with identification errors is judged, if so, the identification result is shielded (namely, the result is not output, so that a user cannot see the information and the interface with identification errors), the acquired image is provided for another program, so that the other program identifies the acquired image, and if not, the identification result is output for the user to view. That is, before outputting the recognition result, it is determined whether the recognition result is the wrong information or interface, and the recognition result is output only if the determination result is negative.
In this embodiment, the N programs having the identification function may be started at the same time in the background, but only one of the programs having the identification function is provided for the acquired image at a time, so that the processing speed may be increased compared with a case where the program is started as needed.
Corresponding to the method embodiment, the present application further provides an information processing apparatus, and a schematic structural diagram of the information processing apparatus provided by the present application is shown in fig. 6, and the information processing apparatus may include:
the first sensing module 61 is configured to obtain a first sensing parameter through a gyroscope of the electronic device, where the first sensing parameter is used to characterize spatial motion of the electronic device;
a second sensing module 62, configured to obtain a second sensing parameter through an accelerometer of the electronic device, where the second sensing parameter is used to characterize an acceleration of the spatial motion of the electronic device;
a determining module 63, configured to determine a control instruction if the first sensing parameter meets a first condition and the second sensing parameter meets a second condition;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion stops when meeting an obstacle in the process of the space motion.
The information processing device obtains induction parameters through the gyroscope and the accelerometer, determines the process of space motion of the electronic equipment under the action of external force according to the obtained induction parameters, and determines a control command when the space motion process meets an obstacle and stops the space motion. That is, according to the scheme disclosed in the present application, a user can determine a control instruction to execute a predetermined function by controlling the electronic device to perform the spatial movement in the direction of the obstacle and stopping the movement after encountering the obstacle, thereby simplifying the user operation.
Furthermore, the solutions disclosed herein determine the control instructions through sensors (i.e. gyroscope and accelerometer), and thus, do not require that the electronic device must be in a wake-up state, i.e. the electronic device may be in a high power consumption state, such as a wake-up state, or a low power consumption state, such as a sleep state. If the electronic device is in the low power consumption state, the electronic device may be waken up first and then the control instruction may be determined when the first sensing parameter satisfies the first condition and the second sensing parameter satisfies the second condition.
In addition, when the user holds the electronic equipment to move towards the direction of the obstacle, the orientation of the electronic equipment does not need to be particularly concerned, for example, when the user holds the mobile phone to move towards the direction of the other hand, the display screen can face the other hand, and the mobile phone rear shell can also face the other hand.
In summary, the scheme disclosed in the embodiment of the application is simple in user operation and can ensure low power consumption of the electronic device.
In an alternative embodiment, the process of spatial movement stopping the spatial movement when encountering an obstacle may include at least:
stopping the spatial movement once when encountering an obstacle in the spatial movement process of the electronic equipment;
the process of the spatial movement of the electronic device encounters an obstacle to stop the reverse movement of the spatial movement.
In an alternative embodiment, the first condition is a threshold value for characterizing a movement pattern of the electronic device in the space;
the second condition is a variation process value for characterizing the movement of the electronic device in said space in accordance with said movement pattern.
In an alternative embodiment, the final variation of the above-mentioned variation process values approaches zero.
In an optional embodiment, the control instruction is a call instruction of a first functional module of M programs, and M is an integer greater than or equal to 1.
In an optional embodiment, the first functional module of the M programs is a payment functional module;
the information processing apparatus provided by the present application may further include:
the response module is used for responding to the control instruction;
wherein, the response module may specifically be configured to:
the status information of the electronic device is obtained,
based on the obtained status information, it is determined whether to respond to the control instruction based on the security verification result.
In an optional embodiment, if M is greater than or equal to 2, the response module may specifically be configured to:
and displaying a display page corresponding to the payment function modules of the M programs through a display screen of the electronic equipment.
In an optional embodiment, the first functional module of the M programs may be a code scanning functional module;
the information processing apparatus provided by the present application may further include:
the response module is used for responding to the control instruction;
wherein, the response module may specifically be configured to:
calling a camera of the electronic equipment to acquire an image;
and providing the image acquired by the camera with at least one program with a recognition function.
Corresponding to the method embodiment, the present application further provides an electronic device, a schematic structural diagram of which is shown in fig. 7, and the electronic device may include:
a gyroscope 71, an accelerometer 72, a memory 73, and a processor 74; wherein the content of the first and second substances,
the memory 73 is used for storing at least one set of instructions;
the processor 74 is configured to call and execute a set of instructions in the memory 73, by executing the set of instructions to:
obtaining a first sensing parameter through a gyroscope 71, wherein the first sensing parameter is used for representing the spatial motion of the electronic equipment;
obtaining a second sensing parameter by the accelerometer 72, the second sensing parameter being indicative of an acceleration of the above-mentioned spatial movement of the electronic device;
if the first induction parameter meets a first condition and the second induction parameter meets a second condition, determining a control instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion stops when meeting an obstacle in the process of the space motion.
According to the electronic equipment, the induction parameters are obtained through the gyroscope and the accelerometer, the process that the electronic equipment performs space motion under the action of external force is determined according to the obtained induction parameters, and when the space motion process meets an obstacle and stops the space motion, a control command is determined. That is, according to the scheme disclosed in the present application, a user can determine a control instruction to execute a predetermined function by controlling the electronic device to perform the spatial movement in the direction of the obstacle and stopping the movement after encountering the obstacle, thereby simplifying the user operation.
Furthermore, the solutions disclosed herein determine the control instructions through sensors (i.e. gyroscope and accelerometer), and thus, do not require that the electronic device must be in a wake-up state, i.e. the electronic device may be in a high power consumption state, such as a wake-up state, or a low power consumption state, such as a sleep state. If the electronic device is in the low power consumption state, the electronic device may be waken up first and then the control instruction may be determined when the first sensing parameter satisfies the first condition and the second sensing parameter satisfies the second condition.
In addition, when the user holds the electronic equipment to move towards the direction of the obstacle, the orientation of the electronic equipment does not need to be particularly concerned, for example, when the user holds the mobile phone to move towards the direction of the other hand, the display screen can face the other hand, and the mobile phone rear shell can also face the other hand.
In summary, the scheme disclosed in the embodiment of the application is simple in user operation and can ensure low power consumption of the electronic device.
In an alternative embodiment, the process of spatial movement stopping the spatial movement when encountering an obstacle may include at least:
stopping the spatial movement once when encountering an obstacle in the spatial movement process of the electronic equipment;
the process of the spatial movement of the electronic device encounters an obstacle to stop the reverse movement of the spatial movement.
In an alternative embodiment, the first condition is a threshold value for characterizing a movement pattern of the electronic device in the space;
the second condition is a variation process value for characterizing the movement of the electronic device in the space according to the movement pattern.
In an alternative embodiment, the final variation of the above-mentioned variation process values approaches zero.
In an optional embodiment, the control instruction is a call instruction of a first functional module of M programs, and M is an integer greater than or equal to 1.
In an optional embodiment, the first functional module of the M programs is a payment functional module;
the processor 74 may also be configured to respond to the control instructions;
the processor 74 may be specifically configured to, in response to the control instruction:
the status information of the electronic device is obtained,
based on the obtained status information, it is determined whether to respond to the control instruction based on the security verification result.
In an alternative embodiment, if M is greater than or equal to 2, the processor 74, in response to the control instruction, may be specifically configured to:
and displaying a display page corresponding to the payment function modules of the M programs through a display screen of the electronic equipment.
In an optional embodiment, the first functional module of the M programs may be a code scanning functional module;
the processor 74 may also be configured to: responding to the control command;
the processor 74 may be specifically configured to, in response to the control instruction:
calling a camera of the electronic equipment to acquire an image;
and providing the image acquired by the camera with at least one program with a recognition function.
The embodiment of the application invokes the payment function through the gesture of one beat, and the payment function can be directly starting a scanning function or providing a payment code. Therefore, a plurality of complicated steps such as unlocking and clicking payment applications (WeChat/Paibao/Unionpay and the like) and selecting a payment function in the prior art are omitted. The electronic equipment who provides of the embodiment of this application all beats earlier when using paper currency to pay through the gesture reduction user that beats one and count so that the electronic payment action through electronic equipment such as cell-phone more lively activate accord with more and press close to user's use habit in the payment scene.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units 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.
It should be understood that the technical problems can be solved by combining and combining the features of the embodiments from the claims.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. An information processing method comprising:
obtaining a first induction parameter through a gyroscope of the electronic equipment, wherein the first induction parameter is used for representing the space motion of the electronic equipment;
obtaining a second sensing parameter through an accelerometer of the electronic device, the second sensing parameter being used for characterizing an acceleration of the spatial motion of the electronic device;
if the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, determining a calling instruction for calling a designated function module, wherein the designated function module is a first function module in programs of electronic equipment, M programs in the electronic equipment are provided with the designated function module, and M is a positive integer greater than or equal to 1, and under the condition that M is a positive integer greater than 1, calling a plurality of designated function modules of the M programs together based on the calling instruction; when the electronic equipment is in any state, the calling instruction can be obtained and the appointed function module in the M programs with the appointed function module can be called together based on the calling instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
2. The method of claim 1, stopping the spatial motion upon encountering an obstacle during the spatial motion comprising at least:
stopping the spatial movement once when the process of the spatial movement of the electronic device encounters an obstacle;
the process of the spatial motion of the electronic device encounters an obstacle to stop the inverse motion of the spatial motion.
3. The method according to claim 1 or 2,
the first condition is a threshold value used for characterizing the movement mode of the electronic equipment in the space;
the second condition is a variation process value for characterizing the movement of the electronic device in the space according to the movement mode.
4. The method of claim 3, wherein a final one of the change process values approaches zero.
5. The method of claim 1, a first functional module of the M programs being a payment functional module;
the method further comprises the following steps:
responding to the calling instruction;
wherein the responding to the call instruction comprises:
obtaining status information of the electronic device,
determining whether to respond to the call instruction based on a security verification result based on the state information.
6. The method of claim 5, if M is greater than or equal to 2, the responding to the call instruction comprising:
and displaying a display page corresponding to the payment function modules of the M programs through a display screen of the electronic equipment.
7. The method of claim 1, a first functional module of the M programs being a code-scanning functional module;
the method further comprises the following steps:
responding to the calling instruction;
wherein the responding to the call instruction comprises:
calling a camera of the electronic equipment to acquire an image;
and providing the image acquired by the camera with at least one program with an identification function.
8. An information processing apparatus comprising:
the first sensing module is used for obtaining a first sensing parameter through a gyroscope of the electronic equipment, and the first sensing parameter is used for representing the spatial motion of the electronic equipment;
the second sensing module is used for obtaining a second sensing parameter through an accelerometer of the electronic equipment, and the second sensing parameter is used for representing the acceleration of the space motion of the electronic equipment;
a determining module, configured to determine, if the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, a call instruction for calling a designated function module, where the designated function module is a first function module in programs of an electronic device, M programs in the electronic device have the designated function module, M is a positive integer greater than or equal to 1, and when M is a positive integer greater than 1, a plurality of designated function modules of the M programs are called together based on the call instruction; when the electronic equipment is in any state, the calling instruction can be obtained and the appointed function module in the M programs with the appointed function module can be called together based on the calling instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
9. An electronic device, comprising:
a gyroscope, an accelerometer, a memory, and a processor; wherein the content of the first and second substances,
the memory is used for storing at least one group of instruction sets;
the processor is configured to call and execute the set of instructions in the memory by executing the set of instructions to:
obtaining a first sensing parameter through the gyroscope, wherein the first sensing parameter is used for representing the space motion of the electronic equipment;
obtaining a second sensing parameter by the accelerometer, the second sensing parameter being used to characterize an acceleration of the spatial motion of the electronic device;
if the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, determining a calling instruction for calling a designated function module, wherein the designated function module is a first function module in programs of electronic equipment, M programs in the electronic equipment are provided with the designated function module, and M is a positive integer greater than or equal to 1, and under the condition that M is a positive integer greater than 1, calling a plurality of designated function modules of the M programs together based on the calling instruction; when the electronic equipment is in any state, the calling instruction can be obtained and the appointed function module in the M programs with the appointed function module can be called together based on the calling instruction;
wherein the content of the first and second substances,
the first sensing parameter meets a first condition and the second sensing parameter meets a second condition, the process that the electronic equipment performs space motion under the action of external force is represented, and the space motion is stopped when an obstacle is met in the process of the space motion.
CN201910203764.3A 2019-03-18 2019-03-18 Information processing method and device and electronic equipment Active CN109960409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203764.3A CN109960409B (en) 2019-03-18 2019-03-18 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203764.3A CN109960409B (en) 2019-03-18 2019-03-18 Information processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109960409A CN109960409A (en) 2019-07-02
CN109960409B true CN109960409B (en) 2021-07-16

Family

ID=67024326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203764.3A Active CN109960409B (en) 2019-03-18 2019-03-18 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109960409B (en)

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218062A (en) * 2013-04-24 2013-07-24 伍斌 Man-machine interaction method and equipment based on acceleration sensor and motion recognition
CN103279264A (en) * 2013-05-03 2013-09-04 富泰华工业(深圳)有限公司 Electronic device and input operation management method thereof
CN103777846B (en) * 2014-02-24 2017-03-01 联想(北京)有限公司 Information processing method and electronic equipment
CN107193466B (en) * 2016-03-15 2020-09-08 百度在线网络技术(北京)有限公司 Gesture recognition method and device
EP4303797A1 (en) * 2016-06-22 2024-01-10 National Payments Corporation of India An electronic payment system and method thereof
CN106875181A (en) * 2017-02-28 2017-06-20 努比亚技术有限公司 A kind of barcode scanning payment processing method and mobile terminal
CN107248072A (en) * 2017-05-19 2017-10-13 努比亚技术有限公司 Barcode scanning method of payment, mobile terminal and computer-readable recording medium
CN108122105A (en) * 2017-12-21 2018-06-05 维沃移动通信有限公司 A kind of method of payment and mobile terminal

Also Published As

Publication number Publication date
CN109960409A (en) 2019-07-02

Similar Documents

Publication Publication Date Title
JP6306236B2 (en) Touch-free operation of the device by using a depth sensor
EP3401779B1 (en) Method and apparatus for invoking function in application
EP2614788B1 (en) Touch free operation of ablator workstation by use of depth sensors
US9710630B2 (en) Electronic device and method of providing security using complex biometric information
EP2309410B1 (en) Method and electronic apparatus for creating biological feature data
KR101497762B1 (en) Unlocking method, and terminal and recording medium for the same method
JP2017509062A (en) Control method of electronic equipment
EP2887648B1 (en) Method of performing previewing and electronic device for implementing the same
US20220269800A1 (en) Privacy protection method for electronic device and electronic device
CN104978509A (en) Information processing apparatus and control method thereof
CN112613475A (en) Code scanning interface display method and device, mobile terminal and storage medium
JP2007108941A (en) Apparatus control system, remote controller, apparatus, apparatus control method, apparatus control program, and computer readable recording medium recording the same apparatus control program
CN104778416A (en) Information hiding method and terminal
CN115835409A (en) Collaborative window processing method and system and electronic equipment
JP4943127B2 (en) Personal authentication device and personal authentication system
CN109960409B (en) Information processing method and device and electronic equipment
EP3270313B1 (en) Optical authorization method for programs and files
CN110543275A (en) Interaction method based on mobile terminal photographing interface and mobile terminal
JP2014146167A (en) Electronic equipment
CN108227906B (en) Man-machine interaction method and device
CN117499526A (en) Shooting method, electronic device, chip system and computer readable storage medium
CN118092749A (en) Touch area determining method and device, electronic equipment and storage medium
CN117651038A (en) Remote control method, device, vehicle and storage medium
CN116774784A (en) Folding device control method and electronic device
CN116546315A (en) Method and device for controlling shooting point position through pan-tilt command

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