CN114327161A - Touch device and touch positioning method - Google Patents

Touch device and touch positioning method Download PDF

Info

Publication number
CN114327161A
CN114327161A CN202111622942.XA CN202111622942A CN114327161A CN 114327161 A CN114327161 A CN 114327161A CN 202111622942 A CN202111622942 A CN 202111622942A CN 114327161 A CN114327161 A CN 114327161A
Authority
CN
China
Prior art keywords
peak
area
induction
point
sensing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111622942.XA
Other languages
Chinese (zh)
Inventor
王鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chipone Technology Beijing Co Ltd
Original Assignee
Chipone Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chipone Technology Beijing Co Ltd filed Critical Chipone Technology Beijing Co Ltd
Priority to CN202111622942.XA priority Critical patent/CN114327161A/en
Publication of CN114327161A publication Critical patent/CN114327161A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention discloses a touch positioning method and a touch device, comprising the following steps: acquiring a sensing data set, wherein the sensing data set comprises a plurality of sensing data arranged in an array; respectively projecting the maximum sensing data of each column in the sensing data group to a first coordinate axis to form a first direction projection area; respectively projecting the maximum sensing data of each line in the sensing data group to a second coordinate axis to form a second direction projection area; respectively acquiring projection peak points of a first direction projection area and a second direction projection area; determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relation of the sensing data group; and determining a touch track according to each peak sensing point. According to the touch positioning method and the touch device, the two-dimensional sensing data is projected into the one-dimensional sensing data, and the actual peak sensing point is determined according to the corresponding relation, so that the scanning time is reduced, and the touch area can be quickly positioned.

Description

