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

By combining optical, distance, and motion sensors to determine the storage and movement status of electronic devices, the anti-accidental touch function is activated only when necessary, solving the problem of accidental operation of electronic devices and achieving a more efficient anti-accidental touch effect.

CN121832789APending Publication Date: 2026-04-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411413204.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In the prior art, electronic devices are prone to performing functions that are not intended by the user due to accidental touch, resulting in power consumption and misoperation. The accuracy and sensitivity of existing anti-accidental touch functions are insufficient.

Method used

By combining optical sensors, distance sensors, and motion sensors, light intensity data, distance data, and acceleration data are collected respectively to determine whether the electronic device is stored and in motion, and the anti-accidental touch function is activated only when the conditions are met.

Benefits of technology

The accuracy and sensitivity of the anti-accidental touch function have been improved, avoiding unnecessary power consumption and misoperation, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121832789A_ABST
    Figure CN121832789A_ABST
Patent Text Reader

Abstract

The invention relates to a mistaken touch prevention method, a mistaken touch prevention device, electronic equipment and a storage medium. The mistaken touch prevention method comprises the steps that in response to the fact that the electronic equipment is not used, a first state of the electronic equipment is determined according to light intensity data, collected by the electronic equipment, of an external environment and distance data between the electronic equipment and an object in the external environment, and the first state comprises a stored state or a non-stored state. In response to the fact that the first state of the electronic equipment is a stored state, a second state of the electronic equipment is determined according to motion data collected by the electronic equipment, and the second state comprises a motion state or a non-motion state. And in response to the fact that the second state is the motion state, starting a mistaken touch prevention function of the electronic equipment. According to the method and the device, the mistaken touch prevention function of the electronic equipment is enabled under proper conditions, and the effectiveness and the sensitivity of the mistaken touch prevention function of the electronic equipment are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of equipment control, and in particular to methods, devices, electronic equipment and storage media for preventing accidental touch. Background Technology

[0002] With the development of terminal technology, most electronic devices are equipped with touchscreens for touch operation. Electronic devices supporting touch functionality generally use capacitive touchscreens. Terminals with capacitive touchscreens are prone to accidental touches when not intended by the user, causing the electronic device to execute functions unintended due to these accidental touches. Therefore, setting sensitive anti-accidental touch functions for electronic devices is a research direction for those skilled in the art. Summary of the Invention

[0003] To overcome the problems existing in the related technologies, this disclosure provides a method, device, electronic device and storage medium for preventing accidental touch.

[0004] According to a first aspect of the present disclosure, a method for preventing accidental touches is provided, comprising: in response to an electronic device not being used, determining a first state of the electronic device based on light intensity data of the external environment collected by the electronic device and distance data between the electronic device and objects in the external environment, wherein the first state includes a stored state or an unstored state; in response to the first state of the electronic device being a stored state, determining a second state of the electronic device based on motion data collected by the electronic device, wherein the second state includes a moving state or a non-moving state; and in response to the second state being a moving state, activating the accidental touch prevention function of the electronic device.

[0005] In one embodiment, the electronic device collects light intensity data and distance data based on a preset sampling frequency. Determining the first state of the electronic device based on the light intensity data and distance data collected by the electronic device includes: determining the first state of the electronic device as a stored state in response to the light intensity data collected by the electronic device being less than a light intensity threshold and the distance data collected by the electronic device being less than a distance threshold; and determining the first state of the electronic device as a non-stored state in response to the light intensity data collected by the electronic device being greater than or equal to the light intensity threshold and / or the distance data collected by the electronic device being greater than or equal to the distance threshold.

[0006] In one embodiment, the motion data collected by the electronic device includes acceleration data of the electronic device. The electronic device collects the acceleration data based on a preset sampling frequency. The acceleration data collected by the electronic device includes a first acceleration parallel to a first coordinate axis, a second acceleration parallel to a second coordinate axis, and a third acceleration parallel to a third coordinate axis. The first, second, and third coordinate axes are mutually perpendicular coordinate axes in world coordinates, and the first axis is parallel to the direction of gravity. Determining the second state of the electronic device based on the acceleration data collected by the electronic device includes: determining the second state of the electronic device based on a first preset... The first, second, and third accelerations are collected sequentially from n acceleration data points within a given time period. The n absolute accelerations corresponding to these n acceleration data points are then determined sequentially. The absolute difference between any two adjacent absolute accelerations within these n sequentially arranged absolute accelerations is determined, resulting in a second number of absolute differences. The number of absolute differences greater than a threshold value is defined as a first number, where n is a positive integer and the second number is n-1. In response to the first number being greater than the threshold value, the second state of the electronic device is determined to be a motion state. In response to the first number being less than or equal to the threshold value, the second state of the electronic device is determined to be a non-motion state.

[0007] In one embodiment, the method further includes: responding to the second state of the electronic device being a non-motion state, for n acceleration data collected by the electronic device in a time sequence within a second preset time period, determining n absolute accelerations corresponding to the n acceleration data in a time sequence, determining the absolute difference between every two adjacent absolute accelerations in the n absolute accelerations in a time sequence, obtaining a second number of absolute differences, determining the number of absolute differences less than or equal to a difference threshold in the second number of absolute differences as a second quantity, and determining the number of acceleration data groups in the n acceleration data that meet preset requirements as a third quantity; responding to the ratio between the first quantity and the second quantity being greater than a first ratio threshold, and / or the ratio between the third quantity and n being greater than the first ratio threshold, determining that the electronic device is in a stationary state, and disabling the anti-accidental touch function of the electronic device; wherein, when the acceleration data meets the preset requirements, the second acceleration and the third acceleration included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within a preset acceleration range.

[0008] In one embodiment, the method further includes: responding to the fact that the ratio between the first quantity and the second quantity is less than or equal to a first ratio threshold, and the ratio between the third quantity and n is less than or equal to the first ratio threshold, and the second state of the electronic device is determined to be a non-motion state based on motion data collected at the previous time node, disabling the anti-mistouch function of the electronic device, wherein, when the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold and the ratio between the third quantity and n is less than or equal to the first ratio threshold, the electronic device is determined to be in a third state; responding to the fact that the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold, and the ratio between the third quantity and n is less than or equal to the first ratio threshold, and the second state of the electronic device is determined to be a motion state based on motion data collected at the previous time node, and the electronic device is determined to be in the third state m consecutively based on subsequently collected motion data, disabling the anti-mistouch function of the electronic device, where m is a positive integer.

[0009] In one embodiment, the electronic device performs the anti-mistouch function in the following manner: in response to receiving a touch operation, it determines the number of reporting points corresponding to the touch operation, wherein the touch sensor of the electronic device includes multiple touch nodes, and the reporting point is a touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor; based on the number of reporting points and a second number threshold, it determines the touch type of the touch operation, wherein the touch type includes accidental touch and non-accidental touch; in response to the touch type of the touch operation being accidental touch, it blocks the touch operation.

[0010] In one embodiment, determining the touch type of a touch operation based on the number of reported points and a second quantity threshold includes: determining the touch type of the touch operation as a mis-touch in response to the number of reported points being greater than the second quantity threshold; determining a rectangular frame surrounding all reported points in response to the number of reported points being less than or equal to the second quantity threshold, and determining the ratio between the number of reported points and the number of all touch nodes in the rectangular frame; determining the touch type of the touch operation based on the ratio and the ratio threshold, wherein each frame line of the rectangular frame coincides with the outer edge of different reported points.

[0011] In one embodiment, determining the touch type of the touch operation based on the ratio and the ratio threshold includes: determining the touch type of the touch operation as non-mistaken touch in response to the ratio being greater than the ratio threshold; and determining the touch type of the touch operation as mistaken touch in response to the ratio being less than or equal to the ratio threshold.

[0012] According to a second aspect of the present disclosure, an anti-accidental touch device is provided, comprising: a determining unit, configured to, in response to the electronic device being unused, determine a first state of the electronic device based on light intensity data of the external environment collected by the electronic device and distance data between the electronic device and objects in the external environment, wherein the first state includes a stored state or a non-stored state; a processing unit, configured to, in response to the first state of the electronic device being a stored state, determine a second state of the electronic device based on motion data collected by the electronic device, wherein the second state includes a moving state or a non-moving state; and an execution unit, configured to, in response to the second state being a moving state, activate the anti-accidental touch function of the electronic device.

