Anti-mis-touch method and device, electronic equipment and storage medium

CN119902637BActive Publication Date: 2026-10-09BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311402836.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2026-10-09
Estimated Expiration
2043-10-26

AI Technical Summary

Technical Problem

[0004]本公开提供一种防误触方法、装置、电子设备及存储介质,以克服触摸屏边缘区域易误触问题

Benefits of technology

[0092] The accidental touch prevention method disclosed herein detects grasping operations within a preset area when the electronic device is determined to be in a target posture based on sensing parameters and is being gripped. In the target posture, there is a preset angle between the extension direction of the touchscreen and the direction of gravity of the electronic device; that is, when the electronic device is in a reclining position, grasping operations within the preset area are detected. A target grasping area is determined based on the grasping parameters corresponding to the grasping area of ​​the grasping operation. An area to be adjusted is then determined from the preset area based on the target grasping area, and its area is adjusted. This disclosure assumes that grasping operations in a reclining position are accidental touches; therefore, by determining the area to be adjusted from the preset area based on the grasping parameters and adjusting the area, the edge touch performance of the touchscreen is improved, enhancing the touch experience for users in a reclining position.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119902637B_ABST
    Figure CN119902637B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for preventing mistaken touch, an electronic device and a storage medium. The method comprises: detecting a gripping operation in a preset region of a touch screen when the electronic device is in a target posture; wherein the included angle between the orientation of the touch screen of the electronic device and the gravity direction of the electronic device is within a preset included angle range in the target posture; the gripping operation corresponds to at least two gripping regions; determining a target gripping region based on the gripping parameters of each gripping region when the gripping operation is detected; determining an area to be adjusted from the preset region and adjusting the area of the area to be adjusted; wherein the area to be adjusted at least includes the target gripping region; and not responding to the touch data of the gripping operation when the gripping operation acting on the preset region is a mistaken touch operation. The present disclosure improves the touch experience of the user in a lying posture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communications, and more particularly to a method, apparatus, electronic device, and storage medium for preventing accidental touches. Background Technology

[0002] With the widespread use of touchscreens in electronic devices, user interaction with these devices has become increasingly convenient. To further enhance the user's visual experience and the aesthetics of electronic devices, full-screen designs have become popular. However, as screen ratios increase and bezels become narrower, accidental touches are more likely to occur when using these devices.

[0003] To prevent accidental touches at the edges from affecting usability, a common method is to add a dead zone to the edge area. Any touch signals generated within the dead zone are invalid, thus preventing accidental touches. However, this method renders normal touch operations in the edge area ineffective, impacting the user experience. Summary of the Invention

