Touch detection method, device, electronic device and readable storage medium

By performing target reduction processing on the sampling value of the capacitance sensing node, the effective touch area is determined, which solves the problem of inaccurate judgment of the touch area category due to weak sampling signals of the capacitance sensing node, and improves the accuracy of detection.

CN115808990BActive Publication Date: 2025-05-23SHENZHEN HONGHE INNOVATION INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211631452.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-19
Publication Date
2025-05-23
Estimated Expiration
2042-12-19

AI Technical Summary

Technical Problem

When detecting touch operations, the sampling signal corresponding to the capacitance sensing node is weak, which can easily lead to inaccurate judgment of the type of touch area.

Method used

By performing target restore processing on the sampled value of the capacitance sensing node of the touch display screen, the target value of the capacitance sensing node in each touch area is determined, and the effective touch area is determined based on the preset touch threshold value and the peak point of the target value in each touch area.

Benefits of technology

Improve the accuracy of judging the category of the touch area, reduce the possibility of discarding sampled values, and avoid missing sampled values ​​and detection omissions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115808990B_ABST
    Figure CN115808990B_ABST
Patent Text Reader

Abstract

The present application discloses a touch detection method, device, electronic device and readable storage medium. The touch detection method includes: determining at least one touch area according to the sampling value of the capacitive sensing node of the touch display screen; performing target restoration processing on the sampling value in the touch area according to the sampling value of each touch area and the position information of each touch area to determine the target value of the capacitive sensing node in each touch area; determining the peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area; determining the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area. According to the embodiment of the present application, the accuracy of determining whether the touch area is a valid touch area can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of touch technology, and in particular, relates to a touch detection method, device, electronic device and readable storage medium. Background Art

[0002] As an important component of human-computer interaction, touch screens have been widely used in electronic products such as mobile phones and interactive tablets. Common touch screens include capacitive touch screens, which detect changes in capacitance through several capacitive sensing nodes. When there is a touch, the capacitance value of the capacitive sensing node at the corresponding position will change, generating a corresponding touch event.

[0003] Currently, when detecting a touch operation, the sampling signal corresponding to the capacitive sensing node is weak and will be directly discarded, which may easily lead to inaccurate judgment of the category of the touch area. Summary of the invention

[0004] Embodiments of the present application provide a touch detection method, device, electronic device, and readable storage medium, which can improve the accuracy of determining whether a touch area is a valid touch area.

[0005] In a first aspect, an embodiment of the present application provides a touch detection method, including:

[0006] Determining at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen;

[0007] According to the sampling value of each touch area and the position information of each touch area, target restoration processing is performed on the sampling value in the touch area to determine the target value of the capacitive sensing node in each touch area;

[0008] Determine a peak point of the target value within each touch area according to the target value of the capacitive sensing node in each touch area;

[0009] The effective touch area is determined according to the preset touch threshold and the peak point of the target value in each touch area.

[0010] In a second aspect, an embodiment of the present application provides a touch detection device, comprising:

[0011] A processing module, configured to determine at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen;

[0012] A determination module, configured to perform target restoration processing on the sampled values ​​in the touch area according to the sampled values ​​of each touch area and the position information of each touch area, so as to determine the target value of the capacitive sensing node in each touch area;

[0013] The determination module is further used to determine the peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area;

[0014] The determination module is further used to determine the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area.

[0015] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the touch detection method described in the first aspect or any implementable manner of the first aspect is implemented.

[0016] In a fourth aspect, the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the touch detection method described in the first aspect or any implementable manner of the first aspect is implemented.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the touch detection method as described in the first aspect or any implementable manner of the first aspect.

[0018] The touch detection method, device, electronic device and readable storage medium of the embodiment of the present application can determine the area of ​​the touch display screen that is touched according to the sampling value of the capacitive sensing node of the touch display screen, and the number of the touch areas includes at least one. Next, the sampled values ​​in the touch area can be subjected to target restoration processing according to the sampling value of each touch area and the position information of each touch area to determine the target value of the capacitive sensing node in each touch area; in this way, the corresponding sampled value target restoration processing is determined by the sampling value of each touch area and the position information of each touch area, and different restoration processing can be performed for different touch areas to reduce the discarding of sampled values, avoid missing sampled values, and detect omissions, which is conducive to improving the accuracy of determining the effective touch area. Afterwards, the peak point of the target value in each touch area can be determined according to the target value of the capacitive sensing node in each of the touch areas; the effective touch area is determined according to the preset touch threshold and the peak point of the target value in each touch area, which improves the accuracy of determining the category of each touch area. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0020] Figure 1 is a flow chart of a touch detection method provided in an embodiment of the present application;

[0021] Figure 2 is a schematic diagram of a touch area provided in an embodiment of the present application;

[0022] Figure 3 is a schematic diagram of another touch area provided in an embodiment of the present application;

[0023] Figure 4 is a schematic diagram of another touch area expansion provided by an embodiment of the present application;

[0024] Figure 5 is a schematic diagram of a region expansion provided in an embodiment of the present application;

[0025] Figure 6 is a schematic diagram of another area expansion provided in an embodiment of the present application;

[0026] Figure 7 is a structural schematic diagram of a touch detection device provided in an embodiment of the present application;

[0027] Figure 8 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0030] As an important component of human-computer interaction, touch screens have been widely used in electronic products such as mobile phones and interactive tablets. Common touch screens include capacitive touch screens, which detect changes in capacitance through several capacitive sensing nodes. When there is a touch, the capacitance value of the capacitive sensing node at the corresponding position will change, generating a corresponding touch event.

[0031] Currently, when detecting a touch operation, the sampling signal corresponding to the capacitive sensing node is weak and will be directly discarded, which may easily lead to inaccurate judgment of the category of the touch area.

[0032] To address this, embodiments of the present application provide a touch detection method, device, and electronic device, which can improve the accuracy of determining the category of a touch area.

