A light network design method of an infrared touch frame

By calculating the aperture area of ​​the infrared touch frame optical mesh, ensuring that the aperture meets the design requirements, the problems of disconnected touch and poor touch sensing caused by excessively large apertures in the existing technology are solved, and the high efficiency and reliability of the optical mesh design are achieved.

CN116611258BActive Publication Date: 2026-03-24HUIZHOU TORCH ENERGY ELECTRONIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-01
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing infrared touch frame optical mesh design methods cannot effectively assess hole size, which may lead to touch interruption and poor touch sensitivity, increasing the risk and labor costs of rework after optical mesh drawing.

Method used

By setting the position and orientation of the infrared transmitter and receiver, calculating the linear equation and intersection of the optical path, constructing a polygonal region, determining the area of ​​the hole, ensuring that the hole size meets the design requirements, using the Shoelace formula to calculate the hole area, and adjusting the optical network parameters to avoid rework.

Benefits of technology

This allows for timely adjustment of aperture size during optical network design, avoiding rework, reducing labor costs, and ensuring the reliability and accuracy of touch sensing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116611258B_ABST
    Figure CN116611258B_ABST
Patent Text Reader

Abstract

The application discloses an infrared touch frame optical network design method, and belongs to the technical field of infrared touch frames. The main technical scheme comprises the following steps: setting the positions of infrared emitters and infrared receivers, parameterizing the positions of the infrared emitters and the infrared receivers to obtain emission coordinates and receiving coordinates; taking the connecting lines between the emission coordinates and the receiving coordinates of each receiving light line of the emission coordinates as optical path straight lines, parameterizing each optical path straight line to obtain all optical path straight line equations; calculating the intersection point coordinates of all optical path straight line equations; constructing a polygonal area through the optical path straight line equations and the intersection point coordinates; hole determination: taking the polygonal area in which each side does not intersect with other optical path straight lines as a hole; and calculating the area of each hole. The application can ensure that the hole size of the infrared touch frame optical network meets the design requirements, avoid the poor touch response and the touch break phenomenon caused by the excessively large optical network hole, and thus avoid the waste of human cost caused by the rework after the optical network is drawn.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of infrared touch frame, in particular, mainly relates to a light network design method of infrared touch frame. BACKGROUND

[0002] The infrared touch screen is a common touch screen technology, which realizes the detection of touch position by using the physical principle of infrared.

[0003] The infrared touch frame is the frame of the infrared touch screen, and the basic principle of the infrared touch screen is to install a plurality of infrared emitters and infrared receivers on the infrared touch frame, so as to form a dense infrared detection network on the screen surface, when a finger or other object contacts the screen, the infrared passing through the touch point will be blocked, so that the device can determine the position of the touch point, and execute the corresponding response action.

[0004] The Chinese patent document with the application publication number CN111737778A discloses a light network drawing method of infrared touch frame, which adopts the tool combination of VBA+Excel+AutoCAD, inputs coordinates and parameters, and draws parameters through codes, which shortens the drawing time and improves the accuracy of drawing. The method also includes detecting the hole size of the light network.

[0005] The maximum hole of the light network refers to the area of the largest region on the screen surface which is not covered by infrared, if there are some holes in the finally generated light network which are too large, it will lead to poor touch sensing in the area where these holes are located, and thus the phenomenon of broken touch will occur; when the broken touch design defect occurs, the light network needs to be redrawn, which causes great waste of human cost.

[0006] In the light network drawing method of the infrared touch frame described above, it is impossible to evaluate whether the maximum hole of the generated light network meets the design requirements, which may lead to the design defect of broken touch, thus there is a risk of reworking the light network.

[0007] Therefore, it is necessary to improve the existing light network drawing method of the infrared touch frame. SUMMARY

[0008] In view of the deficiencies of the prior art, the present application provides a light network design method of infrared touch frame, to ensure that the hole size meets the design requirements, avoid the phenomenon of poor touch sensing and broken touch caused by the large hole of the light network, and thus avoid the waste of human cost caused by reworking the light network after drawing.

