Infrared touch screen multi-point touch identification method based on clustering algorithm

Through the clustering algorithm and K-d tree optimization technology, the problem of low corner area recognition accuracy and slow response speed of the infrared touch screen is solved, and high-accuracy and low-latency multi-touch recognition is achieved, improving the user experience.

CN118689342APending Publication Date: 2024-09-24SHANGHAI SECOND POLYTECHNIC UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410717485.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Infrared touch screens have touch blind areas in the corner areas, low recognition accuracy, and slow response speed. They are limited by hardware cost and algorithm efficiency, and cannot meet the accuracy and speed requirements of modern applications.

Method used

Using a multi-touch recognition method based on a clustering algorithm, through scan line collection and pit processing, combined with pattern recognition and computational geometry methods, K-d trees are used to optimize data organization, classify intersection sets and eliminate ghost points, improving recognition accuracy and Response speed.

Benefits of technology

It improves the recognition accuracy and response speed of the infrared touch screen, reduces system delays, eliminates blind spots in corner areas, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689342A
    Figure CN118689342A
Patent Text Reader

Abstract

The invention discloses an infrared touch screen multi-point touch recognition method based on a clustering algorithm. The method comprises the following steps: collecting numbers and deviation angles of shielded scanning lines in the X-axis direction and the Y-axis direction, and judging the number and the touch diameter of touch points according to pits; performing center line taking processing on parallel scanning lines in the shielded scanning lines of the touch points in the X-axis direction and the Y-axis direction, and calculating intersection points of all the preprocessed scanning lines; clustering the intersection points by using an intersection point set classification and division clustering algorithm, and taking the center of a clustered class cluster as a candidate actual touch point; and calculating expected scanning lines of all candidate actual touch points, carrying out centerline taking processing on parallel scanning lines, comparing the centerline with the shielded scanning lines after actual preprocessing, and eliminating ghost points. According to the method, the infrared scanning lines are collected and are analyzed and calculated by combining mode recognition and geometric calculation methods, so that the touch points are quickly and accurately recognized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of infrared touch screen multi-touch recognition, and in particular relates to an infrared touch screen multi-touch recognition method based on a clustering algorithm. Background Art

[0002] With the development of technology and the growth of user needs, single-point touch can no longer meet the requirements of modern applications, and multi-point touch technology has become a new development trend. The application scenarios of touch screens are constantly expanding, and the performance requirements for touch screens, including calculation accuracy, recognition accuracy, and response speed, are also increasing. The accuracy of infrared touch screens is restricted by the density of infrared scan lines and algorithm performance. The denser the scan lines, the finer the detection of touch points, thereby improving touch accuracy. However, increasing the number of scan lines may lead to increased system costs and hardware complexity. In addition, due to the characteristics of its hardware structure and sensor layout, infrared touch screens usually have touch blind areas in the corners of the screen. The touch signals in these areas are weak or cannot be accurately recognized, affecting the recognition accuracy and thus the overall user experience.

[0003] At the same time, the response speed of the touch screen is not only affected by the scanning time, but also by the efficiency of the recognition algorithm. As the size of the touch screen increases, the time required for sensor scanning increases, and the time for coordinate recognition and solution will also be correspondingly extended. These factors jointly affect the application scope of infrared touch screens. Summary of the invention

[0004] In view of the above-mentioned deficiencies of the prior art, the present invention proposes a high-accuracy, high-precision and low-latency infrared touch screen multi-touch recognition method based on clustering algorithm. The present invention collects infrared scan lines emitted by the sensor, analyzes and calculates them in combination with pattern recognition and computational geometry methods, and realizes rapid and accurate recognition of touch points. The method of the present invention can improve the recognition accuracy, precision and response speed of infrared touch screens, and help improve the product performance of infrared touch screens and enhance user experience.

[0005] The purpose of the present invention can be achieved through the following technical solutions.

