An infrared touch point positioning solution
By using only one-sided optical paths in the infrared touch screen for point positioning and making judgments based on the number of optical paths and angle conditions, the problem of interruption lines in the layout of low-cost sparse lights is solved, achieving higher accuracy and lower cost, and improving the writing experience.
Patent Information
- Application Number
- CN202210227750.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2042-03-08
AI Technical Summary
Traditional infrared touch screen algorithms require the blocked light paths on the X and Y sides to calculate the point profile and position, resulting in the problem of writing and scribing and disconnection in low-cost light layouts.
An infrared touch point positioning scheme is proposed, by using only X or Y single-sided optical paths for point positioning, and judging based on conditions such as the number of single-sided obscured optical paths and the angle between different sloped optical paths, and calculating the point profile and position.
It reduces the probability of writing with fine pens, reduces the number of lamps, reduces the cost, and improves the writing experience.
Smart Images

Figure CN114741002B_ABST
Abstract
Description
Technical field:
[0001] The invention belongs to the technical field of touch screen algorithms, and in particular relates to an infrared touch point positioning solution. Background technology:
[0002] In order to calculate the outline and position of a point, the traditional infrared touch screen algorithm must use the blocked light paths of the X and Y sides for calculation. When a small object is used for touch or in a low-cost sparse lamp layout touch frame solution (the grid blind area is large, and the touch object cannot block the X and Y sides at the same time), the problem of broken lines in writing and drawing is prone to occur. Therefore, the present invention proposes an infrared touch point positioning solution, proposes a solution idea of performing point positioning only based on the X or Y unilateral light path, and proposes a way of judging whether to perform point positioning calculation based on conditions such as the number of unilateral blocked light paths and the angle between light paths with different slopes. This can reduce the probability of broken lines when writing with a fine pen, and is conducive to reducing the cost of the touch solution (it can support reducing the number of lamps) and improving the writing experience. Summary of the invention:
[0003] The purpose of the present invention is to provide an infrared touch point positioning solution to solve the above problems, which solves the defect that the traditional algorithm must have the blocked light paths of the X and Y sides to calculate the point contour and position (when the blocked light path of one side is missing, the point will be lost and the line will be broken).
[0004] In order to solve the above problems, the present invention provides a technical solution:
[0005] An infrared touch point positioning solution includes the following steps:
[0006] S1: Set the number of scanning directions k and the specific angle of each direction, set the threshold t1 of the number of light paths blocked on one side, the threshold t2 of the number of different directions, and the threshold t3 of the angle of light paths in different directions;
[0007] S2: Execute a frame scan and count the blocked light paths. If both the X side and the Y side are blocked, jump to step S4. Otherwise, if only the X side or the Y side is blocked, jump to step S3.
[0008] S3: Count the number of blocked light paths N, count the number of different directions of blocked light paths M, count the angles between each two of the blocked light paths in different directions and sort them in descending order. If N>t1 and M>t2 and the first n angles among the angles are greater than t3, jump to step S4, otherwise jump directly to step S6;
[0009] S4: according to the touch area, the touch area corresponding to the scanning direction of the current frame is counted and recorded, and all directions involved in the current frame are processed in this way, and the touch point contour is calculated according to the touch area. The centroid / center of gravity of the touch point contour is the point position, and the correlation between the touch area and the touch point is recorded during the calculation process;
[0010] S5: Observe the touch area of each touch point in turn. If the blocked light path contained in the touch area related to the current touch point does not meet the conditions in step S3 (i.e., the number of blocked light paths associated with it N, the number of different directions of blocked light paths M, and the angles between the blocked light paths in different directions are sorted in order from large to small, if N>t1 and M>t2 and the first n angles among the angles are greater than t3), then discard the current point, and process in this way until all touch points have been traversed;
[0011] S6: according to the occupation relationship of all candidate points on the blocked light, remove the strange points to obtain the real point information, and then use the real point information to process the trajectory;
[0012] S7: Output all points after trajectory processing;
[0013] S8: Jump to step 2 and execute the loop.
[0014] Preferably, in step S1, the scanning direction refers to a plurality of different angles for the optical path corresponding to the i-th lamp in a pair of k optical path scanning, and each angle of the k optical paths corresponding to an emitting lamp is called a scanning direction. A pair of k optical path scanning has k scanning directions, and each scanning direction is composed of a group of parallel optical paths with the same slope.
[0015] Preferably, in step S4, the touch area refers to a group of parallel scanning light paths corresponding to a certain scanning direction. When the touching object is placed, it will block m consecutive parallel light paths. Together with the previous unblocked light path and the next unblocked light path of the m light paths, it is called a touch area. The previous unblocked light path of the first of the m consecutive blocked light paths is the starting point of this touch area, and the last unblocked light path is the end of this touch area.
[0016] The beneficial effects of the present invention include:
[0017] The present invention proposes a solution idea of performing point positioning based only on the X or Y unilateral light path, and proposes a method of judging whether to perform point positioning calculation based on conditions such as the number of unilaterally blocked light paths and the angle between light paths with different slopes. This ensures the accuracy of the final output point contour and point position, thereby reducing the probability of line breakage when writing with a fine pen, and is beneficial to reducing the cost of the touch solution (it can support reducing the number of lamps), thereby achieving the purpose of improving the writing experience. Description of the drawings:
[0018] For ease of explanation, the present invention is described in detail with reference to the following specific implementations and the accompanying drawings.
[0019] Figure 1 It is a schematic diagram of the process of the present invention;
[0020] Figure 2 This is a schematic diagram of the infrared touch screen of the present invention using a one-to-multiple optical path scanning structure;
[0021] Figure 3 This is a schematic diagram of the structure of the 1 to 5 scanning optical network diagram of the infrared touch screen of the present invention;
[0022] Figure 4 This is a schematic diagram of the structure of the three scanning directions of the long side during the 1-to-3 scanning of the optical path of the present invention;
[0023] Figure 5 It is a schematic diagram of the structure of the three scanning directions of the short side when the optical path of the present invention is scanned 1 to 3. Specific implementation method:
[0024] Embodiment 1
[0025] The following will be described clearly and completely in conjunction with the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] like Figure 1-5 An infrared touch point positioning solution shown includes the following steps:
[0027] S1: Set the number of scanning directions k and the specific angle of each direction, set the threshold t1 of the number of light paths blocked on one side, the threshold t2 of the number of different directions, and the threshold t3 of the angle of light paths in different directions. The scanning direction means that in a pair of k light path scans, the light path corresponding to the i-th light has multiple different angles. Each angle of the k light paths corresponding to a transmitting light is called a scanning direction. A pair of k light path scans have k scanning directions, and each scanning direction consists of a group of parallel light paths with the same slope, as shown in the attached figure. Figure 2 The figure shows a 1 to 5 scan (5 scanning directions), Figure 3 The figure shows a 1 to 5 scanning optical network diagram. Figure 4 For 1 to 3 scanning, the three scanning directions of the long side are as follows: Figure 5 The three scanning directions of the short side during 1 to 3 scanning;
[0028] S2: Execute a frame scan and count the blocked light paths. If both the X side and the Y side are blocked, jump to step S4. Otherwise, if only the X side or the Y side is blocked, jump to step S3.
[0029] S3: Count the number of blocked light paths N, count the number of different directions of blocked light paths M, count the angles between each two of the blocked light paths in different directions and sort them in descending order. If N>t1 and M>t2 and the first n angles among the angles are greater than t3, jump to step S4, otherwise jump directly to step S6;
[0030] S4: according to the touch area, the touch area corresponding to the scanning direction of this frame is counted and recorded, and all directions involved in this frame are processed in this way. The touch point contour is calculated according to the touch area. The centroid / center of gravity of the touch point contour is the point position. The association between the touch area and the touch point is recorded in the calculation process. The touch area refers to a group of parallel scanning light paths corresponding to a certain scanning direction. When the touch object is put in, it will block the continuous m parallel light paths. Together with the previous unblocked light path and the next unblocked light path of these m light paths, it is called a touch area. The previous unblocked light path of the first of the m continuous blocked light paths is the beginning of this touch area, and the last unblocked light path is the end of this touch area.
[0031] S5: Observe the touch area of each touch point in turn. If the blocked light path contained in the touch area related to the current touch point does not meet the conditions in step S3 (i.e., the number of blocked light paths associated with it N, the number of different directions of blocked light paths M, and the angles between the blocked light paths in different directions are sorted in order from large to small, if N>t1 and M>t2 and the first n angles among the angles are greater than t3), then discard the current point, and process in this way until all touch points have been traversed;
[0032] S6: according to the occupation relationship of all candidate points on the blocked light, remove the strange points to obtain the real point information, and then use the real point information to process the trajectory;
[0033] S7: Output all points after trajectory processing;
[0034] S8: Jump to step 2 and execute the loop.
[0035] The positioning scheme through the above process proposes a scheme idea of performing point positioning only based on the X or Y unilateral optical path, and makes a comprehensive judgment through the number of optical paths, the number of directions of optical paths at different angles, the angle between optical paths with different slopes, etc. When the conditions such as the number of optical paths, the number of directions of optical paths at different angles, and the angle are met, the unilateral blocked optical path is directly used to calculate the point contour and position. After the contact point is obtained, the blocked optical path involved in the touch area associated with each contact point is observed in reverse. If these blocked optical paths do not meet any of the conditions among the number of optical paths, the number of directions of optical paths at different angles, and the angle, the point is deleted, thereby ensuring the accuracy of the final output point contour and point position, thereby reducing the probability of broken lines when writing with a fine pen, and at the same time helping to reduce the cost of the touch solution (it can support reducing the number of lamps), achieving the purpose of improving the writing experience.
[0036] Embodiment 2
[0037] See also Figure 1-5 , further improvements are made on the basis of the first embodiment:
[0038] When calculating the angle between light paths at different angles, this solution is to randomly select one from each set of parallel light paths. In practice, you can also randomly select two parallel light paths, and then take the virtual center lines of the two parallel light paths to calculate the angle accordingly. That is, other methods that can accurately measure the angle between two light paths in different directions can be used as a substitute, thereby improving the point positioning capability of the touch screen and ensuring the point positioning accuracy at the same time.
[0039] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for illustrating the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which shall fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. An infrared touch point positioning solution, characterized in that: The following steps are involved: S1: Set the number of scanning directions k and the specific angle of each direction, set the threshold t1 of the number of light paths blocked on one side, the threshold t2 of the number of different directions, and the threshold t3 of the angle of light paths in different directions; S2: Execute a frame scan and count the blocked light paths. If both the X side and the Y side are blocked, jump to step S4. Otherwise, if only the X side or the Y side is blocked, jump to step S3. S3: Count the number of blocked light paths N, count the number of different directions of blocked light paths M, count the angles between each two of the blocked light paths in different directions and sort them in descending order. If N>t1 and M>t2 and the first n angles among the angles are greater than t3, jump to step S4, otherwise jump directly to step S6; S4: according to the touch area, the touch area corresponding to the scanning direction of the current frame is counted and recorded, and all directions involved in the current frame are processed in this way, and the touch point contour is calculated according to the touch area. The centroid / center of gravity of the touch point contour is the point position, and the correlation between the touch area and the touch point is recorded during the calculation process; S5: Observe the touch area of each touch point in turn. If the blocked light path contained in the touch area related to the current touch point does not meet the conditions in step S3, the current point is discarded, and the process is repeated until all touch points have been traversed. S6: according to the occupation relationship of all candidate points on the blocked light, remove the strange points to obtain the real point information, and then use the real point information to process the trajectory; S7: Output all points after trajectory processing; S8: Jump to step S2 and execute in a loop; In step S4, the touch area refers to a group of parallel scanning light paths corresponding to a certain scanning direction. When the touch object is placed, it will block m consecutive parallel light paths. Together with the previous unblocked light path and the next unblocked light path of these m light paths, it is called a touch area. The previous unblocked light path of the first of the m consecutive blocked light paths is the starting point of this touch area, and the last unblocked light path is the end of this touch area.
2. The infrared touch point positioning solution according to claim 1, characterized in that: In step S1, the scanning direction refers to the multiple different angles for the optical path corresponding to the i-th lamp in a pair of k optical path scans. Each angle of the k optical paths corresponding to an emitting lamp is called a scanning direction. A pair of k optical path scans has k scanning directions, and each scanning direction is composed of a group of parallel optical paths with the same slope.
Citation Information
Patent Citations
Coordinate calculation method and device of touch point, and touch screen equipment
CN104932749A
A touch point identification method and device and a display device
CN109542276A