CN113032028A - Air mouse awakening method and device, electronic equipment and storage medium - Google Patents

Air mouse awakening method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113032028A
CN113032028A CN202110326751.2A CN202110326751A CN113032028A CN 113032028 A CN113032028 A CN 113032028A CN 202110326751 A CN202110326751 A CN 202110326751A CN 113032028 A CN113032028 A CN 113032028A
Authority
CN
China
Prior art keywords
angular velocity
time
air mouse
time interval
action
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.)
Pending
Application number
CN202110326751.2A
Other languages
Chinese (zh)
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202110326751.2A priority Critical patent/CN113032028A/en
Publication of CN113032028A publication Critical patent/CN113032028A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • 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/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/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03543Mice or pucks

Abstract

The disclosure relates to an air mouse awakening method, an air mouse awakening device, electronic equipment and a storage medium, wherein the method comprises the following steps: periodically acquiring angular velocity information of the air mouse; judging whether the angular speed information meets a preset awakening condition or not based on the angular speed information; and if the angular speed information meets a preset awakening condition, awakening the air mouse. The technical scheme provided by the disclosure is essentially that whether the air mouse is awakened or not is determined by means of angular velocity information instead of linear acceleration acquired by a three-axis acceleration sensor, the air mouse is not interfered by gravity acceleration in the whole judgment process, and the air mouse can be swung in the same action when the air mouse is in different postures, so that the air mouse is awakened to be consistent in difficulty.

Description