[0013] In one embodiment, the electronic device collects light intensity data and distance data based on a preset sampling frequency. The determining unit determines the first state of the electronic device based on the light intensity data and distance data collected by the electronic device in the following manner: in response to the light intensity data collected by the electronic device being less than a light intensity threshold and the distance data collected by the electronic device being less than a distance threshold, the first state of the electronic device is determined to be a stored state; in response to the light intensity data collected by the electronic device being greater than or equal to the light intensity threshold and / or the distance data collected by the electronic device being greater than or equal to the distance threshold, the first state of the electronic device is determined to be a non-stored state.

[0014] In one embodiment, the motion data collected by the electronic device includes acceleration data of the electronic device. The electronic device collects the acceleration data based on a preset sampling frequency. The acceleration data collected by the electronic device includes a first acceleration parallel to a first coordinate axis, a second acceleration parallel to a second coordinate axis, and a third acceleration parallel to a third coordinate axis. The first, second, and third coordinate axes are mutually perpendicular coordinate axes in world coordinates, and the first axis is parallel to the direction of gravity. The processing unit determines the second state of the electronic device based on the acceleration data collected by the electronic device in the following manner: based on the acceleration data collected by the electronic device in... The first acceleration, second acceleration, and third acceleration are collected sequentially from n acceleration data points within a first preset time period. The n absolute accelerations corresponding to these n acceleration data points are then determined sequentially. The absolute difference between each pair of adjacent absolute accelerations within these n sequentially arranged absolute accelerations is determined, resulting in a second number of absolute differences. The number of absolute differences greater than a threshold value among these second number of absolute differences is defined as a first number, where n is a positive integer and the second number is n-1. In response to the first number being greater than the threshold value, the second state of the electronic device is determined to be a motion state. In response to the first number being less than or equal to the threshold value, the second state of the electronic device is determined to be a non-motion state.

[0015] In one embodiment, the processing unit is further configured to: respond to the second state of the electronic device being a non-motion state, for n acceleration data collected by the electronic device in a time sequence within a second preset time period, determine n absolute accelerations corresponding to the n acceleration data in a time sequence, determine the absolute difference between each two adjacent absolute accelerations in the n absolute accelerations in a time sequence, obtain a second number of absolute differences, determine the number of absolute differences less than or equal to a difference threshold in the second number of absolute differences as a second quantity, and determine the number of acceleration data groups that meet preset requirements in the n acceleration data as a third quantity; respond to the ratio between the first quantity and the second quantity being greater than a first ratio threshold, and / or the ratio between the third quantity and n being greater than the first ratio threshold, determine that the electronic device is in a stationary state, and disable the anti-accidental touch function of the electronic device; wherein, when the acceleration data meets the preset requirements, the second acceleration and the third acceleration included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within a preset acceleration range.

[0016] In one embodiment, the processing unit is further configured to: in response to the ratio between the first quantity and the second quantity being less than or equal to a first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and the second state of the electronic device being determined to be a non-motion state based on motion data collected at the previous time node, disable the anti-mistouch function of the electronic device, wherein, when the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold and the ratio between the third quantity and n is less than or equal to the first ratio threshold, determine that the electronic device is in a third state; in response to the ratio between the first quantity and the second quantity being less than or equal to the first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and the second state of the electronic device being determined to be a motion state based on motion data collected at the previous time node, and the electronic device being determined to be in the third state m consecutively based on subsequently collected motion data, disable the anti-mistouch function of the electronic device, where m is a positive integer.

[0017] In one embodiment, the execution unit performs the anti-mistouch function in the following manner: in response to receiving a touch operation, it determines the number of reporting points corresponding to the touch operation, wherein the touch sensor of the electronic device includes multiple touch nodes, and the reporting point is a touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor; based on the number of reporting points and a second number threshold, it determines the touch type of the touch operation, wherein the touch type includes mis-touch and non-mis-touch; in response to the touch type of the touch operation being mis-touch, it blocks the touch operation.

[0018] In one embodiment, the execution unit determines the touch type of the touch operation based on the number of reporting points and a second quantity threshold as follows: in response to the number of reporting points being greater than the second quantity threshold, the touch type of the touch operation is determined to be a mis-touch; in response to the number of reporting points being less than or equal to the second quantity threshold, a rectangular frame surrounding all reporting points is determined, and the ratio between the number of reporting points and the number of all touch nodes in the rectangular frame is determined; based on the ratio and the ratio threshold, the touch type of the touch operation is determined, wherein each frame line of the rectangular frame coincides with the outer edge of different reporting points.

[0019] In one embodiment, the execution unit determines the touch type of the touch operation based on the ratio and the ratio threshold in the following manner: in response to the ratio being greater than the ratio threshold, the touch type of the touch operation is determined to be a non-mistaken touch; in response to the ratio being less than or equal to the ratio threshold, the touch type of the touch operation is determined to be a mistaken touch.

[0020] According to a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: execute the anti-accidental touch method described in the first aspect or any embodiment of the first aspect.

[0021] According to a fourth aspect of the present disclosure, a storage medium is provided, the storage medium storing instructions that, when executed by a processor, enable the processor to perform the anti-accidental touch method described in the first aspect or any embodiment of the first aspect.

[0022] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: When the electronic device is not in use, it is determined whether the electronic device is in a stored state based on the light intensity data of the external environment collected by the electronic device and the distance data between the electronic device and objects in the external environment; when the electronic device is in a stored state, it is determined whether the electronic device is in a moving state based on the motion data collected by the electronic device. When the electronic device is in a moving state, the accidental touch prevention function of the electronic device is activated. Through this disclosure, the accidental touch prevention function of the electronic device is activated under appropriate conditions, ensuring the effectiveness and sensitivity of the accidental touch prevention function of the electronic device.

[0023] 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

[0024] 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.

[0025] Figure 1 This is a flowchart illustrating an accidental touch prevention method according to an exemplary embodiment.

[0026] Figure 2 This is a flowchart illustrating a method for determining a first state of an electronic device according to an exemplary embodiment.

[0027] Figure 3 This is a schematic diagram illustrating the change in data detected by a distance sensor when an electronic device switches between a stored state and an unstored state, according to an exemplary embodiment of the present disclosure.

[0028] Figure 4 This is a flowchart illustrating a method for determining a second state of an electronic device according to an exemplary embodiment.

[0029] Figure 5 This is a schematic diagram illustrating data changes detected by an accelerometer in a backpack of an electronic device according to an exemplary embodiment of the present disclosure.

[0030] Figure 6 This is a flowchart illustrating an accidental touch prevention method according to an exemplary embodiment.

[0031] Figure 7 This is a flowchart illustrating an exemplary embodiment of the present disclosure of determining the current state of an electronic device based on data detected by a motion sensor.

[0032] Figure 8 This is a flowchart illustrating a method for controlling and disabling the accidental touch prevention function according to an exemplary embodiment.

[0033] Figure 9 This is a flowchart illustrating a method for controlling an electronic device to enter and exit pocket mode according to an exemplary embodiment of the present disclosure.

[0034] Figure 10 This is a flowchart illustrating a method for performing an anti-accidental touch function according to an exemplary embodiment.

[0035] Figure 11 This is a schematic diagram illustrating a triggering of a capacitive sensor in the event of large-area touch, according to an exemplary embodiment of the present disclosure.

[0036] Figure 12 This is a flowchart illustrating a method for determining the touch type of a touch operation according to an exemplary embodiment.

[0037] Figure 13 This is a flowchart illustrating a method for determining the touch type of a touch operation based on a ratio and a ratio threshold, according to an exemplary embodiment.

[0038] Figure 14 This is a schematic diagram illustrating a triggering of a capacitive sensor in the case of a non-accidental touch operation, according to an exemplary embodiment of the present disclosure.

[0039] Figure 15 This is a schematic diagram illustrating a triggering of a capacitive sensor in the event of a erroneous touch operation, according to an exemplary embodiment of the present disclosure.

[0040] Figure 16 This is a flowchart illustrating a method for performing an anti-accidental touch function according to an exemplary embodiment of the present disclosure.

[0041] Figure 17 This is a block diagram illustrating an anti-accidental touch device according to an exemplary embodiment.

[0042] Figure 18 This is a block diagram illustrating a device for preventing accidental touches according to an exemplary embodiment.

[0043] Figure 19 This is a block diagram illustrating a device for preventing accidental touches according to an exemplary embodiment. Detailed Implementation

[0044] 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 numbers 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.

[0045] The accidental touch prevention method provided in this disclosure is applied to determining whether an electronic device is in a specific scenario where the accidental touch prevention function needs to be performed, and performing the accidental touch prevention function under that specific scenario.

