CN113032028B - 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 PDFInfo
- Publication number
- CN113032028B CN113032028B CN202110326751.2A CN202110326751A CN113032028B CN 113032028 B CN113032028 B CN 113032028B CN 202110326751 A CN202110326751 A CN 202110326751A CN 113032028 B CN113032028 B CN 113032028B
- Authority
- CN
- China
- Prior art keywords
- angular velocity
- action
- time interval
- time
- judging whether
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 60
- 230000009471 action Effects 0.000 claims abstract description 78
- 230000001133 acceleration Effects 0.000 claims abstract description 44
- 238000005259 measurement Methods 0.000 claims description 29
- 230000002618 waking effect Effects 0.000 claims description 23
- 238000004590 computer program Methods 0.000 claims description 9
- 101100113065 Mus musculus Cfi gene Proteins 0.000 claims description 3
- 230000008569 process Effects 0.000 abstract description 11
- 230000005484 gravity Effects 0.000 abstract description 7
- 230000036544 posture Effects 0.000 abstract description 5
- 241000699666 Mus <mouse, genus> Species 0.000 description 114
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 238000004364 calculation method Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001427 coherent effect Effects 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing 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/03543—Mice or pucks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Computer Security & Cryptography (AREA)
- Position Input By Displaying (AREA)
Abstract
The disclosure relates to an air mouse wake-up method, an air mouse wake-up device, electronic equipment and a storage medium, wherein the method comprises the following steps: periodically acquiring angular velocity information of an air mouse; judging whether the angular velocity information meets a preset wake-up condition or not based on the angular velocity information; and if the angular velocity 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 the triaxial acceleration sensor, the air mouse cannot be interfered by gravity acceleration in the whole judging process, the air mouse can be swung by the same action when the air mouse is in different postures, and the awakening difficulty of the air mouse is consistent.
Description
Technical Field
The disclosure relates to the technical field of air mice, and in particular relates to an air mouse wake-up method, an air mouse wake-up device, electronic equipment and a storage medium.
Background
An air mouse (abbreviated as air mouse) is an input device which can operate a screen cursor like a traditional mouse, but can be directly used without being placed on any plane and swaying in the air.
At present, an air mouse is usually awakened by acquiring a linear acceleration value of the air mouse from a triaxial acceleration sensor, and when a modulus of the linear acceleration value exceeds a preset linear acceleration threshold value, awakening the air mouse.
In practice, the three-axis acceleration sensor collects linear accelerations of the air mouse in three coordinate axis directions under the coordinate system of the three-axis acceleration sensor. Due to the influence of gravity, the components of the gravity acceleration in three axes are added to the data acquired by the triaxial acceleration sensor. In practice, the three-axis acceleration sensor is fixed on the air mouse, so that when the posture of the air mouse changes, the directions of three coordinate axes of the three-axis acceleration sensor are also changed, and the components of gravity acceleration on the three axes are correspondingly changed. The air mouse in different postures swings greatly along the same direction, and the influence of the gravity acceleration on the linear acceleration mode is different. Causing the user to swing with some action in some gestures, the air mouse may be awakened. While in other poses, the user swings with the same action and cannot wake up the air mouse. I.e. different gestures, the same action and inconsistent difficulty in waking up the air mouse.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems described above, the present disclosure provides an air mouse wake-up method, an air mouse wake-up device, an electronic device and a storage medium.
In a first aspect, the present disclosure provides an air mouse wake-up method, which is characterized by comprising:
Periodically acquiring angular velocity information of an air mouse;
judging whether the angular velocity information meets a preset wake-up condition or not based on the angular velocity information;
And if the angular velocity information meets a preset awakening condition, awakening the air mouse.
In a second aspect, the present disclosure further provides an air mouse wake-up device, including:
The angular velocity acquisition module is used for periodically acquiring 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 wake-up module is used for waking up the air mouse if the angular velocity information meets a preset wake-up condition.
In a third aspect, the present disclosure also provides an electronic device, including:
One or more processors;
a storage means for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the 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 an 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 provided by the embodiment of the disclosure, based on the angular velocity information, whether the angular velocity information meets the preset awakening condition is judged, if the angular velocity information meets the preset awakening condition, the air mouse is awakened, the essence is to determine whether to awaken the air mouse by means of the angular velocity information instead of the linear acceleration acquired by the triaxial acceleration sensor, the air mouse cannot be interfered by the gravity acceleration in the whole judging process, and the effect that the air mouse swings in the same action when the air mouse is in different postures can be achieved, and the awakening difficulty 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 disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are required for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of an air mouse wake-up method provided in 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 flow chart of yet 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 device in an embodiment of the disclosure;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
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 otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
Fig. 1 is a flowchart of an air mouse wake-up method provided in an embodiment of the present disclosure, where the embodiment may be suitable for a case of waking up an air mouse from a sleep state, the method may be performed by an air mouse wake-up device, the device may be implemented in a software and/or hardware manner, and the device may be configured in the air mouse. As shown in fig. 1, the method specifically may include:
s110, periodically acquiring angular velocity 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. The angular velocity sensor may be a gyroscope or an inertial measurement system, for example.
S120, judging whether the angular velocity information meets a preset wake-up condition or not based on the angular velocity information.
The specific implementation method of this step is various, and optionally, the angular velocity information includes an angular velocity measurement value, and a reference threshold value is set in advance. The specific implementation method of the steps 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 a preset wake-up condition or not based on the magnitude relation between the angular velocity measurement value and the reference threshold value.
For example, if the angular velocity measurement is greater than the reference threshold, determining that the angular velocity information satisfies a preset wake-up condition; if the angular velocity measured value is smaller than or equal to the reference threshold value, determining that the angular velocity information does not meet the preset wake-up condition.
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 of the method is to determine whether to awaken the air mouse by means of the angular velocity information instead of the linear acceleration acquired by the triaxial acceleration sensor, the air mouse cannot be interfered by the gravity acceleration in the whole judging process, and the effect that the air mouse swings in the same action when the air mouse is in different postures can be achieved, and the awakening difficulty 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 features: the first feature is that the motion is a coherent motion that lasts for a certain time but is shorter in duration; and secondly, the motion has a certain amplitude, and the angular velocity is suddenly changed. Based on this, optionally, setting S120 includes: determining whether the action to be recognized is continuous or not based on the angular velocity information; if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not; 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 velocity information does not meet the preset wake-up condition. Wherein, the step of determining whether the action to be identified is continuous is to verify the first feature, and the step of determining whether the action to be identified is a wake-up action is to verify the second feature. This arrangement allows for accurate recognition of the wake-up action.
Fig. 2 is a flowchart of another method for waking up an air mouse according to an embodiment of the present disclosure. Fig. 2 is a specific example of fig. 1. Illustratively, referring to FIG. 1, the method comprises:
s210, periodically acquiring angular velocity information of the air mouse, wherein the angular velocity information comprises angular velocity measurement values and angular velocity measurement value acquisition time.
S220, determining a first time interval between the angular velocity measured value acquisition time and the accumulated time of last updated continuous effective data acquisition.
The valid data is response data of angular velocity information caused by a wake-up operation of a person. For example, 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 is considered to be caused by the wake-up motion of the person, and thus 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 considered that the angular velocity is not caused by the wake-up action of the person, and therefore the angular velocity measurement c is not valid data.
S230, judging whether the first time interval is larger than a first time interval threshold.
Since the swing motion for waking up the air mouse often lasts for a period of time, the essence of the step is to judge whether the collection time of the angular velocity measured value obtained this time and the accumulated time of last updated continuous collection effective data correspond to the same motion to be identified. If the first time interval is smaller than the first time interval threshold, the time period from the last time of updating the accumulated time of continuously collecting the effective data to the time of collecting the angular velocity measured value obtained this time is indicated that the action to be identified is continuous, and the action to be identified can be considered to correspond to the same action to be identified in the time period. If the first time interval is greater than or equal to the first time interval threshold, the time period from the last time of updating the accumulated time of continuously collecting the effective data to the time of collecting the angular velocity measured value obtained this time is indicated that the action to be identified is discontinuous, and the action to be identified can be considered as not corresponding to the same action to be identified in the time period. This step is to verify the feature one of the wake-up action above.
S240, if the first time interval is smaller than the first time interval threshold, judging whether the angular velocity measured value acquired at this time is effective data.
Since in practice, the swing motion for waking up the air mouse often needs to have a larger swing amplitude, the essence of this step is to determine whether the swing amplitude of the air mouse is large enough or not, and whether it can be recognized that the user is currently making the swing motion for waking up the air mouse.
S250, if the acquired angular velocity measured value is effective data, updating the accumulated times of continuously acquiring the effective data.
S260, if the accumulated number of continuous collection of effective data is larger than the update threshold value, waking up 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 waking up the air mouse currently satisfies a certain duration. If the accumulated number of continuous collection of effective data is larger than the update threshold value, namely the duration of the swing action of the current wake-up air mouse reaches a certain duration, determining the action to be identified as the wake-up action, and waking up the air mouse.
S240-S260 verify the wake-up action feature one and feature two above.
The essence of the above technical solution is that the angular velocity information is considered from multiple angles (such as continuity of motion, duration of motion and swing amplitude of motion), and the motion characteristics of the air mouse are determined so as to judge the intention of the holder of the air mouse, which can realize accurate recognition of the wake-up motion.
On the basis of the technical scheme, optionally, the method further comprises: recording the execution time of each step of executing the step of judging whether the acquired angular velocity measured value is valid data or not; at this time, S240 may be replaced with: if the first time interval is smaller than the first time interval threshold, determining the current angular velocity measured value acquisition time and a second time interval of the last execution time of the step of judging whether the current acquired angular velocity measured value is effective data or not; judging whether the second time interval is larger than a second time interval threshold value or not; the second time interval is larger than the time interval of acquiring the angular velocity information of the air mouse twice; if the second time interval is greater than the second time interval threshold, judging whether the acquired angular velocity measured value is effective data or not.
Because in practice, the duration of the swing motion for waking up the air mouse is often much longer than the time interval between the acquisition moments of two adjacent angular velocity sensors, the essence of such arrangement is that only a few times of angular velocity information acquired by the angular velocity sensors is selected as a data basis for judging whether to wake up the air mouse when the air mouse wake-up method provided by the disclosure is executed; instead of taking all angular velocity information acquired by the angular velocity sensor as a data basis for judging whether to wake up the air mouse, the calculation amount of the air mouse wake-up 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 acquired this time is valid data, including; determining a modulus of angular acceleration based on the angular velocity measurement; based on the modulus of the angular acceleration, whether the angular velocity measured value acquired at this time is effective data or not is judged. Since only a small number of angular velocity information acquired by the angular velocity sensor is selected as a data basis for judging whether to wake up the air mouse when the air mouse wake-up method provided by the present disclosure is executed, it may result in different time intervals of acquisition time of adjacent two angular velocity information selected as the data basis. The method comprises the steps of judging whether the angular velocity measured value acquired at this time is effective data based on a model of angular acceleration, and judging whether the angular velocity measured value acquired at this time is effective data based on the change amount of angular velocity in unit time. The method is equivalent to converting the change condition of angular velocity of different time lengths into the change condition of angular velocity of the same time length, and can ensure that the finally obtained judgment result is accurate.
Further, "based on the modulus of angular acceleration, judging whether the angular velocity measurement value acquired this time is valid data", including: and judging whether the acquired angular velocity information is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold value.
On the basis of the technical scheme, optionally, the method further comprises: and if the first time interval is greater than or equal to the first time interval threshold value, the accumulated number of continuous effective data acquisition is 0. Since the first time interval is greater than or equal to the first time interval threshold, the action is not consistent in the time period from the current time to the time of last updating the accumulated number of times of continuously collecting the effective data, and the action of not corresponding to the same swinging action of waking up the air mouse in the time period can be considered. Therefore, the accumulated number of the continuous effective data collection is cleared by 0, so that the intention of the holder of the air mouse is accurately judged next time.
On the basis of the technical scheme, optionally, the method further comprises: if the angular velocity measured value acquired at this time is not effective data, the accumulated times of continuously acquiring the effective data are not updated.
Fig. 3 is a flowchart of yet another air mouse wake-up method provided in 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 an air mouse, wherein the angular velocity information comprises angular velocity measurement values and angular velocity measurement value acquisition time.
For example, in the angular velocity information acquired at time t, the angular velocity measurement value is (ω x,t,ωy,t,ωz,t), and the angular velocity measurement value acquisition time is t.
S302, determining a first time interval between the angular velocity measured value acquisition time and the accumulated time of last updated continuous effective data acquisition.
Illustratively, the accumulated time of last updated continuously collecting effective data is set to be t score, and the first time interval Δt1=t-t score.
S303, judging whether the first time interval is larger than a first time interval threshold, if yes, executing S310, and if not, executing S304.
For example, the first time interval threshold is set to T timeout, and this step determines the magnitude relationship between Δt1 and T timeout.
S304, determining the current angular velocity measured value acquisition time and a second time interval of the last execution time of the step of judging whether the current acquired angular velocity measured value is valid data.
For example, the execution time of the last step of determining whether the current acquired angular velocity measurement value is valid data is set to t check, and the second time interval Δt2=t-t check.
S305, judging whether the second time interval is larger than a second time interval threshold value; the second time interval is larger than the time interval of acquiring the angular velocity information of the air mouse twice; if yes, S306 is executed, and if no, S311 is executed.
Illustratively, the second time interval threshold is set to T check, and this step determines the magnitude relationship between Δt2 and T check.
S306, judging whether the angular velocity measured value acquired at this time is effective data, and updating and executing the execution time of the step of judging whether the angular velocity measured value acquired at this time is effective data; if the determination result is execution S307, if the determination result is execution S312.
Illustratively, setting the angular acceleration threshold as a, optionally, when executing the step, firstly obtaining a module of the angular velocity measurement value acquired this time (i.e. the angular velocity measurement value acquired at the time t) and a module of the valid data determined last time; determining a model of angular acceleration based on the model of the angular velocity measured value acquired at this time and the model of the effective data determined last time; based on the modulus of the angular acceleration, whether the angular velocity measured value acquired at this time is effective data or not is judged.
Exemplary, the last determined effective data is set to be modulo omega t-1, and the current acquired angular velocity measurement is modulo omega t-1 Mode of angular acceleration/>And updates t check. Judgment/>And the magnitude relation with A to determine whether the angular velocity measured value acquired at this time is effective data.
S307, updating the accumulated times of continuously collecting the effective data, and recording the collection time of the collected angular velocity measured value.
Illustratively, ifThe angular velocity measured value acquired at this time is considered as effective data, the accumulated number s of continuous acquisition of the effective data is updated, and t score is updated.
S308, judging whether the accumulated number of the current continuous acquisition effective data is larger than an updating threshold value, if so, executing S309, and if not, executing S313.
Illustratively, the update threshold is set to S0, and the magnitude relation between S and S0 is determined.
S309, waking up the air mouse.
Illustratively, if S > S0, the air mouse is awakened.
S310, the accumulated times of continuously collecting effective data are cleared to 0.
S311, discarding the acquired angular velocity information.
S312, the accumulated times of continuously collecting the effective data are not updated, and the collecting time of the collected angular velocity measured value is not recorded.
Illustratively, the accumulated number s of continuously acquired valid data is not updated, nor is t score updated.
S313, not waking up the air mouse.
According to the technical scheme, the angular velocity information is considered from multiple angles (such as the continuity of motion, the duration of motion and the swing amplitude of motion), and the motion characteristics of the air mouse are determined so as to judge the intention of a holder of the air mouse, so that the accurate recognition of the awakening motion can be realized. According to the technical scheme, in the whole execution process, the purpose of judging the intention of an air mouse holder and waking up the air mouse in time can be met only by reporting low-frequency data, and in the whole execution process, the calculation amount is low and the power consumption is low.
In addition, in the technical scheme, the first time interval threshold, the second time interval threshold, the angular acceleration threshold and the updating threshold can be set according to the user requirements so as to meet the wake-up requirements of different scenes, and the system has expandability and customizable performance. For example, for the air mouse which is matched with the intelligent television and serves as a remote controller, through reasonable setting of the parameters, the air mouse can be awakened only when a user throws the air mouse forcefully for many times or swings the air mouse in a certain direction to a large extent, and the phenomenon that the user does not wake the air mouse by mistake when using other functions can be avoided. Aiming at the air mouse matched with the computer, through reasonable setting of the parameters, the air mouse can be awakened only by lifting the air mouse, and the awakening sensitivity of the air mouse can be improved.
In the above technical solution, the current continuous collection of effective data may be further set to have the accumulated number of times greater than the update threshold, and the collection time t of the current angular velocity measurement value and the time interval of last waking up the air mouse are greater than the preset wake-up interval, so that the operation of waking up the air mouse is executed this time. The arrangement can avoid the frequent report of the instruction of waking up the air mouse to the electronic equipment (such as an intelligent television or a computer, etc.) 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 foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present invention is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present invention. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present invention.
Fig. 4 is a schematic structural diagram of an air mouse wake-up device in an embodiment of the 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 acquisition module 410, configured to periodically acquire angular velocity information of the air mouse;
A judging module 420, configured to judge 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 judging module 420 is configured to:
determining whether the action to be recognized is continuous or not based on the angular velocity information;
if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not;
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 velocity information does not meet a preset wake-up condition.
Further, the angular velocity information includes an angular velocity measurement value, and the angular velocity measurement value acquisition time;
A judging module 420, configured to:
Determining a first time interval between the angular velocity measured value acquisition time and the accumulated time of continuously acquiring effective data updated 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, determining that the action to be identified is continuous; otherwise, determining that the action to be identified is discontinuous;
if the action to be identified is continuous, judging whether the angular velocity measured value acquired at this time is effective data;
if the angular velocity measured value acquired at this time is effective data, updating the accumulated times of continuously acquiring the effective data;
Judging whether the accumulated times of continuously collecting effective data is larger than an updating threshold value or not;
And if the accumulated times of continuously collecting the effective data is larger than the updating threshold value, determining the action to be identified as the wake-up action.
Further, the device also comprises a recording module for recording the execution time of each step of judging whether the acquired angular velocity measured value is effective data;
A judging module 420, configured to judge whether the angular velocity measurement value acquired this time is valid data if the first time interval is less than a first time interval threshold value, including;
if the first time interval is smaller than a first time interval threshold, determining the current angular velocity measured value acquisition time and a second time interval of the last execution time of the step of judging whether the current acquired angular velocity measured value is effective data or not;
Judging whether the second time interval is larger than a second time interval threshold value or not; the second time interval is larger than the time interval of acquiring 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 acquired angular velocity measured value is effective data or not.
Further, the judging module 420 is configured to execute the judgment of whether the collected angular velocity information is valid data, including;
Determining a modulus of angular acceleration based on the angular velocity measurement;
Based on the modulus of the angular acceleration, whether the angular velocity measured value acquired at this time is effective data or not is judged.
Further, the determining module 420, when executing the module based on the angular acceleration, determines whether the current collected angular velocity measurement value is valid data, includes:
And judging whether the acquired angular velocity information is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold value.
Further, the judging module 420 is further configured to:
and if the first time interval is greater than or equal to a first time interval threshold value, clearing 0 the accumulated times of continuously collecting the effective data.
Further, the judging module 420 is further configured to:
If the angular velocity measured value acquired at this time is not effective data, the accumulated times of continuously acquiring the effective data are not updated.
The air mouse wake-up device provided by the embodiment of the disclosure can execute steps executed by the air mouse in the air mouse wake-up method provided by the embodiment of the disclosure, has the executing steps and beneficial effects, and is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the disclosure. Referring now in particular 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 embodiments of the present disclosure is an air mouse. The electronic device shown in fig. 5 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
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 suitable actions and processes to implement an air mouse wake-up method as an embodiment of the present disclosure according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage means 1008 into a Random Access Memory (RAM) 1003. 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.
In general, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 1007 including, for example, a Liquid Crystal Display (LCD), speaker, vibrator, etc.; storage 1008 including, for example, magnetic tape, hard disk, etc.; and communication means 1009. The communication means 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange information. While fig. 5 shows an electronic device 1000 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to 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 shown in the flowchart, 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 via the communication device 1009, or installed from the storage device 1008, or installed from the ROM 1002. The above-described functions defined in the method of the embodiment of the present disclosure are performed when the computer program is executed by the processing device 1001.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 context of this 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 the present disclosure, however, the computer-readable signal medium may include an information signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, 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 digital information communication (e.g., a communication network) in any form or medium. 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated 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 an air mouse;
judging whether the angular velocity information meets a preset wake-up condition or not based on the angular velocity information;
And if the angular velocity information meets a preset awakening condition, awakening the air mouse.
Alternatively, the electronic device may perform other steps of the above embodiments when one or more of the above programs are executed by the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), 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. The 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 should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the disclosure to enable one skilled in the art to understand or practice the 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 and described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. An air mouse wake-up method, comprising:
periodically acquiring angular velocity information of an air mouse; the angular velocity information comprises an angular velocity measured value and the angular velocity measured value acquisition time;
judging whether the angular velocity information meets a preset wake-up condition or not based on the angular velocity information;
if the angular velocity information meets a preset awakening condition, awakening the air mouse;
based on the angular velocity information, judging whether the angular velocity information meets a preset wake-up condition or not includes:
determining whether the action to be recognized is continuous or not based on the angular velocity information;
if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not;
if the action to be identified is a wake-up action, determining that the angular velocity information meets a preset wake-up condition; otherwise, determining that the angular velocity information does not meet a preset wake-up condition;
The determining whether the action to be identified is continuous based on the angular velocity information comprises the following steps:
Determining a first time interval between the angular velocity measured value acquisition time and the accumulated time of continuously acquiring effective data updated 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, determining that the action to be identified is continuous; otherwise, determining that the action to be identified is discontinuous;
if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not, including:
if the action to be identified is continuous, judging whether the angular velocity measured value acquired at this time is effective data;
if the angular velocity measured value acquired at this time is effective data, updating the accumulated times of continuously acquiring the effective data;
Judging whether the accumulated times of continuously collecting effective data is larger than an updating threshold value or not;
If the accumulated times of continuously collecting the effective data is larger than the updating threshold value, determining the action to be identified as a wake-up action;
the method for judging whether the angular velocity measured value acquired at this time is effective data or not further comprises the following steps:
recording the execution time of each step of executing the step of judging whether the acquired angular velocity measured value is valid data or not;
determining the current angular velocity measured value acquisition time and a second time interval of the last execution time of the step of judging whether the current acquired angular velocity measured value is effective data or not;
Judging whether the second time interval is larger than a second time interval threshold value or not; the second time interval is larger than the time interval of acquiring 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 acquired angular velocity measured value is effective data or not.
2. The method according to claim 1, wherein the determining whether the current acquired angular velocity information is valid data includes;
Determining a modulus of angular acceleration based on the angular velocity measurement;
Based on the modulus of the angular acceleration, whether the angular velocity measured value acquired at this time is effective data or not is judged.
3. The method of claim 2, wherein determining whether the current collected angular velocity measurement is valid data based on the modulus of angular acceleration comprises:
And judging whether the acquired angular velocity information is effective data or not based on the magnitude relation between the modulus of the angular acceleration and the angular acceleration threshold value.
4. The method as recited in claim 1, further comprising:
and if the first time interval is greater than or equal to a first time interval threshold value, clearing 0 the accumulated times of continuously collecting the effective data.
5. The method as recited in claim 1, further comprising:
If the angular velocity measured value acquired at this time is not effective data, the accumulated times of continuously acquiring the effective data are not updated.
6. An air mouse wake-up device, comprising:
The angular velocity acquisition module is used for periodically acquiring angular velocity information of the air mouse; the angular velocity information comprises an angular velocity measured value and the angular velocity measured value acquisition time;
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;
the wake-up module is used for waking up the air mouse if the angular velocity information meets a preset wake-up condition;
the judging module is specifically configured to:
determining whether the action to be recognized is continuous or not based on the angular velocity information;
if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not;
if the action to be identified is a wake-up action, determining that the angular velocity information meets a preset wake-up condition; otherwise, determining that the angular velocity information does not meet a preset wake-up condition;
Wherein the determining whether the action to be recognized is continuous based on the angular velocity information comprises:
Determining a first time interval between the angular velocity measured value acquisition time and the accumulated time of continuously acquiring effective data updated 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, determining that the action to be identified is continuous; otherwise, determining that the action to be identified is discontinuous;
if the action to be identified is continuous, judging whether the action to be identified is a wake-up action or not, including:
if the action to be identified is continuous, judging whether the angular velocity measured value acquired at this time is effective data;
if the angular velocity measured value acquired at this time is effective data, updating the accumulated times of continuously acquiring the effective data;
Judging whether the accumulated times of continuously collecting effective data is larger than an updating threshold value or not;
If the accumulated times of continuously collecting the effective data is larger than the updating threshold value, determining the action to be identified as a wake-up action;
The method for judging whether the angular velocity measured value acquired at this time is effective data or not further comprises the following steps: recording the execution time of each step of executing the step of judging whether the acquired angular velocity measured value is valid data or not;
determining the current angular velocity measured value acquisition time and a second time interval of the last execution time of the step of judging whether the current acquired angular velocity measured value is effective data or not;
Judging whether the second time interval is larger than a second time interval threshold value or not; the second time interval is larger than the time interval of acquiring 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 acquired angular velocity measured value is effective data or not.
7. An electronic device, the electronic device comprising:
One or more processors;
a storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110326751.2A CN113032028B (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 CN113032028B (en) | 2021-03-26 | 2021-03-26 | Air mouse awakening method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113032028A CN113032028A (en) | 2021-06-25 |
CN113032028B true CN113032028B (en) | 2024-06-18 |
Family
ID=76474171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110326751.2A Active CN113032028B (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) | CN113032028B (en) |
Families Citing this family (1)
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (7)
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 |
CN104503569B (en) * | 2014-12-09 | 2018-10-12 | 上海斐讯数据通信技术有限公司 | Electronic equipment and its awakening method |
CN105554830B (en) * | 2015-09-25 | 2019-06-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of network mode switch protecting method and device |
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 |
CN112099862B (en) * | 2020-09-16 | 2021-11-30 | 歌尔科技有限公司 | Wearable device, screen awakening method thereof and readable storage medium |
-
2021
- 2021-03-26 CN CN202110326751.2A patent/CN113032028B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN113032028A (en) | 2021-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110147705B (en) | Vehicle positioning method based on visual perception and electronic equipment | |
US9641991B2 (en) | Systems and methods for determining a user context by correlating acceleration data from multiple devices | |
US20160170490A1 (en) | Gesture based power management system and method | |
US20130332108A1 (en) | Embedded hardware state machine for context detection integrated with a sensor chip | |
WO2017113381A1 (en) | Method for determining calibration parameter and mobile device | |
EP2656786A1 (en) | Portable electronic apparatus, and falling prediction method | |
US9534927B2 (en) | Mobile device and microcontroller unit | |
EP3278195B1 (en) | An electronic mobile device | |
US9885734B2 (en) | Method of motion processing and related mobile device and microcontroller unit | |
JP2014106840A (en) | Data processing device, data processing method, and program | |
CN113032028B (en) | Air mouse awakening method and device, electronic equipment and storage medium | |
CN113377206A (en) | Dictionary pen lifting awakening method, device and equipment | |
US10725064B2 (en) | Methods of motion processing and related electronic devices and motion modules | |
CN113093980A (en) | Terminal control method and device, terminal and storage medium | |
CN111429902B (en) | Method and apparatus for waking up a device | |
CN104516005B (en) | GPS receiver device, electronic clock and control method | |
CN109165194A (en) | A kind of data conversion storage method, apparatus, electronic equipment and storage medium | |
CN111510553B (en) | Motion trail display method and device and readable storage medium | |
CN104238728A (en) | State judging method and state judging device | |
WO2023186009A1 (en) | Step counting method and apparatus | |
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 | |
CN110941455A (en) | Active wake-up method and device and electronic equipment |
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 |