[0033] The touch detection method provided in the embodiments of the present application is introduced below with reference to the accompanying drawings. Figure 1 FIG. 1 is a flow chart of a touch detection method provided by an embodiment of the present application. Figure 1 As shown, the method may include steps 110 to 140.

[0034] Step 110: determining at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen.

[0035] Step 120 , performing target restoration processing on the sampled values ​​in each touch area according to the sampled values ​​of each touch area and the position information of each touch area, so as to determine the target value of the capacitive sensing node in each touch area.

[0036] Step 130 , determining a peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area.

[0037] Step 140: determining a valid touch area according to a preset touch threshold and a peak point of a target value in each touch area.

[0038] Specifically, the touch display screen may be a capacitive touch device, and the touch display screen corresponds to multiple capacitive elements, each of which may serve as a capacitive sensing node. When the touch display screen receives a touch input, the capacitance of the capacitive element corresponding to the capacitive sensing node that receives the touch input changes. Taking a differential signal capacitive touch device as an example, the difference between the target value of the previous capacitive sensing node and the target value of the next capacitive sensing node on the same row channel plus a reference value is used as the sampling value of the previous capacitive sensing node. Since only the sampling value of the previous or next capacitive sensing node is known, the sampling value of another capacitive sensing node can be obtained based on the difference.

[0039] For example, Figure 2Schematic diagram of a touch area provided by an embodiment of the present application. Taking the touch display screen including M+1 columns of capacitive sensing nodes as an example, the capacitive elements of the touch display screen include Figure 2 The M+1th column of capacitance sensing nodes 201 is shown, wherein the M+1th column of capacitance sensing nodes is the last channel. Since there is no channel behind the last column receiving channel to perform difference calculation with it, the signal in the column channel is prone to inaccuracy, therefore, the sampling value in the last column channel can be screened out, and the sampling value of each capacitance sensing node in the first column to the Mth column is retained.

[0040] Optionally, the preset reference capacitance may be 128. When the touch display screen does not receive a touch input, the sampling value of the capacitance sensing node of the touch display screen may be as follows: Figure 2 As shown in the figure, the sampling value of each capacitance sensing node is 128.

[0041] When the touch display screen receives a touch input, the area where the touch input is received can be judged based on the sampling value of the capacitive sensing node. Exemplarily, when the touch display screen receives a touch, the sampling value of the capacitive sensing node may change. For example, the sampling value of the capacitive sensing node increases or decreases. Specifically, the area where the sampling value of the capacitive sensing node changes can be used as the area to be judged whether it is a valid touch. Optionally, the difference between the sampling value and the reference value is the change amount of the capacitive sensing node. When the change amount of a capacitive sensing node is less than a threshold value, the capacitive sensing node can be ignored and the capacitive sensing node can be used as a non-touch area, which is not specifically limited here.

[0042] For ease of calculation, the area where the capacitance sensing node changes can be divided into rectangles or squares. For example, Figure 2 In the capacitance sensing node shown in FIG. 1 , after the sampling value of the capacitance sensing node changes, the following can be obtained: Figure 3 Shown are touch area 301 , touch area 302 , touch area 303 , and touch area 304 .

[0043] For example, the categories of touch areas include invalid touch areas and valid touch areas, where the invalid touch areas are, for example, accidental touches of the touch display by the user's clothing, and the valid touch areas are, for example, click inputs and sliding inputs of the user on the touch display screen through fingers or electronic pens.

[0044] In some embodiments, the sampling values ​​include, for example, positive sampling values, negative sampling values, etc.

[0045] Exemplarily, when a capacitive sensing node is touched, the target value of the capacitive sensing node becomes smaller than the preset reference value, and when multiple consecutive capacitive sensing nodes are touched, the target value decreases from left to right, and when the minimum value is reached, the target value increases from left to right. The target values ​​of multiple capacitive sensing nodes can present a U-shape. When the touch operation is close enough to the left edge of the touch display screen, there will be only the second half of the U-shape, that is, only the negative sampling value. When the touch is close enough to the right edge of the touch display screen, there will be only the first half of the U-shape, that is, only the positive signal.

[0046] Continuing to take the differential signal capacitive touch device as an example, since the difference between the target value of the previous capacitive sensing node and the target value of the next capacitive sensing node in the same row plus the reference value is used as the sampling value of the previous capacitive sensing node. For ease of description, when the sampling value is greater than a preset reference threshold (for example, the preset reference threshold is 128), the sampling value is a positive sampling value, and when the sampling value is less than or equal to the preset reference threshold, the sampling value is a negative sampling value.

[0047] When the touch area corresponding to the touch point in the middle of the touch display screen includes positive sampling values ​​and negative sampling values, for example, Figure 3 Touch area 301 is shown.

[0048] When calculating the sampling value of the capacitive sensing node, it is necessary to use the difference between the sampling values ​​of the previous node and the next node, and then add the reference value as the sampling value of the previous signal. Specifically, the value of the left node is subtracted from the value of the right node, and the signal difference plus the reference value is used as the sampling value of the left node. When the capacitive sensing node receives a touch operation, the sensing value of the capacitive sensing node itself is greater than the reference value. Therefore, when the leftmost capacitive sensing node of the touch screen receives a touch operation, the difference is obtained by directly subtracting the reference value from the sampling value of the leftmost capacitive sensing node, and then adding it to the reference value, only a negative signal can be obtained. Therefore, the positive signal of the touch area on the left edge is missing. Starting from the first line, the right half of the U-shaped signal is received, so the sampling data only has a negative area. For example, Figure 3 As shown in the touch area 302.

[0049] When the touch area corresponding to the touch point is close to the right edge of the touch display screen, the touch area corresponding to the touch point includes a positive sampling value, for example, Figure 3 As another example, when the touch point is close to the right edge of the touch display screen, the touch area corresponding to the touch point may include only positive sampling values. This is because the rightmost capacitive sensing node has no receiving channel for column detection signals, and the negative sampling values ​​and part of the positive sampling values ​​on the right are missing, resulting in the touch area on the right edge of the touch display screen including only positive sampling values. For example, Figure 3Touch area 304 is shown.