[0046] With the development of terminal technology, most electronic devices now feature touchscreens that support touch operation. Users can control these devices via touchscreens, significantly improving operability and user experience. However, touchscreen-enabled electronic devices generally use capacitive touchscreens. These touchscreens are prone to accidental touches, meaning that unintended touches can occur, leading to erroneous operations and impacting the user experience. For example, if an electronic device is placed in a pocket while locked or in a backpack, and the touchscreen comes into contact with a conductive object in the pocket or rubs against clothing during movement, the screen may wake up or enter an emergency call interface, causing battery drain or accidental emergency calls.

[0047] In related technologies, to address the aforementioned scenarios where accidental touches are prone to occur, an anti-accidental touch function is generally implemented. This function activates when the electronic device is detected entering a pocket or bag, preventing accidental touches from triggering unintended functions.

[0048] Some related technologies rely on sensor data detected by a distance sensor to determine whether to activate the anti-mistouch function. This involves detecting the distance between the electronic device's screen and the object covering it. If the detected distance is less than a preset value, it's determined that the electronic device is in the user's pocket / bag, thus activating the anti-mistouch function and stopping the reception of touch commands. However, relying solely on sensor data detected by a distance sensor to determine whether an electronic device is in a user's pocket / bag is inaccurate. For example, if the electronic device is in the user's backpack, movement by the user will also cause the device to move, resulting in reflections of the detection waves emitted by the distance sensor on the backpack's inner wall. This causes fluctuations in the distance detected by the distance sensor, and if the distance exceeds the preset value, the anti-mistouch mode will be deactivated, affecting the accurate execution of the anti-mistouch function.

[0049] Related technologies also include methods that determine whether to activate the anti-mistouch function based on sensor data detected by optical sensors. This involves detecting the optical parameters of the electronic device's environment; if the detected optical parameters are lower than the specified values, it's determined that the electronic device is in the user's pocket / bag, thus activating the anti-mistouch function and stopping the reception of touch commands. However, relying solely on sensor data detected by optical sensors to determine whether an electronic device is in a user's pocket / bag is inaccurate. The optical parameters detected by the electronic device's optical sensors are affected not only by the device's location (in a pocket or outside) but also by changes in the external environment. For example, in a dark environment, the technology that determines whether to activate the anti-mistouch function based on sensor data detected by optical sensors will fail.

[0050] In summary, the methods used in related technologies that determine the environment of an electronic device based on sensor parameters detected by optical or distance sensors cannot accurately determine whether the electronic device is in the user's pocket / bag, thus affecting the normal triggering of the anti-mistouch function. Furthermore, accidental touches only occur when the electronic device is in the user's pocket / bag and the user is in motion; therefore, directly activating the anti-mistouch function after determining that the electronic device is in the user's pocket / bag is unnecessary. Moreover, even when the electronic device is in the user's pocket / bag, the user may still issue touch commands through gestures; therefore, directly stopping the reception of touch operations after the anti-mistouch function is activated in related technologies would affect normal user operation and degrade the user experience.

[0051] In view of this, this disclosure proposes a method for preventing accidental touches. When the electronic device is not in use, it determines whether the device is in a stored state based on light intensity data of the external environment and distance data between the device and objects in the external environment. If the device is in a stored state, it determines whether it is in motion based on motion data collected by the device. When the device is in motion, the accidental touch prevention function is activated. This disclosure ensures that the accidental touch prevention function of the electronic device is activated under appropriate conditions, guaranteeing the effectiveness and sensitivity of the accidental touch prevention function.

[0052] Figure 1 This is a flowchart illustrating an exemplary method for preventing accidental touches. Figure 1 As shown, the method includes steps S101 to S103.

[0053] In step S101, in response to the electronic device not being used, a first state of the electronic device is determined based on the light intensity data of the external environment collected by the electronic device and the distance data between the electronic device and objects in the external environment. The first state includes a stored state or a non-stored state.

[0054] In step S102, in response to the first state of the electronic device being the stored state, the second state of the electronic device is determined based on the motion data collected by the electronic device. The second state includes a motion state or a non-motion state.

[0055] In step S103, in response to the second state being a motion state, the anti-accidental touch function of the electronic device is activated.

[0056] In this embodiment of the disclosure, when the electronic device is in a screen-off state or a sleep state, it can be considered that the electronic device is not in use. Similarly, when the electronic device is in a screen-on state and no user operation is received within a preset time, it can also be considered that the electronic device is not in use.

[0057] In this embodiment of the disclosure, when the electronic device is not in use, a distance sensor in the electronic device detects the distance (distance data) between the electronic device and objects in its environment (external environment), and an optical sensor in the electronic device detects the light intensity data of the environment in which the electronic device is located. Based on the light intensity data and distance data, it is then determined whether the electronic device is in the user's pocket or bag, i.e., whether the first state of the electronic device is a stored state or an unstored state. It is understood that if the electronic device is placed in a pocket or bag, the environment in which the electronic device is located becomes darker, and the distance between the electronic device and objects in the environment decreases. Therefore, this disclosure can determine whether the electronic device is stored in a pocket or bag (i.e., in a stored state) by detecting the light intensity data and distance data. The distance sensor in the electronic device can be a sensor with distance detection capabilities, such as an ultrasonic distance sensor or an infrared sensor.

[0058] It is understandable that when an electronic device is stored in a pocket or bag and the user and their bag are moving, the touchscreen of the electronic device will be accidentally touched by the user or other objects in the bag, making it necessary to enable the accidental touch prevention function. However, when the user and their bag are not moving, the touchscreen of the electronic device will not be accidentally touched by the user or other objects in the bag. Therefore, when the electronic device is stored in a pocket or bag but the user is not moving, the accidental touch prevention function is unnecessary, and enabling it in this situation would lead to increased power consumption of the electronic device. Based on this, this disclosure uses motion acceleration data to determine whether the electronic device is in motion. Then, when it is determined that the electronic device is both stored and in motion, the accidental touch prevention function is activated.

[0059] In this embodiment, the electronic device is determined to be stored in a pocket or bag based on sensor data detected by the optical sensor and distance sensor in the electronic device. When the electronic device is stored in a pocket or bag, motion data collected by the motion sensor of the electronic device determines whether the electronic device is in motion. If the electronic device is in motion, the accidental touch prevention function of the electronic device is activated. This disclosure ensures that the accidental touch prevention function of the electronic device is activated under appropriate conditions, guaranteeing the effectiveness and sensitivity of the accidental touch prevention function. The motion sensor of the electronic device can be an accelerometer, gyroscope, magnetometer, or an absolute motion detection sensor (AMD), etc., that detects motion-related data.

[0060] It is understandable that when an electronic device is placed in a pocket or bag, the sensor values ​​detected by the optical sensor and distance sensor in the electronic device will drop rapidly. Based on this, this disclosure sets a small light intensity threshold and a small distance threshold. Based on the light intensity data, distance data, light intensity threshold, and distance threshold detected by the sensors in the electronic device, it is determined whether the electronic device is stored in a pocket or bag (i.e., the first state of the electronic device is determined to be either stored in a pocket or not stored). The following embodiments of this disclosure describe the method for determining the first state of the electronic device.

[0061] Figure 2 This is a flowchart illustrating a method for determining a first state of an electronic device according to an exemplary embodiment. Figure 2 As shown, the method includes steps S201, S202A, and S202B.

[0062] In step S201, in response to the electronic device not being used, light intensity data of the external environment of the electronic device is acquired, and distance data between the electronic device and objects in the external environment is acquired.

[0063] In step S202A, in response to the light intensity data collected by the electronic device being less than the light intensity threshold and the distance data collected by the electronic device being less than the distance threshold, the first state of the electronic device is determined to be the stored state.

[0064] In step S202B, in response to the light intensity data collected by the electronic device being greater than or equal to the light intensity threshold, and / or the distance data collected by the electronic device being greater than or equal to the distance threshold, the first state of the electronic device is determined to be a non-concealed state.

[0065] In this embodiment of the disclosure, the electronic device collects light intensity data and distance data based on a preset sampling frequency. The light intensity data and distance data used to determine the first state of the electronic device in this disclosure are the latest light intensity data and distance data collected by the electronic device.

[0066] In this embodiment of the disclosure, considering that the sensor values ​​detected by the optical sensor and the distance sensor in the electronic device will rapidly decrease when the electronic device is placed in a pocket or bag, this disclosure sets a distance threshold and a light intensity threshold. When the light intensity data detected by the optical sensor in the electronic device is less than the light intensity threshold, and the distance data detected by the distance sensor in the electronic device is less than the distance threshold, it is determined that the electronic device is stored in a pocket or bag; that is, the first state of the electronic device is the stored state. In one example, such as... Figure 3The diagram illustrates the changes in data detected by the distance sensor when an electronic device switches between a stored state and an unstored state. The data detected by the distance sensor decreases rapidly when the electronic device is put into the pocket, and increases rapidly when the electronic device is removed from the pocket.

