Touch position determination method, device and electronic equipment

By processing the touchscreen capacitive data matrix and filtering out noise caused by unstable grounding, accurate touch point coordinate determination is achieved under unstable grounding conditions. This solves the touch failure problem of touchscreens under unstable grounding conditions and improves the user experience.

CN115701571BActive Publication Date: 2026-04-03VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-02
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

When the touchscreen is grounded unstable, it can cause full-screen reporting or random touch jumping, affecting touch accuracy and user experience.

Method used

By receiving the user's touch input, the capacitance data matrix of the screen is obtained, and processed under preset conditions to filter out noise caused by unstable grounding and obtain the correct touch point coordinates.

Benefits of technology

It improves the accuracy and reliability of touch position, solves the failure problem of touch screen when grounding is unstable, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115701571B_ABST
    Figure CN115701571B_ABST
Patent Text Reader

Abstract

This application discloses a touch position determination method, apparatus, and electronic device, belonging to the field of electronic technology. The method includes: receiving touch input from a user; responding to the touch input by acquiring a first data matrix of the screen, the first data matrix being a matrix composed of capacitance data of the screen; if the first data matrix satisfies a first preset condition, performing a first processing on the first data matrix to obtain a second data matrix; and determining the coordinate information of the touch point corresponding to the touch input based on the second data matrix.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of electronic technology, specifically relating to a method, apparatus, and electronic device for determining touch position. Background Technology

[0002] With the development of electronic technology, electronic devices with touch screen technology have become the mainstream in the market. Users can operate electronic devices simply by operating the touch screen.

[0003] Currently, most touchscreens are capacitive touch panels (CTP), suitable for multi-touch. When a user touches a capacitive touchscreen, the current and capacitance values ​​on the touchscreen undergo a series of physical transformations to obtain a matrix called Rawdata related to the electrode arrangement. Subtracting the CTP's baseline signal value from Rawdata yields a matrix called diff, which characterizes the signal difference before and after the touch operation. This diff is then used as input and processed by a complex touch algorithm to obtain the coordinate information of the touch point.

[0004] In related technologies, electronic devices with touchscreens may experience manufacturing defects during assembly, or, after being dropped or used for an extended period, poor contact may occur between the metal frame on the back of the LCD module (LCM) and the grounding terminal (GND) of the electronic device's wiring. When the contact between the LCM module's metal frame and GND is unstable, the scanned raw data becomes unstable and changes abruptly, causing all the obtained diff values ​​to rise (all exceeding the reporting threshold of 140). In this case, if this data is directly used to calculate touch point coordinates, it will result in the entire screen reporting touchscreen being unfunctional or exhibiting random point jumps, leading to touchscreen failure upon wake-up or low touch accuracy, ultimately resulting in a poor user experience. Summary of the Invention

[0005] The purpose of this application is to provide a touch position determination method, device, and electronic device that can solve the problem of touch screen failure or low touch accuracy when it is woken up, which leads to a poor user experience.

[0006] To solve the above-mentioned technical problems, this application is implemented as follows:

[0007] In a first aspect, embodiments of this application provide a method for determining a touch position. The method includes: receiving a user's touch input; responding to the touch input, acquiring a first data matrix of the screen, the first data matrix being a matrix composed of capacitance data of the screen; if the first data matrix satisfies a first preset condition, performing a first processing on the first data matrix to obtain a second data matrix; and determining the coordinate information of a touch point corresponding to the touch input based on the second data matrix, wherein the first preset condition includes: a trigger matrix corresponding to the first data matrix satisfies a second preset condition, and the trigger matrix is ​​determined based on the first data matrix.

[0008] Secondly, embodiments of this application provide a touch position determination device, which includes: a receiving module, an acquiring module, a processing module, and a determining module, wherein: the receiving module is used to receive touch input from a user; the acquiring module is used to acquire a first data matrix of the screen in response to the touch input received by the receiving module, the first data matrix being a matrix composed of capacitance data of the screen; the processing module is used to perform a first processing on the first data matrix acquired by the acquiring module to obtain a second data matrix when the first data matrix satisfies a first preset condition; the determining module is used to determine the coordinate information of the touch point corresponding to the touch input based on the second data matrix obtained by the processing module; wherein the first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies a second preset condition, the trigger matrix being determined based on the first data matrix.

[0009] Thirdly, embodiments of this application provide an electronic device including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method described in the first aspect.

[0010] Fourthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.

[0011] Fifthly, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.

[0012] In a sixth aspect, embodiments of this application provide a computer program product stored in a non-volatile storage medium, which is executed by at least one processor to implement the method described in the first aspect.

[0013] In this embodiment, after receiving a user's touch input, the touch device can obtain a first data matrix corresponding to the initial capacitance data of the screen. This first data matrix is ​​a matrix composed of the screen's capacitance data. If the first data matrix satisfies a first preset condition, it undergoes a first processing step to obtain a second data matrix. Finally, based on the second data matrix, the coordinate information of the touch point corresponding to the user's touch operation is determined. Through this method, in the event of screen abnormalities, such as unstable screen grounding, the touch position determination device can process the initial capacitance data of the touchscreen, for example, filtering out background noise in the initial capacitance data caused by screen abnormalities. This allows for the calculation of the correct touch point coordinates using the processed capacitance data, improving the reliability and accuracy of screen touch. Attached Figure Description

[0014] Figure 1 This is a flowchart of a touch position determination method provided in an embodiment of this application;

[0015] Figure 2 These are hardware schematic diagrams and system block diagrams of the capacitive touchscreen provided in the embodiments of this application;

[0016] Figure 3 This is one of the schematic diagrams illustrating the size of the data before and after processing provided in the embodiments of this application;

[0017] Figure 4 This is a second schematic diagram illustrating the size of the data before and after processing, provided in an embodiment of this application.

[0018] Figure 5 This is the third schematic diagram illustrating the size of the data before and after processing, as provided in the embodiments of this application;

[0019] Figure 6 This is the fourth schematic diagram illustrating the size of the data before and after processing, as provided in the embodiments of this application.

[0020] Figure 7 This is a schematic diagram of the structure of a touch position determination device provided in an embodiment of this application;

[0021] Figure 8 This is one of the hardware structure diagrams of an electronic device provided in the embodiments of this application;

[0022] Figure 9 This is a second schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0023] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0024] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0025] The touch position determination method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.

[0026] This application provides a method for determining a touch position, which can be applied to electronic devices. Figure 1 A flowchart of a touch position determination method provided in an embodiment of this application is shown. Figure 1 As shown, the touch position determination method provided in this application embodiment may include the following steps 101 to 104:

[0027] Step 101: Receive user touch input.

[0028] The aforementioned initial data matrix is ​​used to characterize the change in capacitance data when the touchscreen receives a touch operation.

[0029] It should be noted that receiving a touch operation refers to receiving a touch from a person's body part (such as a finger) or another object (such as a stylus). Before and after a touchscreen receives a touch, the touchscreen's capacitance data changes, and the touch point location can be determined by detecting the amount of change in capacitance data.