[0050] In some embodiments, in order to avoid missing a touch area, for the capacitance sensing nodes in the Mth column, the difference between the sampled value of each capacitance sensing node and the preset reference value can be obtained separately to obtain the difference of each capacitance sensing node in the Mth column. The capacitance sensing node in the Mth column whose difference is greater than the preset touch threshold is obtained, and the upper and lower capacitance sensing nodes adjacent to the capacitance sensing node are obtained. For ease of description, the capacitance sensing node whose difference is greater than the preset touch threshold is described as the first node, and the upper and lower capacitance sensing nodes adjacent to the capacitance sensing node are respectively the second node and the third node. When the difference between the sampled value of the second node and the preset reference value is less than the preset touch threshold, and the difference between the sampled value of the third node and the preset reference value is less than the preset touch threshold, the first node is regarded as a touch area.

[0051] According to the embodiment of the present application, after the touch area is obtained, the target restoration method for each touch area can be determined according to the sampling value of each touch area and the position information of each touch area to obtain the target value of each capacitive sensing node in the touch area. Next, the peak point of the target value in each touch area is determined according to the target value of the capacitive sensing node in each touch area. According to the preset touch threshold and the peak point of the target value in each touch area, it is determined whether the touch area is a valid touch area.

[0052] As a specific example, when the touch area includes multiple capacitive sensing nodes, and the peak point of the target value in the touch area and the target value of at least one capacitive sensing node adjacent to the peak point are both greater than a preset touch threshold, the category of the touch area is determined to be a valid touch area.

[0053] In another embodiment, when the touch area includes a capacitive sensing node and the target value of the capacitive sensing node is greater than a preset touch threshold, the touch area is used as a to-be-matched area; touch trajectory matching is performed on the to-be-matched area according to a preset touch trajectory matching algorithm, and if the to-be-matched area is successfully matched, the touch area is determined to be a valid touch area.

[0054] Optionally, the preset touch track matching algorithm may be pre-set and is not specifically limited herein.

[0055] In some embodiments, in order to improve the accuracy of obtaining the target value, the target value of the untouched area may be obtained according to the following steps:

[0056] Step 210: Expand the edge of each touch area by a preset number of capacitive sensing nodes to obtain a first target area corresponding to each touch area.

[0057] Step 220 , performing target restoration processing on the sampled values ​​in the first target area according to the sampled values ​​of each touch area and the position information of each touch area, to obtain a target value of each capacitive sensing node in the first target area.

[0058] The first target area includes a touch area, and the first target area includes N columns of capacitive sensing nodes, where N is a positive integer.

[0059] Optionally, when expanding the touch area, if there are capacitive sensing nodes around the touch area, the touch area can be expanded; if there are no capacitive sensing nodes around the touch area, the touch area does not need to be expanded. The preset number of layers for expanding the capacitive sensing nodes can be one layer or multiple layers, and the preset number of layers is not specifically limited.

[0060] In some embodiments, after each touch area is expanded, a first target area corresponding to each touch area is obtained. In order to avoid affecting the accuracy of the calculation, an expansion condition can also be pre-set. A specific example of the pre-set expansion condition is that the first target areas do not overlap with each other. That is, if two touch areas are expanded respectively, and the two first target areas are stored in an overlapping state, the expansion process is not performed on these two touch areas.

[0061] In one example, combining Figure 3 As shown, the touch area 301 is surrounded by non-touch areas, so the touch area 301 is surrounded by capacitive sensing nodes in the non-touch areas. Figure 4 is a schematic diagram of another touch area expansion provided by an embodiment of the present application. Taking the preset number of layers as 1 as an example, after the edge of the touch area 301 is expanded to the surrounding by 1 layer, combined with Figure 4 As shown, after the touch area 301 is expanded, a first target area 401 is obtained.

[0062] Take the case where the touch display screen corresponds to M+1 columns of capacitance sensing nodes, where the first column of capacitance sensing nodes corresponds to the first preset edge of the touch display screen, i.e., the left edge, and the M+1th column of capacitance sensing nodes corresponds to the second preset edge of the touch display screen, i.e., the right edge. The Mth column of capacitance sensing nodes is the last column channel with a sample value.

[0063] In yet another example, one side edge of the touch area may be the edge of the entire capacitive sensing node, for example Figure 3 The touch area 302 and the touch area 303 are shown. The edge of the touch area 302 is extended to the periphery by a preset number of layers, which may be one layer. Figure 5 is a schematic diagram of a region expansion provided in an embodiment of the present application, combined with Figure 5 As shown, after the touch area 302 is expanded, a first target area 501 is obtained. Figure 6 FIG. 1 is a schematic diagram of another area expansion provided in an embodiment of the present application. Figure 6 As shown, after the touch area 303 is expanded, a first target area 501 is obtained. It is understandable that since one side of the touch area is the edge of the entire capacitive sensing node, when performing the expansion process, the touch area only needs to be expanded toward the side where the capacitive sensing node is stored.

[0064] After obtaining the first target area corresponding to the touch area, the restoration method that needs to be adopted for each first target area can be determined based on the sampled value of each touch area and the position information of each touch area. Then, the restoration method is adopted based on the needs of each first target area, and the sampled value in the first target area is subjected to target restoration processing to obtain the target value of each capacitive sensing node in the first target area, wherein, since the first target area includes the touch area, by obtaining the restored value of each capacitive sensing node in the first target area, the restored value of each capacitive sensing node in the touch area can be obtained.

[0065] According to the embodiment of the present application, by expanding the original touch area by a preset number of layers, the edge signal of the original touch area can be combined for restoration calculation, thereby avoiding the situation where the edge signal of the original touch area is missing, resulting in low reliability of the target value.

[0066] In some embodiments, specific reference may be made to the following embodiments for obtaining a target value.

