CN111752444A - Knocking event detection method and device - Google Patents
Knocking event detection method and device Download PDFInfo
- Publication number
- CN111752444A CN111752444A CN201910251967.XA CN201910251967A CN111752444A CN 111752444 A CN111752444 A CN 111752444A CN 201910251967 A CN201910251967 A CN 201910251967A CN 111752444 A CN111752444 A CN 111752444A
- Authority
- CN
- China
- Prior art keywords
- information
- event
- judging
- knocking
- lifting
- 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
Links
Images
Classifications
-
- 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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- 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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
-
- 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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
The embodiment of the application provides a knocking event detection method and a device, wherein the knocking event detection method comprises the following steps: when sound information belonging to a knocking event is monitored and a clicking event is detected, whether the time difference between the time when the sound information is monitored and the time when the clicking event is detected is smaller than a first preset time is judged, and if yes, the knocking event is judged to occur. According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
Description
Technical Field
The present disclosure relates to the field of screen touch technologies, and in particular, to a method and an apparatus for detecting a knocking event.
Background
Intelligent devices have become essential communication and entertainment tools for people in their work and life, especially mobile devices. In order to facilitate user operation, touch screens are increasingly popular, the number of physical keys is less, most operations can be completed through gestures on the touch screens, such as clicking, sliding, dragging, knocking and the like, and different operations can be performed through different gestures, such as clicking the touch screens with finger joints to trigger screen capture operations.
When a user knocks on the touch screen, the intelligent device can detect a knocking gesture on the touch screen, and then the intelligent device executes corresponding operation according to the detected knocking gesture. At present, whether the intelligent device detects that knocking occurs on a touch screen mainly depends on an acceleration sensor, specifically, the acceleration sensor is installed in intelligent devices such as mobile phones, a user can generate an acceleration when knocking on the touch screen of the intelligent device, the acceleration sensor in the intelligent device detects the change of the acceleration, and if the vector change of the acceleration is detected to exceed a preset value and a contact gesture is detected on the touch screen, a knocking event can be judged.
In the scheme, the detection of the knocking event completely depends on an acceleration sensor, and at present, many intelligent devices do not have the acceleration sensor, such as a conference tablet, an all-in-one machine and the like. Currently, the current practice is. For such smart devices without an acceleration sensor, the detection of a tap event is not possible.
Disclosure of Invention
The embodiment of the application aims to provide a knocking event detection method and device so as to detect a knocking event under the condition that an acceleration sensor is not arranged. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for detecting a tapping event, where the method includes:
when sound information belonging to a knocking event is monitored and a clicking event is detected, judging whether the time difference between the moment when the sound information is monitored and the moment when the clicking event is detected is smaller than a first preset time;
if so, the occurrence of the tapping event is determined.
Optionally, the method further comprises:
acquiring touch information;
when the touch information comprises first pressing information and first lifting information, and the time interval for acquiring the first pressing information and the first lifting information is less than a second preset time length, judging that the click event occurs;
when the touch information comprises second pressing information and second lifting information, and the time interval between the second pressing information and the second lifting information is not less than the second preset time length, judging that the click event does not occur;
and when the touch information comprises third press-down information, sliding information and third lifting information, judging that the click event does not occur.
Optionally, when the touch information includes third press-down information, sliding information, and third lift-up information, determining that the click event does not occur includes:
when the touch information comprises third press-down information, sliding information and third lifting information, determining a sliding distance after a press-down action occurs from the sliding information;
when the sliding distance is smaller than a preset distance, judging that the click event occurs;
and when the sliding distance is not less than the preset distance, judging that the click event does not occur.
Optionally, the method further comprises:
acquiring the sound information;
matching the sound information with preset voiceprint information corresponding to the knocking event;
and if so, judging that the sound information belonging to the knocking event is monitored.
In a second aspect, an embodiment of the present application provides a knocking event detection apparatus, including:
the judging module is used for judging whether the time difference between the moment when the sound information is monitored and the moment when the click event is detected is less than a first preset time when the sound information belonging to the click event is monitored and the click event is detected;
and the first judging module is used for judging that the knocking event occurs when the judging result of the judging module is yes.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring touch information;
the second determination module is used for determining that the click event occurs when the touch information comprises first pressing information and first lifting information and the time interval between the first pressing information and the first lifting information is less than a second preset time;
the third judging module is used for judging that the click event does not occur when the touch information comprises second pressing information and second lifting information, and the time interval between the second pressing information and the second lifting information is not less than the second preset time length;
and the fourth judging module is used for judging that the click event does not occur when the touch information comprises third press-down information, sliding information and third lifting information.
Optionally, the fourth determining module is specifically configured to:
when the touch information comprises third press-down information, sliding information and third lifting information, determining a sliding distance after a press-down action occurs from the sliding information;
when the sliding distance is smaller than a preset distance, judging that the click event occurs;
and when the sliding distance is not less than the preset distance, judging that the click event does not occur.
Optionally, the apparatus further comprises:
the acquisition module is used for acquiring the sound information;
the matching module is used for matching the sound information with preset voiceprint information corresponding to the knocking event;
and the fourth judging module is used for judging that the sound information belonging to the knocking event is monitored when the sound information is matched with the voiceprint information.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the knocking event detection method when executing the program stored in the memory.
In a fourth aspect, the present application provides a machine-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above-mentioned steps of the knocking event detection method.
According to the technical scheme provided by the embodiment of the application, when the sound information belonging to the knocking event is monitored and the clicking event is detected, whether the time difference between the time when the sound information is monitored and the time when the clicking event is detected is smaller than a first preset time is judged, and if yes, the knocking event is judged to occur. According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for detecting a tap event according to an embodiment of the present disclosure;
fig. 2 is a schematic view illustrating a finger sliding on a touch screen according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a knocking event detection device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In order to detect a knocking event without an acceleration sensor, an embodiment of the application provides a knocking event detection method and a device, wherein the knocking event detection method comprises the following steps:
when sound information belonging to a knocking event is monitored and a clicking event is detected, judging whether the time difference between the moment of monitoring the sound information and the moment of detecting the clicking event is smaller than a first preset time;
if so, a tapping event is determined to have occurred.
According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
First, a method for detecting a knocking event according to an embodiment of the present application will be described below. The method for detecting the knocking event can be applied to equipment with a touch screen function, such as a touch screen mobile phone, a tablet, a conference tablet and an all-in-one machine capable of touching a screen.
As shown in fig. 1, a method for detecting a tapping event provided by an embodiment of the present application includes the following steps.
S101, when sound information belonging to a knocking event is monitored and a clicking event is detected, judging whether the time difference between the moment of monitoring the sound information and the moment of detecting the clicking event is smaller than a first preset time; if so, step S102 is performed.
The click event may be a click operation performed by a user on the touch screen, and the click event may be considered as a combination of the click event and sound, that is, when the user clicks the touch screen harder, sound may be generated on the touch screen, and at this time, the click event may be considered as a click. For example, when a user strongly clicks the touch screen with a finger joint, a sound is generated on the touch screen, and this motion of the finger joint may be considered as a tapping motion.
The sound information can be monitored in real time, in one implementation mode, the sound information can be collected in real time, whether the collected sound information is the sound information of the knocking event or not is detected, and if the collected sound information is the sound information of the knocking event, the sound information belonging to the knocking event can be determined to be monitored. The mode of collecting the sound information can adopt a sound pick-up, a matrix type microphone and the like.
The first preset time length may be set by a user, and the first preset time length may be set to be shorter in order to ensure that the monitored sound information and the detected click event belong to the same click event. For example, the first preset time period may be set to 50 ms, and when a difference time period between a time when the sound information is monitored and a time when the click event is detected is less than 50 ms, it may be determined that the click event occurs.
S102, judging that the knocking event occurs.
When the time difference between the time when the sound information is monitored and the time when the click event is detected is less than a first preset time, the monitored sound information and the detected click event can be considered to belong to the same click event, and at this time, the occurrence of the click event can be judged.
If the time difference between the time when the sound information is monitored and the time when the click event is detected is not less than the first preset time, the monitored sound information and the detected click event can be considered to belong to different click events respectively.
If only the sound information belonging to the tapping event is monitored and the tapping event is not detected, or only the tapping event is detected and the sound information belonging to the tapping event is not monitored, it can be determined that the tapping event does not occur.
After the occurrence of the knocking event is determined, the operation corresponding to the knocking event can be executed. The operation corresponding to the knocking event may be preset. For example, if the operation corresponding to the preset tapping event is a screen capturing operation, the screen capturing operation is executed after the tapping event is determined to occur.
In one embodiment, the operation corresponding to the tapping event may be set in a user-defined manner, for example, the operation corresponding to the tapping event may be set as a screen capture operation, and may also be set as a wake-up operation.
In one embodiment, the click can be divided into a press action and a lift action, when a click event occurs, the press action occurs first, after the touch object contacts the touch screen, the lift action occurs, and after the lift action is completed, a click action is completed. The touch object may be a finger tip, a finger joint, a stylus, or the like.
When the touch object performs gesture operation on the touch screen, the device of the touch screen can acquire touch information. The type of the acquired touch information may include at least one of a press-down information, a lift-up information, a slide information, and the like. The touch screen comprises a touch screen body, a touch screen and a touch screen, wherein the touch screen body is provided with a touch screen body, the touch screen body is provided with a touch screen, the touch. After the pressing action occurs and before the lifting action occurs, the touch object is contacted with the touch screen.
When the touch information comprises first pressing information and first lifting information, the pressing action and the lifting action are represented, when the time interval for acquiring the first pressing information and the first lifting information is less than a second preset time length, the click event can be judged to occur, and the pressing action and the lifting action at one time with short time interval are the one-time click action. The second preset duration may be set by a user, and in general, the second preset duration may be set to be smaller in order to ensure that the pressing action and the lifting action belong to the same clicking action.
When the touch information includes second press-down information and second lift-up information, and a time interval between the obtaining of the second press-down information and the obtaining of the second lift-up information is not less than a second preset time length, it may be considered that the press-down action indicated by the second press-down information and the lift-up action indicated by the second lift-up information belong to a long press-down action, and it may be determined that a click event does not occur at this time.
For example, if the time interval between the pressing action indicated by the second pressing information and the lifting action indicated by the second lifting information is 2 seconds and is greater than the second preset time length by 50 milliseconds, it may be determined that the long pressing action occurs and the click event does not occur.
When the touch information includes third press-down information, sliding information, and third lift-up information, it indicates that a press-down action, a sliding action, and a lift-up action have occurred, and at this time, it may be considered that the touch object performs a sliding gesture or a dragging gesture including a sliding action on the touch screen, and it may be determined that a click event has not occurred.
In one embodiment, when the touch information includes third press-down information, sliding information, and third lift-up information, a sliding distance after the press-down action occurs may be determined from the sliding information, and it may be determined whether the sliding distance is smaller than a preset distance. The sliding distance is a distance that the touch object slides on the touch screen in a contact process between the touch object and the touch screen after the pressing action occurs and before the lifting action occurs.
Taking fig. 2 as an example, when the finger performs a pressing action, the finger is located at a position a on the touch screen, and then the finger slides from a to B on the touch screen, and performs a lifting action at a position B. The sliding distance of the finger on the touch screen is the distance between a and B.
The preset distance may be a user-defined setting. In a setting mode, the setting can be performed according to the size of the touch screen, specifically, the touch screen is smaller, and then the preset distance can be set to be larger, for example, for the touch screen of the mobile phone, the preset distance can be set to be 50 pixels. If the touch screen is large, the preset distance can be set to be small, for example, the touch screen of the conference tablet is large, and the preset distance can be set to be 5 pixels.
When the sliding distance is smaller than the preset distance, it may be considered that, after the pressing action occurs and before the lifting action occurs, only a short-distance sliding occurs in the contact process between the touch object and the touch screen, and the short-distance sliding may be considered as an error, and at this time, it may be determined that a click event occurs.
When the sliding distance is not less than the preset distance, it can be considered that a longer distance of sliding occurs in the contact process between the touch object and the touch screen after the pressing action occurs and before the lifting action occurs, at this time, it is determined that the sliding action occurs, and it can be determined that the click event does not occur.
In the embodiment, the preset distance is set, so that the short-distance sliding is allowed to occur in the clicking action process, and even if the short-distance sliding occurs in the clicking process, the clicking event can be considered to occur, and the success rate and the fault tolerance rate of the clicking event are improved.
In one embodiment, the sound information may be obtained, and in one implementation, the ambient environment may be monitored in real time to obtain the sound information of the ambient environment.
After the sound information is acquired, the acquired sound information can be matched with the voiceprint information corresponding to the preset knocking event, and if the acquired sound information is matched with the voiceprint information corresponding to the preset knocking event, the sound information belonging to the knocking event can be judged and monitored.
The voiceprint information is preset and can be stored in the device in advance. The voiceprint information is of a tapping event, and therefore, the sound information matched with the voiceprint information can be regarded as the sound information of the tapping event, that is, the sound of the sound information is generated by the tapping event.
In one implementation of the preset voiceprint information, the sound generated by the touch screens made of different materials when the touch screens are knocked is different, that is, the corresponding voiceprint information of the touch screens made of different materials is different. Various voiceprint information can be preset, and each voiceprint information corresponds to the touch screen made of one material. In this case, the acquired sound information may be matched with each piece of voiceprint information, and as long as the acquired sound information can be matched with one piece of voiceprint information, it may be determined that the sound information belonging to the knocking event is monitored.
According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
Corresponding to the embodiment of the method for detecting a knocking event, an embodiment of the present application further provides a device for detecting a knocking event, as shown in fig. 3, where the device for detecting a knocking event includes: a decision block 310 and a first decision block 320.
The judging module 310 is configured to, when sound information belonging to a click event is monitored and a click event is detected, judge whether a time difference between a time when the sound information is monitored and a time when the click event is detected is smaller than a first preset time;
and a first determining module 320, configured to determine that a knocking event occurs when a determination result of the determining module is yes.
In one embodiment, the knocking event detection device may further include:
the acquisition module is used for acquiring touch information;
the second judging module is used for judging that a click event occurs when the touch information comprises first pressing information and first lifting information and the time interval for acquiring the first pressing information and the first lifting information is less than a second preset time length;
the third judging module is used for judging that no click event occurs when the touch information comprises second pressing information and second lifting information and the time interval for acquiring the second pressing information and the second lifting information is not less than a second preset time length;
and the fourth judging module is used for judging that the click event does not occur when the touch information comprises third press-down information, sliding information and third lifting information.
In one embodiment, the fourth determining module is specifically configured to:
when the touch information comprises third press-down information, sliding information and third lifting information, determining a sliding distance after a press-down action occurs from the sliding information;
when the sliding distance is smaller than the preset distance, judging that a click event occurs;
and when the sliding distance is not less than the preset distance, judging that no click event occurs.
In one embodiment, the knocking event detection device may further include:
the acquisition module is used for acquiring sound information;
the matching module is used for matching the voice information with the voiceprint information corresponding to the preset knocking event;
and the fourth judging module is used for judging that the sound information belonging to the knocking event is monitored when the sound information is matched with the voiceprint information.
According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
Corresponding to the embodiment of the method for detecting a knocking event, an embodiment of the present application further provides an electronic device, as shown in fig. 4, including a processor 410, a communication interface 420, a memory 430, and a communication bus 440, where the processor 410, the communication interface 420, and the memory 430 complete communication with each other through the communication bus 440;
a memory 430 for storing computer programs;
the processor 410, when executing the program stored in the memory 430, implements the following steps:
when sound information belonging to a knocking event is monitored and a clicking event is detected, judging whether the time difference between the moment of monitoring the sound information and the moment of detecting the clicking event is smaller than a first preset time;
if so, a tapping event is determined to have occurred.
According to the technical scheme provided by the embodiment of the application, the knocking event can be considered to be the combination of the clicking event and the sound, so that the knocking event can be judged to occur under the conditions that the sound information belonging to the knocking event is monitored, the clicking event is detected, and the time difference between the time of monitoring the sound information and the time of detecting the clicking event is smaller than the first preset time. The scheme can completely eliminate the use of an acceleration sensor, and further realize the detection of the knocking event under the condition without the acceleration sensor.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
Corresponding to the embodiment of the knocking event detection method, the embodiment of the application also provides electronic equipment which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory finish mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the knocking event detection method when executing the program stored in the memory.
Corresponding to the embodiment of the knocking event detection method, an embodiment of the present application further provides a machine-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the steps of the knocking event detection method.
It is noted that, herein, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the embodiments of the tapping event detecting device, the electronic device and the machine-readable storage medium, since they are substantially similar to the embodiment of the tapping event detecting method, the description is simple, and the relevant points can be referred to the partial description of the embodiment of the method.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims (10)
1. A method of tap event detection, the method comprising:
when sound information belonging to a knocking event is monitored and a clicking event is detected, judging whether the time difference between the moment when the sound information is monitored and the moment when the clicking event is detected is smaller than a first preset time;
if so, the occurrence of the tapping event is determined.
2. The method of claim 1, further comprising:
acquiring touch information;
when the touch information comprises first pressing information and first lifting information, and the time interval for acquiring the first pressing information and the first lifting information is less than a second preset time length, judging that the click event occurs;
when the touch information comprises second pressing information and second lifting information, and the time interval between the second pressing information and the second lifting information is not less than the second preset time length, judging that the click event does not occur;
and when the touch information comprises third press-down information, sliding information and third lifting information, judging that the click event does not occur.
3. The method of claim 2, wherein determining that the click event does not occur when the touch information includes third press information, slide information, and third lift information comprises:
when the touch information comprises third press-down information, sliding information and third lifting information, determining a sliding distance after a press-down action occurs from the sliding information;
when the sliding distance is smaller than a preset distance, judging that the click event occurs;
and when the sliding distance is not less than the preset distance, judging that the click event does not occur.
4. The method of claim 1, further comprising:
acquiring the sound information;
matching the sound information with preset voiceprint information corresponding to the knocking event;
and if so, judging that the sound information belonging to the knocking event is monitored.
5. A tapping event detection device, the device comprising:
the judging module is used for judging whether the time difference between the moment when the sound information is monitored and the moment when the click event is detected is less than a first preset time when the sound information belonging to the click event is monitored and the click event is detected;
and the first judging module is used for judging that the knocking event occurs when the judging result of the judging module is yes.
6. The apparatus of claim 5, further comprising:
the acquisition module is used for acquiring touch information;
the second determination module is used for determining that the click event occurs when the touch information comprises first pressing information and first lifting information and the time interval between the first pressing information and the first lifting information is less than a second preset time;
the third judging module is used for judging that the click event does not occur when the touch information comprises second pressing information and second lifting information, and the time interval between the second pressing information and the second lifting information is not less than the second preset time length;
and the fourth judging module is used for judging that the click event does not occur when the touch information comprises third press-down information, sliding information and third lifting information.
7. The apparatus of claim 6, wherein the fourth determining module is specifically configured to:
when the touch information comprises third press-down information, sliding information and third lifting information, determining a sliding distance after a press-down action occurs from the sliding information;
when the sliding distance is smaller than a preset distance, judging that the click event occurs;
and when the sliding distance is not less than the preset distance, judging that the click event does not occur.
8. The apparatus of claim 5, further comprising:
the acquisition module is used for acquiring the sound information;
the matching module is used for matching the sound information with preset voiceprint information corresponding to the knocking event;
and the fourth judging module is used for judging that the sound information belonging to the knocking event is monitored when the sound information is matched with the voiceprint information.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 4 when executing a program stored in the memory.
10. A machine readable storage medium, characterized in that a computer program is stored in the machine readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910251967.XA CN111752444A (en) | 2019-03-29 | 2019-03-29 | Knocking event detection method and device |
PCT/CN2020/079738 WO2020199913A1 (en) | 2019-03-29 | 2020-03-17 | Tap event detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910251967.XA CN111752444A (en) | 2019-03-29 | 2019-03-29 | Knocking event detection method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111752444A true CN111752444A (en) | 2020-10-09 |
Family
ID=72664691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910251967.XA Pending CN111752444A (en) | 2019-03-29 | 2019-03-29 | Knocking event detection method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111752444A (en) |
WO (1) | WO2020199913A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112985575A (en) * | 2021-03-02 | 2021-06-18 | 暗物智能科技(广州)有限公司 | Knocking event detection method and device, electronic equipment and detection system |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120149448A1 (en) * | 2006-05-26 | 2012-06-14 | Nils Gustav Fargrenius | Flexible gaskets for wireless terminals with sliding members |
CN102722238A (en) * | 2012-04-20 | 2012-10-10 | 深圳市汇顶科技有限公司 | Method and system for identifying confirmation touch gesture by using touch terminal |
US20130019205A1 (en) * | 2011-07-14 | 2013-01-17 | Microsoft Corporation | Determining gestures on context based menus |
CN103019796A (en) * | 2012-12-28 | 2013-04-03 | 深圳市汇顶科技股份有限公司 | Wakening method and system for touch terminal and touch terminal |
CN105468279A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Touch screen operation identification method and device, touch screen operation response method and device, and game control method and device |
CN105468278A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Touch screen operation identification and response method and apparatus based on virtual key, and game manipulation method and apparatus |
CN105511834A (en) * | 2015-12-15 | 2016-04-20 | 北京乐动卓越科技有限公司 | Intelligent terminal control method and system |
CN107390931A (en) * | 2017-07-26 | 2017-11-24 | 广东欧珀移动通信有限公司 | Response control mehtod, device, storage medium and the mobile terminal of touch operation |
CN108345442A (en) * | 2018-01-18 | 2018-07-31 | 维沃移动通信有限公司 | A kind of operation recognition methods and mobile terminal |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1323343C (en) * | 2003-12-12 | 2007-06-27 | 陞达科技股份有限公司 | Method for identifying single clicking action and controller |
CN101963863B (en) * | 2010-09-30 | 2015-07-08 | 华为终端有限公司 | User touch operation mode self-adapting method and device |
CN102736757A (en) * | 2011-03-31 | 2012-10-17 | 比亚迪股份有限公司 | Method and apparatus for touch control identification |
CN202075711U (en) * | 2011-03-31 | 2011-12-14 | 比亚迪股份有限公司 | Touch control identification device |
US20120256845A1 (en) * | 2011-04-05 | 2012-10-11 | International Business Machines Corporation | Verifying input to a touch-sensitive display screen according to timing of multiple signals |
US9996182B2 (en) * | 2012-04-20 | 2018-06-12 | Shenzhen GOODIX Technology Co., Ltd. | Method and system for recognizing confirmation type touch gesture by touch terminal |
CN105988704B (en) * | 2015-03-03 | 2020-10-02 | 上海触乐信息科技有限公司 | Efficient touch screen text input system and method |
CN104731411B (en) * | 2015-03-27 | 2018-12-07 | 努比亚技术有限公司 | The click action recognition methods of mobile terminal and device |
-
2019
- 2019-03-29 CN CN201910251967.XA patent/CN111752444A/en active Pending
-
2020
- 2020-03-17 WO PCT/CN2020/079738 patent/WO2020199913A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120149448A1 (en) * | 2006-05-26 | 2012-06-14 | Nils Gustav Fargrenius | Flexible gaskets for wireless terminals with sliding members |
US20130019205A1 (en) * | 2011-07-14 | 2013-01-17 | Microsoft Corporation | Determining gestures on context based menus |
CN102722238A (en) * | 2012-04-20 | 2012-10-10 | 深圳市汇顶科技有限公司 | Method and system for identifying confirmation touch gesture by using touch terminal |
CN103019796A (en) * | 2012-12-28 | 2013-04-03 | 深圳市汇顶科技股份有限公司 | Wakening method and system for touch terminal and touch terminal |
CN105468279A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Touch screen operation identification method and device, touch screen operation response method and device, and game control method and device |
CN105468278A (en) * | 2015-11-06 | 2016-04-06 | 网易(杭州)网络有限公司 | Touch screen operation identification and response method and apparatus based on virtual key, and game manipulation method and apparatus |
CN105511834A (en) * | 2015-12-15 | 2016-04-20 | 北京乐动卓越科技有限公司 | Intelligent terminal control method and system |
CN107390931A (en) * | 2017-07-26 | 2017-11-24 | 广东欧珀移动通信有限公司 | Response control mehtod, device, storage medium and the mobile terminal of touch operation |
CN108345442A (en) * | 2018-01-18 | 2018-07-31 | 维沃移动通信有限公司 | A kind of operation recognition methods and mobile terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112985575A (en) * | 2021-03-02 | 2021-06-18 | 暗物智能科技(广州)有限公司 | Knocking event detection method and device, electronic equipment and detection system |
Also Published As
Publication number | Publication date |
---|---|
WO2020199913A1 (en) | 2020-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108021259B (en) | False touch prevention method and electronic equipment | |
CN104951159B (en) | Touch key-press and fingerprint identification method | |
CN106227520B (en) | Application interface switching method and device | |
WO2017032068A1 (en) | Text message viewing method and user terminal | |
CN106598455B (en) | Touch behavior response method and device for handheld touch equipment and corresponding equipment | |
CN105242870A (en) | False touch method and device of terminal with touch screen | |
CN105425941A (en) | Method and apparatus for preventing erroneous start-up of application in mobile terminal | |
CN108475136B (en) | Fingerprint identification method and electronic equipment | |
CN103620542A (en) | A physical key simulating method and apparatus based on a touch screen | |
CN106406701B (en) | Method and system for preventing misoperation of touch terminal and touch terminal | |
CN102999291A (en) | Method for waking up mobile terminal in standby state | |
CN105227759A (en) | A kind of call recording method and user terminal | |
CN110703937A (en) | Abnormity detection method, abnormity detection device, storage medium and terminal equipment | |
US20160328112A1 (en) | Method for processing touch signal and terminal device | |
CN109783335B (en) | User operation recording and restoring method, device and equipment and readable storage medium | |
CN103106040A (en) | Mobile terminal operation method and device using the same | |
CN105335062A (en) | Information editing operation processing method and apparatus | |
CN105511758B (en) | Information processing method and electronic equipment | |
CN105677077A (en) | Determination method and apparatus of single click event | |
WO2015131590A1 (en) | Method for controlling blank screen gesture processing and terminal | |
CN106919283A (en) | The touch event processing method of terminal, device and terminal | |
CN106354300A (en) | Method and terminal for preventing misoperation | |
CN106681640B (en) | Screen display control method of mobile terminal and mobile terminal | |
CN107346193A (en) | Prevent the method and device of false touch screen | |
CN111752444A (en) | Knocking event detection method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201009 |