[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for preventing accidental touches, thereby overcoming the problem of accidental touches in the edge areas of touchscreens.

[0005] According to a first aspect of the present disclosure, a method for preventing accidental touches is provided, comprising:

[0006] When the electronic device is in a target posture, a gripping operation is detected within a preset area of ​​the touchscreen; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset range; the gripping operation corresponds to at least two gripping areas;

[0007] Upon detecting the gripping operation, a target gripping region is determined based on the gripping parameters of each gripping region;

[0008] An area to be adjusted is determined from the preset area, and the area of ​​the area to be adjusted is adjusted; wherein the area to be adjusted includes at least the target gripping area; if the gripping operation performed on the preset area is a mis-touch operation, the touch data of the gripping operation is not responded to.

[0009] In some embodiments, the method for preventing accidental touches further includes:

[0010] Obtain the acceleration sensor parameters and gravity sensor parameters of the electronic device;

[0011] The acceleration sensor parameters and gravity sensor parameters are input into the trained state recognition model to determine the target attitude of the electronic device.

[0012] In some embodiments, detecting a gripping operation within a preset area of ​​the touchscreen includes:

[0013] If a touch operation occurs within the preset area, the touch data corresponding to the touch operation is acquired.

[0014] The gripping operation is determined based on the touch data and / or the touch area where the touch operation is performed;

[0015] The preset areas are multiple and are located on two opposite sides of the touch screen.

[0016] In some embodiments, determining the gripping operation based on the touch area where the touch operation is performed includes:

[0017] If at least one touch area exists in the preset area located on the two sides, the touch operation corresponding to at least one touch area is determined as the gripping operation.

[0018] In some embodiments, determining the gripping operation based on the touch area where the touch operation is performed includes:

[0019] If there are at least two touch areas within the preset area located on any side, determine the distance between each touch area;

[0020] The touch operation corresponding to the touch area where the distance is less than a preset distance threshold is determined as a gripping operation.

[0021] In some embodiments, determining the gripping operation based on the touch data includes:

[0022] Based on the touch data corresponding to the touch operation, a pressure distribution parameter is determined; wherein, the pressure parameter is used to characterize the pressure distribution trend of the touch operation;

[0023] If the pressure distribution parameter is continuously greater than a preset force distribution threshold within a preset time period, the touch operation is determined to be a gripping operation.

[0024] In some embodiments, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;

[0025] The step of determining the pressure distribution parameters based on the touch data corresponding to the touch operation includes:

[0026] If the coordinates corresponding to the maximum value in the touch data are the top corner position of the touch screen, determine the first sum value among the touch data in the first L-shaped region containing the maximum value, and the second sum value among the touch data in the second L-shaped region adjacent to the first L-shaped region, and determine the corner pressure distribution parameter based on the ratio between the first sum value and the second sum value; and / or,

[0027] If the coordinates corresponding to the maximum value are non-vertical corner positions of the touch screen, determine the third sum value between at least one of the touch data in the straight line direction where the maximum value is located; and the fourth sum value between at least one sensor touch data in the straight line direction adjacent to the straight line where the maximum value is located, and determine the edge pressure distribution parameter based on the ratio between the third sum value and the fourth sum value.

[0028] In some embodiments, the method for preventing accidental touches further includes:

[0029] If the touch operation is determined to be a sliding operation between a non-preset area and a preset area of ​​the touch screen, then the touch operation is determined not to be a gripping operation.

[0030] In some embodiments, the gripping parameters include: gripping duration and gripping area;

[0031] The step of determining the target gripping region based on the gripping parameters corresponding to each of the gripping regions includes:

[0032] The gripping area whose gripping duration is greater than a preset duration threshold and whose gripping area is greater than a preset area threshold is determined as the target gripping area.

[0033] In some embodiments, the method for preventing accidental touches further includes:

[0034] According to the falling time of the operating body corresponding to each gripping area, each gripping area is marked to determine the label of each gripping area;

[0035] Determine the lifting moment of the operating body corresponding to the gripping area for each label;

[0036] The gripping duration is determined based on the falling moment and the lifting moment.

[0037] In some embodiments, adjusting the area of ​​the region to be adjusted includes:

[0038] Extend the area to be adjusted toward the non-preset area of ​​the touch screen;

[0039] The method further includes:

[0040] When the preset area extends to a preset position in the touch screen, the adjustment of the area to be adjusted stops.

[0041] In some embodiments, adjusting the area of ​​the region to be adjusted includes:

[0042] Determine the area of ​​the target gripping region, the area of ​​the region to be adjusted, and the preset first adjustment parameter;

[0043] The area of ​​the region to be adjusted is adjusted based on the area of ​​the region to be adjusted, the area of ​​the target gripping area, and the first adjustment parameter.

[0044] In some embodiments, adjusting the area to be adjusted includes:

[0045] During the process of moving from the gripping operation within the preset area to a non-preset area of ​​the touchscreen, the area moved in the non-preset area is obtained;

[0046] Based on the moving area and the preset second adjustment parameter, the area of ​​the region to be adjusted is adjusted.

[0047] According to a second aspect of the present disclosure, an anti-accidental touch device is provided, comprising:

[0048] The detection module is configured to detect a gripping operation within a preset area when the electronic device is in a target posture; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset angle range; the gripping operation corresponds to at least two gripping areas;

[0049] The determination module is configured to determine a target grasping region based on the grasping parameters of each grasping region when the grasping operation is detected.

[0050] The adjustment module is configured to determine an area to be adjusted from the preset area and adjust the area of ​​the area to be adjusted; wherein the area to be adjusted includes at least the target gripping area; and if the gripping operation performed on the preset area is a mis-touch operation, the touch data of the gripping operation is not responded to.

[0051] In some embodiments, the detection module further includes:

[0052] Obtain the acceleration sensor parameters and gravity sensor parameters of the electronic device;

[0053] The acceleration sensor parameters and gravity sensor parameters are input into the trained state recognition model to determine the target attitude of the electronic device.

[0054] In some embodiments, the detection module is further configured to:

[0055] If a touch operation occurs within the preset area, the touch data corresponding to the touch operation is acquired.

[0056] The gripping operation is determined based on the touch data and / or the touch area where the touch operation is performed;

[0057] The preset areas are multiple and are located on two opposite sides of the touch screen.

[0058] In some embodiments, the detection module is further configured to:

[0059] If at least one touch area exists in the preset area located on the two sides, the touch operation corresponding to at least one touch area is determined as the gripping operation.

[0060] In some embodiments, the detection module is further configured to:

[0061] If there are at least two touch areas within the preset area located on any side, determine the distance between each touch area;

[0062] The touch operation corresponding to the touch area where the distance is less than a preset distance threshold is determined as a gripping operation.

[0063] In some embodiments, the detection module is further configured to:

[0064] Based on the touch data corresponding to the touch operation, a pressure distribution parameter is determined; wherein, the pressure parameter is used to characterize the pressure distribution trend of the touch operation;

[0065] If the pressure distribution parameter is continuously greater than a preset force distribution threshold within a preset time period, the touch operation is determined to be a gripping operation.

[0066] In some embodiments, the detection module is further configured to:

[0067] If the coordinates corresponding to the maximum value in the touch data are the top corner position of the touch screen, determine the first sum value among the touch data in the first L-shaped region containing the maximum value, and the second sum value among the touch data in the second L-shaped region adjacent to the first L-shaped region, and determine the corner pressure distribution parameter based on the ratio between the first sum value and the second sum value; and / or,

[0068] If the coordinates corresponding to the maximum value are non-vertical corner positions of the touch screen, determine the third sum value between at least one of the touch data in the straight line direction where the maximum value is located; and the fourth sum value between at least one sensor touch data in the straight line direction adjacent to the straight line where the maximum value is located, and determine the edge pressure distribution parameter based on the ratio between the third sum value and the fourth sum value.

[0069] In some embodiments, the detection module is further configured to:

[0070] If the touch operation is determined to be a sliding operation between a non-preset area and a preset area of ​​the touch screen, then the touch operation is determined not to be a gripping operation.

[0071] In some embodiments, the gripping parameters include: gripping duration and gripping area; the determining module is further configured to:

[0072] The gripping area whose gripping duration is greater than a preset duration threshold and whose gripping area is greater than a preset area threshold is determined as the target gripping area.

[0073] In some embodiments, the determining module is further configured to:

[0074] According to the falling time of the operating body corresponding to each gripping area, each gripping area is marked to determine the label of each gripping area;

[0075] Determine the lifting moment of the operating body corresponding to the gripping area for each label;

[0076] The gripping duration is determined based on the falling moment and the lifting moment.

[0077] In some embodiments, the adjustment module is further configured to:

[0078] Extend the area to be adjusted toward the non-preset area of ​​the touch screen;

[0079] When the preset area extends to a preset position in the touch screen, the adjustment of the area to be adjusted stops.

[0080] In some embodiments, the adjustment module is further configured to:

[0081] Determine the area of ​​the target gripping region, the area of ​​the region to be adjusted, and the preset first adjustment parameter;

[0082] The area of ​​the region to be adjusted is adjusted based on the area of ​​the region to be adjusted, the area of ​​the target gripping area, and the first adjustment parameter.

[0083] In some embodiments, the adjustment module is further configured to:

[0084] During the process of moving from the gripping operation within the preset area to a non-preset area of ​​the touchscreen, the area moved in the non-preset area is obtained;

[0085] Based on the moving area and the preset second adjustment parameter, the area of ​​the region to be adjusted is adjusted.

[0086] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0087] processor;

