Touch recognition method and electronic device
By obtaining the capacitor array and performing thickness detection, the problem of accidentally touching and touch failure of the capacitive touch panel during water contact and wet hands is solved, and the accuracy and stability of touch recognition are improved.
Patent Information
- Application Number
- PCT/CN2024/108674
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-12-20
- Filing Date
- 2024-07-31
- Publication Date
- 2025-06-26
AI Technical Summary
Capacitive touch panels are easily misjudged as finger touching when water is in contact, resulting in false touching events; at the same time, electronic devices may not be able to correctly detect finger touching operations when wet hands, resulting in touch failure.
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 water are in contact, perform fine detection to further determine the position of the hand touch.
It improves the accuracy of wet-hand touch recognition, avoids false touch events and touch failures, and ensures the normal touch function of electronic devices in various scenarios.
Smart Images

Figure CN2024108674_26062025_PF_FP_ABST
Abstract
Description
Touch recognition method and electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on December 20, 2023, with application number 202311766627.3 and application name “A touch recognition method and electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminals, and in particular to a touch recognition method and an electronic device. Background Art
[0003] Currently, more and more electronic devices are using capacitive touch panels. However, when water contacts the capacitive touch panel, the electronic device will mistakenly identify it as a finger touch, causing a false touch. Furthermore, when a user inputs a touch operation with wet hands, the electronic device may not be able to detect the correct finger touch operation, resulting in touch failure and other issues.
[0004] How to provide an accurate touch recognition method is an urgent problem to be solved.
[0005] Summary of the Invention
[0006] The present application provides a touch recognition method and electronic device. The method includes: the electronic device obtains a capacitance array through a capacitive touch panel, and the capacitance array includes the capacitance of multiple detection points in the capacitive touch panel. A coarse detection is then performed based on the capacitance array, namely, a preliminary determination of whether a hand has touched the capacitive touch panel, and whether an interfering substance has touched the capacitive touch panel. If it is determined that a hand and an interfering substance have touched the capacitive touch panel, a fine detection is performed on the capacitance array, namely, a further determination of the capacitance corresponding to the hand contact in the capacitance array, and then the hand touch position is obtained based on the capacitance corresponding to the hand contact. This can improve the accuracy of wet hand touch recognition.
[0007] In a first aspect, the present application provides a touch recognition method, which is applied to an electronic device including a capacitive touch panel, the method comprising: obtaining a capacitor array, the capacitor array including the capacitances of multiple detection points in the capacitive touch panel; judging whether the capacitive touch panel is touched by a hand based on the capacitor array, and judging whether the capacitive touch panel is touched by water based on the capacitor array; if it is determined that the capacitive touch panel is touched by a hand and water, judging whether there is capacitance within a target range corresponding to the hand contact in the capacitor array; and if so, obtaining the touch position of the hand based on the capacitance within the target range.
[0008] The capacitances of the multiple detection points described in this application are generally the capacitances of all detection points in the capacitive touch panel. Furthermore, the capacitances of the detection points can be obtained by mutual capacitance detection or self capacitance detection.
[0009] After implementing the method provided in the first aspect, the electronic device can preliminarily determine whether a hand and water are in contact with the capacitive touch panel, that is, preliminarily determine whether it is in a wet hand touch state. If so, the electronic device can further determine the capacitance corresponding to the hand touch. Then, based on the position of the detection point corresponding to the capacitance corresponding to the hand touch, a highly accurate touch position can be obtained based on the capacitance corresponding to the hand touch.
[0010] In combination with the method described in the first aspect, the method specifically includes: using a first condition to determine whether the capacitive touch panel is touched by a hand; using a second condition to determine whether there is a capacitor within a target range corresponding to the hand touch in the capacitor array; the second condition is stricter than the first condition.
[0011] 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 coarse and fine stages can generally improve the convergence speed of the touch recognition algorithm and the performance of the touch recognition function. In the coarse detection stage, the touch recognition status can be quickly determined, and the corresponding touch mode can be promptly adopted to respond to the user's touch operation.
[0012] In combination with the method described in the first aspect, the first condition includes: 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 a third value, determining that the capacitive touch panel is touched by a hand; the first value is greater than the second value; the second condition includes: in the capacitor array, when there is a capacitor greater than a seventh value, and when there is no capacitor within the target range around the capacitor with the seventh value and the number of capacitors less than an eighth value is greater than a ninth value, determining that the capacitive touch panel is touched by a hand; the seventh value is greater than the first value.
[0013] The above-mentioned first condition and second condition are exemplified under the following conditions: (1) If the electronic device adopts mutual capacitance detection, the capacitor array is specifically the capacitor array corresponding to the difference obtained by subtracting the induction value from the original value in the detection point; (2) If the electronic device adopts self-capacitance detection, the capacitor array is specifically the capacitor array corresponding to the difference obtained by subtracting the original value from the induction value in 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 a positive value, which facilitates data processing by the electronic device. In addition, when the electronic device adopts self-capacitance detection, if the capacitor array is specifically set to the difference obtained by subtracting the induction value from the original value in the detection point, then the above-mentioned first condition needs to be replaced with the first condition involving the eleventh value, the twelfth value and the thirteenth value described in the embodiment. The second condition also needs to be replaced similarly, and will not be repeated here.
[0014] In this way, since the first condition adopted by the present application is based on the entire capacitor array, by judging whether the maximum value is large enough, the particularity of the largest difference of the detection points in the contact area under hand contact is taken into account, and by judging whether the large values are large enough, the overall characteristic of the large difference of most detection points in the entire capacitor array under hand contact is taken into account. In other words, by adopting the first condition provided by the present application, it is possible to quickly determine whether there is hand contact in a comprehensive and targeted manner. The second condition adopted by the present application is to take into account that water is not grounded and has the characteristic of suspension 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 point can be used to accurately identify the capacitance of the detection point that has changed due to hand contact.
[0015] In combination 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 a center of gravity algorithm on the capacitance within the target range to obtain the touch position of the hand.
[0016] In this way, since the finger contacts the panel covering multiple detection points, the capacitance corresponding to the center of gravity of the finger can be analyzed based on the capacitance at the multiple detection points, thereby further obtaining a more accurate touch position of the hand.
[0017] In combination with the method described in the first aspect, the method specifically includes: using a third condition when determining whether the capacitive touch panel is in contact with water; the third condition includes: in the capacitor array, if there is a capacitor less than a fourth value and the number of capacitors less than a fifth value is greater than a sixth value, determining that the capacitive touch panel is in contact with water; the fourth value is less than the fifth value.
[0018] Thus, because the third condition provided by this application is based on the entire capacitor array, by determining whether the minimum value is sufficiently small, the special feature of the minimum difference between the detection points in the contact area under water contact is taken into account, and by determining whether the smaller values are sufficiently numerous, the overall feature of the small difference between the detection points in the entire capacitor array under water contact is taken into account. In other words, by adopting the third condition provided by this application, it is possible to quickly determine whether there is water contact in a comprehensive and targeted manner.
[0019] In combination 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, then the touch position of the water is not obtained.
[0020] In this way, the electronic device does not calculate the capacitor array, and thus will not obtain the touch position of the water, and will not respond to the touch of the water, which can avoid the electronic device from being triggered by mistake, and avoid the electronic device from having problems including but not limited to the incorrect display of handwriting as shown in Figure 3 b of this application.
[0021] In combination 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, filtering out the capacitor array.
[0022] In combination with the method described in the first aspect, the method further includes: if it is determined that there is no water on the capacitive touch panel and a hand is touching it, obtaining the touch position of the hand according to the capacitor array.
[0023] In this way, when the electronic device preliminarily determines that there is no water and only a hand is in contact, the conventional touch mode can be used to identify the touch position of the hand as quickly as possible.
[0024] In combination with the method described in the first aspect, the method further includes: displaying the handwriting corresponding to the touch position on the display screen corresponding to the touch position; or, executing the task corresponding to the control displayed corresponding to the touch position.
[0025] In this way, after identifying the touch position of the hand, the electronic device can respond to the touch operation of the hand in a timely manner and perform the corresponding task.
[0026] In combination with the method described in the first aspect, the touch position includes the positions of one or more detection points.
[0027] That is, in addition to providing single-touch functionality, electronic devices can also provide multi-touch functionality. Specifically, when a user's finger touches multiple locations on a capacitive touch panel simultaneously, the capacitance of the multiple detection points changes accordingly, allowing the electronic device to identify the locations of the multiple detection points corresponding to the touch locations based on the changed capacitance.
[0028] 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, 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.
[0029] In a third aspect, the present application provides a chip, which is applied to an electronic device. The chip includes one or more processors, which are used to call computer instructions to enable the electronic device to execute any method described in the first aspect.
[0030] Fourth aspect: The present application provides a computer-readable storage medium, the computer-readable storage medium comprising instructions, which, when executed on an electronic device, causes the electronic device to execute any of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] FIG1 is a schematic structural diagram of an electronic device screen 10 provided in an embodiment of the present application;
[0032] FIG2 is a schematic structural diagram of a capacitive touch panel 12 provided in an embodiment of the present application;
[0033] FIG3 is a schematic diagram of a user interface for touch recognition provided in an embodiment of the present application;
[0034] FIG4 is a flow chart of a touch recognition method provided by an embodiment of the present application;
[0035] FIG5 is a flow chart of a method for determining a touch mode provided in an embodiment of the present application;
[0036] FIG6A is a capacitor array that meets the first condition under hand touch only, provided by an embodiment of the present application;
[0037] FIG6B is a capacitor array that meets the first condition under water touch only, provided by an embodiment of the present application;
[0038] FIG6C is a capacitor array that satisfies the first and third conditions under wet hand touch according to an embodiment of the present application;
[0039] FIG7 is a flow chart of a method for wet hand touch mode provided in an embodiment of the present application;
[0040] FIG8A is a capacitor array that meets the first condition under wet hand touch according to an embodiment of the present application;
[0041] FIG8B is a capacitor array for filtering out interference under wet hand touch according to an embodiment of the present application;
[0042] FIG9 is a schematic diagram of a hardware architecture of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings.
[0044] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” is merely a way to describe the association relationship of associated objects, indicating that three relationships can exist, for example, A and / or B can mean the existence of A alone, the existence of A and B at the same time, and the existence of B alone.
[0045] In the description of the embodiments of this application, unless otherwise specified, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features specified as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more.
[0046] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
[0047] The term "user interface (UI)" in the following embodiments of this application refers to a medium interface for interaction and information exchange between an application or 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 a 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 that the user can recognize. The commonly used form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0048] Currently, most electronic devices are equipped with a capacitive touch panel on their screens. Detailed information on the layout structure and working principle of the capacitive touch panel on the screen of the electronic device is described below.
[0049] Referring to FIG. 1 , FIG. 1 shows a schematic structural diagram of a screen 10 of an electronic device provided in the present application.
[0050] As shown in Figure 1, the screen 10 of the electronic device may include, from top to bottom, components such as a protective layer 11, a capacitive touch panel 12, a display module 13, and a substrate 14. The electronic device may implement touch detection functionality by using mutual capacitance detection via the capacitive touch panel 12, or alternatively, the electronic device may implement touch detection functionality by using self capacitance detection via the capacitive touch panel 12, although this is not limited in this embodiment of the present application.
[0051] The structure of screen 10 shown in FIG1 is merely an example. Screen 10 may include more components, or multiple components may be combined into an integrated structure, and this is not limited in the present application. For example, screen 10 may also include a housing that supports the entire screen 10. For another example, capacitive touch panel 12 and display module 13 may be manufactured independently or integrated into a single unit to form a touch screen.
[0052] Referring to FIG. 2 , FIG. 2 shows a schematic structural diagram of a capacitive touch panel 12 provided in the present application.
[0053] As shown in FIG2 , the capacitive touch panel 12 includes two first and second electrode arrays that are staggered horizontally and vertically. The first electrode array includes N columns of electrodes arranged in parallel, each column of electrodes including a plurality of electrodes arranged in sequence along the Y-axis. The second electrode array includes M rows of electrodes arranged in parallel, each row of electrodes including a plurality of electrodes arranged in sequence along the X-axis. Optionally, the first and second electrode arrays can be arranged in the same layer. If the first electrode array is connected in this layer, the second electrode array connects the electrodes by bridging.
[0054] (1) In the mutual capacitance detection method, each electrode in the first electrode array forms a mutual capacitance (denoted as Cm) with the adjacent electrode in the second electrode array, thereby constituting the capacitive touch panel 12 into a two-dimensional array of detection points. 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 a transmitting (transmit, Tx) electrode and the second electrode array as a receiving (receive, Rx) electrode. The excitation signal is input to each column of electrodes in the first electrode array in sequence, and the sensing signals of all rows in the second electrode array are detected at the same time. For example, the excitation signal is input in the order of (Y1, Y2...YN), and in the process of inputting the excitation signal in sequence, the sensing 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 value in the capacitance array, the coordinate point where the preset change occurs is used as the touch position. Among them, the preset change in mutual capacitance includes a reduction in mutual capacitance by a preset value. This is because the human body is conductive, and finger touch will absorb part of the excitation signal in the first electrode array at the touch position, thereby causing the mutual capacitance detected at the detection point in the touch area to decrease.
[0055] (2) In the self-capacitance detection mode, each electrode in the first electrode array and each electrode in the second electrode array forms a self-capacitance (denoted as Cs) with the ground, thereby constituting the capacitive touch panel 12 with detection points arranged in a two-dimensional array. 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, and the self-capacitance between the second electrode array and the ground is detected, and the coordinate point where a column of the first electrode array where the self-capacitance changes by a preset value and a row of the second electrode array where the self-capacitance changes by a preset value are intersected is used as the touch position. The preset change in self-capacitance includes an increase in self-capacitance by a preset value, which is because the human body has capacitance to the ground. 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.
[0056] However, if the capacitive touch panel 12 is exposed to interference, such as water, coffee, dust, or other interfering substances, these interfering substances may also cause the capacitance at the detection point to change, thereby interfering with finger touch recognition. For an example of water as an interfering substance, the specific interference it causes on finger touch recognition can be seen in the following description of FIG3 .
[0057] Refer to FIG3 , which exemplarily shows a user interface diagram of a set of touch recognition provided in an embodiment of the present application.
[0058] Figure 3 (a) shows a user interface 1 displayed on an electronic device when the screen is clean and there are no accidental touches. Specifically, the user interface 1 is provided by a drawing or writing application on the electronic device. When there is no interfering material on the screen 10 of the electronic device and no input object (such as a finger or stylus) contacts it, the electronic device will not be accidentally triggered to display handwriting in the user interface 1.
[0059] Figure 3(b) shows the user interface 2 displayed by the electronic device in the event of an accidental touch caused by water. Specifically, this user interface 2 is provided by a drawing or writing application on the electronic device. When there is an interfering substance (such as water stains) on the screen 10 and no input object (such as a finger or stylus) is in contact, the electronic device may still be mistakenly triggered to display handwriting in the user interface 2 that the user did not input.
[0060] Figure 3(c) shows the user interface 3 displayed by the electronic device when dry touch recognition is accurate. Specifically, this user interface 3 is provided by the electronic device's drawing or writing application. When there is no interfering material on the screen 10 and an input object (such as a finger) touches it, the electronic device is triggered to display the complete handwriting corresponding to the complete finger sliding trajectory in the user interface 3.
[0061] Figure 3(d) shows user interface 4 displayed by the electronic device when touch recognition is inaccurate due to wet hands. This user interface 4 is provided for drawing and writing applications on the electronic device. When there is an interfering substance (such as water stains) on the screen 10 and an input object (such as a finger) contacts it, the electronic device will trigger the display of the handwriting corresponding to the finger sliding trajectory in user interface 3. However, the handwriting may be incomplete, that is, the electronic device did not fully recognize the finger sliding trajectory.
[0062] Figure 3 uses water as an interfering substance, and only uses drawing and writing applications as examples to illustrate the interference caused by interfering substances on touch recognition of electronic devices. In addition, interfering substances may include other substances, and the objects and forms of interference may also include other objects, and the embodiments of the present application are not limited to these.
[0063] Based on the above description of Figures 1-3 , it can be seen that for a screen 10 using a capacitive touch panel 12, when water contacts the screen 10, the electronic device may misinterpret it as a finger touch, thereby causing a false touch event, such as incorrectly displaying handwriting. Furthermore, when a user inputs a touch operation with wet hands, the electronic device may not be able to detect the correct finger touch operation, resulting in touch failure, such as not displaying the complete handwriting.
[0064] The reason for the aforementioned interference is: taking water as an interfering substance as an example, when water contacts a 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 a self-capacitive capacitive touch panel and a finger touches the self-capacitive capacitive touch panel, the directions of the self-capacitance changes generated by the capacitive touch panel are the same, that is, water contact and hand contact both increase the self-capacitance. Based on the aforementioned 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 final touch position or directly causing the touch function to be unusable.
[0065] In order to solve the above problems, the present application provides a touch recognition method and electronic device. The method includes: the electronic device obtains a capacitor array through a capacitive touch panel, and the capacitor array includes the capacitance of multiple detection points in the capacitive touch panel. Then, a rough detection is performed based on the capacitor array, that is, a preliminary judgment is made on whether the capacitive touch panel is touched by a hand, and whether the capacitive touch panel is touched by an interfering substance. If it is determined that the capacitive touch panel is in contact with a hand and an interfering substance, a fine detection is performed on the capacitor array, that is, the capacitance corresponding to the hand contact is further determined, and then the touch position of the hand is obtained based on the capacitance corresponding to the hand contact.
[0066] Implementing the touch recognition method provided in this application can bring the following beneficial effects:
[0067] (1) Provide touch recognition functions in more scenarios. Specifically, electronic devices can still provide touch recognition functions even when hands are wet.
[0068] (2) Accelerate the convergence speed of the touch recognition algorithm. Specifically, by dividing the touch recognition algorithm into two stages, namely, coarse detection and fine detection, the touch recognition state can be quickly determined in the coarse detection stage, and the corresponding touch mode can be used in a timely manner to respond to the user's touch operation.
[0069] (3) Improve the accuracy of wet hand touch recognition. Specifically, by dividing the detection into two stages: coarse detection and fine detection, the capacitance changes caused by hand touch and water touch can be accurately distinguished in the fine detection stage, and the touch position can be calculated with high precision based only on the capacitance change caused by the hand.
[0070] The capacitive touch panel involved in the present application can use mutual capacitance detection to collect the mutual capacitance of each detection point, and / or use self-capacitance detection to collect the self-capacitance of each detection point. For details about these two methods of collecting capacitance, please refer to the introduction to Figure 2 above, which will not be repeated here.
[0071] The capacitor array involved in this application specifically refers to the difference in capacitance at each detection point. For details on how to obtain the difference, please refer to the introduction at S401 in Figure 4 later. For details on the form of expression of the difference, please refer to the introduction to the capacitor array shown in Figures 6A-6C later. We will not go into details here.
[0072] The coarse detection and fine detection involved in this application refer to graded detection using different detection conditions. The detection conditions used in fine detection are more stringent than those used in coarse detection. For details, please refer to the detailed description of the method flow shown in Figures 5 and 7 below, which will not be repeated here.
[0073] The interfering substances involved in this application include but are not limited to water, coffee, juice or dust, etc., and the following text only uses water as an example of the interfering substance. The touch recognition method provided in this application is also applicable to touch recognition methods corresponding to other interfering substances.
[0074] Next, refer to FIG4 , which exemplarily shows a flow chart of a touch recognition method provided by an embodiment of the present application.
[0075] As shown in FIG4 , the method includes the following steps:
[0076] S401 , performing a rough detection on the acquired capacitance, thereby preliminarily determining the touch state of the capacitive touch panel.
[0077] Specifically, after the electronic device is powered on, it can control the capacitive touch panel 12 to periodically detect the sensing value at each detection point, then obtain a corresponding difference between the sensing value and the original value, and then perform a 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 described above, it can be seen that the touch state of the capacitive touch panel 12 is equivalent to the state of the screen 10. Unless otherwise specified, the two have the same meaning.
[0078] The method for obtaining the difference between the sensed value and the original value specifically includes:
[0079] Sensing value: Regardless of whether there is any interfering material or input object on the screen 10, the capacitance value detected by the capacitive touch panel 12 is called the sensing value.
[0080] Specifically, the sensed value includes the mutual capacitance or self-capacitance corresponding to each detection point in the capacitive touch panel 12, depending on the detection method of the capacitive touch panel 12. In one practicable embodiment, the sensed value detected in each cycle can be in the form of a capacitor array, and each capacitance value in the capacitor array uniquely corresponds to the sensed value of a detection point in the capacitive touch panel 12.
[0081] Original value: When there is no interfering material or input object on the screen 10 , the capacitance value detected by the capacitive touch panel 12 is called the original value. The original value represents the initial state of the capacitive touch panel 12 .
[0082] Specifically, the original value also includes the mutual capacitance or self-capacitance corresponding to each detection point in the capacitive touch panel 12, depending on the detection method of the capacitive touch panel 12. In one practicable embodiment, the original value may also be in the form of a capacitor array, where each capacitance value in the capacitor array uniquely corresponds to the original value of a detection point in the capacitive touch panel 12. In addition, the original value can be pre-set for the electronic device before leaving the factory, or the electronic device can obtain the original value through testing after leaving the factory.
[0083] Difference: Calculated by 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. The following uses the difference between the original value and the sensed value as an example to describe the method provided by this application.
[0084] Specifically, the difference value also includes the mutual capacitance difference value or the self-capacitance difference value corresponding to each detection point in the capacitive touch panel 12, depending on the detection method of the capacitive touch panel 12. When the sensed value is in the form of a capacitor array and the original value is also in the form of a capacitor array, the difference value in the form of a capacitor array can be obtained by subtracting the original value from the sensed value at the corresponding position in the array. Unless otherwise specified, the capacitor array mentioned in this application generally refers to the capacitor array corresponding to the difference value.
[0085] The method for determining the touch state based on the difference includes:
[0086] By extensively analyzing the capacitor arrays corresponding to the aforementioned difference under conditions of hand-only touch, water-only touch, and water and hand touch on the screen 10, it was found that the capacitor arrays corresponding to the difference under different touch conditions have different characteristics. Therefore, the touch state can be determined by determining the characteristics of the capacitor arrays. In this application, touch states include but are not limited to: touch by the input object only, touch by the interfering material only, and touch by both the interfering material and the input object. For the sake of convenience in describing this solution, this application uses water to represent the interfering material and a hand to represent the input object to specifically describe the touch recognition method.
[0087] When the touch state is preliminarily determined to be wet hand touch, the electronic device executes subsequent S402-1; when the touch state is preliminarily determined to be water-only touch, the electronic device executes subsequent S402-2; when the touch state is preliminarily determined to be hand-only touch, the electronic device executes subsequent S402-3.
[0088] Regarding the coarse detection method, that is, regarding the specific implementation of determining the touch state, reference may be made to the description of the method flow shown in FIG5 later, which will not be described in detail here.
[0089] S402-1, using a wet hand touch mode to perform precise detection on capacitance data, that is, determining the capacitance change caused by water and the capacitance change caused by the hand.
[0090] 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 precise detection of the capacitance data, thereby further distinguishing the capacitance change caused by water from the capacitance change caused by the hand in the capacitance array, filtering out the capacitance change caused by water as an interference signal, and then executing the subsequent S403 based on the capacitance change caused by the hand. The capacitance change caused by the hand determined by the wet hand touch mode can be referred to as the difference within the target range of the capacitance array, and the capacitance change caused by water can be referred to as the difference within the non-target range of the capacitance array.
[0091] Regarding the precise detection method, that is, the specific implementation of determining the capacitance change caused by water and the capacitance change caused by a hand, please refer to the description of the method flow shown in FIG7 later, which will not be repeated here.
[0092] S402-2, does not respond to water-only touch.
[0093] Specifically, when it is determined in S401 that the touch state of the capacitive touch panel 12 is water touch only, in order to avoid the electronic device being triggered by mistake, that is, to avoid problems including but not limited to the incorrect display of handwriting as shown in Figure 3b, the electronic device will not calculate the capacitor array, and will not obtain the touch position of the water, and will not respond to the touch of the water.
[0094] S402-3: adopting a conventional touch mode, that is, determining the touch position of the hand based on the acquired capacitance.
[0095] Specifically, when it is determined in S401 that the touch state of the capacitive touch panel 12 is hand touch only, 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 a conventional touch mode to calculate the capacitor array to obtain the touch position of the hand, and then respond to the touch operation of the hand.
[0096] In the hand-only touch state, the method for obtaining the hand touch position includes but is not limited to any of the following:
[0097] (1) The position of the detection point corresponding to the peak value in the entire capacitor array is determined as the touch position of the hand;
[0098] (2) The position of the detection point in the entire capacitor array that is greater than the preset value is determined as the touch position of the hand. Optionally, the preset value is, for example, the first value described in S502 below, or the seventh value described in S701 below.
[0099] (3) A centroid algorithm or a triangulation algorithm is used for all differences within a preset range containing the peak value in the entire capacitor array, and the position of the detection point output by the algorithm is determined as the touch position of the hand, wherein the preset range can be a 3*3 (or 7*7) sub-array centered on the peak value. The embodiment of the present application does not limit the size of the sub-array.
[0100] (4) A centroid algorithm or a triangulation algorithm is used for all differences within a preset range that are greater than a preset value in the entire capacitor array, and the position of the detection point output by the algorithm is determined as the touch position of the hand. Optionally, the preset value is, for example, the first value described in S502 below, or the seventh value described in S701 below. The preset range can be a 3*3 (or 7*7) subarray centered on the peak value. The embodiment of the present application does not limit the size of the subarray.
[0101] 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 handwriting shown in c in Figure 3 above, or executing the task corresponding to the control displayed corresponding to the touch position, etc.
[0102] S403 : Determine the touch position of the hand based on the capacitance change caused by the hand.
[0103] 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.
[0104] In the wet hand touch state, the method of obtaining the touch position of the hand includes but is not limited to:
[0105] (1) Only the detection point corresponding to the peak value within the target range of the capacitance array is determined as the touch position of the hand. The target range refers to the capacitance change caused by the hand determined in the wet hand touch state in S402-1. The specific determination method is described in S701-S702 below.
[0106] (2) Apply a centroid algorithm or triangulation algorithm to all values within a 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 in the wet hand touch state determined in S402-1. The specific determination method is described in S701-S702 below.
[0107] It can be seen that compared with the aforementioned method of obtaining the touch position of the hand in the hand touch state only, in the method of obtaining the touch position of the hand in the wet hand touch state, processing is only based on the difference within the target range in the capacitor array instead of processing the entire capacitor array. This is because the target range is the capacitance change caused by the hand that is accurately distinguished by the electronic device using the wet hand touch mode, thereby improving accuracy.
[0108] 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 handwriting shown in c in Figure 3 above, or executing the task corresponding to the control displayed corresponding to the touch position, etc.
[0109] Next, the method flow of determining the touch state to adopt the corresponding touch mode involved in the aforementioned S401 is described in detail.
[0110] Refer to FIG5 , which is a flow chart of a method for determining a touch mode provided in an embodiment of the present application.
[0111] As shown in FIG5 , the method includes the following steps:
[0112] S501 , obtaining a capacitance array corresponding to the differences of all detection points in the capacitive touch panel.
[0113] Specifically, the electronic device can obtain the sensing values of all detection points in the capacitive touch panel 12 through mutual capacitance detection or self-capacitance detection, and then subtract the sensing value of the corresponding detection point from the original value of each detection point to obtain a capacitance array composed of the difference of each detection point.
[0114] For a detailed description of the sensing value, original value, and difference value, please refer to the description in S401 above, which will not be repeated here.
[0115] S502 , determining whether the capacitor array satisfies a first condition, and determining whether the capacitor array satisfies a third condition.
[0116] Specifically, the electronic device uses the first condition and the third condition to perform a rough detection on the capacitor array. When the capacitor array only meets the first condition, it is preliminarily determined that only a hand is in contact with the capacitive touch panel 12, and the subsequent S503-3 is executed; when the capacitor array only meets the second condition, it is preliminarily determined that only water is in contact with the capacitive touch panel 12, and the subsequent S503-2 is executed; when the capacitor array meets both the first condition and the third condition, it is preliminarily determined that both a hand and water are in contact with the capacitive touch panel 12, and the subsequent S503-1 is executed.
[0117] In the embodiment of the present application, for a capacitance array obtained by mutual capacitance detection and a capacitance array obtained by self capacitance detection, the first and third conditions are different, respectively, as follows:
[0118] 1. Mutual capacity detection method.
[0119] The first condition is met, confirming that only hand contact
[0120] Taking mutual capacitance detection as an example, when only a hand is in contact with screen 10, the sensing value of the detection point in the contact area will decrease, resulting in a positive difference between the original value and the sensing value. The sensing value of the detection point in the non-contact area will change slightly or remain unchanged. Considering the characteristics that the difference between the detection points in the hand contact area is the largest, the difference between the detection points in the area near the hand contact area is larger, and the difference between the detection points in the remaining areas is approximately zero, therefore, by detecting whether the capacitor array meets the first condition, it can be determined whether there is hand contact.
[0121] The first condition may include, for example, whether the maximum value in the capacitor module is greater than a first value, and whether the number of larger values in the capacitor module is greater than a third value. If so, hand contact is determined; otherwise, no hand contact is determined. In other words, the first condition may include, for example, determining hand contact if 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 a third value. The first value is greater than the second value.
[0122] 6A , FIG6A exemplarily shows a capacitor array that meets the first condition under hand touch only.
[0123] As shown in FIG6A , the capacitor array satisfies the first condition, i.e., there are capacitors greater than a first value in the capacitor array, and the number of capacitors greater than a second value is greater than a third value. Here, the first value is 1000, the second value is 500, and the third value is 7*7=49.
[0124] It is understandable that the size of the capacitor array and the values therein shown in FIG. 6A are merely examples and are not limited in the embodiments of the present application.
[0125] From the above analysis, we can see that the first condition provided by this application, based on the entire capacitor array, considers the particularity of the largest difference between detection points in the contact area under hand contact by determining whether the maximum value is sufficiently large. Furthermore, by determining whether there are sufficiently many larger values, we consider the overall characteristic of large differences between detection points across the entire capacitor array under hand contact. In other words, by adopting the first condition provided by this application, it is possible to quickly and comprehensively determine whether there has been hand contact.
[0126] The third condition is met, confirming that only water is in contact
[0127] Taking mutual capacitance detection as an example, when only water contacts the screen 10, the sensing value of the detection point corresponding to the contact area will increase, resulting in a negative difference between the original value and the sensing value. The sensing value of the detection point in the non-contact area changes little or remains unchanged. Considering the characteristics that the difference between the detection points in the water contact area is the smallest, the difference between the detection points in the area near the water contact area is small, and the difference between the detection points in the remaining areas is approximately 0, therefore, by detecting whether the capacitor array meets the third condition, it can be determined whether there is hand contact.
[0128] The third condition may include, for example, whether the minimum value in the capacitor module is less than a fourth value, and whether the number of smaller values in the capacitor module is greater than a sixth value. If so, it is determined that water contact exists; otherwise, it is determined that no water contact exists. In other words, the third condition may include, for example, determining that water contact exists if there is a capacitor less than the fourth value in the capacitor array and the number of capacitors less than the fifth value is greater than the sixth value. The fourth value is less than the fifth value.
[0129] In conjunction with FIG. 6B , FIG. 6B exemplarily shows a capacitor array that meets the third condition only under water touch.
[0130] As shown in FIG6B , the capacitor array satisfies the third condition, i.e., there are capacitors in the capacitor array that are smaller than the fourth value, and the number of capacitors that are smaller than the fifth value is greater than the sixth value. Here, the fourth value is shown as -800, the fifth value is shown as -500, and the sixth value is shown as 7*7=49.
[0131] It is understandable that the size of the capacitor array and the values therein shown in FIG. 6B are merely examples and are not limited in the embodiments of the present application.
[0132] From the above analysis, it can be seen that the third condition provided by this application takes into account the particularity of the smallest difference between detection points in the contact area under water contact, based on the entire capacitor array, by determining whether the minimum value is sufficiently small. Furthermore, by determining whether the smaller values are sufficiently numerous, the overall characteristic of the smallest difference between detection points in the entire capacitor array under water contact is taken into account. In other words, by adopting the third condition provided by this application, it is possible to quickly and comprehensively determine whether there is water contact.
[0133] The first and third conditions are met to determine the contact between water and hand (wet hand touch)
[0134] Taking mutual capacitance detection as an example, when water and a hand contact the capacitive touch panel 12, they have opposite effects on the capacitance of the detection point corresponding to the contact area. That is, the difference in capacitance caused by the hand is positive, while the difference in capacitance caused by the water is negative. Therefore, by detecting whether the capacitor array meets the first and third conditions, it can be determined whether there is contact between the hand and the water.
[0135] 6C , FIG6C exemplarily shows a capacitor array that meets the first and third conditions under wet hand touch.
[0136] As shown in FIG6C , the capacitor array satisfies the first condition and the third condition. For the description of the first condition and the third condition, reference may be made to the above introduction.
[0137] It is understandable that the size of the capacitor array and the values therein shown in FIG. 6C are merely examples and are not limited in the embodiments of the present application.
[0138] The previous article used mutual capacitance detection as an example to explain how to determine if a hand or water is present on the screen. Similarly, for self-capacitance detection, the methods for determining if a hand or water is present on the screen are similar. The difference lies in the fact that water causes a positive change in the difference at the detection point in self-capacitance detection, and a hand also causes a positive change in the difference at the detection point in self-capacitance detection, but the degree of positive change differs. Therefore, the conditions used for self-capacitance detection can be determined based on these different degrees of change, as detailed below.
[0139] 2. Self-capacitance detection method
[0140] The first condition is met, confirming that only hand touch is
[0141] Because the direction of change in the difference at the detection point caused by hand contact in the self-capacitance detection method is opposite to the direction of change in the difference at the detection point caused by hand contact in the mutual capacitance detection method, the first condition used to detect whether there is hand contact on the screen 10 in the self-capacitance detection method is different from the first condition used in the mutual capacitance detection method.
[0142] The first condition may include, for example, whether the minimum value in the capacitor module is less than the eleventh value, and whether the number of smaller values in the capacitor module is less than the thirteenth value. If so, it is determined that hand contact has occurred; otherwise, it is determined that hand contact has not occurred. In other words, the eleventh condition may include, for example, whether hand contact has occurred if there is a capacitor in the capacitor array that is less than the eleventh value and the number of capacitors that are less than the twelfth value is greater than the thirteenth value. The eleventh value is less than the twelfth value.
[0143] From the above analysis, we can see that the first condition provided by this application, based on the entire capacitor array, considers the specificity of the smallest difference between detection points in the contact area under hand contact by determining whether the minimum value is sufficiently small. Furthermore, by determining whether there are sufficiently many smaller values, we consider the overall characteristic of the small difference between most detection points in the entire capacitor array under hand contact. In other words, by adopting the first condition provided by this application, it is possible to quickly and comprehensively determine whether there has been hand contact.
[0144] The third condition is met, confirming that only water touch
[0145] Because the direction of change in the difference value at the detection point caused by water contact in the self-capacitance detection method is the same as the direction of change in the difference value at the detection point caused by water contact in the mutual-capacitance detection method, the third condition used to detect whether water has contacted the screen 10 in the self-capacitance detection method is similar to the third condition in the aforementioned mutual-capacitance detection method, the difference being that the specific values are slightly different and are determined based on the specifications of the capacitive touch panel 12. Furthermore, because water produces a positive change in the difference value at the detection point in the self-capacitance detection method, a hand also produces a positive change in the difference value at the detection point in the self-capacitance detection method, but the degree of positive change is different, i.e., the increase in the sensing value caused by water is smaller than the increase in the sensing value caused by a hand. Therefore, the values in the third condition in the self-capacitance detection method and the first condition need to have the following differences.
[0146] The third condition includes, for example, whether the minimum value in the capacitor module is less than the fourteenth value, and whether the number of smaller values in the capacitor 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, if there is a capacitor less than the fourteenth value in the capacitor array and the number of capacitors less than the fifteenth value is greater than the sixteenth value, it is determined that there is hand contact. The fourteenth value is less than the fifteenth value. In addition, 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.
[0147] Meeting the first and third conditions, water and hand touch (wet hand touch)
[0148] Taking self-capacitance detection as an example, when water and a hand contact the capacitive touch panel 12, both have the same impact on the capacitance of the detection point corresponding to the contact area, but to different degrees. Therefore, the first and third conditions of the self-capacitance detection method described above can be used to determine whether a hand and water are in contact.
[0149] Optionally, since the size of the capacitance module obtained by the electronic device is different for different capacitive touch panels, different screens, and different detection methods, the embodiment of the present application does not impose specific restrictions on the first value, second value, third value, fourth value, fifth value and sixth value involved in the aforementioned mutual capacitance detection method, as well as the eleventh value, twelfth value, thirteenth value, fourteenth value, fifteenth value and sixteenth value involved in the aforementioned mutual capacitance detection method. Taking specific numerical values as an example, for the capacitive touch panel 12 of the mutual capacitance detection method, the first value can be 1000, the second value can be 500, the third value can be 49, the fourth value can be -800, the fifth value can be -500, and the sixth value can be 49. Among them, since the degree of influence of water contact and hand contact on the sensing value at the detection point is different, that is, the amount of change in the sensing value caused by the hand is greater than the amount of change in the sensing value caused by the water, in the present application, the absolute value of the first value is set to be larger than the absolute value of the fourth value, which can more accurately determine whether there is a hand or water on the screen 10.
[0150] Alternatively, in self-capacitance detection, the difference can be represented by subtracting the original value from the sensed value, rather than the original value from the sensed value as in mutual capacitance detection. In this way, in self-capacitance detection, the change in the difference caused by a finger touch is positive, making it easier for the electronic device to calculate the difference. Accordingly, when the difference is defined as the sensed value minus the original value, the first and third conditions are adjusted in the opposite direction, and are not further detailed here.
[0151] S503-1, adopts wet hand touch mode.
[0152] For details, please refer to the detailed description of S402-1 and S403 above, and S701, S702, S703-1 and S703-2 below, which will not be described here in detail.
[0153] S503-2, does not respond to water-only touch.
[0154] Specifically, in order to avoid the electronic device from being triggered by mistake, that is, to avoid problems including but not limited to the incorrect display of handwriting as shown in Figure 3b, the electronic device will not calculate the capacitor array, and will not obtain the touch position of the water, and will not respond to the touch of the water.
[0155] S503-3, using conventional touch mode.
[0156] For details, please refer to the description of S402-3 above, which will not be repeated here.
[0157] Next, the method flow of using the wet hand touch mode to determine the touch position of the hand involved in the aforementioned S402-1-S403 is described in detail.
[0158] Refer to FIG. 7 , which is a flow chart of a method for a wet hand touch mode provided in an embodiment of the present application.
[0159] As shown in FIG7 , the method includes the following steps:
[0160] S701 , determining a capacitor in the capacitor array that is greater than a seventh value, and determining a capacitor within a preset range with the capacitor as the center.
[0161] Specifically, in wet touch mode, to further accurately distinguish capacitance changes caused by hand contact from capacitance changes caused by water, it is necessary to further determine a larger capacitance value in the capacitor array, namely the seventh value. This larger capacitance value must be larger than the first and eleventh values used in the aforementioned coarse detection. Then, within the capacitor array, with the capacitance greater than the seventh value as the center, the capacitance within a preset range is determined. This preset range can be, for example, a 3*3 or 7*7 sub-array size, and this application does not impose any restrictions on this.
[0162] 8A , FIG8A exemplarily shows a capacitor array that meets the first and third conditions under wet hand touch.
[0163] As shown in Figure 8A, the capacitor array is the same as the capacitor array shown in Figure 6C above. There are capacitors greater than the seventh value in the capacitor array, such as 1652, 2556, etc. In addition, there are 1648, 1625, 1578, 2355, etc. around 2556. In one practicable manner, when there are multiple capacitors greater than the seventh value, and the multiple capacitors with the seventh value belong to the same preset range, only the largest capacitor in the preset range is used as the center. In another practicable manner, when there are multiple capacitors greater than the seventh value, each capacitor greater than the seventh value can be used as the center to determine the preset range. Figure 8A is only exemplified in the first practicable manner, that is, 1652 is used as center 1, preset range 1 is used as the preset range of center 1, 2566 is used as center 2, and preset range 2 is used as the preset range of center 2.
[0164] The touch recognition provided in this application is divided into coarse detection stage and fine detection stage, which can accelerate the algorithm convergence speed as a whole, that is, quickly determine which touch mode to use, and then promptly use the corresponding touch mode to output the touch recognition results to quickly respond to the user's touch operation.
[0165] S702 , determining whether the number of capacitors smaller than an eighth value among capacitors within a preset range is greater than a ninth value.
[0166] Specifically, taking the mutual capacitance detection method as an example, since the water droplets on the screen are not grounded and have the characteristic of superposition suspension, the edge of the water droplet and the inside of the water droplet have opposite effects on the capacitance at the detection point. The edge of the water droplet causes the induction value of the detection point to decrease by a positive difference, while the inside of the water droplet causes the induction value of the detection point to increase by a negative difference. In other words, the capacitance change of the detection point caused by the edge of the water droplet is the same as that of the finger, which can easily cause the electronic device to mistakenly judge the water droplet as a touch of the hand.
[0167] To this end, a second condition is further employed to precisely detect other capacitors within a preset range around the seventh value capacitor to determine whether the preset range contains a large number of negative values, and the negative values are relatively small. For example, this second condition may be: whether the number of capacitors within the preset range that are smaller than the eighth value is greater than the ninth value. If so, the difference within the preset range indicates that the capacitance change is caused by water droplets, and therefore, the subsequent step S703-2 is executed; otherwise, the difference within the preset range indicates that the capacitance change is caused by a hand, and therefore, the subsequent step 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 capacitors within the preset range.
[0168] Continuing with FIG8A , the preset range 1 where the center 1 is located does not satisfy the aforementioned second condition, so the preset range 1 belongs to the interference range of capacitance change caused by water contact, and the preset range 2 where the center 2 is located satisfies the aforementioned second condition, so the preset range 2 belongs to the target range of capacitance change caused by hand contact.
[0169] S703-1: Use the preset range as the target range of hand contact, and determine the touch position of the hand based on the capacitance within the target range.
[0170] Specifically, for the method of determining the touch position of the hand based on the capacitance within the target range, reference may be made to the description of S403 above, which will not be described in detail here.
[0171] S703-2: The preset range is used as the interference range of water contact, and the capacitors within the interference range are filtered out.
[0172] In one practicable manner, the electronic device can directly filter out all capacitance outside the target range. Referring to Figures 8A-8B, the electronic device filters out all capacitance outside the target range in the capacitor array. The method of filtering out capacitance is, for example, to set the capacitance to 0. A capacitance of 0 means a difference of 0, which means that the capacitance at the contact point remains at the original value and has not changed.
[0173] In another feasible manner, the electronic device may filter out only the capacitance within the interference range. In particular, when the interference range and the target range have overlapping capacitance, the electronic device may retain the capacitance or compensate for the capacitance to subsequently determine the touch position of the hand based on the capacitance within the target range. Specifically, when compensating for the capacitance of the overlapping part, the degree of interference of the target range can be compensated according to the interference range. For example, when the negative values of the overlapping area are more and larger, it means that the degree of interference is greater, so the higher the compensation ratio, the specific compensation value can be obtained by a certain ratio of the capacitance of the non-overlapping area in the target range. If there is a complete overlap, compensation is performed according to the difference corresponding to the preset finger contact.
[0174] Next, the hardware architecture and device form of the electronic device involved in this application are introduced.
[0175] Electronic equipment can be equipped or portable terminal devices with other operating systems, such as mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, 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, etc.
[0176] FIG9 shows a schematic structural diagram of the electronic device 100 .
[0177] 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, an earphone interface 170D, a sensor module 180, a button 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, an air 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.
[0178] It should be understood that the structures illustrated in the embodiments of the present application do 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 shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0179] 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). The different processing units may be independent devices or integrated into one or more processors.
[0180] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0181] In an embodiment 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 shown in Figures 4-5, and to execute the wet hand touch detection method as shown in Figure 7. For details, please refer to the introduction of the method embodiment in the previous text, which will not be repeated here.
[0182] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0183] 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.
[0184] The I2C interface is a bidirectional 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 I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby implementing the touch function of the electronic device 100.
[0185] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0186] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0187] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional 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 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0188] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0189] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, 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.
[0190] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0191] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0192] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0193] 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 input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0194] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0195] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0196] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0197] The modem processor may include a modulator and a demodulator. 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. The demodulator then 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 passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0198] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate 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 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0199] 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, so that the electronic device 100 can communicate with a 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 technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0200] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0201] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or 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. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than one.
[0202] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0203] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0204] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion 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 a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0205] 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.
[0206] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0207] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0208] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0209] 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 referred to as DDR5 SDRAM), etc.
[0210] Non-volatile memory may include disk storage devices and flash memory.
[0211] Flash memory can be divided into NOR FLASH, NAND FLASH, 3D NAND FLASH, etc. according to the operating principle; single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc. according to the storage cell potential level; universal flash storage (UFS), embedded multi media card (eMMC), etc. according to the storage specification.
[0212] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0213] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0214] 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 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.
[0215] In an embodiment of the present application, the aforementioned memory may be used to store execution codes for implementing the touch recognition method provided in the present application, such as the execution codes of the methods shown in FIG. 4 , FIG. 5 , and FIG. 7 .
[0216] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0217] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0218] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0219] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0220] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0221] The headphone jack 170D is used to connect a wired headphone and can be the 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.
[0222] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0223] 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., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking 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 scenes.
[0224] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0225] 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 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 cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0226] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0227] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using 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.
[0228] 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 a photodiode to detect 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 is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0229] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0230] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0231] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to implement a temperature management strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 reduces the performance of a processor located near temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature falls below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In other embodiments, when the temperature falls below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0232] The touch sensor 180K is also called a "capacitive touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0233] In the embodiment of the present application, the touch sensor 180K constitutes the capacitive touch panel 12 mentioned above. For a detailed introduction to the structure and working principle of the capacitive touch panel 12, please refer to the relevant description above and will not be repeated here.
[0234] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0235] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0236] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0237] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0238] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device 100 by inserting it into or removing it from the SIM card interface 195. The electronic device 100 can support 1 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, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. 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 communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0239] It should be understood that each step in the above method embodiments provided herein can be implemented by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of this application can be directly implemented as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0240] The present application also provides an electronic device, which may include: a memory and a processor, wherein the memory may be used to store a computer program; and the processor may be used to call the computer program in the memory so that the electronic device executes the method in any one of the above embodiments.
[0241] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device in any of the above embodiments.
[0242] In one possible design, the chip system further includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0243] The chip system can be composed of chips, or can include chips and other discrete devices.
[0244] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0245] Optionally, the memory in the chip system may be one or more. The memory may be integrated with the processor or may be provided separately from the processor, which is not limited in the embodiments of the present application. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or provided on different chips. The embodiments of the present application do not specifically limit the type of memory or the configuration of the memory and the processor.
[0246] 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 processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0247] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute the method executed by the electronic device in any of the above embodiments.
[0248] The present application also provides a computer-readable storage medium storing a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the electronic device in any of the above embodiments.
[0249] The various implementation modes of this application can be combined arbitrarily to achieve different technical effects.
[0250] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented 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, all or part of the processes or functions described herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).
[0251] Those skilled in the art will appreciate that all or part of the process steps in the above-described method embodiments can be implemented by a computer program instructing the relevant hardware. The program can be stored in a computer-readable storage medium, and when executed, the program can include the process steps in the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.
[0252] In short, the above description is only an embodiment of the technical solution of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent replacements, improvements, etc. made based on the disclosure of the present invention should be included in the scope of protection 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: Acquire a capacitance array, wherein the capacitance array includes capacitances of a plurality of detection points in the capacitive touch panel; Determining whether the capacitive touch panel is touched by a hand according to the capacitor array, and determining whether the capacitive touch panel is touched by water according to the capacitor array; If it is determined that the capacitive touch panel is in contact with the hand and water, determining whether there is a capacitor within a target range corresponding to the hand contact in the capacitor array; If yes, the touch position of the hand is obtained according to the capacitance within the target range.
2. The method according to claim 1, characterized in that The method specifically comprises: The first condition is used to determine whether the capacitive touch panel is touched by a hand; The second condition is used to determine whether there is a capacitor within the target range corresponding to the hand contact in the capacitor array; The second condition is stricter than the first condition.
3. The method according to claim 2, characterized in that The first condition includes: determining that the capacitive touch panel is touched by a hand when there is a capacitance greater than a first value in the capacitor array and the number of capacitances greater than a second value is greater than a third value; the first value is greater than the second value; The second condition includes: in the capacitor array, there is a capacitor greater than a seventh value, and the number of capacitors less than an eighth value in the target range that is not around the capacitor with the seventh value is greater than a ninth value, determining that the capacitive touch panel is touched by a hand; and the seventh value is greater than the first value.
4. The method according to any one of claims 1 to 3, characterized in that Acquiring the touch position of the hand according to the capacitance within the target range specifically includes: acquiring the touch position of the hand by using a center of gravity algorithm for the capacitance within the target range.
5. The method according to any one of claims 1 to 4, characterized in that The method specifically comprises: A third condition is used to determine whether the capacitive touch panel is in contact with water; The third condition includes: if there is a capacitor less than a fourth value in the capacitor array and the number of capacitors less than a fifth value is greater than a sixth value, it is determined that the capacitive touch panel is in contact with water; and the fourth value is less than the fifth value.
6. The method according to any one of claims 1 to 5, characterized in that The method further comprises: 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.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: If it is determined that there is water on the capacitive touch panel and there is no hand contact, the capacitor array is filtered out.
8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: If it is determined that there is no water on the capacitive touch panel and a hand touches the panel, the touch position of the hand is acquired according to the capacitor array.
9. The method according to any one of claims 1 to 8, characterized in that The method further comprises: Displaying the handwriting corresponding to the touch position on the display screen corresponding to the touch position; Alternatively, according to the control displayed corresponding to the touch position, the task corresponding to the control is executed.
10. The method according to any one of claims 1 to 9, characterized in that The touch position includes the position 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, 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 as described in any one of claims 1-10.
12. A chip, which is applied to electronic equipment, characterized in that: The chip includes one or more processors, and the processor is used to call computer instructions to enable the electronic device to execute the method as described in any one of claims 1-10.
13. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 10.
Citation Information
Patent Citations
Touch identification method and device of capacitive touch screen and electronic equipment
CN109614016A
Capacitive touch device, gesture recognition method thereof, chip and storage medium
CN111459346A
Touch screen, electronic equipment and display control method
CN113407053A
Touch identification method and device, electronic equipment and storage medium
CN116048308A
Method for recognizing touch operation, and electronic device
WO2023051411A1