[0006] A multi-touch recognition method for an infrared touch screen based on a clustering algorithm comprises the following steps: Step 1: Scan line acquisition and pit processing Collect the number of the scan line blocked by the touch point in the X-axis direction and the Y-axis direction (that is, the number of the infrared transmitter) and the offset angle, and determine the number of touch points and the touch diameter based on the pits formed on the scan line due to the touch point blocking; Step 2: Scan line preprocessing and intersection calculation Process the blocked scan lines recorded in the X-axis and Y-axis directions of each touch point. If there are parallel scan lines, use the sorting algorithm to process the center lines of multiple parallel scan lines until all parallel scan lines in each pit are processed, and calculate the intersection points of all center scan lines and non-parallel scan lines in the X-axis and Y-axis directions; Step 3: Pattern Recognition The intersection points are clustered using the intersection set classification and partitioning clustering algorithm, and the cluster centers obtained by clustering are candidate actual touch points; if the number of cluster centers is equal to the number of touch points, the centers of all clusters are calculated, which are the coordinates of the actual touch points, otherwise, proceed to step 4; Step 4: Remove ghost spots For each candidate actual touch point, draw a circle with its central coordinate as the center and the touch diameter estimated in step 1. Assume that the touch point is a real touch point, record the number and offset angle of the blocked scan line, and perform a midline operation on the parallel scan lines to obtain the expected scan line of the candidate actual touch point, and compare it with the actual blocked scan line in step 2. If the expected scan line and the actual scan line in the X-axis direction and the Y-axis direction are basically consistent, then the candidate actual touch point is judged to be the actual touch point and its coordinates are output. Otherwise, it is judged to be a ghost point and the candidate actual touch point is excluded.

[0007] In the present invention, in step 2, the specific method of taking the center line of the blocked scan line and calculating the intersection point is: Step 2.1: In the X-axis direction, starting from the first offset angle scan line of the first emitter lamp within the pit range, increase the emitter lamp number in turn to find the parallel scan line, then process the scan line of the second offset angle, and process the scan lines of all offset angles in turn until all parallel scan lines of each pit in all X-axis directions have been found; Step 2.2: In the Y-axis direction, take the same approach as in step 2.1; Step 2.3: Perform a centerline operation on the parallel scan lines in each pit in the X-axis direction and the Y-axis direction, and the obtained centerline has the same offset angle as the scan line before processing; Step 2.4: Find the intersection points of the center scan lines and non-parallel scan lines after all pit processing in the X-axis direction, and the center scan lines and non-parallel scan lines after all pit processing in the Y-axis direction to obtain an intersection point set.

[0008] In the present invention, in step 3, the intersection points of the pit scan lines are clustered using the intersection set classification and partitioning clustering algorithm and the candidate actual touch points are output. The specific method is as follows: Step 3.1: Preprocess the two-dimensional intersection data and use the Kd tree to optimize the organization of the data in space, thereby speeding up the search for neighboring points; Step 3.2: Identify the central area, transition area, and peripheral area; Step 3.3: For any two central regions, as long as they are reachable from each other, they are merged into the same cluster; for each point in the transition region, if there is a reachable central point, the point in the transition region is assigned to the corresponding cluster; for the peripheral region, the region is directly excluded; Step 3.4: Output the center coordinates of each central area after final merging and allocation, that is, calculate the coordinate position of the actual touch point.

[0009] In the present invention, in step 3.1, the specific steps of the construction process of the Kd tree that optimizes the organization of data in space are: Step 3.1.1: Starting from the root node, select the first dimension; Step 3.1.2: Sort all points in the current dimension and select the median point as the node split point; Step 3.1.3: Create a binary tree node containing the coordinates of the median point; the median point divides the current point set into two subsets: one subset contains all points whose values ​​in the current dimension are less than or equal to the median point, and the other subset contains all points whose values ​​are greater than the median point; Step 3.1.4: Repeat the above process recursively for the two subsets that have been split; the left subtree contains the set of points that are less than or equal to the median point, and the right subtree contains the set of points that are greater than the median point; if there is only one point left or no point in the subset, the node becomes a leaf node; Step 3.1.5: When the number of points in each subset is less than a given threshold, or reaches a predetermined maximum depth, the recursion stops and the node at this time is regarded as a leaf node; Step 3.1.6: The final result is the root node, which contains the entire Kd tree structure in the form of linked child nodes.