Air mouse awakening method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of air mouse technologies, and in particular, to an air mouse wake-up method and apparatus, an electronic device, and a storage medium.
Background
An air mouse (air mouse for short) is an input device, can operate a screen cursor like a traditional mouse, but can be directly used by shaking in the air without being placed on any plane.
At present, a wake-up mode commonly adopted by an air mouse is to collect a linear acceleration value of the air mouse from a triaxial acceleration sensor, and wake up the air mouse when a modulus of the linear acceleration value exceeds a preset linear acceleration threshold value.
In practice, the three-axis acceleration sensor collects the linear acceleration of the air mouse in three coordinate axis directions under the self coordinate system of the three-axis acceleration sensor. Due to the influence of gravity, the data acquired by the three-axis acceleration sensor are added with the components of the gravity acceleration in three axes. Research shows that in practice, as the three-axis acceleration sensor is fixed on the air mouse, when the attitude of the air mouse changes, the directions of three coordinate axes of the coordinate system of the three-axis acceleration sensor also change, and the components of the gravity acceleration in the three axes also change correspondingly. Therefore, when the air mouse in different postures swings in the same direction by a large margin, the influence of the gravity acceleration on a linear acceleration mode is different. Resulting in some gestures where the user swings in some motion, the air mouse can be awakened. In other postures, the user swings in the same action and cannot wake up the air mouse. Namely different postures and the same action, and the difficulty level of awakening the air mouse is inconsistent.
Disclosure of Invention
To solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides an air mouse wake-up method, apparatus, electronic device, and storage medium.
In a first aspect, the present disclosure provides an air mouse wake-up method, including:
periodically acquiring angular velocity information of the air mouse;
judging whether the angular speed information meets a preset awakening condition or not based on the angular speed information;
and if the angular speed information meets a preset awakening condition, awakening the air mouse.
In a second aspect, the present disclosure further provides an air mouse wake-up apparatus, including:
the angular velocity acquisition module is used for periodically acquiring the angular velocity information of the air mouse;
the judging module is used for judging whether the angular velocity information meets a preset awakening condition or not based on the angular velocity information;
and the awakening module is used for awakening the air mouse if the angular velocity information meets a preset awakening condition.
In a third aspect, the present disclosure also provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement an air mouse wake-up method as described above.
In a fourth aspect, the present disclosure also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the air mouse wake-up method as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the technical scheme, whether the angular velocity information meets the preset awakening condition or not is judged based on the angular velocity information, if the angular velocity information meets the preset awakening condition, the air mouse is awakened, the air mouse is basically awakened by means of the angular velocity information instead of the linear acceleration acquired by the triaxial acceleration sensor, whether the air mouse is awakened or not is determined, the air mouse cannot be interfered by the gravity acceleration in the whole judging process, the air mouse can be swung in the same action when the air mouse is in different postures, and the awakening difficulty degree of the air mouse is consistent.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present disclosure, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart of an air mouse wake-up method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another method for waking up an air mouse according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another method for waking up an air mouse according to an embodiment of the present disclosure;
FIG. 4 is a schematic structural diagram of an air mouse wake-up apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, aspects of the present disclosure will be further described below. It should be noted that the embodiments and features of the embodiments of the present disclosure may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced in other ways than those described herein; it is to be understood that the embodiments disclosed in the specification are only a few embodiments of the present disclosure, and not all embodiments.
Fig. 1 is a flowchart of an air mouse wake-up method according to an embodiment of the present disclosure, where the present embodiment is applicable to a case where an air mouse is woken up from a sleep state, the method may be executed by an air mouse wake-up apparatus, the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be configured in the air mouse. As shown in fig. 1, the method may specifically include:
s110, periodically acquiring angular speed information of the air mouse.
Alternatively, the angular velocity information of the air mouse may be periodically acquired using an angular velocity sensor integrated in the air mouse. Illustratively, the angular velocity sensor may be a gyroscope or an inertial measurement system.
And S120, judging whether the angular speed information meets a preset awakening condition or not based on the angular speed information.
There are various specific implementation methods of this step, and optionally, the angular velocity information includes an angular velocity measurement value, and a reference threshold value is preset. The specific implementation method of the step comprises the following steps: and determining the magnitude relation between the angular velocity measurement value and the reference threshold value, and judging whether the angular velocity information meets the preset awakening condition or not based on the magnitude relation between the angular velocity measurement value and the reference threshold value.
Exemplarily, if the angular velocity measurement value is greater than the reference threshold value, it is determined that the angular velocity information satisfies a preset wake-up condition; and if the angular velocity measurement value is smaller than or equal to the reference threshold value, determining that the angular velocity information does not meet the preset awakening condition.
And S130, if the angular velocity information meets the preset awakening condition, awakening the air mouse.
According to the technical scheme, whether the angular velocity information meets the preset awakening condition is judged based on the angular velocity information, if the angular velocity information meets the preset awakening condition, the air mouse is awakened, the essence is that the air mouse is awakened by means of the angular velocity information instead of the linear acceleration acquired by the triaxial acceleration sensor, the air mouse is determined to be awakened, the interference of the gravity acceleration is avoided in the whole judging process, and the air mouse can be swung in the same action when the air mouse is in different postures, and the awakening difficulty degree of the air mouse is consistent.
Studies have shown that in practice, the wake-up action (i.e. the swinging action of the air mouse by the user in order to wake up the air mouse) has two characteristics: the method is characterized in that the action is a coherent action, the action lasts for a certain time, but the duration is shorter; second, the action has a certain amplitude, which causes abrupt change of angular velocity. Based on this, optionally, S120 is provided, including: determining whether the motion to be recognized is continuous or not based on the angular velocity information; if the action to be recognized is continuous, judging whether the action to be recognized is a wake-up action; if the action to be recognized is a wake-up action, determining whether the angular velocity information meets a preset wake-up condition; otherwise, determining that the angular speed information does not meet the preset awakening condition. The step of determining whether the action to be recognized is continuous is to verify the first characteristic, and the step of determining whether the action to be recognized is a wake-up action is to verify the second characteristic. The setting can realize accurate identification of the awakening action.
Fig. 2 is a flowchart of another air mouse wake-up method according to an embodiment of the present disclosure. Fig. 2 is a specific example of fig. 1. Exemplarily, referring to fig. 1, the method comprises:
s210, periodically acquiring angular velocity information of the air mouse, wherein the angular velocity information comprises an angular velocity measurement value and an angular velocity measurement value acquisition time.
S220, determining a first time interval of the acquisition time of the angular velocity measured value and the time of updating the accumulated times of continuously acquired effective data last time.
The valid data is response data of angular velocity information due to a human waking motion. Illustratively, since the swing motion for waking up the air mouse needs to have a certain amplitude, a reference threshold value c is preset, and if the angular velocity measurement value a is greater than the reference threshold value c, the angular velocity measurement value a is considered to be caused by the human wake-up motion, and therefore the angular velocity measurement value a is valid data. If the angular velocity measurement b is less than or equal to the reference threshold c, it is assumed that the angular velocity is not caused by human waking motion, and thus the angular velocity measurement c is not valid data.
And S230, judging whether the first time interval is larger than a first time interval threshold value.
The swing action for awakening the air mouse usually lasts for a period of time, and the essence of the step is to judge whether the acquisition time of the angular velocity measurement value acquired this time and the time of the last time of updating the accumulated times of continuously acquired effective data correspond to the same action to be identified. If the first time interval is smaller than the first time interval threshold, it is indicated that the action to be recognized is continuous in a time period from the time of updating the accumulated times of continuously collecting the valid data to the time of collecting the angular velocity measurement value obtained this time, and it can be considered that the same action to be recognized corresponds to the time period. If the first time interval is greater than or equal to the first time interval threshold, it is indicated that the action to be recognized is discontinuous in a time period from the time of updating the accumulated times of continuously acquired valid data to the time of acquiring the angular velocity measurement value acquired this time, and it may be considered that the action to be recognized does not correspond to the same action to be recognized in the time period. This step verifies the first characteristic of the wake-up action described above.
And S240, if the first time interval is smaller than the first time interval threshold, judging whether the angular velocity measured value acquired this time is effective data.
In practice, the swing action for waking up the air mouse often needs to have a large swing amplitude, and the essence of this step is to determine whether the swing amplitude of the air mouse is large enough, and whether the swing action for waking up the air mouse is currently performed by the user.
And S250, if the angular velocity measured value acquired this time is effective data, updating the accumulated times of continuously acquiring the effective data.
And S260, if the accumulated times of continuously collecting the effective data is larger than the updating threshold value, awakening the air mouse.
Since in practice, the swing motion for waking up the air mouse often has a certain duration, the essence of S250 and S260 is to determine whether the duration of the swing motion for currently waking up the air mouse satisfies a certain duration. And if the accumulated times of continuously collecting the effective data is greater than the updating threshold value, namely the duration of the swing action of awakening the air mouse at present reaches a certain time length, determining that the action to be identified is an awakening action, and awakening the air mouse.
S240-S260 are verification of the wake action feature one and feature two above.
The essence of the above technical solution is that the angular velocity information is considered from a plurality of angles (such as continuity of motion, duration of motion, and swing amplitude of motion), and the motion characteristics of the air mouse are determined to determine the intention of the air mouse holder, which can realize accurate identification of the wake-up motion.
On the basis of the above technical solution, optionally, the method further includes: recording the execution time of each step of judging whether the collected angular velocity measurement value is valid data; at this time, S240 may be replaced with: if the first time interval is smaller than the first time interval threshold, determining the acquisition time of the angular velocity measurement value and a second time interval of the execution time of the step of judging whether the angular velocity measurement value acquired at the time is valid data or not at the last time; judging whether the second time interval is greater than a second time interval threshold value; the second time interval is greater than the time interval of acquiring the angular speed information of the air mouse twice; and if the second time interval is greater than the second time interval threshold, judging whether the angular velocity measured value acquired this time is effective data.
In practice, the duration of the swing action for waking up the air mouse is often much longer than the time interval between the acquisition moments of two adjacent angular velocity sensors, so that the essence of the arrangement is that when the air mouse wake-up method provided by the present disclosure is executed, only a few times of angular velocity information acquired by the angular velocity sensors are selected as a data basis for judging whether to wake up the air mouse; instead of using all the angular velocity information acquired by the angular velocity sensor as a data basis for judging whether to awaken the air mouse or not, the calculation amount of the air mouse awakening method in the whole execution process can be reduced, and the power consumption is reduced.
Further, in S240, it is determined whether the angular velocity information collected this time is valid data, including; determining a norm of the angular acceleration based on the angular velocity measurement; and judging whether the angular velocity measured value acquired this time is effective data or not based on the mode of the angular acceleration. Since only a few times of angular velocity information collected by the angular velocity sensor is selected as a data basis for determining whether to wake up the air mouse when the air mouse wake-up method provided by the present disclosure is performed, it may cause a difference in time interval between the collection times of two adjacent times of angular velocity information selected as the data basis. "based on the model of the angular acceleration, whether the angular velocity measurement value collected this time is valid data" is judged, and it is substantially based on the amount of change in the angular velocity per unit time, whether the angular velocity measurement value collected this time is valid data is judged. The method is equivalent to converting the change conditions of the angular velocities in different time lengths into the change conditions of the angular velocities in the same time length, and the final obtained judgment result can be ensured to be accurate.
Further, "judge whether the angular velocity measurement value collected this time is valid data based on the model of the angular acceleration", includes: and judging whether the angular velocity information collected this time is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold.
On the basis of the above technical solution, optionally, the method further includes: and if the first time interval is greater than or equal to the first time interval threshold, clearing 0 the accumulated times of continuously acquiring the effective data. Because the first time interval is greater than or equal to the first time interval threshold, it is indicated that the motion is discontinuous in the time period from the current time to the time of updating the accumulated times of continuously collecting the valid data last time, and it can be considered that the same swing motion for waking up the air mouse is not corresponding to the time period. Therefore, the accumulated times of continuously collecting effective data is cleared to 0, so as to ensure that the intention of the air mouse holder is accurately judged next time.
On the basis of the above technical solution, optionally, the method further includes: and if the angular velocity measured value acquired this time is not valid data, not updating the accumulated times of continuously acquiring the valid data.
Fig. 3 is a flowchart of another air mouse wake-up method according to an embodiment of the present disclosure. Fig. 3 is a specific example of fig. 1. Illustratively, referring to fig. 3, the method includes:
s301, periodically acquiring angular velocity information of the air mouse, wherein the angular velocity information comprises an angular velocity measurement value and an angular velocity measurement value acquisition time.
Illustratively, among the angular velocity information collected at time t, angular velocity measurementThe magnitude is (omega)x,t,ωy,t,ωz,t) The acquisition time of the angular velocity measurement value is t.
S302, determining a first time interval of the acquisition time of the angular velocity measurement value and the time of the last updating of the accumulated times of continuously acquired effective data.
Illustratively, the time when the accumulated number of times of continuously collecting valid data is updated last time is set as tscoreFirst time interval Δ t1 ═ t-tscore
S303, determining whether the first time interval is greater than the first time interval threshold, if so, performing S310, and if not, performing S304.
Illustratively, the first time interval threshold is set to TtimeoutIn this step, the determination of Δ T1 and TtimeoutThe magnitude relationship of (1).
S304, determining a second time interval between the current angular velocity measurement value acquisition time and the execution time of the step of judging whether the current angular velocity measurement value is valid data or not in the last execution.
Illustratively, the execution time of the last step of judging whether the angular velocity measurement value collected this time is valid data is set as tcheckSecond time interval Δ t2 ═ t-tcheck
S305, judging whether the second time interval is larger than a second time interval threshold value or not; the second time interval is greater than the time interval of acquiring the angular speed information of the air mouse twice; if yes, go to S306, otherwise go to S311.
Illustratively, the second time interval threshold is set to TcheckIn this step, the determination of Δ T2 and TcheckThe magnitude relationship of (1).
S306, judging whether the angular velocity measured value collected this time is effective data, and updating the execution time of the step of judging whether the angular velocity measured value collected this time is effective data; if the determination result is yes, step S307 is executed, and if the determination result is no, step S312 is executed.
Setting an angular acceleration threshold value as a, optionally, when this step is executed, first obtaining a modulus of the angular velocity measurement value acquired this time (i.e., the angular velocity measurement value acquired at time t) and a modulus of the valid data determined last time; determining a mode of angular acceleration based on a mode of the angular velocity measurement value acquired this time and a mode of the valid data determined last time; and judging whether the angular velocity measured value acquired this time is effective data or not based on the mode of the angular acceleration.
Illustratively, the modulus of the last valid data determined is set to ωt-1Modulo of the angular velocity measurement value collected this time is
Figure BDA0002994954200000091
Mode of angular acceleration
Figure BDA0002994954200000092
And update tcheck. Judgment of
Figure BDA0002994954200000093
And the size of the A is related to determine whether the angular velocity measured value collected this time is valid data.
And S307, updating the accumulated times of continuously collecting effective data, and recording the collecting time of the angular velocity measured value collected this time.
Illustratively, if
Figure BDA0002994954200000094
Considering the angular velocity measured value collected this time as effective data, updating the accumulated times s of continuously collecting the effective data, and updating tscore
And S308, judging whether the accumulated number of the current continuous effective data acquisition is greater than an updating threshold value, if so, executing S309, and if not, executing S313.
Illustratively, the updating threshold value is set to S0, and the magnitude relation between S and S0 is judged.
S309, waking up the air mouse.
Illustratively, if S > S0, the air mouse is awakened.
And S310, clearing 0 the accumulated times of continuously collecting the effective data.
And S311, discarding the angular velocity information collected this time.
And S312, not updating the accumulated times of continuously collecting effective data, and not recording the collecting time of the angular velocity measured value collected this time.
Illustratively, the accumulated number s of continuously collected valid data is not updated, nor is t updatedscore
And S313, not waking up the air mouse.
According to the technical scheme, the angular velocity information is considered from a plurality of angles (such as the continuity of the action, the duration of the action and the swing amplitude of the action), the motion characteristics of the air mouse are determined, the intention of the air mouse holder is judged, and the awakening action can be accurately identified. According to the technical scheme, in the whole execution process, the intention of the air mouse holder can be judged only by means of low-frequency data reporting, and the air mouse can be awakened in time.
In addition, in the above technical scheme, the first time interval threshold, the second time interval threshold, the angular acceleration threshold and the update threshold can be set according to user requirements to meet awakening requirements of different scenes, and the method has expandability and customizability. For example, for an air mouse serving as a remote controller and matched with a smart television, through reasonable setting of the parameters, the air mouse can be awakened only when a user forcibly swings the air mouse for many times or swings the air mouse greatly along a certain direction, and the adverse phenomenon that the air mouse is mistakenly awakened when the user does not use other functions can be avoided. Aiming at the air mouse matched with a computer, the air mouse can be awakened only by lifting the air mouse through reasonable setting of the parameters, and the awakening sensitivity of the air mouse can be improved.
In the basis of the above technical scheme, it may also be set that the cumulative number of times of continuously acquiring valid data at present is greater than the update threshold, and the acquisition time t of the current angular velocity measurement value and the time interval of waking up the air mouse for the last time are greater than a preset wake-up interval, then the operation of waking up the air mouse is executed this time. The setting can avoid that the air mouse frequently reports the instruction of waking up the air mouse to the electronic equipment (such as an intelligent television or a computer) matched with the air mouse, and can reduce the calculation amount of the electronic equipment matched with the air mouse.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Fig. 4 is a schematic structural diagram of an air mouse wake-up apparatus in an embodiment of the present disclosure. The air mouse wake-up device provided by the embodiment of the disclosure can be configured in an air mouse. Referring to fig. 4, the air mouse wake-up device specifically includes:
an angular velocity obtaining module 410, configured to periodically obtain angular velocity information of the air mouse;
a determining module 420, configured to determine whether the angular velocity information meets a preset wake-up condition based on the angular velocity information;
and a wake-up module 430, configured to wake up the air mouse if the angular velocity information meets a preset wake-up condition.
Further, the determining module 420 is configured to:
determining whether the motion to be recognized is continuous or not based on the angular speed information;
if the action to be recognized is continuous, judging whether the action to be recognized is a wake-up action;
if the action to be identified is a wake-up action, determining whether the angular velocity information meets a preset wake-up condition; otherwise, determining that the angular speed information does not meet the preset awakening condition.
Further, the angular velocity information includes an angular velocity measurement value and an acquisition time of the angular velocity measurement value;
a determining module 420, configured to:
determining a first time interval between the acquisition time of the angular velocity measurement value and the time of updating the accumulated times of continuously acquired effective data last time;
judging whether the first time interval is larger than a first time interval threshold value or not;
if the first time interval is smaller than a first time interval threshold value, determining that the action to be recognized is continuous; otherwise, determining that the action to be recognized is discontinuous;
if the motion to be identified is continuous, judging whether the angular velocity measured value acquired this time is effective data;
if the angular velocity measured value collected this time is valid data, updating the accumulated times of continuously collecting the valid data;
judging whether the accumulated times of continuously collecting effective data is greater than an updating threshold value or not;
and if the accumulated times of continuously collecting the effective data is greater than the updating threshold value, determining the action to be identified as a wake-up action.
Further, the device also comprises a recording module for recording the execution time of each step of judging whether the angular velocity measurement value acquired at this time is valid data;
the determining module 420, if the first time interval is smaller than a first time interval threshold, determines whether the angular velocity measurement value collected this time is valid data, including;
if the first time interval is smaller than a first time interval threshold, determining the acquisition time of the angular velocity measurement value this time and a second time interval of the execution time of the step of judging whether the angular velocity measurement value acquired this time is valid data or not in the last time;
judging whether the second time interval is greater than a second time interval threshold value; the second time interval is greater than the time interval of obtaining the angular speed information of the air mouse twice;
and if the second time interval is larger than a second time interval threshold, judging whether the angular velocity measured value acquired this time is effective data.
Further, the determining module 420 determines whether the angular velocity information collected this time is valid data, including;
determining a norm of angular acceleration based on the angular velocity measurements;
and judging whether the angular velocity measured value acquired this time is effective data or not based on the mode of the angular acceleration.
Further, the determining module 420, when executing the module based on the angular acceleration, determines whether the angular velocity measurement value collected this time is valid data, including:
and judging whether the angular velocity information collected this time is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold.
Further, the determining module 420 is further configured to:
and clearing 0 the accumulated times of continuously acquiring the effective data if the first time interval is greater than or equal to a first time interval threshold value.
Further, the determining module 420 is further configured to:
and if the angular velocity measured value acquired this time is not valid data, not updating the accumulated times of continuously acquiring the valid data.
The air mouse wake-up device provided by the embodiment of the disclosure can execute the steps executed by the air mouse in the air mouse wake-up method provided by the embodiment of the disclosure, has execution steps and beneficial effects, and is not described again here.
Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present disclosure. Referring now specifically to fig. 5, a schematic diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 1000 in the embodiment of the present disclosure is an air mouse. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 1000 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 1001 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)1002 or a program loaded from a storage device 1008 into a Random Access Memory (RAM)1003 to implement an air mouse wake-up method according to an embodiment of the present disclosure. In the RAM 1003, various programs and information necessary for the operation of the electronic apparatus 1000 are also stored. The processing device 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
Generally, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 1007 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 1008 including, for example, magnetic tape, hard disk, and the like; and a communication device 1009. The communications apparatus 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange information. While fig. 5 illustrates an electronic device 1000 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart, thereby implementing the air mouse wake-up method as above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 1009, or installed from the storage means 1008, or installed from the ROM 1002. The computer program, when executed by the processing device 1001, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, in which computer readable program code is carried. Such a propagated information signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital information communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
periodically acquiring angular velocity information of the air mouse;
judging whether the angular speed information meets a preset awakening condition or not based on the angular speed information;
and if the angular speed information meets a preset awakening condition, awakening the air mouse.
Optionally, when the one or more programs are executed by the electronic device, the electronic device may also perform other steps of the above embodiments.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present disclosure, which enable those skilled in the art to understand or practice the present disclosure. 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 disclosure. Thus, the present disclosure 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 (11)