[0067] In one example, when the sampling values ​​of a part of the capacitance sensing nodes in the touch area are greater than a preset reference value and the sampling values ​​of another part of the capacitance sensing nodes in the touch area are less than or equal to the preset reference value, the difference between each sampling value and the preset reference value in the first target area is obtained to obtain a first restored value of each capacitance sensing node; the first restored value corresponding to the first capacitance sensing node in each row of the first target area to the first restored value corresponding to the i-1th capacitance sensing node are accumulated to obtain a second restored value of the i-th capacitance sensing node in each row of the first target area, wherein 2≤i≤N, and i is a positive integer; the first capacitance sensing node in each row of the capacitance sensing nodes in the first target area is set to zero to obtain a second restored value of the first capacitance sensing node in each row; the second restored value of the capacitance sensing node corresponding to the touch area is extracted from the first target area, and a preset error correction process is performed on the second restored value of the capacitance sensing node corresponding to the touch area to obtain a target value of the capacitance sensing node corresponding to the touch area; wherein the preset error correction process includes setting the second restored value of the capacitance sensing node less than 0 to zero.

[0068] For example, when the sampling values ​​of a part of the capacitive sensing nodes in the touch area are greater than the preset reference value, and the sampling values ​​of another part of the capacitive sensing nodes in the touch area are less than or equal to the preset reference value, it means that the touch area includes a part of positive sampling values ​​and another part of negative sampling values. Figure 3 Touch area 301 is shown.

[0069] Optionally, the target value of each capacitive sensing node in the touch area can be obtained by obtaining the target value of each capacitive sensing node in the first target area. Figure 4 As shown, taking the expansion of one layer as an example, after the touch area 301 is expanded, the first target area 401 can be obtained. The difference between each sampling value and the preset reference value in the first target area is used to obtain the first restored value of each capacitive sensing node, for example Figure 4 The values ​​shown in the first target area 402 are shown.

[0070] by Figure 4 The capacitive sensing nodes in the second row of the first target area 402 are shown as an example.

[0071] When i=3, in the capacitance sensing nodes of the second row, the first restored value of the first capacitance sensing node is 2, the first restored value of the second capacitance sensing node is 7, and the first restored value corresponding to the first capacitance sensing node to the first restored value corresponding to the second capacitance sensing node are accumulated to obtain the second restored value of the third capacitance sensing node is 9. Figure 4 The values ​​shown in the first target area 403 are shown.

[0072] When i=4, in the second row of capacitance sensing nodes, the first restored value of the first capacitance sensing node is 2, the first restored value of the second capacitance sensing node is 7, and the first restored value of the third capacitance sensing node is 54. The first restored value corresponding to the first capacitance sensing node to the first restored value corresponding to the third capacitance sensing node are accumulated to obtain the second restored value of the fourth capacitance sensing node is 63, for example Figure 4 The values ​​shown in the first target area 403 are shown.

[0073] The calculation process of the second restored value of each capacitive sensing node is not listed here one by one. Among them, for the first capacitive sensing node in each row of capacitive sensing nodes, zero processing can be performed to obtain the second restored value of the first capacitive sensing node in each row, for example Figure 4 The values ​​shown in the first target area 403 are shown.

[0074] Optionally, since there is no capacitive sensing node before the first sensing node in each row in the first target area, in the embodiment of the present application, the first capacitive sensing node in each row of capacitive sensing nodes may be directly set to zero, for example Figure 4 As shown in the first target area 403.

[0075] Next, a preset error correction process is performed on the second restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; wherein the preset error correction process includes setting the first restored value of the capacitive sensing node that is less than 0 to zero. The first target area 403 is subjected to a preset error correction process to obtain the value shown in the first target area 404.

[0076] According to the embodiment of the present application, in combination with the location of the touch area, a restoration processing method corresponding to the touch area is adopted to restore each row of capacitive sensing nodes in the first target area, so that the change amount of each capacitive sensing node, that is, the target value of the capacitive sensing node, can be accurately obtained.

[0077] In some embodiments, among the N columns of capacitance sensing nodes, the first column of capacitance sensing nodes is adjacent to the first preset edge of the touch display screen, wherein the first preset edge is the first preset boundary of the capacitance sensing nodes. Continuing to take the example that the touch display screen corresponds to M+1 columns of capacitance sensing nodes, wherein the first column of capacitance sensing nodes in the touch area is located in the first column of the M+1 columns of capacitance sensing nodes, corresponding to the first preset edge of the touch display screen, i.e., the left edge.

[0078] In one example, determining the target value of the capacitive sensing node in each touch area can also specifically refer to the following steps: when the sampling value of the sensing node in the touch area is less than or equal to the preset reference value, and the first preset edge of the touch area is adjacent to the first preset edge of the touch display screen, calculating the difference between each sampling value and the preset reference value in the first target area to obtain the third restored value of each capacitive sensing node; accumulating the third restored value corresponding to the Nth capacitive sensing node in each row in the first target area to the third restored value corresponding to the jth capacitive sensing node to obtain the fourth restored value of the jth capacitive sensing node in each row in the first target area, where 1≤j≤N, and j is a positive integer; extracting the fourth restored value of the capacitive sensing node corresponding to the touch area from the first target area, and taking the absolute value of the fourth restored value of the capacitive sensing node corresponding to the touch area to obtain the target value of the capacitive sensing node corresponding to the touch area.

[0079] Exemplarily, when the sampling value of the sensing node in the touch area is less than or equal to the preset reference value, and the first preset edge of the touch area is adjacent to the first preset edge of the touch display screen, it means that the touch area includes a negative sampling value, and the position of the touch area is at the first preset edge of the touch display screen.

[0080] Example, combined Figure 5 As shown, after the touch area 302 is expanded, the following can be obtained: Figure 5The first target area 501 is shown. The difference between each sampling value in the first target area and the preset reference value is used to obtain a third restored value of each capacitive sensing node, for example Figure 5 The values ​​shown in the first target area 502 are shown.

