Touch detection method and device and storage medium
1. A touch detection method is applied to a mobile terminal and comprises the following steps:
detecting the current motion state of the mobile terminal;
determining an error touch prevention area on the touch screen of the mobile terminal according to the motion state; wherein, the false touch prevention areas corresponding to different motion states are different.
2. The method of claim 1, wherein the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
the determining the false touch prevention area on the touch screen of the mobile terminal according to the motion state comprises the following steps:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
3. The method according to claim 1 or 2, wherein the motion state comprises: a second state for characterizing a mobile terminal use gesture;
according to the motion state, determining an anti-false touch area on the touch screen of the mobile terminal, including:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
4. The method according to claim 3, wherein the touch screen of the mobile terminal is square;
and according to the second state, determining the position of the false touch prevention area on the touch screen of the mobile terminal, including:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
5. The method according to claim 1 or 2, wherein the motion state comprises: a third state for representing holding information of the mobile terminal;
the determining the false touch prevention area on the touch screen of the mobile terminal according to the motion state comprises the following steps:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
6. The method of claim 1, further comprising:
and when the touch operation acting on the false touch prevention area is detected, refusing to execute a response function corresponding to the touch operation.
7. The method of claim 1, further comprising:
and performing power-off processing on the touch control capacitor in the false touch prevention area.
8. The method according to claim 1, wherein the detecting the current motion state of the mobile terminal comprises:
determining the motion parameters of the mobile terminal based on the data collected by a motion detection module in the mobile terminal; wherein the motion parameters include: jitter frequency, jitter amplitude and/or attitude;
and determining the current motion state of the mobile terminal according to the motion parameters.
9. The utility model provides a touch-control detection device which characterized in that, is applied to mobile terminal, includes:
the motion detection module is used for detecting the current motion state of the mobile terminal;
the area determining module is used for determining an anti-false touch area on the touch screen of the mobile terminal according to the motion state; wherein, the false touch prevention areas corresponding to different motion states are different.
10. The apparatus of claim 9, wherein the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
11. The apparatus of claim 9 or 10, wherein the motion state comprises: a second state for characterizing a mobile terminal use gesture;
the region determination module is further configured to:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
12. The device according to claim 11, wherein the touch screen of the mobile terminal is square;
the region determination module is further configured to:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
13. The apparatus of claim 9 or 10, wherein the motion state comprises: a third state for representing holding information of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
14. The apparatus of claim 9, further comprising:
the first response execution module is used for refusing to execute a response function corresponding to the touch operation when the touch operation acting on the false touch prevention area is detected.
15. The apparatus of claim 9, further comprising:
and the second response execution module is used for performing power-off processing on the touch control capacitor in the anti-false touch area.
16. The apparatus of claim 9, wherein the motion detection module is further configured to:
determining the motion parameters of the mobile terminal based on the data collected by a motion detection module in the mobile terminal; wherein the motion parameters include: jitter frequency, jitter amplitude and/or attitude;
and determining the current motion state of the mobile terminal according to the motion parameters.
17. A touch detection device, comprising:
a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, which when executed perform the steps of the method as provided in any one of the preceding claims 1 to 8.
18. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform steps in a method as provided by any one of claims 1 to 8.
Background
With diversification of the touch screen of the mobile phone, the touch screen of the mobile phone becomes larger and larger, the frame of the mobile phone becomes narrower and narrower, and the edge position of the touch screen is easily touched when the mobile phone is carried or held, so that unnecessary response is caused. The most direct influence brought by the false touch is the wrong operation of the interface, and the influence of the wrong operation on the use is very great, so that the realization of the false touch prevention function becomes more and more important, and the improvement on the mobile phone use experience of the user is also great.
Disclosure of Invention
The disclosure provides a touch detection method, a touch detection device and a storage medium.
According to a first aspect of the embodiments of the present disclosure, a touch detection method is provided, which is applied to a mobile terminal, and includes:
detecting the current motion state of the mobile terminal;
determining an error touch prevention area on the touch screen of the mobile terminal according to the motion state; wherein, the false touch prevention areas corresponding to different motion states are different.
Optionally, the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
the determining the false touch prevention area on the touch screen of the mobile terminal according to the motion state comprises the following steps:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
Optionally, the motion state comprises: a second state for characterizing a mobile terminal use gesture;
according to the motion state, determining an anti-false touch area on the touch screen of the mobile terminal, including:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
Optionally, the touch screen of the mobile terminal is square;
and according to the second state, determining the position of the false touch prevention area on the touch screen of the mobile terminal, including:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
Optionally, the motion state comprises: a third state for representing holding information of the mobile terminal;
the determining the false touch prevention area on the touch screen of the mobile terminal according to the motion state comprises the following steps:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
Optionally, the method further comprises:
and when the touch operation acting on the false touch prevention area is detected, refusing to execute a response function corresponding to the touch operation.
Optionally, the method further comprises:
and performing power-off processing on the touch control capacitor in the false touch prevention area.
Optionally, the detecting a current motion state of the mobile terminal includes:
determining the motion parameters of the mobile terminal based on the data collected by a motion detection module in the mobile terminal; wherein the motion parameters include: jitter frequency, jitter amplitude and/or attitude;
and determining the current motion state of the mobile terminal according to the motion parameters.
According to a second aspect of the embodiments of the present disclosure, there is provided a touch detection apparatus, including:
the motion detection module is used for detecting the current motion state of the mobile terminal;
the area determining module is used for determining an anti-false touch area on the touch screen of the mobile terminal according to the motion state; wherein, the false touch prevention areas corresponding to different motion states are different.
Optionally, the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
Optionally, the motion state comprises: a second state for characterizing a mobile terminal use gesture;
the region determination module is further configured to:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
Optionally, the touch screen of the mobile terminal is square;
the region determination module is further configured to:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
Optionally, the motion state comprises: a third state for representing holding information of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
Optionally, the apparatus further comprises:
the first response execution module is used for refusing to execute a response function corresponding to the touch operation when the touch operation acting on the false touch prevention area is detected.
Optionally, the apparatus further comprises:
and the second response execution module is used for performing power-off processing on the touch control capacitor in the anti-false touch area.
Optionally, the motion detection module is further configured to:
determining the motion parameters of the mobile terminal based on the data collected by a motion detection module in the mobile terminal; wherein the motion parameters include: jitter frequency, jitter amplitude and/or attitude;
and determining the current motion state of the mobile terminal according to the motion parameters.
According to a third aspect of the embodiments of the present disclosure, there is provided a touch detection apparatus, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method of any of the above first aspects is implemented when executable instructions stored in the memory are executed.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the steps of the method provided by any one of the above-mentioned first aspects.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
according to the touch detection method provided by the embodiment of the disclosure, the mistaken touch prevention area on the touch screen of the mobile terminal is determined by detecting the current motion state of the mobile terminal, so that the mistaken touch prevention function is realized. Because the false touch prevention area in the disclosure is not fixed, but determined according to the current motion state of the mobile terminal, the false touch prevention areas corresponding to different motion states are different, and the way of allocating the false touch prevention area according to the current motion state of the mobile terminal is more targeted and flexible in realization of the false touch prevention function and better in user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a touch detection method according to an exemplary embodiment.
FIG. 2 is a schematic illustration of the anti-false touch region shown in different areas and locations according to an exemplary embodiment.
FIG. 3 is a schematic illustration of a different area and location of a false touch protection area shown in accordance with another exemplary embodiment.
FIG. 4 is a flowchart illustrating a touch detection method according to an example embodiment.
FIG. 5 is a flowchart illustrating a touch detection method according to an example embodiment.
Fig. 6 is a schematic structural diagram of a touch detection device according to an exemplary embodiment.
Fig. 7 is a block diagram illustrating a touch detection device according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
An embodiment of the present disclosure provides a touch detection method, and fig. 1 is a flowchart illustrating a touch detection method according to an exemplary embodiment, where as shown in fig. 1, the touch detection method includes the following steps:
step 101, detecting the current motion state of a mobile terminal;
step 102, determining an anti-false touch area on a touch screen of the mobile terminal according to the motion state; wherein, the false touch prevention areas corresponding to different motion states are different.
It should be noted that the touch detection method can be applied to any mobile terminal with a touch screen, and the mobile terminal may be: a smart phone, a tablet computer, or a wearable electronic device, etc.
The false touch prevention area can be an area which is easy to generate false touch on the mobile terminal; for example, when the mobile terminal is in a motion state, a touch screen area on the mobile terminal, which may be in contact with a limb of a user, may be an anti-false touch area. Because the false touch is easily generated in the false touch prevention area, and many unnecessary responses are brought to the user under the unconscious condition of the user, in the embodiment of the disclosure, the response suppression needs to be performed on the area, where the false touch is easily generated, on the mobile terminal, so as to realize the false touch prevention function. Here, the false touch prevention function is a function for preventing the occurrence of a false touch.
In daily life, the carried mobile terminal can present different motion states along with different scenes of a user; in different motion states, the position or area of the mobile terminal which is easily touched by mistake is different, and the required suppression effect is also different. Therefore, the false touch prevention area on the touch screen of the mobile terminal in the embodiment of the disclosure is not a fixed area, but an area dynamically divided according to the current motion state of the mobile terminal, so that the false touch prevention requirement under different scenes can be met, and the realization of false touch prevention is more flexible.
In the embodiment of the disclosure, the false touch prevention region can be determined through two dimensions, such as the position and the area. Namely, the areas and positions of the false touch prevention areas are different under different motion states.
Here, the determination of the false touch prevention area will be described in detail later.
In some embodiments, the motion state of the mobile terminal may be detected based on a motion detection module within the mobile terminal. Namely, the detecting the current motion state of the mobile terminal in step 101 includes:
step 1011, determining the motion parameters of the mobile terminal based on the data collected by the motion detection module in the mobile terminal;
step 1012, determining the current motion state of the mobile terminal according to the motion parameters.
Here, the motion parameters include: jitter frequency, jitter amplitude, and/or attitude. Wherein the jitter frequency and/or jitter amplitude are used for indicating the jitter degree of the mobile terminal; the gesture is used for indicating the holding condition of the mobile terminal, and the holding condition reflects the direction of the touch screen when the mobile terminal is used by a user.
Included within the mobile device is: a motion sensor for detecting a motion parameter; the motion sensor may be: a piezoelectric acceleration sensor, a vibration acceleration sensor, an acceleration sensor, or a gyroscope.
The piezoelectric acceleration sensor detects vibration by using the piezoelectric effect of a piezoelectric crystal (such as a quartz crystal or piezoelectric ceramic). When the piezoelectric acceleration sensor is vibrated, the force of the mass block in the piezoelectric acceleration sensor on the piezoelectric element is changed, and the vibration condition of the mobile terminal can be determined according to the force acting on the piezoelectric element. Here, when the vibration frequency of the mobile terminal is much lower than the natural frequency of the piezoelectric acceleration sensor, the change of the force is proportional to the acceleration of the measured mobile terminal.
The signal detected by the vibration acceleration sensor is a signal reflecting the change of a vibration amplitude value along with time; based on the signal output by the vibration acceleration sensor, the shake amplitude of the mobile terminal can be obtained. And the jitter frequency can be calculated by carrying out frequency spectrum analysis on the signal output by the vibration acceleration sensor.
In other embodiments, the acceleration sensor may be: a three-axis acceleration sensor or a single-axis acceleration sensor. The three-axis acceleration sensor or the single-axis acceleration sensor can be used for acquiring the shaking frequency of the mobile terminal.
Because the acceleration sensor has directionality, the shake frequency can be obtained by obtaining the direction change of the sensing signal collected by the acceleration sensor. For example, when the mobile terminal is in a motion state, the mobile terminal may vibrate, at least one of the X, Y, and Z paths on the acceleration sensor in the mobile terminal may output a signal, and the frequency of the vibration may be obtained by detecting the direction change frequency of the signal.
Here, the larger the jitter frequency, the faster the current jitter of the mobile terminal is. And the larger the jitter amplitude is, the more severe the current jitter of the mobile terminal is. Therefore, when the mistaken touch preventing area is determined, the area of the mistaken touch preventing area under the condition of a larger motion state can be set to be larger, and the mistaken touch preventing area can be flexibly set.
The gesture of the mobile terminal can be determined based on the acceleration sensor or the gyroscope, namely when horizontal and vertical screen conversion occurs, data on each axis detected on the gyroscope can be changed correspondingly, whether the mobile terminal changes from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen can be determined through the changed data and the corresponding axis, and whether the touch screen is the horizontal screen or the vertical screen currently is determined. The present disclosure does not limit the manner of detecting the posture of the mobile terminal.
In some embodiments, the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
according to the motion state, determining an anti-false touch area on the touch screen of the mobile terminal, including:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
Here, the jitter degree of the mobile terminal may include: a first degree indicating severe jitter or a second degree indicating slight jitter.
Under different jitter degrees, the areas of the mobile terminal which are easily touched by mistake are different, and the areas of the areas are also different.
Here, when the user moves greatly or violently, the contact between the limb and the mobile terminal carried by the user is larger as the swing amplitude of the limb of the user increases, and then the area of the anti-false touch area is correspondingly larger. Therefore, when the current jitter degree of the mobile terminal is determined to be increased, the area of the corresponding false touch prevention area is correspondingly increased, so that flexible area matching is achieved, and the false touch prevention effect is better.
In some embodiments, the determining, according to the first state, an area of a false touch prevention area on a touch screen of the mobile terminal may be:
determining a variation value of the jitter degree of the mobile terminal;
and according to the change value, enlarging or reducing the area of the false touch prevention area on the touch screen of the mobile terminal in the same proportion.
Here, when the jitter degree of the mobile terminal is in a variation, a jitter degree variation value of the mobile terminal may be calculated based on the jitter degrees detected at two adjacent times, a ratio of increasing or decreasing the jitter of the mobile terminal may be determined based on the variation value, and the area of the anti-false touch region on the touch screen of the mobile terminal may be proportionally increased or decreased based on the ratio.
Therefore, the mode of adjusting the area of the anti-false-touch area in the same proportion is more convenient and reasonable in adjustment, and has stronger automatic handling performance, thereby being beneficial to automatic adjustment of the area of the anti-false-touch area.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating the anti-false touch regions with different areas and positions according to an exemplary embodiment, in fig. 2, the touch screen of the mobile terminal 200 is square; the false touch prevention area can be located around the square touch screen.
Fig. 2 shows 3 different false touch prevention areas, which are stacked together, wherein a false touch prevention area 201 located at the innermost side of the touch screen of the mobile terminal protrudes outside other false touch prevention areas, the area of the false touch prevention area is the largest, and the corresponding jitter degree is the largest.
Here, besides such an erroneous touch prevention area located around the square touch screen in fig. 2, in other embodiments, the erroneous touch prevention area may also be located at a long side of the square touch screen, that is, corresponding to the 2 side of the touch screen in fig. 3:
in some embodiments, the motion state comprises: a second state for characterizing a mobile terminal use gesture;
according to the motion state, determining an anti-false touch area on the touch screen of the mobile terminal, including:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
Here, the anti-mistouch region may also be determined according to a use posture of the mobile terminal. The using posture reflects the orientation state of the touch screen when the mobile terminal is used by a user. The orientation state of the touch screen can be represented by the display form of the touch screen on the mobile terminal when the touch screen is used, for example, the horizontal screen display or the vertical screen display of the touch screen is performed.
The use attitude may be obtained based on a three-axis acceleration sensor, a single-axis acceleration sensor, or a gyroscope within the mobile terminal. Because the movement of the mobile terminal can be in any direction, in order to conveniently and accurately acquire the orientation state of the touch screen, a three-axis acceleration sensor can be adopted to acquire acceleration values in 3 orthogonal directions, and the holding condition of the mobile terminal is determined based on the acceleration values in the 3 orthogonal directions.
Taking a three-axis acceleration sensor as an example, the determining the use posture of the mobile terminal may be: the acceleration value of the mobile terminal in 3 directions is collected based on a triaxial acceleration sensor, the acceleration value in each direction is subjected to vector decomposition to determine the included angle between each axis and the ground, and the use posture of the mobile terminal is determined based on the included angle. For example, the axis that forms an angle with the ground when displayed on the vertical screen is different from the axis that forms an angle with the ground when displayed on the horizontal screen.
The 3 directions may include: an X-axis direction, a Y-axis direction and a Z-axis direction; the Z-axis direction is a direction perpendicular to the ground, and takes the case that the body of the mobile terminal is perpendicular to the ground, that is, the direction of the body. The X-axis direction is a direction parallel to the ground and perpendicular to the Z-axis, i.e. a direction toward which the display screen faces; the Y-axis direction is a direction parallel to the ground and perpendicular to the Z-axis and the X-axis, i.e., a direction toward which a side surface perpendicular to the display screen faces.
In other embodiments, the use attitude can be detected by a gyroscope, when horizontal and vertical screen conversion occurs, data on each axis detected by the gyroscope changes correspondingly, and whether the mobile terminal changes from the horizontal screen to the vertical screen or from the vertical screen to the horizontal screen can be determined by the changed data and the corresponding axis, and whether the touch screen is the horizontal screen or the vertical screen currently is determined.
Here, after the usage gesture is obtained, the position of the anti-false touch area on the touch screen of the mobile terminal may be determined based on the usage gesture.
Here, the determining the position of the anti-false touch area on the touch screen of the mobile terminal according to the second state may be:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
It should be noted that the position here refers to the entire position of the anti-false touch area on the touch screen. For example, when the touch screen of the mobile terminal is in a vertical screen use state, the position where more contacts exist with the mobile terminal is the long side of the touch screen, and then the anti-false-touch area may be located at the long side of the touch screen, for example, as shown in fig. 3, the anti-false-touch area may be the long side 2 of the touch screen. When the touch screen of the mobile terminal is in a horizontal screen using state, the position where more contacts with the mobile terminal is the short side of the touch screen, and then the false touch prevention area can be located at the short side of the touch screen.
In this way, the specific position of the false touch prevention area on the touch screen can be determined according to the second state for representing the holding condition.
Here, it should be noted that after the specific position of the anti-false-touch region on the touch screen is determined, the specific region area may be further determined at the position according to the degree of shaking, so as to achieve better matching between the anti-false-touch region and the motion state. For example, if it is determined that the erroneous-touch prevention area is located on the short side 2 side of the touch panel, the area of the erroneous-touch prevention area may be determined based on the first state detected, and the area of the erroneous-touch prevention area located on the short side 2 side of the touch panel may be enlarged or reduced to be suitable for the motion state detected at each detection time.
In some embodiments, the anti-false touch region may also be set based on the usage habits of the user. Here, the usage habit of the user may be reflected in the holding strength and/or the holding shape when the mobile terminal is held, for example, when the user uses the mobile terminal, the user is habitually held at a position lower than the body of the mobile terminal by using 4 fingers, and then, compared with the holding case where the user is held at the middle position of the body of the mobile terminal by using 5 fingers, the area of the fingers in contact with the touch screen is smaller. Similarly, when the user uses the mobile terminal, the possibility of the user touching the mobile terminal by mistake is relatively high when the user habitually uses a larger force to hold the mobile terminal, and at this time, the area of the false touch prevention area can be set to be larger compared with the case of holding the mobile terminal by a smaller force, so as to reduce the possibility of the user touching the mobile terminal by mistake.
As such, the motion state may further include: a third state for representing holding information of the mobile terminal;
the determining the false touch prevention area on the touch screen of the mobile terminal according to the motion state comprises the following steps:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
Here, the holding strength may be detected by providing a pressure sensor on the mobile terminal.
The holding shape can be determined jointly according to the touch condition detected by the corresponding touch sensing unit on the touch screen and the use posture of the mobile terminal detected by the gyroscope. For example, when the usage posture of the mobile terminal detected by the gyroscope is vertical screen usage, if further the touch sensing unit located below the upper position of the touch screen detects touch operation, and the touch sensing units located below the upper position of the touch screen detect touch operation, it may be considered that the touch operation is performed by some fingers (e.g., 4-finger grip), and at this time, the area of the corresponding anti-false touch area may be set to be smaller.
The present disclosure also provides the following method of setting a false touch prevention region:
as shown in fig. 2, the anti-false touch region may be arranged around the square mobile terminal, and at this position, a specific region area is further determined according to the degree of jitter, so as to implement matching between the anti-false touch region and the motion state.
The anti-false touch area can be arranged on the long side, on one hand, when the user holds the mobile terminal, more use scenes of the vertical screen are available, and then more long sides of the touch screen are in contact with the user. On the other hand, since the number of touch controls near the short side of the mobile terminal is small, the number of false touches caused by the touch controls is relatively small. Then, the mistaken touch prevention area is arranged on the long side of the square touch screen, so that the mistaken touch prevention can be realized, and the area of the mistaken touch prevention area is smaller than that of the area arranged around the area, so that the workload is relatively small in the subsequent implementation of refusing response to touch operation in the mistaken touch prevention area.
The position of the false touch prevention area on the touch screen is not limited in the present disclosure. After the mistaken touch preventing area is determined, the mistaken touch preventing function can be achieved in the mistaken touch preventing area. Here, the embodiment of the present disclosure provides the following several implementation manners for implementing the false touch prevention function in the false touch prevention area:
in some embodiments, fig. 4 is a flowchart illustrating a touch detection method according to an exemplary embodiment, as shown in fig. 4, the method further includes:
step 401, when the touch operation acting on the false touch prevention area is detected, refusing to execute a response function corresponding to the touch operation.
In an embodiment of the present disclosure, the touch screen includes: the touch control units are arranged in an array; each Touch unit is connected with a Touch chip (Touch IC) through a separate Touch electrode line. The touch electrode line includes: and the transmitting electrode and the receiving electrode are connected with the touch chip, and an induction capacitor is formed between the transmitting electrode and the receiving electrode. The touch chip judges whether finger touch exists or not by sensing the variable quantity between the two polar plates of the capacitor.
The touch units arranged in an array form self-capacitance with the ground respectively, when a human body or an object such as a touch pen contacts the touch screen, the capacitance of the human body or the touch pen is superposed on the self-capacitance of the touch units, so that the capacitance value on the touch units changes, and the touch chip can detect the change of the capacitance value on each touch unit through the touch electrode wires, thereby determining the position coordinate where touch occurs.
In the embodiment of the disclosure, after the touch operation is detected, the touch coordinate of the touch operation on the false touch prevention area is detected, and when a touch control exists at the touch coordinate, the function corresponding to the touch control is rejected from being executed, so that the false touch prevention function of the false touch prevention area is realized.
Here, this is due to: when the touch screen is normally used, the corresponding function is triggered only by touching the touch control piece at each position of the touch screen; if no touch control is arranged on the touch coordinate, no response occurs even if the touch screen is normally used and no mistaken touch prevention processing is performed. That is to say, after the trigger of the specific touch control is detected, the function to be responded corresponding to the touch control is limited, so as to realize the function of preventing the false touch.
Exemplarily, assuming that there is a "play" button in the determined anti-false touch area, the "play" button is unintentionally touched during the motion of the mobile terminal, and before the anti-false touch function is not performed, based on the touch on the "play" button, the video is played. In the embodiment of the present disclosure, after it is determined that the response function corresponding to the touch operation is "play a certain video", the response program corresponding to the response function is limited, and the purpose of preventing a false touch is achieved by refusing to execute the function to be responded.
Here, the refusing to execute the response function corresponding to the touch operation may be to stop executing the corresponding play thread by controlling the corresponding play thread to stop executing when it is determined that "play a certain video" is required, so as to achieve the purpose of no response.
The touch control may be: application icons on the desktop window or various function controls of the application running interface and the like. Taking WeChat as an example, the WeChat icon on the desktop window is a touch control. When the WeChat is operated, a 'sending' control or a 'text input box' control and the like of a chat window in a WeChat operation interface are functional controls.
In this way, the embodiment of the present disclosure may determine, after detecting the touch operation, an action position of the touch operation on the touch screen; and further determining whether the action position is located in the determined false touch prevention area, and if so, limiting a function thread corresponding to the touch operation when the touch operation is to be responded, so as to achieve the purpose of false touch prevention. And if not, responding to the touch operation.
In other embodiments, fig. 5 is a flowchart illustrating a touch detection method according to an exemplary embodiment, and as shown in fig. 5, the method may further include:
and step 501, performing power-off processing on the touch capacitor in the false touch prevention area.
Here, the touch screen may include a plurality of touch units arranged in an array; the touch units in the same vertical column or the same horizontal column may be taken as a set, and the touch units in the same set may be connected in series. The false touch prevention function can be realized by performing uniform power-off processing on each set.
For example, as shown in fig. 2 or 3, when it is determined that the false touch prevention area is located on the touch screen of the square mobile terminal, a distance from an edge of the false touch prevention area located on the inner side to a frame of the mobile terminal may be determined based on an area of the false touch prevention area, a set of touch units in the same vertical column on the touch screen is determined based on the distance, and then the set is subjected to uniform power-off processing.
Therefore, the touch unit in the false touch prevention area can be powered off, and the purpose of preventing false touch in the false touch prevention area is achieved. Thus, the false touch prevention operation cannot be detected in the false touch prevention area, and the response of the operation cannot be executed.
Therefore, the false touch prevention area in the disclosure is not fixed, but determined according to the current motion state of the mobile terminal, and the false touch prevention areas corresponding to different motion states are different, so that the false touch prevention area is dynamically allocated according to the current motion state of the mobile terminal, and the false touch prevention function is more targeted and flexible in realization and better in user experience.
The present disclosure also provides a touch detection device, fig. 6 is a schematic structural diagram of a touch detection device according to an exemplary embodiment, and as shown in fig. 6, the touch detection device 600, applied to a mobile terminal, includes:
a motion detection module 601, configured to detect a current motion state of the mobile terminal;
the area determining module 602 is configured to determine, according to the motion state, an anti-false touch area on the touch screen of the mobile terminal; wherein, the false touch prevention areas corresponding to different motion states are different.
In some embodiments, the motion state comprises: a first state for characterizing a degree of jitter of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on the touch screen of the mobile terminal according to the first state; wherein the degree of jitter is positively correlated with the area of the anti-false touch region.
In some embodiments, the motion state comprises: a second state for characterizing a mobile terminal use gesture;
the region determination module is further configured to:
and determining the position of the false touch prevention area on the touch screen of the mobile terminal according to the second state.
In some embodiments, the touch screen of the mobile terminal is square;
the region determination module is further configured to:
when the second state is a vertical screen state, the mistaken touch prevention area is located on the long side of the square touch screen;
when the second state is a horizontal screen state, the false touch prevention area is located on the short side of the touch screen.
In some embodiments, the motion state comprises: a third state for representing holding information of the mobile terminal;
the region determination module is further configured to:
determining the area of an anti-false touch area on a touch screen of the mobile terminal according to the holding strength and/or the holding shape when the mobile terminal is held; wherein, the dynamics of gripping with prevent mistake and touch regional area positive correlation, the area of gripping with prevent mistake and touch regional area positive correlation.
In some embodiments, the apparatus further comprises:
the function determining module is used for refusing to execute a response function corresponding to the touch operation when the touch operation acting on the false touch prevention area is detected;
and the first response execution module is used for refusing to execute the function to be responded.
In some embodiments, the apparatus further comprises:
and the second response execution module is used for performing power-off processing on the touch control capacitor in the anti-false touch area.
In some embodiments, the motion detection module is further configured to:
determining the motion parameters of the mobile terminal based on the data collected by a motion detection module in the mobile terminal; wherein the motion parameters include: jitter frequency, jitter amplitude and/or attitude;
and determining the current motion state of the mobile terminal according to the motion parameters.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 7 is a block diagram illustrating a touch sensing device 1800 according to an exemplary embodiment. For example, the apparatus 1800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and so forth.
Referring to fig. 7, apparatus 1800 may include one or more of the following components: a processing component 1802, a memory 1804, a power component 1806, a multimedia component 1808, an audio component 1810, an input/output (I/O) interface 1812, a sensor component 1814, and a communications component 1816.
The processing component 1802 generally controls the overall operation of the device 1800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1802 may include one or more processors 1820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1802 may also include one or more modules that facilitate interaction between the processing component 1802 and other components. For example, the processing component 1802 can include a multimedia module to facilitate interaction between the multimedia component 1808 and the processing component 1802.
The memory 1804 is configured to store various types of data to support operation at the apparatus 1800. Examples of such data include instructions for any application or method operating on the device 1800, contact data, phonebook data, messages, images, videos, and so forth. The memory 1804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 1806 provide power to various components of device 1800. The power components 1806 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the apparatus 1800.
The multimedia component 1808 includes a touch screen that provides an output interface between the device 1800 and a user. In some embodiments, the touch screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the touch screen includes a touch panel, the touch screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 1800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Audio component 1810 is configured to output and/or input audio signals. For example, the audio component 1810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 1800 is in operating modes, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1804 or transmitted via the communication component 1816. In some embodiments, audio component 1810 also includes a speaker for outputting audio signals.
I/O interface 1812 provides an interface between processing component 1802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 1814 includes one or more sensors for providing various aspects of state assessment for the apparatus 1800. For example, the sensor assembly 1814 can detect an open/closed state of the device 1800, the relative positioning of components such as a display and keypad of the device 1800, the sensor assembly 1814 can also detect a change in position of the device 1800 or a component of the device 1800, the presence or absence of user contact with the device 1800, orientation or acceleration/deceleration of the device 1800, and a change in temperature of the device 1800. The sensor assembly 1814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1816 is configured to facilitate communications between the apparatus 1800 and other devices in a wired or wireless manner. The device 1800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 1800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as the memory 1804 including instructions that are executable by the processor 1820 of the apparatus 1800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor, enable performance of the above-described method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:应用于移动智能设备的鼠标功能模拟系统