Touch mode determination method, touch device control method and electronic equipment
By collecting and filtering water interference signal feature points within the target recognition cycle of the touch device, the problem of touch abnormality in scenarios such as rainy days is solved, and the accuracy and stability of the touch mode are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- FOCALTECH ELECTRONICS (SHENZHEN) CO LTD
- Filing Date
- 2026-01-30
- Publication Date
- 2026-05-12
AI Technical Summary
In rainy, humid, or wet user hands scenarios, raindrops, water films, or water flow adhering to the surface of the touch device can cause abnormal capacitance signals, leading to accidental touches, trajectory drift, or touch malfunction, affecting device usability and user experience.
By collecting peak values of multiple sensing points within the target frame during the target recognition cycle of the touch device, water interference signal feature points are identified, and the touch mode is determined based on the touch signal filtering dimension and the feature point movement direction filtering dimension.
It significantly improves the accuracy of touch mode, reduces the false judgment rate, and enhances the stability of touch devices and user experience in water-affected environments such as rain.
Smart Images

Figure CN122018730A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the field of capacitive touch technology, and particularly to a method for determining touch mode, a method for controlling a touch device, and an electronic device. Background Technology
[0002] In rainy, humid, or when users' hands are wet, raindrops, water films, or water streams adhering to the surface of touch devices can cause abnormal capacitive signals. If the interference signals from water cannot be effectively identified and distinguished from genuine touch signals, it can easily lead to accidental touches, trajectory drift, or touch malfunctions, severely impacting device usability and user experience. Therefore, it is necessary to accurately determine the touch mode of the touch device in order to dynamically activate corresponding anti-interference strategies and achieve stable and reliable touch response.
[0003] Currently, the industry generally adopts relatively simple water interference handling methods, such as setting a fixed threshold to filter out low-amplitude signals, globally reducing touch sensitivity, or directly entering "waterproof mode" and blocking part of the area when a large-area signal change is detected. However, these methods are difficult to distinguish between complex scenarios such as real rainfall, cloth wiping, or water residue on fingers, leading to frequent misjudgments in actual use and affecting the user experience. Summary of the Invention
[0004] In view of this, embodiments of this specification provide a touch mode determination method. One or more embodiments of this specification also relate to a touch device control method, a touch mode determination device, a touch device control device, an electronic device, a computer-readable storage medium, and a computer program product, to address the technical deficiencies existing in the prior art.
[0005] According to a first aspect of the embodiments of this specification, a touch mode determination method is provided, comprising: Within the target recognition cycle of the touch device, the peak values of multiple sensing points within the target frame are collected. The target recognition cycle includes multiple frames, and the target frame is any one of the multiple frames. Based on the peak values, water interference signal feature points within the target frame are identified from multiple sensing points; Based on the target dimension, the feature points of the water interference signal are filtered to obtain the target water interference signal feature points within the target frame. The target dimension includes at least one of the touch signal filtering dimension and the feature point motion direction filtering dimension. The touch mode of the touch device is determined based on the target water interference signal feature points within multiple frames.
[0006] According to a second aspect of the embodiments of this specification, a touch device control method is provided, comprising: Obtain the current touch mode of the touch device, wherein the current touch mode is determined based on the touch mode determination method; Control the touch device according to the current touch mode.
[0007] According to a third aspect of the embodiments of this specification, a touch mode determining device is provided, comprising: The acquisition module is configured to acquire the peak values of multiple sensing points within a target frame during the target recognition period of the touch device, wherein the target recognition period includes multiple frames, and the target frame is any one of the multiple frames; The identification module is configured to identify water interference signal feature points within the target frame from multiple sensing points based on peak values. The filtering module is configured to filter water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame, wherein the target dimension includes at least one of touch signal filtering dimension and feature point motion direction filtering dimension. The first determining module is configured to determine the touch mode of the touch device based on the target water interference signal feature points within multiple frames.
[0008] According to a fourth aspect of the embodiments of this specification, a touch device control device is provided, comprising: The acquisition module is configured to acquire the current touch mode of the touch device, wherein the current touch mode is determined based on the touch mode determination method; The control module is configured to control the touch device according to the current touch mode.
[0009] According to a fifth aspect of the embodiments of this specification, an electronic device is provided, comprising: Touchscreen, memory, and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the methods provided in the first or second aspect above.
[0010] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided that stores a computer program / instructions that, when executed by a processor, implement the steps of the method provided in the first or second aspect described above.
[0011] According to a seventh aspect of the embodiments of this specification, a computer program product is provided, including a computer program / instructions that, when executed by a processor, implement the steps of the method provided in the first or second aspect described above.
[0012] This specification provides a method for determining a touch mode according to one embodiment, comprising: collecting peak values of multiple sensing points within a target frame during a target recognition period of the touch device, wherein the target recognition period includes multiple frames, and the target frame is any one of the multiple frames; identifying water interference signal feature points within the target frame from the multiple sensing points based on the peak values; filtering the water interference signal feature points based on a target dimension to obtain target water interference signal feature points within the target frame, wherein the target dimension includes at least one of a touch signal filtering dimension and a feature point movement direction filtering dimension; and determining the touch mode of the touch device based on the target water interference signal feature points within the multiple frames. By collecting signal peak values of sensing points in each frame during the target recognition period of the touch device, and initially identifying water interference signal feature points based on these peak values; subsequently, filtering the water interference signal feature points by combining the touch signal filtering dimension and / or the feature point movement direction, retaining target water interference signal feature points with the characteristics of real water droplets (especially raindrops); and, based on the spatiotemporal evolution trend of the target water interference signal feature points in multiple frames, achieving a reliable determination of the touch mode. The entire process requires no additional hardware sensors, significantly improving the accuracy of touch modes, effectively reducing the false judgment rate, and greatly enhancing the stability and user experience of touch devices in water-affected environments such as rain. Attached Figure Description
[0013] Figure 1 This is a schematic diagram of the original differential data matrix of a mutual capacitance touch device provided in one embodiment of this specification; Figure 2 This is a raw differential data heatmap of a first type of touch device provided in one embodiment of this specification; Figure 3 This is a raw differential data heatmap of a second touch device provided in one embodiment of this specification; Figure 4 This is a raw differential data heatmap of a third type of touch device provided in one embodiment of this specification; Figure 5 This is a flowchart illustrating a touch mode determination method according to one embodiment of this specification; Figure 6 This is a schematic diagram of a target water interference signal matrix provided in one embodiment of this specification; Figure 7 This is a schematic diagram of another target water interference signal matrix provided in one embodiment of this specification; Figure 8 This is a flowchart illustrating a touch device control method according to one embodiment of this specification; Figure 9 This is a schematic diagram of a touch mode determination device provided in one embodiment of this specification; Figure 10This is a schematic diagram of the structure of a touch device control device according to one embodiment of this specification; Figure 11 This is a structural block diagram of an electronic device provided in one embodiment of this specification. Detailed Implementation
[0014] Many specific details are set forth in the following description to provide a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0015] The terminology used in one or more embodiments of this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this specification. The singular forms “a,” “described,” and “the” as used in one or more embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items. The term “at least one” as used in one or more embodiments of this specification means “one or more,” and “a plurality of” means “two or more.” The term “comprising” is an open-ended description and should be understood as “including but not limiting,” and may include other content in addition to what has been described.
[0016] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this specification, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to a determination."
[0017] First, the terms and concepts used in one or more embodiments of this specification will be explained.
[0018] An integrated circuit (IC) is a microelectronic device that integrates a large number of microelectronic components (such as transistors, resistors, capacitors, etc.) and their interconnections on a semiconductor material (usually silicon). It can perform various circuit functions such as signal processing, data processing, storage, and control, and is a core component of modern electronic devices.
[0019] Capacitive touch IC: A special-purpose integrated circuit used to detect and process capacitive touch signals. By sensing the capacitance change on the sensing electrodes caused by the approach or contact of a finger, it can recognize information such as touch position and gesture, and transmit the data to the main control processor. It is widely used in human-computer interaction devices such as smartphones, tablets, and smart home appliances.
[0020] Mutual Capacitance (MC) matrix data refers to a two-dimensional data array composed of capacitive coupling values collected by a capacitive touch IC when scanning a mutual capacitive touch device. Specifically, the touch device consists of a grid formed by multiple transmitting (TX) and receiving (RX) electrodes. Each intersection of a TX and RX electrode forms a mutual capacitance sensing point, whose original mutual capacitance value is stable when not touched. When a finger or conductor approaches a sensing point, it "shunts" part of the electric field, causing the mutual capacitance value at that sensing point to decrease. The capacitive touch IC excites each TX and simultaneously reads the response signals on all RX electrodes, thereby measuring the capacitance change at each sensing point. All these measurements, arranged in rows of TX and columns of RX, form an M×N matrix, i.e., the mutual capacitance matrix data.
[0021] Touch electrodes (sensors): These are transparent electrode arrays integrated into touch panels to detect changes in capacitance caused by touch objects, such as fingers or styluses. They are typically made of conductive materials such as indium tin oxide or metal mesh. By crossing the transmitting (TX) and receiving (RX) electrodes to form sensing nodes, they convert external touch actions into electrical signals, thus realizing the core sensing element for position, pressure, and gesture recognition.
[0022] Negative Peak: In the raw differential data of a capacitive touch device, a pixel's value is significantly lower than its surrounding neighborhood and is negative, forming a local minimum ("valley"). This phenomenon is common in water-affected scenarios such as raindrops. The electric field distortion caused by raindrops may lead to a decrease in local capacitance, resulting in a characteristic pattern in the data centered on a negative value, surrounded by a mixture of positive and negative responses. It is a key static indicator for identifying raindrop noise.
[0023] Raw differential data refers to the signal change (differ) obtained by subtracting the raw capacitance value (Raw Data) collected in the current frame from the baseline value (Baseline) in a mutual capacitance touch system. It is used to reflect the capacitance disturbance of each sensing node caused by the proximity of external conductors such as fingers and water droplets, and is the core input data for touch detection and interference recognition.
[0024] Real water droplet signals refer to capacitive disturbance signals caused by free-falling water bodies in the real environment (such as natural rain, shower droplets, splashing water, condensation, etc.) adhering to or sliding onto the surface of a touch device. Their physical behavior conforms to the laws of gravity and is unrelated to user-initiated touch. Real water droplet signals include, but are not limited to, the following characteristics: origin is not human-made, such as not from fingers, fabric, or operational residue; consistent direction of movement, such as continuous movement along the direction of gravity (usually downwards in the RX direction); short duration, such as disappearing after approximately 10 frames; typical morphology, such as appearing as an isolated negative peak in the original differential data, with an alternating positive and negative distribution pattern in the surrounding neighborhood; random distribution, such as appearing anywhere on the screen, especially in unobstructed areas. Examples of real water droplet signals include signals generated by natural raindrops falling on an outdoor mobile phone screen, signals generated by shower droplets splashing onto a smart mirror or waterproof tablet, signals generated by water droplets from a kitchen faucet falling onto a touch-sensitive cooktop panel, signals generated by condensation slowly sliding down a car screen, etc.
[0025] Pseudo-water droplet signals refer to interference signals that are not caused by free-falling water in the real environment, but exhibit characteristics similar to real water droplet signals in the original differential data. Their essence originates from human-caused residue, material friction, or system noise. Pseudo-water droplet signals include, but are not limited to, the following characteristics: originating from human actions or equipment, such as oily fingers, wet hand trails, cloth wiping, poor waterproof case fit, or screen oil film; abnormal movement direction, possibly upward, horizontal, stationary, or irregular jumps, not conforming to the downward trend of gravity; abnormal duration, possibly remaining stationary for a long time (such as residual water stains), or suddenly appearing / disappearing; strong location correlation, often appearing in frequently operated areas (such as numeric keys, back keys), the RX column of strong touches, or areas with finger history. Examples of pseudo-water droplet signals include signals generated by the trailing water left after a user slides with a wet finger, signals generated by a localized water film created by wiping the screen with a towel, signals generated by still water droplets accumulating in the pressed area due to a poor fit between the waterproof phone case and the screen, signals generated by the diffusion of oil stains at high temperatures, etc.
[0026] With the widespread use of touch electronic devices in outdoor and high-humidity environments, their touch reliability in rainy, wet, or even heavy rain scenarios faces severe challenges. When raindrops, water streams, or water films adhere to the surface of a touch device, the mutual capacitance data collected by the capacitive touch IC will produce significant anomalies. These abnormal signals differ from normal finger touch signals in terms of spatial distribution, amplitude, and duration.
[0027] However, current strategies for dealing with water interference are generally quite crude: some use a global "waterproof mode" to directly reduce the overall sensitivity of the device, while others simply filter out small-amplitude signals using a fixed threshold, or even shut down some touch areas when water is detected. These methods lack the ability to fine-grainedly identify the type of water interference, failing to effectively distinguish between complex scenarios such as real rainfall, localized splashes, fabric wiping residue, oil residue, or water residue carried by fingers. This easily leads to two types of problems: first, misinterpreting real raindrops as touches and causing false triggers; second, excessive suppression leading to rejection of real touch signals, resulting in touch malfunction or a precipitous drop in user experience.
[0028] To address the aforementioned issues, this specification provides an example of raindrop-generated water interference signals, and analyzes the characteristics of raindrops in detail. The following is a detailed explanation.
[0029] See Figure 1 , Figure 1 This specification shows a schematic diagram of the original differential data matrix of a mutual capacitance touch device according to one embodiment. Figure 1 The values in the table represent the capacitance changes at each sensing point. Figure 1 The area within the inner box represents typical raindrop data characteristics. From a static data perspective, the signal data generated by raindrops on the sensor array is generally small, typically concentrated within a 3×3 pixel area, and the raw differential data within this area exhibits an alternating positive and negative distribution pattern. This is significantly different from the smooth, concentrated, and predominantly positive response produced by a finger touch.
[0030] See Figure 2 , Figure 2 A heatmap of raw differential data for a first touch device provided in one embodiment of this specification is shown, wherein red represents positive values, blue represents negative values, and white represents zero values. Figure 2 Multiple isolated blue negative value areas exist, concentrated in the center and lower part of the screen, distributed in dots or small clusters. These negative value peaks move from top to bottom along the RX direction (vertical direction), and the duration of each raindrop signal is short, generally disappearing within 10 frames, consistent with the dynamic behavior of raindrops falling dynamically on the screen. From a spatial distribution perspective, raindrops can appear randomly at any position on the screen. However, in actual use, if the phone is covered by a protective case, the raindrop signals mostly appear in areas with good contact with the case, while there is no obvious response in areas with poor contact. Furthermore, in waterproof case mode, areas frequently pressed, such as the numeric keys, may exhibit stationary negative value peaks, appearing as persistent "pseudo-raindrops."
[0031] See Figure 3 , Figure 3A heatmap of raw differential data for a second touch device provided in one embodiment of this specification is shown, wherein red represents positive values, blue represents negative values, and white represents zero values. Figure 3 There is a distinct column of red vertical bars, accompanied by localized blue negative peaks, consistent with raindrop characteristics. However, these signals appear in the same column as the RX position where the finger was pressed, suggesting that they may be caused by "pseudo-raindrop" interference due to capacitive coupling or noise diffusion.
[0032] See Figure 4 , Figure 4 A heatmap of the raw differential data of a third touch device provided in one embodiment of this specification is shown, wherein red represents positive values, blue represents negative values, and white represents zero values. Figure 4 Multiple irregularly distributed red and blue interlaced patches are visible, especially large areas of continuous negative peaks in the center and bottom of the screen, which are highly similar in shape to raindrops. However, these signals appear near the finger's swipe path, and some areas show an upward or horizontal extension trend. The direction of movement does not conform to the gravity law of raindrops moving downwards along the RX direction, but rather exhibits randomness or even reverse movement. This suggests that these signals may originate from "pseudo-raindrop" interference formed after the separation of finger oil, cloth friction, or residual water trails. Although this type of data possesses the local spatial characteristics of raindrops, it lacks the dynamic consistency of real raindrops.
[0033] Based on the above analysis, this specification proposes a touch mode determination method. This method, based on capacitive touch data itself, combines spatial characteristics (e.g., 3×3 negative peak shape), temporal characteristics (e.g., short duration period, historical decay patterns), dynamic behavioral characteristics (e.g., the downward trend of gravity in the RX direction), or distribution characteristics (whether it is near the touch signal or in the same RX column). Through multi-frame cumulative analysis and direction-aware modeling, it accurately distinguishes between real and pseudo-droplet signals, further precisely determining the touch mode of the touch device. This provides a reliable basis for subsequent touch strategy adjustments, accidental touch prevention, or system state control. Furthermore, this method can be applied to smartphones, tablets, smartwatches, and other electronic devices with capacitive touch devices, improving the stability of electronic devices and the user experience.
[0034] This specification provides a method for determining a touch mode, and also relates to a touch device control method, a touch mode determination device, a touch device control device, an electronic device, a computer-readable storage medium, and a computer program product, which will be described in detail in the following embodiments.
[0035] See Figure 5 , Figure 5This specification shows a flowchart of a touch mode determination method according to an embodiment, which specifically includes the following steps: Step 502: During the target recognition period of the touch device, the peak values of multiple sensing points within the target frame are collected. The target recognition period includes multiple frames, and the target frame is any one of the multiple frames.
[0036] It should be noted that a touch device refers to an input device based on the principle of capacitive sensing, which can collect signals of local capacitance changes caused by the proximity or contact of an external conductor (such as a finger or water droplet). The sensing area of a touch device is composed of touch electrodes, and the sensing area of a mutual capacitive touch device is formed by the intersection of TX and RX electrodes. For example, a touch device can be a smartphone screen, a smartwatch face, etc.
[0037] It is worth noting that in capacitive touch devices, the physical arrangement of the TX and RX electrodes is not absolutely fixed. That is, the TX electrode can be horizontal or vertical, and the same applies to the RX electrode; the specific orientation depends on the hardware design of the touch device. In one or more embodiments of this specification, the illustrations use the RX electrode as the vertical direction (i.e., column direction) and the TX electrode as the horizontal direction (i.e., row direction) as examples, but this does not limit the versatility of the solution. If the RX electrode is horizontal and the TX electrode is vertical in an actual product, simply interchange the "TX direction" and "RX direction" involved in the embodiments, or adjust the coordinate axes for neighborhood analysis and motion trend judgment accordingly, to adapt to different wiring methods. Therefore, the core logic of the embodiments in this specification is independent of the specific physical orientation of the electrodes.
[0038] The target recognition period refers to a time window used to determine the touch mode, which includes multiple consecutive frames (e.g., 1024 frames). Since information from a single frame is usually insufficient to determine the touch mode, the embodiments in this specification provide a sufficient time span through the target recognition period to observe the cumulative behavior and dynamic trends of water interference signals, thereby reliably determining the touch mode.
[0039] A target frame refers to any frame within the target recognition cycle. The target frame can be used as the current processing unit. The touch mode determination system can process each frame one by one, and each target frame can update the historical touch signal matrix and participate in touch mode determination.
[0040] A sensing point is the intersection of the TX and RX electrodes, used to output the raw mutual capacitance value or raw differential data. A typical touch device consists of M×N sensing points. For example, a 10TX×20RX touch device has 200 sensing points.
[0041] A peak value refers to an extreme point in the local neighborhood where the raw differential data of a sensing point is significantly higher (positive peak) or lower (negative peak) than the surrounding values. Peak values include positive peak values and negative peak values.
[0042] Step 504: Based on the peak value, identify the water interference signal feature points within the target frame from multiple sensing points.
[0043] It should be noted that water interference signals refer to the mutual capacitance differential signals induced on the sensor array by the presence of non-touch water droplets on the surface of a touch device. Water interference signals include both real water droplet signals and pseudo-water droplet signals.
[0044] Water interference signal feature points refer to sensing points that conform to the spatial morphology of water droplets, initially identified based on peak values. Since filtering is performed solely using static peak information, water interference signal feature points may correspond to either real or pseudo-water droplet signals, requiring further filtering.
[0045] In practical applications, there are various methods for identifying water interference signal feature points within a target frame from multiple sensing points based on peak values. The specific method chosen depends on the actual situation, and this specification does not impose any limitations on these methods. In one possible implementation of this specification, target sensing points with negative peak values can be identified as water interference signal feature points. In another possible implementation of this specification, water interference signal feature points can be identified by combining the target sensing points with neighboring sensing points.
[0046] In one optional embodiment of this specification, the identification of water interference signal feature points within a target frame based on peak values from multiple sensing points may include the following steps: The target sensing point is selected from multiple sensing points, and the neighboring sensing points of the target sensing point are determined. The peak value of the target sensing point is negative. Based on the peak value of the target sensing point and the peak value of the neighboring sensing points, water interference signal feature points within the target frame are identified from multiple sensing points.
[0047] It should be noted that the target sensing point refers to the sensing point in the target frame with a negative peak value. Neighborhood sensing points refer to the sensing points adjacent to the target sensing point, typically using a 3×3 eight-neighborhood (8 points in total). Since water interference signals often exhibit a pattern of "concentration within a 3×3 pixel area, and the original differential data within this 3×3 pixel area showing an alternating positive and negative distribution pattern," neighborhood sensing points can be used to determine whether the target sensing point possesses the typical characteristics of water interference signals, thus eliminating wide-area touch or noise.
[0048] In practical applications, there are various methods for identifying water interference signal feature points within a target frame from multiple sensing points based on the peak value of the target sensing point and the peak values of neighboring sensing points. The specific method chosen depends on the actual situation, and this specification does not impose any limitations on these methods. In one possible implementation, a target sensing point whose peak value is within a preset peak value range and whose neighboring sensing points all have peak values less than a first preset peak value threshold can be identified as a water interference signal feature point. In another possible implementation, a target sensing point whose peak value is within a preset peak value range and whose neighboring sensing points include target sensing points whose peak values are greater than a second preset peak value threshold can be identified as a water interference signal feature point. The preset peak value range, the first preset peak value threshold, and the second preset peak value threshold are specifically set according to the actual situation.
[0049] For example, assuming the preset peak range is (-300, -200), the first preset peak threshold is 300, and the second preset peak value is 50, for any target sensing point with a negative peak value, if the target sensing point simultaneously satisfies the following conditions: "the peak value of the target sensing point is within (-300, -200); at least two of its eight neighboring sensing points have peak values greater than 50; and none of its eight neighboring sensing points have peak values greater than 300", then the target sensing point is determined to be a water interference signal feature point.
[0050] By applying the solution of the embodiments in this specification, by filtering out target sensing points with negative peak values in the target frame and combining them with the peak values of their neighboring sensing points, water interference signal feature points can be accurately identified, which can effectively distinguish water interference signals from touch signals and significantly improve the accuracy of water interference signal feature points.
[0051] Step 506: Based on the target dimension, filter the water interference signal feature points to obtain the target water interference signal feature points within the target frame. The target dimension includes at least one of the touch signal filtering dimension and the feature point motion direction filtering dimension.
[0052] It should be noted that the target dimension refers to the discrimination dimension used to distinguish between real water droplet signals and pseudo water droplet signals, and is used to remove feature points corresponding to pseudo water droplet signals from the feature points of water interference signals.
[0053] Touch signal filtering dimension refers to the dimension used to filter water interference signal feature points based on current or historical touch signal information. Since real water droplets typically appear in areas without touch activity, while fake water droplets often co-occur with touch behavior, current or historical touch signal information can accurately eliminate feature points corresponding to fake water droplet signals from among the water interference signal feature points. For example, the touch signal filtering dimension includes, but is not limited to, the following: removal of the RX column containing the touch signal; removal of the neighboring RX column of the touch signal; removal of the water interference signal feature point if a touch signal exists in its neighboring RX column; and removal of the historical touch signal matrix.
[0054] The feature point motion direction filtering dimension refers to the dimension used to filter water interference signal feature points based on their motion direction in consecutive frames. For example, the feature point motion direction filtering dimension includes, but is not limited to, the following: lifetime map direction elimination, i.e., if the average lifetime value of the upper neighborhood (TX(n-1), TX(n-2)) of a water interference signal feature point is less than the lifetime value of the lower neighborhood (TX(n+1), TX(n+2)), it indicates that the water interference signal feature point's motion direction is upward, and thus the water interference signal feature point is eliminated; inter-frame trajectory tracking elimination, i.e., if the TX position of a water interference signal feature point in the same RX column of the previous frame is TXn, and in the current frame it is TX(n+1) (upward), then the water interference signal feature point is eliminated.
[0055] The target water interference signal refers to the filtered water interference signal that is more likely to be generated by real water droplets. The target water interference signal feature points refer to the high-confidence points retained after filtering from the water interference signal feature points in the target dimension.
[0056] In one optional embodiment of this specification, the target dimension includes a touch signal filtering dimension; the above-mentioned filtering of water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame may include the following steps: From the target frame, determine the neighborhood channel of the water discharge interference signal feature point; Water interference signal feature points to be removed are selected from the water interference signal feature points. Among them, touch signals exist in the neighborhood channels of the water interference signal feature points to be removed. Remove the water interference signal feature points to be removed to obtain the target water interference signal feature points within the target frame.
[0057] It should be noted that the neighboring channel refers to several RX channels adjacent to the water interference signal feature point in the RX direction (such as the three RX channels to the left and right of the water interference signal feature point), used to determine whether the water interference signal feature point is located in the active area of the finger. Since finger touch usually produces a significant and continuous strong signal in the RX column, if the water interference signal feature point is adjacent to such channels, it is likely caused by residual water on the finger or poor fit of the sleeve, and is therefore a water interference signal feature point to be removed.
[0058] Water interference signal feature points to be eliminated refer to water interference signal feature points in their neighboring channels that contain touch signals. These water interference signal feature points are most likely caused by residual moisture, oil, or water accumulation due to pressure from a waterproof sleeve. Although they resemble real water droplets in shape, they are essentially related to user operation and do not belong to the target water interference signal feature points.
[0059] In practical applications, there are various methods for selecting water interference signal feature points to be removed from the pool of water interference signal feature points. The specific method chosen depends on the actual situation, and the embodiments in this specification do not impose any limitations on this. In one possible implementation of this specification, if the target mutual capacitance values of all neighboring channels of a water interference signal feature point are greater than the mutual capacitance value threshold, then the water interference signal feature point is determined to be a water interference signal feature point to be removed. In another possible implementation of this specification, if the target mutual capacitance value of at least one neighboring channel of a water interference signal feature point is greater than the mutual capacitance value threshold, then the water interference signal feature point is determined to be a water interference signal feature point to be removed.
[0060] By applying the solution of the embodiments in this specification, water interference signal feature points are located in the target frame and the presence of touch signals in their neighboring channels are checked. Water interference signal feature points in the vicinity of the active finger area are accurately identified as water interference signal feature points to be removed and removed, while target water interference signal feature points far away from the touch area are retained. Without the need to add additional hardware sensors, relying only on capacitive touch data, the accuracy of target water interference signal feature point identification can be significantly improved.
[0061] In one optional embodiment of this specification, the above-mentioned screening of water interference signal feature points to be removed from the water interference signal feature points may include the following steps: Obtain the target mutual tolerance value of the neighboring channel, wherein the target mutual tolerance value is greater than the mutual tolerance value of all other neighboring channels except the target mutual tolerance value; Based on the target mutual tolerance value and the mutual tolerance value threshold, water interference signal feature points to be removed are selected from the water interference signal feature points.
[0062] It should be noted that the mutual capacitance threshold refers to an empirical threshold (such as 500) used to determine whether the target mutual capacitance value has reached the level of "strong touch". It can be set based on hardware sensitivity, gain settings and typical finger signal amplitude calibration.
[0063] The target mutual capacitance value (mcRxMax) refers to the maximum mutual capacitance value in the neighborhood channel, which characterizes the overall touch intensity of the neighborhood channel and reflects whether a touch signal exists in the neighborhood channel. If the target mutual capacitance value of the neighborhood channel of a water interference signal feature point is 600, which is greater than the mutual capacitance threshold of 500, then a touch signal is considered to exist in the neighborhood channel, and the water interference signal feature point is a water interference signal feature point to be removed.
[0064] By applying the solution in the embodiments of this specification, based on the target mutual capacitance value and the mutual capacitance value threshold, the feature points of water interference signals that are strongly correlated with touch behavior are accurately screened out and eliminated. This effectively captures the physical law that "pseudo water droplets caused by finger pressing often appear in strong signal columns." Without the need to track history or motion trajectories, pseudo water droplet signals (such as still water droplets in the button area or water accumulated by squeezing the sleeve) can be efficiently eliminated by relying solely on single-frame column-level statistics, significantly improving the accuracy of target water interference signal feature point identification.
[0065] In one optional embodiment of this specification, the target dimension includes a touch signal filtering dimension; the above-mentioned filtering of water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame may include the following steps: Obtain the historical touch signal matrix of the target frame, wherein the historical touch signal matrix includes multiple touch feature values, and each touch feature value corresponds one-to-one with a sensing point; Based on the mutual capacitance value of the sensing points within the target frame, the touch feature value is updated to obtain the target touch signal matrix, where the touch feature value corresponds one-to-one with the sensing point; From the target touch signal matrix, determine the touch feature values corresponding to the feature points of the water discharge interference signal; When the touch feature value is non-zero, water interference signal feature points are removed to obtain the target water interference signal feature points within the target frame.
[0066] It should be noted that the historical touch signal matrix is a two-dimensional array with the same size as the touch device's sensor array. Each element (i.e., touch feature value) records whether the corresponding sensor point has had a touch signal in the past several frames, and represents the "activity level" or "duration period" of the touch signal in numerical form. The historical touch signal matrix can store touch history memories, serving as a basis for determining whether current water interference signals are related to touch behavior. The historical touch signal matrix is updated every frame. The touch feature value corresponding to newly added strong touch sensor points is set to a preset duration period value (assuming the target recognition period is 200 frames, then the preset duration period value is 200), and other non-zero touch feature values decay frame by frame (decreasing by 1 to 0), achieving a "200-frame memory period". For example, the initial historical touch signal matrix is an all-zero matrix [[0,0,0],[0,0,0],...]. Suppose the user clicks a sensing point (TX=2,RX=3), and the mutual capacitance value of the sensing point is greater than the mutual capacitance value threshold, then the sensing point is determined to be a newly added strong touch sensing point, and its corresponding touch feature value is set to 200. If there is no new touch in the next frame, the touch feature value is decayed to 199, and the others remain 0.
[0067] Touch feature values refer to the numerical values in the historical touch signal matrix that correspond one-to-one with each sensing point, indicating whether a valid touch has occurred at that location within a preset duration period. Touch feature values quantify whether a corresponding sensing point belongs to a historically active finger area. A non-zero touch feature value indicates a strong touch within the past few frames (e.g., MC > 500); a zero touch feature value indicates no touch activity for a long period. For example, if a sensing point has a touch feature value of 150, it indicates a touch activity within the target recognition period; if a sensing point has a touch feature value of 0, it indicates that the sensing point has never been touched or that the touch occurred before the preset duration period.
[0068] The target touch signal matrix is a new matrix obtained by updating the historical touch signal matrix based on the mutual capacitance value of the internal sensing points, reflecting the latest touch activity state up to the current frame. The target touch signal matrix can provide a basis for determining whether water interference signal feature points are located at a historical / current touch position in the current frame.
[0069] The touch feature value corresponding to a water interference signal feature point refers to the touch feature value in the target touch signal matrix that has the same coordinates as the water interference signal feature point. This touch feature value determines whether the corresponding water interference signal feature point should be removed. For example, if the touch feature value corresponding to a water interference signal feature point is non-zero, it indicates that there was a touch action at this location within a preset duration period. This water interference signal feature point is very likely a pseudo-water droplet signal related to touch action, such as water stains, oil trails, edge coupling noise, or residual water, rather than a real water droplet signal. Therefore, this water interference signal feature point will be removed to prevent false triggering or trajectory breakage.
[0070] The target water interference signal feature points refer to the water interference signal feature points retained after being filtered through the touch signal filtering dimension, and their corresponding touch feature values are zero. These points not only conform to the shape of a real water droplet, but are also far away from the active area of the finger, making them more likely to be real water droplet signals.
[0071] For example, the process of updating touch feature values based on the mutual tolerance values of sensor points within the target frame is explained. Assume the mutual tolerance threshold is 500 and the preset duration is 200. The mutual tolerance values of each sensor point within the target frame are iterated through. The touch feature values corresponding to sensor points with mutual tolerance values greater than 500 are set to 200. If there are no sensor points with mutual tolerance values greater than 500 in the middle region of the target frame (within two sensors from the edge), it indicates no touch activity in the middle region. In this case, the touch feature values corresponding to sensor points with mutual tolerance values less than or equal to 200 are decremented by 1 until they reach 0, allowing the simulated memory to naturally fade over time. The touch feature values corresponding to sensor points with mutual tolerance values greater than 200 and less than 500 remain unchanged. If there are sensor points with mutual tolerance values greater than 500 in the middle region of the target frame, it indicates touch activity in the middle region. At this point, the decay is paused; that is, the touch feature values corresponding to sensor points with mutual tolerance values greater than 500 are not decremented. This maintains the historical continuity of the active finger area and avoids accidentally clearing critical information during continuous gestures.
[0072] The scheme implemented in this specification maintains a historical touch signal matrix that corresponds one-to-one with each sensing point. This historical touch signal matrix is dynamically updated in each frame based on the current mutual capacitance value, forming a target touch signal matrix reflecting recent touch activity. Subsequently, for each water interference signal feature point, the touch feature value at its corresponding location is queried. If the value is non-zero, it is determined to be a pseudo-water droplet signal and discarded. Only water interference signal feature points with a touch feature value of zero are retained as target water interference signal feature points. This process effectively utilizes the priori rule that "real water droplet signals will not appear in the active area of the finger." Using the mutual capacitance value as input for each frame, it can efficiently filter out typical pseudo-water droplet signals such as residual water on fingers and water accumulation on buttons within a single frame, significantly improving the accuracy and robustness of touch pattern recognition, while also having low computational overhead.
[0073] In one optional embodiment of this specification, the target dimension includes a feature point motion direction filtering dimension; the above-mentioned filtering of water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame may include the following steps: The direction of motion of the water interference signal feature points is determined based on their positions within the target frame and their positions in the previous frame. Based on the direction of motion, the feature points of the water interference signal are filtered to obtain the target water interference signal feature points.
[0074] It's important to note that the direction of motion refers to the displacement vector of the water interference signal feature point from the previous frame to the target frame in the TX-RX coordinate system, with particular attention to the RX component (vertical direction). In real-world water droplet scenarios, water droplets flow downwards. However, in other scenarios, such as water spilled on a touchscreen device not flowing, or a cloth wiping an oily surface, the movement will be up-and-down, not the same direction as real water droplets. Therefore, the direction of motion can be used to determine whether the water interference signal feature point conforms to the "gravity-driven downward" law of real water droplets.
[0075] The target water interference signal feature point refers to the water interference signal feature point retained after filtering through the feature point movement direction, and its movement direction conforms to the movement direction of the real water droplet (such as downward along the RX direction).
[0076] In practical applications, there are multiple ways to determine the movement direction of water interference signal feature points based on their positions within the target frame and in the preceding frame. The specific method chosen depends on the actual situation, and this specification does not impose any limitations on this approach. In one possible implementation, the movement direction of the water interference signal feature points can be calculated based on their positions in the target frame (t) and the preceding frame (t). 1) The difference between the RX coordinates is ΔRX = RX t -RX t-1 If ΔRX > 0, it is determined to be downward movement; if ΔRX < 0, it is upward movement; if ΔRX = 0 and TX does not change, it is stationary. In another possible implementation of this specification, if the specific location of the water interference signal feature point in the target frame in the previous frame cannot be determined, a relatively close feature point in the previous frame can be found in the local neighborhood (such as a 3×3 or 5×5 area) of the water interference signal feature point in the target frame as its "predecessor", and then ΔRX is calculated to determine the movement direction of the feature point based on ΔRX.
[0077] Furthermore, based on the direction of movement, there are various ways to filter water interference signal feature points to obtain the target water interference signal feature points. The specific method chosen depends on the actual situation, and this specification does not limit this approach. In one possible implementation, water interference signal feature points with ΔRX < 0, ΔRX = 0, or significant lateral movement can be eliminated. In another possible implementation, a water interference signal feature point can only be considered a water interference signal feature point if it maintains a consistent downward movement trend across multiple consecutive frames (e.g., ΔRX ≥ 1 and holds true in at least two frames).
[0078] The scheme implemented in this specification compares the positions of water interference signal feature points in the target frame and the previous frame to calculate their movement direction. Based on the physical law that "real water droplets should move continuously along the direction of gravity (e.g., RX downwards)," the water interference signal feature points are dynamically filtered to eliminate false water droplet signals. This process relies solely on capacitive touch data and does not require additional hardware sensors, thus effectively improving the accuracy of real water droplet recognition.
[0079] Step 508: Determine the touch mode of the touch device based on the target water interference signal feature points within multiple frames.
[0080] It should be noted that touch mode refers to the current operating state of the touch device, reflecting the level of environmental interference. Touch mode can guide subsequent touch strategy switching (such as sensitivity, filter strength, function activation, etc.). Touch modes include waterless interference mode, weak water interference mode, strong water interference mode, etc., where weak water interference mode is like a light rain mode, and strong water interference mode is like a heavy rain mode.
[0081] The scheme implemented in this specification involves collecting signal peak values from sensing points in each frame within the target recognition cycle of the touch device, and using this as a basis to initially identify water interference signal feature points. Subsequently, water interference signal feature points are filtered by combining touch signal filtering dimensions and / or feature point movement directions, retaining target water interference signal feature points with the characteristics of real water droplets (especially raindrops). Based on this, and considering the spatiotemporal evolution trend of target water interference signal feature points across multiple frames, reliable determination of the touch mode is achieved. The entire process requires no additional hardware sensors, significantly improving the accuracy of touch modes, effectively reducing the false judgment rate, and greatly enhancing the stability of the touch device and user experience in water interference environments such as rain.
[0082] In one optional embodiment of this specification, determining the touch mode of the touch device based on multiple intra-frame target water interference signal feature points may include the following steps: Based on the characteristic points of the target water interference signal, the current state of multiple frames is determined, and the historical state of multiple frames is obtained respectively. Based on the current state and historical states, the initial signal feature count is iteratively adjusted to obtain the target signal feature count; The touch mode of the touch device is determined by counting the target signal characteristics.
[0083] It should be noted that the current state refers to an indicator of whether the target frame is currently a real water droplet frame. The current state can be represented as a water interference signal state (which can be represented as 1) or a non-water interference signal state (which can be represented as 0). If the current state of the target frame is a water interference signal state, it means that the target frame is a real water droplet frame containing real water droplets, such as a raindrop frame; if the current state of the target frame is a non-water interference signal state, it means that the target frame is a non-real water droplet frame that does not contain real water droplets, such as a non-raindrop frame.
[0084] Historical state refers to the state (water interference signal state or non-water interference signal state) previously stored at the corresponding position of the target frame in the circular record array, representing the state of that position in the previous cycle.
[0085] A circular record array is a fixed-length, first-in-first-out (FIFO) circular structure whose read / write pointers automatically "loop back" to the beginning after reaching the end of the array. In touch systems, it is typically used in bits or bytes to efficiently record historical states within the current time window (such as whether it is a raindrop frame).
[0086] The initial signal feature count is an integer variable used to dynamically reflect the actual number of real water droplet frames within the circular record array. Its initial value can be set to 1000. For example, the rules for iteratively adjusting the initial signal feature count based on the current and historical states are as follows: if the current state is a water interference signal state and the historical state is a non-water interference signal state, the initial signal feature count is incremented by 1, indicating the addition of a new real water droplet frame; if the current state is a non-water interference signal state and the historical state is a water interference signal state, the initial signal feature count is decremented by 1, indicating the disappearance of a real water droplet frame; otherwise, the initial signal feature count remains unchanged.
[0087] The target signal feature count refers to the latest value obtained after iterative updates of the initial signal feature count, representing the cumulative number of real raindrop frames within the current time window. For example, a target signal feature count of 300 indicates that the number of raindrop frames is 300.
[0088] In practical applications, there are various ways to determine the current state of multiple frames based on the target water interference signal feature points. The specific method should be selected according to the actual situation, and this specification does not limit this approach. In one possible implementation of this specification, if the target frame has a target water interference signal feature point, the current state is a water interference signal state; if the target frame does not have a target water interference signal feature point, the current state is a non-water interference signal state. In another possible implementation of this specification, if the target frame has a target water interference signal feature point and is not excluded by self-capacitance large-area contact, the current state is a water interference signal state; if the target frame does not have a target water interference signal feature point or is determined to be in large-area contact by self-capacitance, the current state is a non-water interference signal state. "Large-area contact" is achieved through self-capacitance channel statistics. For example, if the self-capacitance value of more than half of the channels (e.g., 18 / 36) is greater than the self-capacitance threshold, then large-area contact is considered to exist, which may be pseudo-water droplet interference such as a palm or fabric, forcing the current state to be a non-water interference signal state.
[0089] The solution implemented in this specification determines the touch mode of the touch device based on the counting of target signal features. The entire process relies solely on capacitive touch data, eliminating the need for additional hardware sensors, resulting in low computational overhead. It can accurately distinguish complex touch modes such as heavy rain and splashing water, significantly improving the user experience in outdoor and high-humidity environments while ensuring touch reliability.
[0090] In one optional embodiment of this specification, the iterative adjustment of the initial signal feature count based on the current state and historical states to obtain the target signal feature count may include the following steps: For the target frame, if the current state of the target frame is a water interference signal state and the historical state of the target frame is a non-water interference signal state, the initial signal feature count is increased. If the current state of the target frame is a non-water interference signal state, and the historical state of the target frame is a water interference signal state, reduce the initial signal feature count. The target signal feature count is obtained after multiple frames have been traversed.
[0091] For example, after filtering water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame, if the target frame still contains target water interference signal feature points, then the frame is determined to be a raindrop frame (current state is water interference signal state); otherwise, it is a non-raindrop frame (current state is non-water interference signal state). Next, a 128-byte (1024-bit) circular record array is used as a historical state recording buffer. Each bit in the circular record array corresponds to the state of one frame, and a position pointer is used to cyclically overwrite the old states. Simultaneously, a global variable "initial signal feature count" is maintained to count the total number of raindrop frames in the most recent 1024 frames. The initial signal feature count is efficiently maintained using a differential update strategy: if the current state of the target frame is water interference signal state and the historical state of the target frame is non-water interference signal state, the initial signal feature count is increased, e.g., incremented by 1; if the current state of the target frame is non-water interference signal state and the historical state of the target frame is water interference signal state, the initial signal feature count is decreased, e.g., decremented by 1.
[0092] The solution implemented in this specification avoids traversing the entire buffer every frame, significantly reducing computational overhead. At the same time, it can accurately track the cumulative intensity of real water droplets, providing a basis for triggering and stably exiting the strong water interference mode, and significantly improving the robustness of the touch system and the consistency of user experience in complex wet environments.
[0093] In one optional embodiment of this specification, determining the touch mode of the touch device based on the counting of target signal features may include the following steps: If the target signal feature count is greater than the signal feature count threshold, the touch mode of the touch device is determined to be the strong water interference mode. or, The target frame includes multiple regions, and the target signal feature count includes the region signal feature counts corresponding to each of the multiple regions. Determining the touch mode of the touch device based on the target signal feature counts may include the following steps: If the target signal feature count is greater than the signal feature count threshold, and the regional signal feature counts are all greater than the regional signal feature count thresholds, the touch mode of the touch device is determined to be the strong water interference mode.
[0094] It should be noted that the signal feature counting threshold is a preset integer value (e.g., 300) used to determine whether the water interference generated by the real water droplet signal reaches the level of "strong interference". The signal feature counting threshold is usually set based on experience, and sensitivity and false trigger rate can be considered when setting it. For example, if about 30% of the frames in 1024 frames are raindrop frames, it is considered a rainstorm.
[0095] A region refers to dividing the touch device into several sub-regions in space (e.g., three regions along the TX direction), with each region containing several sensing points. Since real water droplets (such as heavy rain) typically cover multiple regions, while fake water droplets may only affect a local area, regional signal characteristic measurement can support spatial distribution sensing and avoid misjudging local splashes as a global heavy rain.
[0096] Regional signal feature counts refer to the signal feature counts maintained independently for each region, representing the number of real waterdrop frames appearing within that region in the current time window. The sum of the regional signal feature counts for all regions equals the target signal feature count.
[0097] The regional signal feature counting threshold is a preset integer value (such as 50) used to determine whether the water interference generated by the real water droplet signal in a single region reaches the level of "strong interference".
[0098] Strong water interference mode refers to an anti-interference working state that is automatically entered when a continuous and large-scale real water droplet signal interference is detected on the touch device. In this mode, a series of protection strategies can be enabled, such as increasing the touch threshold, disabling the screen edge area, restricting multi-touch, and turning off complex gesture recognition, to suppress accidental touches and functional disorders caused by real water droplets, while retaining basic single-point operation capabilities. This significantly improves touch robustness and user experience in wet environments while ensuring usability.
[0099] For example, assuming the signal feature count threshold is 300 and the area signal feature count threshold is 50. In one possible implementation of this specification, if the target signal feature count is greater than 300 within 1000 frames, then the environment is considered to have continuous water interference, and the touch mode of the touch device is determined to be a strong water interference mode. In another possible implementation of this specification, if the target signal feature count is greater than 300 within 1000 frames, and the area signal feature count of each region is greater than 50, then the environment is considered to have continuous water interference, and the touch mode of the touch device is determined to be a strong water interference mode.
[0100] The solution implemented in this specification, through two strong water interference mode discrimination mechanisms, can effectively distinguish between real water droplets and fake water droplets, taking into account both the sensitivity and robustness of the touch mode determination process. It can be flexibly configured under different product requirements, significantly improving the reliability of the touch system and the user experience in complex humid environments.
[0101] In practical applications, after determining that the touch mode of the touch device is a strong water interference mode, there are multiple ways to determine whether to exit the strong water interference mode. The specific method should be selected according to the actual situation, and the embodiments in this specification do not limit this. In one possible implementation of this specification, in the strong water interference mode, the target signal feature count can be continuously monitored. Once the target signal feature count of a certain frame is less than the signal feature count threshold, it is considered that the current water interference intensity has been significantly reduced, and the water receding count is started and incremented by 1. If the target signal feature count is continuously less than the signal feature count threshold in subsequent frames, the water receding count is accumulated frame by frame. When the water receding count is greater than the water receding count threshold (e.g., 3000, which corresponds to about 50 seconds of no strong rain interference, calculated at 60fps), it is determined that the rain has stopped or that it is only local dripping, and the strong water interference mode is exited. This mechanism can effectively avoid mode jitter caused by brief rain stops. In another possible implementation of this specification, under the strong water interference mode, not only is it monitored whether the target signal feature count is less than the signal feature count threshold, but also whether the regional signal feature count of each area is less than the regional signal feature count threshold. When the target signal feature count is less than the signal feature count threshold, or the signal feature count of a certain area is less than the regional signal feature count threshold, the water recedes and is incremented by 1 until the water recedes and is greater than the water recedes and count threshold, at which point the strong water interference mode is exited.
[0102] In one optional embodiment of this specification, after determining that the touch mode of the touch device is a strong water interference mode, the following steps may be included: Determine the number of consecutive frames in which the target signal feature count is less than the signal feature count threshold under strong water interference mode; If the number of consecutive frames exceeds the consecutive frame threshold, the touch mode is determined to exit the strong water interference mode.
[0103] It should be noted that the consecutive frame count refers to the cumulative number of frames in the strong water interference mode where the target signal feature count is consistently lower than the signal feature count threshold, which is the aforementioned water receding count. The consecutive frame count can be used to measure the duration of "rain stop" or "interference reduction," preventing accidental mode exit due to brief interruptions.
[0104] The continuous frame count threshold refers to the preset upper limit of the frame count (such as 3000), which is the above-mentioned water receding count threshold, used to determine whether it is safe to exit the strong water interference mode.
[0105] The solution implemented in this specification determines that water interference from real water droplet signals has substantially disappeared only when the number of consecutive frames exceeds a threshold, thus exiting the strong water interference mode. This process introduces a long-term window for stability verification, effectively avoiding frequent mode switching caused by scenarios such as brief rain stops, localized dryness, or test dripping. This ensures the touch system remains robust in real rainstorms and can promptly restore full-function touch control after the rain stops, significantly improving user experience and system reliability.
[0106] In one optional embodiment of this specification, determining the touch mode of the touch device based on multiple intra-frame target water interference signal feature points may include the following steps: The touch mode of the touch device is determined based on the target water interference signal feature points within multiple frames and the target motion direction of the target water interference signal feature points.
[0107] It should be noted that when determining the touch mode of the touch device based on the target water interference signal feature points and their target motion directions within multiple frames, the current state of multiple frames can be determined based on the target water interference signal feature points and their target motion directions, and the historical state of multiple frames can be obtained respectively. Based on the current state and the historical state, the initial signal feature count is iteratively adjusted to obtain the target signal feature count. Based on the target signal feature count, the touch mode of the touch device is determined. The implementation method of "iteratively adjusting the initial signal feature count based on the current state and the historical state to obtain the target signal feature count; determining the touch mode of the touch device based on the target signal feature count" in this process can be referred to the above description, and will not be described again in the embodiments of this specification.
[0108] Next, the process of "determining the current state of multiple frames based on the target water interference signal feature points and the target movement direction of the target water interference signal feature points" will be explained. Based on the target water interference signal feature points and combined with the target movement direction to determine the touch mode of the touch device, the binary state of each frame, "water interference signal state and non-water interference signal state," can be converted into a ternary state, "non-water interference signal state (which can be represented as 00), downward water interference signal state (which can be represented as 01), and non-downward water interference signal state (which can be represented as 10)," thus more precisely characterizing the water interference features. Since each frame state requires 2 bits to represent, a 256-byte (i.e., 2048-bit) circular record array can be used to record the state of the most recent 1024 frames, and a position pointer can be used to achieve circular coverage.
[0109] Furthermore, the process of "iteratively adjusting the initial signal feature count based on the current state and historical states to obtain the target signal feature count" is explained. Assuming the initial signal feature count is 1000, if the current state and historical state are the same, the initial signal feature count remains unchanged; if the historical state is 00 and the current state is 01, the initial signal feature count is incremented by 1; if the historical state is 00 and the current state is 10, the initial signal feature count is decremented by 1; if the historical state is 10 and the current state is 01, the initial signal feature count is incremented by 2; if the historical state is 01 and the current state is 10, the initial signal feature count is decremented by 2.
[0110] The solution implemented in this specification deeply integrates the spatial morphology and dynamic behavior characteristics of real water droplets, significantly improving the accuracy of touch pattern recognition and anti-spoofing capabilities without the need for additional hardware, ensuring that the touch system is both reliable and usable in complex humid environments.
[0111] In one optional embodiment of this specification, determining the target motion direction of the target water interference signal feature points may include the following steps: obtaining a historical water interference signal matrix, wherein the historical water interference signal matrix includes multiple interference feature values, and the interference feature values correspond one-to-one with the sensing points; updating the interference feature values according to the target water interference signal feature points within the target frame to obtain a target water interference signal matrix, wherein the target water interference signal feature points correspond one-to-one with the interference feature values; and determining the target motion direction of the target water interference signal feature points according to the target water interference signal matrix.
[0112] It should be noted that the historical water interference signal matrix is a two-dimensional array with the same size as the touch device's sensor array. Each element (i.e., the interference feature value) records whether the corresponding sensor point was a target water interference signal feature point within the past several frames, and is usually represented in the form of "duration period count" (e.g., 0 to 10). The historical water interference signal matrix is similar to a "water droplet lifetime map," used to store the historical activity traces of real water droplets in space, providing contextual basis for motion direction determination.
[0113] Interference characteristic values refer to the values in the historical water interference signal matrix that correspond one-to-one with each sensing point, representing the current activity level or remaining duration of the corresponding sensing point. The larger the interference characteristic value, the higher its activity level or the closer it is to the current moment.
[0114] The target water interference signal matrix refers to the new matrix obtained by updating the historical water interference signal matrix according to the following rules: For each target frame, non-zero interference feature values are first attenuated by 1 (minimum is 0); for each target water interference signal feature point in the target frame, its corresponding interference feature value is set to a high lifetime value. The high lifetime value is determined based on the actual water droplet duration period, usually 10 frames, and is related to whether the current data sampling rate is consistent with the touch device.
[0115] The target motion direction refers to the motion direction inferred from the target water interference signal feature points based on the distribution of interference feature values corresponding to the target water interference signal feature points in the target water interference signal matrix and the interference feature values of their neighboring locations. It is used to distinguish between real water droplets (downward) and fake water droplets (not downward).
[0116] In practical applications, when determining the target motion direction of target water interference signal feature points based on the target water interference signal matrix, an intra-frame water interference signal count can be set to quantify the overall motion direction of the target water interference signal feature points in the target frame. Specifically, the target interference feature value (i.e., the interference feature value equal to 10) corresponding to each target water interference signal feature point in the target water interference signal matrix is traversed, and it is checked whether the adjacent interference feature values in the RX direction (vertical direction) are continuously non-zero. For continuously non-zero interference feature values, it is determined whether they are increasing or decreasing; if increasing, the intra-frame water interference signal count is incremented by 1; if decreasing, the intra-frame water interference signal count is decremented by 1; if both are zero, the intra-frame water interference signal count remains unchanged. When the target interference feature value is not zero at either end, the average value of the upper and lower interference feature values is compared. If the upper average value is larger, it is considered decreasing; if the lower average value is larger, it is considered increasing. After the target interference feature value traversal is completed, if the intra-frame water interference signal count is greater than zero, the target motion direction is determined to be downward; otherwise, the target motion direction is determined to be upward.
[0117] The scheme implemented in this specification involves maintaining a historical water interference signal matrix that corresponds one-to-one with each sensing point. In each frame, the interference feature values are first attenuated and aged, and then the interference feature values corresponding to the target water interference signal feature points are reset to high lifetime values, forming a target water interference signal matrix that reflects the spatiotemporal trajectory of the water droplets. Subsequently, by analyzing the target water interference signal matrix, it is possible to accurately infer whether the target's motion direction conforms to the law of gravity-induced descent. This process does not require explicit inter-frame point matching; efficient and robust motion direction discrimination can be achieved based on the target water interference signal matrix of a single frame, effectively distinguishing between real and fake water droplets, and providing highly reliable feature input for touch mode recognition.
[0118] See Figure 6 , Figure 6This diagram illustrates a target water interference signal matrix provided in one embodiment of this specification. The vertical direction represents the RX channel, the horizontal direction represents the TX channel, and each value represents an interference characteristic value. Figure 6 The interference feature values within the box increase from top to bottom along the RX direction, which is consistent with the spatiotemporal evolution of real water droplet signals, indicating that the corresponding target water interference signal feature points are generated by real water droplets.
[0119] See Figure 7 , Figure 7 This diagram illustrates another target water interference signal matrix provided in one embodiment of this specification, where the vertical direction represents the RX channel, the horizontal direction represents the TX channel, and each value represents an interference characteristic value. Figure 7 The interference feature values within the box decrease from top to bottom along the RX direction, which does not conform to the spatiotemporal evolution of real water droplet signals, indicating that the corresponding target water interference signal feature points are generated by pseudo water droplets.
[0120] See Figure 8 , Figure 8 This specification shows a flowchart of a touch device control method according to an embodiment, which specifically includes the following steps: Step 802: Obtain the current touch mode of the touch device, wherein the current touch mode is determined based on the touch mode determination method.
[0121] Step 804: Control the touch device according to the current touch mode.
[0122] It should be noted that controlling a touch device refers to the process of dynamically adjusting the parameters, functions, or area response strategies of the touch system based on the current touch mode. By controlling the touch device, its anti-interference capability or user experience can be improved while ensuring its basic usability. Methods of controlling a touch device include, but are not limited to, the following: sensitivity adjustment, such as increasing the touch threshold in a strong water interference mode; area shielding, such as disabling edges or areas prone to water accumulation in a strong water interference mode; and function restriction, such as allowing only single-point touch and disabling multi-finger gestures in a strong water interference mode.
[0123] The solution implemented in the embodiments of this specification accurately identifies whether the current environment is in a strong water interference scenario such as a rainstorm by using the touch mode determination method, dynamically outputs the current touch mode, and performs adaptive control of the touch device based on the current touch mode. While ensuring the basic interactive usability of the touch device, it significantly improves the robustness, security and user experience consistency of the touch system.
[0124] Corresponding to the above-described embodiments of the touch mode determination method, this specification also provides embodiments of the touch mode determination device. Figure 9A schematic diagram of a touch mode determination device according to one embodiment of this specification is shown. Figure 9 As shown, the device includes: The acquisition module 902 is configured to acquire the peak values of multiple sensing points within a target frame during the target recognition period of the touch device, wherein the target recognition period includes multiple frames and the target frame is any one of the multiple frames; The identification module 904 is configured to identify water interference signal feature points within the target frame from multiple sensing points based on peak values. The filtering module 906 is configured to filter water interference signal feature points based on the target dimension to obtain target water interference signal feature points within the target frame, wherein the target dimension includes at least one of touch signal filtering dimension and feature point motion direction filtering dimension. The first determining module 908 is configured to determine the touch mode of the touch device based on the target water interference signal feature points within multiple frames.
[0125] Optionally, the first determining module 908 is further configured to determine the current state of multiple frames based on the target water interference signal feature points, and acquire the historical state of multiple frames respectively; iteratively adjust the initial signal feature count based on the current state and the historical state to obtain the target signal feature count; and determine the touch mode of the touch device based on the target signal feature count.
[0126] Optionally, the first determining module 908 is further configured to, for the target frame, increase the initial signal feature count when the current state of the target frame is a water interference signal state and the historical state of the target frame is a non-water interference signal state; decrease the initial signal feature count when the current state of the target frame is a non-water interference signal state and the historical state of the target frame is a water interference signal state; until multiple frames are traversed and the target signal feature count is obtained.
[0127] Optionally, the first determining module 908 is further configured to determine that the touch mode of the touch device is a strong water interference mode when the target signal feature count is greater than the signal feature count threshold; or, the target frame includes multiple regions, and the target signal feature count includes the region signal feature counts corresponding to the multiple regions respectively; the first determining module 908 is further configured to determine that the touch mode of the touch device is a strong water interference mode when the target signal feature count is greater than the signal feature count threshold, and the region signal feature counts are all greater than the region signal feature count thresholds.
[0128] Optionally, the device further includes: a second determining module configured to determine the number of consecutive frames in which the target signal feature count is less than the signal feature count threshold under the strong water interference mode; and to determine the touch mode as exiting the strong water interference mode if the number of consecutive frames is greater than the number of consecutive frames threshold.
[0129] Optionally, the first determining module 908 is further configured to determine the touch mode of the touch device based on the target water interference signal feature points within multiple frames and the target motion direction of the target water interference signal feature points.
[0130] Optionally, the target dimension includes a touch signal filtering dimension; the filtering module 906 is further configured to determine the neighborhood channel of the water interference signal feature point from the target frame; filter out the water interference signal feature points to be removed from the water interference signal feature points, wherein the neighborhood channel of the water interference signal feature point to be removed contains a touch signal; remove the water interference signal feature points to be removed to obtain the target water interference signal feature points in the target frame.
[0131] Optionally, the filtering module 906 is further configured to obtain the target mutual tolerance value of the neighborhood channel, wherein the target mutual tolerance value is greater than the mutual tolerance value of the neighborhood channel other than the target mutual tolerance value; and to filter out water interference signal feature points to be removed from the water interference signal feature points according to the target mutual tolerance value and the mutual tolerance value threshold.
[0132] Optionally, the target dimension includes a touch signal filtering dimension; the filtering module 906 is further configured to acquire a historical touch signal matrix of the target frame, wherein the historical touch signal matrix includes multiple touch feature values, and each touch feature value corresponds one-to-one with a sensing point; update the touch feature values according to the mutual capacitance value of the sensing points in the target frame to obtain a target touch signal matrix, wherein each touch feature value corresponds one-to-one with a sensing point; determine the touch feature value corresponding to the water interference signal feature point from the target touch signal matrix; when the touch feature value is non-zero, remove the water interference signal feature point to obtain the target water interference signal feature point in the target frame.
[0133] Optionally, the target dimension includes a feature point motion direction filtering dimension; the filtering module 906 is further configured to determine the motion direction of the water interference signal feature points based on the position of the water interference signal feature points in the target frame and the position of the water interference signal feature points in the previous frame of the target frame; and to filter the water interference signal feature points according to the motion direction to obtain the target water interference signal feature points.
[0134] Optionally, the identification module 904 is further configured to filter out a target sensing point from multiple sensing points and determine neighboring sensing points of the target sensing point, wherein the peak value of the target sensing point is negative; and to identify water interference signal feature points within the target frame from multiple sensing points based on the peak value of the target sensing point and the peak values of the neighboring sensing points.
[0135] The scheme implemented in this specification involves collecting signal peak values from sensing points in each frame within the target recognition cycle of the touch device, and using this as a basis to initially identify water interference signal feature points. Subsequently, water interference signal feature points are filtered by combining touch signal filtering dimensions and / or feature point movement directions, retaining target water interference signal feature points with the characteristics of real water droplets (especially raindrops). Based on this, and considering the spatiotemporal evolution trend of target water interference signal feature points across multiple frames, reliable determination of the touch mode is achieved. The entire process requires no additional hardware sensors, significantly improving the accuracy of touch modes, effectively reducing the false judgment rate, and greatly enhancing the stability of the touch device and user experience in water interference environments such as rain.
[0136] The above is a schematic scheme of a touch mode determination device according to this embodiment. It should be noted that the technical solution of this touch mode determination device and the technical solution of the touch mode determination method described above belong to the same concept. For details not described in detail in the technical solution of the touch mode determination device, please refer to the description of the technical solution of the touch mode determination method described above.
[0137] Corresponding to the above-described embodiments of the touch device control method, this specification also provides embodiments of the touch device control device. Figure 10 A schematic diagram of a touch device control device according to one embodiment of this specification is shown. Figure 10 As shown, the device includes: The acquisition module 1002 is configured to acquire the current touch mode of the touch device, wherein the current touch mode is determined based on the touch mode determination method; The control module 1004 is configured to control the touch device according to the current touch mode.
[0138] The solution implemented in the embodiments of this specification accurately identifies whether the current environment is in a strong water interference scenario such as a rainstorm by using the touch mode determination method, dynamically outputs the current touch mode, and performs adaptive control of the touch device based on the current touch mode. While ensuring the basic interactive usability of the touch device, it significantly improves the robustness, security and user experience consistency of the touch system.
[0139] The above is a schematic scheme of a touch device control device according to this embodiment. It should be noted that the technical solution of this touch device control device and the technical solution of the touch device control method described above belong to the same concept. For details not described in detail in the technical solution of the touch device control device, please refer to the description of the technical solution of the touch device control method described above.
[0140] Figure 11This specification illustrates a structural block diagram of an electronic device according to one embodiment. The electronic device 1100 includes, but is not limited to, a touch device 1110, a memory 1120, and a processor 1130. The touch device 1110, the memory 1120, and the processor 1130 are connected via a bus 1140, and a database 1150 is used to store data.
[0141] Electronic device 1100 also includes access device 1160, which enables electronic device 1100 to communicate via one or more networks 1170. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. Access device 1160 may include one or more of any type of wired or wireless network interface (e.g., Network Interface Card (NIC)), such as an IEEE 802.11 Wireless Local Area Networks (WLAN) interface, a Wi-MAX (World Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0142] In one embodiment of this specification, the above-described components of the electronic device 1100 and Figure 11 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 11 The block diagram of the electronic device shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0143] Electronic device 1100 can be any type of stationary or mobile electronic device, including mobile computers or mobile electronic devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable electronic devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary electronic devices such as desktop computers or personal computers (PCs). Electronic device 1100 can also be a mobile or stationary server.
[0144] The processor 1130 is used to execute computer programs / instructions, which, when executed by the processor, implement the steps of the above-described touch mode determination method or touch device control method.
[0145] The above is an illustrative scheme of an electronic device according to this embodiment. It should be noted that the technical solution of this electronic device belongs to the same concept as the above-described touch mode determination method and touch device control method. For details not described in detail in the technical solution of the electronic device, please refer to the description of the above-described touch mode determination method or touch device control method.
[0146] An embodiment of this specification also provides a computer-readable storage medium storing a computer program / instructions that, when executed by a processor, implement the steps of the above-described touch mode determination method or touch device control method.
[0147] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solutions of the touch mode determination method and the touch device control method described above. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solutions of the touch mode determination method or the touch device control method described above.
[0148] An embodiment of this specification also provides a computer program product, including a computer program / instructions, which, when executed by a processor, implement the steps of the above-described touch mode determination method or touch device control method.
[0149] The above is an illustrative scheme of a computer program product according to this embodiment. It should be noted that the technical solution of this computer program product belongs to the same concept as the technical solutions of the touch mode determination method and the touch device control method described above. For details not described in detail in the technical solution of the computer program product, please refer to the description of the technical solutions of the touch mode determination method or the touch device control method described above.
[0150] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.
[0151] Computer instructions include computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer program code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc. It should be noted that the content included in computer-readable media can be appropriately added or removed according to the requirements of patent practice. For example, in some regions, according to patent practice, computer-readable media do not include electrical carrier signals and telecommunication signals.
[0152] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments in this specification are not limited to the described order of actions, because according to the embodiments in this specification, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to the embodiments in this specification.
[0153] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0154] The preferred embodiments disclosed above are merely illustrative of this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the embodiments described herein. These embodiments are selected and specifically described in this specification to better explain the principles and practical applications of the embodiments, thereby enabling those skilled in the art to better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A method for determining a touch mode, characterized in that, include: Within the target recognition period of the touch device, the peak values of multiple sensing points within the target frame are collected, wherein the target recognition period includes multiple frames, and the target frame is any one of the multiple frames; Based on the peak value, water interference signal feature points within the target frame are identified from the plurality of sensing points; Based on the target dimension, the water interference signal feature points are filtered to obtain the target water interference signal feature points within the target frame, wherein the target dimension includes at least one of the touch signal filtering dimension and the feature point motion direction filtering dimension. The touch mode of the touch device is determined based on the target water interference signal feature points within the multiple frames.
2. The method according to claim 1, characterized in that, Determining the touch mode of the touch device based on the target water interference signal feature points within the multiple frames includes: Based on the target water interference signal feature points, determine the current state of the multiple frames respectively, and obtain the historical state of the multiple frames respectively; Based on the current state and the historical state, the initial signal feature count is iteratively adjusted to obtain the target signal feature count; The touch mode of the touch device is determined based on the count of the target signal features.
3. The method according to claim 2, characterized in that, The step of iteratively adjusting the initial signal feature count based on the current state and the historical state to obtain the target signal feature count includes: For the target frame, if the current state of the target frame is a water interference signal state and the historical state of the target frame is a non-water interference signal state, the initial signal feature count is increased. If the current state of the target frame is the non-water interference signal state and the historical state of the target frame is the water interference signal state, the initial signal feature count is reduced. The target signal feature count is obtained after the multiple frames have been traversed.
4. The method according to claim 2, characterized in that, The step of determining the touch mode of the touch device based on the count of the target signal features includes: If the target signal feature count is greater than the signal feature count threshold, the touch mode of the touch device is determined to be a strong water interference mode. or, The target frame includes multiple regions, and the target signal feature count includes region signal feature counts corresponding to each of the multiple regions; determining the touch mode of the touch device based on the target signal feature count includes: If the target signal feature count is greater than the signal feature count threshold, and the regional signal feature counts are all greater than the regional signal feature count thresholds, then the touch mode of the touch device is determined to be the strong water interference mode.
5. The method according to claim 4, characterized in that, After determining that the touch mode of the touch device is the strong water interference mode, the method further includes: Determine the number of consecutive frames in which the target signal feature count is less than the signal feature count threshold under the strong water interference mode; If the number of consecutive frames is greater than the consecutive frame number threshold, the touch mode is determined to be exiting the strong water interference mode.
6. The method according to claim 1, characterized in that, Determining the touch mode of the touch device based on the target water interference signal feature points within the multiple frames includes: The touch mode of the touch device is determined based on the target water interference signal feature points within the multiple frames and the target motion direction of the target water interference signal feature points.
7. The method according to any one of claims 1 to 6, characterized in that, The target dimension includes the touch signal filtering dimension; The step of filtering the water interference signal feature points based on the target dimension to obtain the target water interference signal feature points within the target frame includes: From the target frame, determine the neighborhood channel of the water interference signal feature point; Select water interference signal feature points to be removed from the water interference signal feature points, wherein touch signals exist in the neighborhood channel of the water interference signal feature points to be removed; Remove the water interference signal feature points to be removed to obtain the target water interference signal feature points within the target frame.
8. The method according to claim 7, characterized in that, The step of filtering out water interference signal feature points to be removed from the water interference signal feature points includes: Obtain the target mutual compatibility value of the neighborhood channel, wherein the target mutual compatibility value is greater than the mutual compatibility value of all other mutual compatibility values in the neighborhood channel except for the target mutual compatibility value; Based on the target mutual tolerance value and the mutual tolerance value threshold, the water interference signal feature points to be removed are selected from the water interference signal feature points.
9. The method according to any one of claims 1 to 6, characterized in that, The target dimension includes the touch signal filtering dimension; The step of filtering the water interference signal feature points based on the target dimension to obtain the target water interference signal feature points within the target frame includes: Obtain the historical touch signal matrix of the target frame, wherein the historical touch signal matrix includes multiple touch feature values, and the touch feature values correspond one-to-one with the sensing points; The touch feature value is updated based on the mutual compatibility value of the sensing point within the target frame to obtain the target touch signal matrix, wherein the touch feature value corresponds one-to-one with the sensing point; From the target touch signal matrix, determine the touch feature value corresponding to the water interference signal feature point; When the touch feature value is non-zero, the water interference signal feature points are removed to obtain the target water interference signal feature points within the target frame.
10. The method according to any one of claims 1 to 6, characterized in that, The target dimension includes the feature point motion direction filtering dimension; The step of filtering the water interference signal feature points based on the target dimension to obtain the target water interference signal feature points within the target frame includes: The movement direction of the water interference signal feature point is determined based on the position of the water interference signal feature point within the target frame and the position of the water interference signal feature point within the previous frame of the target frame. Based on the direction of motion, the water interference signal feature points are filtered to obtain the target water interference signal feature points.
11. The method according to any one of claims 1 to 6, characterized in that, The step of identifying water interference signal feature points within the target frame from the plurality of sensing points based on the peak value includes: A target sensing point is selected from the plurality of sensing points, and neighboring sensing points of the target sensing point are determined, wherein the peak value of the target sensing point is negative; Based on the peak value of the target sensing point and the peak value of the neighboring sensing points, water interference signal feature points within the target frame are identified from the plurality of sensing points.
12. A method for controlling a touch device, characterized in that, include: The current touch mode of the touch device is obtained, wherein the current touch mode is determined based on the method described in any one of claims 1 to 11; The touch device is controlled according to the current touch mode.
13. An electronic device, characterized in that, include: Touchscreen, memory, and processor; The memory is used to store computer programs / instructions, and the processor is used to execute the computer programs / instructions, which, when executed by the processor, implement the steps of the method according to any one of claims 1 to 12.