Touch device and touch positioning method
Technical Field
The present invention relates to the field of touch display technologies, and in particular, to a touch device and a touch positioning method.
Background
With the development of scientific technology, touch screens are widely applied to more and more electronic devices, and users can perform various operations on the devices through the touch screens.
Most of existing touch screens are capacitive touch screens, and a capacitive touch device determines whether an induction point is touched by detecting an induction quantity of the induction point, wherein the induction quantity is a capacitance variation and can be represented by voltage variation before and after the induction point is touched. In the touch screen system, after sensing (Diff) data within one frame time is obtained, a peak area of a press needs to be rapidly acquired, so as to locate a touch area.
In the prior art, all induction points (sensors) on the touch screen need to be searched one by one according to rows and columns and positions meeting the condition that the induction is greater than a preset threshold and greater than adjacent induction points are searched for when a pressed peak area is determined, the time consumption is long, the searched characteristics are single, the outline information is not easy to obtain, and the digital circuit is difficult to realize hardware.
Disclosure of Invention
In view of the foregoing problems, an object of the present invention is to provide a touch device and a touch positioning method, so as to quickly and accurately position a peak area.
According to an aspect of the present invention, a touch positioning method is provided, including: acquiring a sensing data set, wherein the sensing data set comprises a plurality of sensing data arranged in an array; respectively projecting the maximum sensing data of each column in the sensing data group to a first coordinate axis to form a first direction projection area; respectively projecting the maximum sensing data of each line in the sensing data set to a second coordinate axis to form a second direction projection area; respectively acquiring projection peak points of the first direction projection area and the second direction projection area; determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relation of the sensing data group; and determining a touch track according to each peak sensing point.
Optionally, determining a peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area and the second direction projection area.
Optionally, the step of respectively acquiring projection peak points of the first direction projection area and the second direction projection area includes: and respectively traversing the first direction projection area and the second direction projection area, and determining projection points of which the sensing data are greater than a set threshold value and greater than the sensing data adjacent to the sensing data as the projection peak points.
Optionally, the step of determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relationship of the sensing data group includes: respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area in the sensing data group as a first alternative channel; determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area in the sensing data group as a second alternative channel; obtaining at least one sensing point at the intersection point of the first alternative channel and the second alternative channel in the sensing data set; and determining the induction point with induction data larger than a set threshold value in at least one induction point at the intersection point position as the actual peak induction point.
Optionally, the step of determining the peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area and the second direction projection area includes: respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the first direction projection area are larger than a set threshold value as line width; respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width; determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and optimizing and determining the peak induction area of the position of each peak induction point on the edge of the first peak area.
Optionally, the step of determining the peak sensing area where each peak sensing point is located by optimizing the first peak area edge includes: comparing the induction data of a boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all smaller than the set threshold value, moving the boundary along the direction close to the peak value induction point until at least one induction data is larger than the set threshold value in the boundary; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
Optionally, the step of determining the peak area where each peak sensing point is located by optimizing the edge of the first peak area includes: comparing the induction data of one boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all larger than the set threshold value, moving the boundary along the direction deviating from the peak value induction point until at least one induction data in the boundary is smaller than the set threshold value; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
According to another aspect of the present invention, there is provided a touch device including: the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an induction data set, and the induction data set comprises a plurality of induction data which are arranged in an array; the projection module is used for projecting the maximum sensing data of each column in the sensing data set to a first coordinate axis respectively to form a first direction projection area; respectively projecting the maximum sensing data of each line in the sensing data set to a second coordinate axis to form a second direction projection area; the calculation module is used for respectively acquiring projection peak points of the first direction projection area and the second direction projection area; the positioning module is used for determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relation of the sensing data group; and determining a touch track according to each peak sensing point.
Optionally, the positioning module is further configured to determine a peak area at a position where each peak sensing point is located according to the projection peak points of the first direction projection area and the second direction projection area.
Optionally, the computing module is configured to: and respectively traversing the first direction projection area and the second direction projection area, and determining projection points of which the sensing data are greater than a set threshold value and greater than the sensing data adjacent to the sensing data as the projection peak points.
Optionally, the positioning module is configured to: respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area in the sensing data group as a first alternative channel; determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area in the sensing data group as a second alternative channel; obtaining at least one sensing point at the intersection point of the first alternative channel and the second alternative channel in the sensing data set; and determining the induction point with induction data larger than a set threshold value in at least one induction point at the intersection point position as the actual peak induction point.
Optionally, the positioning module is further configured to respectively obtain the number of sensing points of which the front and rear projection peak points of each peak sensing point in the first direction projection area are greater than a set threshold as a line width; respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width; determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and optimizing and determining the peak induction area of the position of each peak induction point on the edge of the first peak area.
Optionally, the positioning module is further configured to perform the following operations to optimize the first peak region edge: comparing the induction data of a boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all smaller than the set threshold value, moving the boundary along the direction close to the peak value induction point until at least one induction data is larger than the set threshold value in the boundary; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
Optionally, the positioning module is further configured to perform the following operations to optimize the first peak region edge: comparing the induction data of one boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all larger than the set threshold value, moving the boundary along the direction deviating from the peak value induction point until at least one induction data in the boundary is smaller than the set threshold value; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
According to another aspect of the present invention, there is provided a touch device including: the touch screen and the controller are connected with each other, wherein the touch screen is used for receiving touch control actions; the controller is configured to execute the touch positioning method based on the touch action.
According to another aspect of the present invention, there is provided a computer readable storage medium for storing computer instructions, which when executed implement the touch location method as described above.
According to the touch positioning method and the touch device, after the induction data set in one frame time is obtained, the two-dimensional induction data is projected into the one-dimensional projection data, the projection peak point is determined, then the actual peak induction point is determined according to the projection corresponding relation between the first direction projection area and the second direction projection area and the induction data set, the scanning time is short, and the touch area can be quickly positioned.
In a preferred embodiment, the line width and the column width of each peak sensing point are determined according to the number of the projection peak points of each peak sensing point in the first direction projection area and the second direction projection area, which are larger than a predetermined threshold value before and after the projection peak point, so that a first peak area of the position of each peak sensing point is determined, the edge of the first peak area is optimized, and the peak sensing area, namely a touch area, is determined, so that the contour of the touch area is obtained simply, and the location of the touch area is accurate.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 shows a schematic diagram of a touch device in the prior art.
FIG. 2 is a flowchart of a touch location method according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a touch positioning method according to an embodiment of the invention.
Fig. 4 shows a second schematic diagram of a touch positioning method according to an embodiment of the invention.
Fig. 5 is a third schematic diagram illustrating a touch positioning method according to an embodiment of the invention.
Fig. 6 shows a fourth schematic diagram of a touch positioning method according to an embodiment of the invention.
Fig. 7 shows a touch device according to an embodiment of the invention.
Detailed Description
Various embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. In the various figures, the same elements or modules are denoted by the same or similar reference numerals. For purposes of clarity, the various features in the drawings are not necessarily drawn to scale.
It should be understood that in the following description, "circuitry" may comprise singly or in combination hardware circuitry, programmable circuitry, state machine circuitry, and/or elements capable of storing instructions executed by programmable circuitry. When an element or circuit is referred to as being "connected to" another element or circuit is referred to as being "connected between" two nodes, it may be directly coupled or connected to the other element or intervening elements may be present, and the connection between the elements may be physical, logical, or a combination thereof. In contrast, when an element is referred to as being "directly coupled" or "directly connected" to another element, it is intended that there are no intervening elements present.
Also, certain terms are used throughout the description and claims to refer to particular components. As one of ordinary skill in the art will appreciate, manufacturers may refer to a component by different names. This patent specification and claims do not intend to distinguish between components that differ in name but not function.
Moreover, it is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 1 shows a schematic diagram of a touch device according to the prior art. Referring to fig. 1, the touch device includes a touch sensing unit including a plurality of first sensing lines 11, a plurality of second sensing lines 12, a front-end circuit 13, and a touch sensor 14. The first sensing lines 11 and the second sensing lines 12 are insulated from each other and cross each other to form a plurality of sensing points 15, the first sensing lines 11 are parallel to each other and extend in a first direction (for example, X direction), and the second sensing lines 12 are parallel to each other and extend in a second direction (for example, Y direction). The first sensing lines 11 are electrically connected to a front-end circuit 13, and the front-end circuit 13 is electrically connected to a touch sensor 14.
When the touch screen is pressed, the sensing capacitance corresponding to the touched sensing point 15 changes, and the front-end circuit 13 can obtain the sensing data of the touched sensing point 15. The touch sensor 14 obtains the sensing data of each sensing point 15 in a specific scanning sequence, and finds out a plurality of sensing points whose sensing data is greater than a predetermined threshold, and then the touch sensor 14 performs full-screen scanning in the specific scanning sequence to compare the sensing points 15 whose sensing data is greater than the predetermined threshold with the sensing data of the neighboring sensing points 15 to determine peak sensing.
For better understanding of the present invention, the present invention is described in detail below by using a set of sensing data, and fig. 3 to 6 use the same set of sensing data, which is 32 rows and 18 columns of sensing data within one frame time.
FIG. 2 is a flowchart of a touch location method according to an embodiment of the present invention; FIG. 3 is a diagram illustrating a touch location method according to an embodiment of the present invention; FIG. 4 is a second schematic diagram illustrating a touch positioning method according to an embodiment of the invention; FIG. 5 is a third schematic diagram illustrating a touch positioning method according to an embodiment of the invention; fig. 6 shows a fourth schematic diagram of a touch positioning method according to an embodiment of the invention.
The touch positioning method provided by the invention comprises the following steps:
s1, acquiring a sensing data group, wherein the sensing data group comprises a plurality of sensing data arranged in an array;
s2, respectively projecting the maximum sensing data of each line in the sensing data group to a first coordinate axis to form a first direction projection area 20; projecting the maximum sensing data of each column in the sensing data set to a second coordinate axis respectively to form a second direction projection area 30;
s3, respectively acquiring projection peak points of the first direction projection area 20 and the second direction projection area 30;
s4, determining the actual peak sensing point according to the projection peak point of the first direction projection area 20 and the second direction projection area 30 and the corresponding relation of the sensing data group; and determining a touch track according to each peak sensing point.
Further, step S2: projecting the maximum sensing data of each column in the sensing data set to a first coordinate axis respectively to form a first direction projection area 20; the maximum sensing data of each line in the sensing data set are respectively projected to a second coordinate axis to form a second direction projection area 30, wherein the projection can be realized by a pure software program, and the specific program is as follows:
Figure BDA0003438853380000071
Figure BDA0003438853380000081
in the above-mentioned program, int16 is the width of data, XN is the projection in the X-axis direction, YN is the projection in the Y-axis direction, Diff is the induction, Diff [32] [18] is 32 rows × 18 columns of one frame of induction data, memcpy is the memory copy, for (int i ═ 0; i < 32; i + +) is sought by row, YN [ i ] ═ Diff [ i ] [0] is the initial value of Y-axis projection, for (int j ═ 0; j < 18; j + + { if (Diff [ i ] [ j ] > YN [ i ]) { YN [ i ] > Diff j ] is one row of 18-pass complete projections, if (Diff [ i ] [ j ] { XN [ j ] }' XN [ j ] } xnf [ i ] [ j ]; is the X-axis projection line.
Further, step S2: projecting the maximum sensing data of each column in the sensing data set to a first coordinate axis respectively to form a first direction projection area 20; the maximum sensing data of each row in the sensing data set are respectively projected to a second coordinate axis to form a second direction projection area 30, wherein the projection can be realized by matching an ALU accelerator with a software program, and the specific formula is as follows:
XN=(x1 x2…xN-1 xN)
B=(Diff[m][0] Diff[m][1]...Diff[m][N-2] Diff[m][N-1])
XN=((max(x1,Diff[m][0]) max(x2,Diff[m][1])...max(xN-1,Diff[m][N-2]) max(xN,Diff[m][N-1])))
YN=(y1 y2…yM-1 yM)
B=(Diff[0][n] Diff[1][n]…Diff[M-2][n] Diff[M-1][n])
YN=((max(y1,Diff[0][n]) max(y2,Diff[1][n])...max(yN-1,Diff[M-2][n]) max(yN,Diff[M-2][n])))
an ALU is, for example, a computation accelerator module of an IC, which is a combinational logic circuit that can implement multiple sets of arithmetic operations and logical operations. In the above formula, XN is projection in X-axis direction, YN is projection in Y-axis direction, M is maximum number of lines of full screen sensing, N is maximum number of columns of full screen sensing, N is positive integer, XN '/YN' is maximum value of column/row sensing data calculated by ALU micro-operator, B is sensing amount set, projection in X-axis direction and projection in Y-axis direction can be obtained through M + N times of ALU operation, forming the first direction projection area 20 and the second direction projection area 30 shown in fig. 3-6.
Further, step S3: the step of acquiring the projection peak points of the first direction projection area 20 and the second direction projection area 30 respectively comprises:
traversing the first direction projection area 20 and the second direction projection area 30, respectively, determining the projection point where the sensing data is greater than a set threshold (the set threshold in this embodiment is 150 as an example), and is greater than the sensing data adjacent to the set threshold as a projection peak point. The points where the data enclosed by the dashed oval circles in fig. 3-6 are the projection peak points on the first direction projection area 20 and the second direction projection area 30, and the projection peak points can be obtained by the ALU algorithm.
Further, step S4: the step of determining the actual peak sensing point according to the corresponding relationship between the projected peak points of the first direction projection area 20 and the second direction projection area 30 and the sensing data set includes: respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area 20 in the sensing data group as a first alternative channel; respectively determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area 30 in the sensing data group as a second alternative channel; obtaining at least one induction point at the intersection point of a first alternative channel and a second alternative channel in an induction data set; and determining the induction points with induction data larger than a set threshold value in at least one induction point at the intersection point position as actual peak induction points.
Referring to fig. 5, the row where the sensing data 737, 767, 800, 879, 807 at the first peak sensing point of the first direction projection area 20 is located is a first candidate channel, the column where the sensing data 807, 767, 879, 800 at the second peak sensing point of the second direction projection area 30 is located is a second candidate channel, the first candidate channel where the sensing data 737 is located and the second candidate channel intersect to obtain intersection points R (1,1), G (1,2), G (1,3), G (1,4), and then the relationship between the intersection points R (1,1), G (1,2), G (1,3), G (1,1) and a predetermined threshold is determined, the determination mode is not limited, and only the sensing data at the intersection point R (1,1) is determined to be greater than the predetermined threshold by a software program or an ALU algorithm, so that the intersection point R (1,1) is an actual peak sensing point, and the sensing data at the intersection points G (1,2), G (1,3) and G (1,1) are smaller than the predetermined threshold, so that G (1,2), G (1,3) and G (1,4) are ghost points in the field and need to be filtered out. Fig. 5 shows only a part of the intersection points for clarity of display, and in the actual determination process, the intersection points of all the first candidate channels and the second candidate channels need to be obtained, the sensing data at all the intersection points is compared with the predetermined threshold, and then the points where the sensing data smaller than the predetermined threshold are located are filtered.
According to the touch positioning method provided by the embodiment of the invention, after the sensing data in one frame time is acquired, the two-dimensional sensing data is projected into the one-dimensional projection data, the projection peak point is determined, and then the actual peak sensing point is determined according to the projection corresponding relation between the first direction projection area 20 and the second direction projection area 30 and the sensing data group, so that the scanning time is short, and the touch area can be quickly positioned.
The touch positioning method provided by the invention can also determine the peak sensing area of the position of each peak sensing point according to the projection peak points of the first direction projection area 20 and the second direction projection area 30.
Further, the step of determining the peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area 20 and the second direction projection area 30 includes: respectively acquiring the number of sensing points of which the front and back of the projection peak point of each peak sensing point in the first direction projection area 20 are larger than a set threshold value as line width; respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width; determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and optimizing and determining the peak induction area of the position of each peak induction point at the edge of the first peak area. And the projection peak point and the area where the sensing points before and after the projection peak point are larger than the set threshold are positioned are projection peak areas.
Referring to fig. 5, taking the sensing data 807 on the actual peak sensing point as an example, the projection peak area of the projection peak area 20 in the first direction is YP5, the projection peak 807 is preceded by data 379 larger than a predetermined threshold value and followed by data 499 larger than a predetermined threshold value, the projection peak area of the projection peak 807 in the projection area in the second direction is XP1, the projection peak area is preceded by two data 169 and 567 larger than a predetermined threshold value and followed by two data 790 and 346 larger than a predetermined threshold value, so that the line width of the peak sensing point can be determined as front 1 and back 1, and the column width is determined as front 2 and back 2. YP1-YP4 are projection peak areas of the first projection area 20, and XP2-XP4 are projection peak areas of the second projection area 30, but if the sensing data before and after the projection peak are other projection peak values, the automatic cutoff is not calculated. Then, taking the actual peak sensing point where the sensing data 807 is located as the center, and according to the sensing data corresponding to the line width and the column width of the peak sensing point in the sensing data group, the first peak area of the peak sensing point where the sensing data 807 is located can be determined, and the specific correspondence relationship is that the sensing data 807 is taken as the center, and the overlapping area of the line where the sensing data 807 is located, the previous line and the next line thereof, and the column where the sensing data 807 is located, the previous column and the next column thereof is determined as the first peak area of the peak sensing point, that is, the GP5 in fig. 6. Similarly, the first peak regions GP1-GP4 of other peak sensing points can be determined, and it can be seen from the figure that, because there may be more than two peak points on the same column or the same row in the sensing data set, shadow coverage occurs during projection, so that the row width or the column width of the sensing data set deviates, and therefore, the obtained first peak region may be inaccurate, and therefore, the edge of the first peak region needs to be optimized to obtain the actual peak sensing region.
Further, the step of determining the peak sensing area of the position where each peak sensing point is located by optimizing the edge of the first peak area includes: comparing the induction data of one boundary on the first peak value area with a set threshold value, if the induction data on the boundary are smaller than the set threshold value, moving the boundary along the direction close to the peak value induction point until at least one induction data in the boundary is larger than the set threshold value, and determining the boundary of the position where the induction data is located as the boundary of the direction; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area. Comparing the induction data of one boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all larger than the set threshold value, moving the boundary along the direction deviating from the peak value induction point until at least one induction data in the boundary is smaller than the set threshold value, and determining the boundary of the position before the position of the induction data as the boundary of the direction; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four boundaries after adjustment as a final peak sensing area.
Referring to fig. 6, the first peak regions GP1, GP5, GP3 all need to optimize the edges, wherein the boundary where arrows exist in GP1, GP5 need to be searched in the direction close to the peak sensing point, that is, in the direction pointed by the arrow, until at least one sensing data appearing in the boundary is greater than a set threshold, and the boundary where the sensing data exists is determined as the true boundary of GP1, GP 5; the boundary of the GP3 with the arrow needs to move in the direction away from the peak sensing point, i.e. the direction pointed by the arrow, until at least one sensing data in the boundary is smaller than the set threshold, and the boundary of the position before the boundary is determined as the real boundary of the GP 3.
According to the touch positioning method provided by the embodiment of the invention, the line width and the column width of each peak sensing point are determined according to the number of the projection peak points of each peak sensing point in the first direction projection area 20 and the second direction projection area 30 before and after the projection peak points are larger than the preset threshold value, so that the first peak area of the position of each peak sensing point is determined, the edge of the first peak area is optimized, and the peak sensing area, namely the touch area, is determined, so that the contour of the touch area is obtained simply, and the touch area is positioned accurately.
The present invention also provides a touch device, and fig. 7 shows a touch device according to an embodiment of the present invention, including:
the acquisition module is used for acquiring an induction data set, and the induction data set comprises a plurality of induction data which are arranged in an array;
the projection module is used for projecting the maximum sensing data of each line in the sensing data set to a first coordinate axis respectively to form a first direction projection area 20; projecting the maximum sensing data of each column in the sensing data set to a second coordinate axis respectively to form a second direction projection area 30; (ii) a
A calculating module, configured to obtain projection peak points of the first direction projection area 20 and the second direction projection area 30 respectively;
the positioning module is used for determining an actual peak sensing point according to the projection peak point of the first direction projection area 20 and the projection peak point of the second direction projection area 30 and the corresponding relation of the sensing data group; and determining a touch track according to each peak sensing point.
Further, the projection module may implement projection by a pure software program, an ALU accelerator, and software, and the specific program or formula is described in the above touch positioning method, which is not described herein any more.
Further, the calculation module is configured to: traversing the first direction projection area 20 and the second direction projection area 30, respectively, determining the projection point where the sensing data is greater than a set threshold (the set threshold in this embodiment is 150 as an example), and is greater than the sensing data adjacent to the set threshold as a projection peak point. The above calculations may be performed using, for example, an ALU algorithm, and the algorithm program may be disposed in a computer readable storage medium.
Further, the positioning module is configured to: the step of determining the actual peak sensing point according to the corresponding relationship between the projected peak points of the first direction projection area 20 and the second direction projection area 30 and the sensing data set includes: respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area 20 in the sensing data group as a first alternative channel; respectively determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area 30 in the sensing data group as a second alternative channel; obtaining at least one induction point at the intersection point of a first alternative channel and a second alternative channel in an induction data set; and determining the induction points with the induction data larger than a set threshold value in at least one induction point at the intersection point position as actual peak induction points, and filtering the induction points with the induction data smaller than the set threshold value in at least one induction point at the intersection point position.
In the touch device provided by the embodiment of the invention, the projection module projects two-dimensional sensing data into one-dimensional projection data after acquiring the sensing data within one frame time, the calculation module determines the projection peak point, and the positioning module determines the actual peak sensing point according to the projection corresponding relationship between the first direction projection area 20 and the second direction projection area 30 and the sensing data set, so that the scanning time is short, and the touch area can be quickly positioned.
In the touch device provided by the invention, the positioning module can also determine the peak sensing area at the position of each peak sensing point according to the projection peak points of the first direction projection area 20 and the second direction projection area 30.
Further, the positioning module is further configured to: respectively acquiring the number of sensing points of which the front and back of the projection peak point of each peak sensing point in the first direction projection area 20 are larger than a set threshold value as line width; respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width; determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and optimizing the edge of the first peak area to determine the peak induction area of the position of each peak induction point. And the projection peak point and the area where the sensing points before and after the projection peak point are larger than the set threshold are positioned are projection peak areas.
Further, the positioning module is further configured to perform the following operations to optimize the first peak region edge: comparing the induction data of one boundary on the first peak value area with a set threshold value, if the induction data on the boundary are smaller than the set threshold value, moving the boundary along the direction close to the peak value induction point until at least one induction data in the boundary is larger than the set threshold value, and determining the boundary of the position where the induction data is located as the boundary of the direction; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area. Comparing the induction data of one boundary on the first peak value area with a set sufficient threshold value, if the induction data on the boundary are all larger than the set threshold value, moving the boundary along the direction deviating from the peak value induction point until at least one induction data in the boundary is smaller than the set threshold value, and determining the boundary of the position before the position of the induction data as the boundary of the direction; repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four boundaries after adjustment as a final peak sensing area.
In the touch device provided in the embodiment of the present invention, the positioning module determines the line width and the column width of each peak sensing point according to the number of the projection peak points of each peak sensing point before and after the projection peak points of the first direction projection area 20 and the second direction projection area 30, which are greater than the predetermined threshold, so as to determine the first peak area at the position of each peak sensing point, optimize the edge of the first peak area, and determine the peak sensing area, i.e., the touch area, so that the contour of the touch area is obtained simply, and the touch area is accurately positioned.
An embodiment of the present invention further provides a touch device, including: the touch screen and the controller are connected with each other, wherein the touch screen is used for receiving touch control actions; the controller is used for executing the touch positioning method of the embodiment based on the touch action.
In the touch device provided by the embodiment of the invention, the controller executes the touch positioning method of the embodiment to project the two-dimensional sensing data into one-dimensional projection data, the actual peak sensing point is determined according to the projection corresponding relationship between the first direction projection area 20 and the second direction projection area 30 and the sensing data set after the projection peak point is determined, the scanning time is short, and the touch area can be quickly positioned.
The embodiment of the invention also provides a computer-readable storage medium, wherein computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed, the touch positioning method of the embodiment is realized.
Specifically, the readable storage medium includes: a U disk, a removable hard disk, a read-only memory, etc. for storing program codes.
The computer-readable storage medium provided by the embodiment of the invention realizes the application program of the embodiment when the computing instruction is executed, and can quickly and accurately position the touch area.
It should be noted that as used herein, the words "during", "when" and "when … …" in relation to the operation of a circuit are not strict terms indicating an action that occurs immediately upon the start of a startup action, but rather there may be some small but reasonable delay or delays, such as various transmission delays, between it and the reaction action (action) initiated by the startup action. The words "about" or "substantially" are used herein to mean that the value of an element (element) has a parameter that is expected to be close to the stated value or position. However, as is well known in the art, there is always a slight deviation that makes it difficult for the value or position to be exactly the stated value. It has been well established in the art that a deviation of at least ten percent (10%) for a semiconductor doping concentration of at least twenty percent (20%) is a reasonable deviation from the exact ideal target described. When used in conjunction with a signal state, the actual voltage value or logic state (e.g., "1" or "0") of the signal depends on whether positive or negative logic is used.
The steps of the methods described herein are presented by way of example only and are not meant to be strictly limiting as to the order of steps unless otherwise specifically indicated, as one of ordinary skill in the art may alter the order of steps based on actual process conditions. The numbers of components in the products described herein are by way of example only and are not meant to strictly limit the numerical values of the numbers unless otherwise specifically indicated, and those skilled in the art may vary the numerical values of the numbers depending on the actual product requirements.
In accordance with the present invention, as set forth above, these embodiments are not intended to be exhaustive or to limit the invention to the precise embodiments disclosed. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the invention and the practical application, to thereby enable others skilled in the art to best utilize the invention and various embodiments with various modifications as are suited to the particular use contemplated. The scope of the invention should be determined with reference to the appended claims and their equivalents.

Claims (16)

1. A touch positioning method comprises the following steps:
acquiring a sensing data set, wherein the sensing data set comprises a plurality of sensing data arranged in an array;
respectively projecting the maximum sensing data of each column in the sensing data group to a first coordinate axis to form a first direction projection area;
respectively projecting the maximum sensing data of each line in the sensing data set to a second coordinate axis to form a second direction projection area;
respectively acquiring projection peak points of the first direction projection area and the second direction projection area;
determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relation of the sensing data group; and
and determining a touch track according to each peak induction point.
2. The touch location method of claim 1, further comprising:
and determining the peak sensing area of the position of each peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area.
3. The touch positioning method according to claim 1, wherein the step of obtaining the projection peak points of the first direction projection area and the second direction projection area respectively comprises:
and respectively traversing the first direction projection area and the second direction projection area, and determining projection points of which the sensing data are greater than a set threshold value and greater than the sensing data adjacent to the sensing data as the projection peak points.
4. The touch positioning method according to claim 1, wherein the step of determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relationship of the sensing data sets comprises:
respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area in the sensing data group as a first alternative channel;
determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area in the sensing data group as a second alternative channel;
obtaining at least one sensing point at the intersection point of the first alternative channel and the second alternative channel in the sensing data set; and
and determining the induction point with induction data larger than a set threshold value in at least one induction point at the intersection point position as the actual peak induction point.
5. The touch positioning method according to claim 2, wherein the step of determining the peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area and the second direction projection area comprises:
respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the first direction projection area are larger than a set threshold value as line width;
respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width;
determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and
and optimizing the edge of the first peak area to determine the peak induction area of the position where each peak induction point is located.
6. The touch location method of claim 5, wherein the step of optimizing the first peak area edge to determine the peak sensing area where the respective peak sensing point is located comprises:
comparing the sensed data of a boundary on the first peak region with a set threshold,
if the induction data on the boundary are all smaller than the set threshold, moving the boundary along the direction close to the peak induction point until at least one induction data in the boundary is larger than the set threshold;
repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
7. The touch location method of claim 5, wherein the step of optimizing the first peak area edge to determine a peak area where the respective peak sensing point is located comprises:
comparing the sensed data of a boundary on the first peak region with a set threshold,
if the induction data on the boundary are all larger than the set threshold, moving the boundary along the direction deviating from the peak induction point until at least one induction data in the boundary is smaller than the set threshold;
repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
8. A touch device, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an induction data set, and the induction data set comprises a plurality of induction data which are arranged in an array;
the projection module is used for projecting the maximum sensing data of each column in the sensing data set to a first coordinate axis respectively to form a first direction projection area; respectively projecting the maximum sensing data of each line in the sensing data set to a second coordinate axis to form a second direction projection area;
the calculation module is used for respectively acquiring projection peak points of the first direction projection area and the second direction projection area;
the positioning module is used for determining an actual peak sensing point according to the projection peak points of the first direction projection area and the second direction projection area and the corresponding relation of the sensing data group; and
and determining a touch track according to each peak induction point.
9. The touch device of claim 8,
the positioning module is further configured to determine a peak sensing area where each peak sensing point is located according to the projection peak points of the first direction projection area and the second direction projection area.
10. The touch device of claim 8, the computing module configured to:
and respectively traversing the first direction projection area and the second direction projection area, and determining projection points of which the sensing data are greater than a set threshold value and greater than the sensing data adjacent to the sensing data as the projection peak points.
11. The touch device of claim 8, the positioning module configured to:
respectively determining a row of sensing data corresponding to at least one first peak sensing point of the first direction projection area in the sensing data group as a first alternative channel;
determining a column of sensing data corresponding to at least one second peak sensing point of the second direction projection area in the sensing data group as a second alternative channel;
obtaining at least one sensing point at the intersection point of the first alternative channel and the second alternative channel in the sensing data set; and
and determining the induction point with induction data larger than a set threshold value in at least one induction point at the intersection point position as the actual peak induction point.
12. The touch device of claim 9, the positioning module further configured to:
respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the first direction projection area are larger than a set threshold value as line width;
respectively acquiring the number of induction points of which the front and the back of the projection peak point of each peak induction point in the projection area in the second direction are larger than a set threshold value as the column width;
determining a first peak area by taking each peak induction point as a center and according to the corresponding induction data of the line width and the column width of each peak induction point in the induction quantity data set; and
and optimizing the edge of the first peak area to determine the peak induction area of the position where each peak induction point is located.
13. The touch device of claim 12, the positioning module further configured to optimize the first peak area edge by:
comparing the sensed data of a boundary on the first peak region with a set threshold,
if the induction data on the boundary are all smaller than the set threshold, moving the boundary along the direction close to the peak induction point until at least one induction data in the boundary is larger than the set threshold;
repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
14. The touch device of claim 12, the positioning module further configured to optimize the first peak area edge by:
comparing the sensed data of a boundary on the first peak region with a set threshold,
if the induction data on the boundary are all larger than the set threshold, moving the boundary along the direction deviating from the peak induction point until at least one induction data in the boundary is smaller than the set threshold;
repeating the comparison until the four boundaries of the first peak area are adjusted; and setting the area determined by the four adjusted boundaries as the final peak induction area.
15. A touch device, comprising: a touch screen and a controller connected to each other, wherein,
the touch screen is used for receiving touch actions;
the controller is configured to perform the touch location method according to any one of claims 1-7 based on the touch action.
16. A computer readable storage medium storing computer instructions which, when executed, implement the touch location method of any of claims 1-7.
CN202111622942.XA 2021-12-28 2021-12-28 Touch device and touch positioning method Pending CN114327161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111622942.XA CN114327161A (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111622942.XA CN114327161A (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Publications (1)

Publication Number Publication Date
CN114327161A true CN114327161A (en) 2022-04-12

Family

ID=81014728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111622942.XA Pending CN114327161A (en) 2021-12-28 2021-12-28 Touch device and touch positioning method

Country Status (1)

Country Link
CN (1) CN114327161A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957699A (en) * 2009-07-15 2011-01-26 瑞鼎科技股份有限公司 Touch input device and touch sensing circuit
CN102023765A (en) * 2009-09-14 2011-04-20 义隆电子股份有限公司 Positioning method for capacitance touch control plate of two dimension type configuration
CN102253771A (en) * 2010-05-20 2011-11-23 义隆电子股份有限公司 Sensing unit, sensing circuit and sensing method for capacitive touch panel
US20130154993A1 (en) * 2011-12-14 2013-06-20 Luben Hristov Hristov Method For Determining Coordinates Of Touches
CN103365510A (en) * 2012-04-06 2013-10-23 矽统科技股份有限公司 Method of reducing computation of palm rejection by projecting touch data
GB2502596A (en) * 2012-05-31 2013-12-04 Zytronic Displays Ltd A method of operating a touch sensitive display
CN104133600A (en) * 2013-05-02 2014-11-05 义隆电子股份有限公司 Liquid identification method of touch panel
US20150130750A1 (en) * 2012-05-31 2015-05-14 Zytronic Displays Limited Touch sensitive displays
CN108762653A (en) * 2018-04-26 2018-11-06 北京集创北方科技股份有限公司 Touch localization method, device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101957699A (en) * 2009-07-15 2011-01-26 瑞鼎科技股份有限公司 Touch input device and touch sensing circuit
CN102023765A (en) * 2009-09-14 2011-04-20 义隆电子股份有限公司 Positioning method for capacitance touch control plate of two dimension type configuration
CN102253771A (en) * 2010-05-20 2011-11-23 义隆电子股份有限公司 Sensing unit, sensing circuit and sensing method for capacitive touch panel
US20130154993A1 (en) * 2011-12-14 2013-06-20 Luben Hristov Hristov Method For Determining Coordinates Of Touches
CN103365510A (en) * 2012-04-06 2013-10-23 矽统科技股份有限公司 Method of reducing computation of palm rejection by projecting touch data
GB2502596A (en) * 2012-05-31 2013-12-04 Zytronic Displays Ltd A method of operating a touch sensitive display
US20150130750A1 (en) * 2012-05-31 2015-05-14 Zytronic Displays Limited Touch sensitive displays
CN104133600A (en) * 2013-05-02 2014-11-05 义隆电子股份有限公司 Liquid identification method of touch panel
CN108762653A (en) * 2018-04-26 2018-11-06 北京集创北方科技股份有限公司 Touch localization method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张倩洋;张钊锋;李宝骐;: "互电容触控坐标精确处理和上报算法", 电视技术, no. 10, 17 October 2016 (2016-10-17), pages 55 - 59 *

Similar Documents

Publication Publication Date Title
EP2241959B1 (en) Touch-panel device
US20200133412A1 (en) Baseline update for input object detection
US20160070413A1 (en) Method and System for Resolving Multiple Proximate Touches
US9218097B2 (en) Capacitive touch device capable of avoiding reduced frame rate and sensing method thereof
JPH07306752A (en) Touch panel input device
US20110157074A1 (en) Touch detecting device and method
CN109508138B (en) Corner touch control identification method and device based on area mirror image and mobile terminal
WO2019014858A1 (en) Touch detection method and touch detection device
CN106778587A (en) State of flight detection method and device based on unmanned plane image
US11163403B2 (en) Touch positioning method and apparatus, and electronic device
CN108958565B (en) Coordinate calculation method for multi-point capacitive touch, touch device and mobile terminal
CN113126815B (en) Key response control method and device, terminal equipment and storage medium
CN114327161A (en) Touch device and touch positioning method
CN113934312A (en) Touch object identification method based on infrared touch screen and terminal equipment
CN103135873B (en) Touch sensing system and operation method thereof
US10649593B2 (en) Hand holding state detection method, capacitive touch apparatus and electronic device
CN113327204B (en) Image calibration method, device, equipment and storage medium
CN113126814B (en) Key non-response correction method and device, terminal equipment and storage medium
CN111666004B (en) Scanning control method and device for mutual capacitance type capacitive screen and mutual capacitance type capacitive screen
CN109324716B (en) Touch screen anti-interference method based on hill climbing algorithm, touch device and mobile terminal
CN114995741A (en) Multi-point touch method, device and system for multi-screen display
US20170031493A1 (en) Correcting coordinate jitter in touch screen displays due to forceful touches
TWI763859B (en) Sensing method of touch recognition device and sensing module thereof
US20200019269A1 (en) Touch screen device having improved floating mode entry conditions
US11287929B1 (en) Method for locating touched position, locating device, and touch display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination