False touch prevention method and device, electronic equipment and storage medium
Through dynamic adjustment of the touch screen preset area and false touch detection strategy, the problem of accidental touching on the edge area of the touch screen is solved, and the user's operating experience and device usage efficiency are improved.
Patent Information
- Application Number
- CN202311406145.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2043-10-26
AI Technical Summary
With the popularity of full-screen design, touch screen edge areas are prone to mistouching, which affects the user's operating experience.
By responding to the touch input, the preset area of the touch screen is adjusted, and a false touch detection strategy is adopted to detect whether the first touch operation is a false touch, and if the preset conditions are met, the operation will not be responded to.
Effectively identify and prevent edge errors, improve the typing and touch performance of the touch screen, and improve the user's operating experience.
Smart Images

Figure CN119902641A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communications, and in particular to a method, device, electronic device and storage medium for preventing accidental touches. Background Art
[0002] With the widespread use of touch screens in electronic devices, users' interactive operations on electronic devices have become increasingly convenient. In order to further improve the user's visual experience and the appearance of electronic devices, full-screen designs have become popular. As the screen-to-body ratio increases, the edges of electronic devices become narrower, which makes it easy to accidentally touch when using electronic devices.
[0003] In order to prevent the impact of accidental touches on the use of the edge, the commonly used method to prevent accidental touches is to add a dead zone in the edge area, and any touch signal generated in the dead zone is invalid, thereby preventing accidental touches. However, this method will make the user's normal touch operation in the edge area invalid, affecting the user experience. Summary of the invention
[0004] The present disclosure provides a method, device, electronic device and storage medium for preventing accidental touches, so as to overcome the problem of easy accidental touches in the edge area of a touch screen.
[0005] According to a first aspect of an embodiment of the present disclosure, there is provided a method for preventing accidental touches, including:
[0006] In response to a touch input in an input area displayed on the touch screen, adjusting a preset area of the touch screen; wherein the input area is used to provide a text response to the received touch input, and the input area at least partially overlaps with the preset area;
[0007] When it is detected that a first touch operation acts on the adjusted edge suppression area, a false touch detection strategy corresponding to the touch input is used to perform false touch detection on the first touch operation to obtain a false touch detection result;
[0008] When the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded.
[0009] In some embodiments, the method for preventing accidental touch further includes:
[0010] Acquiring touch data corresponding to the touch input, and determining an input state of the touch input based on the touch data; and / or,
[0011] Acquire acceleration sensor parameters and gravity sensor parameters of the electronic device, and input the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain an input state of the touch input.
[0012] In some embodiments, determining the input state of the touch input based on the touch data includes:
[0013] Determining a touch area corresponding to the touch input based on touch data corresponding to the touch input;
[0014] Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
[0015] Based on the ellipse parameter, determining an input state of the touch input;
[0016] The ellipse parameters include: the number of the ellipse areas.
[0017] In some embodiments, determining the input state of the touch input based on the ellipse parameter includes:
[0018] When the number of the elliptical areas is greater than one, determining that the input state of the touch input is a two-hand input state;
[0019] When the number of the elliptical areas is equal to one, it is determined that the input state of the touch input is a single-hand input state.
[0020] In some embodiments, adjusting the preset area of the touch screen includes:
[0021] When the input state of the touch input is a single-hand input state, adjusting the preset area to an edge area on a side where the touch input acts;
[0022] When the input state of the touch input is a two-hand input state, adjusting the preset area to edge areas on both sides of the touch input;
[0023] Wherein, the area of the preset region in the one-hand input state is larger than the area of each preset region in the two-hand input state.
[0024] In some embodiments, adopting a false touch detection strategy corresponding to the input state to perform false touch detection on the first touch operation to obtain a false touch detection result includes:
[0025] When the input state of the touch input is a one-hand input state or a two-hand input state, determining a current pressure distribution parameter based on the sensor touch data corresponding to the first touch operation; wherein the pressure parameter is used to characterize a pressure distribution trend of the first touch operation;
[0026] When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes:
[0027] When the current pressing force distribution parameter is greater than a preset force distribution threshold, no response is given to the first touch operation.
[0028] In some embodiments, determining a current pressure intensity distribution parameter based on the touch data corresponding to the first touch operation includes:
[0029] When the input state of the touch input is a one-hand input state, the number of touch areas when the first touch operation acts on the preset area is one, and there is no touch operation in the non-preset area of the touch screen, the current pressure intensity distribution parameter is determined based on the touch data corresponding to the first touch operation.
[0030] In some embodiments, the pressing force distribution parameters include: corner pressing force distribution parameters and / or edge pressing force distribution parameters;
[0031] The determining of the current pressure intensity distribution parameter based on the touch data corresponding to the first touch operation includes:
[0032] If the coordinates corresponding to the maximum value in the touch data are located at the top corner of the touch screen, determine 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 determine the corner pressure intensity distribution parameter based on a ratio between the first sum value and the second sum value; and / or
[0033] If the coordinate corresponding to the maximum value is located at a non-vertex position of the touch screen, determine a third sum value between at least one of the touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value.
[0034] In some embodiments, using a false touch detection strategy corresponding to the touch input to perform false touch detection on the first touch operation to obtain a false touch detection result includes:
[0035] When the input state of the touch input is a single-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;
[0036] When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes:
[0037] When the area of the finger touch region is smaller than the area of the palm touch region, the first touch operation is not responded to.
[0038] 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:
[0039] The first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or,
[0040] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
[0041] In some embodiments, the method for preventing accidental touches further includes:
[0042] In the case where the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area;
[0043] The area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area.
[0044] In some embodiments, the method for preventing accidental touches further includes:
[0045] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
[0046] Performing curve fitting on each of the touch control areas to obtain an elliptical area and a non-elliptical area;
[0047] The elliptical area is determined as the finger touch area, and the non-elliptical area is determined as the palm touch area.
[0048] According to a second aspect of an embodiment of the present disclosure, there is provided an anti-mistaken touch device, comprising:
[0049] an adjustment module, configured to adjust a preset area of the touch screen in response to a touch input of an input area displayed on the touch screen, wherein the input area is used to make a text response to the received touch input, and the input area at least partially overlaps with the preset area;
[0050] a detection module configured to, when a first touch operation is detected in the input area and the first touch operation acts on the adjusted preset area, adopt an error touch detection strategy corresponding to the touch input to perform error touch detection on the first touch operation and obtain an error touch detection result;
[0051] The determination module is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
[0052] In some embodiments, the adjustment module is further configured to:
[0053] Acquiring touch data corresponding to the touch input, and determining an input state of the touch input based on the touch data; and / or,
[0054] Acquire acceleration sensor parameters and gravity sensor parameters of the electronic device, and input the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain an input state of the touch input.
[0055] In some embodiments, the adjustment module is further configured to:
[0056] Determining a touch area corresponding to the touch input based on touch data corresponding to the touch input;
[0057] Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
[0058] Based on the ellipse parameter, determining an input state of the touch input;
[0059] The ellipse parameters include: the number of the ellipse areas.
[0060] In some embodiments, the adjustment module is further configured to:
[0061] When the number of the elliptical areas is greater than one, determining that the input state of the touch input is a two-hand input state;
[0062] When the number of the elliptical areas is equal to one, it is determined that the input state of the touch input is a single-hand input state.
[0063] In some embodiments, the adjustment module is further configured to:
[0064] When the input state of the touch input is a single-hand input state, adjusting the preset area to an edge area on a side where the touch input acts;
[0065] When the input state of the touch input is a two-hand input state, adjusting the preset area to edge areas on both sides of the touch input;
[0066] 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.
[0067] In some embodiments, the detection module is further configured to:
[0068] When the input state of the touch input is a one-hand input state, a current pressing force distribution parameter is determined based on the touch data corresponding to the first touch operation; wherein the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation.
[0069] In some embodiments, the determination module is further configured to:
[0070] When the current pressing force distribution parameter is greater than a preset force distribution threshold, the first touch operation is not responded to.
[0071] In some embodiments, the detection module is further configured to:
[0072] When there is only one touch area when the first touch operation acts on the preset area and there is no touch operation in a non-preset area of the touch screen, the current pressure intensity distribution parameter is determined based on touch data corresponding to the first touch operation.
[0073] In some embodiments, the detection module is further configured to:
[0074] If the coordinates corresponding to the maximum value in the touch data are at the top corner position of the touch screen, determine 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 determine the corner pressure intensity distribution parameter based on a ratio between the first sum value and the second sum value; and / or
[0075] If the coordinate corresponding to the maximum value is at a non-vertex position of the touch screen, determine a third sum value between at least one touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value.
[0076] In some embodiments, the detection module is further configured to:
[0077] When the input state of the touch input is a single-hand input state, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
[0078] In some embodiments, the determination module is further configured to:
[0079] When the area of the finger touch region is smaller than the area of the palm touch region, no response is given to the first touch operation.
[0080] In some embodiments, the detection module is further configured to:
[0081] The first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or,
[0082] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
[0083] In some embodiments, the detection module is further configured to:
[0084] In the case where the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area;
[0085] The area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area.
[0086] In some embodiments, the detection module is further configured to:
[0087] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
[0088] Performing curve fitting on each of the touch control areas to obtain an elliptical area and a non-elliptical area;
[0089] The elliptical area is determined as the finger touch area, and the non-elliptical area is determined as the palm touch area.
[0090] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0091] processor;
[0092] a memory configured to store processor-executable instructions;
[0093] Wherein, the processor is configured to execute the method for preventing accidental touches described in the first aspect above when calling executable instructions in the memory.
[0094] According to a fourth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the method for preventing accidental touches described in the first aspect above.
[0095] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0096] The anti-mistouch method disclosed in the present invention adjusts the preset area of the touch screen in response to the touch input of the input area displayed on the touch screen, and the input area is used to respond to the received touch input with text, and at least partially overlaps with the preset area; when the first touch operation is detected in the input area, and the first touch operation acts on the adjusted preset area, the mistouch detection strategy corresponding to the touch input is adopted to perform mistouch detection on the first touch operation to obtain a mistouch detection result; when the mistouch detection result meets the preset mistouch judgment condition, the first touch operation is not responded to. Since the present invention determines the preset area based on the touch input and determines the mistouch detection strategy based on the touch input, it can effectively and accurately identify the normal typing operation and mistouch operation in the preset area in the face of various touch input situations, thereby improving the typing touch performance of the touch screen and improving the user typing experience.
[0097] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0098] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0099] Figure 1 The figure is a flowchart of a method for preventing accidental touches according to an exemplary embodiment.
[0100] Figure 2 FIG. 1 is a schematic diagram of a preset area on a touch screen in a single-hand input state according to an exemplary embodiment. Figure 1 .
[0101] Figure 3 FIG. 1 is a schematic diagram of a preset area on a touch screen in a single-hand input state according to an exemplary embodiment. Figure 2 .
[0102] Figure 4FIG. 1 is a schematic diagram of a preset area on a touch screen in a single-hand input state according to an exemplary embodiment. Figure 3 .
[0103] Figure 5 is a schematic diagram of a preset area on a touch screen in a two-hand input state according to an exemplary embodiment Figure 1 .
[0104] Figure 6 is a schematic diagram of a preset area on a touch screen in a two-hand input state according to an exemplary embodiment Figure 2 .
[0105] Figure 7 FIG. 1 is a schematic diagram showing the distribution of touch data involved in a pressure distribution parameter in a method for preventing false touches according to an exemplary embodiment. Figure 1 ;
[0106] Figure 8 FIG. 1 is a schematic diagram showing the distribution of touch data involved in a pressure distribution parameter in a method for preventing false touches according to an exemplary embodiment. Figure 2 .
[0107] Fig. 9 is a schematic structural diagram of an anti-mistouch device according to an exemplary embodiment.
[0108] Fig.10 The diagram is a schematic structural diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0109] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0110] In the specification, unless otherwise clearly stated, the terms "first" and "second" are used only to describe and distinguish constituent elements, and should not be understood as indicating an order. Unless otherwise clearly stated, the terms "connected", "fixed", etc. should be understood as having a broad meaning, including but not limited to directly, indirectly, detachably "connected", "fixed", etc.
[0111] Figure 1 The process of the method for preventing accidental touch according to an exemplary embodiment is shown as follows Figure 1 ,like Figure 1 As shown, the method mainly includes the following steps:
[0112] In step 101, in response to a touch input in an input area displayed on the touch screen, a preset area of the touch screen is adjusted; wherein the input area is used to provide a text response to the received touch input, and the input area at least partially overlaps with the preset area.
[0113] In this embodiment, the electronic device is a device with a touch screen and is prone to accidental touches during use, such as mobile phones, tablets, smart watches, smart wearable devices, etc. For example, the input area in the touch screen can be a virtual keyboard area or a handwriting input area, etc., which can respond to the user's input information in text. The preset area in the touch screen is an area pre-delineated in the touch screen. The electronic device will detect the touch operation in the area to determine whether the touch operation is an accidental touch operation. For an accidental touch operation in the preset area, the processor in the electronic device does not respond to the accidental touch operation (that is, does not report the touch data of the accidental touch operation or does not execute the touch event corresponding to the touch operation). For non-accidental touch operations in the preset area, the processor in the electronic device will respond to the non-accidental touch operation.
[0114] Corresponding to the preset area, for all touch operations in the non-preset area of the touch screen, the electronic device does not detect but directly responds and processes.
[0115] Therefore, the preset area is generally set at a position on the touch screen where accidental touch operations are prone to occur, such as: the edge positions on both sides of the touch screen, the bottom corner positions of the touch screen, etc. The specific shape, size, and position of the preset area can be adjusted according to the size of the electronic device, the user group, the application scenario, etc.
[0116] Since the input area can be a virtual keyboard area or a handwriting input area, etc., which can respond to the user's input information in text, and the preset area is generally set at a position on the touch screen that is prone to accidental touch operations, there will be some overlap between the input area and the preset area. Then, when the typing function of the electronic device is turned on (such as: virtual keyboard typing in the game interface, handwriting input in the chat interface, typing while watching a video and sending barrages, etc.), the preset area can be adjusted based on the virtual keyboard input or handwriting input in the preset area.
[0117] Specifically, this embodiment can determine the area that is prone to accidental touches during typing, as well as the typing state that is prone to accidental touches based on the input state of the touch input, the location of the touch area of the touch input, the touch duration of the touch input, the area of the touch area of the touch input, etc., and adjust the size, shape, position, etc. of the preset area based on this.
[0118] In step 102, when a first touch operation is detected in the input area 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 to obtain a false touch detection result.
[0119] In this embodiment, the false touch detection for the first touch operation is actually the false touch detection for the typing input operation acting on the preset area during the typing input process, so as to prevent the false touch input in the edge area during the typing process. During the false touch detection, different touch inputs can correspond to different false touch detection strategies, and specifically, the corresponding false touch detection can be determined based on the touch input mode (virtual keyboard input, handwriting input), the input state of the touch input (single-hand input, double-hand input), the size of the display area receiving the touch input, the touch duration of the touch input, the area of the touch area of the touch input, etc. 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 for the touch area in the middle of the preset area is different from the false touch detection strategy for the touch area at the edge or corner, and so on.
[0120] In step 103, when the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded.
[0121] In this embodiment, after 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 the false touch detection result is obtained based on the false touch detection to determine whether the first touch operation is a valid operation (normal touch operation) or an invalid operation (false touch operation). No response is given to invalid operations, and a response is given to valid operations. By way of 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.
[0122] When the first touch operation acts on the touch screen, since the touch screen is divided into a preset area and a non-preset area, there are three situations: the first touch operation acts on both the preset area and the non-preset area; the second touch operation acts only on the preset area; the third touch operation acts only on the non-preset area.
[0123] The anti-mistouch method disclosed in the present invention can detect mistouches for touch operations within a preset area and determine whether to respond, while any touch operations in non-preset areas are considered normal touches and respond to touches. Therefore, this embodiment can detect mistouches for touch operations within the preset area in the first and second cases using a mistouch detection strategy corresponding to the touch input. In this way, the amount of calculation for touch operations can be reduced, and mistouch operations can be effectively and accurately identified in the typing state, thereby improving the typing touch performance of the touch screen and the user's typing experience.
[0124] In some embodiments, the method for preventing accidental touches also includes: obtaining touch data corresponding to the touch input, and determining the input state of the touch input based on the touch data; and / or obtaining acceleration sensor parameters and gravity sensor parameters of the electronic device, and inputting the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain the input state of the touch input.
[0125] In this embodiment, there are two methods for detecting the input status of touch input. You can determine which one or both of them to use based on factors such as the application scenario of the anti-mistouch method, the electronic device to which it is applied, the user group of the electronic device, the requirements for the detection results (such as accuracy, reliability, speed), etc.
[0126] When input state detection is performed based on touch data of touch input, the input state can be determined based on parameters such as the position of the touch area corresponding to the touch data, the number of touch areas, the shape of the touch area, the tilt direction of the touch area, etc.
[0127] It is understandable that when the input is in a one-handed input state (left hand or right hand), the touch area is mostly located on the left 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 the shape of the thumb, and the tilt direction of the electronic device is mostly tilted to one side when typing with the left hand or the right hand. When the input is in a two-handed input state, the touch area is mostly present on both the left and right sides of the touch screen, the number of touch areas corresponding to one touch operation can be multiple, the shape of the touch area generally includes the shape of other fingers in addition to the shape of the thumb, and the tilt direction of the electronic device generally tilts to the left and to the right at the same time, or maintains balance.
[0128] When the input state of the touch input is detected based on the acceleration sensor and the gravity sensor, the parameters of the two sensors are obtained, and the parameters of the two sensors are input into the trained state recognition model to obtain the input state. When typing with one hand and typing with two hands, the tilt angle of the electronic device is different, and the acceleration sensor can detect the tilt angle of the electronic device up and down, left and right, and the gravity sensor can detect the motion state of the electronic device and the tilt angle relative to the horizontal plane. Therefore, the input state is instantly and accurately measured based on the parameters of the two sensors. The state recognition model can be any one or more combinations of convolutional neural networks, support vector machines, long short-term memory networks, recursive neural networks, etc.
[0129] Furthermore, determining the input state based on the touch data includes: determining the 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 the ellipse area and ellipse parameters corresponding to the ellipse area; determining the input state based on the ellipse parameters; wherein the ellipse parameters include: the number of the ellipse areas.
[0130] In this embodiment, whether it is a capacitive touch screen, a resistive touch screen, or other types of touch screens, the display module of the electronic device will have multiple sensors arranged in an array. The multiple sensors arranged in an array can be regarded as dividing the touch screen into multiple touch units to detect touch operations at various positions of the touch screen and output touch data.
[0131] A touch operation of the user's hand will involve multiple touch units, and multiple sensors corresponding to the multiple touch units can detect and output touch data. Based on the coordinates of the touch screen corresponding to these touch data, the touch area of this touch operation can be determined. Since the finger shape is similar to an ellipse, the touch area is fitted with an ellipse to determine the ellipse area and ellipse parameters. The ellipse parameters may include: the number of ellipse areas, the inclination direction of the ellipse area, the area of the ellipse area, and the like. Based on the ellipse parameters, the input state of the touch input (single-hand input state, double-hand input state) can be determined, and further based on the ellipse parameters, it can be determined whether the left hand is typing or the right hand is typing, and even based on the ellipse parameters, the finger corresponding to the touch operation can be determined. When the thumb touches, the area of the touch area is relatively large, and when other fingers touch, the area of the touch area is relatively small. The size of the preset area can also be adjusted based on the finger corresponding to the touch operation to achieve accurate detection and further improve the accuracy of false touch detection.
[0132] Furthermore, based on the ellipse parameters, the input state of the touch input is determined, including: when the number of ellipse areas is greater than one, determining the input state of the touch input is a two-handed input state; when the number of ellipse areas is equal to one, determining the input state of the touch input is a one-handed input state.
[0133] Specifically, in order to reduce the amount of calculation and improve detection efficiency, it can be directly determined whether typing is done with one hand or with both hands based on the number of elliptical areas.
[0134] In one embodiment, step 101 includes: when the input state of the touch input is a one-hand input state, adjusting the preset area to the edge area on one side where the touch input acts; when the input state of the touch input is a two-hand input state, adjusting the preset area to the edge areas on both sides where the touch input acts; 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.
[0135] In this embodiment, the possibility and area of false touches in different touch input states are different. In the one-handed input state (left-handed input or right-handed input), the preset area is adjusted to the left edge area or the right edge area of the touch screen. In the two-handed input state, the preset area is adjusted to the left edge area and the right edge area. For example: when the user is typing with both hands in the game interface, it is a two-handed input state. At this time, it is generally not easy to make false touches. Therefore, the preset area can be based on a smaller sector and is only set at the bottom corners on both sides of the electronic device. For another example: when the user is typing with one hand in the chat interface, it is a one-handed input state. At this time, it is easy to make false touches. Therefore, the preset area can be based on a larger rectangle and is set at the bottom corner of one side of the electronic device and the middle of one side edge.
[0136] In addition, when setting the preset area, the size and shape of the electronic device may also be considered. For example, when the electronic device is a small device, the preset area may be set at the edge of the touch screen because the touch screen is small. When the electronic device is a large device, the preset area may be set at part of the edge of the touch screen according to the user's usage experience and usage habits.
[0137] It should be noted that adjusting the preset area of the touch screen can be understood as adjusting the position, shape and size of the preset area of the touch screen based on the input status. It can also be understood as setting a preset area of a certain shape and size at a certain position of the touch screen based on the input status for an electronic device that does not have a preset area.
[0138] Specifically, in the one-hand input state, taking left-hand typing as an example, the preset area is adjusted to the left edge area. Figure 2 , Figure 3 , Figure 4As shown, the preset area can be the left bottom corner area, or the preset area includes the left bottom corner area and the left edge middle area, or the preset area includes the entire left area of the touch screen. Of course, when typing with the right hand, the adjustment of the preset area is similar to that when typing with the left hand.
[0139] like Figure 5 , Figure 6 As shown, when the two-hand input state is used, the possibility of mis-touch during use is relatively small, so the preset area can be set to include the left corner area and the right corner area, and the area of the left corner area when typing with both hands is smaller than the area of the left corner area when typing with the left hand, and the area of the right corner area when typing with both hands is smaller than the area of the right corner area when typing with the right hand. In order to further improve the accuracy of mis-touch detection, the shape of the preset area can also be set to a fan shape or other shapes.
[0140] The positions and shapes of the above preset areas are only for illustration purposes. When making specific settings, the application scenarios of the false touch detection method, the size of the electronic device, the user groups of the electronic device, etc. may also be considered.
[0141] In some embodiments, step 102 includes: when the input state of the touch input is a single-hand input state or a two-hand input state, based on the touch data corresponding to the first touch operation, determining the current pressure distribution parameter; wherein the pressure distribution parameter is used to characterize the pressure distribution trend of the first touch operation. Step 103 includes: when the current pressure distribution parameter is greater than a preset force distribution threshold, not responding to the first touch operation.
[0142] In this embodiment, false touch detection includes: when it is a single-hand input state or a two-hand input state, calculating the pressure distribution parameters. It is understandable that when a finger performs a touch operation on the touch screen, the pressure of the entire touch area is not uniform. If it is a false touch operation, the pressing center of gravity is biased towards the edge area of the touch screen, that is, the pressing force in the edge area of the touch screen is large, and the pressing force in the non-edge area is small. If it is a normal touch operation, the pressing center of gravity is generally not in the edge area of the touch screen, that is, the pressing force in the non-edge area of the touch screen is large, and the pressing force in the edge area is small. Therefore, whether the first touch operation is a false touch operation can be determined based on whether the pressure distribution parameters are greater than the preset force distribution threshold, and whether to respond to the first touch operation is determined based on this.
[0143] Furthermore, based on the touch data corresponding to the first touch operation, the current pressure distribution parameters are determined, including: 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 there is no touch operation in the non-preset area of the touch screen, based on the touch data corresponding to the first touch operation, the current pressure distribution parameters are determined.
[0144] Specifically, when the single-hand input state is in place, the first touch operation is only applied to a preset area, and the number of touch areas within the preset area is one, the calculation of the pressure intensity distribution parameter is performed.
[0145] In one embodiment, step 102 includes: when the input state of the touch input is a single-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; step 103 includes: when the area of the finger touch area is smaller than the area of the palm touch area, not responding to the first touch operation.
[0146] In this embodiment, the false touch detection includes: when typing with one hand, calculating the area of the finger touch area and the area of the palm touch area. It is understandable that when typing with one hand, if it is a false touch operation, the area of the finger touch area will be smaller than the area of the palm touch area; if it is a normal touch operation, the area of the finger touch area will definitely be larger than the area of the palm touch area. When typing with both hands, the palm is generally not prone to false touch operations, so the finger touch area and the area of the finger touch area are not calculated when typing with both hands.
[0147] Further, based on the touch data corresponding to the first touch operation, the area of the finger touch area and the area of the palm touch area are determined, including: the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or, when the first touch operation acts on the preset area, the number of touch areas is multiple and there is no touch operation in the non-preset area of the touch screen, based on the sensor touch data corresponding to the first touch operation, the area of the finger touch area and the area of the palm touch area are determined.
[0148] Based on the above embodiments, it can be concluded that when the input is in a single-handed state, the contents of false touch detection are different in different touch situations. It may be possible to determine whether it is a false touch by only calculating the pressure distribution parameters, or it may be necessary to calculate the pressure distribution parameters, the finger touch area area, and the palm touch area area to determine whether it is a false touch. When the input is in a two-handed state, it is possible to determine whether it is a false touch by only calculating the pressure distribution parameters.
[0149] Specifically, when it is a single-hand input state, (1) when the first touch operation acts on the preset area and the non-preset area at the same time, the pressure distribution parameters of the touch data in the preset area are calculated, and the area of the finger touch area and the area of the palm touch area are calculated for the touch data in the preset area and the non-preset area; (2) when the number of touch areas in the preset area where the first touch operation acts is one, and there is no touch operation in the non-preset area, the pressure distribution of the touch data in the preset area is calculated; (3) when the number of touch areas in the preset area where the first touch operation acts is multiple, and there is no touch operation in the non-preset area, the pressure distribution parameters, the area of the finger touch area, and the area of the palm touch area are calculated for the touch data in the preset area.
[0150] That is, the calculation of the pressure intensity distribution parameters is based only on the sensor touch data within the preset area, while the calculation of the finger touch area area and the palm touch area area may be based only on the touch data within the preset area, or may require the use of touch data from both the preset area and the non-preset area.
[0151] Specifically, the pressing force distribution parameter includes: a corner pressing force distribution parameter and / or an edge pressing force distribution parameter;
[0152] If the coordinates corresponding to the maximum value in the touch data are the top corner positions of the touch screen, determining a first sum value between the touch data in a first L-shaped region including the maximum value, and a second sum value between the touch data in a second L-shaped region adjacent to the first L-shaped region, and determining a corner pressing force distribution parameter based on a ratio between the first sum value and the second sum value; and / or;
[0153] If the coordinates corresponding to the maximum value are non-vertex positions of the touch screen, determine a third sum value between at least one touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value.
[0154] In this embodiment, the calculation of the pressure distribution parameters is determined according to the position of the coordinates corresponding to the maximum value in the touch data on the touch screen, and the specific calculation method of the pressure distribution parameters is determined. It can be understood that there are multiple sensors arranged in an array in the display module of the electronic device. The multiple sensors arranged in an array can be regarded as dividing the touch screen into multiple touch units. Each sensor detects the touch operation of the touch unit corresponding to itself to obtain touch data, so each touch data has corresponding coordinates in the touch screen. The maximum value in the touch data is the position with the maximum pressure, that is, the center of gravity of the touch operation.
[0155] by Figure 7For example, when the coordinates of the maximum value are the vertex position of the touch screen, it means that the center of gravity of the touch operation is at the vertex position. At this time, the first L-shaped area containing the maximum value (1148) is calculated (such as: Figure 7 The sum of the touch data of the middle dot matrix pattern area) is (142+514+962+1148+905+148) to obtain the first sum value, and then the second L-shaped area adjacent to the first L-shaped area is calculated (such as: Figure 7 The sum of the touch data in the middle grid pattern area (64+247+50) is obtained 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 pressure intensity distribution parameter.
[0156] by Figure 8 For example, when the coordinates of the maximum value are at non-vertex positions of the touch screen, if the touch data are distributed in the column direction, the sum of the touch data in the column straight line direction where the maximum value is located is calculated (eg: Figure 8 The third sum value (422+1139+1111+292) is obtained, and then the sum of the touch data in the straight line direction adjacent to the column straight line direction where the maximum value is located is calculated (such as: Figure 8 Of course, if the touch data is distributed in the row direction, the calculation is based on the row straight line direction.
[0157] Furthermore, for different typing touch operations, the methods for determining the finger touch area and the palm touch area are different, including: when the first touch operation acts on both the preset area and the non-preset area of the touch screen, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area; the area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area.
[0158] When the number of touch areas is multiple when the first touch operation acts on the preset area, and there is no touch operation in the non-preset area of the touch screen, multiple touch areas are determined based on the touch data corresponding to the first touch operation and the coordinates of the touch data; curve fitting is performed on each touch area to obtain an elliptical area and a non-elliptical area; the elliptical area is determined as a finger touch area, and the non-elliptical area is determined as a palm touch area.
[0159] In this embodiment, when the single-hand input state is in place and the first touch operation acts on both the preset area and the non-preset area, the hand operation is similar to Figure 2 As shown, it is considered that the finger acts on the non-preset area, and the palm acts on the preset area. Therefore, 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.
[0160] When the first touch operation is only applied to the preset area, and there are multiple touch areas in the preset area, the hand operation is similar to Figure 3 As shown, at this time, multiple touch areas need to be identified to determine the finger touch area and the palm touch area. Specifically, the shapes of the multiple touch areas are identified by curve fitting. When the touch area can be fitted into an elliptical area, the touch area is determined to be a finger touch area. When the touch area is fitted into a non-elliptical area, the touch area is determined to be a palm touch area.
[0161] Based on the above embodiments, the disclosed method for preventing false touches determines a setting adjustment strategy for a preset area based on the input state of the touch input. When a first touch operation acts on a preset area, the specific operation of false touch detection is determined in different situations according to the input state of the touch input, whether the first touch operation acts on a non-preset area, and the number of touch areas within the preset area. The whole method can reduce the amount of touch data calculation while achieving high accuracy in false touch detection of various typing touch situations under various touch input input states.
[0162] Fig. 9 is a device for preventing accidental touch according to an exemplary embodiment. Fig. 9 As shown, the device comprises:
[0163] An adjustment module 901 is configured to adjust a preset area of the touch screen in response to a touch input of an input area displayed on the touch screen, wherein the input area is used to provide a text response to the received touch input, and the input area at least partially overlaps with the preset area;
[0164] The detection module 902 is configured to, when a first touch operation is detected in the input area and the first touch operation acts on the adjusted preset area, adopt an error touch detection strategy corresponding to the touch input to perform error touch detection on the first touch operation to obtain an error touch detection result;
[0165] The determination module 903 is configured to not respond to the first touch operation when the false touch detection result meets the preset false touch judgment condition.
[0166] In some embodiments, the adjustment module 901 is further configured to:
[0167] Acquiring touch data corresponding to the touch input, and determining an input state of the touch input based on the touch data; and / or,
[0168] Acquire acceleration sensor parameters and gravity sensor parameters of the electronic device, and input the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain an input state of the touch input.
[0169] In some embodiments, the adjustment module 901 is further configured to:
[0170] Determining a touch area corresponding to the touch input based on touch data corresponding to the touch input;
[0171] Performing ellipse fitting on the touch area to determine an ellipse area and ellipse parameters corresponding to the ellipse area;
[0172] Based on the ellipse parameter, determining an input state of the touch input;
[0173] The ellipse parameters include: the number of the ellipse areas.
[0174] In some embodiments, the adjustment module 901 is further configured to:
[0175] When the number of the elliptical areas is greater than one, determining that the input state of the touch input is a two-hand input state;
[0176] When the number of the elliptical areas is equal to one, it is determined that the input state of the touch input is a single-hand input state.
[0177] In some embodiments, the adjustment module 901 is further configured to:
[0178] When the input state of the touch input is a single-hand input state, adjusting the preset area to an edge area on a side where the touch input acts;
[0179] When the input state of the touch input is a two-hand input state, adjusting the preset area to edge areas on both sides of the touch input;
[0180] 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.
[0181] In some embodiments, the detection module 902 is further configured to:
[0182] When the input state of the touch input is a one-hand input state, a current pressing force distribution parameter is determined based on the touch data corresponding to the first touch operation; wherein the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation.
[0183] In some embodiments, the determination module 903 is further configured to:
[0184] When the current pressing force distribution parameter is greater than a preset force distribution threshold, the first touch operation is not responded to.
[0185] In some embodiments, the detection module 902 is further configured to:
[0186] When there is only one touch area when the first touch operation acts on the preset area and there is no touch operation in a non-preset area of the touch screen, the current pressure intensity distribution parameter is determined based on touch data corresponding to the first touch operation.
[0187] In some embodiments, the detection module 902 is further configured to:
[0188] If the coordinates corresponding to the maximum value in the touch data are at the top corner position of the touch screen, determine 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 determine the corner pressure intensity distribution parameter based on a ratio between the first sum value and the second sum value; and / or
[0189] If the coordinate corresponding to the maximum value is at a non-vertex position of the touch screen, determine a third sum value between at least one touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value.
[0190] In some embodiments, the detection module 902 is further configured to:
[0191] When the input state of the touch input is a single-hand input state, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
[0192] In some embodiments, the determination module 903 is further configured to:
[0193] When the area of the finger touch region is smaller than the area of the palm touch region, the first touch operation is not responded to.
[0194] In some embodiments, the detection module 902 is further configured to:
[0195] The first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or,
[0196] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
[0197] In some embodiments, the detection module 902 is further configured to:
[0198] In the case where the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area;
[0199] The area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area.
[0200] In some embodiments, the detection module 902 is further configured to:
[0201] When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, determining multiple touch areas based on touch data corresponding to the first touch operation and coordinates of the touch data;
[0202] Performing curve fitting on each of the touch control areas to obtain an elliptical area and a non-elliptical area;
[0203] The elliptical area is determined as the finger touch area, and the non-elliptical area is determined as the palm touch area.
[0204] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0205] like Fig.10 As shown, the embodiment of the present disclosure further provides an electronic device 100, including:
[0206] Memory 1004 for storing processor executable instructions;
[0207] A processor 1020 connected to the memory 1004;
[0208] The processor 1020 is configured to execute the method for preventing accidental touches provided by any of the aforementioned technical solutions.
[0209] 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.
[0210] refer to Fig.10 , the electronic device 100 may include one or more of the following components: 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 .
[0211] The processing component 1002 generally controls the overall operation of the electronic device 100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1002 may include one or more modules to facilitate the interaction between the processing component 1002 and other components. For example, the processing component 1002 may include a multimedia module to facilitate the interaction between the multimedia component 1008 and the processing component 1002.
[0212] The memory 1004 is configured to store various types of data to support operations on the electronic device 100. Examples of such data include instructions for any application or method operating on the electronic device 100, contact data, phone book data, messages, pictures, videos, etc. The memory 1004 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
[0213] The power supply component 1006 provides power to the various components of the electronic device 100. The power supply component 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.
[0214] The multimedia component 1008 includes a screen that provides an output interface between the electronic device 100 and the user. 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 the 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 boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1008 includes a front camera and / or a rear camera. When the electronic device 100 is in an operating 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 a focal length and optical zoom capability.
[0215] The audio component 1010 is configured to output and / or input audio signals. For example, the audio component 1010 includes a microphone (MIC), and when the electronic device 100 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1004 or sent via the communication component 1018. In some embodiments, the audio component 1010 also includes a speaker for outputting audio signals.
[0216] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0217] The sensor assembly 1014 includes one or more sensors for providing various aspects of status assessment for the electronic device 100. For example, the sensor assembly 1014 can detect the open / closed state of the electronic device 100, the relative positioning of the components, such as the display and keypad of the electronic device 700, and the sensor assembly 1014 can also detect the position change of the electronic device 100 or a component of the electronic device 100, the presence or absence of user contact with the electronic device 100, the orientation or acceleration / deceleration of the electronic device 100, and the temperature change of the electronic device 100. The sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 1014 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1014 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0218] The communication component 1018 is configured to facilitate wired or wireless communication between the electronic device 700 and other devices. The electronic device 100 can 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 1018 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1018 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0219] 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 components to perform the above methods.
[0220] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, and the instructions can be executed by the processor 1020 of the electronic device 100 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0221] An embodiment of the present application provides a non-temporary computer-readable storage medium. When the instructions in the storage medium are executed by a processor of a computer, the computer can execute the touch screen anti-mistouch method described in one or more of the aforementioned technical solutions.
[0222] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0223] It should be understood that the present disclosure is not limited to the exact structures that have been 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.
Claims
1. A method for preventing accidental touch, characterized in that: include: In response to a touch input in an input area displayed on the touch screen, adjusting a preset area of the touch screen; wherein the input area is used to provide a text response to the received touch input, and the input area at least partially overlaps with the preset area; When a first touch operation is detected in the input area 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 to obtain a false touch detection result; When the false touch detection result meets the preset false touch judgment condition, the first touch operation is not responded.
2. The method according to claim 1, characterized in that The method further comprises: Acquiring touch data corresponding to the touch input, and determining an input state of the touch input based on the touch data; and / or, Acquire acceleration sensor parameters and gravity sensor parameters of the electronic device, and input the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to obtain an input state of the touch input.
3. The method according to claim 2, characterized in that The 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 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; Based on the ellipse parameter, determining an input state of the touch input; The ellipse parameters include: the number of the ellipse areas.
4. The method according to claim 3, characterized in that The step of determining the input state of the touch input based on the ellipse parameter includes: When the number of the elliptical areas is greater than one, determining that the input state of the touch input is a two-hand input state; When the number of the elliptical areas is equal to one, it is determined that the input state of the touch input is a single-hand input state.
5. The method according to claim 1, characterized in that The adjusting the preset area of the touch screen includes: When the input state of the touch input is a one-hand input state, the preset area is adjusted to the edge area on the side where the touch input acts; when the input state of the touch input is a two-hand input state, the preset area is adjusted to the edge areas on both sides where the touch input acts; Wherein, the area of the preset region in the one-hand input state is larger than the area of each preset region in the two-hand input state.
6. The method according to claim 1, characterized in that The adopting the false touch detection strategy corresponding to the touch input to perform false touch detection on the first touch operation to obtain the false touch detection result includes: When the input state of the touch input is a one-hand input state or a two-hand input state, determining a current pressing force distribution parameter based on the touch data corresponding to the first touch operation; wherein the pressing force parameter is used to characterize a pressing force distribution trend of the first touch operation; When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes: When the current pressing force distribution parameter is greater than a preset force distribution threshold, the first touch operation is not responded to.
7. The method according to claim 6, characterized in that The determining, based on the touch data corresponding to the first touch operation, a current pressure intensity distribution parameter includes: When the input state of the touch input is a one-hand input state, the number of touch areas when the first touch operation acts on the preset area is one, and there is no touch operation in the non-preset area of the touch screen, the current pressure intensity distribution parameter is determined based on the touch data corresponding to the first touch operation.
8. The method according to claim 6 or 7, characterized in that: The pressing force distribution parameters include: corner pressing force distribution parameters and / or edge pressing force distribution parameters; The determining of the current pressure intensity distribution parameter based on the touch data corresponding to the first touch operation includes: If the coordinates corresponding to the maximum value in the touch data are the top corner position of the touch screen, determine 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 determine the corner pressure intensity distribution parameter based on a ratio between the first sum value and the second sum value; and / or If the coordinates corresponding to the maximum value are non-vertex positions of the touch screen, determine a third sum value between at least one of the touch data in the direction of the straight line where the maximum value is located; and a fourth sum value between at least one touch data in the direction of a straight line adjacent to the straight line where the maximum value is located, and determine the edge pressure intensity distribution parameter based on the ratio between the third sum value and the fourth sum value.
9. The method according to claim 1, characterized in that: The adopting the false touch detection strategy corresponding to the touch input to perform false touch detection on the first touch operation to obtain the false touch detection result includes: When the input state of the touch input is a single-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; When the false touch detection result meets the preset false touch judgment condition, not responding to the first touch operation includes: When the area of the finger touch region is smaller than the area of the palm touch region, the first touch operation is not responded to.
10. The method according to claim 9, characterized in that The determining, based on the touch data corresponding to the first touch operation, the area of the finger touch area and the area of the palm touch area includes: The first touch operation acts on the preset area and the non-preset area of the touch screen at the same time; or, When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, the area of the finger touch area and the area of the palm touch area are determined based on the touch data corresponding to the first touch operation.
11. The method according to claim 10, characterized in that The method further comprises: In the case where the first touch operation acts on the preset area and the non-preset area of the touch screen at the same time, the area where the touch data corresponding to the first touch operation in the preset area is located is used as the palm touch area; The area where the touch data corresponding to the first touch operation in the non-preset area is located is used as the finger touch area.
12. The method according to claim 10, characterized in that The method further comprises: When the number of touch areas when the first touch operation acts on the preset area is multiple and there is no touch operation in the non-preset area of the touch screen, 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 of the touch control areas to obtain an elliptical area and a non-elliptical area; The elliptical area is determined as the finger touch area, and the non-elliptical area is determined as the palm touch area.
13. An anti-accidental touch device, characterized in that: include: an adjustment module, configured to adjust a preset area of the touch screen in response to a touch input of an input area displayed on the touch screen; wherein the input area is used to make a text response to the received touch input, and the input area at least partially overlaps with the preset area; a detection module configured to, when a first touch operation is detected in the input area and the first touch operation acts on the adjusted preset area, adopt an error touch detection strategy corresponding to the touch input to perform error touch detection on the first touch operation and obtain an error touch detection result; The determination module is configured to not respond to the first touch operation when the false touch detection result meets a preset false touch judgment condition.
14. An electronic device, characterized in that: include: processor; a memory configured to store processor-executable instructions; The processor is configured to execute the false touch prevention method as claimed in any one of claims 1 to 12 when calling the executable instructions in the memory. 15 . A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for preventing accidental touches according to any one of claims 1 to 12.
Citation Information
Patent Citations
Input control method and device
CN106980409A
Mobile terminal shell, mobile terminal, pressure touch method and storage medium
CN111176387A
Touch signal processing method and device
CN112987958A
False touch prevention method and device, equipment and storage medium
CN115033121A
False touch prevention method and device, electronic equipment and readable storage medium
CN116520973A