[0081] Next, in Figure 5 In the first target area 502 shown, there are 3 columns in total, ie, N=3.

[0082] When j=3, in the second row of capacitance sensing nodes, the third capacitance sensing node corresponds to the third restoration value -5. At this time, the third capacitance sensing node corresponds to the third restoration value -5 and directly serves as its own capacitance sensing node corresponding to the third restoration value -5. For example, Figure 5 As shown in the first target area 503.

[0083] When j=2, the third capacitance sensing node corresponds to the third restored value -5, the second capacitance sensing node corresponds to the third restored value -5, and the third restored value -5 corresponding to the third capacitance sensing node to the third restored value -9 corresponding to the second capacitance sensing node are accumulated to obtain the fourth restored value -14 of the second capacitance sensing node. For example Figure 5 As shown in the first target area 503.

[0084] When j=1, the third capacitance sensing node corresponds to the third restored value -5, the second capacitance sensing node corresponds to the third restored value -5, and the first capacitance sensing node corresponds to the third restored value -58. The third restored value -5 corresponding to the third capacitance sensing node to the third restored value -58 corresponding to the first capacitance sensing node are accumulated to obtain the fourth restored value -72 of the first capacitance sensing node. For example Figure 5 The values ​​shown in the first target area 503 are shown.

[0085] Next, the fourth restored value of the capacitive sensing node corresponding to the touch area is extracted from the first target area 503, and the absolute value of the fourth restored value of the capacitive sensing node corresponding to the touch area is taken to obtain the target value of the capacitive sensing node corresponding to the touch area, for example Figure 5 The values ​​shown in the first target area 504 are shown.

[0086] According to the embodiment of the present application, by expanding from the right edge of the first target area to the left to the boundary of the first target area, and by reverse restoration, the corresponding target values ​​of all the previous capacitive sensing nodes are inferred.

[0087] In some embodiments, among the N columns of capacitance sensing nodes, the capacitance sensing nodes in the Nth column are adjacent to a second preset edge of the touch display screen, wherein the second preset edge is a second preset boundary of the capacitance sensing nodes.

[0088] Continuing with the example that the touch display screen corresponds to M+1 columns of capacitance sensing nodes, the Nth column of capacitance sensing nodes in the touch area is located in the Mth column of the M+1 columns of capacitance sensing nodes, corresponding to the second preset edge of the touch display screen, that is, the right edge.

[0089] In one example, the target value of the capacitive sensing node in each touch area can be determined by referring to the following steps: Specifically, when the sampling value of the sensing node in the touch area is greater than the preset reference value, the difference between each sampling value and the preset reference value in the first target area is calculated to obtain the fifth restored value of each capacitive sensing node; the first target area is expanded to a second preset edge direction by m columns of capacitive sensing nodes to obtain a second target area, wherein the fifth restored value of the expanded m columns of capacitive sensing nodes is 0; the fifth restored value corresponding to the first capacitive sensing node in each row of the second target area is increased to the fifth restored value corresponding to the i-1th capacitive sensing node. Accumulating to obtain a sixth restored value of the i-th capacitance sensing node in each row in the second target area, where 2≤i≤N+m, and i is a positive integer; performing zero processing on the first capacitance sensing node in each row of capacitance sensing nodes in the first target area to obtain a sixth restored value of the first capacitance sensing node in each row; extracting the sixth restored value of the capacitance sensing node corresponding to the touch area from the second target area, and performing a preset error correction processing on the sixth restored value of the capacitance sensing node corresponding to the touch area to obtain a target value of the capacitance sensing node corresponding to the touch area; wherein the preset error correction processing includes setting the sixth restored value of the capacitance sensing node less than 0 to zero.

[0090] Exemplarily, when the sampling value of the sensing node in the touch area is greater than the preset reference value, it indicates that the touch area includes a positive sampling value. Among the N columns of capacitance sensing nodes, the capacitance sensing node in the Nth column is adjacent to the second preset edge of the touch display screen. Figure 6 As shown, after the touch area 303 is expanded, the following can be obtained: Figure 6 The first target area 601 is shown. The difference between each sampling value and the preset reference value in the first target area 601 is obtained to obtain the fifth restored value of each capacitive sensing node.

[0091] Since the Nth column of capacitance sensing nodes in the touch area is located in the Mth column of the M+1th column of capacitance sensing nodes, the touch area 601 can be extended to the right by one column. Figure 6 That is, in the embodiment of the present application, the first target area 601 can also be expanded by one column of capacitance sensing nodes toward the second preset edge direction to obtain the second target area 602, wherein the fifth restored value of the expanded m columns of capacitance sensing nodes is 0. When m=1, therefore, there are a total of N+1 columns in the second target area.

[0092] After obtaining the second target area, next, combine Figure 6 The second target area 602 is shown to introduce the restoration process.

[0093] When i=2, in the second row of capacitance sensing nodes, the fifth restored value of the first capacitance sensing node is -2. At this time, the fifth restored value of the first capacitance sensing node can be directly used as the sixth restored value -2 of the second capacitance sensing node. For example, Figure 6 The values ​​shown in the second target area 603 are shown.

[0094] When i=3, in the second row of capacitance sensing nodes, the fifth restored value of the first capacitance sensing node is -2, and the fifth restored value of the second capacitance sensing node is 7. The fifth restored value of the first capacitance sensing node is accumulated to the fifth restored value of the second capacitance sensing node to obtain the restored value of the third capacitance sensing node, 5. For example, Figure 6 The values ​​shown in the second target area 603 are shown.

[0095] When i=4, in the second row of capacitance sensing nodes, the fifth restored value of the first capacitance sensing node is -2, the fifth restored value of the second capacitance sensing node is 7, and the fifth restored value of the third capacitance sensing node is 54. The fifth restored value of the first capacitance sensing node to the fifth restored value of the third capacitance sensing node are accumulated to obtain the restored value of the fourth capacitance sensing node 59. For example, Figure 6 The values ​​shown in the second target area 603 are shown.