[0067] It is understandable that relying solely on light intensity data detected by an optical sensor or distance data detected by a distance sensor is insufficient to accurately determine whether an electronic device is placed in a pocket or bag. For example, in low-light (nighttime) conditions, the light intensity data detected by the optical sensor will consistently fall below the light intensity threshold; similarly, if the distance sensor is obstructed, the distance data it detects will also be below the light intensity threshold. Therefore, this disclosure considers both the relationship between light intensity data and the light intensity threshold, as well as the optical relationship between distance data and the distance threshold. When the light intensity data is greater than or equal to the light intensity threshold, and / or the distance data is greater than or equal to the distance threshold, it is determined that the electronic device is not in a pocket or bag. This ensures the accuracy of the detection results and prevents the accidental triggering of the anti-accidental touch function.

[0068] In this embodiment of the disclosure, the motion data collected by the electronic device includes acceleration data of the electronic device. The electronic device collects acceleration data based on a preset sampling frequency. The acceleration data collected by the electronic device includes a first acceleration parallel to a first coordinate axis, a second acceleration parallel to a second coordinate axis, and a third acceleration parallel to a third coordinate axis. The first, second, and third coordinate axes are mutually perpendicular coordinate axes in world coordinates, and the first coordinate axis is parallel to the direction of gravity. Furthermore, based on multiple sets of recently collected acceleration data, the motion state of the electronic device at the most recent moment can be determined (i.e., the second state of the electronic device is determined). The following embodiments of this disclosure describe the method for determining the second state of the electronic device.

[0069] Figure 4 This is a flowchart illustrating a method for determining a second state of an electronic device according to an exemplary embodiment. Figure 4 As shown, the method includes steps S301, S302, S303A, and S303B.

[0070] In step S301, based on the first acceleration, the second acceleration, and the third acceleration among the n acceleration data collected by the electronic device in a time sequence within a first preset time period, the n absolute accelerations corresponding to the n acceleration data are determined in a time sequence.

[0071] In step S302, the absolute difference between each two adjacent absolute accelerations in the n absolute accelerations arranged in time sequence is determined to obtain a second number of absolute differences. The number of absolute differences greater than the difference threshold in the second number of absolute differences is determined as the first number, where n is a positive integer and the second number is n-1.

[0072] In step S303A, in response to the first quantity being greater than the quantity threshold, the second state of the electronic device is determined to be a motion state.

[0073] In step S303B, in response to the first quantity being less than or equal to the quantity threshold, the second state of the electronic device is determined to be a non-motion state.

[0074] Understandably, if an electronic device is in a user's pocket or bag and the user is in motion, the electronic device will also enter motion simultaneously with the user, and the acceleration data collected by the accelerometer in the electronic device will continuously change accordingly. For example... Figure 5 A schematic diagram illustrating the changes in data detected by an accelerometer in an electronic device within a backpack. The horizontal axis represents time in milliseconds (ms), and the vertical axis represents acceleration in meters per second (m / s²). 2 When the user is in motion, the electronic devices in the backpack move accordingly, and the acceleration data collected by the accelerometer in the electronic devices will change continuously.

[0075] In this embodiment of the disclosure, the accelerometer in the electronic device collects acceleration data based on a preset sampling frequency. When it is necessary to determine whether the electronic device is in motion, multiple sets of acceleration data collected sequentially within a preset time period from the current time are acquired. The multiple sets of acceleration data collected sequentially reflect the acceleration changes of the electronic device within the preset time period from the current time. For the multiple sets of acceleration data collected sequentially within the preset time period from the current time, calculations are performed based on the first acceleration, second acceleration, and third acceleration contained in each set of acceleration data to obtain multiple absolute accelerations corresponding to the multiple sets of acceleration data. The multiple absolute accelerations are arranged sequentially. The absolute difference between adjacent absolute accelerations in the sequentially arranged absolute accelerations reflects the acceleration changes of the electronic device within the preset time period from the current time. If the absolute difference between adjacent absolute accelerations is large, it indicates that a large acceleration change has occurred between adjacent time points corresponding to adjacent absolute accelerations.

[0076] Furthermore, if the number of absolute differences exceeding a threshold (the first quantity) is greater than a quantity threshold, it indicates that the acceleration of the electronic device has undergone a significant and continuous change within a preset time period from the current time. This confirms that the electronic device is in motion, meaning it is both in a stored state and in motion, potentially leading to accidental touches. Therefore, the accidental touch prevention function is activated. Similarly, if the number of absolute differences exceeding a threshold (the first quantity) is greater than a quantity threshold, it indicates that the acceleration of the electronic device has not undergone a significant and continuous change within a preset time period from the current time. In this case, it is necessary to further determine the current state of the electronic device.

[0077] In one example, the formula for calculating absolute acceleration is: norm_acc=√(accx2+accy2+accz2)

[0078] Where norm_acc is the absolute acceleration, accz is the first acceleration, accx is the second acceleration, and accy is the third acceleration.

[0079] In one example, the formula for calculating the absolute difference between adjacent absolute accelerations is:

[0080] Δacc=|norm_acct-norm_acc(t-1)|

[0081] Where Δacc is the absolute difference between adjacent absolute accelerations, norm_acct is the absolute acceleration that comes later in time among adjacent absolute accelerations, and norm_acc(t-1) is the absolute acceleration that comes earlier in time among adjacent absolute accelerations.

[0082] It is understandable that if the electronic device is in the user's pocket or bag and the user is not moving, or if the user is not carrying a pocket or bag containing the electronic device, the electronic device will move only slightly or not at all. Consequently, the acceleration data collected by the accelerometer in the electronic device will show little or no change. The following embodiments further illustrate the method for preventing accidental touches in this disclosure.

[0083] Figure 6 This is a flowchart illustrating an exemplary method for preventing accidental touches. Figure 6 As shown, the method includes steps S401 to S402.

[0084] In step S401, in response to the second state of the electronic device being a non-motion state, for the n acceleration data collected by the electronic device in a time sequence within a second preset time period, the n absolute accelerations corresponding to the n acceleration data are determined respectively, and the absolute difference between each two adjacent absolute accelerations in the n absolute accelerations in a time sequence is determined respectively, to obtain a second number of absolute differences. The number of absolute differences less than or equal to the difference threshold in the second number of absolute differences is determined as the second number, and the number of acceleration data groups that meet the preset requirements in the n acceleration data is determined as the third number.

[0085] In step S402, in response to the ratio between the first quantity and the second quantity being greater than the first ratio threshold, and / or the ratio between the third quantity and n being greater than the first ratio threshold, it is determined that the electronic device is in a static state, and the anti-accidental touch function of the electronic device is turned off.

[0086] Wherein, if the acceleration data meets the preset requirements, the second acceleration and the third acceleration included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within the preset acceleration range.

[0087] In this embodiment of the disclosure, when it is determined that the electronic device is in a non-moving state, the change of acceleration parameters of the electronic device within the preset time period from the current time can be determined based on multiple sets of acceleration data collected sequentially by the accelerometer in the electronic device within a preset time period from the current time, and the state of the electronic device can be further determined. This disclosure can further determine the state of the electronic device based on multiple absolute accelerations corresponding to n acceleration data points collected sequentially, or it can further determine the state of the electronic device based on the first acceleration, second acceleration, and third acceleration included in the n acceleration data points collected sequentially.

[0088] Specifically, when determining the state of the electronic device based on multiple absolute accelerations corresponding to n acceleration data points collected in a time sequence: The absolute difference between adjacent absolute accelerations among the multiple time-series absolute accelerations is determined, and the number of absolute differences less than or equal to a difference threshold (indicating small changes between adjacent absolute accelerations) is determined (the second number). Then, the ratio between the number of absolute differences less than the difference threshold and the total number of absolute differences is determined. If this ratio is greater than a first ratio threshold, it indicates that the acceleration change of the electronic device within a preset time period from the current moment is small. The electronic device is determined to be in a static state, assuming that accidental touches will not occur under these conditions. The anti-accidental touch function of the electronic device is then disabled.