[0088] Memory configured to store processor-executable instructions;

[0089] The processor is configured to execute the anti-accidental touch method described in the first aspect when calling executable instructions in memory.

[0090] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, which, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform the accidental touch prevention method described in the first aspect.

[0091] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0092] The accidental touch prevention method disclosed herein detects grasping operations within a preset area when the electronic device is determined to be in a target posture based on sensing parameters and is being gripped. In the target posture, there is a preset angle between the extension direction of the touchscreen and the direction of gravity of the electronic device; that is, when the electronic device is in a reclining position, grasping operations within the preset area are detected. A target grasping area is determined based on the grasping parameters corresponding to the grasping area of ​​the grasping operation. An area to be adjusted is then determined from the preset area based on the target grasping area, and its area is adjusted. This disclosure assumes that grasping operations in a reclining position are accidental touches; therefore, by determining the area to be adjusted from the preset area based on the grasping parameters and adjusting the area, the edge touch performance of the touchscreen is improved, enhancing the touch experience for users in a reclining position.

[0093] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0094] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0095] Figure 1 This is a flowchart illustrating an anti-accidental touch method according to an exemplary embodiment.

[0096] Figure 2 This is a schematic diagram of the target gripping area and the area to be adjusted in a touchscreen according to an exemplary embodiment. Figure 1 .

[0097] Figure 3 This is a schematic diagram of the target gripping area and the area to be adjusted in a touchscreen according to an exemplary embodiment. Figure 2 .

[0098] Figure 4 This is a flowchart illustrating an exemplary method for preventing accidental touches. Figure 2 .

[0099] Figure 5 This is a schematic diagram illustrating a gripping area formed in a touchscreen by a gripping operation according to an exemplary embodiment.

[0100] Figure 6 This is a schematic diagram of the distribution of sensor touch data related to the pressure distribution parameter in the anti-accidental touch method according to an exemplary embodiment, on the touchscreen. Figure 1 ;

[0101] Figure 7 This is a schematic diagram of the distribution of sensor touch data related to the pressure distribution parameter in the anti-accidental touch method according to an exemplary embodiment, on the touchscreen. Figure 2 .

[0102] Figure 8 This is a flowchart illustrating an exemplary method for preventing accidental touches. Figure 3 .

[0103] Figure 9 This is a schematic diagram of the structure of an anti-accidental touch device according to an exemplary embodiment.

[0104] Figure 10 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment. Detailed Implementation

[0105] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0106] In this specification, unless otherwise expressly stated, the terms "first" and "second" are used only to describe and distinguish the constituent elements, and should not be construed as indicating order. Unless otherwise expressly stated, the terms "connection," "fixing," etc., should be understood in a broad sense, including but not limited to "connecting" or "fixing" directly, indirectly, or detachably.

[0107] Figure 1 This is a flowchart illustrating an accidental touch prevention method according to an exemplary embodiment. Figure 1 ,like Figure 1 As shown, the method mainly includes the following steps:

[0108] In step 101, when the electronic device is in a target posture, a gripping operation is detected within a preset area of ​​the touchscreen; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset angle range; the gripping operation corresponds to at least two gripping areas.

[0109] In this embodiment, the electronic device is a device with a touchscreen that is prone to accidental touches during use, such as a mobile phone, tablet, smartwatch, smart wearable device, etc. When the electronic device is in a target posture, that is, the angle between the orientation of the touchscreen (i.e., the orientation of the display surface of the touchscreen) and the direction of gravity of the electronic device is within a preset angle range, which is 0-90 degrees, the user's usage state of the electronic device is a lying posture. It can be understood that regardless of whether the user is lying flat or lying on their side, the touchscreen of the electronic device is always facing the user at a certain angle when using the electronic device. Therefore, by judging the angle between the orientation of the touchscreen and the direction of gravity, it can be determined whether the user is in a lying posture.

[0110] When an electronic device is in a target posture and being grasped, the grasping operation within a preset area on the touchscreen is detected. Accidental touches within the preset area are identified as invalid touches, while non-accidental touches are identified as valid touches. For invalid touches, the processor in the electronic device will not respond to the touch data; for valid touches, the processor will respond and process the touch data. Outside the preset area, all touch operations are identified as valid touches. Therefore, by detecting and suppressing touch operations within the preset area of ​​the touchscreen, the accidental touch prevention performance of the touchscreen can be effectively improved.

[0111] Preset areas are typically set in locations on a touchscreen where accidental touches are likely to occur, such as the edges of the touchscreen or the bottom corners. The shape, size, and location of the preset areas can be adjusted according to the size of the electronic device, the user group, and the application scenario.

[0112] In step 102, if a gripping operation is detected, the target gripping region is determined based on the gripping parameters of each gripping region.

[0113] In this embodiment, the gripping operation of the electronic device corresponds to at least two gripping areas. The target gripping area can be determined based on one or more gripping parameters such as the area of ​​the gripping area, the shape of the gripping area, the gripping duration of the gripping area, and the position of the gripping area. The target gripping area can be understood as the area that is most likely to be gripped in a lying position and the area where the gripping operation is most likely to be a mis-touch operation.

[0114] It's important to note that regardless of whether it's a capacitive, resistive, or other type of touchscreen, the display module of any electronic device contains multiple sensors arranged in an array. This array of sensors can be seen as dividing the touchscreen into multiple touch units, enabling the detection of touch operations at various locations on the touchscreen and the output of touch data. A single touch operation by a user's hand involves multiple touch units, and the multiple sensors corresponding to these touch units can detect and output touch data. Based on the coordinates of this touch data on the touchscreen, the touch area of ​​this operation can be determined. In other words, the gripping area and its parameters can be determined based on the touch data from the gripping operation.