[0010] In the present invention, in step 3.2, the specific steps of identifying the central area, the transition area and the peripheral area are: Step 3.2.1: Initialize the standard number m and standard distance S for defining K nearest neighbors; Step 3.2.2: Loop through each unvisited intersection in the data, and for each point, find its K nearest neighbors. Step 3.2.3: Calculate the distance s from the point to its Kth nearest neighbor and define a neighbor set; Step 3.2.4: If s ≤ S, assign the point to a cluster and make the following judgment: if s ≤ S / 2, it is considered that a central area has been found and the neighbor set is added to the central area; otherwise, the single central point is added to the central area; Step 3.2.5: Find the determined center points in the neighbor set and merge these points with the existing clusters; Step 3.2.6: If S < s and s ≤ 2S, add the neighbor set in the range s - S to the transition region; if s ≥ 2S, mark the neighbor set in the range s - 2S as the peripheral region; Step 3.2.7: Extract the center of each central area and use it to represent the entire central area, in preparation for subsequent rapid distance comparison and area merging allocation.

[0011] In the present invention, in step 3.3, the specific steps of determining the reachable distance of each area are: Step 3.3.1: Traverse each central area and find the neighbor point set of each area center within a certain distance range; Step 3.3.2: For any two sets of central regions p and q, if they belong to different clusters and if the distance between p and q < S, it means that the region distance is reachable and they are directly merged into the same cluster; if the distance between p and q > S+sp+sq, they do not need to be merged; Step 3.3.3: Traverse each transition area, assuming that one of the transition areas is m, and find the neighbor point set of each transition area within a certain distance range; Step 3.3.4: Assume that one of the central regions is n. If the distance between m and n is greater than S+sm+sn, the transition region distance is unreachable. If the distance between m and n is less than or equal to S - sm, the transition region is completely contained in the central region n. The transition region m is directly assigned to the cluster where the central region n is located.

[0012] Compared with the prior art, the present invention has the following beneficial effects: (1): By taking the center line of the parallel scan lines in the pit, the number of scan lines is reduced, the response time is reduced, and a better foundation is provided for subsequent pattern recognition processing of scan line intersections and elimination of ghost points.

[0013] (2): By using Kd Tree to efficiently process two-dimensional data and divide the intersections into different areas for clustering, the recognition accuracy is improved and the delay is reduced.

[0014] (3): The infrared touch screen multi-touch recognition method based on clustering algorithm processes the intersection points. Even in the extreme edge area, as long as there is one scanning line in each of the X-axis and Y-axis directions that blocks the touch point, this method has no blind spots and can quickly and accurately identify the touch point. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1It is a schematic flow chart of the identification method of the present invention.

[0016] Figure 2 It is a schematic diagram of taking the center line of the pit parallel scanning line of the present invention.

[0017] Figure 3 It is a schematic diagram of the intersection set classification partitioning clustering algorithm of the present invention. DETAILED DESCRIPTION

[0018] The present invention provides an infrared touch screen multi-touch recognition method based on a clustering algorithm, comprising the following steps: Step 1: Scan line acquisition and pit processing When a touch occurs, the scan lines emitted by the infrared sensor that continuously scans in the X-axis and Y-axis directions will be blocked by the touched object. Each touch point will form a pit in the X-axis and Y-axis directions. If there are multiple touch points, multiple pits will be formed. The pits are merged or divided to determine the number and diameter of the touch points. The number and offset angle of the blocked scan line of each pit are collected and recorded. The above steps are prepared for the subsequent processing of the blocked scan line and the calculation of the actual touch point coordinates.

[0019] Step 2: Scan line preprocessing and intersection calculation The blocked scan lines recorded in the X-axis and Y-axis directions of each touch point are processed. If there are parallel scan lines, an efficient sorting algorithm is used to perform a midline operation on multiple parallel scan lines until all parallel scan lines in each pit are processed. The intersection of all pre-processed scan lines in the X-axis and Y-axis directions is calculated.

[0020] Step 3: Pattern Recognition The intersection points are clustered using the intersection set classification and partitioning clustering algorithm, and the cluster centers obtained by clustering are candidate actual touch points. If the number of cluster centers is equal to the number of touch points, the centers of all clusters are calculated, which are the coordinates of the actual touch points, otherwise go to step 4.

