A touchpad water state processing method, storage medium and device

By detecting and classifying water conditions on the touchpad, and utilizing rectangular frames and operator filtering techniques, the problem of reduced gesture recognition sensitivity in water environments was solved, enabling normal gesture sensing in water conditions.

CN116069190BActive Publication Date: 2026-06-26SHENZHEN BETTERLIFE ELECTRONICS SCI & TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN BETTERLIFE ELECTRONICS SCI & TECH
Filing Date
2023-02-23
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

In a wet environment, the self-compression difference and mutual compatibility difference generated by water friction will reduce the sensitivity of gesture recognition.

Method used

By collecting the peak value of the touchpad sensing point, the peak point is obtained and a rectangle is constructed. The water state is detected according to the threshold condition, and the water is processed in stages and filtered by specific operators. The water state counter is controlled to realize the detection and processing of the water state.

Benefits of technology

In an aqueous environment, the touchpad's sensitivity to gesture recognition is improved, ensuring normal operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069190B_ABST
    Figure CN116069190B_ABST
Patent Text Reader

Abstract

The application discloses a kind of touchpad water state processing method, storage medium and equipment, it is related to communication technical field, it solves the technical problem that touchpad will reduce gesture recognition sensitivity when in water state environment.The method comprises: the peak value of each sensing point in the multiple sensing points of current frame on touchpad is collected;Obtain the peak point in multiple sensing points, rectangular frame is obtained with peak point as center point, find the sensing point that satisfies first threshold condition in rectangular frame;If the peak value of multiple sensing points satisfies first threshold condition, then determine that there is water state on touchpad, touchpad enters waterproof state;According to the number of water state, the water state counter of touchpad is controlled to count, and according to the counting result of water state counter, the current waterproof level of touchpad is determined;If the current waterproof level is primary waterproof level, then touchpad is prohibited reference refresh and tracking, and the rectangular frame of water state is filtered.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method, storage medium, and device for water treatment of touch panels. Background Technology

[0002] A touchpad, also known as a touch screen or touch panel, is a sensor-type liquid crystal display device that can receive input signals from touch. When a graphic button on the screen is touched, the tactile feedback system on the screen can drive various connected devices according to a pre-programmed program. It can also be described as an accessory that is a transparent medium on the surface of the display that can receive input signals from touch.

[0003] In the field of laptops and keyboard-equipped electronic products, when fingers are wet and there are water droplets on the touchpad, the friction between the fingers and the touchpad during touch operations (mouse and system gestures) will cause self-capacity and mutual-capacity differences. Therefore, in order to maintain normal performance and improve the touchpad's sensitivity to gesture recognition in wet environments, it is necessary to promptly identify and handle wet environments.

[0004] In the process of realizing this invention, the inventors discovered at least the following problems in the prior art:

[0005] When touchpad devices enter an aqueous environment, the self-compression difference and mutual-compression difference generated by water friction will reduce the touchpad's sensitivity to recognize gestures. Summary of the Invention

[0006] The purpose of this invention is to provide a method, storage medium, and device for water treatment of touchpads, thereby solving the technical problem in the prior art where the self-compression difference and mutual-compression difference generated by water friction reduce the touchpad's sensitivity to gesture recognition when the touchpad device enters a water environment. The various technical effects of the preferred solutions among the many technical solutions provided by this invention are detailed below.

[0007] To achieve the above objectives, the present invention provides the following technical solution:

[0008] This invention provides a method for treating water in a touchpad, comprising:

[0009] Step S1: Collect the peak value of each of the multiple sensing points on the touchpad in the current frame;

[0010] Step S2: Obtain the peak point among the plurality of sensing points, obtain a rectangular frame with the peak point as the center point, and find the sensing point that satisfies the first threshold condition within the rectangular frame;

[0011] Step S3: If the peak value of the plurality of sensing points meets the first threshold condition, it is determined that there is water on the touch panel, and the touch panel enters a waterproof state; according to the number of water states, the water ingress counter of the touch panel is controlled to count, and then the current waterproof level of the touch panel is determined according to the counting result of the water ingress counter.

[0012] Step S4: If the current waterproof rating is Level 1, then the touchpad is disabled from benchmark refresh and tracking, and the rectangular frame in the water state is subjected to specific operator calculation and filtering processing.

[0013] Preferably, in step S4,

