Touch identification method and electronic equipment

By obtaining the capacitor array in the capacitive touch panel, performing rough detection and precision detection, the problem of accidentally touching in water contact or wet hands is solved, and the accuracy and performance of touch recognition are improved.

CN120215731AActive Publication Date: 2025-06-27HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311766627.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-20
Publication Date
2025-06-27
Estimated Expiration
2043-12-20

AI Technical Summary

Technical Problem

The capacitive touch panel is easily misjudged as finger touching when in water contact or wet hands, resulting in false touch events or touch failure.

Method used

By obtaining the capacitor array, perform rough detection to determine whether there is contact between the hand and the interfering substance. If it is determined that the hand and the interfering substance are contacted, perform fine detection to further determine the capacitor in the hand contact and obtain the touch position of the hand.

Benefits of technology

Improve the accuracy of wet-hand touch recognition, quickly determine the touch recognition status, reduce false touch events, and improve the performance of touch recognition function.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120215731A_ABST
    Figure CN120215731A_ABST
Patent Text Reader

Abstract

The invention provides a touch identification method and electronic equipment. The method comprises the following steps that: the electronic equipment obtains a capacitor array through a capacitive touch panel, wherein the capacitor array comprises capacitors of a plurality of detection points in the capacitive touch panel; and then performing coarse detection according to the capacitor array, namely preliminarily judging whether the capacitive touch panel is in contact with a hand or not and judging whether the capacitive touch panel is in contact with an interfering substance or not. If it is determined that the hand makes contact with the interference substance on the capacitive touch panel, fine detection is conducted on the capacitor array, in other words, the capacitor corresponding to the hand in the capacitor array is further judged, and then the touch position of the hand is obtained according to the capacitor corresponding to the hand in the touch mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminals, and in particular, to a touch recognition method and an electronic device. Background Art

[0002] Currently, more and more electronic devices use capacitive touch panels. However, when water touches the capacitive touch panel, the electronic device may misjudge it as a finger touch, thereby triggering a mis-touch event. Also, when the user's hands are wet and input a touch operation, the electronic device may not be able to detect the correct finger touch operation, which may cause problems such as touch failure.

[0003] How to provide an accurate touch recognition method is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a touch recognition method and an electronic device. The method includes: the electronic device obtains a capacitance array through a capacitive touch panel, and the capacitance array includes the capacitances of multiple detection points in the capacitive touch panel. Then, a rough detection is performed based on the capacitance array, that is, it is initially determined whether there is a hand touching the capacitive touch panel, and whether there is a contact of interfering substances with the capacitive touch panel. If it is determined that there is a hand and interfering substances touching the capacitive touch panel, a fine detection is performed on the capacitance array, that is, the capacitance corresponding to the hand touch in the capacitance array is further determined, and then the touch position of the hand is obtained based on the capacitance corresponding to the hand touch. This can improve the accuracy of wet-hand touch recognition.

[0005] In a first aspect, this application provides a touch recognition method, which is applied to an electronic device including a capacitive touch panel. The method includes: obtaining a capacitance array, where the capacitance array includes the capacitances of multiple detection points in the capacitive touch panel; determining whether there is a hand touching the capacitive touch panel based on the capacitance array, and determining whether there is water touching the capacitive touch panel based on the capacitance array; if it is determined that there is a hand and water touching the capacitive touch panel, determining whether there is a capacitance within a target range corresponding to the hand touch in the capacitance array; if so, obtaining the touch position of the hand based on the capacitance within the target range.

[0006] The capacitances of the multiple detection points described in this application are usually the capacitances of all detection points in the capacitive touch panel. Moreover, the capacitance of the detection point can specifically be obtained through mutual capacitance detection or self-capacitance detection.

[0007] After implementing the method provided in the first aspect, the electronic device can initially determine whether there is hand and water contact with the capacitive touch panel, that is, initially determine whether it is in a wet hand touch state. If so, the electronic device further determines the capacitance corresponding to the hand touch. Then, based on the position of the detection point to which the capacitance corresponding to the hand touch belongs, a highly accurate touch position can be obtained based on the capacitance corresponding to the hand touch.

[0008] Combined with the method described in the first aspect, the method specifically includes: using a first condition when determining whether there is hand contact with the capacitive touch panel; using a second condition when determining whether there is a capacitance within a target range corresponding to hand contact in the capacitance array; the second condition is more stringent than the first condition.

[0009] In this way, the electronic device first uses the first condition for preliminary detection and then uses the more stringent second condition for fine detection. This method of performing detection in a coarse and fine stage can generally improve the convergence speed of the touch recognition algorithm and enhance the performance of the touch recognition function. In the coarse detection stage, the touch recognition state can be quickly determined, and then the corresponding touch mode can be timely adopted to respond to the user's touch operation.

[0010] Combined with the method described in the first aspect, the first condition includes: in the capacitance array, when there is a capacitance greater than a first value and the number of capacitances greater than a second value is greater than a third value, it is determined that there is hand contact with the capacitive touch panel; the first value is greater than the second value; the second condition includes: in the capacitance array, when there is a capacitance greater than a seventh value and the number of capacitances less than an eighth value among the capacitances within the target range around the seventh value is greater than a ninth value, it is determined that there is hand contact with the capacitive touch panel; the seventh value is greater than the first value.

[0011] The foregoing first condition and second condition are both exemplarily shown under the following conditions: (1) If the electronic device uses mutual capacitance detection, the capacitance array is specifically the capacitance array corresponding to the difference obtained by subtracting the induced value from the original value at the detection point; (2) If the electronic device uses self-capacitance detection, the capacitance array is specifically the capacitance array corresponding to the difference obtained by subtracting the original value from the induced value at the detection point. Under the above two conditions, it can be ensured that the change in capacitance at the detection point caused by hand contact, that is, the difference, is positive, which is convenient for the electronic device to perform data processing. In addition, when the electronic device uses self-capacitance detection and the capacitance array is specifically set to the difference obtained by subtracting the induced value from the original value at the detection point, the above first condition needs to be replaced with the first condition involving an eleventh value, a twelfth value, and a thirteenth value described in the embodiment. The second condition also needs to be replaced similarly, which will not be elaborated here one by one.

[0012] In this way, since the first condition adopted in this application is based on the entire capacitance array, by determining whether the maximum value is large enough, considering the particularity that the difference between detection points at the contact area is the largest under hand contact, and by determining whether the larger values are sufficient in number, taking into account the overall characteristic that the differences between most detection points in the entire capacitance array are relatively large under hand contact. That is to say, by adopting the first condition provided in this application, it is possible to quickly and comprehensively and specifically determine whether there is hand contact. The second condition adopted in this application takes into account the characteristic that water is not grounded and floats on the capacitive touch panel, while the hand is grounded. Based on this, the different effects of water and hand on the capacitance of the detection points can be used to accurately identify the capacitance where the change in the detection points is caused by hand contact.

[0013] Combined with the method described in the first aspect, obtaining the touch position of the hand according to the capacitance within the target range specifically includes: using the centroid algorithm for the capacitance within the target range to obtain the touch position of the hand.

[0014] In this way, since finger contact with the panel covers multiple detection points, based on the capacitance at multiple detection points, the capacitance corresponding to the centroid of the finger is analyzed, and further, a more accurate touch position of the hand can be obtained.

[0015] Combined with the method described in the first aspect, the method specifically includes: adopting a third condition when determining whether there is water contact on the capacitive touch panel; the third condition includes: when there are capacitances less than a fourth value and the number of capacitances less than a fifth value in the capacitance array is greater than a sixth value, it is determined that there is water contact on the capacitive touch panel; the fourth value is less than the fifth value.

