Mistaken touch prevention method and device, electronic equipment, storage medium and program product
By detecting the orientation and ellipse parameters of touch operations and adjusting the suppression area of the touchscreen, the problem of accidental touches at the edges in full-screen designs is solved, achieving a more accurate anti-accidental touch effect.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2026-03-10
AI Technical Summary
In the existing technology, the full-screen design of electronic devices leads to frequent accidental touches at the edges, and commonly used methods to prevent accidental touches render normal touch operations in the edge areas ineffective.
By detecting the orientation and ellipse parameters of touch operations, the suppression area of the touchscreen is adjusted so that it does not respond to touch data only in case of accidental touch. By combining sensor parameters and ellipse fitting, the first touch area is accurately determined and the suppression area is flexibly adjusted.
It improves the accuracy of preventing accidental touches, reduces the impact of accidental touches, and enhances the user experience.
Smart Images

Figure CN121635702A_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communications, and more particularly to a method and apparatus for preventing accidental touches, electronic devices, storage media, and software products. 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. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this disclosure provides a method and device for preventing accidental touches, an electronic device, a storage medium, and a program product, which can improve the accuracy of preventing accidental touches in electronic devices.
[0005] According to a first aspect of the present disclosure, a method for preventing accidental touches is provided, comprising:
[0006] In response to an electronic device entering a preset application interface, a first touch operation applied to the touchscreen is detected; wherein the first touch operation corresponds to at least one touch area;
[0007] Based on the orientation of the object being operated on in the first touch area within the at least one touch area, the suppression area in the touchscreen corresponding to the first touch area is adjusted; wherein, the first touch area is located outside the suppression area;
[0008] If the second touch operation performed within the adjusted suppression area is a mis-touch operation, the touch data for the second touch operation will not be responded to.
[0009] In some embodiments, the method further includes:
[0010] Ellipse fitting is performed on each of the touch areas to determine the elliptical region corresponding to each touch area and the elliptical parameters corresponding to the elliptical region.
[0011] The touch area corresponding to the elliptical region whose elliptical parameters are within the preset parameter range is determined as the first touch area;
[0012] The ellipse parameters include: the eccentricity of the elliptical region and / or the length of the major axis of the elliptical region.
[0013] In some embodiments, determining the touch area corresponding to the elliptical region whose elliptical parameters are within a preset parameter range as the first touch area includes:
[0014] The touch area corresponding to the elliptical region whose eccentricity is less than or equal to a first threshold and / or whose length of the major axis is less than or equal to a second threshold is determined as the first touch area.
[0015] In some embodiments, the orientation includes: direction and / or location; the method further includes:
[0016] Based on the angle between the line containing the major axis of the first elliptical region corresponding to the first touch area and the line containing the border of the touchscreen, the direction of the first touch area on the touchscreen is determined; and / or,
[0017] The position of the object being operated on the touchscreen is determined based on the vertical distance between the center point of the first touch area and the two vertically adjacent borders of the touchscreen.
[0018] In some embodiments, adjusting the suppression area in the touchscreen corresponding to the first touch area based on the orientation of the object being operated on in the at least one touch area includes:
[0019] When the included angle is within a preset angle range, the suppression zone is adjusted based on the position;
[0020] The distance between the location and the center point of the touchscreen is negatively correlated with the area of the adjusted suppression area.
[0021] In some embodiments, the method further includes:
[0022] If the orientation of the object being operated on does not meet the preset adjustment conditions or the first touch area does not exist, the suppression area remains unchanged;
[0023] In response to maintaining the suppression area unchanged, if a third touch operation is detected acting on the suppression area, it is determined whether the third touch operation is a mis-touch operation;
[0024] If the third touch operation is detected as a mis-touch operation, the touch data of the third touch operation will not be responded to.
[0025] In some embodiments, the method further includes:
[0026] Based on the touch data corresponding to the second touch operation, a pressure distribution parameter is determined; wherein, the pressure distribution parameter is used to characterize the pressure distribution trend of the second touch operation;
[0027] If the pressure distribution parameter is greater than the preset pressure distribution threshold, the second touch operation is determined to be a mis-touch operation.
[0028] In some embodiments, determining whether the second touch operation is a mis-touch operation includes:
[0029] If the pressure distribution parameter is less than or equal to the preset pressure distribution threshold, determine whether there is a fourth touch operation that acts outside the suppression area;
[0030] In response to the presence of the fourth touch operation, determine the interval between detecting the second touch operation and detecting the fourth touch operation;
[0031] If the interval duration is less than a preset duration, the second touch operation is determined to be a mis-touch operation.
[0032] In some embodiments, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;
[0033] The step of determining the pressure distribution parameters based on the touch data corresponding to the second touch operation includes:
[0034] 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 first sum value among the touch data in the first 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 first sum value; and / or,
[0035] 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 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.
[0036] In some embodiments, the method further includes:
[0037] Detect whether a fifth touch operation is applied to the adjusted suppression area;
[0038] If the fifth touch operation is detected, do not respond to the fifth touch operation.
[0039] In some embodiments, the method further includes:
[0040] Based on the acceleration sensor parameters and gravity sensor parameters of the electronic device, determine whether the electronic device has entered landscape mode;
[0041] The response to the electronic device entering a preset application interface, detecting a first touch operation on the touchscreen, includes:
[0042] In response to the electronic device displaying the preset application interface in the landscape mode, the first touch operation applied to each screen area of the touch screen is detected;
[0043] The touchscreen includes at least two screen areas, and each screen area includes a corresponding suppression area.
[0044] In some embodiments, at least two screen regions include: a first screen region and a second screen region, wherein the first screen region and the second screen region are divided based on the vertical line of the long border of the electronic device;
[0045] The adjustment of the suppression area in the touchscreen corresponding to the first touch area based on the orientation of the object being operated on in the at least one touch area includes:
[0046] In response to the first touch area being located in the first screen area, the suppression area within the first screen area is adjusted; and / or,
[0047] In response to the first touch area being located in the second screen area, the suppression area within the second screen area is adjusted.
[0048] According to a second aspect of the present disclosure, an anti-accidental touch device is provided, comprising:
[0049] The first detection module is configured to detect a first touch operation applied to the touch screen in response to the electronic device entering a preset application interface; wherein the first touch operation corresponds to at least one touch area;
[0050] A first determining module is configured to adjust a suppression area in the touchscreen corresponding to the first touch area based on the orientation of the object being operated on in the at least one touch area; wherein the first touch area is located outside the suppression area;
[0051] The adjustment module is configured to not respond to the touch data of the second touch operation when the second touch operation applied to the adjusted suppression area is a mis-touch operation.
[0052] In some embodiments, the anti-accidental touch device further includes:
[0053] The fitting module is configured to perform ellipse fitting on each of the touch areas to determine the elliptical region corresponding to each of the touch areas and the elliptical parameters corresponding to the elliptical region.
[0054] The second determining module is configured to determine the touch area corresponding to the elliptical region whose elliptical parameters are within the preset parameter range as the first touch area;
[0055] The ellipse parameters include: the eccentricity of the elliptical region and / or the length of the major axis of the elliptical region.
[0056] In some embodiments, the second determining module is further configured to:
[0057] The touch area corresponding to the elliptical region whose eccentricity is less than or equal to a first threshold and / or whose length of the major axis is less than or equal to a second threshold is determined as the first touch area.
[0058] In some embodiments, the orientation includes: direction and / or location; the anti-accidental touch device further includes:
[0059] The third determining module is configured to determine the direction pointed to by the operating object on the touchscreen based on the angle between the line containing the major axis of the first elliptical region corresponding to the first touch area and the line containing the border of the touchscreen; and / or,
[0060] The position of the object being operated on the touchscreen is determined based on the vertical distance between the center point of the first touch area and the two vertically adjacent borders of the touchscreen.
[0061] In some embodiments, the adjustment module is further configured to:
[0062] When the included angle is within a preset angle range, the suppression zone is adjusted based on the position;
[0063] The distance between the location and the center point of the touchscreen is negatively correlated with the area of the adjusted suppression area.
[0064] In some embodiments, the anti-accidental touch device further includes:
[0065] The maintenance module is configured to maintain the inhibition area unchanged when the orientation pointed to by the operation object does not meet the preset adjustment conditions or the first touch area does not exist;
[0066] The determination module is configured to, in response to maintaining the suppression region unchanged, determine whether the third touch operation is a mis-touch operation if a third touch operation is detected acting on the suppression region:
[0067] The first execution module is configured to not respond to the touch data of the third touch operation if the third touch operation is detected as a mis-touch operation.
[0068] In some embodiments, the anti-accidental touch device further includes:
[0069] The parameter determination module is configured to determine the pressure distribution parameters based on the touch data corresponding to the second touch operation; wherein the pressure distribution parameters are used to characterize the pressure distribution trend of the second touch operation;
[0070] The judgment submodule is configured to determine that the second touch operation is a mis-touch operation when the pressure distribution parameter is greater than a preset force distribution threshold.
[0071] In some embodiments, the determination submodule is further configured to:
[0072] If the pressure distribution parameter is less than or equal to the preset pressure distribution threshold, determine whether there is a fourth touch operation that acts outside the suppression area;
[0073] In response to the presence of the fourth touch operation, determine the interval between detecting the second touch operation and detecting the fourth touch operation;
[0074] If the interval duration is less than a preset duration, the second touch operation is determined to be a mis-touch operation.
[0075] In some embodiments, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;
[0076] The parameter determination module is further configured to:
[0077] 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 first sum value among the touch data in the first 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 first sum value; and / or,
[0078] 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 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.
[0079] In some embodiments, the anti-accidental touch device further includes:
[0080] The second detection module is configured to detect whether a fifth touch operation is applied to the adjusted suppression area;
[0081] The second execution module is configured to not respond to the touch data of the fifth touch operation if the fourth touch operation is detected.
[0082] In some embodiments, the anti-accidental touch device further includes:
[0083] The sensor module is configured to determine whether the electronic device has entered landscape mode based on the acceleration sensor parameters and gravity sensor parameters of the electronic device.
[0084] The first detection module is also configured to:
[0085] In response to the electronic device displaying the preset application interface in the landscape mode, the touch operation applied to each screen area of the touch screen is detected;
[0086] The touchscreen includes at least two screen areas, and each screen area includes a corresponding suppression area.
[0087] In some embodiments, at least two screen regions include: a first screen region and a second screen region, wherein the first screen region and the second screen region are divided based on the vertical line of the long border of the electronic device;
[0088] The adjustment module is also configured to:
[0089] In response to the first touch area being located in the first screen area, the suppression area within the first screen area is adjusted; and / or,
[0090] In response to the first touch area being located in the second screen area, the suppression area within the second screen area is adjusted.
[0091] According to a third aspect of the present disclosure, an electronic device is provided, comprising:
[0092] processor;
[0093] Memory used to store processor-executable instructions;
[0094] The processor is configured to execute any one of the anti-accidental touch methods described in the first aspect above.
[0095] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, comprising:
[0096] When the computer program or instructions in the storage medium are executed by the processor, the steps of any one of the methods for preventing accidental touches described in the first aspect above are implemented.
[0097] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising:
[0098] When the computer program or instructions are executed by the processor, they implement the steps of any one of the methods for preventing accidental touches described in the first aspect above.
[0099] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:
[0100] In this embodiment, a first touch area located outside the suppression area is selected from the touch area. Compared with adjusting the suppression area based on all touch areas inside and outside the suppression area, this improves the accuracy of adjusting the suppression area. Furthermore, after determining the first touch area, this disclosure does not directly adjust the suppression area of the touch screen. Instead, it flexibly adjusts the suppression area in the touch screen corresponding to the first touch area based on the orientation of the operation object pointing to the first touch area. This makes the adjusted suppression area correspond to the orientation of the first touch area, accurately locating the area that needs to be prevented from accidental touches, thereby improving the accuracy of preventing accidental touches in electronic devices.
[0101] 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
[0102] 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.
[0103] Figure 1 This is a flowchart illustrating an anti-accidental touch method according to an exemplary embodiment. Figure 1 .
[0104] Figure 2 This is a schematic diagram illustrating the distribution of sensor touch data related to pressure intensity distribution parameters in a touchscreen according to an exemplary embodiment. Figure 1 .
[0105] Figure 3 This is a schematic diagram illustrating the distribution of sensor touch data related to pressure intensity distribution parameters in a touchscreen according to an exemplary embodiment. Figure 2 .
[0106] Figure 4 This is a schematic diagram illustrating the interaction between an operating object and a touchscreen according to an exemplary embodiment. Figure 1 .
[0107] Figure 5 This is a schematic diagram illustrating the interaction between an operating object and a touchscreen according to an exemplary embodiment. Figure 2 .
[0108] Figure 6 This is a flowchart illustrating an anti-accidental touch method according to an exemplary embodiment. Figure 2 .
[0109] Figure 7 This is a structural diagram of an anti-accidental touch device according to an exemplary embodiment.
[0110] Figure 8 This is a structural block diagram of an electronic device according to an exemplary embodiment. Detailed Implementation
[0111] 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.
[0112] Figure 1 This is a flowchart illustrating an anti-accidental touch method according to an exemplary embodiment. Figure 1 .like Figure 1 As shown, this method for preventing accidental touches mainly includes the following steps:
[0113] In step 101, in response to the electronic device entering a preset application interface, a first touch operation applied to the touch screen is detected; wherein the first touch operation corresponds to at least one touch area.
[0114] In this embodiment of the disclosure, the electronic device is a device with a touchscreen that may be accidentally touched during use, such as a mobile phone, tablet, smartwatch, or smart wearable device. Exemplarily, the preset application interface is the application interface of the currently running application on the electronic device. In some embodiments, the electronic device may have various types of applications installed, such as game applications, communication applications, and reading applications.
[0115] Taking a game application as an example, the default application interface can be the game application interface. In this case, the anti-accidental touch method of this application can reduce accidental touch operations when the user controls the game character. Taking a reading application as an example, the default application interface can be the reading application interface. In this case, the anti-accidental touch method of this application can reduce accidental touch operations when the user turns pages in the reading application.
[0116] It should be noted that a touch operation refers to the application of pressure and / or shape change by an object to a touchscreen to trigger a specific function or operation on the device. Detecting the first touch operation on the touchscreen includes: sensing the contact state between the user's first touch operation and the touchscreen through sensors, including information such as contact area and pressure distribution; and the electronic device identifying and analyzing the user's first touch operation based on the touch data collected by the sensors. Here, sensors include pressure sensors, capacitive sensors, etc.
[0117] The first touch operation corresponding to at least one touch area includes: one or more fingers touching the touch screen. For example, if one finger touches the touch screen, the first touch operation corresponds to one touch area of the touch screen; if multiple fingers touch different positions on the touch screen, the first touch operation corresponds to multiple touch areas of the touch screen.
[0118] In step 102, based on the orientation of the object being operated on in at least one touch area, the suppression area in the touch screen corresponding to the first touch area is adjusted; wherein the first touch area is located outside the suppression area.
[0119] In this embodiment of the disclosure, the suppression area in the touchscreen is a pre-defined region within the touchscreen. The electronic device detects touch operations within the suppression area to determine whether the touch operation is a mis-touch operation. For mis-touch operations within the suppression area, the processor in the electronic device does not respond to the mis-touch operation (i.e., it does not report the touch data of the mis-touch operation or does not execute the touch event corresponding to the touch operation). For non-mis-touch operations within the suppression area, the processor in the electronic device responds to the non-mis-touch operation.
[0120] The suppression area can be set at a predetermined location on the touchscreen, where the probability of accidental touch is greater than a preset probability value. For example, the predetermined location can be the side edges of the touchscreen, the bottom corner of the touchscreen, etc. The shape, size, and location of the suppression area can be set according to the size of the electronic device, the user group, the application scenario, etc., and this embodiment does not impose any limitations on these aspects.
[0121] Therefore, the suppression zone is set in the location of the touch screen where accidental touch operations are likely to occur, such as the side edges of the touch screen and the bottom corner of the touch screen.
[0122] In this embodiment of the present disclosure, when a touch operation is detected acting on the suppression area, it is necessary to perform false touch detection on the touch operation acting on the suppression area. When a touch operation is detected acting on an area outside the suppression area (non-suppression area), it is not necessary to perform false touch detection on the touch operation acting on the non-suppression area.
[0123] It is understandable that if the first touch area is located outside the suppression area, the electronic device does not need to perform accidental touch detection on the touch operation of the first touch area, and can filter out touch operations located within the suppression area. This can reduce the range of the suppression area adjustment based on touch operation and improve the efficiency of adjusting the suppression area.
[0124] In this embodiment, the touch area includes a first touch area located outside the suppression area and a second touch area located within the suppression area. Touch data corresponding to the first touch operation can be analyzed based on the area, movement trajectory, and movement speed of the touch area. The touch area located outside the suppression area is defined as the first touch area.
[0125] For example, if the distance between the edge of the area corresponding to the touch area and the edge of the suppression area is greater than a preset distance threshold, the touch area with a distance greater than the preset distance threshold can be determined as the first touch area; or, if the movement trajectory corresponding to the touch area is outside the suppression area, the touch area can be determined as the first touch area.
[0126] In this embodiment of the disclosure, the pointing of the operating object on the touchscreen is the action of the operating object interacting with the touchscreen and the electronic device, and the first touch area is formed by the operating object performing an interactive action on the touchscreen. The operating object includes the user's finger, a stylus operated by the user, etc.
[0127] For example, pointing the object on the touchscreen may include a finger performing a tap, long press, or zoom operation on the touchscreen; pointing the object on the touchscreen may also include a stylus performing a swipe or drag operation on the touchscreen, etc., and this disclosure does not limit this.
[0128] In some embodiments, a coordinate system can be established based on the touch screen of the electronic device, the orientation information of the first touch area in the coordinate system can be determined to determine the orientation of the operation object, and the orientation information of the first touch area in the coordinate system can be determined as the orientation of the operation object in the touch screen.
[0129] For example, when the electronic device is in portrait mode, a coordinate system can be established with the top left corner of the touchscreen of the electronic device in portrait mode as the origin (0, 0), extending to the right from the origin as the positive direction of the X-axis, and extending downwards from the origin as the positive direction of the Y-axis. In some embodiments, after determining the coordinate system, the coordinate values of each touch point located at the edge of the first touch area in the coordinate system can be determined, and the orientation information of the first touch area on the touchscreen can be determined based on the coordinate values of each touch point at the edge of the first touch area in the coordinate system. In other embodiments, after determining the coordinate system, the coordinate values of the center point of the first touch area in the coordinate system can be determined, and the orientation information of the first touch area on the touchscreen can be determined based on the coordinate values of the center point of the first touch area in the coordinate system; and the orientation information of the first touch area on the touchscreen is determined as the orientation of the operating object on the touchscreen.
[0130] In this embodiment of the disclosure, adjusting the suppression area corresponding to the first touch area based on the orientation of the operation object includes adjusting the suppression area of the touch screen when the orientation of the operation object meets preset adjustment conditions.
[0131] The condition that the orientation pointed to by the operating object meets the preset adjustment conditions includes: the position pointed to by the operating object on the touchscreen meets the preset position range; and / or, the orientation pointed to by the operating object is located in the preset orientation of the touchscreen. The condition that the orientation pointed to by the operating object is located in the preset orientation of the touchscreen may include: the first touch area is located in the preset orientation of a coordinate system established based on the touchscreen. For example, if the first touch area is located within an azimuth angle range of 5 to 85 degrees relative to the origin in the coordinate system, then the first touch area is determined to be located in the preset orientation of the touchscreen, that is, the orientation pointed to by the operating object is located in the preset orientation of the touchscreen.
[0132] The location pointed to by the operation object within the preset location range of the touch screen may include: the first touch area being located within the preset location range of the coordinate system established based on the touch screen. For example, if the center point of the first touch area is located between the first coordinate point (45, 50) and the second coordinate point (30, 50) in the coordinate system, it can be determined that the first touch area is located within the preset location of the touch screen, that is, the direction pointed to by the operation object is within the preset location range of the touch screen.
[0133] When the orientation of the object being operated on meets the preset adjustment conditions, adjusting the suppression area includes: adjusting the area of the suppression area; or, adjusting the position of the suppression area within the touchscreen.
[0134] For example, if the orientation of the object being operated on meets the preset adjustment conditions, the area of the suppression area can be increased or decreased; or, the suppression area located at the edge positions of two mutually perpendicular sides of the touch screen can be adjusted to the position corresponding to one side of the touch screen.
[0135] In this embodiment of the disclosure, the first touch area corresponds to a suppression area, which may include: the first touch area corresponds to one suppression area or the first touch area corresponds to multiple suppression areas.
[0136] For example, when the suppression area is located at one of the four corners of the touchscreen, and the distance between the first touch area and the first suppression area is less than the distance between the first touch area and the other three suppression areas, the area of the first suppression area can be increased accordingly; or, the area of the first suppression area can be increased while the area of the other three suppression areas is decreased.
[0137] In step 103, if the second touch operation applied to the adjusted suppression area is a mis-touch operation, the touch data of the second touch operation is not responded to.
[0138] In this embodiment of the present disclosure, the electronic device detects the second touch operation in the adjusted suppression area. If it is determined that the second touch operation is a mis-touch operation, the processor of the electronic device does not respond to the touch data of the second touch operation.
[0139] It should be noted that detecting a second touch operation as a false touch can be done by analyzing the touch data corresponding to the second touch operation, and by analyzing the area and force of the touch area corresponding to the second touch operation to determine that the second touch operation is a false touch operation.
[0140] For example, if the area corresponding to the touch area of the second touch operation is less than a preset area threshold, the second touch operation is determined to be a mis-touch operation; or, if the pressure corresponding to the touch area of the second touch operation is less than a preset force threshold, the touch data of the second touch operation is determined to be unresponsive.
[0141] Here, not responding to the touch data of the second touch operation includes not reporting the touch data of the second touch operation or not executing the touch event corresponding to the second touch operation.
[0142] In this embodiment, a first area located outside the suppression area is selected from the touch area. Compared with adjusting the suppression area based on all touch areas inside and outside the preset area, this improves the accuracy of adjusting the suppression area. Furthermore, after determining the first touch area, this disclosure does not directly adjust the suppression area of the touch screen. Instead, it flexibly adjusts the suppression area in the touch screen corresponding to the first touch area based on the orientation of the operation object pointing to the first touch area. This makes the adjusted suppression area correspond to the orientation of the first touch area, accurately locating the area that needs to be prevented from accidental touches, thereby improving the accuracy of preventing accidental touches in electronic devices.
[0143] In some embodiments, the method for preventing accidental touches further includes:
[0144] Ellipse fitting is performed on each touch area to determine the elliptical region corresponding to each touch area and the ellipse parameters corresponding to the elliptical region.
[0145] The touch area corresponding to the elliptical region whose elliptical parameters are within the preset parameter range is determined as the first touch area;
[0146] The ellipse parameters include: the eccentricity of the elliptical region and / or the length of the major axis of the elliptical region.
[0147] In this embodiment of the disclosure, whether it is a capacitive touch screen, a resistive touch screen, or other types of touch screen, 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, so as to detect the first touch operation at each position of the touch screen and output touch data.
[0148] A single touch operation involves multiple touch units. These touch units, along with their corresponding sensors, detect and output touch data. Based on the coordinates of this touch data on the touchscreen, the touch area for this first touch operation can be determined. Therefore, upon detecting a first touch operation on the touchscreen, an ellipse fitting can be performed on the touch area based on the touch data corresponding to that area. Since the shape of a finger resembles an ellipse, ellipse fitting is performed on the touch area to determine the elliptical region and its corresponding elliptical parameters.
[0149] The ellipse parameters may also include: the number of elliptical regions, the tilt direction of the elliptical regions, the area of the elliptical regions, etc., but the embodiments disclosed herein do not impose any limitations on this.
[0150] It is understandable that different objects have different shapes and major axis lengths when they come into contact with the touchscreen, and ellipse parameters can be used to determine the objects corresponding to the elliptical regions.
[0151] It should be noted that when the distance between some fingers and the palm is short, the palm is more likely to touch the touchscreen, causing accidental touches. Therefore, determining whether there is a first touch area in each touch area based on ellipse parameters can help determine whether there are fingers that increase the accidental touch rate by performing the first touch operation on the touchscreen.
[0152] For example, the finger can be the thumb. Since the thumb is connected to the web of the hand and the distance between the thumb and the palm is less than the distance between the other fingers and the palm, when the user performs the first touch operation on the electronic device, the probability of the palm accidentally touching the touch screen when the thumb performs the first touch operation is greater than the probability of the palm accidentally touching the touch screen when the other fingers perform the first touch operation.
[0153] It should be noted that, since the palm of the hand is likely to touch the edge of the touchscreen when the finger corresponding to the first area performs the first touch operation, causing accidental touch, determining the elliptical area whose elliptical parameters are within the preset parameter range as the corresponding first touch area can provide more accurate adjustment conditions for subsequent adjustment of the suppression area.
[0154] In this embodiment, ellipse fitting is performed on the touch area, which makes it easier for the electronic device to distinguish the operation object corresponding to the touch area. Furthermore, the ellipse area whose ellipse parameters are within the preset parameter range is determined as the first touch area, which makes the determination of the first touch area more accurate and provides a more accurate data basis for obtaining the orientation information corresponding to the first touch area in the future.
[0155] Furthermore, the touch area corresponding to the elliptical region whose elliptical parameters fall within the preset parameter range is defined as the first touch area, including:
[0156] The touch area corresponding to the elliptical region whose eccentricity is less than or equal to the first threshold and / or whose major axis length is less than or equal to the first threshold is determined as the first touch area.
[0157] In this embodiment of the disclosure, the eccentricity is the ratio of the distance between the two foci in the elliptical region to the length of the major axis. The smaller the eccentricity, the closer the ellipse is to a circle; the larger the eccentricity, the flatter the ellipse.
[0158] Understandably, when the eccentricity of some objects is less than or equal to the first threshold, the corresponding elliptical region of the object is more rounded. Furthermore, when the contact length between the object and the touchscreen is shorter, other parts of the object are more likely to contact the touchscreen, causing accidental touches. Therefore, determining the first touch area based on the eccentricity and the length of the major axis allows for more accurate selection of the first touch area from the existing touch areas.
[0159] For example, when the finger is the thumb, the elliptical region corresponding to the thumb is more rounded than the elliptical regions corresponding to other fingers, and the major axis of the elliptical region corresponding to the thumb is shorter than the major axis of the elliptical regions corresponding to other fingers. Therefore, the eccentricity and / or the length of the major axis can be used to determine the touch area corresponding to the thumb as the first touch area.
[0160] In this embodiment of the disclosure, when the eccentricity is less than or equal to a first threshold, the touch area corresponding to the elliptical region is determined as the first touch area; or, when the length of the major axis is less than or equal to the first threshold, the touch area corresponding to the elliptical region is determined as the first touch area; or, when the eccentricity is less than or equal to the first threshold and the length of the major axis is less than or equal to the first threshold, the touch area corresponding to the elliptical region is determined as the first touch area.
[0161] The first threshold and the first threshold can be set according to the actual situation. For example, the first threshold can be set in the range of 0.2 to 0.5, and the first threshold can be set in the range of 1 cm to 2 cm. The embodiments of this disclosure do not limit these.
[0162] In this embodiment of the disclosure, by setting a first threshold for eccentricity and a second threshold for major axis length, the selected first touch area is made to better match the shape characteristics of the finger that is prone to accidental touch, thereby improving the accuracy of the electronic device in recognizing the first touch area and thus improving the accuracy of adjusting the suppression area based on the first touch area.
[0163] In some embodiments, orientation includes direction and / or location; the method for preventing accidental touches further includes:
[0164] Based on the angle between the line containing the major axis of the first elliptical region corresponding to the first touch area and the line containing the border of the touchscreen, the direction pointed to by the operating object on the touchscreen is determined; and / or,
[0165] The position of the object being operated on the touchscreen is determined based on the vertical distance between the center point of the first touch area and the two vertically adjacent borders of the touchscreen.
[0166] In this embodiment of the disclosure, by obtaining the coordinates of the two farthest endpoints of the first elliptical region corresponding to the first touch area in the coordinate system established based on the touch screen, connecting the coordinates of the two endpoints can obtain the major axis of the first elliptical region. Then, by extending the major axis of the first elliptical region, the intersection point of the line containing the major axis and the edge of the electronic device corresponding to the touch area can be determined. The acute or obtuse angle between the major axis and one of the edge intersection points is taken as the direction pointed to by the operation object on the touch screen; or, the acute or obtuse angle between the major axis and the line parallel to the long or short edge passing through the center point of the elliptical region is taken as the direction pointed to by the operation object on the touch screen.
[0167] For example, when the touch screen is divided into two touch areas, each touch area corresponds to three borders. The line containing the major axis of the first elliptical area may intersect one of the borders, or the line containing the major axis may intersect two parallel borders; or the line containing the major axis may intersect two perpendicular borders.
[0168] It should be noted that when the line containing the major axis intersects with the two borders, the acute or obtuse angle at the intersection point with the smaller distance can be determined as the direction that the object being operated on is pointing on the touch screen, based on the distance between the two intersection points and the elliptical region.
[0169] In this embodiment of the disclosure, by obtaining the vertical distance between the center point of the first touch area and the two borders that are vertically adjacent to the touch screen, the coordinate values of the center point of the first touch area on the X-axis and Y-axis in the touch screen coordinate system can be obtained.
[0170] For example, in the touch screen coordinate system, with the upper left corner of the touch screen as the origin and the rightward direction as the positive direction of the X-axis, the vertical distance between the center point of the first touch area and the left border is the coordinate value of the center point on the X-axis; with the origin pointing downward as the positive direction of the Y-axis, the vertical distance between the center point and the upper border is the coordinate value of the center point on the Y-axis.
[0171] The precise position of the first touch area in the touchscreen coordinate system can be determined based on the coordinates of the center point. It should be noted that, to improve the accuracy of the first touch area's position, the coordinates of the edge points of the first touch area in the touchscreen coordinate system can be combined with the coordinates of the center point to determine the overall outline of the first touch area in the touchscreen coordinate system.
[0172] In this embodiment of the disclosure, adjusting the suppression area of the touch screen based on the included angle and position includes: according to the direction pointed to by the operating object on the touch screen and the position pointed to by the operating object on the touch screen, the electronic device can dynamically adjust the layout and area of the suppression area on the touch screen.
[0173] For example, based on the orientation and position indicating that the user tends to hold the right side of the touchscreen, the electronic device can increase the area of the suppression area corresponding to the lower right corner; or, based on the orientation and position indicating that the user tends to hold the left side of the touchscreen, the electronic device can increase the area of the suppression area corresponding to the lower left corner; or, based on the orientation and position indicating that the user holds the left and right sides of the touchscreen respectively, the electronic device can increase the area of the suppression areas corresponding to the lower left and lower right corners respectively.
[0174] In this embodiment of the disclosure, by combining direction and position, the direction and position of the object being operated on the touch screen can be determined, and then the suppression area can be adjusted based on the included angle and position to improve the accuracy of adjusting the suppression area, thereby improving the accuracy of preventing accidental touches on electronic devices.
[0175] In some embodiments, adjusting the suppression area in the touchscreen corresponding to the first touch area based on the orientation of the object being operated on in at least one touch area includes:
[0176] When the included angle is within a preset angle range, the suppression zone is adjusted based on the position;
[0177] Among them, the distance between the location and the center point of the touchscreen is negatively correlated with the area of the adjusted suppression area.
[0178] In this embodiment of the disclosure, if the included angle is within a preset angle range, it indicates that the operating object is holding the touchscreen, and the first holding area faces the suppression area on the touchscreen. For example, when the included angle of the thumb on the first touch area of the touchscreen is within the preset angle range, the extension line of the major axis of the elliptical area of the first touch area may intersect with the suppression area corresponding to the lower left corner of the touchscreen, or with the suppression area corresponding to the lower right corner.
[0179] It's understandable that the extension of the thumb corresponds to the palm area, and the angle within the preset angle range means that the palm area corresponding to the thumb might cause accidental touches at the edge of the touchscreen. Therefore, when the angle is within the preset angle range, adjusting the suppression area based on its location allows for dynamic adjustment of the suppression area, making the method of preventing accidental touches by electronic devices more flexible.
[0180] The preset angle range of the included angle can be set according to actual conditions, and this embodiment does not limit this. In one embodiment, when the included angle is acute, the preset angle range can be from 5 degrees to 85 degrees, and the suppression area corresponding to the first touch area located within the range of 5 degrees to 85 degrees is adjusted; in another embodiment, when the included angle is obtuse, the preset angle range can be from 95 degrees to 175 degrees, and the suppression area corresponding to the first touch area located within the range of 95 degrees to 175 degrees is adjusted.
[0181] In this embodiment of the disclosure, the closer the position of the operation object on the touch screen is to the center point of the touch screen, the larger the area of the adjusted suppression area; the farther the position of the operation object on the touch screen is from the center point of the touch screen, the smaller the area of the adjusted suppression area.
[0182] Understandably, the closer the object being pointed to on the touchscreen is to the center of the touchscreen, the greater the likelihood of accidental touches caused by other parts of the object (such as the palm) contacting the edge of the touchscreen. In this case, increasing the area of the suppression zone can reduce the possibility of accidental touches caused by the palm. Conversely, the farther the object being pointed to on the touchscreen is from the center of the touchscreen, the greater the likelihood of the object contacting the edge of the suppression zone. In this case, reducing the area of the suppression zone can reduce the number of touch areas corresponding to the object being located within the suppression zone for accidental touch detection, thus improving the performance of the suppression zone in detecting accidental touches.
[0183] In this embodiment of the disclosure, the mechanism of adjusting the suppression area based on the included angle, a preset angle range, and the position of the first touch area can more accurately locate the area that needs to be prevented from accidental touch, thereby improving the accuracy of preventing accidental touch of electronic devices.
[0184] In some embodiments, the method for preventing accidental touches further includes:
[0185] If the orientation of the object being operated on does not meet the preset adjustment conditions or there is no first touch area, the suppression area remains unchanged;
[0186] In response to maintaining the suppression area unchanged, if a third touch operation is detected acting on the suppression area, it is determined whether the third touch operation is a mis-touch operation;
[0187] If the third touch operation is detected as a mis-touch operation, the touch data of the third touch operation will not be responded to.
[0188] In this embodiment of the disclosure, the fact that the orientation of the operation object does not meet the preset adjustment conditions may include the included angle being outside the preset angle range, that is, it is impossible to determine whether to adjust the suppression area based on the orientation of the operation object; the absence of a first touch area includes the fact that it is determined that there is no first touch area in the touch area corresponding to the detected touch operation, that is, it is impossible to dynamically adjust the suppression area based on the orientation of the operation object.
[0189] It should be noted that accidental touch detection based on the suppression zone can also meet the requirements for preventing accidental touches on touchscreens. Specifically, when a third touch operation acting on the suppression zone is detected as an accidental touch, the touch data of the third touch operation is not responded to. This can be because the electronic device does not report the touch data of the third touch operation, or it does not respond to or execute the touch event corresponding to the third touch operation.
[0190] Thus, by detecting whether the third touch operation in the suppression area is a mis-touch operation and not responding to the touch data of the third touch operation when it is detected as a mis-touch operation, the accuracy of preventing accidental touches in electronic devices is improved when it cannot be determined whether the first touch area exists, and the occurrence and interference of accidental touches can be further reduced.
[0191] In some embodiments, the method for preventing accidental touches further includes:
[0192] Based on the touch data corresponding to the second touch operation, the pressure distribution parameters are determined; wherein, the pressure distribution parameters are used to characterize the pressure distribution trend of the second touch operation.
[0193] If the pressure distribution parameter is greater than the preset force distribution threshold, the second touch operation is determined to be a false touch operation.
[0194] In this embodiment of the disclosure, when a finger performs a touch operation on the touchscreen, the pressure applied to the touchscreen is not uniform. In the case of accidental touch, the center of pressure is biased towards the edge area of the touchscreen, meaning the pressure is greater in the edge area and less in the non-edge area. In the case of normal touch operation, the center of pressure is generally not in the edge area of the touchscreen, meaning the pressure is greater in the non-edge area and less in the edge area.
[0195] Therefore, whether the second touch operation is a false touch operation can be determined by whether the pressure distribution parameter is greater than the preset pressure distribution threshold, and based on this, it can be determined whether to respond to the second touch operation.
[0196] In some embodiments, determining whether the second touch operation is a mis-touch operation includes:
[0197] If the pressure distribution parameter is less than or equal to the preset pressure distribution threshold, determine whether there is a fourth touch operation that acts outside the suppression area;
[0198] In response to the presence of a fourth touch operation, determine the interval between detecting the second touch operation and detecting the fourth touch operation;
[0199] If the interval is less than the preset duration, the second touch operation is determined to be a mis-touch operation.
[0200] In this embodiment, if the pressure distribution parameter is less than or equal to a preset pressure distribution threshold, it cannot be determined whether the second touch operation is a false touch. Therefore, when the pressure distribution parameter is less than or equal to the preset pressure distribution threshold, the second touch operation is determined to be a false touch based on a fourth touch operation outside the suppression zone. This improves the accuracy of determining whether the second touch operation is a false touch.
[0201] It is understandable that if a second touch operation and a fourth touch operation are detected within a preset time period, it indicates that a fourth touch operation, which is determined to be a valid operation, exists outside the suppression area. In this case, the second touch operation within the suppression area is a mis-touch operation. For example, if a fourth touch operation is detected outside the suppression area, it is a gripping operation performed by the object being operated on. If a second touch operation is detected within the suppression area within the preset time period, it is a mis-touch operation performed by the user's palm.
[0202] It should be noted that the second touch operation may be detected first within a preset time period, followed by the fourth touch operation; or the fourth touch operation may be detected first within a preset time period, followed by the second touch operation. This embodiment does not limit the possibilities.
[0203] In this embodiment of the disclosure, by integrating the pressure distribution parameters, the timing relationship between the second touch operation and the fourth touch operation, the electronic device can more accurately determine whether the second touch operation is a mis-touch operation based on the suppression area, thereby reducing misjudgment and omission of the second touch operation.
[0204] Furthermore, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;
[0205] Based on the touch data corresponding to the second touch operation, determine the pressure distribution parameters, including:
[0206] 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 area containing the maximum value, and the first sum value among the touch data in the first 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 values; and / or,
[0207] 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 touch data in the direction of the line where the maximum value is located; and the fourth sum value between at least one 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.
[0208] 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 touch data on the touchscreen, and the specific calculation method for the pressure distribution parameter is determined accordingly. It is 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 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.
[0209] Figure 2 This is a schematic diagram illustrating the distribution of sensor touch data related to pressure intensity distribution parameters in a touchscreen according to an exemplary embodiment. Figure 1 ,like Figure 2 As shown, when the coordinates of the maximum value are at the top corner of the touchscreen, it indicates 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 2 The 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 2 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.
[0210] Figure 3 This is a schematic diagram illustrating the distribution of sensor touch data related to pressure intensity distribution parameters in a touchscreen according to an exemplary embodiment. Figure 2 .like Figure 3 As shown, 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 column line direction where the maximum value is located is calculated (e.g.: Figure 3 (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 3 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.
[0211] In this embodiment of the disclosure, by using corner pressure distribution parameters and / or edge pressure distribution parameters, it is possible to more accurately distinguish between accidental touch operations located at right-angle corners and straight edges of the touchscreen, thereby improving the accuracy of accidental touch judgment for touch operations.
[0212] In some embodiments, the method for preventing accidental touches further includes:
[0213] Detect whether a fifth touch operation is applied to the adjusted suppression area;
[0214] If a fifth touch operation is detected, the touch data for the fifth touch operation will not be responded to.
[0215] In this embodiment, adjusting the suppression area not only adjusts the area of the suppression area but also adjusts the processing mechanism for touch operations within the suppression area. When the electronic device detects a fifth touch operation in the adjusted suppression area, regardless of whether the fifth touch operation is a mis-touch or not, the processor in the electronic device does not respond to the touch data of the fifth touch operation.
[0216] Among them, the electronic device not responding to the touch data of the fifth touch operation may be that the electronic device does not report the touch data of the fifth touch operation, or does not respond to or execute the touch event corresponding to the fifth touch operation.
[0217] It should be noted that the first touch area is determined based on the touch operation, and the suppression area is adjusted based on the orientation information of the first touch area. This means that the adjusted suppression area is the area where there is a high probability of accidental touch operation. Therefore, all touch operations within the adjusted suppression area can be considered as accidental touch operations.
[0218] For example, after a user performs a touch operation on the touch screen with their finger, the suppression area is adjusted based on the orientation information of the first touch area corresponding to the finger. After adjustment, the fifth touch operation detected in the suppression area is a mis-touch operation generated by the base of the finger or the palm of the hand on the touch screen.
[0219] Thus, by not responding to the fifth touch operation acting on the adjusted suppression area, the electronic device can reduce the judgment steps for preventing accidental touches in the suppression area based on the first touch area in the above embodiment, thereby improving the efficiency of the electronic device in preventing accidental touches, reducing the impact of accidental touch operations, and improving the stability and reliability of the preset application interface of the electronic device.
[0220] In some embodiments, the method for preventing accidental touches further includes:
[0221] Based on the acceleration sensor parameters and gravity sensor parameters of the electronic device, determine whether the electronic device has entered landscape mode;
[0222] In response to an electronic device entering a preset application interface, the system detects the first touch operation applied to the touchscreen, including:
[0223] In response to the display of a preset application interface on an electronic device in landscape mode, the system detects the first touch operation applied to each screen area of the touchscreen.
[0224] The touchscreen includes at least two screen areas, each of which includes a corresponding suppression area.
[0225] In this embodiment, when detecting whether an electronic device has entered landscape mode based on an accelerometer and a gravity sensor, the parameters of the two sensors are acquired. These parameters are then input into a trained state recognition model to determine whether the electronic device is in landscape or portrait mode. The tilt angle of the electronic device differs between landscape and portrait modes. The accelerometer can detect the tilt angle of the electronic device (up, down, left, and right), while the gravity sensor can detect the motion state and tilt angle relative to the horizontal plane. Therefore, inputting the parameters of the two sensors into the pattern recognition model accurately determines whether the electronic device has entered landscape mode.
[0226] The pattern 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.
[0227] It should be noted that the touch screen includes at least two screen areas. In one embodiment, the electronic device divides the touch screen into left and right screen areas with the vertical line of the long frame as the axis; in another embodiment, the electronic device can divide the touch screen into four screen areas with the vertical lines of the long frame and the short frame as the axes respectively.
[0228] It is understood that each screen area includes a corresponding suppression area. In one embodiment, the touch screen is divided into two screen areas, left and right, and each screen area includes two corresponding suppression areas. In another embodiment, the touch screen is divided into four screen areas, and each screen area includes one corresponding suppression area.
[0229] In this embodiment of the present disclosure, the electronic device is determined to be in landscape mode based on sensor data, and the touch screen in landscape mode is divided into screen areas. The first touch operation corresponding to each screen area is detected. This can more quickly distinguish the first touch operation in the left and right screen areas, and further adjust the suppression area corresponding to different screen areas, thereby improving the efficiency and accuracy of adjusting the suppression area.
[0230] In some embodiments, at least two screen regions include: a first screen region and a second screen region, wherein the first screen region and the second screen region are divided based on the vertical line of the long border of the electronic device;
[0231] Based on the orientation of the object being operated on in at least one touch area, the suppression area in the touchscreen corresponding to the first touch area is adjusted, including:
[0232] In response to the first touch area being located in the first screen area, the suppression area within the first screen area is adjusted; and / or,
[0233] In response to the first touch area being located in the second screen area, the suppression area within the second screen area is adjusted.
[0234] In this embodiment of the disclosure, when the user operates with one hand, the first screen area may be located in either the first screen area or the second screen area, for example: Figure 4 This is a schematic diagram illustrating the interaction between an operating object and a touchscreen according to an exemplary embodiment. Figure 1 ,like Figure 4 As shown, a first screen area 401 and a second screen area 402 are obtained by dividing the long frame of the electronic device. When the first touch area 403 is located within the first screen area 401 and the orientation of the object to be operated in the first touch area 403 meets the preset adjustment conditions, the suppression area 404 within the first screen area 401 is adjusted.
[0235] Figure 5 This is a schematic diagram illustrating the interaction between an operating object and a touchscreen according to an exemplary embodiment. Figure 2 ,like Figure 5 As shown, a first screen area 501 and a second screen area 502 are obtained by dividing the long frame of the electronic device. When the first touch area 503 is located within the second screen area 502 and the orientation of the object to be operated in the first touch area 503 meets the preset adjustment conditions, the suppression area 504 in the first screen area 502 is adjusted.
[0236] When a user operates with both hands, the first touch area may include a first touch area located within a first screen area and a first touch area located within a second screen area. If the orientation of the object being operated on by the first touch area within the first screen area and the first touch area within the second screen area both meet the preset adjustment conditions, the suppression area corresponding to the first screen area and the suppression area corresponding to the second screen area are both adjusted.
[0237] In this embodiment, the suppression area in the screen area is adjusted only when a first touch area exists in different screen areas. Compared with the anti-touch method of setting a dead zone, the electronic device can set the suppression area to prevent accidental touch more flexibly, and the adjustment of the suppression area based on the first touch area in the screen area is more precise.
[0238] To better understand the above one or more embodiments, examples of embodiments of this disclosure are as follows:
[0239] Figure 6 This is a flowchart illustrating an anti-accidental touch method according to an exemplary embodiment. Figure 2 .like Figure 6 As shown:
[0240] In step 601, based on the acceleration sensor parameters and gravity sensor parameters of the electronic device, it is determined that the electronic device has entered landscape mode;
[0241] In step 602, in response to the electronic device displaying a preset application interface in landscape mode, a first touch operation acting on each screen area of the touch screen is detected.
[0242] In step 603, ellipse fitting is performed on each touch area corresponding to the first touch operation to determine the elliptical region corresponding to each touch area, as well as the eccentricity and the length of the major axis of the elliptical region.
[0243] In step 604, based on the eccentricity of the elliptical region and / or the length of its major axis, determine whether a first touch area exists; if yes, proceed to step 605; if no, proceed to step 607.
[0244] In step 605, the angle and position of the first touch area in the touch screen are determined;
[0245] In step 606, determine whether the included angle is within the preset angle range; if not, proceed to step 607; if yes, proceed to step 612.
[0246] In step 607, the suppression region remains unchanged;
[0247] In step 608, it is determined whether the pressure distribution parameter of the second touch operation applied to the inhibition area is greater than the preset pressure distribution threshold; if not, proceed to step 609; if yes, proceed to step 611.
[0248] In step 609, it is determined within a preset time period whether a third touch operation exists outside the suppression area; if yes, proceed to step 610; if no, proceed to step 611.
[0249] In step 610, a touch data response is made to the second touch operation;
[0250] In step 611, the touch data for the second touch operation is not responded to;
[0251] In step 612, the suppression area corresponding to the screen area is adjusted based on the position of the first touch area in the touch screen;
[0252] In step 613, the touch data of the fourth touch operation in the adjusted suppression area is not responded to.
[0253] In step 613, if it is determined that the fifth touch operation in the adjusted suppression area is a mis-touch operation, the touch data of the fifth touch operation will not be responded to.
[0254] Figure 7 This is a structural diagram of an anti-accidental touch device according to an exemplary embodiment. Figure 7 As shown, the anti-accidental touch device 700 includes:
[0255] The first detection module 701 is configured to detect a first touch operation applied to the touch screen in response to the electronic device entering a preset application interface; wherein the first touch operation corresponds to at least one touch area;
[0256] The first determining module 702 is configured to adjust the suppression area in the touch screen corresponding to the first touch area based on the orientation of the operation object pointing to the first touch area acting on at least one touch area; wherein the first touch area is located outside the suppression area;
[0257] The adjustment module 703 is configured to not respond to the touch data of the second touch operation when the second touch operation applied to the adjusted suppression area is a mis-touch operation.
[0258] In some embodiments, the anti-accidental touch device 700 further includes:
[0259] The fitting module is configured to perform ellipse fitting on each touch area to determine the elliptical region corresponding to each touch area and the ellipse parameters corresponding to the elliptical region.
[0260] The second determining module is configured to determine the touch area corresponding to the elliptical region whose elliptical parameters are within the preset parameter range as the first touch area;
[0261] The ellipse parameters include: the eccentricity of the elliptical region and / or the length of the major axis of the elliptical region.
[0262] In some embodiments, the second determining module is further configured to:
[0263] The touch area corresponding to the elliptical region whose eccentricity is less than or equal to the first threshold and / or whose major axis length is less than or equal to the second threshold is determined as the first touch area.
[0264] In some embodiments, orientation includes: direction and / or location; the anti-accidental touch device 700 further includes:
[0265] The third determining module is configured to determine the direction the operating object points on the touchscreen based on the angle between the line containing the major axis of the first elliptical region corresponding to the first touch area and the line containing the border of the touchscreen; and / or,
[0266] The position of the object being operated on the touchscreen is determined based on the vertical distance between the center point of the first touch area and the two vertically adjacent borders of the touchscreen.
[0267] In some embodiments, the adjustment module 703 is further configured to:
[0268] When the included angle is within a preset angle range, the suppression zone is adjusted based on the position;
[0269] Among them, the distance between the location and the center point of the touchscreen is negatively correlated with the area of the adjusted suppression area.
[0270] In some embodiments, the anti-accidental touch device 700 further includes:
[0271] The maintenance module is configured to maintain the suppression area unchanged when the orientation pointed to by the operation object does not meet the preset adjustment conditions or there is no first touch area;
[0272] The judgment module is configured to, in response to maintaining the suppression zone unchanged, determine whether the third touch operation is a false touch operation if a third touch operation is detected acting on the suppression zone.
[0273] The first execution module is configured to not respond to the touch data of the third touch operation if the third touch operation is detected as a mis-touch operation.
[0274] In some embodiments, the determination module includes:
[0275] The parameter determination module is configured to determine the pressure distribution parameters based on the touch data corresponding to the second touch operation; wherein, the pressure distribution parameters are used to characterize the pressure distribution trend of the second touch operation;
[0276] The judgment submodule is configured to determine that the second touch operation is a mis-touch operation if the pressure distribution parameter is greater than the preset force distribution threshold.
[0277] In some embodiments, the determination submodule is further configured to:
[0278] If the pressure distribution parameter is less than or equal to the preset pressure distribution threshold, determine whether there is a fourth touch operation that acts outside the suppression area;
[0279] In response to the presence of a fourth touch operation, determine the interval between detecting the second touch operation and detecting the fourth touch operation;
[0280] If the interval is less than the preset duration, the second touch operation is determined to be a mis-touch operation.
[0281] In some embodiments, the pressure distribution parameters include: corner pressure distribution parameters and / or edge pressure distribution parameters;
[0282] The parameter determination module is also configured as follows:
[0283] 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 area containing the maximum value, and the first sum value among the touch data in the first 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 values; and / or,
[0284] 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 touch data in the direction of the line where the maximum value is located; and the fourth sum value between at least one 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.
[0285] In some embodiments, the anti-accidental touch device 700 further includes:
[0286] The second detection module is configured to detect whether a fifth touch operation is applied to the adjusted suppression area;
[0287] The second execution module is configured to not respond to the touch data of the fifth touch operation if the fifth touch operation is detected.
[0288] In some embodiments, the anti-accidental touch device 700 further includes:
[0289] The sensor module is configured to determine whether the electronic device has entered landscape mode based on the acceleration sensor parameters and gravity sensor parameters of the electronic device.
[0290] The first detection module 701 is also configured as follows:
[0291] In response to the display of a preset application interface on an electronic device in landscape mode, the system detects the first touch operation applied to each screen area of the touchscreen.
[0292] The touchscreen includes at least two screen areas, each of which includes a corresponding suppression area.
[0293] In some embodiments, at least two screen regions include: a first screen region and a second screen region, wherein the first screen region and the second screen region are divided based on the vertical line of the long border of the electronic device;
[0294] Adjustment module 703 is also configured as follows:
[0295] In response to the first screen region being located within the first screen region, the suppression area within the first screen region is adjusted; and / or,
[0296] In response to the first screen area being located in the second screen area, the suppression area within the second screen area is adjusted.
[0297] Figure 8 This is a structural block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0298] Reference Figure 8 The electronic device 800 may include one or more of the following components: processing component 802, memory 804, power supply component 806, multimedia component 808, audio component 810, input / output (I / O) interface 812, sensor component 814, and communication component 816.
[0299] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. Processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0300] Memory 804 is configured to store various types of data to support operation on electronic device 800. Examples of such data include at least one of the following: instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, and videos. Memory 804 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.
[0301] Power supply component 806 provides power to various components of electronic device 800. Power supply component 806 may include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.
[0302] Multimedia component 808 includes a screen that provides an output interface between electronic device 800 and 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 touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When electronic device 800 is in an operating mode, such as a shooting mode or video mode, the front-facing camera and / or 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.
[0303] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 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 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0304] Input / output interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, and buttons. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.
[0305] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 may detect the on / off state of electronic device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or one of its components, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include an optical sensor, such as a complementary metal-oxide-semiconductor (CMOS) or charge-coupled device (CCD) image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include, but is not limited to, at least one of the following: an accelerometer, a gyroscope, a magnetometer, a pressure sensor, and a temperature sensor.
[0306] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as Wi-Fi, 4G, 5G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 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), Infrared Data Association (IrDA), Ultra Wide Band (UWB), Bluetooth (BT), and other technologies.
[0307] In an exemplary embodiment, the electronic device 800 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.
[0308] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including executable instructions or a computer program, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0309] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform any of the above-described methods for preventing accidental touches according to embodiments of this disclosure. For example, the method includes:
[0310] In response to an electronic device entering a preset application interface, a first touch operation applied to the touchscreen is detected; wherein the first touch operation corresponds to at least one touch area;
[0311] Based on the orientation of the object being operated on in at least one touch area, the suppression area in the touchscreen corresponding to the first touch area is adjusted; wherein, the first touch area is located outside the suppression area;
[0312] If the second touch operation applied within the adjusted suppression zone is a mis-touch operation, the touch data for the second touch operation will not be responded to.
[0313] This disclosure provides a computer program product comprising a computer program or executable instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium and executes the computer program or executable instructions, causing the computer device to perform any of the above-described methods for preventing accidental touches according to this disclosure.
[0314] 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 illustrative only, and the true scope and spirit of this disclosure are indicated by the claims.
[0315] 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 a mistaken touch, characterized by, The method comprises: in response to the electronic device entering a preset application interface, detecting a first touch operation acting on the touch screen; wherein the first touch operation corresponds to at least one touch area; based on the direction pointed by an operation object acting on a first touch area in the at least one touch area, adjusting a suppression area in the touch screen corresponding to the first touch area; wherein the first touch area is located outside the suppression area; in the case that a second touch operation acting on the adjusted suppression area is a false touch operation, the touch data of the second touch operation is not responded.
2. The method of claim 1, wherein, The method further comprises: performing elliptical fitting on each touch area to determine an elliptical area corresponding to each touch area and an elliptical parameter corresponding to the elliptical area; determining the touch area corresponding to the elliptical area with the elliptical parameter within a preset parameter range as the first touch area; wherein the elliptical parameter comprises the eccentricity of the elliptical area and / or the length of the major axis of the elliptical area.
3. The method of claim 2, wherein, The determination of the touch area corresponding to the elliptical area with the elliptical parameter within the preset parameter range as the first touch area comprises: determining the touch area corresponding to the elliptical area with the eccentricity less than or equal to a first threshold value and / or the length of the major axis less than or equal to a second threshold value as the first touch area.
4. The method of claim 1, wherein, The direction comprises a direction and / or a position; the method further comprises: determining the direction pointed by the operation object on the touch screen based on the angle between the straight line where the major axis of the first elliptical area corresponding to the first touch area is located and the straight line where the frame of the touch screen is located; and / or determining the position pointed by the operation object on the touch screen based on the vertical distance between the center point of the first touch area and the two adjacent vertical edges of the touch screen.
5. The method of claim 4, wherein, The adjustment of the suppression area based on the direction pointed by the operation object acting on the first touch area in the at least one touch area comprises: in the case that the angle is within a preset angle range, adjusting the suppression area based on the position; wherein the distance between the position and the center point of the touch screen is negatively correlated with the area of the adjusted suppression area.
6. The method of claim 1, wherein, The method further comprises: in the case that the direction pointed by the operation object does not meet a preset adjustment condition or the first touch area does not exist, maintaining the suppression area unchanged; in response to maintaining the suppression area unchanged, if a third touch operation acting on the suppression area is detected, determining whether the third touch operation is a false touch operation; in the case that the third touch operation is detected as a false touch operation, the touch data of the third touch operation is not responded.
7. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: based on the touch data corresponding to the second touch operation, determining a pressing force distribution parameter; wherein the pressing force distribution parameter is used to represent the pressing force distribution trend of the second touch operation; in the case that the pressing force distribution parameter is greater than a preset force distribution threshold, determining that the second touch operation is a false touch operation.
8. The method of claim 7, wherein, The determining whether the second touch operation is a false touch operation comprises: In a case where the pressing force distribution parameter is less than or equal to the preset force distribution threshold, determining whether a fourth touch operation acting on the suppression region exists; In response to the fourth touch operation existing, determining an interval duration between the detection of the second touch operation and the detection of the fourth touch operation; In response to the interval duration being less than a preset duration, determining that the second touch operation is a false touch operation.
9. The method of claim 7, wherein, The pressing force distribution parameter comprises a corner pressing force distribution parameter and / or an edge pressing force distribution parameter. The determining the pressing force distribution parameter based on the touch data corresponding to the second touch operation comprises: If the coordinate corresponding to the maximum value in the touch data is a top corner position of the touch screen, determining a first sum value between the touch data in a first L-shaped region containing the maximum value and a first sum value between the touch data in a first L-shaped region adjacent to the first L-shaped region, and determining the corner pressing force distribution parameter based on a ratio between the first sum value and the first sum value; and / or If the coordinate corresponding to the maximum value is a non-top corner position of the touch screen, determining a third sum value between at least one of the touch data in a straight line direction of the maximum value and a fourth sum value between at least one of the touch data in a straight line direction adjacent to the straight line of the maximum value, and determining the edge pressing force distribution parameter based on a ratio between the third sum value and the fourth sum value.
10. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: Detecting whether a fifth touch operation acting on the adjusted suppression region exists; If the fifth touch operation is detected, not responding to touch data of the fifth touch operation.
11. The method according to any one of claims 1 to 6, characterized in that, The method further comprises: Determining whether the electronic device enters a horizontal screen mode based on an acceleration sensor parameter and a gravity sensor parameter of the electronic device; The detecting the first touch operation acting on the touch screen in response to the electronic device entering a preset application interface comprises: In response to the electronic device displaying the preset application interface in the horizontal screen mode, detecting the first touch operation acting on each screen region of the touch screen; The touch screen comprises at least two screen regions, and each screen region comprises a corresponding suppression region.
12. The method of claim 11, wherein, The at least two screen regions comprise a first screen region and a second screen region, and the first screen region and the second screen region are divided based on a median line of a long side frame of the electronic device; The adjusting the suppression region in the touch screen corresponding to the first touch region based on the direction pointed by the operation object acting on the first touch region in the at least one touch region comprises: In response to the first touch region being located in the first screen region, adjusting the suppression region in the first screen region; and / or In response to the first touch region being located in the second screen region, adjusting the suppression region in the second screen region.
13. A mis-touch prevention device, comprising: The method further comprises: The first detecting module is configured to detect a first touch operation on the touch screen in response to the electronic device entering a preset application interface, wherein the first touch operation corresponds to at least one touch area; The first determining module is configured to adjust a suppression area corresponding to the first touch area in the touch screen based on a direction pointed by an operation object of the first touch area in the at least one touch area, wherein the first touch area is located outside the suppression area; The adjusting module is configured to not respond to touch data of a second touch operation on the adjusted suppression area in a case where the second touch operation is a false touch operation.
14. An electronic device, comprising: The electronic device at least includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the false touch prevention method of any one of claims 1 to 12.
15. A non-transitory computer-readable storage medium storing computer programs or instructions, characterized in that, When the computer program or instructions in the storage medium are executed by the processor, the steps of the false touch prevention method of any one of claims 1 to 12 are implemented.
16. A computer program product comprising computer programs or instructions, characterized in that, When the computer program or instructions are executed by the processor, the steps of the false touch prevention method of any one of claims 1 to 12 are implemented.