[0096] According to the embodiment of the present application, in combination with the location of the touch area, a restoration processing method corresponding to the touch area is adopted to restore each row of capacitive sensing nodes in the first target area. In particular, when the touch area is adjacent to the right edge of the touch display screen, by expanding the first touch area to the right, during the restoration calculation, not only the target value of each capacitive sensing node in the original touch area can be accurately calculated, but also the target value of the last column channel can be restored when the sampled values ​​in the last column channel are screened out.

[0097] Based on the same inventive concept, the present application also provides a touch detection device 700 corresponding to the above touch detection method. Figure 7 Provide detailed explanation.

[0098] Figure 7 is a structural diagram of a touch detection device provided in an embodiment of the present application, such as Figure 7 As shown, the touch detection device 700 may include: a processing module 710 .

[0099] The processing module 710 is used to determine at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen;

[0100] A determination module 720, configured to perform target restoration processing on the sampled values ​​in the touch area according to the sampled values ​​of each touch area and the position information of each touch area, so as to determine a target value of a capacitive sensing node in each touch area;

[0101] The determination module 720 is further used to determine the peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area;

[0102] The determination module 720 is further configured to determine a valid touch area according to a preset touch threshold and a peak point of a target value in each touch area.

[0103] In some embodiments, the determination module 720 is further used to determine that the category of the touch area is a valid touch area when the touch area includes multiple capacitive sensing nodes and the peak point of the target value in the touch area and the target value of at least one capacitive sensing node adjacent to the peak point are both greater than a preset touch threshold.

[0104] In some embodiments, the processing module 710 is further configured to use the touch area as a to-be-matched area when the touch area includes a capacitive sensing node and the target value of the capacitive sensing node is greater than a preset touch threshold;

[0105] The determination module 720 is further configured to perform touch trajectory matching on the to-be-matched area according to a preset touch trajectory matching algorithm, and if the to-be-matched area is successfully matched, determine that the touch area is a valid touch area.

[0106] In some embodiments, the processing module 710 is further used to expand the edge of each touch area to a preset number of capacitive sensing nodes to obtain a first target area corresponding to each touch area;

[0107] The processing module 710 is further used to perform target restoration processing on the sampled values ​​in the first target area according to the sampled values ​​of each touch area and the position information of each touch area, so as to obtain a target value of each capacitive sensing node in the first target area, wherein the first target area includes the touch area, and the first target area includes N columns of capacitive sensing nodes, where N is a positive integer.

[0108] In some embodiments, the processing module 710 is further configured to obtain a difference between each sampling value and the preset reference value in the first target area, and obtain a first restored value of each capacitance sensing node, when the sampling values ​​of a part of the capacitance sensing nodes in the touch area are greater than the preset reference value and the sampling values ​​of another part of the capacitance sensing nodes in the touch area are less than or equal to the preset reference value;

[0109] The processing module 710 is further configured to accumulate the first restored value corresponding to the first capacitance sensing node in each row in the first target area to the first restored value corresponding to the i-1th capacitance sensing node to obtain the second restored value of the i-th capacitance sensing node in each row in the first target area, where 2≤i≤N, and i is a positive integer;

[0110] The processing module 710 is further configured to perform zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a second restored value of the first capacitive sensing node in each row;

[0111] The processing module 710 is further configured to extract the second restored value of the capacitive sensing node corresponding to the touch area from the first target area, and perform a preset error correction process on the second restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area;

[0112] The preset error correction process includes setting the second restored value of the capacitance sensing node that is less than 0 to zero.

[0113] In some embodiments, among the N columns of capacitance sensing nodes, a first column of capacitance sensing nodes is adjacent to a first preset edge of the touch display screen;

[0114] The processing module 710 is further configured to calculate the difference between each sampling value and the preset reference value in the first target area when the sampling values ​​of the sensing nodes in the touch area are all less than or equal to the preset reference value and the first preset edge of the touch area is adjacent to the first preset edge of the touch display screen, so as to obtain a third restored value of each capacitive sensing node;

[0115] The processing module 710 is further configured to accumulate the third restored value corresponding to the Nth capacitive sensing node in each row in the first target area to the third restored value corresponding to the jth capacitive sensing node to obtain a fourth restored value of the jth capacitive sensing node in each row in the first target area, where 1≤j≤N and j is a positive integer;

[0116] The processing module 710 is further configured to extract a fourth restored value of the capacitive sensing node corresponding to the touch area from the first target area, and take an absolute value of the fourth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area.

[0117] In some embodiments, among the N columns of capacitance sensing nodes, the capacitance sensing nodes in the Nth column are adjacent to a second preset edge of the touch display screen;

[0118] The processing module 710 is further configured to calculate the difference between each sampling value and the preset reference value in the first target area when the sampling value of each capacitive sensing node in the touch area is greater than the preset reference value, so as to obtain a fifth restored value of each capacitive sensing node;

[0119] The processing module 710 is further configured to expand the first target area to m columns of capacitance sensing nodes in a second preset edge direction to obtain a second target area, wherein the fifth restored value of the expanded m columns of capacitance sensing nodes is 0;

[0120] The processing module 710 is further configured to accumulate the fifth restored value corresponding to the first capacitance sensing node in each row in the second target area to the fifth restored value corresponding to the i-1th capacitance sensing node to obtain a sixth restored value of the i-th capacitance sensing node in each row in the second target area, where 2≤i≤N+m, and i is a positive integer;

[0121] The processing module 710 is further configured to perform zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a sixth restored value of the first capacitive sensing node in each row;

[0122] The processing module 710 is further configured to extract a sixth restored value of the capacitive sensing node corresponding to the touch area from the second target area, and perform a preset error correction process on the sixth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area;

[0123] The preset error correction process includes setting the sixth restored value of the capacitance sensing node that is less than 0 to zero.