[0115] In step 103, an area to be adjusted is determined from the preset area, and the area of ​​the area to be adjusted is adjusted; wherein, the area to be adjusted includes at least the target gripping area; if the gripping operation performed on the preset area is a mis-touch operation, the touch data of the gripping operation is not responded to.

[0116] In this embodiment, since the target gripping area is located within a preset area, the area to be adjusted can be determined from within the preset area based on the determined target gripping area. For example... Figure 2 As shown, the area to be adjusted may be the same as the area of ​​the target grasping area. Figure 3 As shown, the area to be adjusted ( Figure 3 The area of ​​the rectangular region may also be larger than the area of ​​the target grasping region. Figure 3 (Area of ​​the elliptical region).

[0117] Of course, there may be only one target grasping region determined based on the grasping parameters of the grasping region, and there may also be only one region to be adjusted; or there may be multiple target grasping regions determined, and there may also be multiple regions to be adjusted.

[0118] In this embodiment, the non-response operation to the touch data of the grasping operation may be to not report the touch data of the grasping operation, or to not respond to or execute the touch event corresponding to the touch data of the grasping operation.

[0119] In some embodiments, the method for preventing accidental touches further includes: acquiring the acceleration sensor parameters and gravity sensor parameters of the electronic device; inputting the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to determine the target posture of the electronic device.

[0120] In this embodiment, the accelerometer can detect the acceleration and tilt angle (up, down, left, right) during the movement of the electronic device, while the gravity sensor can detect the motion state and tilt angle relative to the horizontal plane. Therefore, based on the sensing parameters of the accelerometer and / or gravity sensor, it can be determined whether the electronic device is in a target posture. Specifically, in a lying posture, the current user state of the electronic device can be determined by inputting the accelerometer and gravity sensor parameters into a trained state recognition model. The state recognition model can be any combination of one or more of the following: convolutional neural network, support vector machine, long short-term memory network, recurrent neural network, etc.

[0121] In some embodiments, such as Figure 4 As shown, step 101, detecting a gripping operation within a preset area of ​​the touchscreen, includes:

[0122] In step 1011, if a touch operation exists within a preset area, the touch data corresponding to the touch operation is acquired.

[0123] In step 1012, a gripping operation is determined based on the touch data and / or the touch area where the touch operation is performed; wherein, the preset area is multiple and located on two opposite sides of the touch screen.

[0124] In this embodiment, the display module of the electronic device contains multiple sensors arranged in an array. These sensors can be seen as dividing the touchscreen into multiple touch units. Each sensor detects the touch operation of its corresponding touch unit, obtaining touch data. Based on the coordinates of the touch data on the touchscreen, the touch area corresponding to the touch operation can be determined.

[0125] Furthermore, since most gripping operations in a lying position occur at the edges of the touchscreen and are mostly accidental touches, touch data can be calculated to determine the pressure applied and its distribution trend. Based on the pressure applied or its distribution trend, it can be determined whether an operation is a gripping action. Alternatively, it can be determined based on the location, shape, distribution trend, and duration of the touch area.

[0126] Since most gripping operations occur at the edges of the touchscreen, preset areas can be set on opposite sides of the touchscreen. For example, a preset area can be set on the left edge of the touchscreen, and a preset area can be set on the right edge. Of course, the shape and area of ​​the left preset area can be the same as or different from those of the right preset area.

[0127] In some embodiments, step 1012 includes: when there is at least one touch area in the preset areas located on both sides, determining the touch operation corresponding to the at least one touch area as a gripping operation.

[0128] In this embodiment, as Figure 5 As shown, a gripping operation will form a touch area in the preset areas (edge ​​areas) on both sides of the touch screen. Therefore, taking the preset areas located on the left side and the right side of the touch screen as examples, if there is at least one touch area in the preset area on the left side and at least one touch area in the preset area on the right side, then the touch operation in the preset area of ​​the touch screen is determined to be a gripping operation.

[0129] In some embodiments, step 1012 includes: determining the distance between each touch area when there are at least two touch areas in a preset area located on any side; and determining the touch operation corresponding to the touch area with a distance less than a preset distance threshold as a gripping operation.

[0130] In this embodiment, as Figure 5 As shown, a gripping operation will create at least two closely spaced touch areas within a preset area (edge ​​area) on either side of the touchscreen. Therefore, taking the preset areas located on the left and right sides of the touchscreen as examples, if there are at least two touch areas in the preset area on the left side, and the distance between the two touch areas is less than a preset distance threshold, the touch operation corresponding to that touch area is a gripping operation; or, if there are at least two touch areas in the preset area on the right side, and the distance between the two touch areas is less than a preset distance threshold, the touch operation corresponding to that touch area is a gripping operation.

[0131] In some embodiments, step 1012 includes: determining a pressure distribution parameter based on touch data corresponding to the touch operation; wherein the pressure distribution parameter is used to characterize the pressure distribution trend of the touch operation; and determining that the touch operation is a gripping operation when the pressure distribution parameter is continuously greater than a preset force distribution threshold within a preset time period.

[0132] In this embodiment, the pressure applied to the touch area during a gripping operation in a lying position is not uniform, and most of the pressure is concentrated at the edges of the touchscreen. Therefore, in a gripping operation, the center of pressure is biased towards the edges of the touchscreen and lasts for a longer period, meaning the pressure is consistently higher at the edges and lower in the non-edge areas. Conversely, in a non-gripping operation, the center of pressure is generally in the non-edge areas and lasts for a shorter period, meaning the pressure is higher in the non-edge areas and lower at the edges for a short time. Therefore, whether a touch operation is a gripping operation can be determined by whether the pressure distribution parameters consistently exceed a preset force distribution threshold within a preset duration.

[0133] Specifically, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;

[0134] If the coordinates corresponding to the maximum value in the sensor touch data are the top corner position of the touch screen, determine the first sum value among the sensor touch data in the first L-shaped area containing the maximum value, and the second sum value among the sensor touch data in the second L-shaped area adjacent to the first L-shaped area, and determine the corner pressure distribution parameter based on the ratio between the first sum value and the second sum value; and / or;

[0135] If the coordinates corresponding to the maximum value are non-vertical corner positions of the touchscreen, determine the third sum value between at least one sensor touch data in the direction of the line where the maximum value is located; and the fourth sum value between at least one sensor touch data in the direction of the line adjacent to the line where the maximum value is located, and determine the edge pressure distribution parameter based on the ratio between the third sum value and the fourth sum value.

[0136] In this embodiment, the calculation of the pressure distribution parameter is based on the position of the coordinates corresponding to the maximum value in the sensor touch data on the touchscreen, thus determining the specific calculation method for the pressure distribution parameter. It can be understood that electronic devices typically have multiple sensors arranged in an array within their display modules. These arrayed sensors can be seen as dividing the touchscreen into multiple touch units. Each sensor detects the touch operation of its corresponding touch unit, obtaining touch data. Therefore, each touch data point has corresponding coordinates on the touchscreen. The maximum value in the touch data represents the position of maximum pressure, i.e., the center of gravity of the touch operation.

[0137] by Figure 6 For example, when the coordinates of the maximum value are at the top corner of the touchscreen, it means that the center of gravity of the touch operation is at the top corner. At this time, the first L-shaped area containing the maximum value (1148) is calculated (e.g.: Figure 6The sum of touch data for the dot matrix pattern area (142+514+962+1148+905+148) is used to obtain the first sum value. Then, the second L-shaped area adjacent to the first L-shaped area (e.g., ...) is calculated. Figure 7 The sum of touch data within the square grid pattern area (64+247+50) is used to obtain the second sum. The ratio of the first sum to the second sum is then used to determine the corner pressure distribution parameters.

[0138] by Figure 7 For example, when the coordinates of the maximum value are at a non-vertical corner position of the touchscreen, if the touch data is distributed in a column direction, then the sum of the touch data in the straight line direction of the column containing the maximum value is calculated (e.g.: Figure 7 (Midpoint pattern area), obtain the third sum (422+1139+1111+292), then calculate the sum of touch data in the line direction adjacent to the column line direction where the maximum value is located (e.g.: Figure 7 The fourth sum (335+255) is obtained from the square grid pattern area. Of course, if the touch data is distributed in a row direction, the calculation is based on the row straight line direction.

[0139] In some embodiments, during the detection of a gripping operation within a preset area of ​​the touchscreen, if it is determined that the touch operation is a sliding operation between a non-preset area and a preset area of ​​the touchscreen, the touch operation is determined not to be a gripping operation.

[0140] In this embodiment, when it is determined that the touch operation is a sliding operation between a non-preset area and a preset area of ​​the touch screen, that is, when it is detected that the touch operation moves rapidly within a preset time, or the area with touch data at the edge decreases rapidly, or the area with touch data at the edge increases rapidly, etc., it can be determined that the sliding operation may be a full-screen gesture operation rather than a gripping operation.

[0141] In some embodiments, the gripping parameters include: gripping duration and gripping area; step 102 includes: determining the gripping area with a gripping duration greater than a preset duration threshold and a gripping area greater than a preset area threshold as the target gripping area.

[0142] In this embodiment, the gripping duration and gripping area of ​​the gripping region are obtained. The gripping area greater than a preset area threshold and the gripping duration greater than a preset duration threshold are determined as the target gripping region. It is understood that gripping regions with long gripping durations and large gripping areas are most easily gripped by users in a lying position, and the gripping operations corresponding to these regions are most likely to be accidental touches.

[0143] In some embodiments, the gripping duration can be determined by the following method: marking each gripping area according to the falling time of the operating body corresponding to each gripping area, and determining the label of each gripping area; determining the lifting time of the operating body corresponding to each labeling gripping area; and determining the gripping duration based on the falling time and the lifting time.

[0144] In this embodiment, the grip duration is determined by marking each gripping area and determining the hand's drop-down and lift-up times for each marked area. The grip duration is then determined based on these drop-down and lift-up times. The gripping areas can be marked based on the hand's drop-down time, the detection time of the gripping area, or the maximum value of the touch data corresponding to the gripping area.

[0145] Taking the determination of the label at the moment the hand is put down as an example, for instance: if three touch areas are formed on the touch screen in sequence at times T1, T2, and T3, then the touch area at time T1 is labeled as 1 (ID=1), the touch area at time T2 is labeled as 2 (ID=2), and the touch area at time T3 is labeled as 3 (ID=3).

[0146] Taking the determination of the label at the detection time of the gripping area as an example, for instance: at time T1, two touch areas are formed on the touch screen at the same time, and the detection direction of the gripping area of ​​the touch screen is set from left to right and from top to bottom, then the touch area detected first is labeled as 1 (ID=1), and the touch area detected later is labeled as 2 (ID=2).

[0147] Taking the size of the maximum value of touch data as an example to determine the label, for instance: at a certain moment, three touch areas are formed on the touch screen. The maximum value of touch data in each of these three touch areas is obtained. The three maximum values ​​of touch data are compared and the corresponding touch areas are labeled as 1, 2, and 3 in descending order.

[0148] In some embodiments, adjusting the area of ​​the region to be adjusted includes extending the region to be adjusted toward a non-preset area of ​​the touchscreen. Furthermore, when the preset area extends to a preset position on the touchscreen, the adjustment of the area to be adjusted is stopped.

[0149] In this embodiment, once a target gripping area that meets the gripping duration and gripping area requirements is determined, the area of ​​the region to be adjusted corresponding to the target gripping area is increased, that is, the region to be adjusted can be extended towards a non-preset area. In this way, in the area extended from the non-preset area, every subsequent touch operation in that area will be detected, and the detected accidental touch operations will be suppressed (i.e., no response to touch operations), so as to achieve the prevention of accidental touches for deep gripping in a lying position.

[0150] Of course, extending the area to be adjusted toward a non-preset area means increasing a portion of the preset area (no response to accidental touches, response to non-accidental touches) toward a non-preset area (response to all operations). This increase is not unlimited; the adjustment will stop when the area reaches a preset position on the touchscreen.

[0151] In one embodiment, adjusting the area of ​​the region to be adjusted includes: determining the area of ​​the target grasping region, the area of ​​the region to be adjusted, and a preset first adjustment parameter. Based on the area of ​​the region to be adjusted, the area of ​​the target grasping region, and the first adjustment parameter, the area of ​​the region to be adjusted is then adjusted.

[0152] In this embodiment, the area of ​​the region to be adjusted after adjustment (S1) is the sum of the area of ​​the region to be adjusted before adjustment (S0) and the area of ​​the target grasping area (S). touch The product of the first adjustment parameter (K1) and the first adjustment parameter (K2) is summed. The calculation formula is as follows:

[0153] S1 = S0 + S touch ×K1

[0154] The first adjustment parameter K1 can be adjusted automatically based on factors such as the size of the electronic device's touchscreen, the electronic device's touch performance, and the target audience of the electronic device.

[0155] In one embodiment, adjusting the area of ​​the region to be adjusted further includes: during the process of moving from a gripping operation within a preset area to a non-preset area of ​​the touchscreen, obtaining the moving area in the non-preset area; and adjusting the area of ​​the region to be adjusted based on the moving area and a preset second adjustment parameter.

[0156] In this embodiment, when the area to be adjusted is determined based on the target gripping area, and a gripping operation within the preset area is detected moving towards a non-preset area of ​​the touchscreen, the adjustment is based on the moving area (S). move The area to be adjusted is determined by the second adjustment parameter (K2). Specifically, the area (S1) of the area to be adjusted after adjustment is the sum of the area (S0) of the area to be adjusted before adjustment and the area moved (S). move The sum of the product of the first parameter (K) and the second adjustment parameter (K2) is calculated using the following formula:

[0157] S1 = S0 + S move ×K2

[0158] The second adjustment parameter (K2) can be different from or the same as the first adjustment parameter. Furthermore, the above adjustment operation can be a new adjustment operation or a secondary adjustment to the result of a previous adjustment.

[0159] Based on the above embodiments, the method for preventing accidental touches disclosed herein selects a target gripping area (i.e., the area most likely to be touched and the area most likely to cause accidental touches when the user is lying down) based on the gripping parameters of the gripping area, determines an area to be adjusted from a preset area based on the target gripping area, and increases the area to be adjusted to a non-preset area, thereby achieving the prevention of accidental touches when deeply gripping in a lying down position.

[0160] Figure 8 This is a schematic diagram illustrating the entire process of preventing accidental touches on a touchscreen in a lying position, according to an exemplary embodiment. Figure 8 As shown, the steps include:

[0161] In step 801, the lying posture is identified based on acceleration sensor data and gravity sensor data (A+G data);

[0162] In step 802, the grasping operation is recognized based on the left and right symmetrical edge touch data;

[0163] If a grasping operation is detected, proceed to step 804; if a grasping operation is not detected, proceed to step 803.

[0164] In step 803, it is determined whether the corner ratio and edge ratio of the pressure distribution parameters are continuously greater than the preset force distribution threshold.

[0165] If a grasping operation is detected, proceed to step 804; otherwise, the process ends.

[0166] In step 804, the gripping area of ​​the gripping operation is labeled;

[0167] In step 805, the gripping time and area of ​​the gripping region are calculated.

[0168] In step 806, the grasping operation is quickly moved for judgment;

[0169] If the grasping operation involves rapid movement, then the process ends; otherwise, proceed to step 807.

[0170] In step 807, a target gripping area is determined based on the gripping time and the area of ​​the gripping area, an area to be adjusted is determined based on the target gripping area, and the size of the area to be adjusted is adjusted.

[0171] In step 808, the grasping operation is subject to a further touch action towards a non-preset area;

[0172] If there is a touch action to a non-preset area, proceed to step 809; otherwise, return to step 806.

[0173] In step 809, the size of the preset area is adjusted a second time.

[0174] Figure 9 This is an example of an anti-accidental touch device, such as... Figure 9 As shown, the device includes:

[0175] The detection module 901 is configured to detect a gripping operation within a preset area when the electronic device is in a target posture; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset angle range; the gripping operation corresponds to at least two gripping areas;

[0176] The determination module 902 is configured to determine a target grasping region based on the grasping parameters of each grasping region when the grasping operation is detected.

[0177] The adjustment module 903 is configured to determine an area to be adjusted from the preset area and adjust the area of ​​the area to be adjusted; wherein the area to be adjusted includes at least the target gripping area; and if the gripping operation performed on the preset area is a mis-touch operation, the touch data of the gripping operation is not responded to.

[0178] In some embodiments, the detection module 901 further includes: acquiring acceleration sensor parameters and gravity sensor parameters of the electronic device; inputting the acceleration sensor parameters and gravity sensor parameters into a trained state recognition model to determine the target posture of the electronic device.

[0179] In some embodiments, the detection module 901 is further configured to: acquire touch data corresponding to the touch operation when a touch operation exists in the preset area; determine the gripping operation based on the touch data and / or the touch area acted upon by the touch operation; wherein the preset area is multiple and is located on two opposite sides of the touch screen respectively.

[0180] In some embodiments, the detection module 901 is further configured to: when at least one of the touch areas exists in the preset areas located on the two sides, determine the touch operation corresponding to at least one of the touch areas as the gripping operation.

[0181] In some embodiments, the detection module 901 is further configured to: determine the distance between each of the touch areas when there are at least two touch areas in the preset area located on any side; and determine the touch operation corresponding to the touch area whose distance is less than a preset distance threshold as a gripping operation.

[0182] In some embodiments, the detection module 901 is further configured to: determine a pressure distribution parameter based on the touch data corresponding to the touch operation; wherein the pressure distribution parameter is used to characterize the pressure distribution trend of the touch operation; and determine that the touch operation is a gripping operation when the pressure distribution parameter is continuously greater than a preset force distribution threshold within a preset time period.

[0183] In some embodiments, the detection module 901 is further configured to: 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 among the touch data in a first L-shaped region containing the maximum value, and a second sum value among the touch data in a second L-shaped region adjacent to the first L-shaped region, and determine the corner pressure distribution parameter based on the ratio between the first sum value and the second sum value; and / or, if the coordinates corresponding to the maximum value are non-top corner positions of the touch screen, determine a third sum value among at least one touch data in the straight line direction where the maximum value is located; and a fourth sum value among at least one sensor touch data in the straight line direction adjacent to the straight line where the maximum value is located, and determine the edge pressure distribution parameter based on the ratio between the third sum value and the fourth sum value.

[0184] In some embodiments, the detection module 901 is further configured to: determine that the touch operation is not the gripping operation if it is determined that the touch operation is a sliding operation between a non-preset area and a preset area of ​​the touch screen.

[0185] In some embodiments, the gripping parameters include: gripping duration and gripping area; the determining module is further configured to:

[0186] The gripping area whose gripping duration is greater than a preset duration threshold and whose gripping area is greater than a preset area threshold is determined as the target gripping area.

[0187] In some embodiments, the determining module 902 is further configured to: mark each of the gripping areas according to the falling time of the operating body corresponding to each gripping area, and determine the label of each gripping area; determine the lifting time of the operating body corresponding to each labeling gripping area; and determine the gripping duration based on the falling time and the lifting time.

[0188] In some embodiments, the adjustment module 903 is further configured to: extend the area to be adjusted toward a non-preset area of ​​the touch screen; and stop adjusting the area to be adjusted when the preset area extends to a preset position in the touch screen.

[0189] In some embodiments, the adjustment module 903 is further configured to: determine the area of ​​the target gripping area, the area of ​​the area to be adjusted, and a preset first adjustment parameter; and adjust the area of ​​the area to be adjusted based on the area of ​​the area to be adjusted, the area of ​​the target gripping area, and the first adjustment parameter.

[0190] In some embodiments, the adjustment module 903 is further configured to: during the process of a gripping operation within the preset area moving to a non-preset area of ​​the touchscreen, obtain the moving area in the non-preset area; and adjust the area of ​​the area to be adjusted based on the moving area and a preset second adjustment parameter.

[0191] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0192] like Figure 10 As shown, this disclosure also provides an electronic device 100, including:

[0193] Memory 1004 is used to store processor-executable instructions;

[0194] Processor 1020 is connected to memory 1004;

[0195] The processor 1020 is configured to execute the anti-accidental touch method provided by any of the aforementioned technical solutions.

[0196] A block diagram of an electronic device 100 is shown according to an exemplary embodiment. For example, the electronic device 100 may be a smartphone, tablet computer, laptop computer, and portable learning machine, etc.

[0197] refer to Figure 10 The electronic device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power supply 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.

[0198] Processing component 1002 typically controls the overall operation of electronic device 100, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1002 may include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1002 may include one or more modules to facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002.

[0199] Memory 1004 is configured to store various types of data to support the operation of electronic device 100. Examples of such data include instructions for any application or method operating on electronic device 100, contact data, phonebook data, messages, pictures, videos, etc. Memory 1004 can 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 storage, flash memory, magnetic disk, or optical disk.

[0200] Power supply component 1006 provides power to various components of electronic device 100. 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 to electronic device 100.

[0201] 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1008 includes a front-facing camera and / or a rear-facing camera. When the electronic device 100 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0202] Audio component 1010 is configured to output and / or input audio signals. For example, audio component 1010 includes a microphone (MIC) configured to receive external audio signals when electronic device 100 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1018. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.

[0203] 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 buttons, volume buttons, power buttons, and lock buttons.

[0204] Sensor assembly 1014 includes one or more sensors for providing state assessments of various aspects of electronic device 100. For example, sensor assembly 1014 may detect the on / off state of electronic device 100, the relative positioning of components such as the display and keypad of electronic device 100, changes in position of electronic device 100 or a component of electronic device 100, the presence or absence of user contact with electronic device 100, orientation or acceleration / deceleration of electronic device 100, and temperature changes of electronic device 100. Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. 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, sensor assembly 1014 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0205] Communication component 1018 is configured to facilitate wired or wireless communication between electronic device 100 and other devices. Electronic device 100 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1018 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1018 also includes a near-field communication (NFC) module to facilitate short-range communication. 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.

[0206] 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 methods described above.

[0207] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, which can be executed by a processor 1020 of an electronic device 100 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0208] This application provides a non-transitory computer-readable storage medium that, when the instructions in the storage medium are executed by a computer's processor, enables the computer to perform the anti-accidental touch method described in one or more of the aforementioned technical solutions.