[0030] Step 102: In response to the above touch input, obtain the first data matrix of the screen.

[0031] The first data matrix mentioned above is a matrix composed of the screen's capacitance data.

[0032] In the embodiments of this application, the first data matrix is ​​used to characterize the change in capacitance data of the touch screen when a touch operation is received, or to characterize the change in capacitance data of the touch screen when no touch operation is performed.

[0033] It should be noted that, since the first data matrix reflects the initial capacitance data when a touch event occurs or when no touch event occurs on the screen, the first data matrix can also be referred to as the initial data matrix.

[0034] In this embodiment, the touch input can be any feasible input such as clicking, swiping, or pressing, and this embodiment does not impose any limitations on it.

[0035] In this embodiment, the screen can be a touchscreen. For example, the screen can be a capacitive touchscreen. Further, the touchscreen includes a capacitor matrix composed of several electrodes, including several x-axis electrodes and several y-axis electrodes.

[0036] It's important to note that capacitive touchscreens (or simply capacitive screens) operate using any object carrying an electrical charge, including human skin. When a finger touches a capacitive screen, a high-frequency signal is applied to the screen's working surface. At this point, the finger and the screen's working surface form a coupling capacitor, essentially acting as a conductor. The finger absorbs a small current from the contact point, which flows out from the screen's electrodes, causing a voltage drop at the corner electrodes. This achieves touch control by sensing the weak electrical current from the human body. For easier understanding... Figure 2 (a) in the diagram is a schematic diagram of the hardware for working capacitive touchscreen. Figure 2 The system block diagram in (b) summarizes the capacitive touch screen operation process, which is to apply an excitation signal to one end of the touch screen sensor capacitor and connect the other end to the analog front end (AFE) of the touch screen controller. The output of the AFE is converted into digital format (raw data) by an analog-to-digital converter (ADC) and a digital back end (DBE) and further processed in a digital signal processor (DSP), or in a microcontroller unit (MCU) or an arithmetic logic unit (ALU).

[0037] In this embodiment, the first data matrix includes at least one initial capacitance data (also referred to as original capacitance data), which can be called initial diff data or diff data. For example, the first data matrix is ​​determined based on the original data matrix corresponding to the original capacitance data on the touchscreen and the data matrix corresponding to the reference capacitance value of the touchscreen (also referred to as reference capacitance data). Further, the first data matrix is ​​the difference between the original data matrix corresponding to the original capacitance data and the data matrix corresponding to the reference capacitance value.

[0038] Furthermore, the aforementioned first data matrix includes L groups of second elements, and each group of second elements includes R second elements. This first data matrix is ​​an L×R matrix (or can be denoted as l rows and r columns), which can be represented as DIFF_Before in actual calculations. lxr Furthermore, the number of rows and columns is related to the number of electrodes distributed on the touchscreen.

[0039] It should be noted that related technologies determine the touch point position on a touchscreen by measuring changes in the screen's capacitance. However, since this change is based on the screen's raw capacitance data and a baseline capacitance value, if the display module has poor contact with the grounding terminal, the scanned raw capacitance data will change abruptly, while the baseline capacitance value will remain relatively constant. This causes the measured capacitance change to increase significantly, leading to inaccurate touch point positions. For example, when a user touches a certain area of ​​the screen with their finger, if the screen is in an unstable grounding state, the magnitude of the diff data used to calculate the user's touch point position will increase, resulting in inaccurate touch point positions calculated from the diff data.

[0040] Optionally, in this embodiment of the application, the touch chip (i.e., touch IC) can scan the entire screen of the touch screen's capacitance matrix by row scanning or column scanning to generate an original data matrix, and then subtract the reference data matrix corresponding to the reference capacitance value from the original data matrix to obtain the aforementioned first data matrix.

[0041] For example, the aforementioned reference capacitance value is a preset capacitance value based on the hardware parameters of the touchscreen, which can be regarded as the capacitance value detected by the touchscreen when it is not touched. Furthermore, the data matrix corresponding to the reference capacitance value is a preset data matrix.

[0042] In the embodiments provided in this application, when the touchscreen experiences grounding instability, by analyzing the scanning method of the touch IC and the obtained initial data (i.e., the aforementioned initial capacitance data), it is concluded that the data pattern of sudden changes in the initial data is strongly correlated with the scanning method. Specifically, if scanning is performed row by row, the initial capacitance data will rise row by row; if scanning is performed column by column, the initial capacitance data will rise column by column. It is noteworthy that the initial capacitance data shows strong consistency after rising, meaning that the value of the initial capacitance data across the entire screen increases consistently. Therefore, grounding instability scenarios can be detected using these characteristics. Tables 1 and 2 show the initial capacitance data obtained when the touchscreen is untouched and receiving a single touch, respectively, under grounding instability conditions.

[0043] It should be noted that when a touchscreen receives a touch under normal conditions, the diff data value corresponding to the area receiving the touch will increase significantly compared to other areas, while the diff data values ​​of other areas remain basically unchanged. When a touchscreen receives a touch under abnormal conditions (i.e., unstable grounding), the diff data value of the entire touchscreen area will increase significantly, and the diff data value corresponding to the area receiving the touch will increase further.

[0044] 157 158 157 156 159 157 156 161 0 0 156 156 155 156 159 158 158 158 154 150 151 153 153 151 151 151 151 151 153 151 152 152 153 153 152 153 160 159 159 159 159 157 159 163 157 158 157 159 158 159 158 160 158 159 160 155 155 156 157 158 155 158 157 157 154 158 154 158 159 154 156 159 149 151 150 151 150 151 152 149 151 147 150 149 150 151 151 149 149 150 151 149 148 148 152 150 148 150 149 155 152 146 151 152 150 153 148 150 153 157 152 151 155 154 153 154 155 154 154 153 154 154 153 155 152 155 150 152 151 148 152 153 151 152 154 149 150 151 152 151 153 150 152 152 157 158 157 158 158 156 158 158 161 158 162 158 159 159 159 158 156 165 151 153 150 151 149 151 154 152 151 149 153 150 149 155 151 151 149 151 152 157 152 150 151 155 150 150 151 150 151 150 150 149 151 150 150 150 153 155 154 152 153 153 153 149 153 153 154 153 154 158 155 155 153 153 157 158 154 158 158 158 158 159 157 159 161 158 160 159 159 159 157 159 160 157 155 156 156 155 157 155 157 157 156 156 156 159 158 156 154 155 157 153 151 152 153 155 154 153 151 155 156 154 153 157 153 153 152 153 162 157 158 156 158 159 158 158 159 158 159 160 157 159 158 159 159 157 156 155 157 154 156 156 156 155 156 156 156 154 156 154 156 161 157 157 158 163 166 160 159 158 158 158 158 159 158 158 159 157 157 159 161 162 166 166 161 164 165 161 164 166 164 166 164 164 163 162 164 164 164 163 141 141 142 141 141 142 146 144 142 142 142 140 142 140 141 142 144 143 157 158 158 158 159 158 158 159 158 157 158 159 157 158 157 158 157 156 161 163 166 165 164 161 165 158 161 162 163 160 161 160 163 161 165 162 166 166 165 166 165 168 164 164 166 166 167 165 167 168 168 167 166 166 156 156 156 158 158 155 156 160 158 157 156 155 156 155 158 157 154 156 165 166 166 166 166 164 170 165 166 169 165 168 164 165 166 167 166 167 156 158 157 160 156 156 154 156 161 155 154 157 158 154 157 155 156 156 161 158 165 159 161 159 160 160 164 158 159 159 159 159 163 160 160 158 94 94 105 108 107 109 117 114 98 99 100 96 92 93 95 94 94 97 92 93 93 109 110 115 124 121 107 93 93 95 95 94 94 94 94 95 93 102 98 120 111 125 108 119 106 99 94 91 94 92 94 93 93 95 133 131 133 131 136 131 134 132 132 134 130 130 131 131 133 132 131 134 146 144 146 146 147 147 147 145 147 147 143 146 144 146 148 147 146 147