[0014] If the current waterproof rating is level 2, then the reporting threshold of the touchpad is increased, the sensing points within the rectangle after the specific operator calculates and filters are found to meet the second threshold condition, and the coordinates of the sensing points that meet the second threshold condition are reported.

[0015] The second threshold condition is that the peak value of the sensing point is greater than the reporting threshold, and the value of the sensing point is greater than the number of nodes threshold.

[0016] Preferably, in step S4,

[0017] If the current waterproof rating is level three, the current frame on the touchpad will be locked for a period of time without reporting any points until the conditions for water evaporation are met, at which point the lock will be released.

[0018] Preferably, step S3 includes:

[0019] If the peak value of the sensing point within the rectangle is less than the first detection threshold, and the self-tolerance value of the sensing point within the rectangle is greater than the second detection threshold, then the sensing point is counted to obtain the node count result of the sensing point within the rectangle.

[0020] The node count result is compared with the first node threshold. If the node count result is greater than the first node threshold, it is determined that there are water droplets on the touch panel; if the node count result is less than the first node threshold, it is determined that there is no water on the touch panel.

[0021] Preferably, step S3 includes:

[0022] If the peak value of the sensing point within the rectangle is less than the third detection threshold, then the peak values ​​of all sensing points that are less than the third detection threshold are summed to obtain the node sum.

[0023] The sum of the nodes is compared with the peak value of the peak point, and it is determined whether the absolute value of the ratio of the sum of the nodes to the peak value of the peak point is greater than the fourth detection threshold; if so, it is predicted that there may be water on the touch panel; if not, it is predicted that there may be interference on the touch panel.

[0024] For the peak point where it is predicted that there may be water on the touch panel, determine whether the self-capacity difference value corresponding to the peak point is greater than the fifth detection threshold; if yes, it is determined that there is interference on the touch panel; if no, it is determined that there is water on the touch panel.

[0025] Preferably, for the peak point where interference is predicted to exist on the touch panel, if the self-compensation difference value corresponding to the peak point is greater than the fifth detection threshold, then it is determined that interference exists on the touch panel.

[0026] Preferably, the processing method further includes:

[0027] Step S100: Obtain the peak value of the self-capacity difference in the current frame, and compare the peak value of the self-capacity difference with the first fading threshold;

[0028] Step S200: Determine whether the self-capacity peak value is less than the first water-removal threshold. If yes, the touch panel starts the water-removal process and controls the water-removal state counter of the touch panel to start counting. If no, control the water-removal state counter to be cleared.

[0029] Preferably, in step S200,

[0030] Step S210: Perform water removal detection on M consecutive frames after the water removal process of the touchpad is started;

[0031] Step S220: Determine whether all the peak values ​​in the current frame meet the third threshold condition. If yes, control the receding state counter to speed up the counting; if no, the receding state counter maintains the current counting speed.

[0032] Step S230: Determine whether the water receding state counter meets the second water receding threshold. If yes, determine that there is no water on the touch panel and the touch panel exits the waterproof state. If no, control the water receding state counter of the touch panel to continue counting.

[0033] In addition, the present invention provides a computer-readable storage medium storing a computer program that, when executed, implements the touchpad water processing method.

[0034] The present invention also provides a touchpad water treatment device, comprising:

[0035] One or more processors;

[0036] A memory for storing one or more computer programs, and one or more processors for executing the one or more computer programs stored in the memory to cause the one or more processors to perform the touchpad water processing method.

[0037] Implementing one of the above-described technical solutions of the present invention has the following advantages or beneficial effects:

[0038] This invention detects the presence of water on the touchpad. When the water condition is met, a water state counter is incremented. Then, the water environment of the touchpad in the current frame is classified according to the counting result. The touchpad is then processed accordingly based on the classification result so that the touchpad can still perform gesture sensing normally when entering a water environment, thereby improving the gesture sensing sensitivity in water. Attached Figure Description

[0039] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. In the drawings:

[0040] Figure 1 This is the method flow of Embodiment 1 of the present invention. Figure 1 ;

[0041] Figure 2 This is the method flow of Embodiment 1 of the present invention. Figure 2 ;

[0042] Figure 3 This is the method flow of Embodiment 1 of the present invention. Figure 2 The detailed flowchart. Detailed Implementation