[0016] In this way, in the third condition provided in this application, based on the entire capacitance array, by determining whether the minimum value is small enough, considering the particularity that the difference between detection points at the contact area is the smallest under water contact, and by determining whether the smaller values are sufficient in number, taking into account the overall characteristic that the differences between most detection points in the entire capacitance array are relatively small under water contact. That is to say, by adopting the third condition provided in this application, it is possible to quickly and comprehensively and specifically determine whether there is water contact.

[0017] Combined with the method described in the first aspect, the method further includes: if it is determined that there is water on the capacitive touch panel and there is no hand contact, the touch position of the water is not obtained.

[0018] In this way, the electronic device does not calculate the capacitance array, and thus does not obtain the touch position of the water, and further does not respond to the touch of the water, that is, it can avoid the electronic device from being accidentally triggered and avoid problems such as the incorrect display of handwriting shown in b of this application Figure 3 and other issues.

[0019] The method described in combination with the first aspect further includes: if it is determined that the capacitive touch panel has water and no hand contact, filtering the capacitance array.

[0020] The method described in combination with the first aspect further includes: if it is determined that the capacitive touch panel has no water and there is hand contact, obtaining the touch position of the hand according to the capacitance array.

[0021] In this way, when the electronic device initially determines that there is no water and only hand contact, the conventional touch mode can be adopted to quickly identify the touch position of the hand.

[0022] The method described in combination with the first aspect further includes: displaying the handwriting corresponding to the touch position at the display screen corresponding to the touch position; or, performing the task corresponding to the control according to the control displayed corresponding to the touch position.

[0023] In this way, after the electronic device recognizes the touch position of the hand, it can respond to the touch operation of the hand in a timely manner and perform the corresponding task.

[0024] The touch position in combination with the method described in the first aspect includes the positions of one or more detection points.

[0025] That is, in addition to providing single-touch function, the electronic device can also provide multi-touch function. Specifically, when the user's fingers simultaneously touch multiple positions on the capacitive touch panel, the capacitances of multiple detection points will change accordingly, and then the electronic device can identify the positions of multiple detection points corresponding to the touch position according to the changed capacitance.

[0026] In a second aspect, the present application provides an electronic device, which includes a capacitive touch panel and one or more processors; the memory is coupled to the one or more processors, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method described in any one of the first aspects.

[0027] In a third aspect, the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, and the processors are used to call computer instructions to enable the electronic device to execute the method described in any one of the first aspects.

[0028] In a fourth aspect, the present application provides a computer-readable storage medium, which includes instructions. When the instructions run on an electronic device, the electronic device is enabled to execute the method described in any one of the first aspects. Description of the Drawings

[0029] Figure 1Schematic diagram of the structure of an electronic device screen 10 provided by an embodiment of the present application;

[0030] Figure 2 Schematic diagram of the structure of a capacitive touch panel 12 provided by an embodiment of the present application;

[0031] Figure 3 Schematic diagram of a group of touch recognition user interfaces provided by an embodiment of the present application;

[0032] Figure 4 Flowchart of a touch recognition method provided by an embodiment of the present application;

[0033] Figure 5 Flowchart of a method for determining a touch mode provided by an embodiment of the present application;

[0034] Figure 6A Capacitance array that satisfies the first condition under only hand touch provided by an embodiment of the present application;

[0035] Figure 6B Capacitance array that satisfies the first condition under only water touch provided by an embodiment of the present application;

[0036] Figure 6C Capacitance array that satisfies the first condition and the third condition under wet hand touch provided by an embodiment of the present application;

[0037] Figure 7 Flowchart of a method for wet hand touch mode provided by an embodiment of the present application;

[0038] Figure 8A Capacitance array that satisfies the first condition under wet hand touch provided by an embodiment of the present application;

[0039] Figure 8B Capacitance array for filtering interference under wet hand touch provided by an embodiment of the present application;

[0040] Figure 9 Schematic diagram of the hardware architecture of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0041] The technical solutions in the embodiments of the present application will be clearly and elaborately described below with reference to the accompanying drawings.

[0042] In the description of the embodiments of the present application, unless otherwise specified, " / " means "or", for example, A / B may represent A or B; "and / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

[0043] In the description of the embodiments of the present application, unless otherwise specified, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality" is two or more.

[0044] Reference to "embodiment" in the present application means that a specific feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described in the present application may be combined with other embodiments.

[0045] The term "user interface (UI)" in the following embodiments of the present application is a media interface for interaction and information exchange between an application or an operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is source code written in a specific computer language such as Java and Extensible Markup Language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content recognizable by the user. The common manifestation form of the user interface is the graphical user interface (GUI), which refers to the user interface related to computer operations displayed in a graphical manner. It may be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and Widgets displayed on the display screen of an electronic device.

[0046] Currently, capacitive touch panels are provided in the screens of most electronic devices. For the specific layout structure and working principle of the capacitive touch panel in the screen of an electronic device, reference may be made to the following description.

[0047] See Figure 1 , Figure 1 shows a schematic structural diagram of a screen 10 of an electronic device provided by the present application.

[0048] As Figure 1As shown in the figure, the screen 10 of the electronic device may sequentially include components such as a protective layer 11, a capacitive touch panel 12, a display module 13, and a substrate 14 from top to bottom. The electronic device can implement the touch detection function through the capacitive touch panel 12 by using the mutual capacitance detection method, or the electronic device can also implement the touch detection function through the capacitive touch panel 12 by using the self-capacitance detection method. The embodiments of the present application do not limit this.

[0049] Figure 1 The structure of the screen 10 shown is only an example. The screen 10 may further include more components, or multiple components may be combined into an integrated structure. The embodiments of the present application do not limit this. For example, the screen 10 may further include a housing for supporting the entire screen 10. Another example is that in addition to being independently manufactured, the capacitive touch panel 12 and the display module 13 may also be integrated into one body to form a touch screen, etc.

[0050] See Figure 2 , Figure 2 which shows a schematic structural diagram of a capacitive touch panel 12 provided by the present application.

[0051] As Figure 2 shown, the capacitive touch panel 12 includes two first electrode arrays and second electrode arrays that are horizontally and vertically staggered. Among them, the first electrode array includes N columns of electrodes arranged in parallel, and each column of electrodes includes a plurality of electrodes connected in sequence along the Y-axis direction. The second electrode array includes M rows of electrodes arranged in parallel, and each row of electrodes includes a plurality of electrodes connected in sequence along the X-axis direction. Optionally, the first electrode array and the second electrode array may be disposed on the same layer. If the first electrode array is connected on this layer, the second electrode array realizes the connection of each electrode through bridging.

[0052] (1) In the mutual capacitance detection method, each electrode in the first electrode array forms a mutual capacitance (denoted as Cm) with adjacent electrodes in the second electrode array, thereby forming detection points arranged in a two-dimensional array for the capacitive touch panel 12. Based on the mutual capacitance values detected at these detection points, the touch position can be determined. Specifically, the electronic device can use the first electrode array as the transmit (Tx) electrode and the second electrode array as the receive (Rx) electrode. An excitation signal is sequentially input to each column of electrodes in the first electrode array, and at the same time, the induction signals of all rows in the second electrode array are detected. For example, the excitation signals are input in sequence according to (Y1, Y2... YN), and during the sequential input of the excitation signals, the induction signals in X1, X2... XM in the second electrode array are detected at the same time, thereby obtaining the mutual capacitance between the first electrode array and the second electrode array, that is, obtaining a frame of capacitance array. By analyzing the capacitance values in the capacitance array, the coordinate points where a preset change occurs are used as the touch position. Among them, the preset change in the mutual capacitance includes a preset decrease in the mutual capacitance. This is because the human body can conduct electricity, and when a finger touches, it will absorb a part of the excitation signal in the first electrode array at the touch position, resulting in a decrease in the mutual capacitance detected at the detection points in the touch area.