[0045] Table 1. Grounding instability diff data under no-touch conditions.

[0046] 166 160 160 168 165 161 170 17 0 0 169 168 166 167 168 164 161 162 157 153 154 166 161 164 155 173 171 166 162 158 159 155 159 155 155 154 165 162 164 160 162 164 164 167 169 178 161 167 168 170 167 168 161 164 159 166 159 158 163 157 161 159 163 176 172 160 163 158 161 160 158 160 152 153 155 152 157 151 151 159 156 163 163 156 156 155 155 158 154 156 151 153 156 153 149 153 154 157 164 164 156 157 154 156 154 152 155 155 160 161 160 155 157 159 160 156 163 168 160 159 157 158 155 157 159 155 152 151 155 158 151 160 151 158 157 164 158 157 157 151 150 154 153 157 159 164 161 159 158 159 158 162 171 169 166 161 159 159 158 162 163 171 154 157 153 154 152 152 153 162 163 165 164 161 158 153 154 155 158 161 158 159 160 151 151 160 151 152 162 162 161 159 156 153 153 154 153 152 170 162 158 166 167 167 158 168 157 174 160 158 158 160 157 159 166 156 165 165 167 166 162 172 160 161 162 171 171 161 162 162 160 159 162 160 170 160 167 160 166 171 171 168 175 178 169 160 158 159 163 159 162 160 160 157 172 163 162 158 169 164 173 171 173 155 154 157 158 155 156 156 168 167 174 164 175 170 184 181 171 181 171 166 168 163 161 163 162 160 174 160 169 174 178 177 180 169 177 183 174 163 170 162 167 164 161 163 176 174 167 180 170 168 170 179 183 172 173 168 166 164 162 160 162 163 173 166 176 168 176 179 184 174 179 183 170 170 166 167 165 166 169 171 144 144 143 148 142 143 145 153 161 154 148 160 148 148 149 143 154 144 165 172 168 158 165 166 163 158 164 174 165 163 159 163 161 158 166 162 166 165 165 167 165 167 167 169 169 174 166 164 165 161 163 163 167 166 172 167 169 173 167 170 172 171 178 178 173 172 167 168 166 168 170 171 160 167 159 172 160 163 169 176 176 175 171 171 162 161 161 160 160 161 172 171 171 174 176 175 171 196 201 203 194 170 172 178 166 174 167 168 158 170 172 174 174 184 186 295 559 508 250 183 168 162 159 170 161 169 174 176 183 170 182 199 231 715 1115 1105 620 220 189 175 168 167 175 171 105 109 103 122 123 135 183 636 1062 1064 803 191 121 109 111 111 105 111 102 103 109 117 110 130 156 259 686 973 634 183 112 100 106 101 102 98 91 99 104 119 122 122 131 160 218 291 210 134 119 101 95 97 102 100 140 132 131 133 136 149 146 157 172 185 173 155 150 138 142 143 138 136 149 145 148 149 149 148 165 159 168 173 172 164 166 165 146 156 148 160

[0047] Table 2. Grounding instability DIFF data during one-finger touch.

[0048] Step 103: If the first data matrix satisfies the first preset condition, perform a first processing on the first data matrix to obtain a second data matrix.

[0049] Optionally, in this embodiment of the application, the first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies the second preset condition, wherein the trigger matrix is ​​determined based on the first data matrix.

[0050] Optionally, in this embodiment of the application, the trigger matrix is ​​used to characterize the degree of closeness between each row of data and the average value of that row of data. The trigger matrix can be determined based on the first data matrix and the average value matrix of the first data matrix.

[0051] For example, the trigger matrix mentioned above includes L groups of first elements, and each group of first elements includes R first elements, where L and R are both positive integers.

[0052] It should be noted that the first element group mentioned above can be a row of elements or a column of elements, which can be determined according to the actual situation. For example, the matrix includes L first element groups, that is, the matrix includes L rows of elements. Each element group includes R elements, that is, the matrix includes L rows and R columns of elements, which can also be written as l rows and r columns.

[0053] For example, the average matrix of the first data matrix is ​​formed by averaging the elements of each row of the first data matrix and then constructing a new matrix based on the average of the elements of each row and a matrix of all 1s. This new matrix can be denoted as A. lxr Furthermore, it is used to reflect the mean of each row of data in the first data matrix.

[0054] For example, the touch position determination device can obtain the trigger matrix based on the first data matrix and the average value matrix.

[0055] It should be noted that the specific implementation method of obtaining the trigger matrix based on the first data matrix is ​​described below and will not be repeated here.

[0056] Optionally, in this embodiment of the application, the second preset condition includes: the trigger matrix includes a first number of first element groups, and each of the first element groups includes a second number of first elements, and the absolute value of each of the second number of first elements is less than a first preset threshold.

[0057] Among them, the first value is greater than the second preset threshold, and the second value is greater than the third preset threshold.

[0058] For example, the first value mentioned above is used to indicate the quantity of the third element group. The first value can be a preset value, which can be determined based on experimental data.

[0059] It should be noted that, for ease of description, the first value can be denoted as C, the second value as M, the first preset threshold as D1, the second preset threshold as C1, and the third preset threshold as M1.

[0060] For example, in the first data matrix DIFF_Before lxr With the mean matrix A lxr The trigger matrix Δ is obtained by subtraction. lxr After that, the Δ can be... lxr Taking the absolute value of each element in the matrix yields the absolute value matrix |Δ of the trigger matrix. lxr |

[0061] Furthermore, the touch position determination device can use a cyclic algorithm to determine the matrix |Δ lxr Each element in the | is evaluated row by row, and the number of rows that meet the condition is counted using the variable count. Then, the |Δ is evaluated. lxr If, in a given row, M elements (i.e., the first element) have values ​​less than a first preset threshold D1, increment the count by 1, and increment the |Δ lxr The count obtained after evaluating all elements in the | is the C mentioned above.

[0062] Furthermore, if |Δ lxr If D < D1, M > M1, and count > C1, then the data in that frame of the first data matrix is ​​determined to be data in a grounding unstable state. It should be noted that in actual processing, parameters are usually introduced for calculation; D, M, and count are the parameters, and D1, M1, and C1 are the specific values ​​corresponding to these parameters.