[0043] To make the objectives, technical solutions, and advantages of the present invention clearer, various exemplary embodiments described below will be referenced to the accompanying drawings, which form part of the exemplary embodiments, illustrating various exemplary embodiments that may be used to implement the present invention. Unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. It should be understood that they are merely examples of processes, methods, and apparatuses consistent with some aspects of the present invention disclosed as detailed in the appended claims, and other embodiments may be used, or structural and functional modifications may be made to the embodiments listed herein without departing from the scope and spirit of the present invention.

[0044] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," etc., indicate the orientation or positional relationship based on the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the referred element must have a specific orientation, or be constructed and operated in a specific orientation. The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. The term "multiple" means two or more. The terms "connected" and "linked" should be interpreted broadly, for example, they can be fixed connections, detachable connections, integral connections, mechanical connections, electrical connections, communication connections, direct connections, indirect connections through an intermediate medium, and can be the internal connection of two elements or the interaction relationship between two elements. The term "and / or" includes any and all combinations of one or more of the related listed items. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0045] To illustrate the technical solution described in this invention, specific embodiments are described below, showing only the parts related to the embodiments of this invention.

[0046] Example 1:

[0047] like Figure 1 As shown, this invention provides a method for handling water-state conditions on a touchpad, including: Step S1: Collecting the peak value of each of multiple sensing points on the touchpad in the current frame; Step S2: Obtaining the peak point among the multiple sensing points, obtaining a rectangular frame with the peak point as the center point, and finding the sensing point that meets the first threshold condition within the rectangular frame; Step S3: If the peak values ​​of multiple sensing points meet the first threshold condition, it is determined that there is a water state on the touchpad, and the touchpad enters a waterproof state; according to the number of water states, controlling the water-entry state counter of the touchpad to count, and then determining the current waterproof level of the touchpad based on the counting result of the water-entry state counter; Step S4: If the current waterproof level is Level 1 waterproof level, then the touchpad is prohibited from baseline refresh and tracking, and specific operator calculation filtering processing is performed on the rectangular frame of the water state. Specifically, this invention detects the water state present on the touchpad. When the water state condition is met, the water state counter is incremented. Then, the water state environment of the touchpad in the current frame is classified according to the counting result. The touchpad is then processed accordingly based on the classification result so that the touchpad can still perform gesture sensing normally when entering the water state environment, thereby improving the gesture sensing sensitivity in the water state.

[0048] Furthermore, once the water ingress counter reaches its threshold, the touchpad enters a waterproof state, followed by waterproofing treatment and water dewatering detection. When the water dewatering conditions are met, the water dewatering counter increments. Once the water dewatering counter reaches its threshold, the touchpad exits the waterproof state.

[0049] It should be noted that this invention has three levels of waterproof rating for water states, which are classified according to the number of water states detected. Among them, water state detection is further divided into water droplets and water bands. Water bands are water states created by multiple water droplets or by swiping with wet fingers.

[0050] In step S1, data from each channel of the touchpad in the current frame is acquired. The acquired data includes self-capacity difference and mutual capacity difference values ​​already calculated by a computer or other device. The difference is calculated by averaging the peak values ​​sampled from the same position within one or two stable frames when the touchpad is first powered on, using this as a base value. The original value sampled from the same position in the current frame is then subtracted from this base value to obtain the difference. The self-capacity difference and mutual capacity difference are obtained through different channels. In this invention, both the self-capacity difference and mutual capacity difference are represented as peak values.

[0051] In step S2, the peak point among the multiple sensing points is obtained, that is, the peak value of the sensing point with the largest absolute value on the mutual capacitance channel. A rectangular frame is obtained with this maximum sensing point as the center point. This rectangular frame is an N*N rectangle, and sensing points that satisfy the first threshold condition are found within the rectangle.

[0052] The first threshold condition is that the absolute value of the peak value of the sensing point within the rectangle is less than the absolute value of the peak value of the peak point.