[0053] (2) In the self-capacitance detection method, each electrode in the first electrode array and each electrode in the second electrode array form a self-capacitance (denoted as Cs) with the ground, thereby forming detection points arranged in a two-dimensional array for the capacitive touch panel 12. Based on the self-capacitance values detected at these detection points, the touch position can be determined. Specifically, the self-capacitance between the first electrode array and the ground is detected respectively, and the self-capacitance between the second electrode array and the ground is detected. The coordinate point where a column in the first electrode array with a preset change in self-capacitance intersects with a row in the second electrode array with a preset change in self-capacitance is used as the touch position. Among them, the preset change in the self-capacitance includes a preset increase in the self-capacitance. This is because the human body has a capacitance to the ground, and when a finger touches the detection point, it is equivalent to connecting a self-capacitance between the finger and the ground in parallel at the detection point.

[0054] However, when the capacitive touch panel 12 is in an interference environment, such as when it comes into contact with water, coffee, dust, and other interfering substances, these interfering substances will also cause changes in the capacitance at the detection points, thereby interfering with finger touch recognition. Taking water as an interfering substance as an example, the specific interference it causes to finger touch recognition can be referred to in the following description of Figure 3 the introduction.

[0055] Refer to Figure 3 , Figure 3 Exemplarily shows a schematic diagram of a user interface for touch recognition provided by an embodiment of the present application.

[0056] Figure 3 In (a) of , it shows User Interface 1 displayed by the electronic device when there is no false touch on the clean screen. Specifically, this User Interface 1 is provided by the painting and writing applications of the electronic device. When there is no interfering substance on the screen 10 of the electronic device and no input body (such as a finger or a stylus) touches it, the electronic device will not be falsely triggered to display handwriting in this User Interface 1.

[0057] Figure 3 In (b) of , it shows User Interface 2 displayed by the electronic device when water touch causes false touch. Specifically, this User Interface 2 is provided by the painting and writing applications of the electronic device. When there is an interfering substance (such as water stain) on the screen 10 and no input body (such as a finger or a stylus) touches it, the electronic device will still be falsely triggered to display handwriting that the user did not input in this User Interface 2.

[0058] Figure 3 In (c) of , it shows User Interface 3 displayed by the electronic device when dry hand touch recognition is accurate. Specifically, this User Interface 3 is provided by the painting and writing applications of the electronic device. When there is no interfering substance on the screen 10 and an input body (such as a finger) touches it, the electronic device will be triggered to display the complete handwriting corresponding to the complete sliding trajectory of the finger in this User Interface 3.

[0059] Figure 3 In (d) of , it shows User Interface 4 displayed by the electronic device when wet hand touch recognition is inaccurate. This User Interface 4 is provided by the painting and writing applications of the electronic device. When there is an interfering substance (such as water stain) on the screen 10 and an input body (such as a finger) touches it, although the electronic device will be triggered to display the handwriting corresponding to the sliding trajectory of the finger in this User Interface 3, this handwriting may be incomplete, that is, the electronic device does not completely recognize the sliding trajectory of the finger.

[0060] Figure 3 Only taking water as the interfering substance and only taking the interference of painting and writing applications as an example to introduce the interference caused by the interfering substance to the touch recognition of the electronic device. In addition, the interfering substance can also include others, and the objects and interference forms to be interfered can also include others. The embodiments of the present application do not limit this.

[0061] Based on the foregoing introduction of Figures 1 - 3 , it can be known that for the screen 10 using the capacitive touch panel 12, when water touches this screen 10, the electronic device will misjudge it as finger touch, thus triggering a false touch event, such as falsely displaying handwriting. And when the user inputs a touch operation with wet hands, the electronic device may not detect the correct finger touch operation, thus causing touch failure, such as not displaying the complete handwriting, etc.

[0062] The reason for the aforementioned interference is as follows: Taking water as an example of the interfering substance, when water contacts the capacitive touch panel and a finger touches the capacitive touch panel, the directions of the mutual capacitance changes generated by the capacitive touch panel are opposite, that is, water contact increases the mutual capacitance while finger touch decreases the mutual capacitance. When water contacts the self-capacitance capacitive touch panel and a finger touches the self-capacitance capacitive touch panel, the directions of the self-capacitance changes generated by the capacitive touch panel are the same, that is, both water contact and hand contact increase the self-capacitance. Based on the foregoing analysis, it can be seen that the interference environment changes the distribution and state of the capacitance of the capacitive touch panel itself, thereby interfering with the recognition of the finger touch position, resulting in a decrease in the accuracy of the finally determined touch position or directly causing the touch function to be unusable.

[0063] To solve the above problems, the present application provides a touch recognition method and an electronic device. The method includes: The electronic device obtains a capacitance array through a capacitive touch panel, and the capacitance array includes the capacitances of multiple detection points in the capacitive touch panel. Then, a rough detection is performed based on the capacitance array, that is, it is initially determined whether there is hand contact on the capacitive touch panel and whether there is contact with an interfering substance on the capacitive touch panel. If it is determined that there is hand and interfering substance contact on the capacitive touch panel, a fine detection is performed on the capacitance array, that is, the capacitance corresponding to the hand contact in the capacitance array is further determined, and then the touch position of the hand is obtained based on the capacitance corresponding to the hand contact.

[0064] Implementing the touch recognition method provided by the present application can bring the following beneficial effects:

[0065] (1) Provide touch recognition functions in more scenarios. Specifically, the electronic device can still provide touch recognition functions in the wet hand state.

[0066] (2) Accelerate the convergence speed of the touch recognition algorithm. Specifically, by dividing it into two stages of rough detection and fine detection, the touch recognition state can be quickly determined in the rough detection stage, and then the corresponding touch mode can be timely adopted to respond to the user's touch operation.

[0067] (3) Improve the accuracy of wet hand touch recognition. Specifically, by dividing it into two stages of rough detection and fine detection, the capacitance changes respectively caused by hand touch and water touch can be accurately distinguished in the fine detection stage, and the high-precision touch position can be calculated only based on the capacitance change caused by the hand.

[0068] The capacitive touch panel involved in the present application can collect the mutual capacitance of each detection point by using the mutual capacitance detection method, and / or collect the self-capacitance of each detection point by using the self-capacitance detection method. For the specific methods of collecting these two capacitances, reference can be made to the previous introduction of Figure 2 , which will not be elaborated here.

[0069] The capacitance array involved in this application specifically refers to the difference in capacitance at each detection point. For the specific method of obtaining this difference, reference can be made to the introduction at S401 in the following text. For the manifestation form of this difference, reference can be made to the introduction of the capacitance array shown below. Details will not be elaborated here. Figure 4 in the following text. Details will not be elaborated here. Figures 6A - 6C For the introduction of the capacitance array shown below. Details will not be elaborated here.

[0070] The rough detection and fine detection involved in this application refer to hierarchical detection using different detection conditions. The detection conditions used in fine detection are more stringent than those used in rough detection. For specific details, reference can be made to the detailed description of the method flow shown below. Details will not be elaborated here. Figure 5 、 Figure 7 For the detailed description of the method flow shown below. Details will not be elaborated here.

[0071] The interfering substances involved in this application include, but are not limited to, water, coffee, juice, dust, etc. Only water is taken as an example of the interfering substance in the following text. The touch recognition method provided in this application is equally applicable to the touch recognition methods corresponding to other interfering substances.

[0072] Next, reference is made to Figure 4 , Figure 4 to exemplarily show a flowchart of a touch recognition method provided by an embodiment of this application.

[0073] As Figure 4 shown below, the method includes the following steps:

[0074] S401, perform rough detection on the obtained capacitance to preliminarily determine the touch state of the capacitive touch panel.

[0075] Specifically, after the electronic device is powered on, the electronic device can control the capacitive touch panel 12 to periodically detect the sensed value of each detection point, then obtain the corresponding difference based on the sensed value and the original value, and further perform rough detection on the difference to preliminarily determine the touch state of the capacitive touch panel 12. Based on the structural relationship between the screen 10 and the capacitive touch panel 12 introduced above, the touch state of the capacitive touch panel 12 is equivalent to the state of the screen 10. Without special instructions, the two have the same referential meaning.