[0021] Step 4: Remove ghost spots For each candidate actual touch point, draw a circle with its central coordinate as the center and the estimated touch diameter. Assume that the touch point is a real touch point, record the number and offset angle of the blocked scan line, and perform a midline operation on the parallel scan lines to obtain the expected scan line of the candidate actual touch point, and compare it with the actual blocked scan line in step 2. If the expected scan line and the actual scan line in the X-axis direction and the Y-axis direction are basically consistent, then the candidate actual touch point is judged to be the actual touch point and its coordinates are output. Otherwise, it is judged to be a ghost point and the candidate actual touch point is excluded.

[0022] In the present invention, in step 2, the specific method of taking the center line of the blocked scan line and calculating the intersection point is: Step 2.1: In the X-axis direction, start from the first offset angle scan line of the first emitter within the pit range and increase the emitter number in sequence to find the parallel scan line. Then, process the scan line of the second offset angle, and process the scan lines of all offset angles in sequence until all the parallel scan lines of each pit in all X-axis directions have been found.

[0023] Step 2.2: In the Y-axis direction, proceed in the same way as in step 2.1.

[0024] Step 2.3: Perform a centerline operation on the parallel scan lines in each pit in the X-axis direction and the Y-axis direction, and the obtained centerline has the same offset angle as the scan line before processing.

[0025] Step 2.4: Find the intersection points of all the scan lines processed after the pits in the X-axis direction and all the scan lines processed after the pits in the Y-axis direction in the opposite direction to obtain an intersection point set.

[0026] In the present invention, in step 3, the intersection points of the pit scan lines are clustered using the intersection set classification and partitioning clustering algorithm and the candidate actual touch points are output. The specific method is as follows: Step 3.1: Preprocess the intersection data and use the Kd tree to optimize the organization of the data in space, thereby speeding up the search for neighboring points.

[0027] Step 3.2: Identify the central region, transition region, and peripheral region.

[0028] Step 3.3: For any two central areas, as long as they are reachable from each other, they are merged into the same cluster; for each point in the transition area, if there is a reachable central point, the point in the transition area is assigned to the corresponding cluster; for the peripheral area, the area is directly excluded.

[0029] Step 3.4: Output the center coordinates of each central area after final merging and allocation, that is, the calculated coordinate positions of the actual touch points.

[0030] In the present invention, in step 3.1, the process of constructing the Kd tree of the two-dimensional intersection data comprises the following specific steps: Step 3.1.1: Starting from the root node, select the first dimension (for example, the X dimension). In subsequent recursive steps, alternate the dimensions (if the current dimension is the X dimension, the next choice is the Y dimension, then back to the X dimension, and so on).

[0031] Step 3.1.2: In the current dimension, sort all points and select the median point as the node splitting point, which can be achieved by finding the point in the middle through the sorting algorithm.

[0032] Step 3.1.3: Create a binary tree node containing the coordinates of the median point. This point divides the current point set into two subsets: one subset contains all points whose values ​​in the current dimension are less than or equal to the median point, and the other subset contains all points whose values ​​are greater than the median point.

[0033] Step 3.1.4: Repeat the above process recursively for the two subsets. The left subtree contains the set of points less than or equal to the median point, and the right subtree contains the set of points greater than the median point. If there is only one point left or no point in the subset, the node becomes a leaf node.

[0034] Step 3.1.5: When the number of points in each subset is less than a given threshold (e.g., 1 or 2 points), or when a predetermined maximum depth is reached, the recursion stops. The node at this time is a leaf node, which may contain one or more points, or no points.

[0035] Step 3.1.6: The final result is the root node, which contains the entire Kd tree structure in the form of linked child nodes.

[0036] In the present invention, in step 3.2, the identification and determination of each region is performed in the following specific steps: Step 3.2.1: Initialize the standard number m and standard distance S that define the K nearest neighbors.

[0037] Step 3.2.2: Loop through each unvisited intersection in the data, and for each point, find its K nearest neighbors.

[0038] Step 3.2.3: Calculate the distance s from the point to its Kth nearest neighbor and define a neighbor set.

[0039] Step 3.2.4: If s ≤ S, assign the point to a cluster and make the following judgment: if s ≤ S / 2, it is considered that a central area has been found and the neighbor set is added to the central area; otherwise, the single central point is added to the central area.

