Disclosure of Invention
The disclosure provides an anti-false touch method, an anti-false touch device, electronic equipment and a storage medium, so as to solve the problem that the edge area of a touch screen is prone to false touch.
According to a first aspect of an embodiment of the present disclosure, there is provided a false touch preventing method, including:
Responding to touch input of an input area displayed in a touch screen, and adjusting a preset area of the touch screen, wherein the input area is used for performing text response on the received touch input, and the input area at least partially overlaps with the preset area;
Under the condition that the first touch operation is detected to act on the adjusted edge suppression area, adopting a false touch detection strategy corresponding to the touch input to perform false touch detection on the first touch operation, and obtaining a false touch detection result;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation.
In some embodiments, the method for preventing false touch further comprises:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, determining the input state of the touch input based on the touch data includes:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, determining the input state of the touch input based on the ellipse parameters includes:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, adjusting the preset area of the touch screen includes:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
the area of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, a false touch detection policy corresponding to the input state is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result, including:
Determining a current pressing force distribution parameter based on sensor touch data corresponding to the first touch operation under the condition that the input state of the touch input is a one-hand input state or a two-hand input state, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation, including:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, the first touch operation is not responded.
In some embodiments, determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation includes:
And under the condition that the input state of the touch input is a one-hand input state, the number of touch areas is one when the first touch operation acts on the preset area, and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the compression force profile parameters include corner compression force profile parameters and/or edge compression force profile parameters;
the determining, based on the touch data corresponding to the first touch operation, a current pressing force distribution parameter includes:
If the coordinate corresponding to the maximum value in the touch data is positioned at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, a false touch detection policy corresponding to the touch input is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result, including:
Determining the area of a finger touch area and the area of a palm touch area based on touch data corresponding to the first touch operation under the condition that the input state of the touch input is a one-hand input state;
And when the false touch detection result meets a preset false touch judgment condition, not responding to the first touch operation, including:
and under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation includes:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the method for preventing false touch further comprises:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the method for preventing false touch further comprises:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
According to a second aspect of embodiments of the present disclosure, there is provided an anti-false touch device, including:
the device comprises an adjustment module, a display module and a display module, wherein the adjustment module is configured to respond to touch input of an input area displayed in a touch screen and adjust a preset area of the touch screen, the input area is used for performing text response on the received touch input, and the input area is at least partially overlapped with the preset area;
the detection module is configured to perform false touch detection on the first touch operation by adopting a false touch detection strategy corresponding to the touch input under the condition that the first touch operation is detected in the input area and acts on the adjusted preset area, so as to obtain a false touch detection result;
and the determining module is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
In some embodiments, the adjustment module is further configured to:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, the adjustment module is further configured to:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, the adjustment module is further configured to:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, the adjustment module is further configured to:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
The size of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, the detection module is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining a current pressing force distribution parameter based on touch data corresponding to the first touch operation, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation.
In some embodiments, the determination module is further configured to:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, not responding to the first touch operation.
In some embodiments, the detection module is further configured to:
And under the condition that the touch area is one when the first touch operation acts on the preset area and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the detection module is further configured to:
If the coordinate corresponding to the maximum value in the touch data is at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, the detection module is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the determination module is further configured to:
And under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, the detection module is further configured to:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the detection module is further configured to:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the detection module is further configured to:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, comprising:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to execute the false touch prevention method according to the first aspect when invoking the executable instructions in the memory.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform the false touch prevention method described in the first aspect above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
The false touch prevention method includes the steps of responding to touch input of an input area displayed in a touch screen, adjusting a preset area of the touch screen, wherein the input area is used for conducting text response on received touch input and is at least partially overlapped with the preset area, conducting false touch detection on a first touch operation by adopting a false touch detection strategy corresponding to the touch input under the condition that the first touch operation is detected in the input area and acts on the adjusted preset area, and obtaining a false touch detection result, and when the false touch detection result meets preset false touch judgment conditions, not responding to the first touch operation. Because the preset area is determined based on the touch input and the false touch detection strategy is determined based on the touch input, the normal typing operation and the false touch operation in the preset area can be effectively and accurately identified in the face of various touch input conditions, the typing touch performance of the touch screen is improved, and the typing experience of a user is improved.
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.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the description, unless explicitly stated otherwise, the terms "first" and "second" are used for descriptive purposes only to distinguish between constituent elements and should not be construed as indicating a sequence. Unless specifically stated otherwise, the terms "connected," "affixed," and the like are to be construed in a broad sense and include, but are not limited to, directly, indirectly, removably "connected," "affixed," and the like.
FIG. 1 is a flowchart of a method for preventing false touches according to an exemplary embodiment, as shown in FIG. 1, the method mainly includes the following steps:
In step 101, in response to a touch input of an input area displayed in a touch screen, a preset area of the touch screen is adjusted, wherein the input area is used for performing text response on a received touch input, and the input area at least partially overlaps with the preset area.
In this embodiment, the electronic device is a device that has a touch screen and is prone to false touch during use, such as a mobile phone, a tablet, a smart watch, a smart wearable device, and so on. The input area in the touch screen may be a virtual keyboard area or a handwriting input area, which is capable of performing text response on input information of a user. The preset area in the touch screen is an area defined in the touch screen in advance, and the electronic device detects the touch operation in the area to determine whether the touch operation is a false touch operation. For the false touch operation in the preset area, the processor in the electronic device does not respond to the false touch operation (i.e. does not report the touch data of the false touch operation or does not execute the touch event corresponding to the touch operation). For a non-false touch operation in the preset area, a processor in the electronic device responds to the non-false touch operation.
And corresponding to the preset area, performing direct response processing instead of detection by the electronic equipment through all touch operations in the non-preset area in the touch screen.
Therefore, the preset area is generally disposed at a position in the touch screen where false touch operations are easy to occur, such as a position of edges at two sides of the touch screen, a position of a bottom corner of the touch screen, and the like, and specifically, the shape, size, and position of the preset area can be automatically adjusted according to the size of the electronic device, the crowd used, the application scene, and the like.
Since the input area may be a virtual keyboard area or a handwriting input area and the like capable of performing text response on input information of a user, and the preset area is generally disposed at a position in the touch screen where false touch operation is easy to occur, therefore, when the typing function of the electronic device is started (for example, virtual keyboard typing is performed on a game interface, handwriting input is performed on a chat interface, typing is performed while watching a video bullet screen), the preset area may be adjusted based on the virtual keyboard input or the handwriting input in the preset area.
Specifically, the embodiment may determine an area that is easy to generate a false touch in a typing process based on an input state of a touch input, a position of a touch area of the touch input, a touch duration of the touch input, an area of the touch input, and the like, and adjust a size, a shape, a position, and the like of a preset area based on the typing state that is easy to generate the false touch.
In step 102, under the condition that the input area detects the first touch operation and the first touch operation acts on the adjusted preset area, a false touch detection strategy corresponding to the touch input is adopted to perform false touch detection on the first touch operation, so as to obtain a false touch detection result.
In this embodiment, the false touch detection is performed on the first touch operation, which is actually performed on the typing input operation applied to the preset area in the typing input process, so as to prevent the false touch input in the edge area in the typing process. In the false touch detection, different touch inputs may correspond to different false touch detection strategies, and specifically, the corresponding false touch detection may be determined based on a touch input mode (virtual keyboard input, handwriting input), an input state of the touch input (one-hand input, two-hand input), a size of a display area for receiving the touch input, a touch duration of the touch input, an area of the touch input, and the like. For example, the false touch detection strategy corresponding to the virtual keyboard (9-key keyboard, 26-key keyboard) input is different from the false touch detection strategy corresponding to the handwriting input, the false touch detection strategy corresponding to the single-hand input is different from the false touch detection strategy corresponding to the double-hand input, the false touch detection strategy of the touch area in the middle position of the preset area is different from the false touch detection strategy in the edge and corner positions, and the like.
In step 103, when the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded.
In this embodiment, when the preset area is adjusted and the first touch operation is detected to act on the adjusted preset area, false touch detection is performed on the first touch operation, and whether the first touch operation is an active operation (normal touch operation) or an inactive operation (false touch operation) is determined based on a false touch detection result obtained by the false touch detection. And not responding to the invalid operation, and responding to the valid operation. For example, in this embodiment, the non-response operation to the first touch operation may be not reporting the touch data of the first touch operation, or not responding to or executing the touch event corresponding to the first touch operation.
When the first touch operation acts on the touch screen, there are three cases because the touch screen is divided into a preset area and a non-preset area. The first touch operation acts on the preset area and the non-preset area simultaneously, the second touch operation acts on the preset area only, and the third touch operation acts on the non-preset area only.
The error touch prevention method can perform error touch detection on touch operation in a preset area and determine whether to respond, and any touch operation in a non-preset area is considered as normal touch and performs touch response. Therefore, the embodiment can perform false touch detection on the touch operation in the preset area in the first case and the second case by adopting a false touch detection strategy corresponding to the touch input. Therefore, the calculation amount of touch operation can be reduced, false touch operation can be effectively and accurately identified in a typing state, the typing touch performance of the touch screen is improved, and the typing experience of a user is improved.
In some embodiments, the false touch prevention method further comprises the steps of obtaining touch data corresponding to the touch input, determining an input state of the touch input based on the touch data, and/or obtaining an acceleration sensor parameter and a gravity sensor parameter of the electronic device, inputting the acceleration sensor parameter and the gravity sensor parameter into a state recognition model obtained through training, and obtaining an input state of the touch input.
In this embodiment, the detection methods of the input states of the touch input are divided into two types, and one or both of them can be determined according to the application scenario of the anti-false touch method, the electronic device to be applied, the crowd facing the electronic device, the requirements (such as accuracy, reliability, speed) on the detection result, and other factors.
When the input state is detected according to the touch data input by touch, the input state can be determined according to the position of the touch area corresponding to the touch data, the number of the touch areas, the shape of the touch area, the inclination direction of the touch area and other parameters.
It can be understood that, in the case of a one-hand input state (left hand or right hand), the touch area is mostly located at the left side or right side of the touch screen, the number of touch areas corresponding to one touch operation is mostly one, the shape of the touch area is mostly similar to that of a thumb, and the tilting direction of the electronic device is mostly tilted to one side during left-hand typing or right-hand typing. When the touch control area is in a two-hand input state, most touch control areas exist at the left side and the right side of the touch screen at the same time, the number of the touch control areas corresponding to one touch control operation can be multiple, the form of the touch control area generally comprises the form of other fingers besides the thumb form, and the inclination direction of the electronic equipment generally simultaneously inclines leftwards and rightwards or keeps balance.
When the input state of touch input is detected according to the acceleration sensor and the gravity sensor, parameters of the two sensors are acquired, and the parameters of the two sensors are input into a trained state recognition model to obtain the input state. When the electronic equipment is used for one-hand typing and two-hand typing, the inclination angles of the electronic equipment are different, the acceleration sensor can detect the inclination angles of the electronic equipment up, down, left and right, and the gravity sensor can detect the motion state of the electronic equipment and the inclination angle of the electronic equipment relative to the horizontal plane. Thus, the input state is immediately and accurately measured based on the parameters of the two sensors. The state recognition model can be any one or a combination of a plurality of convolutional neural networks, support vector machines, long-term memory networks, recurrent neural networks and the like.
Further, the input state is determined based on touch data, the input state comprises the steps of determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input, performing ellipse fitting on the touch area, determining an ellipse area and ellipse parameters corresponding to the ellipse area, and determining the input state based on the ellipse parameters, wherein the ellipse parameters comprise the number of the ellipse areas.
In this embodiment, whether the touch screen is a capacitive touch screen, a resistive touch screen or other types of touch screens, a plurality of sensors arranged in an array are all arranged in a display module of the electronic device, and the plurality of sensors arranged in an array can be regarded as dividing the touch screen into a plurality of touch units so as to realize detection of touch operation at each position of the touch screen and output touch data.
One touch operation of the user hand can involve a plurality of touch units, a plurality of sensors corresponding to the touch units can detect and output touch data, and a touch area of the touch operation can be determined based on coordinates of the touch data corresponding to the touch screen. Since the finger morphology is similar to an ellipse, an ellipse fitting is performed on the touch area to determine an ellipse area and ellipse parameters. The elliptical parameters may include the number of elliptical regions, the direction of inclination of the elliptical regions, the area of the elliptical regions, and the like. The input state (one-hand input state and two-hand input state) of the touch input can be determined based on the ellipse parameters, further, the left-hand typing or the right-hand typing can be determined based on the ellipse parameters, and even the fingers corresponding to the touch operation can be determined based on the ellipse parameters. When the thumb touches, the area of the touch area is larger, and when other fingers touch, the area of the touch area is smaller, and the size of the preset area can be adjusted based on the fingers corresponding to the touch operation, so that accurate detection is realized, and the false touch detection accuracy is further improved.
Further, based on the ellipse parameters, the input state of the touch input is determined, wherein the input state of the touch input is determined to be a two-hand input state when the number of the ellipse areas is larger than one, and the input state of the touch input is determined to be a one-hand input state when the number of the ellipse areas is equal to one.
Specifically, to reduce the amount of computation and improve the detection efficiency, it is possible to determine whether one-hand typing or two-hand typing is performed directly based on the number of elliptical areas.
In an embodiment, step 101 includes adjusting the preset area to an edge area on one side where the touch input is applied when the input state of the touch input is a one-hand input state, and adjusting the preset area to edge areas on both sides where the touch input is applied when the input state of the touch input is a two-hand input state, wherein the size of the preset area in the one-hand input state is larger than the size of each preset area in the two-hand input state.
In this embodiment, the input states of different touch inputs have different possibilities and regions of false touch, and the preset region is adjusted to the left-side edge region or the right-side edge region in the touch screen under the single-hand input state (left-hand input or right-hand input). In the two-hand input state, the preset area is adjusted to the left side edge area and the right side edge area. For example, when a user performs two-hand typing on the game interface, the input state is a two-hand input state, and error touch is not easy to occur at this time, so that the preset area can be based on a sector with a smaller area and is only arranged at the bottom corner positions of two sides of the electronic equipment. For example, when the user performs one-hand typing on the chat interface, the user is in a one-hand input state, and false touch is easy to generate at the moment, so that the preset area can be set at the bottom corner position and the middle position of the edge of one side of the electronic equipment based on a rectangle with a larger area.
In addition, the size and shape of the electronic device may also be considered when setting the preset area. For example, when the electronic device is a small device, the touch screen is small, and therefore the preset areas can be arranged on the edges of the touch screen. When the electronic device is a large-sized device, a preset area can be set at a part of the edge of the touch screen according to the use experience and the use habit of the user.
The adjustment of the preset area of the touch screen may be understood as adjusting and changing the position, shape, and size of the preset area based on the input state of the touch screen, or may be understood as setting a preset area of a certain shape and a certain size at a certain position of the touch screen based on the input state of the electronic device not provided with the preset area.
Specifically, in the case of a one-hand input state, taking left-hand typing as an example, the preset area is adjusted to the left-side edge area. Specifically, as shown in fig. 2,3, and 4, the preset area may be a left bottom corner area, or the preset area includes a left bottom corner area and a left side middle area, or the preset area includes the entire left area of the touch screen. Of course, the adjustment of the preset area is similar to the right-hand typing.
As shown in fig. 5 and 6, in the case of the two-hand input state, the possibility of false touch during use is relatively small, so that the preset area may be set to include a left-hand corner area and a right-hand corner area, and the area of the left-hand corner area is smaller than that of the left-hand corner area during the two-hand typing, and the area of the right-hand corner area is smaller than that of the right-hand corner area during the right-hand typing. In order to further improve the accuracy of false touch detection, the shape of the preset area may also be set to a fan shape or other shapes.
The above positions and shapes of the preset areas are only for illustration, and the application scenario of the false touch detection method, the size of the electronic device, the user group of the electronic device, and the like can also be considered in specific settings.
In some embodiments, step 102 includes determining a current pressing force distribution parameter based on touch data corresponding to a first touch operation when an input state of a touch input is a one-hand input state or a two-hand input state, where the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation. Step 103 includes not responding to the first touch operation under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value.
In the embodiment, the false touch detection comprises the step of calculating a pressing force distribution parameter when the single-hand input state or the double-hand input state is adopted. It can be understood that when a finger performs a touch operation on the touch screen, the pressing force of the whole touch area is not uniform, if the touch operation is performed by mistake, the pressing gravity center is biased to the edge area of the touch screen, that is, the pressing force of the edge area of the touch screen is large, and the pressing force of the non-edge area is small. If normal touch operation is performed, the pressing gravity center is generally not in the edge area of the touch screen, namely the pressing force of the non-edge area of the touch screen is large, and the pressing force of the edge area is small. Therefore, whether the first touch operation is a false touch operation or not can be determined according to whether the pressing force distribution parameter is larger than a preset force distribution threshold value, and whether the first touch operation is responded or not is determined based on the fact.
Further, determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation includes determining the current pressing force distribution parameter based on the touch data corresponding to the first touch operation when the input state of the touch input is a one-hand input state, the touch area is one when the first touch operation acts on the preset area, and no touch operation exists in the non-preset area of the touch screen.
Specifically, when the state is a one-hand input state, the first touch operation only acts on the preset area, and the number of touch areas in the preset area is one, the pressing force distribution parameter is calculated.
In an embodiment, step 102 includes determining an area of a finger touch area and an area of a palm touch area based on touch data corresponding to a first touch operation when an input state of a touch input is a single-hand input state, and step 103 includes not responding to the first touch operation when the area of the finger touch area is smaller than the area of the palm touch area.
In this embodiment, false touch detection includes calculating an area of a finger touch area and an area of a palm touch area during one-hand typing. It can be understood that, during one-hand typing, the area of the finger touch area is smaller than that of the palm touch area if the one-hand typing is performed by false touch operation, and the area of the finger touch area is necessarily larger than that of the palm touch area if the one-hand typing is performed by normal touch operation. In the case of two-hand typing, the palm is generally not prone to false touch operation, so that the calculation of the finger touch area and the area of the finger touch area is not performed in the case of two-hand typing.
Further, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation comprises determining the area of the finger touch area and the area of the palm touch area based on the sensor touch data corresponding to the first touch operation when the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or the number of the touch areas is a plurality of when the first touch operation is applied to the preset area and no touch operation is performed in the non-preset area of the touch screen.
Based on the above embodiments, it can be summarized that, when the input state is a single-hand input state, the content of the false touch detection under different touch conditions is different, and whether the false touch is determined may be only by calculating the pressing force distribution parameter, or whether the false touch is determined may be determined by calculating the pressing force distribution parameter, the finger touch area and the palm touch area. When the state is input by both hands, whether the touch is mistakenly touched can be determined by only calculating the pressing force distribution parameter.
Specifically, when the touch control device is in a single-hand input state, (1) when the first touch control operation is simultaneously applied to a preset area and a non-preset area, pressing force distribution parameters are calculated on touch control data in the preset area, and the area of a finger touch control area and the area of a palm touch control area are calculated on the touch control data in the preset area and the non-preset area, respectively, (2) when the number of the touch control areas in the preset area acted by the first touch control operation is one and the non-preset area is not touched, pressing force distribution calculation is performed on the touch control data in the preset area, and (3) when the number of the touch control areas in the preset area acted by the first touch control operation is multiple and the non-preset area is not touched, pressing force distribution parameters, the area of the finger touch control area and the area of the palm touch control area are calculated on the touch control data in the preset area.
That is, the calculation of the pressing force distribution parameter is only based on the sensor touch data in the preset area, while the calculation of the finger touch area and the palm touch area may be only based on the touch data in the preset area, or the touch data of the preset area and the non-preset area may need to be utilized simultaneously.
The pressing force distribution parameters comprise corner pressing force distribution parameters and/or edge pressing force distribution parameters;
If the coordinate corresponding to the maximum value in the touch data is the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining a corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value;
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining an edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In this embodiment, the specific calculation method of the pressing force distribution parameter is determined according to the position of the coordinate corresponding to the maximum value in the touch data on the touch screen. It can be understood that the display module of the electronic device may have a plurality of sensors arranged in an array, where the plurality of sensors arranged in an array may be regarded as dividing the touch screen into a plurality of touch units, and each sensor detects a touch operation of a corresponding touch unit to obtain touch data, so that each touch data has coordinates corresponding to the touch screen. The maximum value in the touch data is the position with the maximum pressing force, namely the center of gravity of the touch operation is located.
Taking fig. 7 as an example, when the coordinates of the maximum value are the top angle position of the touch screen, it is illustrated that the center of gravity of the touch operation is at the top angle position, at this time, the sum (142+514+962+1148+905+148) of the touch data in the first L-shaped area (e.g., the dot matrix pattern area in fig. 7) including the maximum value (1148) is calculated to obtain a first sum value, then the sum (64+247+50) of the touch data in the second L-shaped area (e.g., the square pattern area in fig. 7) adjacent to the first L-shaped area is calculated to obtain a second sum value, and the ratio of the first sum value to the second sum value is calculated to determine the corner pressing force distribution parameter.
Taking fig. 8 as an example, when the coordinates of the maximum value are the non-vertex angle positions of the touch screen, if the touch data are distributed along the column direction, the sum of the touch data along the column linear direction where the maximum value is located (e.g., the dot matrix pattern area in fig. 8) is calculated to obtain a third sum value (422+1139+1111+292), and then the sum of the touch data along the linear direction adjacent to the column linear direction where the maximum value is located (e.g., the square lattice pattern area in fig. 8) is calculated to obtain a fourth sum value (335+255). Of course, if the touch data is distributed in the row direction, the calculation is performed based on the row-line direction.
Further, the method for determining the finger touch area and the palm touch area is different for different typing touch operations. The method comprises the steps of taking an area where touch data corresponding to a first touch operation in a preset area as a palm touch area and taking an area where touch data corresponding to the first touch operation in a non-preset area as a finger touch area under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen.
Under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining a plurality of touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data, performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area, determining the elliptical area as a finger touch area, and determining the non-elliptical area as a palm touch area.
In this embodiment, when the first touch operation is in a single-hand input state and the first touch operation is simultaneously applied to the preset area and the non-preset area, the hand operation is similar to that shown in fig. 2, i.e., the finger is considered to be applied to the non-preset area and the palm is considered to be applied to the preset area, so that the area where the sensor touch data in the preset area is located is taken as the palm touch area, and the area where the sensor touch data in the non-preset area is located is taken as the finger touch area.
When the first touch operation is only applied to the preset area and the number of touch areas in the preset area is plural, the hand operation is similar to that shown in fig. 3, and the plural touch areas need to be identified to determine the finger touch area and the palm touch area. Specifically, the shapes of the plurality of touch areas are identified through curve fitting, and when the touch areas can be fitted into elliptical areas, the touch areas are determined to be finger touch areas. And when the touch area is fitted to the non-elliptical area, determining that the touch area is a palm touch area.
Based on the above embodiments, the method for preventing false touch according to the present disclosure determines a setting adjustment policy of a preset area based on an input state of a touch input, determines specific operations of false touch detection according to different situations according to an input state of the touch input, whether the first touch operation acts on a non-preset area, and the number of touch areas in the preset area, when the first touch operation acts on the preset area, and can achieve high accuracy for false touch detection of various typing touch situations in the input state of various touch inputs while reducing the calculation amount of touch data.
Fig. 9 is a schematic diagram illustrating an anti-false touch apparatus according to an exemplary embodiment, as shown in fig. 9, the apparatus includes:
The adjusting module 901 is configured to respond to touch input of an input area displayed in a touch screen, and adjust a preset area of the touch screen, wherein the input area is used for performing text response on the received touch input, and the input area at least partially overlaps with the preset area;
The detection module 902 is configured to perform false touch detection on the first touch operation by adopting a false touch detection policy corresponding to the touch input under the condition that the input area detects the first touch operation and the first touch operation acts on the adjusted preset area, so as to obtain a false touch detection result;
The determining module 903 is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
In some embodiments, the adjustment module 901 is further configured to:
Acquiring touch data corresponding to the touch input, determining the input state of the touch input based on the touch data, and/or,
And acquiring the acceleration sensor parameters and the gravity sensor parameters of the electronic equipment, inputting the acceleration sensor parameters and the gravity sensor parameters into a state recognition model obtained through training, and obtaining the input state of the touch input.
In some embodiments, the adjustment module 901 is further configured to:
determining a touch area corresponding to the touch input based on the touch data corresponding to the touch input;
Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
Determining an input state of the touch input based on the ellipse parameters;
wherein the ellipse parameters include the number of the ellipse regions.
In some embodiments, the adjustment module 901 is further configured to:
under the condition that the number of the elliptical areas is larger than one, determining that the input state of the touch input is a two-hand input state;
and under the condition that the number of the elliptical areas is equal to one, determining the input state of the touch input to be a one-hand input state.
In some embodiments, the adjustment module 901 is further configured to:
when the input state of the touch input is a one-hand input state, adjusting the preset area to an edge area of one side acted by the touch input;
When the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas of the two sides acted by the touch input;
The size of the preset area in the one-hand input state is larger than that of each preset area in the two-hand input state.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining a current pressing force distribution parameter based on touch data corresponding to the first touch operation, wherein the pressing force parameter is used for representing the pressing force distribution trend of the first touch operation.
In some embodiments, the determination module 903 is further configured to:
And under the condition that the current pressing force distribution parameter is larger than a preset force distribution threshold value, not responding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the touch area is one when the first touch operation acts on the preset area and no touch operation exists in a non-preset area of the touch screen, determining the current pressing force distribution parameter based on touch data corresponding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
If the coordinate corresponding to the maximum value in the touch data is at the vertex angle position of the touch screen, determining a first sum value between the touch data in a first L-shaped area containing the maximum value and a second sum value between the touch data in a second L-shaped area adjacent to the first L-shaped area, and determining the corner pressing force distribution parameter based on the ratio between the first sum value and the second sum value, and/or
And determining a third sum value between at least one piece of touch data in the direction of the straight line where the maximum value is located and a fourth sum value between at least one piece of touch data in the direction of the straight line adjacent to the straight line where the maximum value is located, and determining the edge pressing force distribution parameter based on the ratio between the third sum value and the fourth sum value.
In some embodiments, the detection module 902 is further configured to:
And under the condition that the input state of the touch input is a one-hand input state, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the determination module 903 is further configured to:
and under the condition that the area of the finger touch area is smaller than that of the palm touch area, the first touch operation is not responded.
In some embodiments, the detection module 902 is further configured to:
The first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, or
And under the condition that the number of the touch areas is multiple when the first touch operation acts on the preset area and no touch operation exists in the non-preset area of the touch screen, determining the area of the finger touch area and the area of the palm touch area based on the touch data corresponding to the first touch operation.
In some embodiments, the detection module 902 is further configured to:
under the condition that the first touch operation is simultaneously applied to the preset area and the non-preset area of the touch screen, taking the area where the touch data corresponding to the first touch operation in the preset area is located as a palm touch area;
And taking the region where the touch data corresponding to the first touch operation in the non-preset region is located as a finger touch region.
In some embodiments, the detection module 902 is further configured to:
when the number of the touch areas is multiple and no touch operation exists in a non-preset area of the touch screen when the first touch operation acts on the preset area, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
Performing curve fitting on each touch area to obtain an elliptical area and a non-elliptical area;
and determining the elliptical area as the finger touch area, and determining the non-elliptical area as the palm touch area.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
As shown in fig. 10, the embodiment of the present disclosure further provides an electronic device 100, including:
A memory 1004 for storing processor-executable instructions;
A processor 1020 coupled to the memory 1004;
wherein the processor 1020 is configured to execute the false touch preventing method provided by any of the foregoing technical solutions.
A block diagram of an electronic device 100 is shown according to an exemplary embodiment. For example, the electronic device 100 may be a smart phone, a tablet computer, a notebook computer, a portable learning machine, and the like.
Referring to FIG. 10, the electronic device 100 can include one or more of a processing component 1002, a memory 1004, a power component 1006, a multimedia component 1008, an audio component 1010, an input/output (I/O) interface 1012, a sensor component 1014, and a communication component 1018.
The processing component 1002 generally controls overall operation of the electronic device 100, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1002 can include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1002 can include one or more modules that facilitate interaction between the processing component 1002 and other components. For example, the processing component 1002 can include a multimedia module to facilitate interaction between the multimedia component 1008 and the processing component 1002.
The memory 1004 is configured to store various types of data to support operations at the electronic device 100. Examples of such data include instructions for any application or method operating on the electronic device 100, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1004 may be implemented by any type or combination of volatile or nonvolatile memory 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 disk.
The power supply component 1006 provides power to the various components of the electronic device 100. The power components 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 100.
The multimedia component 1008 includes a screen between the electronic device 100 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia assembly 1008 includes a front-facing camera and/or a rear-facing camera. When the electronic device 100 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 1010 is configured to output and/or input audio signals. For example, the audio component 1010 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 100 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1004 or transmitted via the communication component 1018. In some embodiments, the audio component 1010 further comprises a speaker for outputting audio signals.
The I/O interface 1012 provides an interface between the processing assembly 1002 and peripheral interface modules, which may be a keyboard, click wheel, buttons, and the like. These buttons may include, but are not limited to, a home button, a volume button, an activate button, and a lock button.
The sensor assembly 1014 includes one or more sensors for providing status assessment of various aspects of the electronic device 100. For example, the sensor assembly 1014 may detect an on/off state of the electronic device 100, a relative positioning of components such as a display and keypad of the electronic device 700, the sensor assembly 1014 may also detect a change in position of the electronic device 100 or a component of the electronic device 100, the presence or absence of a user's contact with the electronic device 100, an orientation or acceleration/deceleration of the electronic device 100, and a change in temperature of the electronic device 100. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 1014 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 1014 can also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 1018 is configured to facilitate communication between the electronic device 700 and other devices, either wired or wireless. The electronic device 100 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1018 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 1018 further comprises 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, and other technologies.
In an exemplary embodiment, the electronic device 100 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, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 1004, including instructions executable by processor 1020 of electronic device 100 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Embodiments of the present application provide a non-transitory computer readable storage medium, which when executed by a processor of a computer, enables the computer to perform the touch screen error touch prevention method according to one or more of the foregoing technical solutions.
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 adaptations, uses, or adaptations of the disclosure following the general 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.