[0076] Among them, the method of obtaining the difference based on the sensed value and the original value specifically includes:

[0077] Sensed value: Regardless of whether there is an interfering substance or an input object on the screen 10, as long as the capacitance value detected by the capacitive touch panel 12 is called the sensed value.

[0078] Specifically, the sensed value includes the mutual capacitance or self-capacitance corresponding to each detection point in the capacitive touch panel 12, specifically depending on the detection method of the capacitive touch panel 12. In an implementable manner, the sensed value detected in each period may be in the form of a capacitance array, and each capacitance value in the capacitance array uniquely corresponds to the sensed value of a detection point in the capacitive touch panel 12 respectively.

[0079] Original value: When there is no interfering substance and no input object on the screen 10, the capacitance value detected by the capacitive touch panel 12 is called the original value, and the original value represents the initial state of the capacitive touch panel 12.

[0080] Specifically, the original value also includes the mutual capacitance or self-capacitance corresponding to each detection point in the capacitive touch panel 12, specifically depending on the detection method of the capacitive touch panel 12. In an implementable manner, the original value may also be in the form of a capacitance array, and each capacitance value in the capacitance array uniquely corresponds to the original value of a detection point in the capacitive touch panel 12 respectively. In addition, the electronic device may preset the original value before leaving the factory, or the electronic device may obtain the original value through detection after leaving the factory.

[0081] Difference value: It can be obtained by calculating the difference between the sensed value and the original value, which can be the sensed value minus the original value or the original value minus the sensed value. In the following text, the difference value obtained by subtracting the sensed value from the original value is taken as an example to introduce the method provided in this application.

[0082] Specifically, the difference value also includes the mutual capacitance difference or self-capacitance difference corresponding to each detection point in the capacitive touch panel 12, specifically depending on the detection method of the capacitive touch panel 12. When the sensed value is in the form of a capacitance array and the original value is also in the form of a capacitance array, the difference value in the form of a capacitance array can be obtained by subtracting the original value from the sensed value at the corresponding position in the array. Without special instructions, most of the capacitance arrays involved in the context of this application refer to the capacitance array corresponding to the difference value.

[0083] Among them, the method for determining the touch state based on the difference value includes:

[0084] By analyzing a large number of capacitance arrays corresponding to the aforementioned difference values in the states of only hand touch, only water touch, and water and hand touch on the screen 10, it is found that the capacitance arrays corresponding to the difference values in different touch states have different characteristics. Therefore, the touch state can be determined by judging the characteristics possessed by the capacitance array. In this application, the touch state includes but is not limited to: states such as only input object touch, only interfering substance touch, and interfering substance and input object touch, etc. For the convenience of introducing this solution, in this application, water is used to represent the interfering substance and hand is used to represent the input object to specifically introduce the touch recognition method.

[0085] When it is preliminarily determined that the touch state is wet hand touch, the electronic device executes subsequent S402-1; when it is preliminarily determined that the touch state is only water touch, the electronic device executes subsequent S402-2; when it is preliminarily determined that the touch state is only hand touch, the electronic device executes subsequent S402-3.

[0086] Regarding the rough detection method, that is, the specific implementation of determining the touch state, reference can be made to the description of the method flow shown later, which will not be elaborated here for the time being. Figure 5 as shown in the method flow description, which will not be elaborated here for the time being.

[0087] S402-1, uses the wet hand touch mode to perform fine detection on the capacitance data, that is, determines the capacitance change caused by water and the capacitance change caused by the hand.

[0088] Specifically, when it is determined in S401 that the touch state of the capacitive touch panel 12 is wet hand touch, in order to accurately identify the touch position of the hand, it is necessary to enable the wet hand touch mode to perform fine detection on the capacitance data, so as to further distinguish the capacitance change caused by water and the capacitance change caused by the hand from the capacitance array, filter out the capacitance change caused by water as interference signal, and then execute subsequent S403 based on the capacitance change caused by the hand. Among them, the capacitance change caused by the hand determined through the wet hand touch mode can be called the difference within the target range in the capacitance array, and the capacitance change caused by water can be called the difference outside the target range in the capacitance array.

[0089] Regarding the fine detection method, that is, the specific implementation of determining the capacitance change caused by water and the capacitance change caused by the hand, reference can be made to the description of the method flow shown later, which will not be elaborated here for the time being. Figure 7 as shown in the method flow description, which will not be elaborated here for the time being.

[0090] S402-2, does not respond to the touch of only water.

[0091] Specifically, when it is determined in S401 that the touch state of the capacitive touch panel 12 is only water touch, in order to prevent the electronic device from being accidentally triggered, that is, in order to avoid problems such as the misdisplay of handwriting shown in b in Figure 3 , the electronic device does not calculate the capacitance array, and thus does not obtain the touch position of water, and further does not respond to the touch of water.

[0092] S402-3, uses the conventional touch mode, that is, determines the touch position of the hand based on the obtained capacitance.

[0093] Specifically, when it is determined in S401 that the touch state of the capacitive touch panel 12 is only hand touch, in order to accurately identify the touch position of the hand and respond to the touch operation of the hand in a timely manner, the electronic device can use the conventional touch mode to calculate the capacitance array to obtain the touch position of the hand, and then respond to the touch operation of the hand.

[0094] Among them, in the state of only hand touch control, the methods for obtaining the touch position of the hand include but are not limited to any of the following:

[0095] (1) Determine the position of the detection point corresponding to the peak value in the entire capacitance array as the touch position of the hand;

[0096] (2) Determine the position of the detection point corresponding to the value greater than the preset value in the entire capacitance array as the touch position of the hand. Optionally, the preset value is, for example, the first value described in S502 hereinafter, or the seventh value described in S701 hereinafter.

[0097] (3) Apply the centroid algorithm or the triangular algorithm to all the differences within a preset range including the peak value in the entire capacitance array, and determine the position of the detection point output by the algorithm as the touch position of the hand. Among them, the preset range can be a 3*3 (or 7*7) sub-array centered on the peak value, and the embodiments of the present application do not limit the size of this sub-array.

[0098] (4) Apply the centroid algorithm or the triangular algorithm to all the differences within a preset range including the value greater than the preset value in the entire capacitance array, and determine the position of the detection point output by the algorithm as the touch position of the hand. Optionally, the preset value is, for example, the first value described in S502 hereinafter, or the seventh value described in S701 hereinafter. The preset range can be a 3*3 (or 7*7) sub-array centered on the peak value, and the embodiments of the present application do not limit the size of this sub-array.

[0099] Among them, the tasks executed in response to the touch operation of the hand include but are not limited to: executing, for example, the display of handwriting shown in c above, or executing the tasks corresponding to the controls displayed at the touch position, etc. Figure 3 as shown in c above, or executing the tasks corresponding to the controls displayed at the touch position.

[0100] S403. Determine the touch position of the hand based on the capacitance change caused by the hand.

[0101] Specifically, after determining the capacitance change caused by the hand in S402-1, the electronic device can calculate the capacitance change caused by the hand to obtain the touch position of the hand, and then respond to the touch operation of the hand.

[0102] Among them, in the state of wet hand touch control, the methods for obtaining the touch position of the hand include but are not limited to:

[0103] (1) Only determine the position of the detection point corresponding to the peak value in the target range in the capacitance array as the touch position of the hand. The target range refers to the capacitance change caused by the hand determined in the state of wet hand touch control in S402-1, and the specific determination method refers to the methods described in S701-S702 hereinafter.

[0104] (2) Only use algorithms such as the centroid algorithm or the triangle algorithm for all the values within the target range in the capacitance array, and determine the position of the detection point output by the algorithm as the touch position of the hand. The target range refers to the capacitance change caused by the hand under the wet hand touch state determined in S402-1. For the specific determination method, refer to the method described in S701-S702 later.