[0089] In determining the state of the electronic device based on the first, second, and third accelerations contained in the n acceleration data collected sequentially: since the first, second, and third accelerations are components of the absolute acceleration of the electronic device, if the first, second, and third accelerations remain within a certain value range, the electronic device can be considered to be in a stationary state. This disclosure determines whether the first, second, and third accelerations contained in each of the n acceleration data points meet preset requirements, i.e., the second and third accelerations included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within a preset acceleration range, indicating that the absolute acceleration of the electronic device is relatively small. If the ratio between the number of acceleration data points meeting the preset requirements and n is greater than a first preset ratio (e.g., 80%), the electronic device is considered to be continuously in a state of low acceleration. The electronic device is determined to be in a stationary state, and it is assumed that accidental touches will not occur under this condition. The anti-accidental touch function of the electronic device is then disabled.

[0090] In an exemplary embodiment of this disclosure, the first acceleration threshold is 0.5, and the preset acceleration range is (9.2, 10.2). Then, acceleration data meeting the preset requirements is characterized as follows:

[0091] [|(acc_x)|<0.5]&&[|(acc_y)|<0.5]&&[|(acc_z)|>9.2]&&[(acc_z)<|10.2|]

[0092] Where acc_x is the second acceleration, acc_y is the third acceleration, and acc_z is the first acceleration.

[0093] In an exemplary embodiment of this disclosure, such as Figure 7The flowchart shown in the document illustrates the determination of the current state of an electronic device based on data detected by a motion sensor. This disclosure employs the following method to determine the current state of the electronic device based on acceleration data detected by an accelerometer: In response to starting the determination of the current state of the electronic device based on acceleration data detected by the accelerometer, data is captured by an absolute motion detection sensor. A vector is calculated using the captured data (accelerometer data detected by the accelerometer): norm_acc = sqrt(accx^2, accy^2, accz^2), where sqrt is a root-finding operation, norm_acc is the absolute acceleration of the electronic device, accx is the second acceleration in the accelerometer data, accy is the third acceleration in the accelerometer data, and accz is the third acceleration in the accelerometer data. Determining the current state based on the ACC accelerometer, i.e., determining the current state of the electronic device based on sensor data detected by the ACC accelerometer, allows for the determination of whether the electronic device is in a stationary state, a gripped state, or a moving state.

[0094] In this embodiment of the disclosure, if it is determined that the electronic device is neither in motion nor in a stationary state, then the electronic device can be considered to be in another state (such as a holding state). In this case, the electronic device can be controlled to operate with the anti-accidental touch function turned off based on the sensor data detected by each sensor in the electronic device. The following embodiments of this disclosure describe the method for controlling the anti-accidental touch function to be turned off.

[0095] Figure 8 This is a flowchart illustrating a method for controlling and disabling the accidental touch prevention function according to an exemplary embodiment. Figure 8 As shown, the method includes steps S501, S502A, and S502B.

[0096] In step S501, in response to the second state of the electronic device being a non-motion state, for the n acceleration data collected by the electronic device in a time sequence within a second preset time period, the n absolute accelerations corresponding to the n acceleration data are determined in a time sequence, and the absolute difference between each two adjacent absolute accelerations in the n absolute accelerations in a time sequence is determined to obtain a second number of absolute differences. The number of absolute differences less than or equal to the difference threshold in the second number of absolute differences is determined as the second number, and the number of acceleration data groups that meet the preset requirements in the n acceleration data is determined as the third number.

[0097] In step S502A, in response to the ratio between the first quantity and the second quantity being less than or equal to the first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and based on the motion data collected at the previous time node, it is determined that the second state of the electronic device is a non-motion state, and the anti-accidental touch function of the electronic device is turned off. In the case that the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold and the ratio between the third quantity and n is less than or equal to the first ratio threshold, it is determined that the electronic device is in the third state.

[0098] In step S502B, in response to the ratio between the first quantity and the second quantity being less than or equal to the first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and based on the motion data collected at the previous time node, the second state of the electronic device is determined to be a motion state, and based on the motion data collected subsequently for m consecutive times, the electronic device is determined to be in the third state, and the anti-accidental touch function of the electronic device is turned off, where m is a positive integer.

[0099] In this embodiment of the disclosure, if it is determined that the electronic device is neither in motion nor in a stationary state (i.e., the ratio between the second quantity and the number of absolute value differences is less than or equal to the first ratio threshold, and the ratio between the third quantity and n is less than or equal to the first ratio threshold), then the electronic device is considered to be in another state (the third state, such as the state where the user holds the electronic device). In this case, if the electronic device was previously determined to be in a non-motion state when its state was determined, i.e., the second state of the electronic device was determined to be a non-motion state based on the sensor data such as light intensity data, distance data, and acceleration data previously collected by the electronic device, and the anti-mistouch function of the electronic device is determined to be in a deactivated state, then the anti-mistouch function of the electronic device is kept deactivated (the anti-mistouch function of the electronic device is turned off). If the electronic device was previously determined to be in motion and in a stored state when its state was determined, i.e., the second state of the electronic device was determined to be in motion state based on the sensor data such as light intensity data, distance data, and acceleration data previously collected by the electronic device, and the anti-mistouch function of the electronic device is determined to be in a motion state, then the anti-mistouch function is turned off after the electronic device maintains the current state for a certain period of time. That is, based on the subsequently collected sensor data (including light intensity data, distance data, and acceleration data, etc.), the electronic device is determined to be in the third state for the second nth consecutive time, and the anti-accidental touch function of the electronic device is turned off.