[0063] It should be noted that, considering the relationship between the first data matrix and the trigger matrix, if there are more than C rows of elements in the first data matrix, all of which satisfy the condition that the absolute value of the difference between at least M elements in each row and the average value of their corresponding row is less than D1, then it is determined that the touch screen has an unstable grounding abnormality.

[0064] It should be noted that the above three parameters (i.e., the first preset threshold, the second preset threshold, and the third preset threshold) are key parameters for detecting unstable grounding of the touch screen display module. Among them, D1 represents the requirement for data consistency. The smaller the D1, the higher the requirement for consistency, and vice versa. C1 and M1 determine the ease with which a grounding instability scenario is detected. C1 represents the minimum number of rows required to meet consistency, and M1 indicates the number of elements in a row that meet data consistency. The larger the values ​​of C1 and M1, the less likely it is to be judged as a grounding instability scenario, and the smaller the values, the easier it is to be judged as a grounding instability scenario.

[0065] It should be noted that the three thresholds C1, D1, and M1 can be determined by experimental testing and verification based on the actual screen parameters.

[0066] In one optional embodiment, when the touchscreen receives a one-finger touch, the touch IC performs a row scan of the touchscreen's click matrix to obtain a raw data matrix (Rawdata) of 32 rows by 18 columns, and obtains a first data matrix (DIFF_Before) based on the Rawdata and the baseline data matrix (Baseline). lxr DIFF_Before lxr It is also a 32-row by 18-column matrix, then based on DIFF_Before lxr Sum of average matrix A lxr Obtain the trigger matrix Δ lxr and for Δ lxr Taking the absolute value of each element in the matrix yields the absolute value matrix |Δ of the trigger matrix. lxr |。As shown in Table 2, |Δ lxr Including 32 rows and 18 columns of diff data, when determining whether the touchscreen has grounding instability, C1 can be 5; D1 can be determined based on the reporting threshold, such as D1 being 40; M1 can be greater than 80% of the number of columns, such as M1 being 14. And in Δ... lxr If the above conditions are met, it can be determined that there is grounding instability, i.e., the touch screen is malfunctioning.

[0067] It should be noted that, in one optional embodiment, when the touch screen experiences grounding instability, the data characteristics of the data scanned by the touch IC are full-screen up. Therefore, the key to processing is to filter out the data changes caused by grounding instability, that is, to remove background noise.

[0068] Optionally, in this embodiment of the application, the first process described above can be a filtering process. For example, the first process may include any one of the following methods:

[0069] Method 1: Use the average and minimum values ​​to measure the noise floor and filter out the noise floor in the data.

[0070] For example, the touch position determination device can determine the average or minimum value of the first element in the first element group in the first data matrix, and use the average or minimum value of the first element in the first element group as an estimate of the noise floor of the first element group. Then, the noise floor is filtered out by a filter based on the estimate of the noise floor.

[0071] Specifically, taking a data matrix with l rows and r columns as an example, the touch position determination device can determine the minimum or average value of each row of data as the estimated value of the noise floor. Then, based on the determined estimated value of the noise floor of each row of data, a suitable filter is constructed to filter out the noise (i.e., the noise floor) in that row of data, and the noise-removed data matrix (i.e., the second data matrix mentioned above) is obtained.

[0072] Furthermore, the touch position determination device can identify at least one first element group from the R first element groups in the first data matrix that satisfies the second predetermined condition as the target element group. The target element group is an element group from the R first element groups that includes more than M1 elements with values ​​less than D1, that is, an element group that satisfies the data consistency requirement.

[0073] Furthermore, the average value of each target element group in at least one target element group can be determined as the estimated value of the noise floor of the corresponding target element group; and the minimum value of each element group in the R first element groups other than the target element group can be determined as the estimated value of the noise floor of the corresponding element group.

[0074] It should be noted that using the minimum value of this row as an estimate of the noise floor can preserve the original characteristics of the data and effectively avoid data changes caused by finger touch.

[0075] Method 2: Use the average value of the touch data to measure the background noise and filter out the background noise in the data.

[0076] For example, the touch position determination device can determine the average value of the elements in the first element group of the first data matrix that are within the threshold based on a preset threshold as the estimated value of the noise floor of the corresponding first element group, and then filter out the noise floor based on the estimated value of the noise floor.

[0077] Specifically, taking a data matrix with l rows and r columns as an example, the touch position determination device can preset a threshold value of n, then average the values ​​within the threshold, and use this average value as the estimated value. Finally, based on the determined estimated value of the background noise, a suitable filter is constructed to filter out the noise (i.e., background noise) in the data, and the noise-removed data matrix (i.e., the aforementioned second data matrix) is obtained.

[0078] Furthermore, the first data matrix is ​​filtered using method two, resulting in the following expression for the second data matrix:

[0079]

[0080] Among them, DIFF_New lxr Let l1 represent the second data matrix mentioned above, and l1 represent the first data matrix DIFF_Before. lxr The first element in the row, l r Represents the first data matrix DIFF_Before lxr The element in the l-th row of the array is n, where n is the threshold, and the mean function represents the average value of each row of elements.

[0081] For example, when a user touches a certain area on the touchscreen with their finger, if the touchscreen is in an unstable grounding state, the magnitude of the diff data obtained by the user to calculate the position of the user's touch point will increase. At this time, the touch position determination device can determine whether the touchscreen is in an unstable grounding state based on the initial diff data. If there is an unstable grounding state, it can remove the background noise caused by the unstable grounding in the initial diff data based on the above filtering algorithm, and obtain the correct touch point position based on the diff data after removing the background noise, thereby improving the accuracy of touch.

[0082] It should be noted that the noise floor measurement method in Method 2 consumes more computing resources but is more stable. In actual operation, the noise floor measurement method in Method 1 can be preferred. If abnormalities occur after experimentation, debugging and testing, the filtering method in Method 2 can be selected.

[0083] Based on Tables 1 and 2, Tables 3 and 4 show the data after processing the diff data obtained when the touchscreen is not touched, and the data after processing the diff data obtained when the touchscreen receives a touch.