[0105] It can be seen that, compared with the method of obtaining the touch position of the hand in the previous only hand touch state, in the method of obtaining the touch position of the hand in the wet hand touch state, only the difference within the target range in the capacitance array is processed instead of the entire capacitance array. This is because the target range is the capacitance change caused by the hand accurately distinguished by the electronic device in the wet hand touch mode, thereby improving the accuracy.

[0106] Among them, the tasks executed in response to the touch operation of the hand include but are not limited to: executing, for example, the display of handwriting as shown in c in the previous Figure 3 or executing the tasks corresponding to the controls displayed at the touch position, etc.

[0107] Next, the method flow of determining the touch state involved in the aforementioned S401 to adopt the corresponding touch mode will be introduced in detail.

[0108] Refer to Figure 5 , Figure 5 which is a flowchart of a method for determining a touch mode provided by an embodiment of the present application.

[0109] As Figure 5 shown, the method includes the following steps:

[0110] S501, obtain the capacitance array corresponding to the differences of all detection points in the capacitive touch panel.

[0111] Specifically, the electronic device can obtain the sensed values of all detection points in the capacitive touch panel 12 through mutual capacitance detection or self-capacitance detection, and then subtract the original value of each detection point from the sensed value of the corresponding detection point, so as to obtain the capacitance array composed of the differences of each detection point.

[0112] For the specific introduction of the sensed value, the original value, and the difference, reference can also be made to the introduction at S401 above, which will not be elaborated here for the time being.

[0113] S502, determine whether the capacitance array satisfies the first condition, and determine whether the capacitance array satisfies the third condition.

[0114] Specifically, the electronic device performs a rough detection on the capacitor array using the first condition and the third condition. If the capacitor array only meets the first condition, it is preliminarily determined that only a hand touches the capacitive touch panel 12, and then the subsequent S503-3 is executed; if the capacitor array only meets the second condition, it is preliminarily determined that only water touches the capacitive touch panel 12, and then the subsequent S503-2 is executed; if the capacitor array meets both the first condition and the third condition, it is preliminarily determined that both a hand and water touch the capacitive touch panel 12, and then the subsequent S503-1 is executed.

[0115] In the embodiments of the present application, for the capacitor array obtained by the mutual capacitance detection method and the capacitor array obtained by the self-capacitance detection method, the two respectively correspond to different first conditions and third conditions, which are specifically as follows:

[0116] 1. Mutual capacitance detection method.

[0117] Meet the first condition, determine only hand contact

[0118] Taking the mutual capacitance detection as an example, when only a hand touches the screen 10, the sensed value of the detection points in the contact area will decrease, resulting in a positive difference between the obtained original value and the sensed value. The sensed value of the detection points in the non-contact area changes little or remains unchanged. Considering the characteristics that the difference of the detection points in the hand contact area is the largest, the difference of the detection points in the area near the hand contact area is relatively large, and the difference of the detection points in the remaining areas is approximately 0, etc. Therefore, it can be determined whether there is a hand contact by detecting whether the capacitor array meets the first condition.

[0119] The first condition includes, for example, whether the maximum value in the capacitor module is greater than the first value, and whether the number of larger values in the capacitor module is greater than the third value. If so, it is determined that there is a hand contact, otherwise it is considered that there is no hand contact. In other words, the first condition includes, for example, in the capacitor array, when there is a capacitor greater than the first value and the number of capacitors greater than the second value is greater than the third value, it is determined that there is a hand contact. Among them, the first value is greater than the second value.

[0120] Combined Figure 6A to see, Figure 6A Exemplarily show the capacitor array that meets the first condition under only hand touch.

[0121] Such as Figure 6A shown, the capacitor array meets the first condition, that is, there is a capacitor greater than the first value in the capacitor array, and the number of capacitors greater than the second value is greater than the third value. Among them, the first value is shown as 1000, the second value is shown as 500, and the third value is shown as 7*7 = 49.

[0122] It can be understood that Figure 6AThe size of the capacitance array shown and the values therein are only examples, and the embodiments of the present application are not limited thereto.

[0123] From the above analysis, it can be seen that in the first condition provided by the present application, based on the entire capacitance array, by determining whether the maximum value is large enough, considering the particularity that the difference between detection points at the contact area is the largest under hand contact, and by determining whether the larger values are sufficient in number, considering the overall characteristic that the differences between most detection points in the entire capacitance array are large under hand contact. That is to say, by adopting the first condition provided by the present application, it is possible to quickly determine whether there is hand contact both comprehensively and specifically.

[0124] Meet the third condition and determine only water contact

[0125] Taking mutual capacitance detection as an example, when there is only water contact on the screen 10, it will cause the induced values of the detection points corresponding to the contact area to increase, and then cause the difference between the acquired original value and the induced value to be negative, and the induced values of the detection points in the non-contact area change little or remain unchanged. Considering the characteristics that the difference between detection points in the water contact area is the smallest, the difference between detection points in the area near the water contact area is small, and the difference between detection points in the remaining areas is approximately 0, etc. Therefore, by detecting whether the capacitance array meets the third condition, it is possible to determine whether there is hand contact.

[0126] The third condition includes, for example: whether the minimum value in the capacitance module is less than a fourth value, and whether the number of smaller values in the capacitance module is greater than a sixth value. If so, it is determined that there is water contact, otherwise it is considered that there is no water contact. In other words, the third condition includes, for example: in the capacitance array, when there is a capacitance less than the fourth value and the number of capacitances less than the fifth value is greater than the sixth value, it is determined that there is water contact. Wherein, the fourth value is less than the fifth value.

[0127] Combined Figure 6B to see Figure 6B Exemplarily show a capacitance array that meets the third condition under only water touch control.

[0128] Such as Figure 6B shown, this capacitance array meets the third condition, that is, there is a capacitance less than the fourth value in this capacitance array, and the number of capacitances less than the fifth value is greater than the sixth value. Among them, the fourth value is shown by taking -800 as an example, the fifth value is shown by taking -500 as an example, and the sixth value is shown by taking 7*7 = 49 as an example.

[0129] It can be understood that Figure 6B The size of the capacitance array shown and the values therein are only examples, and the embodiments of the present application are not limited thereto.

[0130] As can be seen from the above analysis, in the third condition provided by this application, based on the entire capacitance array, by determining whether the minimum value is small enough, considering the particularity that the difference between detection points at the contact area is the smallest under water contact, and by determining whether the number of smaller values is large enough, considering the overall characteristic that the differences between most detection points in the entire capacitance array are small under water contact. That is to say, by adopting the third condition provided by this application, it is possible to quickly determine whether there is water contact comprehensively and pertinently.

[0131] Satisfy the first condition and the third condition to determine water and hand contact (wet hand touch control)

[0132] Taking mutual capacitance detection as an example, when water and hand contact the capacitive touch panel 12, their effects on the capacitance of the detection points corresponding to the contact area are opposite. That is, the hand causes the difference in the sensed value of the detection point to decrease with a positive difference, while water causes the difference in the sensed value of the detection point to increase with a negative difference. Therefore, by detecting whether the capacitance array satisfies the aforementioned first condition and third condition, it is possible to determine whether there is hand and water contact.

[0133] Combined Figure 6C to see Figure 6C Exemplarily show a capacitance array that satisfies the first condition and the third condition under wet hand touch control.

[0134] Such as Figure 6C shown, this capacitance array satisfies the first condition and the third condition. For the description of the first condition and the third condition, reference can be made to the previous introduction.

[0135] It can be understood that Figure 6C the size of the capacitance array shown and the values therein are only examples, and the embodiments of this application do not limit this.