[0053] As an optional implementation, step S3 includes: if the peak value of the sensing point within the rectangle is less than the first detection threshold, and the self-capacity difference of the sensing point within the rectangle is greater than the second detection threshold, then the sensing point is counted to obtain the node count result of the sensing point within the rectangle; the node count result is compared with the first node threshold; if the node count result is greater than the first node threshold, it is determined that there is a water droplet on the touchpad; if the node count result is less than the first node threshold, it is determined that there is no water on the touchpad. Specifically, in step S3, the first detection threshold and the second detection threshold are 50 and -100, respectively. The specific value of the threshold is set by the user; in this embodiment, 50 and -100 are preferred options, not the only options. Setting the first detection threshold is to filter out excessively large positive peak values. In actual detection, when a water droplet falls on the touchpad and the finger is not operating on the touchpad, the sensing point under the water droplet will also generate a self-capacity difference due to the water droplet, and the generated self-capacity difference is mostly a negative peak value. For the self-capacity difference on the self-capacity channel, a second detection threshold is set. If it is less than the second detection threshold, it is considered to be an interference value on the current frame or the current frame is not stable.

[0054] Based on this characteristic, a rectangular frame is obtained centered on the peak point among multiple sensing points in the current frame. Preferably, the rectangular frame in this embodiment is a 3*3 rectangle. All peak values ​​within the rectangle, except for the central peak value, are traversed. Any peak value is compared with the peak point. If the peak value is greater than the peak point's peak value, the peak value is counted as one node. After traversal, the number of sensing points within the rectangle that satisfy the condition of a peak value greater than the peak point is obtained. This number is compared with a first node threshold. The first node threshold is 0.8k, where k is the number of nodes within the rectangle. That is, if 80% of the nodes within the 3*3 rectangle are greater than the peak point's peak value, and these sensing points all satisfy the conditions that the peak value is not a large positive value (less than 50) and the corresponding self-compensation error value is not a large negative value (greater than -100), then it can be determined that a water droplet exists at the peak point in the current frame. If these conditions are not met, it is considered an interference point.

[0055] As an optional implementation, step S3 includes: if the peak value of the sensing point within the rectangle is less than the third detection threshold, then summing the peak values ​​of all sensing points less than the third detection threshold to obtain a node sum; comparing the node sum with the peak value of the peak point, determining whether the absolute value of the ratio of the node sum to the peak value of the peak point is greater than the fourth detection threshold; if yes, then predicting that there may be water on the touch panel; if no, then predicting that there may be interference on the touch panel; for the peak point where water is predicted to be present on the touch panel, determining whether the self-capacity error value corresponding to the peak point is greater than the fifth detection threshold; if yes, then determining that there is interference on the touch panel; if no, then determining that there is water on the touch panel. Specifically, if the water environment is a water band, since the water band is generated by the swiping of the finger, it generally has a large positive value, that is, the water droplet detection method is not suitable for water band detection.

[0056] The difference between this step and droplet detection is that water band detection may have multiple large positive values. When acquiring the peak points of multiple mutual compatibility channels in the current frame, the peak value of the peak point is compared with a pre-set reporting threshold. A prerequisite is set for this: a bounding box can only be constructed centered on the peak point if its peak value is greater than the reporting threshold. If it is less than the reporting threshold, no bounding box is constructed for that peak point.

[0057] For the rectangular frame that meets the prerequisite for water state detection, a third detection threshold is set to -20. The purpose of setting the third detection threshold is to find the negative peak value within the rectangular frame; therefore, it is set within the noise floor range and can be adjusted according to the noise floor range. The noise floor is the difference in value generated by the TP itself when it is not touched. The TP is the sensing module represented by the sensing point on the touchpad. For example, if the noise floor in this embodiment is -20 to 20, the third detection threshold can be set to <= -20, but it should generally not be too small.

[0058] Iterate through the rectangles that meet the prerequisites, accumulating the peak values ​​within each rectangle that are less than the third detection threshold, obtaining the negative sum of each rectangle (node ​​sum). Compare this node sum with the peak value of the peak point (center peak value) to obtain the ratio = node sum / center peak value. Compare this ratio with the fourth detection threshold. If the ratio is less than the fourth detection threshold, it is predicted that there may be watermarks on the touchpad. Otherwise, it may be interference.

[0059] The fourth detection threshold is set within the range of 0.5 to 2, meaning it is set empirically. The threshold is determined by the ratio of the sum of the nodes within the rectangle to the peak value of the peak point. (The sum of the nodes within the rectangle > 0.5 at the center.) peak值 This allows us to predict whether there is a water band at the peak point of the rectangle on the touchpad.