[0084] -1 0 -1 -2 1 -1 -2 3 0 0 -2 -2 -3 -2 1 0 0 0 0 -4 -3 -1 -1 -3 -3 -3 -3 -3 -1 -3 -2 -2 -1 -1 -2 -1 0 -1 -1 -1 -1 -3 -1 3 -3 -2 -3 -1 -2 -1 -2 0 -2 -1 0 -5 -5 -4 -3 -2 -5 -2 -3 -3 6 -2 -6 -2 -1 -6 -4 -1 -1 1 0 1 0 1 2 -1 1 -3 0 -1 0 1 1 -1 -1 0 0 -2 -3 -3 1 -1 -3 -1 -2 4 1 -5 0 1 -1 2 -3 -1 -1 3 -2 -3 1 0 -1 0 1 0 0 -1 0 0 -1 1 -2 1 -1 1 0 -3 1 2 0 1 3 -2 -1 0 1 0 2 -1 1 1 -4 -3 -4 -3 -3 -5 -3 -3 0 -3 1 -3 -2 -2 -2 -3 -5 4 0 2 -1 0 -2 0 3 1 0 -2 2 -1 -2 4 0 0 -2 0 1 6 1 -1 0 4 -1 -1 0 -1 0 -1 -1 -2 0 -1 -1 -1 0 2 1 -1 0 0 0 -4 0 0 1 0 1 5 2 2 0 0 -1 0 -4 0 0 0 0 1 -1 1 3 0 2 1 1 1 -1 1 2 -1 -3 -2 -2 -3 -1 -3 -1 -1 -2 -2 -2 1 0 -2 -4 -3 2 -2 -4 -3 -2 0 -1 -2 -4 0 1 -1 -2 2 -2 -2 -3 -2 2 -3 -2 -4 -2 -1 -2 -2 -1 -2 -1 0 -3 -1 -2 -1 -1 -3 -1 -2 0 -3 -1 -1 -1 -2 -1 -1 -1 -3 -1 -3 -1 4 0 0 -2 3 6 0 -1 -2 -2 -2 -2 -1 -2 -2 -1 -3 -3 -1 1 2 1 1 -4 -1 0 -4 -1 1 -1 1 -1 -1 -2 -3 -1 -1 -1 -2 -1 -1 0 -1 -1 0 4 2 0 0 0 -2 0 -2 -1 0 2 1 0 1 1 1 2 1 1 2 1 0 1 2 0 1 0 1 0 -1 -1 1 4 3 2 -1 3 -4 -1 0 1 -2 -1 -2 1 -1 3 0 0 0 -1 0 -1 2 -2 -2 0 0 1 -1 1 2 2 1 0 0 0 0 0 2 2 -1 0 4 2 1 0 -1 0 -1 2 1 -2 0 -1 0 0 0 0 2 4 -1 0 3 -1 2 -2 -1 0 1 0 1 0 2 1 4 0 0 -2 0 5 -1 -2 1 2 -2 1 -1 0 0 1 -2 5 -1 1 -1 0 0 4 -2 -1 -1 -1 -1 3 0 0 -2 -2 -2 9 12 11 13 21 18 2 3 4 0 -4 -3 -1 -2 -2 1 -2 -1 -1 15 16 21 30 27 13 -1 -1 1 1 0 0 0 0 1 -1 8 4 26 17 31 14 25 12 5 0 -3 0 -2 0 -1 -1 1 -1 -3 -1 -3 2 -3 0 -2 -2 0 -4 -4 -3 -3 -1 -2 -3 0 -1 -3 -1 -1 0 0 0 -2 0 0 -4 -1 -3 -1 1 0 -1 0

[0085] Table 3. Processed diff data without touch input.

[0086] 0 -6 -6 2 -1 -5 4 4 4 3 3 2 0 1 2 -2 -5 -4 -3 -7 -6 6 1 4 -5 13 11 6 2 -2 -1 -5 -1 -5 -5 -6 -1 -4 -2 -6 -4 -2 -2 1 3 12 -5 1 2 4 1 2 -5 -2 -3 4 -3 -4 1 -5 -1 -3 1 14 10 -2 1 -4 -1 -2 -4 -2 -4 -3 -1 -4 1 -5 -5 3 0 7 7 0 0 -1 -1 2 -2 0 -4 -2 1 -2 -6 -2 -1 2 9 9 1 2 -1 1 -1 -3 0 0 1 2 1 -4 -2 0 1 -3 4 9 1 0 -2 -1 -4 -2 0 -4 -3 -4 0 3 -4 5 -4 3 2 9 3 2 2 -4 -5 -1 -2 2 -3 2 -1 -3 -4 -3 -4 0 9 7 4 -1 -3 -3 -4 0 1 9 -3 0 -4 -3 -5 -5 -4 5 6 8 7 4 1 -4 -3 -2 1 4 2 3 4 -5 -5 4 -5 -4 6 6 5 3 0 -3 -3 -2 -3 -4 8 0 -4 4 5 5 -4 6 -5 12 -2 -4 -4 -2 -5 -3 4 -6 1 1 3 2 -2 8 -4 -3 -2 7 7 -3 -2 -2 -4 -5 -2 -4 5 -5 2 -5 1 6 6 3 10 13 4 -5 -7 -6 -2 -6 -3 -5 -2 -5 10 1 0 -4 7 2 11 9 11 -7 -8 -5 -4 -7 -6 -6 -1 -2 5 -5 6 1 15 12 2 12 2 -3 -1 -6 -8 -6 -7 -9 4 -10 -1 4 8 7 10 -1 7 13 4 -7 0 -8 -3 -6 -9 -7 6 4 -3 10 0 -2 0 9 13 2 3 -2 -4 -6 -8 -10 -8 -7 1 -6 4 -4 4 7 12 2 7 11 -2 -2 -6 -5 -7 -6 -3 -1 -4 -4 -5 0 -6 -5 -3 5 13 6 0 12 0 0 1 -5 6 -4 1 8 4 -6 1 2 -1 -6 0 10 1 -1 -5 -1 -3 -6 2 -2 0 -1 -1 1 -1 1 1 3 3 8 0 -2 -1 -5 -3 -3 1 0 1 -4 -2 2 -4 -1 1 0 7 7 2 1 -4 -3 -5 -3 -1 0 -6 1 -7 6 -6 -3 3 10 10 9 5 5 -4 -5 -5 -6 -6 -5 -6 -7 -7 -4 -2 -3 -7 18 23 25 16 -8 -6 0 -12 -4 -11 -10 0 12 14 16 16 26 28 137 401 350 92 25 10 4 1 12 3 11 7 9 16 3 15 32 64 548 948 938 453 53 22 8 1 0 8 4 2 6 0 19 20 32 80 533 959 961 700 88 18 6 8 8 2 8 4 5 11 19 12 32 58 161 588 875 536 85 14 2 8 3 4 0 0 8 13 28 31 31 40 69 127 200 119 43 28 10 4 6 11 9 9 1 0 2 5 18 15 26 41 54 42 24 19 7 11 12 7 5 4 0 3 4 4 3 20 14 23 28 27 19 21 20 1 11 3 15

[0087] Table 4. Processed diff data during one-finger touch.

[0088] After filtering, the data in Tables 1 and 2 above Figures 3 to 6 This is a comparison chart of the diff data before and after the filtering algorithm.

[0089] Figure 3 (a) and Figure 3 (b) shows the comparison of diff data before and after filtering when the grounding is unstable (i.e., the touch screen is abnormal) and there is a touch state. Figure 4 (a) and Figure 4 (b) shows the comparison of diff data before and after filtering when the device is not grounded and unstable (i.e. the touch screen is normal) and is in a touch state. Figure 5 (a) and Figure 5 (b) shows the comparison of diff data before and after filtering when the grounding is unstable (i.e. the touch screen is normal) and there is no touch. Figure 6 (a) and Figure 6 (b) shows the comparison of diff data before and after filtering when the device is not grounded and unstable (i.e., the touch screen is normal) and there is no touch.