1. An air mouse wake-up method, comprising:
periodically acquiring angular velocity information of the air mouse;
judging whether the angular speed information meets a preset awakening condition or not based on the angular speed information;
and if the angular speed information meets a preset awakening condition, awakening the air mouse.
2. The method according to claim 1, wherein the determining whether the angular velocity information satisfies a preset wake-up condition based on the angular velocity information comprises:
determining whether the motion to be recognized is continuous or not based on the angular speed information;
if the action to be recognized is continuous, judging whether the action to be recognized is a wake-up action;
if the action to be identified is a wake-up action, determining whether the angular velocity information meets a preset wake-up condition; otherwise, determining that the angular speed information does not meet the preset awakening condition.
3. The method of claim 2,
the angular velocity information comprises an angular velocity measurement value and an acquisition time of the angular velocity measurement value;
the determining whether the motion to be recognized is continuous based on the angular velocity information includes:
determining a first time interval between the acquisition time of the angular velocity measurement value and the time of updating the accumulated times of continuously acquired effective data last time;
judging whether the first time interval is larger than a first time interval threshold value or not;
if the first time interval is smaller than a first time interval threshold value, determining that the action to be recognized is continuous; otherwise, determining that the action to be recognized is discontinuous;
if the action to be recognized is continuous, judging whether the action to be recognized is a wakeup action or not, including:
if the motion to be identified is continuous, judging whether the angular velocity measured value acquired this time is effective data;
if the angular velocity measured value collected this time is valid data, updating the accumulated times of continuously collecting the valid data;
judging whether the accumulated times of continuously collecting effective data is greater than an updating threshold value or not;
and if the accumulated times of continuously collecting the effective data is greater than the updating threshold value, determining the action to be identified as a wake-up action.
4. The method of claim 3, further comprising: recording the execution time of each step of judging whether the collected angular velocity measurement value is valid data;
judging whether the angular velocity measurement value acquired this time is valid data or not;
determining a second time interval between the acquisition time of the angular velocity measurement value and the execution time of the step of judging whether the angular velocity measurement value acquired this time is valid data or not executed last time;
judging whether the second time interval is greater than a second time interval threshold value; the second time interval is greater than the time interval of obtaining the angular speed information of the air mouse twice;
and if the second time interval is larger than a second time interval threshold, judging whether the angular velocity measured value acquired this time is effective data.
5. The method according to claim 4, wherein the determining whether the angular velocity information collected this time is valid data includes;
determining a norm of angular acceleration based on the angular velocity measurements;
and judging whether the angular velocity measured value acquired this time is effective data or not based on the mode of the angular acceleration.
6. The method according to claim 5, wherein the determining whether the angular velocity measurement value collected this time is valid data based on the modulus of the angular acceleration comprises:
and judging whether the angular velocity information collected this time is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold.
7. The method of claim 3, further comprising:
and clearing 0 the accumulated times of continuously acquiring the effective data if the first time interval is greater than or equal to a first time interval threshold value.
8. The method of claim 3, further comprising:
and if the angular velocity measured value acquired this time is not valid data, not updating the accumulated times of continuously acquiring the valid data.
9. An air mouse wake-up device, comprising:
the angular velocity acquisition module is used for periodically acquiring the angular velocity information of the air mouse;
the judging module is used for judging whether the angular velocity information meets a preset awakening condition or not based on the angular velocity information;
and the awakening module is used for awakening the air mouse if the angular velocity information meets a preset awakening condition.
10. An electronic device, characterized in that the electronic device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202110326751.2A 2021-03-26 2021-03-26 Air mouse awakening method and device, electronic equipment and storage medium Pending CN113032028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110326751.2A CN113032028A (en) 2021-03-26 2021-03-26 Air mouse awakening method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110326751.2A CN113032028A (en) 2021-03-26 2021-03-26 Air mouse awakening method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113032028A true CN113032028A (en) 2021-06-25