[0060] Next, it is determined whether the self-capacity difference corresponding to the peak point is greater than the fifth detection threshold. If so, interference is determined to exist on the touchpad; otherwise, watermarks are determined to exist on the touchpad. The fifth detection threshold is calculated by averaging the self-capacity peak value on the touchpad's self-capacity channel in the current frame and the second largest adjacent value. This is because if a finger touches between two nodes, the energy is evenly distributed, making the calculation more accurate. For a more precise result, the self-capacity peak value is set to A, the second largest adjacent value is set to B (both A and B are integers greater than 0), and the fifth detection threshold is set to ((A+B) / 2)*C, where C is a coefficient greater than 0 and less than 1, which can be set to 0.4.

[0061] Furthermore, if the rectangle meets the prerequisite, but the peak values ​​within the rectangle are all greater than the third detection threshold and are mostly positive peak values, then the rectangle is a finger touch node, which is a normal reporting point.

[0062] It should be noted that in this invention, only positive peak values ​​can be reported, and the surrounding areas are mostly normal reporting points with positive peak values.

[0063] As an optional implementation, for peak points where interference may exist on the touchpad, if the self-capacity difference value corresponding to the peak point is greater than the fifth detection threshold, then it is determined that there is interference on the touchpad.

[0064] Specifically, in step S3, each time a water droplet or water jet is detected, the water ingress counter is incremented. Whenever water is detected, the touchpad enters a waterproof state. Then, different waterproof levels are applied based on the number of water states in the current frame (the result of the water ingress counter).

[0065] The present invention provides three levels of waterproofing for water-based applications: Level 1, Level 2, and Level 3.

[0066] The first level of waterproofing is defined as the absence of a positive peak value in the current frame and the count of the water ingress counter being greater than the first waterproofing threshold.

[0067] The second level of waterproofing is defined as follows: there are at least X positive peak values ​​in the current frame, and there is at least one negative peak value within a rectangle centered on the positive peak value, and the negative peak value is less than the second detection threshold.

[0068] Level 3 waterproof rating is defined as follows: there are at least Y positive peak values ​​in the current frame, and there is at least one negative peak value within a rectangle centered on the positive peak value, and the negative peak value is less than the second detection threshold.

[0069] Among them, both X and Y are positive integers not less than 0, and X < Y. The above-mentioned three-level waterproof grade can be simply summarized as: 1. There are water droplet nodes, but no water band nodes; 2. There are X water band nodes; 3. There are Y water band nodes.

[0070] If the first-level waterproof grade is triggered on the current frame, the touchpad will be prohibited from refreshing and tracking the reference, and a specific operator calculation filtering process will be performed on the rectangular frame. This is because refreshing and tracking the reference on the basis of water will cause the flatness of the reference plane to deteriorate compared to the normal initial reference plane. Therefore, when the waterproof state is reached, the touchpad will prohibit refreshing and tracking the reference. And a specific operator calculation filtering is performed on the water-state rectangular frame that triggers the first-level waterproof grade, which will effectively filter out the peak values at the edges with large negative values. For example, a nine-grid operator is used to perform filtering calculations on the rectangular frame centered on the peak point. For example, the 3*3 nine-grid operator is set to {{1, 2, 1}, {2, 4, 2}, {1, 2, 1}}, and a multiplication-addition sum calculation is performed with the 3*3 frame centered on the positive peak node, and only the specific operators exceeding the threshold are retained.

[0071] As an optional implementation manner, in step S4, if the current waterproof grade is the second-level waterproof grade, the reporting threshold of the touchpad is increased, the sensing points that meet the second threshold condition are found among the sensing points within the rectangular frame after the specific operator calculation filtering, and the coordinates of the sensing points that meet the second threshold condition are reported; the second threshold condition is that the peak value of the sensing point is greater than the reporting threshold, and the value of the sensing point is greater than the node number threshold.

[0072] The second threshold condition is that the peak value of the sensing point is greater than the reporting threshold, and the value of the sensing point is greater than the node number threshold. It should be noted that the reporting threshold is generally set as a positive value.