[0090] Step 104: Determine the coordinate information of the touch point corresponding to the touch input based on the second data matrix mentioned above.

[0091] Optionally, in this embodiment of the application, the second data matrix (i.e., the DIFF value matrix) can be processed by a touch algorithm to obtain the position coordinates of the touch point on the touch screen.

[0092] For example, the touch position determination device can use a centroid algorithm to map the processed DIFF value matrix to the touch screen (i.e., LCD) resolution to obtain the specific coordinate values ​​of the touch point.

[0093] In the touch position determination method provided in this application embodiment, after the touch device receives the user's touch input, it can obtain a first data matrix corresponding to the initial capacitance data of the screen. This first data matrix is ​​a matrix composed of the screen's capacitance data. If the first data matrix satisfies a first preset condition, it undergoes a first processing step to obtain a second data matrix. Finally, based on the second data matrix, the coordinate information of the touch point corresponding to the user's touch operation is determined. Through this method, in the event of screen abnormalities, such as unstable screen grounding, the touch position determination device can process the initial capacitance data of the touchscreen, for example, filtering out background noise in the initial capacitance data caused by screen abnormalities. This allows for the calculation of the correct touch point coordinates using the processed capacitance data, improving the reliability and accuracy of screen touch control.

[0094] Optionally, in the embodiments of this application, the first data matrix includes L groups of second elements, each group of second elements including at least one second element, where L is a positive integer.

[0095] For example, the process of step 102 above may include the following step 102a:

[0096] Step 102a: Determine the trigger matrix based on the first data matrix.

[0097] For example, the process of step 102a above includes the following step 102a1:

[0098] Step 102a1: Subtract the average value of each second element in the second element group from the average value of the second element group containing each second element to obtain the trigger matrix.

[0099] Wherein, the above-mentioned second element group is each of the above L second element groups.

[0100] It should be noted that the touch position determination device can obtain the trigger matrix by subtracting each second element in each of the L second element groups from the average value of the corresponding second element group.

[0101] For example, taking the data matrix with the above-mentioned L second elements as l rows and r columns as an example, the touch position determination device can calculate the average value of each row of elements in the data matrix, and then subtract the average value of the corresponding row from each element in each element (e.g., subtract the average value of the second row from each element in the second row) to obtain the above-mentioned trigger matrix.

[0102] For example, the process of step 102a1 above can be implemented through the following program operation process:

[0103] Specifically, the touch position determination device can calculate the average value of each row of elements in the first data matrix to obtain a new element corresponding to each row, and generate an L-row data matrix based on the new element.

[0104] Specifically, when i equals 1, it means calculating the average of the elements in the first row of the first data matrix to obtain the element corresponding to the first row; when i equals 2, it means calculating the average of the elements in the second row of the first data matrix to obtain the element corresponding to the second row; when i equals L, it means calculating the average of the elements in the Lth row of the first data matrix to obtain the element corresponding to the Lth row. After calculating row by row, an L-row data matrix including the average of each row can be obtained.

[0105] It should be noted that i is a variable used to traverse the entire first data matrix, and the value of i is greater than or equal to 1 and less than or equal to L.

[0106] Furthermore, the touch position determination device can multiply the aforementioned L-row data matrix and the r-row r-column all-1 matrix to generate an l-row r-column data matrix, namely the aforementioned first matrix, which can be called the average value matrix of the first data matrix.

[0107] Furthermore, the formula for calculating the average matrix based on the first data matrix and the all-ones matrix is ​​as follows:

[0108]

[0109] Where l is the number of rows in the first data matrix, and the all-1 matrix is ​​an r-row r-column matrix.

[0110] For example, the trigger matrix can be obtained by subtracting the first data matrix from the first matrix, and this trigger matrix can be denoted as Δ. lxr .

[0111] Furthermore, the formula for calculating the trigger matrix based on the first data matrix DIFF_Beforelxr and the average value matrix Alxr is as follows:

[0112]

[0113] Where r is the first data matrix DIFF_Before lxr The number of columns, A lxr Let Δ be the average matrix of the first data matrix. lxr The matrix is ​​an l-row, r-column matrix.

[0114] Optionally, in this embodiment of the application, the process of step 103 above may include the following steps 103a to 103c:

[0115] Step 103a: Subtract the average value of each second element in the first numerical second element group from the average value of the second element group to obtain the first numerical third element group.

[0116] Step 103b: Subtract the minimum value of each second element in the third group of second elements from the third group of second elements to obtain the third group of fourth elements.

[0117] It should be noted that the touch position determination device can subtract the average value of each second element group in the first numerical second element group in the first data matrix from the average value of each second element group in the first numerical second element group to obtain the first numerical third element group, and subtract the minimum value of each second element group in the third numerical second element group in the first data matrix from the minimum value of each second element group in the third numerical second element group to obtain the third numerical fourth element group.

[0118] Step 103c: Generate a second data matrix based on the first numerical value of the third element group and the second numerical value of the fourth element group.

[0119] Among them, the first numerical second element group is determined based on the first numerical first element group in the trigger matrix. The first numerical first element group and the first numerical second element group correspond one-to-one. The third numerical second element group is: the second element group in the first data matrix other than the first numerical second element group.

[0120] For example, let's take a second preset value of 15 as an example. Assuming that the elements in rows 1 to 18 of the trigger matrix (i.e., the first value is 18) satisfy data consistency, that is, the first value of the first element group in the trigger matrix is ​​the element in rows 1 to 18, then the first value of the second element group in the first data matrix is ​​the element in rows 1 to 18 of the first data matrix.

[0121] The exemplary steps 103a to 103c described above can be replaced by the following steps 103a1 to 103c1:

[0122] Step 103a1: If the j-th first element group among the L first element groups satisfies the third predetermined condition, determine R fourth elements based on each first element in the j-th first element group and the average value of the j-th first element group, so as to obtain the j-th fourth element group.

[0123] Step 103b1: If the j-th first element group does not meet the third predetermined condition, determine R fifth elements based on the minimum value of the j-th first element group to obtain the j-th fifth element group.

[0124] Step 103c1: Obtain the second data matrix as described above based on the fourth and / or fifth element groups.

[0125] For example, the third predetermined condition includes: the first element group includes a second number of first elements, and the absolute value of each of the first number of first elements is less than the first preset threshold.

[0126] For example, the touch position determination device determines each row of elements in the first data matrix row by row whether it satisfies a third predetermined condition, thereby performing corresponding filtering processing on each row of elements. Further, for at least one row of elements that satisfies the third predetermined condition, the average value of each element in that row is subtracted to obtain the processed element (i.e., the fourth element); for at least one row of elements that does not satisfy the third predetermined condition, the minimum value of each element in that row is subtracted to obtain the processed element (i.e., the fifth element). Finally, after processing all row elements, a processed data matrix is ​​generated based on the obtained processed elements.

[0127] It should be noted that, similar to i above, j is also a variable used to traverse the entire first data matrix. The value of j is greater than or equal to 1 and less than or equal to L.