[0136] The foregoing only takes the mutual capacitance detection method as an example to introduce how to determine whether there is a hand and whether there is water on the screen. Similarly, for the self-capacitance detection method, the method for determining whether there is a hand and whether there is water on the screen is similar. The difference is that: water causes a positive change in the difference at the detection point in the self-capacitance detection method, and the hand also causes a positive change in the difference at the detection point in the self-capacitance detection method, but the degrees of the two positive changes are different. Therefore, the conditions adopted in the self-capacitance detection method can be determined based on this different degree of change, as follows.

[0137] 2. Self-capacitance detection method

[0138] Satisfy the first condition to determine only hand touch control

[0139] Since the direction of change in the difference at the detection point caused by hand contact in the self-capacitance detection mode is opposite to that caused by hand contact in the mutual-capacitance detection mode. Therefore, the first condition used to detect whether there is hand contact on the screen 10 in the self-capacitance detection mode is different from the first condition in the aforementioned mutual-capacitance detection mode.

[0140] This first condition includes, for example: whether the minimum value in the capacitance module is less than the eleventh value, and whether the number of smaller values in the capacitance module is less than the thirteenth value. If so, it is determined that there is hand contact; otherwise, it is considered that there is no hand contact. In other words, this eleventh condition includes, for example: in the capacitance array, when there is a capacitance less than the eleventh value and the number of capacitances less than the twelfth value is greater than the thirteenth value, it is determined that there is hand contact. Among them, the eleventh value is less than the twelfth value.

[0141] From the above analysis, it can be seen that in the first condition provided in this application, based on the entire capacitance array, by judging whether the minimum value is small enough, considering the particularity that the difference at the detection point in the contact area is the smallest under hand contact, and by judging whether the number of smaller values is large enough, considering the overall characteristic that the differences at most detection points in the entire capacitance array are small under hand contact. That is to say, by adopting the first condition provided in this application, it is possible to quickly determine whether there is hand contact both comprehensively and specifically.

[0142] Meet the third condition and determine only water touch

[0143] Since the direction of change in the difference at the detection point caused by water contact in the self-capacitance detection mode is the same as that caused by water contact in the mutual-capacitance detection mode. Therefore, the third condition used to detect whether there is water contact on the screen 10 in the self-capacitance detection mode is similar to the third condition in the aforementioned mutual-capacitance detection mode, except that the specific values are slightly different, and specifically need to be determined according to the specifications of the capacitive touch panel 12. And because water causes a positive change in the difference at the detection point in the self-capacitance detection mode, and hand also causes a positive change in the difference at the detection point in the self-capacitance detection mode, but the degrees of the two positive changes are different, that is, the increase in the sensed value caused by water is smaller than that caused by hand. Therefore, the third condition in the self-capacitance detection mode and the values in the first condition need to have the following differences.

[0144] The third condition includes, for example, whether the minimum value in the capacitance module is less than the fourteenth value, and whether the number of smaller values in the capacitance module is less than the sixteenth value. If so, it is determined that there is hand contact; otherwise, it is considered that there is no hand contact. In other words, the third condition includes, for example, that in the capacitance array, when there is a capacitance less than the fourteenth value and the number of capacitances less than the fifteenth value is greater than the sixteenth value, it is determined that there is hand contact. Here, the fourteenth value is less than the fifteenth value. Moreover, the absolute value of the fourteenth value is less than the absolute value of the aforementioned eleventh value, the absolute value of the fifteenth value is less than or equal to the absolute value of the aforementioned twelfth value, and the sixteenth value is less than or equal to the thirteenth value.

[0145] Meeting the first condition and the third condition, water and hand touch (wet hand touch)

[0146] Taking self-capacitance detection as an example, when water and a hand touch the capacitive touch panel 12, the two have the same impact on the capacitance of the detection points corresponding to the contact area, but the degree of impact is different. Therefore, through the first condition and the third condition in the self-capacitance detection method introduced above, it can be determined whether there is hand and water contact.

[0147] Optionally, since for different capacitive touch panels, different screens, and different detection methods, the sizes of the capacitance modules obtained by the electronic device are different, the embodiments of the present application do not specifically limit the first value, the second value, the third value, the fourth value, the fifth value, and the sixth value involved in the aforementioned mutual-capacitance detection method, as well as the eleventh value, the twelfth value, the thirteenth value, the fourteenth value, the fifteenth value, and the sixteenth value involved in the aforementioned mutual-capacitance detection method, etc. Taking specific numerical values as an example, for the capacitive touch panel 12 of the mutual-capacitance detection method, the first value can be taken as 1000, the second value can be taken as 500, the third value can be taken as 49, the fourth value can be taken as -800, the fifth value can be taken as -500, and the sixth value can be taken as 49. Among them, since the impact degrees of water contact and hand contact on the induction value at the detection point are different, that is, the change amount of the induction value caused by the hand is greater than the change amount of the induction value caused by water, in the present application, setting the absolute value of the first value to be larger than the absolute value of the fourth value can more accurately determine whether there is a hand or water on the screen 10.

[0148] Optionally, in the self-capacitance detection method, the difference can be represented by subtracting the original value from the induction value, rather than subtracting the induction value from the original value as used in mutual-capacitance detection. In this way, in self-capacitance detection, the change in the difference caused by finger touch is a positive value, which is convenient for the electronic device to calculate the positive difference. Correspondingly, when the difference is defined as the induction value minus the original value, the aforementioned first condition and third condition are both adjusted in the opposite way, which will not be elaborated here one by one.

[0149] S503-1, adopt the wet hand touch mode.

[0150] For details, please refer to the detailed descriptions of S402-1, S403 in the previous text, as well as S701, S702, S703-1, and S703-2 in the following text, which will not be elaborated here.

[0151] S503-2, does not respond to the touch of water only.

[0152] Specifically, in order to prevent the electronic device from being accidentally triggered, that is, to avoid problems such as the misdisplayed handwriting shown in b in, etc., the electronic device does not calculate the capacitance array, and thus does not obtain the touch position of water, and thus does not respond to the touch of water. Figure 3 For details, please refer to the detailed descriptions of S402-1, S403 in the previous text, as well as S701, S702, S703-1, and S703-2 in the following text, which will not be elaborated here.

[0153] S503-3, adopts the conventional touch mode.

[0154] For details, please refer to the description of S402-3 in the previous text, which will not be elaborated here.

[0155] Next, a method flow for determining the touch position of the hand by adopting the wet hand touch mode involved in the aforementioned S402-1-S403 will be introduced in detail.

[0156] Refer to Figure 7 , Figure 7 which is a flowchart of a method for the wet hand touch mode provided by an embodiment of the present application.

[0157] As Figure 7 shown, the method includes the following steps:

[0158] S701, determine the capacitances in the capacitance array that are greater than the seventh value, and determine the capacitances within a preset range with this capacitance as the center.

[0159] Specifically, in the wet hand touch mode, in order to further accurately distinguish the capacitance change caused by the hand contact from the capacitance change caused by water, it is necessary to further determine a larger capacitance value in the capacitance array, that is, the seventh value, and this larger capacitance value is larger than the first value and the eleventh value used in the previous rough detection. Then, in this capacitance array, with the capacitance greater than the seventh value as the center, determine the capacitances within a preset range. The preset range can be, for example, the size of a 3*3 or 7*7 sub-array, and the present application does not limit this.

[0160] Combined with Figure 8A to see, Figure 8A exemplarily shows the capacitance array that satisfies the first condition and the third condition under wet hand touch.

[0161] As Figure 8A shown, this capacitance array is the same as that in the previous text Figure 6CThe capacitance array shown is the same. There are capacitances greater than the seventh value in this capacitance array, such as 1652, 2556, etc. In addition, there are 1648, 1625, 1578, 2355, etc. around 2556. In an implementable manner, when there are multiple capacitances greater than the seventh value and these multiple capacitances greater than the seventh value belong to the same preset range, only the largest capacitance within the preset range is used as the center. In another implementable manner, when there are multiple capacitances greater than the seventh value, each capacitance greater than the seventh value can be used as the center to determine the preset range. Figure 8A Only the first implementable manner is taken as an example, that is, 1652 is used as center 1, and preset range 1 is the preset range of center 1; 2566 is used as center 2, and preset range 2 is the preset range of center 2.