[0073] Specifically, if the second-level waterproof grade is triggered on the current frame, on the basis of the first-level waterproof grade processing, the reporting threshold of the touchpad is increased. If the center peak value is greater than the reporting threshold, the rectangular frame with the center peak value is traversed. If there is a peak value greater than the third detection threshold within the rectangular frame, the peak value is counted once to obtain the number of nodes m in the rectangular frame. When the counting result of the rectangular frame is less than the node number threshold n (the node number threshold is also the first node threshold, which is 80% of the number of nodes within the rectangular frame), that is, when m < n, the peak point of the rectangular frame is not reported. If m > n, and the self-capacitance difference corresponding to the peak point of the rectangular frame does not meet the fifth detection threshold, the peak point is also not reported.

[0074] In other words, a peak point can only be reported if the peak value of the peak point is greater than the reporting threshold and most of the peak values ​​within the rectangle of the peak point are positive. This can effectively filter out nodes with large differences left after wet fingers or water-stained swipes.

[0075] As an optional implementation, in step S4, if the current waterproof rating is level three, the current frame on the touchpad is locked for a period of time and no reporting is made until the water evaporation conditions are met, at which point the lock is released.

[0076] Specifically, if a Level 3 waterproof rating is triggered on the current frame, the touchpad will be locked in a timed manner to prevent point reporting. The principle behind this locking is that if the number of reported points exceeds a threshold, the current frame will immediately be locked and no reporting will occur until the next frame does not have any reported points that meet the threshold, at which point the lock will be released.

[0077] like Figure 2 As shown, as an optional implementation, the processing method further includes: step S100: obtaining the self-capacity peak value of the self-capacity difference in the current frame, and comparing the self-capacity peak value with the first water-removal threshold; step S200: determining whether the self-capacity peak value is less than the first water-removal threshold. If so, the touchpad starts the water-removal process and controls the water-removal state counter of the touchpad to start counting; if not, the water-removal state counter is cleared.

[0078] like Figure 3 As shown, as an optional implementation, in step S200, step S210: perform water removal detection on M consecutive frames after the touchpad starts the water removal process; step S220: determine whether all peak values ​​in the current frame meet the third threshold condition. If yes, control the water removal state counter to speed up the counting; if no, the water removal state counter maintains the current counting speed; step S230: determine whether the water removal count of the water removal state counter meets the second water removal threshold. If yes, determine that there is no water state on the touchpad and the touchpad exits the waterproof state; if no, control the water removal state counter of the touchpad to continue counting.

[0079] Specifically, each frame of the image contains a self-permeability peak. This peak is compared with a first water-removal threshold. If the peak is less than the threshold, the touchpad starts counting in the water-removal state and sets the count to 1. The water-removal count is accumulated based on this. Only when the peak values ​​of the self-permeability peaks for M consecutive frames are all less than the first threshold, and the accumulated count of the water-removal state counter reaches a third threshold condition, can it be determined that there is no water on the touchpad and the water-removal state is exited. If the peak value of the self-permeability peak in any frame is greater than the first threshold, the water-removal state counter is reset to zero and starts counting again.

[0080] If the mutual tolerance difference of each channel in the current frame is detected to be within a stable noise floor range, the accumulation speed of the water-receding state counter can be accelerated until the third threshold condition is reached, at which point the water-receding state ends.

[0081] The embodiment is merely a specific example and does not indicate that this is the only way to implement the present invention.

[0082] Example 2:

[0083] Those skilled in the art will understand that all or part of the features / steps of the above-described method embodiments can be implemented by methods, data processing systems, or computer programs. These features may be implemented without hardware, entirely in software, or in a combination of hardware and software. The aforementioned computer program may be stored in one or more computer-readable storage media. When the computer program is executed (e.g., by a processor), it performs the steps of Embodiment 1 described above.

[0084] The aforementioned storage media capable of storing program code include: static disks, solid-state drives, random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), optical storage devices, magnetic storage devices, flash memory, magnetic disks or optical disks, and / or combinations of the above devices, that is, they can be implemented by any type of volatile or non-volatile storage devices or combinations thereof.

[0085] Example 3:

[0086] The present invention also provides an embodiment of a touchpad water treatment device, including one or more processors and a memory; wherein the memory is used to store one or more computer programs, and the one or more processors are used to execute the one or more computer programs stored in the memory, so that the processors perform the features / steps of the above embodiment one.

[0087] The above description is merely a preferred embodiment of the present invention. Those skilled in the art will understand that various changes or equivalent substitutions can be made to these features and embodiments without departing from the spirit and scope of the present invention. Furthermore, under the teachings of the present invention, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the protection scope of the present invention.