[0128] Specifically, when j equals 1, it indicates whether the elements in the first row of the first data matrix satisfy the third predetermined condition. If they do, the average value of the elements in that row is subtracted from the elements in that row to obtain the processed element (i.e., the fourth element). If they do not satisfy the condition, the minimum value of the elements in that row is subtracted from the elements in that row to obtain the processed element (i.e., the fifth element). This process continues until j equals L, indicating whether the elements in the Lth row of the first data matrix satisfy the third predetermined condition. The subsequent processing is the same as when j equals 1. After checking and calculating each row, the processed elements for each row are obtained, and a new data matrix (i.e., the second data matrix) is generated based on these processed elements.

[0129] Furthermore, the first data matrix is ​​filtered to obtain the expression for the second data matrix, as follows:

[0130]

[0131] Among them, DIFF_New lxr Let l1 represent the second data matrix mentioned above, and l1 represent the first data matrix DIFF_Before. lxr The first element in the row, l r Represents the first data matrix DIFF_Before lxrThe element in the l-th row of the array is defined by the mean function, which takes the average value of the elements in the row, and the min function, which takes the minimum value of the elements in the row.

[0132] Further optionally, in the embodiments of this application, the second predetermined condition includes: the j-th first element group includes M first elements, and the value of each of the M first elements is less than a first preset threshold, and M is greater than a third preset threshold.

[0133] For example, the touch position determination device can determine at least one first element group from the L first element groups in the first data matrix that satisfies a second predetermined condition as a target element group. The target element group is an element group from the L first element groups that includes more than M1 elements with values ​​less than D1, that is, an element group that satisfies the data consistency requirement.

[0134] It should be noted that for element groups that meet the data consistency requirements, experimental tests show that the data obtained by measuring the noise floor using the above average value and then filtering is more accurate; for element groups that do not meet the data consistency requirements, experimental tests show that the data obtained by measuring the noise floor using the above minimum value and then filtering is more accurate.

[0135] The touch position determination method provided in this application determines whether each frame of diff data is in an unstable grounding state. If an unstable grounding state is detected, filtering is applied to remove grounding noise while retaining the data characteristics caused by touch. The filtered diff is then used to calculate touch coordinates, ensuring a robust and accurate calculation without random touch jumps or touchscreen malfunctions. This method effectively improves the poor user experience caused by unstable screen grounding due to improper assembly, drops, or aging.

[0136] It should be noted that the touch position determination method provided in this application embodiment can be executed by a touch position determination device or a control module within that touch position determination device for executing the touch position determination method. This application embodiment uses the execution of the touch position determination method by a touch position determination device as an example to illustrate the touch position determination device provided in this application embodiment.

[0137] This application provides a touch position determination device 600, such as... Figure 7As shown, the device 600 includes: a receiving module 601, an acquiring module 602, a processing module 603, and a determining module 604, wherein: the receiving module 601 is used to receive touch input from a user; the acquiring module 602 is used to acquire a first data matrix of the screen in response to the touch input received by the receiving module 601, the first data matrix being a matrix composed of capacitance data of the screen; the processing module 603 is used to perform a first processing on the first data matrix acquired by the acquiring module 602 to obtain a second data matrix when the first data matrix satisfies a first preset condition; the determining module 604 is used to determine the coordinate information of the touch point corresponding to the touch input based on the second data matrix obtained by the processing module 603; wherein the first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies a second preset condition, the trigger matrix being determined based on the first data matrix.

[0138] Optionally, in this embodiment of the application, the trigger matrix includes a first number of first element groups, and each of the first element groups includes a second number of first elements, and the absolute value of each of the second number of first elements is less than a first preset threshold; wherein, the first value is greater than a second preset threshold, and the second value is greater than a third preset threshold.

[0139] Optionally, in this embodiment of the application, the determining module 604 is further configured to determine the trigger matrix based on the first data matrix obtained by the obtaining module 602; specifically, the determining module 604 is configured to subtract the average value of each second element in the second element group from the average value of the second element group in which each second element is located to obtain the trigger matrix, wherein the second element group is each of the L second element groups.

[0140] Optionally, in this embodiment, the device 600 further includes: a generation module 605; the processing module 603 is specifically configured to subtract the average value of each second element in the first numerical second element group from the average value of the second element group to obtain a first numerical third element group; and the processing module 603 is specifically configured to subtract the minimum value of each second element in the third numerical second element group from the minimum value of the second element group to obtain a third numerical fourth element group; the generation module 605 is configured to generate a second data matrix based on the first numerical third element group and the third numerical fourth element group obtained by the processing module; wherein the first numerical second element group is determined based on the first numerical first element group in the trigger matrix, the first numerical first element group and the first numerical second element group correspond one-to-one, and the third numerical second element group is: the second element group in the first data matrix excluding the first numerical second element group.

[0141] In the touch position determination device provided in this application embodiment, after receiving the user's touch input, the touch device can obtain a first data matrix corresponding to the initial capacitance data of the screen. This first data matrix is ​​a matrix composed of the screen's capacitance data. If the first data matrix satisfies a first preset condition, it undergoes a first processing step to obtain a second data matrix. Finally, based on the second data matrix, the coordinate information of the touch point corresponding to the user's touch operation is determined. Through this method, in the event of screen abnormalities, such as unstable screen grounding, the touch position determination device can process the initial capacitance data of the touchscreen, for example, filtering out background noise in the initial capacitance data caused by screen abnormalities. This allows for the calculation of the correct touch point coordinates using the processed capacitance data, improving the reliability and accuracy of screen touch.

[0142] The touch position determination device in this application embodiment can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, mobile electronic devices can be mobile phones, tablets, laptops, PDAs, in-vehicle electronic devices, wearable devices, ultra-mobile personal computers (UMPCs), netbooks, or personal digital assistants (PDAs), etc., while non-mobile electronic devices can be servers, network attached storage (NAS), personal computers (PCs), televisions (TVs), ATMs, or self-service machines, etc. This application embodiment does not impose specific limitations.

[0143] The touch position determination device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.

[0144] The touch position determination device provided in this application embodiment can achieve... Figures 1 to 6 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.

[0145] Optional, such as Figure 8 As shown, this application embodiment also provides an electronic device 700, including a processor 701, a memory 702, and a program or instructions stored in the memory 702 and executable on the processor 701. When the program or instructions are executed by the processor 701, they implement the various processes of the above-described touch position determination method embodiment and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0146] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.

[0147] Figure 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.

[0148] The electronic device 100 includes, but is not limited to, components such as: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.

[0149] Those skilled in the art will understand that the electronic device 100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0150] The user input unit 107 is used to receive touch input from a user; the processor 110 is used to, in response to the touch input received by the user input unit 107, acquire a first data matrix of the screen, the first data matrix being a matrix composed of capacitance data of the screen; the processor 110 is used to, when the first data matrix satisfies a first preset condition, perform a first processing on the acquired first data matrix to obtain a second data matrix; the processor 110 is used to, based on the obtained second data matrix, determine the coordinate information of the touch point corresponding to the touch input; wherein the first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies a second preset condition, the trigger matrix being determined based on the first data matrix.