[0124] It can be understood that the touch detection device 700 of the embodiment of the present application can correspond to the execution entity of the touch detection method provided in the embodiment of the present application. The specific details of the operation and / or function of each module / unit of the touch detection device 700 can be found in the description of the corresponding parts in the above-mentioned touch detection method of the embodiment of the present application. For the sake of brevity, they will not be repeated here.

[0125] According to the embodiment of the present application, the corresponding sampling value target restoration processing is determined by the sampling value of each touch area and the position information of each touch area, and different restoration processing can be performed for different touch areas to reduce the discarding of sampling values, avoid missing sampling values, and detect omissions, which is conducive to improving the accuracy of determining the effective touch area. Afterwards, the peak point of the target value in each touch area can be determined based on the target value of the capacitive sensing node in each of the touch areas; the effective touch area is determined based on the preset touch threshold and the peak point of the target value in each touch area, which improves the accuracy of determining the category of each touch area.

[0126] Figure 8 FIG. 1 is a schematic diagram showing the structure of an electronic device provided by an embodiment of the present application. Figure 8 As shown, the device may include a processor 801 and a memory 802 storing computer program instructions.

[0127] Specifically, the processor 801 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0128] The memory 802 may include a large capacity memory for information or instructions. By way of example and not limitation, the memory 802 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In one example, the memory 802 may include a removable or non-removable (or fixed) medium, or the memory 802 is a non-volatile solid-state memory. The memory 802 may be inside or outside the electronic device.

[0129] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0130] The processor 801 implements the method described in the embodiment of the present application by reading and executing the computer program instructions stored in the memory 802, and achieves the corresponding technical effect achieved by the embodiment of the present application executing its method, which will not be repeated here for the sake of brevity.

[0131] In one example, the electronic device may further include a communication interface 803 and a bus 810. Figure 8 As shown, the processor 801, the memory 802, and the communication interface 803 are connected via a bus 810 and communicate with each other.

[0132] The communication interface 803 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0133] Bus 810 includes hardware, software or both, and the components of online information flow billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 810 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0134] The electronic device can execute the touch detection method in the embodiment of the present application, thereby achieving the corresponding technical effects of the touch detection method described in the embodiment of the present application.

[0135] In addition, in combination with the touch detection method in the above embodiment, the embodiment of the present application may provide a readable storage medium for implementation. The readable storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the touch detection methods in the above embodiment is implemented. Examples of readable storage media may be non-transitory machine-readable media, such as electronic circuits, semiconductor memory devices, read-only memories (ROM), floppy disks, compact discs (CD-ROM), optical discs, hard disks, etc.

[0136] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0137] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0138] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0139] The embodiment of the present application further provides a computer-readable storage medium, on which computer program instructions are stored; when the computer program instructions are executed by a processor, the touch detection method provided in the embodiment of the present application is implemented.

[0140] In addition, in combination with the touch detection method, device, and readable storage medium in the above embodiments, the embodiments of the present application may provide a computer program product for implementation. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device performs any one of the touch detection methods in the above embodiments.

[0141] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0142] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A touch detection method, It is characterized in that include: Determining at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen; According to the sampling value of each touch area and the position information of each touch area, target restoration processing is performed on the sampling value in the touch area to determine the target value of the capacitive sensing node in each touch area; Determine a peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area; Determine the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area; Before performing target restoration processing on the sampled values ​​in the touch areas according to the sampled values ​​of each touch area and the position information of each touch area to determine the target value of the capacitive sensing node in each touch area, the method further includes: Expanding the edge of each touch area by a preset number of capacitive sensing nodes to obtain a first target area corresponding to each touch area; According to the sampling value of each touch area and the position information of each touch area, target restoration processing is performed on the sampling value in the first target area to obtain a target value of each capacitive sensing node in the first target area, wherein the first target area includes the touch area, and the first target area includes N columns of capacitive sensing nodes, where N is a positive integer; The step of performing target restoration processing on the sampled values ​​in the touch area according to the sampled values ​​of each touch area and the position information of each touch area to determine the target value of the capacitive sensing node in each touch area includes any one of the following (1) to (3): (1) when the sampling values ​​of a portion of the capacitive sensing nodes in the touch area are greater than a preset reference value and the sampling values ​​of another portion of the capacitive sensing nodes in the touch area are less than or equal to the preset reference value, obtaining a difference between each of the sampling values ​​and the preset reference value in the first target area to obtain a first restored value of each capacitive sensing node; Accumulate the first restored value corresponding to the first capacitance sensing node of each row in the first target area to the first restored value corresponding to the i-1th capacitance sensing node to obtain the second restored value of the i-th capacitance sensing node of each row in the first target area, where 2≤i≤N, and i is a positive integer; performing zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a second restored value of the first capacitive sensing node in each row; Extracting a second restored value of a capacitive sensing node corresponding to the touch area from the first target area, and performing a preset error correction process on the second restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; The preset error correction process includes setting the second restored value of the capacitance sensing node that is less than 0 to zero; (2) when the sampling values ​​of the sensing nodes in the touch area are all less than or equal to the preset reference value, and when a first column of the capacitive sensing nodes in the N columns of the touch area is adjacent to a first preset edge of the touch display screen, a difference between each of the sampling values ​​in the first target area and the preset reference value is calculated to obtain a third restored value of each capacitive sensing node; Accumulate the third restored value corresponding to the Nth capacitance sensing node in each row in the first target area to the third restored value corresponding to the jth capacitance sensing node to obtain a fourth restored value of the jth capacitance sensing node in each row in the first target area, where 1≤j≤N and j is a positive integer; Extracting a fourth restored value of the capacitive sensing node corresponding to the touch area from the first target area, and taking an absolute value of the fourth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; (3) when the sampling value of each capacitive sensing node in the touch area is greater than the preset reference value, calculating the difference between each sampling value and the preset reference value in the first target area to obtain a fifth restored value of each capacitive sensing node; among the N columns of capacitive sensing nodes, the Nth column of capacitive sensing nodes is adjacent to the second preset edge of the touch display screen; Expanding the first target area by m columns of capacitance sensing nodes toward a second preset edge direction to obtain a second target area, wherein the fifth restored value of the expanded m columns of capacitance sensing nodes is 0; Accumulate the fifth restored value corresponding to the first capacitance sensing node to the fifth restored value corresponding to the (i-1)th capacitance sensing node in each row of the second target area to obtain the sixth restored value of the i-th capacitance sensing node in each row of the second target area, where 2≤i≤N+m, and i is a positive integer; performing zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a sixth restored value of the first capacitive sensing node in each row; extracting a sixth restored value of the capacitive sensing node corresponding to the touch area from the second target area, and performing a preset error correction process on the sixth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; The preset error correction process includes setting the sixth restored value of the capacitance sensing node that is less than 0 to zero.