[0162] The touch recognition provided in this application is carried out in a rough detection stage and a fine detection stage, which can generally accelerate the algorithm convergence speed, that is, quickly determine which touch mode to adopt, and then timely adopt the corresponding touch mode to output the touch recognition result to quickly respond to the user's touch operation.

[0163] S702, determine whether the number of capacitances less than the eighth value in the capacitances within the preset range is greater than the ninth value.

[0164] Specifically, taking the mutual capacitance detection method as an example, since the water droplet is not grounded and has the characteristics of being superimposed and suspended on the screen, the influence of the edge and the inside of the water droplet on the capacitance at the detection point is opposite. The edge of the water droplet makes the sensed value at the detection point decrease with a positive difference, and the inside of the water droplet makes the sensed value at the detection point increase with a decreasing difference. That is to say, the capacitance change at the detection point caused by the edge part of the water droplet is the same as that of the finger, which is very likely to cause the electronic device to misjudge the water droplet as a touch of the hand.

[0165] Therefore, it is also necessary to further use the second condition to finely detect other capacitances within the preset range around the capacitance of the seventh value to determine whether there are many negative values and the negative values are small in the preset range. The second condition is, for example: whether the number of capacitances less than the eighth value in the preset range is greater than the ninth value. If so, it means that the difference within the preset range is the capacitance change caused by the water droplet, so the subsequent S703-2 is executed; otherwise, it means that the difference within the preset range is the capacitance change caused by the hand, so the subsequent S703-1 is executed. The absolute value of the eighth value can be greater than or equal to the fourth value described above, and the ninth value can be half of the total number of capacitances within the preset range.

[0166] Continue to combine Figure 8ALooking at it, the preset range 1 where the center 1 is located does not meet the aforementioned second condition. Therefore, this preset range 1 belongs to the interference range where the capacitance changes due to water contact. The preset range 2 where the center 2 is located meets the aforementioned second condition. Therefore, this preset range 2 belongs to the target range where the capacitance changes due to hand contact.

[0167] S703-1, Take this preset range as the target range of hand contact, and determine the touch position of the hand based on the capacitance within this target range.

[0168] Specifically, for the method of determining the touch position of the hand based on the capacitance within the target range, reference can be made to the description of S403 above and will not be elaborated here.

[0169] S703-2, Take this preset range as the interference range of water contact, and filter out the capacitance within this interference range.

[0170] In an implementable manner, the electronic device can directly filter out all capacitances outside the target range. Refer to Figures 8A - 8B Looking at it, the electronic device filters out all capacitances outside the target range in the capacitance array. The way of filtering out the capacitance is, for example, setting the capacitance to 0. When the capacitance is 0, the difference is 0. That is to say, the capacitance at the contact point remains unchanged from the original value.

[0171] In another implementable manner, the electronic device can only filter out the capacitance within the interference range. Specifically, when there is overlapping capacitance between the interference range and the target range, the electronic device can retain this capacitance or can compensate this capacitance for subsequent determination of the touch position of the hand based on the capacitance within this target range. Specifically, when compensating for the capacitance in the overlapping part, the compensation can be made according to the interference degree of the interference range on the target range. For example, when there are many and large negative values in the overlapping area, it indicates a large interference degree. Therefore, the higher the compensation ratio, and the specific compensation value can be obtained by a certain ratio of the capacitance in the non-overlapping area of the target range. If it is completely overlapping, the compensation is made according to the preset difference corresponding to finger contact.

[0172] Next, the hardware architecture and device form of the electronic device involved in this application will be introduced.

[0173] The electronic device can be equipped with Portable terminal devices of other operating systems, such as mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebooks, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices, in-vehicle devices, smart home devices and / or smart city devices, and so on.

[0174] Figure 9 Fig. shows a schematic structural diagram of the electronic device 100.

[0175] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0176] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0177] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0178] Among them, the controller may be the nerve center and command center of the electronic device 100. The controller may generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.

[0179] In the embodiments of the present application, the processor 110 is used to call the corresponding software and hardware modules to execute the method for determining the touch detection mode as Figures 4 - 5 shown, and the wet hand touch detection method as Figure 7 shown. For specific details, reference may be made to the introduction of the foregoing method embodiments, which will not be elaborated here.

[0180] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory may save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0181] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0182] The I2C interface is a two-way synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface to implement the touch function of the electronic device 100.

[0183] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit an audio signal to the wireless communication module 160 through the I2S interface to implement the function of answering a phone call through a Bluetooth headset.

[0184] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through the PCM bus interface. In some embodiments, the audio module 170 may also transmit an audio signal to the wireless communication module 160 through the PCM interface to implement the function of answering a phone call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0185] The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0186] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.

[0187] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0188] The USB interface 130 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect a headset to play audio through the headset. This interface can also be used to connect other electronic devices, such as AR devices, etc.

[0189] It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0190] The charging management module 140 is used to receive a charging input from a charger. The charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also supply power to the electronic device through the power management module 141.

[0191] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives the inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery charge cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0192] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0193] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0194] The mobile communication module 150 may provide solutions for wireless communications such as 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 may receive electromagnetic waves through the antenna 1, filter, amplify, and perform other processing on the received electromagnetic waves, and then transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be provided in the same device.

[0195] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

[0196] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite systems (GNSSs), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 may also receive signals to be sent from the processor 110, perform frequency modulation and amplification on them, and convert them into electromagnetic waves through the antenna 2 for radiation.

[0197] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, such that the electronic device 100 can communicate with the network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0198] The electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0199] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD). The display screen panel can also adopt an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. to manufacture. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0200] The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, etc.

[0201] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera sensor. The optical signal is converted into an electrical signal, and the camera sensor transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also optimize the noise and brightness of the image through algorithms. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0202] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the sensor. The sensor can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The sensor converts the optical signal into an electrical signal and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in standard RGB, YUV, etc. formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0203] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0204] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0205] The NPU is a neural-network (NN) computing processor. By learning from the biological neural network structure, such as learning from the transmission mode between human brain neurons, it can quickly process the input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as: image recognition, face recognition, speech recognition, text understanding, etc.

[0206] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0207] The random access memory may include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, the fifth generation of DDR SDRAM is generally called DDR5 SDRAM), etc.;

[0208] The non-volatile memory may include disk storage devices and flash memory.

[0209] Flash memories can be classified according to their operating principles into NOR Flash, NAND Flash, 3D NAND Flash, etc., according to the number of potential levels of storage cells into single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc., and according to storage specifications into universal flash storage (UFS), embedded multi media card (eMMC), etc.

[0210] The random access memory can be directly read and written by the processor 110, and can be used to store the operating system or executable programs (such as machine instructions) of other running programs, and can also be used to store data of users and application programs, etc.

[0211] The non-volatile memory can also store executable programs and store data of users and application programs, etc., and can be pre-loaded into the random access memory for the processor 110 to directly read and write.

[0212] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement the data storage function. For example, files such as music and videos are saved in the external non-volatile memory.

[0213] In the embodiments of the present application, the foregoing memory can be used to store the execution code for implementing the touch recognition method provided in the present application, such as the execution code of the methods shown in the foregoing Figure 4 、 Figure 5 and Figure 7 shown.

[0214] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. Such as music playback, recording, etc.

[0215] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or some functional modules of the audio module 170 can be disposed in the processor 110.

[0216] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or a hands-free call through the speaker 170A.

[0217] The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the electronic device 100 answers a call or a voice message, the user can listen to the voice by holding the receiver 170B close to the ear.

[0218] The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak into the microphone 170C by bringing the mouth close to it, inputting the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and implement functions such as directional recording.