[0151] Optionally, in this embodiment of the application, the trigger matrix includes a first number of first element groups, and each of the first element groups includes a second number of first elements, and the absolute value of each of the second number of first elements is less than a first preset threshold; wherein, the first value is greater than a second preset threshold, and the second value is greater than a third preset threshold.

[0152] Optionally, in this embodiment of the application, the processor 110 is further configured to determine a trigger matrix based on the acquired first data matrix; specifically, the processor 110 is configured to subtract the average value of each second element in the second element group from the average value of the second element group in which each second element is located to obtain the trigger matrix, wherein the second element group is each of the L second element groups.

[0153] Optionally, in this embodiment, the processor 110 is specifically configured to subtract the average value of each second element in the first numerical second element group from the average value of the second element group to obtain a first numerical third element group; and the processor 110 is specifically configured to subtract the minimum value of each second element group in the third numerical second element group in the first data matrix from the minimum value of each second element group in the third numerical second element group to obtain a third numerical fourth element group; the processor 110 is configured to generate a second data matrix based on the obtained first numerical third element group and third numerical fourth element group; wherein the first numerical second element group is determined based on the first numerical first element group in the trigger matrix, the first numerical first element group and the first numerical second element group correspond one-to-one, and the third numerical second element group is: the second element group in the first data matrix excluding the first numerical second element group.

[0154] In the electronic device provided in this application embodiment, after receiving a user's touch input, the touch device can obtain a first data matrix corresponding to the initial capacitance data of the screen. This first data matrix is ​​a matrix composed of the screen's capacitance data. If the first data matrix satisfies a first preset condition, it undergoes a first processing step to obtain a second data matrix. Finally, based on the second data matrix, the coordinate information of the touch point corresponding to the user's touch operation is determined. Through this method, in the event of screen abnormalities, such as unstable screen grounding, the touch position determination device can process the initial capacitance data of the touchscreen, for example, filtering out background noise in the initial capacitance data caused by screen abnormalities. This allows for the calculation of the correct touch point coordinates using the processed capacitance data, improving the reliability and accuracy of screen touch control.

[0155] It should be understood that, in this embodiment, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042. The GPU 1041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, joysticks, etc., which will not be described in detail here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understandable that the aforementioned modem processor may not be integrated into the processor 110.

[0156] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described touch position determination method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.

[0157] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0158] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described touch position determination method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0159] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0160] This application provides a computer program product stored in a non-volatile storage medium. The program product is executed by at least one processor to implement the various processes of the above-described touch position determination method embodiment, and can achieve the same technical effect.

[0161] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

[0162] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this application.

[0163] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for determining a touch position, characterized in that, The method includes: Receives user touch input; In response to the touch input, a first data matrix of the screen is acquired, wherein the first data matrix is ​​a matrix composed of the capacitance data of the screen; If the first data matrix satisfies the first preset condition, the first data matrix is ​​subjected to a first processing to obtain a second data matrix; Based on the second data matrix, determine the coordinate information of the touch point corresponding to the touch input; The first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies the second preset condition, wherein the trigger matrix is ​​determined by calculating the difference between the first data matrix and the average value matrix of the first data matrix, and the second preset condition includes: The trigger matrix includes a first number of first element groups, and each of the first number of first element groups includes a second number of first elements, and the absolute value of each of the second number of first elements is less than a first preset threshold. Among them, the first value is greater than the second preset threshold, and the second value is greater than the third preset threshold.

2. The method according to claim 1, characterized in that, The first data matrix includes L groups of second elements, each group of second elements including at least one second element, where L is a positive integer. After obtaining the first data matrix of the screen, the method further includes: Determine the trigger matrix based on the first data matrix; Determining the trigger matrix based on the first data matrix includes: The trigger matrix is ​​obtained by subtracting the average value of the second element group from the average value of the second element group containing each second element. The second element group is each of the L second element groups.

3. The method according to claim 1, characterized in that, The step of performing a first processing on the first data matrix to obtain a second data matrix when the first data matrix satisfies a first preset condition includes: The difference between each second element in the first set of second elements and the average value of the second element group containing each second element is used to obtain the first set of third elements; and, The difference between each second element in the third set of second elements and the minimum value of the second element group containing each second element is used to obtain the third set of fourth elements. The second data matrix is ​​generated based on the first numerical third element group and the second numerical fourth element group; The first numerical second element group is determined based on the first numerical first element group in the trigger matrix. The first numerical first element group and the first numerical second element group correspond one-to-one. The third numerical second element group is the second element group in the first data matrix other than the first numerical second element group.

4. A touch position determination device, characterized in that, The device includes: a receiving module, an acquiring module, a processing module, and a determining module, wherein: The receiving module is used to receive the user's touch input; The acquisition module is used to acquire a first data matrix of the screen in response to the touch input received by the receiving module, wherein the first data matrix is ​​a matrix composed of the capacitance data of the screen; The processing module is used to perform a first processing on the first data matrix obtained by the acquisition module to obtain a second data matrix when the first data matrix meets a first preset condition. The determining module is used to determine the coordinate information of the touch point corresponding to the touch input based on the second data matrix obtained by the processing module. The first preset condition includes: the trigger matrix corresponding to the first data matrix satisfies the second preset condition, wherein the trigger matrix is ​​determined by calculating the difference between the first data matrix and the average value matrix of the first data matrix, and the second preset condition includes: The trigger matrix includes a first number of first element groups, and each of the first number of first element groups includes a second number of first elements, and the absolute value of each of the second number of first elements is less than a first preset threshold. Among them, the first value is greater than the second preset threshold, and the second value is greater than the third preset threshold.

5. The apparatus according to claim 4, characterized in that, The first data matrix includes L groups of second elements, each group of second elements includes at least one second element, where L is a positive integer; The determining module is further configured to determine a trigger matrix based on the first data matrix obtained by the obtaining module; The determining module is specifically used to subtract the average value of each second element in the second element group from the average value of the second element group in which each second element belongs, to obtain the trigger matrix, wherein the second element group is each of the L second element groups.

6. The apparatus according to claim 4, characterized in that, The device further includes: a generation module; The processing module is specifically used to subtract the average value of each second element in the first numerical group of second elements from the average value of the second element group containing each second element, thereby obtaining the first numerical group of third elements; and, The processing module is specifically used to subtract each second element in the third numerical second element group from the minimum value of the second element group containing each second element to obtain the third numerical fourth element group; The generation module is used to generate the second data matrix based on the first numerical third element group and the third numerical fourth element group obtained by the processing module; The first numerical second element group is determined based on the first numerical first element group in the trigger matrix. The first numerical first element group and the first numerical second element group correspond one-to-one. The third numerical second element group is the second element group in the first data matrix other than the first numerical second element group.

7. An electronic device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method for determining a touch position as described in any one of claims 1-3.

8. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method for determining a touch position as described in any one of claims 1-3.

Citation Information

Patent Citations

  • Touch panel controller, method for controlling touch panel and input device and electronic equipment using the same

    JP2013054563A