[0209] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0210] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for preventing accidental touches, characterized in that, include: When the electronic device is in a target posture, a gripping operation is detected within a preset area of ​​the touchscreen; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset angle range; the gripping operation corresponds to at least two gripping areas; the target posture is a lying position. Upon detecting the gripping operation, a target gripping region is determined based on the gripping parameters of each gripping region; an area to be adjusted is determined from the preset area, and the area of ​​the area to be adjusted is adjusted. Among them, accidental touch operations within the preset area are determined to be invalid touch operations; the area to be adjusted includes at least the target gripping area; if the gripping operation applied to the adjusted area is an accidental touch operation, the touch data of the gripping operation will not be responded to. The detection of gripping operations within a preset area of ​​the touchscreen includes: When a touch operation occurs within a preset area of ​​the touchscreen, touch data corresponding to the touch operation is acquired; wherein the touch data corresponds to the coordinates of the touchscreen. Based on the touch data corresponding to the touch operation and the coordinates corresponding to the maximum value in the touch data at the position of the touch screen, a pressure distribution parameter is determined; wherein, the pressure distribution parameter is used to characterize the pressure distribution trend of the touch operation; the pressure distribution parameter includes: a corner pressure distribution parameter when the coordinates corresponding to the maximum value in the touch data are at the top corner of the touch screen and / or an edge pressure distribution parameter when the coordinates corresponding to the maximum value in the touch data are at a non-top corner of the touch screen; The gripping operation is determined based on the pressure distribution parameters.