[0040] Step 3.2.5: Find the determined center points in the neighbor set and merge these points with the existing clusters.

[0041] Step 3.2.6: If S < s and s ≤ 2S, add the neighbor set in the range s - S to the transition region; if s ≥ 2S, mark the neighbor set in the range s - 2S as the peripheral region.

[0042] Step 3.2.7: Extract the center of each central area and use it to represent the entire central area, in preparation for subsequent rapid distance comparison and area merging allocation.

[0043] In the present invention, in step 3.3, the specific steps of determining the reachable distance of each area are: Step 3.3.1: Traverse each central area and find the neighbor point set of each area center within a certain distance range.

[0044] Step 3.3.2: For any two sets of central regions p and q, if they belong to different clusters and if the distance between p and q < S, it means that the region distance is reachable and they are directly merged into the same cluster; if the distance between p and q > S+sp+sq, they do not need to be merged.

[0045] Step 3.3.3: Traverse each transition area, assuming that one of the transition areas is m, and find the neighbor point set of each transition area within a certain distance range.

[0046] Step 3.3.4: Assume that one of the central regions is n. If the distance between m and n is greater than S+sm+sn, the transition region distance is unreachable. If the distance between m and n is less than or equal to S - sm, the transition region is completely contained in the central region n. The transition region m is directly assigned to the cluster where the central region n is located.

[0047] The present invention will be further described below in conjunction with the accompanying drawings and embodiments, but the protection scope of the present invention should not be limited thereto. Example 1

[0048] A multi-touch recognition method for an infrared touch screen based on a clustering algorithm comprises the following steps: Step 1: Scan line acquisition and pit processing Collect the numbers and offset angles of the scan lines blocked in the X-axis and Y-axis directions, and determine the number of touch points and touch diameter based on the pits; Two random touch points are simulated, and the scan line numbers and offset angles of the blocked touch points in the X-axis and Y-axis directions are collected. According to the pits, the number of touch points is judged to be 2 and the touch diameter is 8 mm.

[0049] Step 2: Scan line preprocessing and intersection calculation The parallel scan lines blocked in the X-axis direction and the Y-axis direction of each touch point are processed by taking the center line, and the intersection points of all pre-processed scan lines in the X-axis direction and the Y-axis direction are calculated.

[0050] Take the center line diagram as Figure 2As shown, the dotted line represents the center line calculated from the parallel scanning line in the X-axis direction or the Y-axis direction.

[0051] Step 3: Pattern Recognition The intersection points are clustered using the intersection set classification and partitioning clustering algorithm, and the cluster centers obtained by clustering are the candidate actual touch points. The specific steps are as follows: Initialization: Set the standard number of K nearest neighbors m = 3 and the standard distance S = 4mm.

[0052] Calculate the neighbor set: For the unvisited intersection data, execute a loop to find its K nearest neighbors, calculate the distance s from the point to its K nearest neighbors, and add them to the neighbor set.

[0053] (3) Region allocation: Compare the size of s in each neighbor set with 1.5, 3, and 6 to divide the region into central, transitional, and peripheral areas.

[0054] (4) Region merging: For any two sets of central regions, determine whether the distance is reachable based on the distance relationship between the center position of the central region and the standard distance S. If the distance is reachable, merge the central regions or center points; otherwise, they represent two clusters. For any transition region and any central region, determine whether the distance is reachable based on the distance relationship between the central region, the center of the transition region and the standard distance S. If the distance is reachable, merge the transition regions or transition points. Repeat until all central regions and transition regions have been judged.

[0055] The schematic diagram of area allocation and area merging is as follows: Figure 3 As shown, the solid circle represents the central area, the dotted circle represents the transition area, the dotted circle represents the peripheral area, the small black dots represent the intersection points, and the points contained in the dotted circle are directly excluded; the distance between the center of the transition area and the center of the central area is greater than 3S=12mm, so it cannot be merged with the central area and is excluded; the distance between each two groups of central areas is less than S=4mm, and they are merged into one cluster, so the final number of clusters after the merger is 2.

[0056] Step 4: Calculate the candidate actual touch points The cluster centers of each merged region are calculated, which are the candidate actual touch points.

