Touch sensing control system and method
By collecting and analyzing the capacitance changes of the touch screen sensing unit and identifying and adjusting the induction amount of the interference unit, the abnormal capacitance increase caused by electromagnetic interference is solved, and the accuracy of touch sensing is improved.
Patent Information
- Application Number
- CN202411655575.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-19
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-19
AI Technical Summary
The existing projection capacitive touch screen is susceptible to electromagnetic interference, causing abnormal increase in capacitance of the non-touch area sensing unit, reducing the control accuracy of touch sensing.
By collecting the induction amount of capacitances of each induction unit in the touched touch screen, the mutation value and offset gradient of each induction unit are determined, the interference unit is extracted, and the induction amount is linearly adjusted according to its linear mutation ratio, and the induction unit in the touch screen is updated to output the touch sensing result.
It effectively avoids abnormal capacitance increase of the non-touch area sensing unit and improves the control accuracy of touch sensing.
Smart Images

Figure CN119148883B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of touch screen technology, and more specifically, to a touch sensing control system and method. Background Art
[0002] A touch screen is a device that can detect user touch, allowing users to interact with electronic devices by directly touching the screen without using traditional physical buttons or a mouse. Since the sensing units in the touch screen produce capacitance mutations due to touch, these electrical signal changes are converted into operation data under the processing of the touch screen controller and transmitted to the processing system to perform corresponding operations.
[0003] Touch sensing control is the core technology of touch screens and is widely used in many fields, including consumer electronics (such as smart phones and tablets), self-service terminals, industrial control, medical equipment and smart homes. However, existing touch sensing control methods usually use projected capacitive touch screens, but projected capacitive touch screens are easily affected by electromagnetic interference (i.e., interference voltages from inside or outside are coupled to the touch screen device through capacitance). These interference voltages can cause charge movement in the touch screen, causing the system to be confused about the charge movement measurement when a finger touches the screen, resulting in an abnormal increase in the capacitance of the sensing unit in the non-touch area, thereby reducing the control accuracy of the touch sensing. Therefore, how to avoid the abnormal increase in the capacitance of the sensing unit in the non-touch area and thereby improve the control accuracy of the touch sensing has become a difficult problem faced by the industry. Summary of the invention
[0004] The present application provides a touch sensing control system and method, which can avoid the abnormal increase of the capacitance of the sensing unit in the non-touch area, thereby improving the control accuracy of the touch sensing.
[0005] In a first aspect, the present application provides a touch sensing control method, comprising the following steps:
[0006] Collecting the induction value of the capacitance of each sensing unit in the touch screen after being touched;
[0007] For each sensing unit, based on the sensing amount of the capacitance in the sensing unit, a sudden change amount of the capacitance in the sensing unit after the touch screen is touched is determined, all neighboring units of the sensing unit are acquired, and an offset gradient of the sensing amount between the sensing unit and all the neighboring units is determined, thereby obtaining multiple offset gradients;
[0008] Extracting multiple interference units from all the sensing units after the touch according to the mutation amount of each sensing unit and the offset gradient of each sensing unit;
[0009] Determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit;
[0010] Each sensing unit in the touch screen is updated according to the adjusted sensing amount of each interference unit, and a touch sensing result is output according to the sensing amount of each sensing unit in the touch screen after the update.
[0011] In some embodiments, determining the amount of sudden change in capacitance in the sensing unit after the touch screen is touched based on the amount of capacitance in the sensing unit specifically includes:
[0012] Obtaining a reference value of capacitance in the sensing unit;
[0013] The amount of sudden change of the capacitance in the sensing unit after the touch screen is touched is determined according to the sensing amount of the capacitance in the sensing unit and the reference value of the capacitance in the sensing unit.
[0014] In some embodiments, determining the offset gradient of the sensing quantity between the sensing unit and all neighboring units specifically includes:
[0015] Obtaining the induction amount of the capacitor in all neighboring units of the sensing unit;
[0016] The offset gradient of the induction quantity between the sensing unit and all the neighboring units is determined according to the induction quantity of the capacitor in the sensing unit and the induction quantity of the capacitor in each neighboring unit.
[0017] In some embodiments, extracting a plurality of interference units from all sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit specifically includes:
[0018] Obtaining a mutation threshold of the mutation amount;
[0019] Detecting all the sensing units after the touch according to the mutation threshold and the mutation amount of each sensing unit to obtain a plurality of mutation units;
[0020] Obtain the offset gradient of the sensing unit corresponding to each mutation unit;
[0021] Determine the gradient difference between every two mutation units through the offset gradient corresponding to each mutation unit;
[0022] Classify each mutation unit based on all gradient differences, and then obtain multiple mutation regions;
[0023] Dividing multiple interference regions from each mutation region according to the distribution characteristics of the induction quantity in each mutation region;
[0024] Corresponding interference units are extracted from each interference area, thereby obtaining a plurality of interference units.
[0025] In some embodiments, determining the linear mutation ratio of the capacitance in each interference unit specifically includes:
[0026] Selecting an interference unit as a selected interference unit;
[0027] Obtaining linear adjacent units of the selected interference unit;
[0028] Determining the linear mutation ratio of the capacitance in the selected interfering unit according to the mutation amount corresponding to the linear adjacent unit and the mutation amount corresponding to the selected interfering unit;
[0029] Continue to determine the linear mutation ratio of the capacitance in the remaining interference units.
[0030] In some embodiments, linearly adjusting the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit specifically includes:
[0031] Selecting an interference unit as a selected interference unit;
[0032] Determine the interference compensation amount of the selected interference unit according to the linear mutation ratio of the capacitance in the selected interference unit and the corresponding inductance of the selected interference unit;
[0033] Determine the adjusted induction of the selected interference unit by the interference compensation amount and the corresponding induction of the selected interference unit;
[0034] Continue to determine the adjusted induction of the remaining interference units.
[0035] In some embodiments, outputting the touch sensing result according to the sensing amount of each sensing unit in the updated touch screen specifically includes:
[0036] Set the touch threshold of the sensing unit in the touch screen;
[0037] Determine a plurality of touch units according to the sensing amount of each sensing unit in the updated touch screen and the touch threshold, and then use the area formed by all the touch units on the touch screen as the touch area;
[0038] The touch area is output as a touch sensing result of the touch screen.
[0039] In a second aspect, the present application provides a touch sensing control system, the touch sensing control system comprising:
[0040] The acquisition module is used to acquire the induction value of the capacitance of each sensing unit in the touch screen after being touched;
[0041] A processing module is used to determine, for each sensing unit, a sudden change amount of capacitance in the sensing unit after the touch screen is touched based on the sensing amount of capacitance in the sensing unit, obtain all neighboring units of the sensing unit, determine an offset gradient of the sensing amount between the sensing unit and all neighboring units, and then obtain multiple offset gradients;
[0042] The processing module is further used to extract multiple interference units from all the sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit;
[0043] The processing module is further used to determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit;
[0044] The execution module is used to update each sensing unit in the touch screen according to the adjusted sensing amount of each interference unit, and output the touch sensing result according to the sensing amount of each sensing unit in the touch screen after the update.
[0045] In a third aspect, the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned touch sensing control method when executing the computer program.
[0046] In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the above-mentioned touch sensing control method when executed by a processor.
[0047] The technical solution provided by the embodiments disclosed in this application has the following beneficial effects:
[0048] In the touch sensing control system and method provided by the present application, the sensing amount of the capacitance of each sensing unit in the touch screen after being touched is collected; for each sensing unit, the mutation amount of the capacitance in the sensing unit after the touch screen is touched is determined based on the sensing amount of the capacitance in the sensing unit, all neighboring units of the sensing unit are obtained, and the offset gradient of the sensing amount between the sensing unit and all the neighboring units is determined, thereby obtaining multiple offset gradients; multiple interference units are extracted from all the sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit; the linear mutation ratio of the capacitance in each interference unit is determined, and the sensing amount of the capacitance in each interference unit is linearly adjusted according to the linear mutation ratio of the capacitance in each interference unit to obtain the adjusted sensing amount of each interference unit; each sensing unit in the touch screen is updated according to the adjusted sensing amount of each interference unit, and the touch sensing result is output according to the sensing amount of each sensing unit in the updated touch screen.
[0049] It can be seen that in the present application, firstly, after collecting the induction amount of the capacitance of each sensing unit in the touch screen after being touched, the mutation amount of the capacitance in the sensing unit after the touch screen is touched is determined based on all the induction amounts, so as to distinguish the capacitance change of the actual touch area from the slight fluctuation in the non-touch area, and reduce the error of abnormal increase of the capacitance in the non-touch area. Secondly, by determining the difference degree between the induction amount of the capacitance in the sensing unit and all the neighboring units (i.e., the offset gradient), the sensing unit in the non-touch area that may be interfered by the outside world is identified, so as to avoid the touch misjudgment caused by electromagnetic interference. Then, according to the mutation amount of each sensing unit and the offset gradient of each sensing unit, the sensing unit whose capacitance shows significant abnormality is extracted from all the sensing units after being touched. Unit (i.e., interference unit) is selected to accurately locate the sensing unit of the touch area to avoid misjudgment. Again, the sensing amount of the capacitance in the selected interference unit is adjusted by the linear influence of electromagnetic interference on the sensing amount, that is, the sensing amount of the non-touch area is corrected, so that the touch control system can reduce the influence of the abnormal increase of the capacitance in the non-touch area when adjusting the interference area around the touch point. Finally, each sensing unit in the touch screen is updated according to the adjusted sensing amount of each interference unit, and the touch sensing result is output according to the sensing amount of each sensing unit in the updated touch screen. In summary, the solution of the present application can avoid the phenomenon of abnormal increase of the capacitance of the sensing unit in the non-touch area, thereby improving the control accuracy of touch sensing. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 is a flow chart of a touch sensing control method according to some embodiments of the present application;
[0051] Figure 2 is a schematic diagram of a process of detecting a sensing unit according to some embodiments of the present application;
[0052] Figure 3 is a schematic diagram of a process for determining a linear mutation ratio according to some embodiments of the present application;
[0053] Figure 4 is a schematic diagram of the structure of a touch sensing control system according to some embodiments of the present application;
[0054] Figure 5 It is an internal structure diagram of a computer device for implementing a touch sensing control method according to some embodiments of the present application. DETAILED DESCRIPTION
[0055] In order to better understand the technical solution in this embodiment, the technical solution in this embodiment will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0056] refer to Figure 1, which is a flow chart of a touch sensing control method according to some embodiments of the present application. The touch sensing control method 100 mainly includes the following steps:
[0057] In step 101, the induction value of the capacitance of each induction unit in the touch screen after being touched is collected.
[0058] In specific implementation, when the screen is touched, the present application applies voltage to all sensing units through a touch integrated circuit, thereby measuring the capacitance value of each sensing unit after the touch screen is touched, and using the capacitance value of each sensing unit after the touch occurs as the induction amount of the capacitance in the corresponding sensing unit.
[0059] It should be noted that the model of the touch integrated circuit described in the present application is FT5206, which has a built-in analog-to-digital converter, which can collect analog capacitance signals from each sensing unit and convert them into digital form. In addition, a plurality of sensing units are arranged on the touch screen, and the sensing units are capacitance sensing units. All the sensing units form a unit array, and each sensing unit can detect the capacitance change caused by touch. Preferably, when touching the screen, the user's finger will generate an electric field on the screen surface, thereby changing the capacitance value of the area, that is, the specific touch area of the user can be detected by the change in capacitance in the unit array.
[0060] In step 102, for each sensing unit, a sudden change in capacitance in the sensing unit after the touch screen is touched is determined based on the capacitance in the sensing unit, all neighboring units of the sensing unit are obtained, and an offset gradient of the capacitance between the sensing unit and all neighboring units is determined, thereby obtaining multiple offset gradients.
[0061] In some embodiments, determining the amount of sudden change in capacitance in the sensing unit after the touch screen is touched based on the amount of capacitance in the sensing unit can be implemented by the following steps:
[0062] Obtaining a reference value of capacitance in the sensing unit;
[0063] The amount of sudden change of the capacitance in the sensing unit after the touch screen is touched is determined according to the sensing amount of the capacitance in the sensing unit and the reference value of the capacitance in the sensing unit.
[0064] It should be noted that the reference value of the capacitance refers to the capacitance value in the sensing unit when the touch screen is not touched; the reference value is used to establish a reference state for comparison when a touch occurs; as a preferred embodiment, the capacitance value in the sensing unit when the touch screen is not touched can be collected by the touch integrated circuit as the reference value of the capacitance in the sensing unit, and in other embodiments, other methods can be used to determine it, which is not limited here.
[0065] It should be noted that the mutation amount of the capacitance represents the degree of deviation between the touch state of the sensing unit and the reference state after being touched. The larger the mutation amount, the higher the degree of deviation between the touch state of the sensing unit and the reference state after being touched, and the smaller the mutation amount, the lower the degree of deviation between the touch state of the sensing unit and the reference state after being touched. In specific implementation, determining the mutation amount of the capacitance in the sensing unit after the touch screen is touched by using the induction amount of the capacitance in the sensing unit and the reference value of the capacitance in the sensing unit can be implemented in the following manner, namely, taking the result of subtracting the reference value of the capacitance in the sensing unit from the induction amount of the capacitance in the sensing unit as the mutation amount of the capacitance in the sensing unit.
[0066] In specific implementation, all neighboring units of the sensing unit can be obtained in the following manner, namely: first, based on the 8-way search method in the prior art, 8 directions are obtained at the sensing unit, namely, directly above, directly below, directly left, directly right, upper left, lower left, upper right and lower right; then, a sensing unit adjacent to the sensing unit is selected in the corresponding direction as a neighboring unit of the sensing unit, thereby obtaining multiple neighboring units of the sensing unit. In other embodiments, the neighboring units can also be determined by other methods, which will not be repeated here.
[0067] In some embodiments, determining the offset gradient of the sensing quantity between the sensing unit and all neighboring units may be implemented by the following steps:
[0068] Obtaining the induction amount of the capacitor in all neighboring units of the sensing unit;
[0069] The offset gradient of the induction quantity between the sensing unit and all the neighboring units is determined according to the induction quantity of the capacitor in the sensing unit and the induction quantity of the capacitor in each neighboring unit.
[0070] It should be noted that the offset gradient described in the present application characterizes the degree of difference between the induction of the capacitor in the sensing unit and all the neighboring units. The larger the offset gradient, the higher the degree of difference between the induction of the capacitor in the sensing unit and all the neighboring units. The smaller the offset gradient, the lower the degree of difference between the induction of the capacitor in the sensing unit and all the neighboring units. As a preferred embodiment, the offset gradient of the induction between the sensing unit and all the neighboring units is determined according to the induction of the capacitor in the sensing unit and the induction of the capacitor in each neighboring unit. The following method can be used to implement the offset gradient, that is, first, determine the difference between the induction of the capacitor in the sensing unit and the induction of the capacitor in all the neighboring units, and then use the standard deviation of all the differences as the offset gradient of the induction between the sensing unit and all the neighboring units. In other embodiments, other methods can also be used to determine, which is not limited here.
[0071] In step 103, a plurality of interference units are extracted from all the sensing units after the touch according to the mutation amount of each sensing unit and the offset gradient of each sensing unit.
[0072] In some embodiments, extracting multiple interference units from all sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit can be implemented by the following steps:
[0073] Obtaining a mutation threshold of the mutation amount;
[0074] Detecting all the sensing units after the touch according to the mutation threshold and the mutation amount of each sensing unit to obtain a plurality of mutation units;
[0075] Obtain the offset gradient of the sensing unit corresponding to each mutation unit;
[0076] Determine the gradient difference between every two mutation units through the offset gradient corresponding to each mutation unit;
[0077] Classify each mutation unit based on all gradient differences, and then obtain multiple mutation regions;
[0078] Dividing multiple interference regions from each mutation region according to the distribution characteristics of the induction quantity in each mutation region;
[0079] Corresponding interference units are extracted from each interference area, thereby obtaining a plurality of interference units.
[0080] As a preferred embodiment, the average value of the baseline value of the capacitance in all sensing units can be determined, and the result obtained can be multiplied by 2 as the mutation threshold of the mutation amount described in the present application. In other embodiments, other methods can be used to determine it, which is not limited here.
[0081] For specific implementation, refer to Figure 2 As shown, this figure is a schematic diagram of the process of detecting the sensing unit shown in some embodiments of the present application. According to the mutation threshold and the mutation amount of each sensing unit, all the sensing units after the touch are detected, and multiple mutation units can be obtained in the following manner, namely: first, a sensing unit is selected as the selected sensing unit from all the sensing units after the touch, and then, when the mutation amount of the selected sensing unit is greater than or equal to the mutation threshold, the selected sensing unit is used as the mutation unit, and when the mutation amount of the selected sensing unit is less than the mutation threshold, no processing is performed, and the remaining sensing units in all the sensing units after the touch continue to be selected sensing units, thereby obtaining multiple mutation units. In addition, it should be noted that the mutation unit in the present application has a unique corresponding sensing unit, and the sensing unit has a unique corresponding offset gradient. Therefore, the mutation unit has a unique corresponding offset gradient.
[0082] It should be noted that the mutation unit described in the present application refers to a sensing unit in the touch screen where the mutation amount of capacitance exceeds a set threshold. The mutation unit represents a unit that is significantly affected in a touch event, that is, the mutation unit represents a sensing unit where touch or interference occurs.
[0083] It should be noted that the gradient difference reflects the difference in the degree of change between two mutation units. The larger the gradient difference, the greater the difference in the degree of change between the two mutation units, and the smaller the gradient difference, the smaller the difference in the degree of change between the two mutation units. As a preferred embodiment, the gradient difference between each two mutation units can be determined by the offset gradient corresponding to each mutation unit in the following manner, namely: the absolute value of the difference between the offset gradients corresponding to each two mutation units is used as the gradient difference between the corresponding two mutation units, thereby obtaining the gradient difference between each two mutation units.
[0084] It should be noted that the mutation area represents an area on the touch screen where a touch event or obvious interference may exist. In specific implementation, each mutation unit is classified based on all gradient differences, and then a plurality of mutation areas are obtained. The following method can be used to implement the classification: first, a maximum gradient difference and a minimum gradient difference are obtained from all gradient differences. Then, after taking the maximum gradient difference and the minimum gradient difference as input, a normalization algorithm in the prior art is used to map all gradient differences between [0, 1], thereby obtaining a mapping value of each gradient difference. Subsequently, 1 is subtracted from the value of each gradient difference, and then the results corresponding to all gradient differences are used as the similarity index between every two mutation units. Then, a K-means clustering algorithm in the prior art is used, and the results corresponding to all gradient differences are used as input to obtain a plurality of clusters composed of mutation units. Then, the area composed of all mutation units in the cluster in the touch screen is used as the mutation area in the present application, thereby obtaining a plurality of mutation areas. In other embodiments, other methods can also be used for determination, which is not limited here.
[0085] In specific implementation, multiple interference regions are divided from each mutation region by the distribution characteristics of the induction quantity in each mutation region, which can be achieved in the following manner, namely: first, a mutation region is selected as the selected mutation region, and then the induction quantities of all mutation units in the selected mutation region are plotted as a histogram (the histogram is: the distribution characteristics of the induction quantity in the selected mutation region), and secondly, the peak value of the induction quantity is extracted from the histogram using the peak detection algorithm in the prior art, and finally, when the peak value of the histogram is greater than 1, the selected mutation region is used as the interference region, when the peak value of the histogram is equal to 1, the selected mutation region is used as the trigger region, and when the peak value of the histogram is equal to 0, no processing is performed, thereby dividing multiple interference regions in each mutation region.
[0086] It should be noted that the interference area described in this application refers to a mutation area that does not conform to the distribution of the sensing amount during touch. When a touch occurs, the sensing amount in the mutation area is distributed with only one obvious peak. This application obtains multiple interference areas by identifying the mutation area that does not conform to the distribution of the sensing amount during touch through histogram analysis and peak detection algorithm.
[0087] It should be noted that the interference unit refers to a mutation unit in which the induction of the capacitor shows a significant abnormality in the interference area. In some preferred embodiments, the mutation unit with the largest induction in the interference area is selected as the interference unit, that is, the mutation unit is most strongly affected. As a preferred embodiment, the corresponding interference units are extracted from each interference area, and then a plurality of interference units are obtained. The following method can be used to achieve this, namely, first, an interference area is selected as the selected interference area, and then, the induction corresponding to all mutation units in the selected interference area is obtained, and then, the mutation unit corresponding to the maximum induction is used as the interference unit of the selected interference area, and the interference units of the remaining interference areas are continued to be determined.
[0088] In step 104, the linear mutation ratio of the capacitor in each interference unit is determined, and the inductance of the capacitor in each interference unit is linearly adjusted according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit.
[0089] In some embodiments, reference Figure 3 As shown, this figure is a schematic diagram of a process for determining a linear mutation ratio shown in some embodiments of the present application. The linear mutation ratio of the capacitor in each interference unit can be determined by the following steps:
[0090] First, in 1041, an interference unit is selected as a selected interference unit;
[0091] Then, in 1042, a linear neighboring unit of the selected interference unit is obtained;
[0092] Then, in 1043, the linear mutation ratio of the capacitance in the selected interference unit is determined according to the mutation amount corresponding to the linear adjacent unit and the mutation amount corresponding to the selected interference unit;
[0093] Finally, in 1044, the linear mutation ratio of the capacitance in the remaining interference units is continued to be determined.
[0094] It should be noted that the linear adjacent unit is used to linearly evaluate the capacitance change associated with the selected interference unit, so as to more accurately determine the impact of the interference; as a preferred embodiment, in the interference area corresponding to the selected interference unit, the nearest mutation unit in the relative direction between the selected interference unit and the trigger area can be used as the linear adjacent unit of the selected interference unit. In other embodiments, other methods can also be used to determine it, which is not limited here.
[0095] It should be noted that the linear mutation ratio described in the present application refers to the degree of change in the inductance of the selected interference unit and the inductance of the linear adjacent unit corresponding to the selected interference unit after the electromagnetic interference. The greater the interference cost, the higher the degree of change in the inductance of the selected interference unit relative to the inductance of its linear adjacent unit, and the smaller the interference cost, the lower the degree of change in the inductance of the selected interference unit relative to the inductance of its linear adjacent unit; as a preferred embodiment, determining the linear mutation ratio of the capacitance in the selected interference unit based on the mutation amount corresponding to the linear adjacent unit and the mutation amount corresponding to the selected interference unit can be achieved in the following manner, namely: taking the ratio of the mutation amount corresponding to the linear adjacent unit to the mutation amount corresponding to the selected interference unit as the linear mutation ratio of the capacitance in the selected interference unit.
[0096] In some embodiments, the inductance of the capacitor in each interference unit is linearly adjusted according to the linear mutation ratio of the capacitor in each interference unit, and the adjusted inductance of each interference unit can be obtained by the following steps:
[0097] Selecting an interference unit as a selected interference unit;
[0098] Determine the interference compensation amount of the selected interference unit according to the linear mutation ratio of the capacitance in the selected interference unit and the corresponding inductance of the selected interference unit;
[0099] Determine the adjusted induction of the selected interference unit by the interference compensation amount and the corresponding induction of the selected interference unit;
[0100] Continue to determine the adjusted induction of the remaining interference units.
[0101] In specific implementation, the interference compensation amount of the selected interference unit can be determined according to the linear mutation ratio of the capacitance in the selected interference unit and the corresponding inductance of the selected interference unit. That is, first, 1 is subtracted from the linear mutation ratio of the capacitance in the selected interference unit, and then the result is multiplied by the corresponding inductance of the selected interference unit as the interference compensation amount of the selected interference unit. In other embodiments, other methods can also be used to determine it, which will not be repeated here.
[0102] In specific implementation, the adjusted induction quantity of the selected interference unit can be determined by the interference compensation quantity and the corresponding induction quantity of the selected interference unit in the following manner, namely: the result of subtracting the interference compensation quantity from the corresponding induction quantity of the selected interference unit is used as the adjusted induction quantity of the selected interference unit.
[0103] It should be noted that the linear adjustment described in this application refers to adjusting the induction value of the capacitor in the selected interference unit through the linear influence of electromagnetic interference on the induction value. This application adjusts the induction value caused by electromagnetic interference to be closer to the true value through the interference compensation amount, thereby ensuring the accuracy of subsequent touch detection.
[0104] In step 105, each sensing unit in the touch screen is updated according to the adjusted sensing amount of each interference unit, and a touch sensing result is output according to the updated sensing amount of each sensing unit in the touch screen.
[0105] In some embodiments, outputting the touch sensing result according to the sensing amount of each sensing unit in the updated touch screen can be achieved by using the following steps:
[0106] Set the touch threshold of the sensing unit in the touch screen;
[0107] Determine a plurality of touch units according to the sensing amount of each sensing unit in the updated touch screen and the touch threshold, and then use the area formed by all the touch units on the touch screen as the touch area;
[0108] The touch area is output as a touch sensing result of the touch screen.
[0109] In specific implementation, after determining the average value and standard deviation of the reference values of the capacitances in all the sensing units, the result of adding the average value to twice the standard deviation is used as the touch threshold of the sensing unit in the touch screen. In other embodiments, other methods may be used to determine the touch threshold, which is not limited here.
[0110] In a specific implementation, determining multiple touch units based on the sensing amount of each sensing unit in the updated touch screen and the touch threshold can be implemented in the following manner, namely: selecting a sensing unit, and when the sensing amount of the sensing unit in the updated touch screen is greater than or equal to the touch threshold, the sensing unit is used as a touch unit, and when the sensing amount of the sensing unit in the updated touch screen is less than the touch threshold, no processing is performed, thereby obtaining multiple touch units.
[0111] It should be noted that, after extracting features from the touch area (for example, obtaining the center position of the touch area and obtaining the number of sensing units covered by the touch area), the present application organizes the identified touch area and its features into a predefined format (for example, JSON format), thereby outputting the organized touch area information to the system, and then displaying the touch area in the user interface, and triggering a response event or function, that is, performing related operations (such as clicking, sliding, etc.) according to the identified touch area, that is, outputting the touch area as the touch sensing result of the touch screen.
[0112] In addition, in another aspect of the present application, in some embodiments, the present application provides a touch sensing control system, referring to Figure 4 , which is a schematic diagram of the structure of a touch sensing control system according to some embodiments of the present application, the touch sensing control system 200 includes: an acquisition module 201, a processing module 202 and an execution module 203, which are described as follows:
[0113] The acquisition module 201 in the present application is mainly used to collect the induction value of the capacitance of each sensing unit in the touch screen after being touched;
[0114] The processing module 202 in the present application is mainly used to determine, for each sensing unit, based on the sensing amount of the capacitance in the sensing unit after the touch screen is touched, obtain all neighboring units of the sensing unit, determine the offset gradient of the sensing amount between the sensing unit and all the neighboring units, and then obtain multiple offset gradients;
[0115] In addition, the processing module 202 in the present application is also used to extract multiple interference units from all the sensing units after the touch according to the mutation amount of each sensing unit and the offset gradient of each sensing unit;
[0116] In addition, the processing module 202 in the present application is also used to determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit;
[0117] Execution module 203, in the present application, execution module 203 is mainly used to determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit.
[0118] In addition, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned touch sensing control method.
[0119] In some embodiments, reference Figure 5 , which is an internal structure diagram of a computer device implementing a touch sensing control method according to some embodiments of the present application. The touch sensing control method in the above embodiments can be Figure 5 The computer device 300 shown in the figure is implemented, and the computer device 300 includes at least one processor 301, a communication bus 302, a memory 303 and at least one communication interface 304.
[0120] The processor 301 may be a general-purpose central processing unit (CPU), or an application-specific integrated circuit (ASIC) or one or more processors for controlling the execution of the touch sensing control method of the present application.
[0121] The communication bus 302 is used to transmit information between the above components.
[0122] The memory 303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 303 may exist independently and be connected to the processor 301 via the communication bus 302. The memory 303 may also be integrated with the processor 301.
[0123] The memory 303 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the program code stored in the memory 303. The program code may include one or more software modules. The touch sensing control method in the above embodiment can be implemented by the processor 301 and one or more software modules in the program code in the memory 303.
[0124] The communication interface 304 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0125] In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
[0126] The above-mentioned computer device may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.
[0127] In addition, the present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned touch sensing control method is implemented.
[0128] In summary, in the touch sensing control method and system disclosed in the embodiments of the present application, the sensing amount of the capacitance of each sensing unit in the touch screen after being touched is collected; for each sensing unit, the mutation amount of the capacitance in the sensing unit after the touch screen is touched is determined based on the sensing amount of the capacitance in the sensing unit, all neighboring units of the sensing unit are obtained, and the offset gradient of the sensing amount between the sensing unit and all the neighboring units is determined, thereby obtaining multiple offset gradients; multiple interference units are extracted from all the sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit; the linear mutation ratio of the capacitance in each interference unit is determined, and the sensing amount of the capacitance in each interference unit is linearly adjusted according to the linear mutation ratio of the capacitance in each interference unit to obtain the adjusted sensing amount of each interference unit; each sensing unit in the touch screen is updated according to the adjusted sensing amount of each interference unit, and the touch sensing result is output according to the sensing amount of each sensing unit in the updated touch screen; the abnormal increase of the capacitance of the sensing unit in the non-touch area can be avoided, thereby improving the control accuracy of touch sensing.
[0129] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0130] Obviously, those skilled in the art may make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A touch sensing control method, characterized in that: The steps include: Collecting the induction value of the capacitance of each sensing unit in the touch screen after being touched; For each sensing unit, based on the sensing amount of the capacitance in the sensing unit, a sudden change amount of the capacitance in the sensing unit after the touch screen is touched is determined, all neighboring units of the sensing unit are acquired, and an offset gradient of the sensing amount between the sensing unit and all the neighboring units is determined, thereby obtaining multiple offset gradients; Extracting multiple interference units from all the sensing units after the touch according to the mutation amount of each sensing unit and the offset gradient of each sensing unit; Determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit; updating each sensing unit in the touch screen according to the adjusted sensing amount of each interference unit, and outputting a touch sensing result according to the sensing amount of each sensing unit in the touch screen after the update; Wherein, determining the sudden change amount of the capacitance in the sensing unit after the touch screen is touched based on the sensing amount of the capacitance in the sensing unit specifically includes: Obtaining a reference value of capacitance in the sensing unit; Determine the sudden change amount of the capacitance in the sensing unit after the touch screen is touched according to the sensing amount of the capacitance in the sensing unit and the reference value of the capacitance in the sensing unit; The method of determining the offset gradient of the sensing quantity between the sensing unit and all neighboring units specifically includes: Obtaining the induction amount of the capacitor in all neighboring units of the sensing unit; Determine the offset gradient of the induction quantity between the sensing unit and all the neighboring units according to the induction quantity of the capacitor in the sensing unit and the induction quantity of the capacitor in each neighboring unit; Wherein, determining the linear mutation ratio of the capacitance in each interference unit specifically includes: Selecting an interference unit as a selected interference unit; Obtaining linear adjacent units of the selected interference unit; Determining the linear mutation ratio of the capacitance in the selected interfering unit according to the mutation amount corresponding to the linear adjacent unit and the mutation amount corresponding to the selected interfering unit; Continue to determine the linear mutation ratio of the capacitance in the remaining interference units.
2. The method according to claim 1, characterized in that Extracting multiple interference units from all the sensing units after the touch according to the mutation amount of each sensing unit and the offset gradient of each sensing unit specifically includes: Obtaining a mutation threshold of the mutation amount; Detecting all the sensing units after the touch according to the mutation threshold and the mutation amount of each sensing unit to obtain a plurality of mutation units; Obtain the offset gradient of the sensing unit corresponding to each mutation unit; Determine the gradient difference between every two mutation units through the offset gradient corresponding to each mutation unit; Classify each mutation unit based on all gradient differences, and then obtain multiple mutation regions; Dividing multiple interference regions from each mutation region according to the distribution characteristics of the induction quantity in each mutation region; Corresponding interference units are extracted from each interference area, thereby obtaining a plurality of interference units.
3. The method according to claim 1, characterized in that According to the linear mutation ratio of the capacitor in each interference unit, the inductance of the capacitor in each interference unit is linearly adjusted to obtain the adjusted inductance of each interference unit specifically including: Selecting an interference unit as a selected interference unit; Determine the interference compensation amount of the selected interference unit according to the linear mutation ratio of the capacitance in the selected interference unit and the corresponding inductance of the selected interference unit; Determine the adjusted induction of the selected interference unit by the interference compensation amount and the corresponding induction of the selected interference unit; Continue to determine the adjusted induction of the remaining interference units.
4. The method according to claim 1, characterized in that The touch sensing result output according to the sensing amount of each sensing unit in the updated touch screen specifically includes: Set the touch threshold of the sensing unit in the touch screen; Determine a plurality of touch units according to the sensing amount of each sensing unit in the updated touch screen and the touch threshold, and then use the area formed by all the touch units on the touch screen as the touch area; The touch area is output as a touch sensing result of the touch screen.
5. A touch sensing control system, which uses the method according to any one of claims 1 to 4 to perform touch sensing control, characterized in that: The system includes: The acquisition module is used to acquire the induction value of the capacitance of each sensing unit in the touch screen after being touched; A processing module is used to determine, for each sensing unit, a sudden change amount of capacitance in the sensing unit after the touch screen is touched based on the sensing amount of capacitance in the sensing unit, obtain all neighboring units of the sensing unit, determine an offset gradient of the sensing amount between the sensing unit and all neighboring units, and then obtain multiple offset gradients; The processing module is further used to extract multiple interference units from all the sensing units after being touched according to the mutation amount of each sensing unit and the offset gradient of each sensing unit; The processing module is further used to determine the linear mutation ratio of the capacitor in each interference unit, and linearly adjust the inductance of the capacitor in each interference unit according to the linear mutation ratio of the capacitor in each interference unit to obtain the adjusted inductance of each interference unit; The execution module is used to update each sensing unit in the touch screen according to the adjusted sensing amount of each interference unit, and output the touch sensing result according to the sensing amount of each sensing unit in the touch screen after the update.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the touch sensing control method according to any one of claims 1 to 4 are implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the touch sensing control method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Touch screen interference processing method
CN110058733A
Touch screen interference processing method based on clustering algorithm, touch screen and electronic equipment
CN110058734A