2. The method according to claim 1, characterized in that, The method further includes: Obtain the acceleration sensor parameters and gravity sensor parameters of the electronic device; The acceleration sensor parameters and gravity sensor parameters are input into the trained state recognition model to determine the target attitude of the electronic device.

3. The method according to claim 1, characterized in that, The detection of gripping operations within a preset area of ​​the touchscreen also includes: If a touch operation exists within the preset area, the gripping operation is determined based on the touch area where the touch operation is performed; The preset areas are multiple and are located on two opposite sides of the touch screen.

4. The method according to claim 3, characterized in that, Determining the gripping operation based on the touch area where the touch operation is performed includes: If at least one touch area exists in the preset area located on the two sides, the touch operation corresponding to at least one touch area is determined as the gripping operation.

5. The method according to claim 3, characterized in that, Determining the gripping operation based on the touch area where the touch operation is performed includes: If there are at least two touch areas within the preset area located on any side, determine the distance between each touch area; The touch operation corresponding to the touch area where the distance is less than a preset distance threshold is determined as a gripping operation.

6. The method according to claim 1, characterized in that, Determining the gripping operation based on the pressure distribution parameters includes: If the pressure distribution parameter is continuously greater than a preset force distribution threshold within a preset time period, the touch operation is determined to be a gripping operation.