[0057] If the number of candidate actual touch points is equal to the number of clusters, the coordinate positions of the candidate actual touch points are directly output as the coordinate positions of the actual touch points; otherwise, the process proceeds to step 5.

[0058] Step 5: Eliminate ghost points and output the actual touch point coordinates.

[0059] The expected scan lines of all candidate actual touch points are calculated, and the parallel scan lines are processed by taking the center line, and compared with the actual pre-processed blocked scan lines.

[0060] The industry generally divides the touch screen recognition accuracy into the center area (referring to the touch area greater than or equal to 50mm from the frame) and the corner area (referring to the touch area less than 50mm from the frame). The recognition accuracy in the center area must be greater than or equal to 90%, indicating good recognition; the recognition accuracy in the corner area must be greater than or equal to 80%, indicating good recognition; in the specific embodiment of the present invention, compared with the coordinate positioning algorithm (referring to the algorithm that obtains the actual touch point coordinates based on geometric calculations), the proposed algorithm has a recognition accuracy of 100% in the center area, and the recognition accuracy of the coordinate positioning algorithm is 94%. The recognition accuracy of the proposed algorithm in the corner area is 96%, and the recognition accuracy of the coordinate positioning algorithm is 80%. The proposed algorithm has greatly improved in recognition accuracy, especially in the corner area. The industry standard for the calculated actual touch point positioning error is no more than 5mm, and this algorithm meets the performance requirements.

[0061] Although the content of the present invention has been described in detail through the above preferred embodiments, it should be appreciated that the above description should not be considered as a limitation of the present invention. After reading the above content, it will be apparent to those skilled in the art that various modifications and substitutions of the present invention will occur. Therefore, the protection scope of the present invention should be limited by the appended claims.

Claims

1. A multi-touch recognition method for an infrared touch screen based on a clustering algorithm, characterized in that: The following steps are involved: Step 1: Scan line acquisition and pit processing Collect the numbers and offset angles of the scan lines blocked by the touch points in the X-axis direction and the Y-axis direction, and determine the number of touch points and the touch diameter based on the pits formed on the scan lines due to the touch points blocking them; Step 2: Scan line preprocessing and intersection calculation Process the blocked scan lines recorded in the X-axis and Y-axis directions of each touch point. If there are parallel scan lines, use the sorting algorithm to process the center lines of multiple parallel scan lines until all parallel scan lines in each pit are processed. Calculate the intersection points of all center scan lines and non-parallel scan lines in the X-axis and Y-axis directions. Step 3: Pattern Recognition The intersection points are clustered using the intersection set classification and partitioning clustering algorithm, and the cluster centers obtained by clustering are candidate actual touch points; if the number of cluster centers is equal to the number of touch points, the centers of all clusters are calculated, which are the coordinates of the actual touch points, otherwise, proceed to step 4; Step 4: Remove ghost spots For each candidate actual touch point, draw a circle with its central coordinate as the center and the touch diameter estimated in step 1. Assume that the touch point is a real touch point, record the number and offset angle of the blocked scan line, and perform a midline operation on the parallel scan lines to obtain the expected scan line of the candidate actual touch point, and compare it with the actual blocked scan line in step 2. If the expected scan line and the actual scan line in the X-axis direction and the Y-axis direction are basically consistent, then the candidate actual touch point is judged to be the actual touch point and its coordinates are output. Otherwise, it is judged to be a ghost point and the candidate actual touch point is excluded.

2. The infrared touch screen multi-touch recognition method based on the clustering algorithm according to claim 1 is characterized in that: In step 2, the specific method of taking the center line and calculating the intersection point of the blocked scan line is: Step 2.1: In the X-axis direction, starting from the first offset angle scan line of the first emitter lamp within the pit range, increase the emitter lamp number in turn to find the parallel scan line, then process the scan line of the second offset angle, and process the scan lines of all offset angles in turn until all parallel scan lines of each pit in all X-axis directions have been found; Step 2.2: In the Y-axis direction, take the same approach as in step 2.1; Step 2.3: Perform a centerline operation on the parallel scan lines in each pit in the X-axis direction and the Y-axis direction, and the obtained centerline has the same offset angle as the scan line before processing; Step 2.4: After all parallel scan lines in the pits in the X-axis direction and the Y-axis direction are processed, the intersection points of the center scan lines and non-parallel scan lines in all pits in the X-axis direction and the center scan lines and non-parallel scan lines in all pits in the Y-axis direction are calculated to obtain an intersection point set.