2. The method according to claim 1, It is characterized in that The determining of the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area includes: When the touch area includes a plurality of capacitive sensing nodes and a peak point of a target value in the touch area and a target value of at least one capacitive sensing node adjacent to the peak point are both greater than the preset touch threshold, the touch area is determined to be a valid touch area.

3. The method according to claim 1, It is characterized in that The determining of the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area includes: When the touch area includes a capacitive sensing node and the target value of the capacitive sensing node is greater than the preset touch threshold, taking the touch area as a to-be-matched area; The touch track matching is performed on the to-be-matched area according to a preset touch track matching algorithm, and if the to-be-matched area is successfully matched, the touch area is determined to be a valid touch area.

4. A touch detection device, It is characterized in that The device comprises: A processing module, configured to determine at least one touch area according to the sampled values ​​of the capacitive sensing nodes of the touch display screen; a determination module, configured to perform target restoration processing on the sampled values ​​in the touch areas according to the sampled values ​​of each touch area and the position information of each touch area, so as to determine a target value of a capacitive sensing node in each touch area; The determination module is further used to determine a peak point of the target value in each touch area according to the target value of the capacitive sensing node in each touch area; The determination module is further used to determine the effective touch area according to the preset touch threshold and the peak point of the target value in each touch area; The processing module is further used to expand the edge of each touch area to a preset number of capacitive sensing nodes to obtain a first target area corresponding to each touch area; The processing module is further used to perform target restoration processing on the sampled values ​​in the first target area according to the sampled values ​​of each touch area and the position information of each touch area, so as to obtain a target value of each capacitive sensing node in the first target area, wherein the first target area includes the touch area, and the first target area includes N columns of capacitive sensing nodes, where N is a positive integer; The processing module is further configured to execute any one of the following (1) to (3): (1) when the sampling values ​​of a portion of the capacitive sensing nodes in the touch area are greater than a preset reference value and the sampling values ​​of another portion of the capacitive sensing nodes in the touch area are less than or equal to the preset reference value, obtaining a difference between each of the sampling values ​​and the preset reference value in the first target area to obtain a first restored value of each capacitive sensing node; Accumulate the first restored value corresponding to the first capacitance sensing node of each row in the first target area to the first restored value corresponding to the i-1th capacitance sensing node to obtain the second restored value of the i-th capacitance sensing node of each row in the first target area, where 2≤i≤N, and i is a positive integer; performing zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a second restored value of the first capacitive sensing node in each row; Extracting the second restored values ​​of the capacitive sensing nodes corresponding to the touch area from the first target area, and performing a preset error correction process on the second restored values ​​of the capacitive sensing nodes corresponding to the touch area to obtain target values ​​of the capacitive sensing nodes corresponding to the touch area; wherein the preset error correction process includes setting the second restored values ​​of the capacitive sensing nodes that are less than 0 to zero; (2) when the sampling values ​​of the sensing nodes in the touch area are all less than or equal to the preset reference value, and when a first column of the capacitive sensing nodes in the N columns of the touch area is adjacent to a first preset edge of the touch display screen, a difference between each of the sampling values ​​in the first target area and the preset reference value is calculated to obtain a third restored value of each capacitive sensing node; Accumulate the third restored value corresponding to the Nth capacitance sensing node in each row in the first target area to the third restored value corresponding to the jth capacitance sensing node to obtain a fourth restored value of the jth capacitance sensing node in each row in the first target area, where 1≤j≤N and j is a positive integer; Extracting a fourth restored value of the capacitive sensing node corresponding to the touch area from the first target area, and taking an absolute value of the fourth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; (3) when the sampling value of each capacitive sensing node in the touch area is greater than the preset reference value, calculating the difference between each sampling value and the preset reference value in the first target area to obtain a fifth restored value of each capacitive sensing node; among the N columns of capacitive sensing nodes, the Nth column of capacitive sensing nodes is adjacent to the second preset edge of the touch display screen; Expanding the first target area by m columns of capacitance sensing nodes toward a second preset edge direction to obtain a second target area, wherein the fifth restored value of the expanded m columns of capacitance sensing nodes is 0; Accumulate the fifth restored value corresponding to the first capacitance sensing node to the fifth restored value corresponding to the (i-1)th capacitance sensing node in each row of the second target area to obtain the sixth restored value of the i-th capacitance sensing node in each row of the second target area, where 2≤i≤N+m, and i is a positive integer; performing zeroing processing on the first capacitive sensing node in each row of capacitive sensing nodes in the first target area to obtain a sixth restored value of the first capacitive sensing node in each row; A sixth restored value of the capacitive sensing node corresponding to the touch area is extracted from the second target area, and a preset error correction process is performed on the sixth restored value of the capacitive sensing node corresponding to the touch area to obtain a target value of the capacitive sensing node corresponding to the touch area; wherein the preset error correction process includes setting the sixth restored value of the capacitive sensing node that is less than 0 to zero.

5. An electronic device, It is characterized in that The device comprises: a processor, and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the touch detection method according to any one of claims 1 to 3.

6. A readable storage medium, It is characterized in that The readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the touch detection method according to any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Touch detection method and computer-readable storage medium

    CN108762557A

  • Touch positioning method and device, and electronic equipment

    CN108762653A