7. The method according to claim 1, characterized in that, The step of determining the pressure distribution parameters based on the coordinates of the maximum value in the touch data corresponding to the touch operation at the location of the touchscreen includes: If the coordinates corresponding to the maximum value in the touch data are the top corner position of the touch screen, determine the first sum value among the touch data in the first L-shaped region containing the maximum value, and the second sum value among the touch data in the second L-shaped region adjacent to the first L-shaped region, and determine the corner pressure distribution parameter based on the ratio between the first sum value and the second sum value; and / or, If the coordinates corresponding to the maximum value are non-vertical corner positions of the touch screen, determine the third sum value between at least one of the touch data in the straight line direction where the maximum value is located; and the fourth sum value between at least one sensor touch data in the straight line direction adjacent to the straight line where the maximum value is located, and determine the edge pressure distribution parameter based on the ratio between the third sum value and the fourth sum value.

8. The method according to claim 1, characterized in that, The method further includes: If the touch operation is determined to be a sliding operation between a non-preset area and a preset area of ​​the touch screen, then the touch operation is determined not to be a gripping operation.

9. The method according to claim 1, characterized in that, The gripping parameters include: gripping duration and gripping area; The step of determining the target gripping region based on the gripping parameters corresponding to each of the gripping regions includes: The gripping area whose gripping duration is greater than a preset duration threshold and whose gripping area is greater than a preset area threshold is determined as the target gripping area.