[0009] This invention discloses a method for designing an optical mesh for an infrared touch frame. The infrared touch frame includes a border, multiple infrared emitters, and multiple infrared receivers. The border is a planar polygon, and one or both of the infrared emitters and infrared receivers are installed on each side of the border. The optical mesh design method includes the following steps:

[0010] Set the positions of the infrared transmitter and infrared receiver, parameterize the positions of the infrared transmitter and infrared receiver, and obtain the transmission coordinates and the reception coordinates;

[0011] The line connecting the emission coordinates to each receiving coordinate that can receive the light rays from the emission coordinates is taken as the optical path line. Each optical path line is parameterized to obtain the equations of all optical path lines.

[0012] Calculate the coordinates of the intersection points of all the equations for the straight light paths;

[0013] A polygonal region is constructed using the equation of the straight line of the light path and the coordinates of the intersection point;

[0014] Hole determination: A polygonal region in which each side does not intersect with any other straight line of light path is considered a hole;

[0015] Calculate the area of ​​each hole.

[0016] The beneficial effects of this invention are as follows: When designing the infrared touch frame optical mesh, after the infrared transmitter and infrared receiver are arranged, the area of ​​all holes in the infrared touch frame optical mesh is calculated to determine whether the largest hole is smaller than the maximum hole reference value. Based on the judgment result, the designer can adjust the optical mesh parameters in a timely manner, avoiding the waste of manpower costs caused by rework after the optical mesh is drawn. Moreover, this method can ensure that the hole size meets the design requirements, avoiding poor touch sensing and touch interruption caused by excessively large optical mesh holes. Attached Figure Description