[0100] In an exemplary embodiment of this disclosure, such as Figure 9The flowchart of the method for controlling an electronic device to enter and exit pocket mode is shown in the figure. Pocket mode in the figure can be considered as the mode for enabling the anti-mistouch function. This disclosure uses the following method to control the electronic device to enable and disable the anti-mistouch function: Continuously acquire distance sensor data based on a preset sampling frequency. Determine whether the device is in a backpack based on the distance data, i.e., determine whether the electronic device is in a pocket or backpack based on the sensor data. If it is determined that the electronic device is not in a pocket or backpack, then check whether the current device is in a stationary mode (determine whether the electronic device is in a stationary state). If it is determined that the electronic device is in a pocket or backpack, then determine whether it is moving based on the data detected by the accelerometer, i.e., determine whether the electronic device is in motion. If it is determined that the electronic device is in motion, then enter pocket mode (i.e., enable the anti-mistouch function) and set the loop count Count = 10, and then determine the state of the electronic device based on the continuously acquired sensor data. If it is determined that the electronic device is not in motion, then check whether the current device is in a stationary mode. If the current device is in a stationary mode, then exit pocket mode: loop count Count = 0. If the current device is not in a stationary mode, then determine whether the loop count Count is greater than 0 (loop count Count > 0). If the loop count is greater than 0, then decrement the loop count by one (loop count' = count - 1). If the loop count is not greater than 0, then exit pocket mode.

[0101] It is understandable that even when an electronic device is placed in a pocket or bag, the user may still have a need to control it via touch, such as through gestures. Furthermore, the touchscreen of the electronic device contains a capacitive sensor with multiple touch points triggered by touch operations. Even further, the touch points triggered by user-initiated touches and those triggered by accidental touches may differ in layout. This disclosure can incorporate the differences between user-initiated and accidental touches to implement an anti-accidental touch function. The following embodiments of this disclosure illustrate a method for implementing the anti-accidental touch function.

[0102] Figure 10 This is a flowchart illustrating a method for performing an anti-accidental touch function according to an exemplary embodiment. Figure 10 As shown, the method includes steps S601 to S603.

[0103] In step S601, in response to receiving a touch operation, the number of reporting points corresponding to the touch operation is determined. The touch sensor of the electronic device includes multiple touch nodes, and the reporting point is the touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor.

[0104] In step S602, the touch type of the touch operation is determined based on the number of reported points and the second quantity threshold. The touch type includes accidental touch and non-accidental touch.

[0105] In step S603, the touch type in response to the touch operation is a mis-touch, and the touch operation is blocked.

[0106] In this embodiment, the touchscreen of the electronic device is equipped with a capacitive sensor. The capacitive sensor contains multiple contact points, and the parameters of these contact points change due to user touch operations. The reported points in this disclosure are those contact points whose parameters change due to user touch operations. It is understood that when a user performs a touch operation, the touch area is often small, meaning the number of triggered capacitive sensor contact points is relatively small, resulting in relatively few reported points. However, accidental touches are often caused by large-area friction between the electronic device's touchscreen and the fabric of a pocket or bag (e.g., the user's body part is separated from the electronic device's touchscreen by the fabric of a pocket). In these cases, the touch area is often large, meaning the number of triggered capacitive sensor contact points is relatively large, resulting in relatively many reported points. Based on the difference in the number of reported points corresponding to user-initiated touches and accidental touches, this disclosure sets a second quantity threshold. Based on the number of triggered reported points on the capacitive sensor and the second quantity threshold, it is determined whether the received touch operation is an accidental touch or not. When a received touch operation is determined to be a false touch, the false touch operation is blocked, and the corresponding control command is not triggered. Similarly, when a received touch operation is determined to be a valid false touch, the false touch operation is reported, and the corresponding control command is triggered. It is understood that the contact density of the capacitive sensors on different electronic device touchscreens varies, meaning the number of contact points per unit area is inconsistent. Therefore, this disclosure sets different second quantity thresholds for different electronic devices. In one example, for electronic devices with a higher contact density in the capacitive sensor, the second quantity threshold is set to 500, while for other electronic devices with a higher contact density in the capacitive sensor, the second quantity threshold is set to 300. In one example, such as... Figure 11 The diagram shows the triggering of a capacitive sensor in the case of large-area touch operation. When the touch operation is a touch operation, the touch area is large and the number of touch points (i.e., reporting points) triggered by the touch operation is large.

[0107] It is understandable that touch points triggered by user-initiated touches and touch points triggered by accidental touches will differ in layout. This disclosure can combine the differences between user-initiated touches and accidental touches to implement an anti-accidental touch function. The following embodiments of this disclosure describe a method for determining the touch type of a touch operation.

[0108] Figure 12 This is a flowchart illustrating a method for determining the touch type of a touch operation according to an exemplary embodiment. Figure 12 As shown, the method includes steps S701, S702A, and S702B.

[0109] In step S701, in response to receiving a touch operation, the number of reporting points corresponding to the touch operation is determined. The touch sensor of the electronic device includes multiple touch nodes, and the reporting point is the touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor.

[0110] In step S702A, in response to the number of reported points being greater than the second quantity threshold, the touch operation is determined to be a mis-touch.

[0111] In step S702B, in response to the number of reporting points being less than or equal to a second quantity threshold, a rectangular frame surrounding all reporting points is determined, and the ratio between the number of reporting points and the number of all touch nodes in the rectangular frame is determined. Based on the ratio and the ratio threshold, the touch type of the touch operation is determined, and each frame line of the rectangular frame coincides with the outer edge of different reporting points in the reporting points.

[0112] In this embodiment of the disclosure, if the number of reported points is greater than the second number threshold, the touch area of ​​the touch operation is considered to be too large, the touch type of the touch operation is determined to be a false touch, and the touch operation is blocked.

[0113] In this embodiment, when the number of reported points is less than or equal to a second threshold, the touch type corresponding to the touch operation is further determined based on the layout of the reported points triggered by the touch operation. It is understood that when a user performs a touch operation, the touch position is often concentrated in a certain area of ​​the touchscreen, and the triggered touch points are relatively concentrated and continuous. However, when a mis-touch occurs, the touch position is often relatively dispersed, and multiple areas may even be triggered simultaneously, resulting in relatively dispersed and discontinuous touch points. Based on this, this disclosure determines a rectangular frame that encloses all reported points by having different frame lines pass through the outer edges of the most recent touch points closest to the screen edge among the triggered reported points. The ratio between the number of reported points and the number of all touch nodes within the rectangular frame is determined. Based on this ratio and a ratio threshold, the touch type of the touch operation is determined, with each frame line of the rectangular frame coinciding with the outer edge of a different reported point. It is understandable that when there are multiple triggered areas on the display screen, that is, when there are multiple reporting point sets on the display screen (the reporting points in each reporting point set are continuous, and the reporting points between different reporting point sets are not continuous), for each reporting point set, a rectangle surrounding the reporting point set is determined, and a corresponding ratio is determined for each rectangle. The average of all ratios is determined as the ratio corresponding to this touch operation.

[0114] The following embodiments of this disclosure illustrate a method for determining the touch type of a touch operation based on a ratio and a ratio threshold.

[0115] Figure 13 This is a flowchart illustrating a method for determining the touch type of a touch operation based on a ratio and a ratio threshold, according to an exemplary embodiment. Figure 13 As shown, the method includes steps S801, S802A, and S802B.

[0116] In step S801, in response to the number of reporting points being less than or equal to a second quantity threshold, a rectangular frame surrounding all reporting points is determined, and the ratio between the number of reporting points and the number of all touch nodes within the rectangular frame is determined.

[0117] In step S802A, in response to the ratio being greater than the ratio threshold, the touch type of the touch operation is determined to be non-mistaken touch.

[0118] In step S802B, in response to the ratio being less than or equal to the ratio threshold, the touch operation is determined to be a mis-touch.

[0119] In this embodiment of the disclosure, when the number of reporting points is less than or equal to a second quantity threshold, it is considered necessary to further determine the type of touch operation based on the layout of the triggered reporting points. After determining a rectangular frame surrounding all reporting points and determining the ratio between the number of reporting points and the number of all touch nodes within the rectangular frame, the touch type of the touch operation is determined based on the ratio and the ratio threshold. When the ratio is greater than the ratio threshold, it indicates that the triggered reporting points are relatively concentrated on the touch screen, that is, the touch operation is concentrated at a certain position on the touch screen, and the touch operation is determined to be a user-triggered operation, and the touch type of the touch operation is determined to be a non-mistaken touch. If the ratio is less than or equal to the ratio threshold, it indicates that the triggered reporting points are relatively dispersed on the touch screen, that is, the touch operation is distributed in different positions and phases on the touch screen, and the touch operation is determined to be a user-initiated operation, and the touch type of the touch operation is determined to be a mistaken touch.

[0120] In an exemplary embodiment of this disclosure, such as Figure 14 The diagram illustrates the reporting points triggered by the capacitive sensor during touch operation (excluding accidental touches). The set proportional threshold is 0.5, and the second quantity threshold is 300. The rectangle enclosing all reporting points is a 4x5 rectangle containing 20 nodes, less than 500. Of these, 7 nodes were not triggered (duty cycle 7 / 20 = 0.35), and 13 nodes were triggered (duty cycle 13 / 20 = 0.65, greater than 0.5). Therefore... Figure 14 If the corresponding touch operation is not a mis-touch, the corresponding instruction will be reported.

[0121] In an exemplary embodiment of this disclosure, such as Figure 15The diagram illustrates the trigger points of the capacitive sensor in the event of a erroneous touch. The set proportional threshold is 0.5, and the second quantity threshold is 300. The diagram includes two trigger areas corresponding to touch operations. One is completely enclosed by a 6x9 rectangle, containing 54 nodes, less than 500. Of these, 30 nodes are not triggered (duty cycle 30 / 24 = 0.56), and 24 nodes are triggered (reporting points), corresponding to a ratio of 30 / 24 = 0.44, less than 0.5. The second area is completely enclosed by a 3x4 rectangle, containing 12 nodes, less than 500. Of these, 6 nodes are not triggered (duty cycle 6 / 12 = 0.5), and 6 nodes are triggered (reporting points), corresponding to a ratio of 6 / 12 = 0.5, which equals 0.5. Therefore... Figure 15 The corresponding touch operation is considered a mis-touch and the corresponding instruction will not be reported.

[0122] In an exemplary embodiment of this disclosure, such as Figure 16 The flowchart of the method for implementing the anti-mistouch function is shown. The anti-mistouch function is implemented as follows: Obtain the current reporting point status and whether it is in the screen-off gesture detection state of the electronic device. Determine if the touch shape is a large area (whether the number of reported points is greater than the number threshold). If the touch shape is a large area (the number of reported points is greater than the number threshold), do not respond to the current touch event. If the touch shape is not a large area (the number of reported points is less than the number threshold), determine if the current mode is pocket mode (determine whether the anti-mistouch function is enabled). If it is not pocket mode (it is determined that the anti-mistouch function is not enabled), report the touch event. If it is pocket mode (it is determined that the anti-mistouch function is enabled), confirm whether the current reported point meets the conditions (whether the corresponding ratio is greater than the ratio threshold). If the current reported point does not meet the conditions (the corresponding ratio is less than or equal to the ratio threshold), do not respond to the current touch event. If the current reported point meets the conditions (the corresponding ratio is greater than the ratio threshold), confirm whether the current touch event is a double-tap wake-up or fingerprint wake-up event. If the current touch event is a double-tap wake-up or fingerprint wake-up event, meet the screen-off wake-up conditions and wake up the electronic device. If the current touch event is not a double-tap to wake or a fingerprint wake-up event, obtain the current reporting status and whether it is the screen-off gesture detection state of the electronic device.

[0123] In this embodiment, when the electronic device is not in use, it is determined whether it is in a stored state based on the light intensity data of the external environment and the distance data between the electronic device and objects in the external environment collected by the electronic device. When the electronic device is in a stored state, it is determined whether it is in motion based on the motion data collected by the electronic device. When the electronic device is in motion, the accidental touch prevention function of the electronic device is activated. When the accidental touch prevention function is activated, if a touch operation is received, the number of trigger points of the touch sensor corresponding to the touch operation is determined. Based on the number of trigger points and a second threshold, the touch type of the touch operation is determined to be either accidental touch or non-accidental touch. If the touch type of the touch operation is accidental touch, the touch operation is blocked. Through this disclosure, the accidental touch prevention function of the electronic device is activated under appropriate conditions, ensuring the effectiveness and sensitivity of the accidental touch prevention function. It also ensures that the electronic device can still normally receive touch commands issued by the user when the accidental touch prevention function is activated.

[0124] Based on the same concept, this disclosure also provides an anti-accidental touch device 100.

[0125] It is understood that the anti-accidental touch device 100 provided in this disclosure includes hardware structures and / or software modules corresponding to each function in order to achieve the above-mentioned functions. In conjunction with the units and algorithm steps of the various examples disclosed in this disclosure, this disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the technical solutions of this disclosure.

[0126] Figure 17 This is a block diagram illustrating an anti-accidental touch device 100 according to an exemplary embodiment. (Refer to...) Figure 17 The device includes a determining unit 101, a processing unit 102, and an execution unit 103.

[0127] The determining unit 101 is configured to, in response to the electronic device being unused, determine a first state of the electronic device based on ambient light intensity data and distance data between the electronic device and objects in the ambient environment collected by the electronic device. The first state includes a stored state or an unstored state. The processing unit 102 is configured to, in response to the electronic device being in a stored state, determine a second state of the electronic device based on motion data collected by the electronic device. The second state includes a moving state or a non-moving state. The executing unit 103 is configured to, in response to the second state being in a moving state, activate the anti-accidental touch function of the electronic device.

[0128] In one embodiment, the electronic device collects light intensity data and distance data based on a preset sampling frequency. The determining unit 101 determines the first state of the electronic device based on the light intensity data and distance data collected by the electronic device in the following manner: In response to the light intensity data collected by the electronic device being less than a light intensity threshold and the distance data collected by the electronic device being less than a distance threshold, the first state of the electronic device is determined to be a "received" state. In response to the light intensity data collected by the electronic device being greater than or equal to the light intensity threshold and / or the distance data collected by the electronic device being greater than or equal to the distance threshold, the first state of the electronic device is determined to be a "non-received" state.

[0129] In one embodiment, the motion data collected by the electronic device includes acceleration data of the electronic device. The electronic device collects acceleration data based on a preset sampling frequency. The acceleration data collected by the electronic device includes a first acceleration parallel to a first coordinate axis, a second acceleration parallel to a second coordinate axis, and a third acceleration parallel to a third coordinate axis. The first, second, and third coordinate axes are mutually perpendicular coordinate axes in world coordinates, and the first coordinate axis is parallel to the direction of gravity. The processing unit 102 determines the second state of the electronic device based on the acceleration data collected by the electronic device in the following manner: Based on the first, second, and third accelerations among the n acceleration data collected by the electronic device in a first preset time period, n absolute accelerations arranged in time sequence are determined for each of the n acceleration data. The absolute difference between each pair of adjacent absolute accelerations among the n absolute accelerations arranged in time sequence is determined to obtain a second number of absolute differences. The number of absolute differences greater than a difference threshold among the second number of absolute differences is determined as a first number, where n is a positive integer and the second number is n-1. In response to a first quantity exceeding a quantity threshold, the second state of the electronic device is determined to be a motion state. In response to a first quantity being less than or equal to a quantity threshold, the second state of the electronic device is determined to be a non-motion state.

[0130] In one embodiment, the processing unit 102 is further configured to: respond to the second state of the electronic device being a non-motion state, for n acceleration data collected sequentially by the electronic device within a second preset time period, determine n absolute accelerations corresponding to each of the n acceleration data, and determine the absolute difference between each pair of adjacent absolute accelerations in the n sequentially arranged absolute accelerations, obtaining a second number of absolute differences; determine the number of absolute differences less than or equal to a difference threshold among the second number of absolute differences as a second quantity; and determine the number of acceleration data groups that meet preset requirements among the n acceleration data as a third quantity. Responding to the ratio between the first quantity and the second quantity being greater than a first ratio threshold, and / or the ratio between the third quantity and n being greater than the first ratio threshold, determine that the electronic device is in a stationary state, and disable the anti-accidental touch function of the electronic device. Wherein, when the acceleration data meets the preset requirements, the second acceleration and the third acceleration included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within a preset acceleration range.

[0131] In one embodiment, the processing unit 102 is further configured to: disable the anti-mistouch function of the electronic device in response to the following: the ratio between the first quantity and the second quantity being less than or equal to a first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and the second state of the electronic device being determined to be a non-motion state based on motion data collected at the previous time node. Specifically, the electronic device is determined to be in a third state when the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold and the ratio between the third quantity and n is less than or equal to the first ratio threshold. Furthermore, in response to the following: the ratio between the first quantity and the second quantity being less than or equal to the first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and the second state of the electronic device being determined to be a motion state based on motion data collected at the previous time node, and the electronic device being determined to be in a third state m consecutively based on subsequently collected motion data, the anti-mistouch function of the electronic device is disabled. Here, m is a positive integer.

[0132] In one embodiment, the execution unit 103 performs the anti-mistouch function as follows: In response to receiving a touch operation, it determines the number of reporting points corresponding to the touch operation. The touch sensor of the electronic device includes multiple touch nodes, and the reporting point is a touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor. Based on the number of reporting points and a second quantity threshold, it determines the touch type of the touch operation, which includes accidental touch and non-accidental touch. In response to the touch operation being classified as accidental touch, the touch operation is blocked.

[0133] In one embodiment, the execution unit 103 determines the touch type of the touch operation based on the number of reporting points and a second quantity threshold as follows: If the number of reporting points is greater than the second quantity threshold, the touch type of the touch operation is determined to be a mis-touch. If the number of reporting points is less than or equal to the second quantity threshold, a rectangular frame surrounding all reporting points is determined, and the ratio between the number of reporting points and the number of all touch nodes within the rectangular frame is determined. Based on the ratio and a ratio threshold, the touch type of the touch operation is determined, wherein each frame line of the rectangular frame coincides with the outer edge of a different reporting point.

[0134] In one embodiment, the execution unit 103 determines the touch type of the touch operation based on a ratio and a ratio threshold as follows: If the ratio is greater than the ratio threshold, the touch type of the touch operation is determined to be a non-mistaken touch. If the ratio is less than or equal to the ratio threshold, the touch type of the touch operation is determined to be a mistaken touch.

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

[0136] Figure 18 This is a block diagram illustrating a device 200 for preventing accidental touches according to an exemplary embodiment. The device 200 can be provided as a terminal. For example, the device 200 can be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.

[0137] Reference Figure 18 The device 200 may include one or more of the following components: processing component 202, memory 204, power component 206, multimedia component 208, audio component 210, input / output (I / O) interface 212, sensor component 214, and communication component 216.

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

[0139] Memory 204 is configured to store various types of data to support the operation of device 200. Examples of such data include instructions for any application or method operating on device 200, contact data, phonebook data, messages, pictures, videos, etc. Memory 204 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.

[0140] The power supply component 206 provides power to the various components of the device 200. The power supply component 206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 200.

[0141] Multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 208 includes a front-facing camera and / or a rear-facing camera. When the device 200 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0142] Audio component 210 is configured to output and / or input audio signals. For example, audio component 210 includes a microphone (MIC) configured to receive external audio signals when device 200 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 204 or transmitted via communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.