10. The method according to claim 9, characterized in that, The method further includes: According to the falling time of the operating body corresponding to each gripping area, each gripping area is marked to determine the label of each gripping area; Determine the lifting moment of the operating body corresponding to the gripping area for each label; The gripping duration is determined based on the falling moment and the lifting moment.

11. The method according to claim 1, characterized in that, The adjustment of the area to be adjusted includes: Extend the area to be adjusted toward the non-preset area of ​​the touch screen; The method further includes: When the preset area extends to a preset position in the touch screen, the adjustment of the area to be adjusted stops.

12. The method according to claim 1, characterized in that, The adjustment of the area to be adjusted includes: Determine the area of ​​the target gripping region, the area of ​​the region to be adjusted, and the preset first adjustment parameter; The area of ​​the region to be adjusted is adjusted based on the area of ​​the region to be adjusted, the area of ​​the target gripping area, and the first adjustment parameter.

13. The method according to any one of claims 1-12, characterized in that, The adjustment of the area to be adjusted includes: During the process of moving from the gripping operation within the preset area to a non-preset area of ​​the touchscreen, the area moved in the non-preset area is obtained; Based on the moving area and the preset second adjustment parameter, the area of ​​the region to be adjusted is adjusted.

14. A device for preventing accidental touch, characterized in that, include: The detection module is configured to acquire touch data corresponding to the touch operation when the electronic device is in a target posture and there is a touch operation in a preset area; Based on the touch data corresponding to the touch operation and the coordinates of the maximum value in the touch data at the position on the touchscreen, pressure distribution parameters are determined; wherein, the touch data corresponds to the coordinates of the touchscreen; the pressure distribution parameters are used to characterize the pressure distribution trend of the touch operation; the pressure distribution parameters include: corner pressure distribution parameters when the coordinates of the maximum value in the touch data are at the top corner of the touchscreen and / or edge pressure distribution parameters when the coordinates of the maximum value in the touch data are at a non-top corner of the touchscreen; based on the pressure distribution parameters, a gripping operation is determined; wherein, in the target posture, the angle between the orientation of the touchscreen of the electronic device and the direction of gravity of the electronic device is within a preset angle range; the gripping operation corresponds to at least two gripping areas; the target posture is a lying posture; The determination module is configured to determine the target grasping area based on the grasping parameters corresponding to each grasping area when the grasping operation is detected. The adjustment module is configured to determine an area to be adjusted from the preset area and adjust the area to be adjusted; wherein, a mis-touch operation within the preset area is determined to be an invalid touch; the area to be adjusted includes at least the target gripping area; if the gripping operation applied to the adjusted area is a mis-touch operation, the touch data of the gripping operation is not responded to.

15. An electronic device, characterized in that, include: processor; Memory configured to store processor-executable instructions; The processor is configured to execute the anti-accidental touch method as described in any one of claims 1 to 13 when invoking executable instructions in memory.

16. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the anti-accidental touch method according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Control method and electronic equipment

    CN111665979A

  • Mobile terminal mistaken touch prevention method and device, computer equipment and storage medium

    CN113552995A

  • False touch prevention method and device, equipment and storage medium

    CN115033121A

  • False touch prevention method and device, electronic equipment and storage medium

    CN115145420A

  • Edge mistaken touch prevention method and device, electronic equipment and computer readable storage medium

    CN116069178A