[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 This is a schematic diagram of the infrared touch frame of the present invention;

[0019] Figure 2 This is an algorithm block diagram of the infrared touch frame optical mesh design method of the present invention;

[0020] Figure 3 A flowchart for constructing polygonal regions;

[0021] Figure 4The flowchart shows the process of calculating the area of ​​the polygonal region of the hole using the Shoelace formula.

[0022] Figure 5 This is a parametric view of the infrared touch frame and the straight line of the light path in the rectangular coordinate system in Example 1.

[0023] Explanation of reference numerals in the attached diagram: 1. Border; 2. Infrared transmitter; 3. Infrared receiver. Detailed Implementation

[0024] The following drawings disclose several embodiments of the present invention. For clarity, many practical details will be described in the following description. However, it should be understood that these practical details are not intended to limit the invention. That is, in some embodiments of the invention, these practical details are not essential. Furthermore, for the sake of simplicity, some conventional structures and components will be shown in the drawings in a simple schematic manner.

[0025] It should be noted that all directional indications in the embodiments of the present invention, such as up, down, left, right, front, back, etc., are only used to explain the relative positional relationship and movement of the components in a specific posture as shown in the attached figure. If the specific posture changes, the directional indication will also change accordingly.

[0026] Furthermore, in this invention, the use of terms such as "first," "second," etc., is for descriptive purposes only and does not specifically refer to any order or sequence, nor is it intended to limit the invention. They are merely used to distinguish items or operations described using the same technical terms and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of the various embodiments can be combined with each other, but only if they are feasible for those skilled in the art. If a combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by this invention.

[0027] To further understand the invention's content, features, and effects, the following embodiments are provided, along with detailed descriptions in conjunction with the accompanying drawings:

[0028] This invention discloses a method for designing the optical mesh of an infrared touch frame, referring to... Figure 1 The infrared touch frame includes a border 1, multiple infrared emitters 2, and multiple infrared receivers 3. The border 1 is a planar polygonal structure of any shape, such as a triangle or quadrilateral, with n sides. Figure 1The frame 1 shown is a quadrilateral. Each side of the frame 1 has a certain width, and one or both of the following are installed on each side of the frame 1: an infrared transmitter 2 or an infrared receiver 3. Multiple infrared transmitters 2 and / or infrared receivers 3 on the same side of the frame 1 are arranged along the same straight line and parallel to the length direction of that side.

[0029] Reference Figure 1 The same infrared emitter 2 can emit light outward within a certain angle range, so that it can be sensed by all infrared receivers 3 within the aforementioned angle range. The emission angle of the infrared emitter 2 is α. The same infrared receiver 3 can receive all light within a certain angle range. Therefore, the light emitted by all infrared emitters 2 within the aforementioned angle range can be received by the infrared receiver 3. The receiving angle of the infrared receiver 3 is β. The emission angle α of the infrared emitter 2 and the receiving angle β of the infrared receiver 3 are both adjustable. This is a characteristic of the infrared emitter 2 and the infrared receiver 3 themselves.

[0030] Reference Figure 1 Taking the positive or negative direction of a straight line parallel to either side of frame 1 as the reference direction, the vector in the direction of light propagation that coincides with the angle bisector of the emission angle of infrared emitter 2 is the emission azimuth vector of infrared emitter 2. The angle between the emission azimuth vector in the counterclockwise direction and the reference direction is . Once the infrared emitter 2 is fixed, its emission azimuth vector is also determined. Regardless of how the emission angle α is adjusted, the emission angle remains symmetrical about both sides of the emission azimuth vector, thus achieving... This serves as the emission orientation parameter for the infrared emitter 2.

[0031] Reference Figure 1 The vector in the direction of light propagation that coincides with the angle bisector of the receiving angle of infrared receiver 3 is the receiving azimuth vector of infrared receiver 3. The angle between the receiving azimuth vector in the counterclockwise direction and the reference direction is . Once the infrared receiver 3 is fixed, its receiving azimuth vector is also determined. Regardless of how the receiving angle β is adjusted, the receiving angle remains symmetrical about both sides of the receiving azimuth vector, thus... This serves as the receiving orientation parameter for the infrared receiver 3.

[0032] Reference Figure 1The line connecting the emission point of infrared emitter 2 and the receiving point of infrared receiver 3, which can sense its light, is a straight optical path. All straight optical paths form an optical grid. The device can determine the touch point position only when an obstacle blocks the light on the straight optical path. Multiple straight optical paths within the optical grid intersect each other and intersect with the boundary straight line formed by the arrangement of infrared emitter 2 and infrared receiver 3, forming multiple polygonal areas. Polygonal areas in which no other straight optical paths pass are holes. Obstacles in the holes cannot be sensed by the device. Therefore, when the touch object is located in the hole, the device cannot determine the touch point position. For any infrared touch frame of a certain model and size, there is a corresponding maximum hole reference value R. When the size of all holes within the boundary is less than the maximum hole reference value R, it meets the optical grid design standard.

[0033] Reference Figure 2 The present invention discloses a method for designing an optical mesh for an infrared touch frame, comprising the following steps:

[0034] S1. Define the boundaries of the border and parameterize the boundaries to obtain the boundary line equations: For a border with n sides, define a boundary for each side and parameterize the n boundaries into n boundary line equations; Since the border has a certain width, and the infrared transmitters and receivers are arranged along straight lines inside the border, when selecting the boundary lines, the line containing the emission points of multiple infrared transmitters and / or the receiving points of infrared receivers on the same side of the border is taken as the boundary line of that side.

[0035] S2. Set the position and transmission direction of the infrared transmitter, set the position and reception direction of the infrared receiver, and parameterize the positions of the infrared transmitter and the infrared receiver to obtain the transmission coordinates and reception coordinates: take the points of the infrared transmitter on the boundary line equation as the transmission coordinates and the points of the infrared receiver on the boundary line equation as the reception coordinates.

[0036] S3. Parameterize each optical path line to obtain the equation of all optical path lines: The line connecting the emission coordinate and each receiving coordinate that can receive the light from the emission coordinate is the optical path line. Traverse each emission coordinate to obtain all optical path lines. Calculate the equation of the line containing each optical path line using the emission coordinate and the receiving coordinate to obtain the optical path line equation.

[0037] S4. Calculate the coordinates of the intersection points between all boundary line equations and light path line equations: Traverse each boundary line equation and light path line equation, and calculate the coordinates of its intersection points with all other boundary line equations and light path line equations. The set of all intersection point coordinates is I.

[0038] S5. Constructing a polygonal region: Starting from any intersection point, select a boundary line or light path line, always selecting the next intersection point in a clockwise or counterclockwise direction. Repeat the above selection steps until returning to the starting intersection point. Obtain the coordinates of all intersection points in the above path, thus constructing a polygonal region. Traverse all intersection points to obtain all polygonal regions. A polygonal region is represented in the form of its vertex coordinate set, where all vertex coordinates are taken from set I.

[0039] Assuming the above steps construct n polygonal regions, the set of vertex coordinates for the first polygonal region is: The set of vertex coordinates for the second polygonal region is The set of vertex coordinates of the nth polygonal region is... So there are , , ..., I.

[0040] Reference Figure 3 Specifically, the method for constructing a polygonal region using the set of intersection point coordinates I, the boundary line equations, and the light path equations is as follows:

[0041] S51: Select any intersection point as the starting intersection point and use the starting intersection point as the current intersection point;

[0042] S52: Select the next intersection point along a boundary line or light path from the current intersection point. This next intersection point cannot be a previously selected intersection point other than the initial intersection point. Calculate the vector from the current intersection point to the next intersection point. ;

[0043] S53: Select another intersection point along a boundary line or optical path from the above next intersection point. This other intersection point cannot be a previously selected intersection point other than the initial intersection point. Calculate the vector from the next intersection point to this other intersection point. ;

[0044] S54: Construct vectors with vector If the cross product between the points is greater than 0, then the next intersection point is taken as the current intersection point, and the process returns to S52; if the cross product is less than or equal to 0, then the process returns to S53.

[0045] In S54, if the cross product is less than 0, then the next intersection point is taken as the current intersection point and S52 is returned; if the cross product is greater than or equal to 0, then S53 is returned. The purpose of selecting the next intersection point according to the standard that all cross products have the same sign is to ensure that all next intersection points are selected in a clockwise or counterclockwise direction.

[0046] S55: When returning to the starting intersection point, the set of coordinates of all intersection points along the path traversed in the above steps is used as the vertex coordinate set of a polygon region.

[0047] Using the above method, traverse all intersection points, and find the set of all intersection points that meet the conditions in S54 in each loop, thus obtaining the set of vertex coordinates of all polygon regions.

[0048] In the above method for constructing a polygonal region, the method to ensure that the selected next intersection point or another intersection point is not a selected intersection point other than the starting intersection point is as follows: each time the above method is executed, a set is used to record the selected intersection points other than the starting intersection point. When selecting the next intersection point or another intersection point, it is checked whether it already exists in the above set. If it exists, another intersection point is selected.

[0049] S6. Hole Detection: Check if each edge of the polygonal region intersects with other light path lines. If none of the edges of the polygonal region intersect with other light path lines, then the polygonal region is a hole. If any edge of the polygonal region intersects with other light path lines, then the polygonal region is not a hole. Traverse all polygonal regions and check the intersection of each edge of the polygonal region with other boundary lines and light path lines that do not coincide with that edge.

[0050] Using the method described above, the set of vertex coordinates for all polygonal regions that act as holes can be found.

[0051] S7. Calculate the area of ​​the holes: Based on the set of vertex coordinates of each hole, calculate the area of ​​the polygonal region that is the hole using the area calculation formula. In this invention, the Shoelace formula is used to calculate the area of ​​the polygonal region that is the hole.

[0052] Reference Figure 4 Specifically, the method for calculating the area of ​​the polygonal region of the hole using the Shoelace formula is as follows:

[0053] S71: Arrange the vertex coordinates of the hole in a clockwise or counterclockwise order, so that the last vertex is connected to the first vertex to form a closed polygon;

[0054] S72: Represent the above vertex coordinates as ordered pairs (x, y);

[0055] S73: For each vertex, calculate the x-coordinate of the vertex multiplied by the y-coordinate of the next vertex in sequence, and subtract the y-coordinate of the vertex multiplied by the x-coordinate of the next vertex; for the last vertex in the sequence, multiply the x-coordinate of the vertex by the y-coordinate of the first vertex, and subtract the y-coordinate of the vertex multiplied by the x-coordinate of the first vertex.

[0056] S74: Sum all the calculation results in S73, take the absolute value and divide by 2 to get the area of ​​the hole;

[0057] By iterating through all the holes, you can obtain the area of ​​all the holes.

[0058] S8. Determining the largest hole: Sort all holes by size to obtain the area S of the largest hole. Compare the area S of the largest hole with the reference value R of the largest hole. If S < R, the optical network meets the design requirements; otherwise, return to S2.

[0059] S9. Parameter Output: Record or output the optical network parameters that meet the design requirements to a file for subsequent production. These parameters include the boundary line equation, reference direction, emission coordinates of all infrared emitters, emission angle α of all infrared emitters, and emission azimuth parameters of all infrared emitters. The receiving coordinates of all infrared receivers, the receiving angle β of all infrared receivers, and the receiving azimuth parameters of all infrared receivers. .

[0060] Example 1

[0061] Reference Figure 5 In this embodiment, the infrared touch frame is a square structure. Only one infrared emitter is located on one edge of the infrared touch frame, and only one infrared receiver is located on the opposite edge. Both the infrared emitter and receiver are positioned at the bisection points of the edge. On the other edge of the infrared touch frame, two infrared emitters and one infrared receiver are located, and on the opposite edge, two infrared receivers and one infrared emitter are located at the quarter-section points of the edge. In this embodiment, the infrared emitter has an emission angle α = 180°, but cannot emit light at the boundary of the emission angle. The infrared receiver has a reception angle β = 180°, but cannot receive light at the boundary of the reception angle. In this embodiment, the positive x-axis direction is used as the reference direction, and the maximum hole reference value R = 2 is specified.

[0062] The optical mesh design method for the infrared touch frame of the present invention is used to design the optical mesh of the above-mentioned infrared touch frame. The steps are as follows:

[0063] S1': Set the boundary of the border and parameterize the boundary to obtain the boundary line equations: After parameterization, the four boundary line equations are x=0, y=0, x=4, and y=4 respectively.

[0064] S2': Set the position and transmitting direction of the infrared transmitter, and the position and receiving direction of the infrared receiver. Parameterize the positions of the infrared transmitter and receiver to obtain the transmitting coordinates and receiving coordinates:

[0065] Launch coordinates: (0, 2), (2, 0), (1, 4), (3, 4);

[0066] Launch azimuth : 0°, 90°, 270°, 270°;

[0067] Received coordinates: (1, 0), (2, 4), (3, 0), (4, 2);

[0068] Receiving direction : 270°, 90°, 270°, 0°;

[0069] S3' Parameterize each optical path line to obtain the equations of all optical path lines:

[0070] Equations of the straight light path: 2x + y - 2 = 0, 2x + 3y - 6 = 0, y - 2 = 0, x - y + 2 = 0, x - 2 = 0, xy - 2 = 0, x - 1 = 0, 2x + y - 6 = 0, 2x + 3y - 14 = 0, 2x - y - 2 = 0, x = 3, 2x + y - 10 = 0;

[0071] S4' Calculate the coordinates of the intersection points of all boundary line equations and light path line equations:

[0072] The set of coordinates of all intersection points is I = {(0,0), (1,0), (2,0), (3,0), (4,0), (4,2), (4,4), (3,4), (2,4), (1,4), (0,4), (0,2), (1, ), ( ,1), (2, ), ( , ), (1,2), (2,2), (3,2), ( , ), (3,1), (1,3), ( , ), ( , ), (2, ), ( ,3), (3, )};

[0073] S5', Construct a polygonal region:

[0074] The set of vertex coordinates for all polygonal regions is: ={(0,0), (1,0), (0,2)}, ={(0,0), (1,0), (1, ), (0,2)}, ={(0,0), (1,0), (1,2), (0,2)}, ...;

[0075] S6', Hole Determination: In the above polygonal regions, polygonal regions where each side does not intersect with other boundary lines and / or light path lines are considered holes. The set of vertex coordinates for all holes is as follows: ={(0,0), (1,0), (0,2)}, ={(1,0),(1, ), (0,2)}, ={(1, ), (1,2), (0,2)}, ={(1,2), (1,3), (0,2)}, ={(0,2), (1,3), (1,4), (0,4)}, ={(1,0), (2,0), (2, ), ( ,1)}, ={(1,0),( ,1), (1, )}, ={( ,1), (2, ), (2,2)}, ={(1,2),(1, ), ( ,1), (2,2)}, ={(1,2), (2,2), ( , ), (1,3)}, ={(1,3),( , ), (1,4)}, ={(1,4), ( , ), ( , )}, ={(1,4), ( , ), (2,4)}, ={(2,4), ( , ), (2, )}, ={( , ), ( , ), (2,2), (2, )}, ={(2,4), (2, ), ( ,3), (3,4)}, ={(2, ), (2,2), ( ,3)}, ={( ,3), (2,2), (3,2), (3, )}, ={(3,4), ( ,3), (3, )}, ={(2,2),(2, ), ( , ), ( , )}, ={(2, ), (2,0), ( , )}, ={( , ), (2,0), (3,0)}, ={( , ), (3,0), ( , )}, ={( , ), (3,0), (3,1)}, ={(2,2),( , ), (3,1), (3,2)}, ={(3,2), (3,1), (4,2)}, ={(3,1), (3,0), (4,0), (4,2)}, ={(3, ), (3,2), (4,2)}, ={(3,4), (3, ), (4,2)}, ={(3,4), (4,2), (4,4)};

[0076] S7' Calculate the area of ​​the hole:

[0077] Using the Shoelace formula, the area of ​​all the holes is calculated as follows: =1, = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , = , =1;

[0078] S8', Maximum Hole Determination: The above... ~ After sorting by size, the area of ​​the largest hole, S, is obtained. The maximum aperture reference value R=2, therefore the optical network design meets the requirements;

[0079] S9' Parameter Output: Output parameters include the boundary line equation, reference direction, emission coordinates of all infrared emitters, emission angle α of all infrared emitters, and emission azimuth parameters of all infrared emitters in this embodiment. The receiving coordinates of all infrared receivers, the receiving angle β of all infrared receivers, and the receiving azimuth parameters of all infrared receivers. .

[0080] In summary, the implementation principle and beneficial effects of this invention are as follows: When designing the infrared touch frame optical mesh, after the infrared transmitter and infrared receiver are arranged, the area of ​​all holes in the infrared touch frame optical mesh is calculated to determine whether the largest hole is smaller than the maximum hole reference value. Based on the judgment result, the designer can adjust the optical mesh parameters in a timely manner, avoiding the waste of manpower costs caused by rework after the optical mesh is drawn. Moreover, this method can ensure that the hole size meets the design requirements, avoiding poor touch sensing and touch interruption caused by excessively large optical mesh holes.

[0081] The above are merely embodiments of the present invention and are not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of the claims of the present invention.

Claims

1. A method for designing an optical mesh for an infrared touch frame, characterized in that, The infrared touch frame includes a border, multiple infrared emitters, and multiple infrared receivers. The border is a planar polygon, and one or both of the infrared emitters and infrared receivers are mounted on each side of the border. The optical network design method includes: Set the positions of the infrared transmitter and infrared receiver, parameterize the positions of the infrared transmitter and infrared receiver, and obtain the transmission coordinates and the reception coordinates; The line connecting the emission coordinates to each receiving coordinate that can receive the light rays from the emission coordinates is taken as the optical path line. Each optical path line is parameterized to obtain the equations of all optical path lines. Calculate the coordinates of the intersection points of all the equations for the straight light paths; A polygonal region is constructed using the equation of the straight line of the light path and the coordinates of the intersection point, specifically: S51: Select any intersection point as the starting intersection point and use the starting intersection point as the current intersection point; S52: Select the next intersection point along a boundary line or light path from the current intersection point. This next intersection point cannot be a previously selected intersection point other than the initial intersection point. Calculate the vector from the current intersection point to the next intersection point. ; S53: Select another intersection point along a boundary line or optical path from the above next intersection point. This other intersection point cannot be a previously selected intersection point other than the initial intersection point. Calculate the vector from the next intersection point to this other intersection point. ; S54: Construct vectors with vector If the cross product between vectors λ1 and λ2 is greater than 0, then the next intersection point is taken as the current intersection point and the process returns to S52; if the cross product is less than or equal to 0, then the process returns to S53. Alternatively, if the cross product between vectors λ1 and λ2 is less than 0, then the next intersection point is taken as the current intersection point and the process returns to S52; if the cross product is greater than or equal to 0, then the process returns to S53. S55: When returning to the starting intersection point, the set of all intersection points along the path traversed in the above steps is used as the vertex coordinate set of a polygon region; Using S51~S55 above, traverse all intersection points, and in each loop find the set of all intersection points that meet the conditions in S54, thus obtaining the set of vertex coordinates of all polygon regions. A hole is defined as a polygonal region in which each side does not intersect with any other straight line of light path. Calculate the area of ​​each hole.

2. The optical mesh design method for an infrared touch frame according to claim 1, characterized in that, The infrared emitters and / or infrared receivers on each side of the frame are arranged in a straight line, and the straight line arrangement of the infrared emitters and / or infrared receivers on each side constitutes a boundary.

3. The optical mesh design method for the infrared touch frame according to claim 2, characterized in that, The optical network design method further includes parameterizing the boundary into boundary line equations, calculating the coordinates of the intersection points between all boundary line equations and optical path line equations, and constructing a polygonal region using the boundary line equations, optical path line equations, and intersection coordinates.

4. The optical mesh design method for an infrared touch frame according to claim 1, characterized in that, In each iteration of S51~S55, a set is used to record the selected intersection points other than the starting intersection point. When selecting the next intersection point or another intersection point, it is checked whether the next intersection point or another intersection point already exists in the above set. If it exists, another intersection point is selected.

5. The optical mesh design method for an infrared touch frame according to any one of claims 1-3, characterized in that, The method for calculating the area of ​​the hole is as follows: S71: Arrange the vertex coordinates of the hole in a clockwise or counterclockwise order, so that the last vertex is connected to the first vertex to form a closed polygon; S72: Represent the above vertex coordinates as ordered pairs (x, y); S73: For each vertex, calculate the x-coordinate of the vertex multiplied by the y-coordinate of the next vertex in sequence, and subtract the y-coordinate of the vertex multiplied by the x-coordinate of the next vertex; for the last vertex in the sequence, multiply the x-coordinate of the vertex by the y-coordinate of the first vertex, and subtract the y-coordinate of the vertex multiplied by the x-coordinate of the first vertex. S74: Sum all the calculation results in S73, take the absolute value and divide by 2 to get the area of ​​the hole; Iterate through all the holes to obtain the area of ​​each hole.

6. The optical mesh design method for an infrared touch frame according to claim 5, characterized in that, The optical network design method also includes setting a maximum aperture reference value R, and after obtaining the area of ​​all apertures, comparing the area S of the maximum aperture with the maximum aperture reference value R.

7. The optical mesh design method for an infrared touch frame according to claim 6, characterized in that, When S < R, the optical network parameters are recorded; the optical network parameters include the boundary line equation, the transmission coordinates of the infrared transmitter, and the reception coordinates of the infrared receiver.

8. The optical mesh design method for an infrared touch frame according to any one of claims 1-3, characterized in that, The optical network design method also includes setting the transmission direction of the infrared transmitter and setting the reception direction of the infrared receiver.

Citation Information

Patent Citations

  • Touch screen and terminal device

    CN110275644A

  • Optical network drawing method of infrared touch frame

    CN111737778A