Claims

1. A method for treating water in a touchpad, characterized in that, include: Step S1: Collect the peak value of each of the multiple sensing points on the touchpad in the current frame; Step S2: Obtain the peak point among the plurality of sensing points, obtain a rectangular frame with the peak point as the center point, and find the sensing point that satisfies the first threshold condition within the rectangular frame; Step S3: Determine whether there is water on the touch panel. If so, the touch panel enters a waterproof state. Based on the number of water states, control the water ingress counter of the touch panel to count, and then determine the current waterproof level of the touch panel based on the counting result of the water ingress counter. Step S4: If the current waterproof level is Level 1, then the touchpad is disabled from benchmark refresh and tracking, and the rectangular frame in the water state is subjected to specific operator calculation and filtering processing. The determination of whether there is water on the touch panel includes: the determination of water droplets and the determination of water bands; The determination of the water droplets includes: If the peak value of the sensing point within the rectangle is less than the first detection threshold, and the self-tolerance value of the sensing point within the rectangle is greater than the second detection threshold, then the sensing point is counted to obtain the node count result of the sensing point within the rectangle. The node count result is compared with a first node threshold. If the node count result is greater than the first node threshold, it is determined that there are water droplets on the touch panel; if the node count result is less than the first node threshold, it is determined that there are no water droplets on the touch panel. The determination of the water belt includes: The peak values ​​within the rectangle that are less than the third detection threshold are accumulated to obtain the node sum. The sum of the nodes is compared with the peak value of the peak point, and it is determined whether the absolute value of the ratio of the sum of the nodes to the peak value of the peak point is less than the fourth detection threshold; if so, it is predicted that there may be water on the touch panel; if not, it is predicted that there may be interference on the touch panel. For the peak point where it is predicted that there may be water on the touch panel, determine whether the self-capacity difference value corresponding to the peak point is greater than the fifth detection threshold; if yes, it is determined that there is interference on the touch panel; if no, it is determined that there is water on the touch panel.

2. The touchpad water treatment method according to claim 1, characterized in that, In step S4 If the current waterproof rating is level 2, then the reporting threshold of the touchpad is increased, the sensing points within the rectangle after the specific operator calculates and filters are found to meet the second threshold condition, and the coordinates of the sensing points that meet the second threshold condition are reported. The second threshold condition is that the peak value of the sensing point is greater than the reporting threshold, and the value of the sensing point is greater than the number of nodes threshold.

3. The touchpad water treatment method according to claim 1, characterized in that, In step S4 If the current waterproof rating is level three, the current frame on the touchpad will be locked for a period of time without reporting any points until the conditions for water evaporation are met, at which point the lock will be released.

4. The touchpad water treatment method according to claim 1, characterized in that, For the peak point that is predicted to be potentially causing interference on the touchpad, if the self-compensation value corresponding to the peak point is greater than the fifth detection threshold, then it is determined that there is interference on the touchpad.

5. The touchpad water treatment method according to claim 1, characterized in that, The processing method further includes: Step S100: Obtain the peak value of the self-capacity difference in the current frame, and compare the peak value of the self-capacity difference with the first fading threshold; Step S200: Determine whether the self-capacity peak value is less than the first water-removal threshold. If yes, the touch panel starts the water-removal process and controls the water-removal state counter of the touch panel to start counting. If no, control the water-removal state counter to be cleared.

6. The touchpad water treatment method according to claim 5, characterized in that, In step S200 Step S210: Perform water removal detection on M consecutive frames after the water removal process of the touchpad is started; Step S220: Determine whether all the peak values ​​in the current frame meet the third threshold condition. If yes, control the receding state counter to speed up the counting; if no, the receding state counter maintains the current counting speed. Step S230: Determine whether the water receding state counter meets the second water receding threshold. If yes, determine that there is no water on the touch panel and the touch panel exits the waterproof state. If no, control the water receding state counter of the touch panel to continue counting.

7. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed, implements the touchpad water treatment method according to any one of claims 1-6.

8. A touchpad water treatment device, characterized in that, include: One or more processors; A memory for storing one or more computer programs, and one or more processors for executing the one or more computer programs stored in the memory to cause the one or more processors to perform the touchpad water treatment method as described in any one of claims 1-6.