[0143] I / O interface 212 provides an interface between processing component 202 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0144] Sensor assembly 214 includes one or more sensors for providing status assessments of various aspects of device 200. For example, sensor assembly 214 may detect the on / off state of device 200, the relative positioning of components such as the display and keypad of device 200, changes in the position of device 200 or a component of device 200, the presence or absence of user contact with device 200, the orientation or acceleration / deceleration of device 200, and temperature changes of device 200. Sensor assembly 214 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 214 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0145] Communication component 216 is configured to facilitate wired or wireless communication between device 200 and other devices. Device 200 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 216 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 216 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0146] In an exemplary embodiment, the apparatus 200 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

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

[0148] Figure 19 This is a block diagram illustrating a device 300 for preventing accidental touches according to an exemplary embodiment. For example, device 300 may be provided as a server. (Refer to...) Figure 19The device 300 includes a processing component 322, which further includes one or more processors, and memory resources represented by memory 332 for storing instructions, such as application programs, that can be executed by the processing component 322. The application programs stored in memory 332 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 322 is configured to execute instructions to perform the methods described above…

[0149] Device 300 may also include a power supply component 326 configured to perform power management of device 300, a wired or wireless network interface 350 configured to connect device 300 to a network, and an input / output (I / O) interface 358. Device 300 may operate on an operating system stored in memory 332, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, or similar.