3. The infrared touch screen multi-touch recognition method based on the clustering algorithm according to claim 1 is characterized in that: In step 3, the intersection points of the pit scan lines are clustered using the intersection set classification and partitioning clustering algorithm and the candidate actual touch points are output. The specific method is as follows: Step 3.1: Preprocess the two-dimensional intersection data and use the Kd tree to optimize the organization of the data in space, thereby speeding up the search for neighboring points; Step 3.2: Identify the central area, transition area, and peripheral area; Step 3.3: For any two central regions, as long as they are reachable from each other, they are merged into the same cluster; for each point in the transition region, if there is a reachable central point, the point in the transition region is assigned to the corresponding cluster; for the peripheral region, the region is directly excluded; Step 3.4: Output the center coordinates of each central area after final merging and allocation, that is, calculate the coordinate position of the actual touch point.

4. The infrared touch screen multi-touch recognition method based on the clustering algorithm according to claim 3 is characterized in that: In step 3.1, the specific steps of the Kd tree construction process that optimizes the organization of data in space are: Step 3.1.1: Starting from the root node, select the first dimension; Step 3.1.2: Sort all points in the current dimension and select the median point as the node split point; Step 3.1.3: Create a binary tree node containing the coordinates of the median point; the median point divides the current point set into two subsets: one subset contains all points whose values ​​in the current dimension are less than or equal to the median point, and the other subset contains all points whose values ​​are greater than the median point; Step 3.1.4: Alternately select dimensions, and recursively repeat steps 3.1.1 to 3.1.3 for the two subsets. The left subtree contains the set of points less than or equal to the median point, and the right subtree contains the set of points greater than the median point. If there is only one point or no point left in the subset, the node becomes a leaf node. Step 3.1.5: When the number of points in each subset is less than a given threshold, or reaches a predetermined maximum depth, the recursion stops and the node at this time is regarded as a leaf node; Step 3.1.6: The final result is the root node, which contains the entire Kd tree structure in the form of linked child nodes.

5. The infrared touch screen multi-touch recognition method based on the clustering algorithm according to claim 3 is characterized in that: In step 3.2, the specific steps for identifying the central area, transition area, and peripheral area are: Step 3.2.1: Initialize the standard number m and standard distance S for defining K nearest neighbors; Step 3.2.2: Loop through each unvisited intersection in the data, and for each point, find its K nearest neighbors. Step 3.2.3: Calculate the distance s from the point to its Kth nearest neighbor and define a neighbor set; Step 3.2.4: If s ≤ S, assign the point to a cluster and make the following judgment: if s ≤ S / 2, it is considered that a central area has been found and the neighbor set is added to the central area; otherwise, the single central point is added to the central area; Step 3.2.5: Find the determined center points in the neighbor set and merge these points with the existing clusters; Step 3.2.6: If S < s and s ≤ 2S, add the neighbor set in the range s - S to the transition area; if s ≥ 2S, mark the neighbor set in the range s - 2S as the peripheral area; Step 3.2.7: Extract the center of each central area and use it to represent the entire central area, in preparation for subsequent rapid distance comparison and area merging allocation.

6. The infrared touch screen multi-touch recognition method based on clustering algorithm according to claim 5, characterized in that: In step 3.3, the specific steps for determining the reachability of each area are: Step 3.3.1: Traverse each central area and find the neighbor point set of each area center within a certain distance range; Step 3.3.2: For any two sets of central regions p and q, if they belong to different clusters and if the distance between p and q < S, it means that the region distance is reachable and they are directly merged into the same cluster; if the distance between p and q > S+sp+sq, they do not need to be merged; Step 3.3.3: Traverse each transition area, assuming that one of the transition areas is m, and find the neighbor point set of each transition area within a certain distance range; Step 3.3.4: Assume that one of the central regions is n. If the distance between m and n is greater than S+sm+sn, the transition region distance is unreachable. If the distance between m and n is less than or equal to S - sm, the transition region is completely contained in the central region n. The transition region m is directly assigned to the cluster where the central region n is located.