[0219] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0220] The pressure sensor 180A is used to sense pressure signals and can convert pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor may include at least two parallel plates having conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, the instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.

[0221] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake during shooting. Exemplarily, when the shutter is pressed, the gyroscope sensor 180B detects the angle of jitter of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the jitter of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenarios.

[0222] The barometric pressure sensor 180C is used to measure barometric pressure. In some embodiments, the electronic device 100 calculates the altitude based on the barometric pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0223] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip, features such as automatic flip unlocking are set.

[0224] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0225] A distance sensor 180F is used to measure distance. The electronic device 100 can measure distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.

[0226] The proximity light sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The light-emitting diode may be an infrared light-emitting diode. The electronic device 100 emits infrared light outward through the light-emitting diode. The electronic device 100 uses the photodiode to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for a call, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used for automatic unlocking and locking of the holster mode and pocket mode.

[0227] An ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.

[0228] A fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

[0229] A temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 caused by low temperature. In other some embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0230] The touch sensor 180K, also known as the "capacitive touch panel". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch control screen". The touch sensor 180K is used to detect touch operations acting thereon or nearby. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from that of the display screen 194.

[0231] In the embodiment of the present application, the touch sensor 180K constitutes the capacitive touch panel 12 as described above. For the specific introduction of the structure and working principle of the capacitive touch panel 12, reference can be made to the relevant description above, and details will not be elaborated here.

[0232] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulsation signals. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone to form a bone conduction earphone. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bone mass of the human vocal part acquired by the bone conduction sensor 180M to implement the voice function. The application processor can parse out heart rate information based on the blood pressure pulsation signals acquired by the bone conduction sensor 180M to implement the heart rate detection function.

[0233] The button 190 includes a power-on button, a volume button, etc. The button 190 can be a mechanical button or a touch button. The electronic device 100 can receive button inputs to generate key signal inputs related to the user settings and function control of the electronic device 100.

[0234] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playing, etc.) can correspond to different vibration feedback effects. Touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects for the motor 191. Different application scenarios (such as time reminder, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0235] The indicator 192 can be an indicator light, which can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0236] The SIM card interface 195 is used to connect to a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact with and separation from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communication. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0237] It should be understood that each step in the above method embodiments provided by the present application can be completed by the integrated logic circuit in the hardware of the processor or the instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as being executed and completed by the hardware processor, or executed and completed by the combination of the hardware and software modules in the processor.

[0238] The present application also provides an electronic device, which may include: a memory and a processor. Among them, the memory can be used to store computer programs; the processor can be used to call the computer programs in the memory so that the electronic device executes the methods in any one of the above embodiments.

[0239] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the methods executed by the electronic device in any one of the above embodiments.

[0240] In a possible design, the chip system further includes a memory, and the memory is used to store program instructions and data, and the memory is located inside or outside the processor.

[0241] The chip system can be composed of chips or can include chips and other discrete devices.

[0242] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor that realizes by reading the software code stored in the memory.

[0243] Optionally, there may also be one or more memories in the chip system. The memory may be integrated with the processor or separately provided from the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transitory processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or separately provided on different chips. The embodiments of the present application do not specifically limit the type of the memory and the setting manner of the memory and the processor.

[0244] Exemplarily, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.

[0245] The present application also provides a computer program product, which includes a computer program (which may also be referred to as code or instruction). When the computer program is run, the computer is enabled to execute the method performed by the electronic device in any one of the above embodiments.

[0246] The present application also provides a computer-readable storage medium, which stores a computer program (which may also be referred to as code or instruction). When the computer program is run, the computer is enabled to execute the method performed by the electronic device in any one of the above embodiments.

[0247] The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.

[0248] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk).

[0249] Those of ordinary skill in the art can understand that all or part of the processes in the above method embodiments can be completed by computer programs instructing relevant hardware. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage media include: various media such as ROM or random access memory RAM, magnetic disks, or optical discs that can store program codes.

[0250] In summary, the above are only embodiments of the technical solutions of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made according to the disclosure of the present invention shall be included within the protection scope of the present invention.

Claims

1. A touch recognition method, characterized in that, The method is applied to an electronic device including a capacitive touch panel, and the method includes: Obtaining a capacitance array, where the capacitance array includes capacitances of multiple detection points in the capacitive touch panel; Judging whether there is a hand contact on the capacitive touch panel according to the capacitance array, and judging whether there is a water contact on the capacitive touch panel according to the capacitance array; If it is determined that there is both a hand and water contact on the capacitive touch panel, then judge whether there is a capacitance within a target range corresponding to the hand contact in the capacitance array; If so, obtain the touch position of the hand according to the capacitance within the target range.

2. The method according to claim 1, wherein Specifically, the method includes: Adopting a first condition when judging whether there is a hand contact on the capacitive touch panel; Adopting a second condition when judging whether there is a capacitance within a target range corresponding to the hand contact in the capacitance array; The second condition is stricter than the first condition.

3. The method according to claim 2, wherein The first condition includes: in the capacitance array, when there is a capacitance greater than a first value and the number of capacitances greater than a second value is greater than a third value, it is determined that there is a hand contact on the capacitive touch panel; the first value is greater than the second value; The second condition includes: in the capacitance array, when there is a capacitance greater than a seventh value and the number of capacitances less than an eighth value among the capacitances within the target range around the seventh value is greater than a ninth value, it is determined that there is a hand contact on the capacitive touch panel; the seventh value is greater than the first value.

4. The method according to any one of claims 1 to 3, characterized in that Obtaining the touch position of the hand according to the capacitance within the target range specifically includes: adopting a centroid algorithm for the capacitance within the target range to obtain the touch position of the hand.

5. The method according to any one of claims 1-4, characterized in that, Specifically, the method includes: Adopting a third condition when judging whether there is a water contact on the capacitive touch panel; The third condition includes: in the capacitance array, when there is a capacitance less than a fourth value and the number of capacitances less than a fifth value is greater than a sixth value, it is determined that there is a water contact on the capacitive touch panel; the fourth value is less than the fifth value.

6. The method according to any one of claims 1-5, characterized in that, The method further includes: If it is determined that there is water on the capacitive touch panel and no hand contact, then do not obtain the touch position of the water.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: If it is determined that there is water on the capacitive touch panel and no hand contact, then filter the capacitance array.

8. The method according to any one of claims 1 to 7, characterized in that The method further includes: If it is determined that there is no water on the capacitive touch panel and there is a hand contact, then obtain the touch position of the hand according to the capacitance array.

9. The method according to any one of claims 1-8, characterized in that, The method further includes: Displaying the handwriting corresponding to the touch position at the display screen corresponding to the touch position; Or, execute the task corresponding to the control according to the control correspondingly displayed at the touch position.

10. The method according to any one of claims 1-9, wherein The touch position includes the positions of one or more detection points.

11. An electronic device, characterized in that, The electronic device includes a capacitive touch panel and one or more processors; the memory is coupled to the one or more processors, and the computer program code includes computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute the method according to any one of claims 1-10.

12. A chip, the chip is applied to an electronic device, characterized in that, The chip includes one or more processors, and the processors are used to call computer instructions to cause the electronic device to execute the method according to any one of claims 1-10.

13. A computer-readable storage medium, comprising instructions, characterized in that, When the instructions run on the electronic device, the electronic device is caused to execute the method according to any one of claims 1-10.

Citation Information

Patent Citations

  • Capacitance type touch equipment detecting method and device, and capacitance type touch equipment

    CN103226424A

  • Method and device for detecting capacitive touch screen

    CN103995627A

  • Touch identification method and device of capacitive touch screen and electronic equipment

    CN109614016A

  • A method and a device for identifying a touch finger based on a capacitive signal and a touch screen

    CN109739385A

  • Wet hand touch identification method and device, electronic equipment and medium

    CN115756198A