[0150] It is understood that in this disclosure, "multiple" refers to two or more, and other quantifiers are similar. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The singular forms "a," "the," and "the" are also intended to include the plural forms unless the context clearly indicates otherwise.

[0151] It is further understood that the terms "first," "second," etc., are used to describe various types of information, but this information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another, and do not indicate a specific order or degree of importance. In fact, the expressions "first," "second," etc., are completely interchangeable. For example, without departing from the scope of this disclosure, first information can also be referred to as second information, and similarly, second information can also be referred to as first information.

[0152] It is further understood that the terms “center,” “longitudinal,” “lateral,” “front,” “rear,” “up,” “down,” “left,” “right,” “vertical,” “horizontal,” “top,” “bottom,” “inner,” and “outer,” etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this embodiment and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation.

[0153] It can be further understood that, unless otherwise specified, "connection" includes both direct connections where no other components exist between the two parties and indirect connections where other components exist between them.

[0154] It is further understood that although operations are described in a specific order in the accompanying drawings in the embodiments of this disclosure, this should not be construed as requiring these operations to be performed in the specific order or serial order shown, or requiring all of the shown operations to be performed to obtain the desired result. In certain environments, multitasking and parallel processing may be advantageous.

[0155] 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 the invention that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein.

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

Claims

1. A method for preventing accidental touches, characterized in that, include: In response to the electronic device being unused, a first state of the electronic device is determined based on the light intensity data of the external environment collected by the electronic device and the distance data between the electronic device and objects in the external environment. The first state includes a stored state or a non-stored state. In response to the first state of the electronic device being a stored state, a second state of the electronic device is determined based on the motion data collected by the electronic device, the second state including a motion state or a non-motion state; In response to the second state being a motion state, the anti-accidental touch function of the electronic device is activated.

2. The method according to claim 1, characterized in that, The electronic device collects light intensity data and distance data based on a preset sampling frequency. Determining the first state of the electronic device based on the collected light intensity data and distance data includes: In response to the fact that the light intensity data collected by the electronic device is less than the light intensity threshold and the distance data collected by the electronic device is less than the distance threshold, the first state of the electronic device is determined to be the storage state. In response to the light intensity data collected by the electronic device being greater than or equal to a light intensity threshold, and / or the distance data collected by the electronic device being greater than or equal to a distance threshold, the first state of the electronic device is determined to be a non-concealed state.

3. The method according to claim 1, characterized in that, The motion data collected by the electronic device includes acceleration data of the electronic device. The electronic device collects the acceleration data based on a preset sampling frequency. The acceleration data collected by the electronic device includes a first acceleration parallel to the first coordinate axis, a second acceleration parallel to the second coordinate axis, and a third acceleration parallel to the third coordinate axis. The first coordinate axis, the second coordinate axis, and the third coordinate axis are mutually perpendicular coordinate axes in world coordinates, and the first coordinate axis is parallel to the direction of gravity. Determining the second state of the electronic device based on the acceleration data collected by the electronic device includes: Based on the first acceleration, second acceleration, and third acceleration among the n acceleration data collected sequentially by the electronic device within a first preset time period, the n absolute accelerations corresponding to the n acceleration data are determined in sequential order. Determine the absolute difference between each pair of adjacent absolute accelerations in n time-series absolute accelerations to obtain a second number of absolute differences. Then, determine the number of absolute differences in the second number of absolute differences that are greater than the difference threshold as the first number, where n is a positive integer and the second number is n-1. In response to the first quantity being greater than the quantity threshold, the second state of the electronic device is determined to be a motion state; In response to the first quantity being less than or equal to a quantity threshold, the second state of the electronic device is determined to be a non-motion state.

4. The method according to claim 3, characterized in that, The method further includes: In response to the second state of the electronic device being a non-motion state, for the n acceleration data collected by the electronic device in a time sequence within a second preset time period, n absolute accelerations corresponding to the n acceleration data are determined in a time sequence, and the absolute difference between each two adjacent absolute accelerations in the n absolute accelerations in a time sequence is determined to obtain a second number of absolute differences. The number of absolute differences less than or equal to the difference threshold in the second number of absolute differences is determined as the second number, and the number of acceleration data sets that meet the preset requirements in the n acceleration data is determined as the third number. In response to the ratio between the first quantity and the second quantity being greater than a first ratio threshold, and / or the ratio between the third quantity and n being greater than the first ratio threshold, it is determined that the electronic device is in a static state, and the anti-accidental touch function of the electronic device is turned off; Wherein, if the acceleration data meets the preset requirements, the second acceleration and the third acceleration included in the acceleration data are both less than the first acceleration threshold, and the third acceleration included in the acceleration data is within the preset acceleration range.

5. The method according to claim 4, characterized in that, The method further includes: In response to the fact that the ratio between the first quantity and the second quantity is less than or equal to a first ratio threshold, and the ratio between the third quantity and n is less than or equal to the first ratio threshold, and the second state of the electronic device is determined to be a non-motion state based on the motion data collected at the previous time node, the anti-accidental touch function of the electronic device is turned off. In the case that the ratio between the first quantity and the second quantity is less than or equal to the first ratio threshold and the ratio between the third quantity and n is less than or equal to the first ratio threshold, the electronic device is determined to be in a third state. In response to the ratio between the first quantity and the second quantity being less than or equal to a first ratio threshold, and the ratio between the third quantity and n being less than or equal to the first ratio threshold, and the second state of the electronic device being determined to be a motion state based on the motion data collected at the previous time node, and the electronic device being determined to be in the third state for m consecutive times based on the subsequently collected motion data, the anti-accidental touch function of the electronic device is turned off, where m is a positive integer.

6. The method according to claim 1, characterized in that, The electronic device implements the anti-accidental touch function in the following manner: In response to receiving a touch operation, the number of reporting points corresponding to the touch operation is determined. The touch sensor of the electronic device includes multiple touch nodes, and the reporting point is the touch point triggered by the touch operation among the multiple touch nodes included in the touch sensor. Based on the number of reported points and the second number threshold, the touch type of the touch operation is determined, and the touch type includes accidental touch and non-accidental touch; If the touch operation is a mis-touch, the touch operation is blocked.

7. The method according to claim 6, characterized in that, The step of determining the touch type of the touch operation based on the number of reported points and the second quantity threshold includes: In response to the number of reported points being greater than the second quantity threshold, the touch operation is determined to be a mis-touch. In response to the number of reported points being less than or equal to the second quantity threshold, a rectangular frame surrounding all reported points is determined, and the ratio between the number of reported points and the number of all touch nodes in the rectangular frame is determined. Based on the ratio and the ratio threshold, the touch type of the touch operation is determined, and each frame line of the rectangular frame coincides with the outer edge of different reported points.

8. The method according to claim 7, characterized in that, Determining the touch type of the touch operation based on the ratio and the ratio threshold includes: In response to the ratio being greater than a ratio threshold, the touch operation is determined to be a non-accidental touch. In response to the ratio being less than or equal to a ratio threshold, the touch operation is determined to be a mis-touch.

9. A device for preventing accidental touch, characterized in that, include: A determining unit is configured to, in response to the electronic device being unused, determine a first state of the electronic device based on light intensity data of the external environment collected by the electronic device and distance data between the electronic device and objects in the external environment, wherein the first state includes a stored state or a non-stored state. The processing unit is configured to, in response to a first state of the electronic device being a stored state, determine a second state of the electronic device based on motion data collected by the electronic device, wherein the second state includes a motion state or a non-motion state. An execution unit is configured to activate the anti-accidental touch function of the electronic device in response to the second state being a motion state.

10. An electronic device, characterized in that, include: processor: Memory used to store processor-executable instructions; The processor is configured to execute the anti-accidental touch method according to any one of claims 1 to 8.

11. A storage medium, characterized in that, The storage medium stores instructions that, when executed by a processor, enable the processor to perform the anti-accidental touch method as described in any one of claims 1 to 8.