Family

ID=76474171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110326751.2A Pending CN113032028A (en) 2021-03-26 2021-03-26 Air mouse awakening method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032028A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504839A (en) * 2021-07-23 2021-10-15 北京字节跳动网络技术有限公司 Method and device for controlling mouse dormancy, electronic equipment and computer storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581443A (en) * 2013-11-14 2014-02-12 惠州Tcl移动通信有限公司 Intelligent terminal automatic awakening method and system based on sensors
CN104503569A (en) * 2014-12-09 2015-04-08 上海斐讯数据通信技术有限公司 Electronic equipment and awakening method thereof
CN105843599A (en) * 2016-02-01 2016-08-10 乐视移动智能信息技术(北京)有限公司 Method and apparatus for reducing user high-frequency operation influence, and user terminal
WO2017049734A1 (en) * 2015-09-25 2017-03-30 宇龙计算机通信科技(深圳)有限公司 Network mode switching protection method and apparatus
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN108536377A (en) * 2018-04-11 2018-09-14 Oppo广东移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN111651041A (en) * 2020-05-27 2020-09-11 上海龙旗科技股份有限公司 Lifting wake-up method and system for mobile equipment
CN111782284A (en) * 2020-06-29 2020-10-16 北京小米移动软件有限公司 Method and device for controlling functional module and storage medium
CN112099862A (en) * 2020-09-16 2020-12-18 歌尔科技有限公司 Wearable device, screen awakening method thereof and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581443A (en) * 2013-11-14 2014-02-12 惠州Tcl移动通信有限公司 Intelligent terminal automatic awakening method and system based on sensors
CN104503569A (en) * 2014-12-09 2015-04-08 上海斐讯数据通信技术有限公司 Electronic equipment and awakening method thereof
WO2017049734A1 (en) * 2015-09-25 2017-03-30 宇龙计算机通信科技(深圳)有限公司 Network mode switching protection method and apparatus
CN105843599A (en) * 2016-02-01 2016-08-10 乐视移动智能信息技术(北京)有限公司 Method and apparatus for reducing user high-frequency operation influence, and user terminal
CN108307074A (en) * 2018-02-05 2018-07-20 广东欧珀移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN108536377A (en) * 2018-04-11 2018-09-14 Oppo广东移动通信有限公司 Display control method and device, terminal, computer readable storage medium
CN111651041A (en) * 2020-05-27 2020-09-11 上海龙旗科技股份有限公司 Lifting wake-up method and system for mobile equipment
CN111782284A (en) * 2020-06-29 2020-10-16 北京小米移动软件有限公司 Method and device for controlling functional module and storage medium
CN112099862A (en) * 2020-09-16 2020-12-18 歌尔科技有限公司 Wearable device, screen awakening method thereof and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113504839A (en) * 2021-07-23 2021-10-15 北京字节跳动网络技术有限公司 Method and device for controlling mouse dormancy, electronic equipment and computer storage medium

Similar Documents

Publication Publication Date Title
JP6235681B2 (en) Method, storage medium and system for mobile device state adjustment based on user intent and / or identification information
US9459698B2 (en) Gesture based power management system and method
US20130332108A1 (en) Embedded hardware state machine for context detection integrated with a sensor chip
WO2015197000A1 (en) Method and apparatus for controlling hardware state of mobile terminal
US10310593B2 (en) Electronic mobile device
US20170182906A1 (en) Apparatus and method for managing battery in consideration of rest period of battery
JPWO2016157641A1 (en) Information processing apparatus, information processing method, and program
CN111429902B (en) Method and apparatus for waking up a device
CN113032028A (en) Air mouse awakening method and device, electronic equipment and storage medium
US20170344123A1 (en) Recognition of Pickup and Glance Gestures on Mobile Devices
CN104516005B (en) GPS receiver device, electronic clock and control method
CN113377206A (en) Dictionary pen lifting awakening method, device and equipment
US10725064B2 (en) Methods of motion processing and related electronic devices and motion modules
CN109165194A (en) A kind of data conversion storage method, apparatus, electronic equipment and storage medium
Grützmacher et al. Towards energy efficient sensor nodes for online activity recognition
US11841231B2 (en) Method and system for vehicle route determination based on motion data
CN113093980B (en) Terminal control method and device, terminal and storage medium
US9479889B2 (en) Service platform for general-purposed multi-functional detectors
CN116943130A (en) Counting method, counting device, counting equipment and storage medium
CN110377362B (en) Method, device, terminal and storage medium for cleaning application program
CN113055534A (en) Terminal control method and device, terminal and non-transitory storage medium
CN111510553A (en) Motion trail display method and device and readable storage medium
JP6950232B2 (en) Electronic devices, location identification systems, location identification methods and programs
CN113673224B (en) Method and device for recognizing popular vocabulary, computer equipment and readable storage medium
US20230078591A1 (en) Determining the status of a tracking device based on orientation

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