Contact coordinate determination method and device of infrared touch control assembly and storage medium

By using a combination of a first infrared receiver and an infrared stylus transmitter on an infrared touchscreen, the touch point coordinates are detected and calibrated, solving the problem of inaccurate coordinate calculation when writing with a handheld pen on an infrared touchscreen, and achieving high-precision detection of touch point coordinates.

CN122018718APending Publication Date: 2026-05-12SHENZHEN TIMELINK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHENZHEN TIMELINK TECHNOLOGY CO LTD
Filing Date
2025-12-30
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

When writing with a pen, the infrared touchscreen may not accurately calculate the position of the pen tip, resulting in low accuracy in the detection of touch point coordinates.

Method used

The infrared touchscreen receives the infrared light network signal formed by the infrared transmitter through the first infrared receiver on the screen bezel, detects the obstructed area and initially calculates the coordinates of the first touch point; using the second infrared light of different wavelengths emitted by the infrared stylus, the second infrared receiver calculates the coordinates of the second touch point, and combines the two for triangulation and weighted averaging to eliminate errors and determine the precise coordinates of the target touch point.

Benefits of technology

It improves the accuracy of touch detection on infrared touchscreens, eliminates single positioning errors, and ensures the accuracy of touch coordinate calculation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122018718A_ABST
    Figure CN122018718A_ABST
Patent Text Reader

Abstract

The invention discloses a contact coordinate determination method and device of an infrared touch component and a storage medium, and relates to the technical field of data processing. According to the method, first infrared light emitted by an infrared emitter on an infrared touch screen is received through a first infrared receiver, and a shielding area and a first touch point coordinate of an infrared touch pen are determined according to the first infrared light; a target second infrared receiver is determined according to the relative position of the shielding area and the first touch point coordinate, a second touch point coordinate of the infrared touch pen is determined according to second infrared light received by the target second infrared receiver, the second infrared light is emitted by the infrared touch pen, and the first infrared light and the second infrared light are different in wavelength; according to the first contact coordinate and the second contact coordinate, the target contact coordinate of the infrared touch pen is determined, and the accuracy of contact detection is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, device and storage medium for determining the touch coordinates of an infrared touch component. Background Technology

[0002] Infrared touchscreens use a dense infrared light grid composed of fixed combinations of infrared rays. When an opaque object blocks this grid, the position of the touch area can be calculated from the obstructed infrared light. When writing with a pen while holding the screen, the hand blocks much of the infrared light, significantly reducing the amount of infrared light passing through the pen tip. This leads to inaccurate calculations of the pen tip's position and the coordinates of the pen tip's touch point.

[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this application is to provide a method, device, and storage medium for determining the touch coordinates of an infrared touch component, aiming to solve the technical problem of low accuracy in touch detection of infrared touch screens.

[0005] To achieve the above objectives, this application proposes a method for determining the touch coordinates of an infrared touch component, applied to an infrared touch screen. The infrared touch screen is equipped with a first infrared receiver and a second infrared receiver. The method for determining the touch coordinates of the infrared touch component includes: The first infrared receiver receives the first infrared light emitted by the infrared transmitter on the infrared touch screen, and determines the occlusion area and the coordinates of the first touch point of the infrared stylus based on the first infrared light. Based on the relative position of the obstructed area and the coordinates of the first touch point, the target second infrared receiver is determined, and the coordinates of the second touch point of the infrared stylus are determined based on the second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared stylus, and the wavelengths of the first infrared light and the second infrared light are different; The target touch point coordinates of the infrared stylus are determined based on the coordinates of the first touch point and the coordinates of the second touch point.

[0006] In one embodiment, the infrared touch screen is rectangular, the first infrared receiver is disposed on the rectangular screen border of the infrared touch screen, and the second infrared receiver is disposed at the four corner vertices of the infrared touch screen.

[0007] In one embodiment, the step of determining the target second infrared receiver based on the relative position of the obstruction area and the coordinates of the first contact point includes: Determine the center point of the occlusion area, and divide the touch area of ​​the infrared touch screen into four sub-areas based on the lines connecting the center point to each of the second infrared receivers, wherein each sub-area corresponds to two second infrared receivers. Determine the target sub-region where the coordinates of the first contact point are located, and use the two second infrared receivers corresponding to the target sub-region as the target second infrared receivers.

[0008] In one embodiment, the step of determining the target touch point coordinates of the infrared stylus based on the first touch point coordinates and the second touch point coordinates includes: Determine the target coordinate axis corresponding to the screen border connected to the target sub-region; Determine the first coordinate value and the second coordinate value corresponding to the target coordinate axis in the first contact point coordinates and the second contact point coordinates, respectively; Replace the original first coordinate value in the first contact point coordinate with the average of the first coordinate value and the second coordinate value; The replaced coordinates of the first contact point are used as the coordinates of the target contact point.

[0009] In one embodiment, the step of determining the target second infrared receiver based on the relative position of the obstruction area and the coordinates of the first contact point includes: Obtain the boundary coordinate set of the occlusion area, and determine the line segment coordinate set of the straight optical path from the coordinates of the first contact point to any of the second infrared receivers; If the boundary coordinate set does not have the same coordinates as the line segment coordinate set, then at least two of the second infrared receivers corresponding to the line segment coordinate set are selected as the target second infrared receivers.

[0010] In one embodiment, the step of determining the target touch point coordinates of the infrared stylus based on the first touch point coordinates and the second touch point coordinates includes: The average of the X-axis coordinates of the first contact point and the second contact point is taken as the X-axis coordinate of the target contact point. The average of the Y-axis coordinates of the first contact point and the second contact point is used as the Y-axis coordinate of the target contact point.

[0011] In one embodiment, prior to the step of determining the target second infrared receiver based on the relative position of the obstruction area and the coordinates of the first contact point, Determine the area of ​​the obstructed region; If the area of ​​the obstructed region is less than or equal to a preset threshold, then the coordinates of the first touch point are used as the coordinates of the target touch point. If the area of ​​the obstruction region is greater than a preset threshold, then the step of determining the target second infrared receiver based on the relative position of the obstruction region and the coordinates of the first contact point is executed.

[0012] Furthermore, to achieve the above objectives, this application also proposes a method for determining the touch coordinates of an infrared touch component, applied to an infrared stylus. The tip of the infrared stylus is equipped with a Hall sensor and an infrared emitter. The method for determining the touch coordinates of the infrared touch component includes the following steps: When the trigger level of the Hall sensor is detected, the infrared emitter is controlled to emit a second infrared light, and the trigger level is used to indicate that the pen tip is in a pressed state.

[0013] In addition, to achieve the above objectives, this application also proposes a device for determining the touch coordinates of an infrared touch component, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for determining the touch coordinates of an infrared touch component as described above.

[0014] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the method for determining the touch coordinates of the infrared touch component as described above.

[0015] This application provides a method for determining the touch coordinates of an infrared touch component. The method involves receiving first infrared light emitted by an infrared emitter on an infrared touchscreen via a first infrared receiver, and determining the coordinates of an obstruction area and a first touch point of an infrared stylus based on the first infrared light. Then, based on the relative position of the obstruction area and the first touch point coordinates, a target second infrared receiver is determined, and the coordinates of a second touch point of the infrared stylus are determined based on the second infrared light received by the target second infrared receiver. The second infrared light is emitted by the infrared stylus, and the wavelengths of the first and second infrared light are different. Finally, the target touch point coordinates of the infrared stylus are determined based on the first and second touch point coordinates.

[0016] The above method utilizes a first infrared receiver on the screen bezel of an infrared touchscreen to receive the infrared light grid signal formed by the screen transmitter. By detecting the blocked horizontal and vertical beams, the coordinates of the first touch point and the range of the obstructed area are initially calculated. Then, a second infrared receiver receives a specific wavelength of second infrared light emitted by an infrared stylus to calculate the distance between the stylus and the receiver. Combining the known coordinates of at least two second receivers, triangulation is used to obtain the coordinates of the second touch point, which is not limited by the light grid. Finally, the coordinates of the first and second touch points are integrated to eliminate the error of single positioning and output accurate target touch point coordinates, thereby improving the detection accuracy of the touch point. Attached Figure Description

[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0018] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 A flowchart illustrating the method for determining the touch coordinates of the infrared touch component in this application (Example 1). Figure 2 An example diagram of a first infrared touch screen provided in Embodiment 1 of the method for determining the touch coordinates of the infrared touch component of this application; Figure 3 This is an example diagram of the distribution of the second infrared receiver provided in Embodiment 2 of the method for determining the touch coordinates of the infrared touch component of this application; Figure 4 Example diagram of the distribution of the second infrared receiver provided in Embodiment 4 of the method for determining the touch coordinates of the infrared touch component of this application; Figure 5 This is a schematic diagram of the touch area division provided in Embodiment 4 of the method for determining the touch coordinates of the infrared touch component of this application; Figure 6 This is a simplified flowchart illustrating the method for determining the touch coordinates of the infrared touch component in an embodiment of this application. Figure 7 This is a schematic diagram of the device structure of the hardware operating environment involved in the touch point coordinate method of the infrared touch component in the embodiments of this application.

[0020] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of this application and are not intended to limit this application.

[0022] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments. It should be noted that all actions involving the acquisition of signals, information, or data in this application are performed in accordance with the relevant data protection laws and regulations of the country where the application is located, and with authorization from the owner of the corresponding device.

[0023] Infrared touchscreens use a dense infrared light grid composed of fixed combinations of infrared rays. When an opaque object blocks this grid, the position of the touch area can be calculated from the obstructed infrared light. When writing with a pen while holding the screen, the hand blocks much of the infrared light, significantly reducing the amount of infrared light passing through the pen tip. This leads to inaccurate calculations of the pen tip's position and the coordinates of the pen tip's touch point.

[0024] In view of the above problems, this application proposes a method for determining the touch point coordinates of an infrared touch component. The method involves receiving first infrared light emitted by an infrared transmitter on an infrared touchscreen via a first infrared receiver, and determining the coordinates of an obstruction area and a first touch point of an infrared stylus based on the first infrared light. Then, based on the relative position of the obstruction area and the first touch point coordinates, a target second infrared receiver is determined, and the coordinates of a second touch point of the infrared stylus are determined based on the second infrared light received by the target second infrared receiver. The second infrared light is emitted by the infrared stylus, and the wavelengths of the first and second infrared light are different. Finally, the target touch point coordinates of the infrared stylus are determined based on the first and second touch point coordinates.

[0025] The above method utilizes a first infrared receiver on the screen bezel of an infrared touchscreen to receive the infrared light grid signal formed by the screen transmitter. By detecting the blocked horizontal and vertical beams, the coordinates of the first touch point and the range of the obstructed area are initially calculated. Then, a second infrared receiver receives a specific wavelength of second infrared light emitted by an infrared stylus to calculate the distance between the stylus and the receiver. Combining the known coordinates of at least two second receivers, triangulation is used to obtain the coordinates of the second touch point, which is not limited by the light grid. Finally, the coordinates of the first and second touch points are integrated to eliminate the error of single positioning and output accurate target touch point coordinates, thereby improving the detection accuracy of the touch point.

[0026] Based on this, the first embodiment of this application provides a method for determining the touch point coordinates of an infrared touch component, applied to an infrared touch screen, wherein the infrared touch screen is provided with a first infrared receiver and a second infrared receiver, referring to... Figure 1 In this embodiment, the method for determining the touch point coordinates of the infrared touch component includes steps S10 to S30: Step S10: Receive the first infrared light emitted by the infrared transmitter on the infrared touch screen through the first infrared receiver, and determine the occlusion area and the coordinates of the first touch point of the infrared stylus based on the first infrared light.

[0027] It should be noted that the first infrared receiver is an infrared receiving device located on the screen bezel of the infrared touchscreen, used to receive the first infrared light emitted by the infrared transmitter on the screen bezel. (See reference...) Figure 2The infrared emitters on the bezel of the infrared touchscreen correspond one-to-one with the first infrared receivers on the same edge, forming an infrared light grid covering the entire screen. When a touch area is present on the screen, the object blocking the infrared light grid partially blocks the horizontal and vertical beams. The first infrared receiver corresponding to the blocked horizontal beam detects a sudden drop in the received intensity of the first infrared light, thus recording that the horizontal beam is blocked; similarly, the first infrared receiver corresponding to the blocked vertical beam detects a sudden drop in the received intensity of the first infrared light, recording that the vertical beam is blocked. By integrating all the blocked horizontal beams (corresponding to the y-axis coordinate range) and vertical beams (corresponding to the x-axis coordinate range), the infrared touchscreen can calculate the coordinates of the touch area formed by the intersection of these beams, and can identify whether the object is an infrared stylus or another obstruction based on the area of ​​the touch area.

[0028] For example, a threshold range for the touch area can be set based on the area of ​​the tip of the infrared stylus. When the calculated area of ​​the touch area is within the threshold range, the object touched within the touch area is determined to be an infrared stylus.

[0029] Step S20: Determine the target second infrared receiver based on the relative position of the occluded area and the first touch point coordinates, and determine the second touch point coordinates of the infrared stylus based on the second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared stylus, and the wavelengths of the first infrared light and the second infrared light are different.

[0030] It should be noted that the second infrared receiver is an infrared receiving device located on the screen bezel for receiving the second infrared light emitted by the infrared stylus. The wavelength of the second infrared light emitted by the infrared stylus can be set to be different from the first infrared light. The first and second infrared receivers distinguish the emitted signal from the infrared emitter on the screen bezel from the emitted signal from the infrared stylus by using wavelength. The target second infrared receiver is the area where the optical path between it and the first touch point coordinates is not blocked, enabling it to effectively receive the second infrared light.

[0031] Understandably, when a user holds a stylus and writes on the infrared touchscreen, the hand blocks a significant amount of infrared light, drastically reducing the amount of infrared light passing through the pen tip. This leads to inaccurate calculations and a deviation in the pen tip's position. The purpose of the second infrared receiver is to use independent positioning logic to receive the infrared light actively emitted by the stylus and obtain a set of stylus position data—the second touchpoint coordinates—that is unaffected by the limitations of the screen's infrared grid. This data is used to supplement or correct the deviations in the first touchpoint coordinates.

[0032] Optionally, after determining the target second infrared receiver and the target second infrared receiver receiving the second infrared light from the infrared stylus, refer to Figure 3 The distance between the infrared stylus and the target second infrared receiver can be calculated using the propagation parameters of the second infrared light, such as the speed of light and the light intensity. Then, combined with the known coordinates of at least two target second infrared receivers, the coordinates of the second touch point of the infrared stylus can be solved using the triangulation formula.

[0033] For example, assuming the speed of light of the second infrared light is known, the control processing unit of the infrared touch screen receives the second infrared light through the target second infrared receiver, records the propagation time of the second infrared light from the tip of the infrared stylus to its reception, determines the distance from the tip of the stylus to the target second infrared receiver based on the product of the propagation time and the speed of light, and then constructs an equation to solve for the coordinates of the second touch point of the infrared stylus by combining the known coordinates of the target second infrared receiver.

[0034] Step S30: Determine the target touch point coordinates of the infrared stylus based on the first touch point coordinates and the second touch point coordinates.

[0035] Optionally, the deviation between the coordinates of the first touch point and the coordinates of the second touch point is analyzed, and the coordinates of the first and second touch points are fused by algorithms such as weighted averaging and deviation compensation. For example, weighted calculation and averaging are used to eliminate the coordinate calculation error of the infrared light grid and generate the final target touch point coordinates, which serve as the precise touch point position of the infrared stylus on the screen for responding to touch operations.

[0036] In this embodiment, a first infrared receiver on the screen bezel of the infrared touchscreen receives the infrared light grid signal formed by the screen transmitter. By detecting the blocked horizontal and vertical beams, the coordinates of the first touch point and the range of the obstructed area are initially calculated. Then, a second infrared receiver receives the second infrared light of a specific wavelength emitted by the infrared stylus and calculates the distance between the stylus and the receiver. Combining the known coordinates of at least two second receivers, the coordinates of the second touch point, which are not limited by the light grid, are obtained through triangulation. Finally, the coordinates of the first and second touch points are integrated to eliminate the error of single positioning and output accurate target touch point coordinates, thereby improving the detection accuracy of the touch point.

[0037] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, step S20 includes steps S21 to S22: Step S21: Obtain the boundary coordinate set of the occlusion area and determine the line segment coordinate set of the straight optical path from the first contact point coordinate to any of the second infrared receivers.

[0038] For example, the first infrared receiver determines the position of the blocked beam by detecting the on / off state of the first infrared light, and calculates the range of the blocked area. For instance, if the blocked horizontal beam covers y1~y2 and the blocked vertical beam covers x1~x2, then R can be initially determined as a rectangular region (x1,y1)-(x2,y2), and the boundary coordinates of this rectangular region are used as the boundary coordinate set. Optionally, it can also be done through... Figure 2 The multi-beam cross-fit shown can more accurately determine the boundary coordinates of irregular occlusion areas and obtain the boundary coordinate set of the occlusion areas.

[0039] Next, the preset fixed coordinates of the second infrared receiver are obtained, and the straight optical path segments of each second infrared receiver and the first contact point coordinates obtained in step S10 are calculated respectively. The coordinates of the straight optical path segments are sampled according to the preset precision to generate a set of line segment coordinates to reflect the path of the straight optical path.

[0040] Step S22: If the boundary coordinate set and the line segment coordinate set do not have the same coordinates, then select at least two of the second infrared receivers corresponding to the line segment coordinate set as the target second infrared receivers.

[0041] For example, the coordinate set of the line segment corresponding to each second infrared receiver is compared one by one with the boundary coordinate set of the obstruction area to check whether there are any identical coordinate points in the two sets. If there are no identical coordinates in the two sets, it means that the straight optical path from the first contact point coordinate to the second infrared receiver does not intersect with the edge of the obstruction area, that is, the optical path is not blocked by the obstruction area, and the second infrared receiver has the condition to receive the second infrared light, and is marked as a candidate second infrared receiver. If there are identical coordinates in the two sets, it means that the optical path is blocked by the edge of the obstruction area, that is, the line segment intersects with the obstruction area, and the second infrared receiver cannot effectively receive the second infrared light, and is excluded. From all candidate second infrared receivers, at least two are selected as the final target second infrared receivers, which are used to calculate the second contact point coordinates based on the received second infrared light.

[0042] For example, refer to Figure 3Assuming the infrared touchscreen has four second infrared receivers R1, R2, R3, and R4 on its screen bezel, and the pen tip contact point corresponding to the first contact point coordinates is S, and the straight light path from S to R1, R2, and R3 does not intersect the edge of the obstructed area, then any two of R1, R2, and R3 can be selected as the target second infrared receivers to calculate the second contact point coordinates of the pen tip. It is understandable that although the first contact point coordinates may deviate from the actual pen tip contact position, the relative position of the pen tip contact point and the obstructed area reflected by the first contact point coordinates can be determined. Therefore, after determining the relative position of the first contact point coordinates and the obstructed area, the direction in which the second infrared light emitted by the infrared stylus will not be obstructed can be analyzed based on this relative position. By receiving the second infrared light emitted by the infrared stylus through the second infrared receiver in this direction, the second contact point coordinates of the infrared stylus can be accurately calculated, and these second contact point coordinates can be used to correct the first contact point coordinates.

[0043] It should be noted that, Figure 3 The installation position of the second infrared receiver shown is only for illustrative purposes. In actual applications, the second infrared receiver can be installed anywhere on the screen bezel, and there can be more than two second infrared receivers.

[0044] Based on the second embodiment described above, in the third embodiment of this application, the step of determining the target second infrared receiver according to the relative position of the obstruction area and the coordinates of the first contact point includes steps S31-S32: Step S31: The average of the X-axis coordinates of the first contact point coordinate and the second contact point coordinate is taken as the X-axis coordinate of the target contact point coordinate.

[0045] Step S32: The average value of the Y-axis coordinates of the first contact point coordinates and the second contact point coordinates is taken as the Y-axis coordinate value of the target contact point coordinates.

[0046] For example, assume the coordinates of the first touch point are P1(x1, y1), where x1 is the X-axis coordinate and y1 is the Y-axis coordinate; and the coordinates of the second touch point are P2(x2, y2), where x2 is the X-axis coordinate and y2 is the Y-axis coordinate. The control processing unit of the infrared touch screen calculates the arithmetic mean of x1 and x2 as the target X-axis coordinate: (x1+x2) / 2; similarly, it calculates the arithmetic mean of y1 and y2 as the target Y-axis coordinate: (y1+y2) / 2.

[0047] Alternatively, as a feasible implementation method, the weights of the first contact point coordinates and the second contact point coordinates can be preset, and the first contact point coordinates and the second contact point coordinates can be weighted and summed according to their weights to obtain the target contact point coordinates.

[0048] Based on the first embodiment of this application, in the fourth embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 4 The infrared touch screen is rectangular, the first infrared receiver is disposed on the rectangular screen border of the infrared touch screen, and the second infrared receiver is disposed at the four corner vertices of the infrared touch screen.

[0049] Based on this, the step of determining the target second infrared receiver according to the relative position of the obstructed area and the coordinates of the first contact point includes steps S23-S24: Step S23: Determine the center point of the obstruction area, and divide the touch area of ​​the infrared touch screen into four sub-areas based on the lines connecting the center point to each of the second infrared receivers, wherein each sub-area corresponds to two second infrared receivers.

[0050] It should be noted that the center point of the occlusion region is the coordinate of the geometric center of the occlusion region, which can be obtained by calculating the average value of the boundary coordinates of the occlusion region, and is used as a reference benchmark for dividing the sub-regions. The sub-regions are formed by connecting the center point of the occlusion region to the second infrared receivers at the four corner vertices, and there are four sub-regions in total. Each sub-region corresponds to two adjacent second infrared receivers at the corner vertices.

[0051] For example, the coordinate set of the occlusion area boundary is obtained, the center point O is calculated using the geometric center formula, and the lines connecting the center point to each of the second infrared receivers are determined from the known coordinates of the center point O and the four corner vertices of the second infrared receiver, and the coordinates of these lines are obtained. The four lines divide the touch area of ​​the rectangular touch screen into four adjacent sub-regions. Each sub-region is enclosed by two adjacent lines and the screen border, and each sub-region corresponds to two adjacent corner vertices of the second infrared receiver.

[0052] For example, refer to Figure 5 The touch area is divided into sub-regions 1, 2, 3, and 4 by lines connecting the center point O of the obstructed area to the second infrared receivers R1, R2, R3, and R4, respectively. Sub-region 1 corresponds to the second infrared receivers R1 and R4; sub-region 2 corresponds to the second infrared receivers R1 and R2; sub-region 3 corresponds to the second infrared receivers R2 and R3; and sub-region 4 corresponds to the second infrared receivers R3 and R4.

[0053] Step S24: Determine the target sub-region where the coordinates of the first contact point are located, and use the two second infrared receivers corresponding to the target sub-region as the target second infrared receivers.

[0054] The target sub-region where the pen tip is located relative to the occluded area is determined by the coordinates of the first contact point. The two corner vertices of the target sub-region are then identified as the target second infrared receivers. For example, if the pen tip contact point corresponding to the first contact point coordinates is in sub-region 1, then the target receivers are R1 and R4. The second contact point coordinates of the infrared stylus are calculated based on the second infrared light emitted by the pen tip received by R1 and R4.

[0055] It is understandable that the center point of the occluded area is its geometric center. The lines connecting the center point to the four corner vertices of the screen border are equivalent to surrounding the occluded area, forming four sub-areas located on the periphery of the occluded area. When the coordinates of the first touch point fall into a certain sub-area, it means that the line connecting the coordinates of the first touch point to the two corner vertices of the corresponding sub-area will bypass the main body of the occluded area, and the light path will not be blocked by the obstruction of the occluded area, thus ensuring the accuracy of the calculation of the coordinates of the second touch point.

[0056] Based on the fourth embodiment described above, in the fifth embodiment of this application, step S30 includes steps S33 to S36: Step S33: Determine the target coordinate axis corresponding to the screen border connected to the target sub-region.

[0057] Step S34: Determine the first coordinate value and the second coordinate value corresponding to the target coordinate axis in the first contact point coordinates and the second contact point coordinates, respectively.

[0058] Step S35: Replace the original first coordinate value in the first contact point coordinates with the average of the first coordinate value and the second coordinate value.

[0059] Step S36: Use the replaced first contact point coordinates as the target contact point coordinates.

[0060] For example, refer to Figure 5 If the pen tip touch point corresponding to the first touch point coordinate is in sub-region 1, then the screen border connected to the target sub-region is the screen border between the target second infrared receivers R1 and R4. Assuming this screen border corresponds to the X-axis, determine the first coordinate value X1 and the second coordinate value X2 corresponding to the X-axis in the first and second touch point coordinates, calculate the average value of X1 and X2 (X1+X2) / 2, and replace the original X1 in the first touch point coordinate with this average value. Similarly, when the pen tip touch point corresponding to the first touch point coordinate is in sub-region 4, then the screen border connected to the target sub-region is the screen border between the target second infrared receivers R3 and R4, which corresponds to the Y-axis. Determine the first coordinate value Y1 and the second coordinate value Y2 corresponding to the Y-axis in the first and second touch point coordinates, calculate the average value of Y1 and Y2 (Y1+Y2) / 2, and replace the original Y1 in the first touch point coordinate with this average value.

[0061] Understandably, in Figure 5 In the sub-region division shown, when the first infrared receiver detects that the pen tip touch point falls on sub-region 1 or sub-region 3, the obstruction area will affect the first infrared receiver's reception of light in the vertical (Y-axis) direction. This means that when calculating the X-axis coordinate value of the first touch point based on the first infrared light received by the first infrared receiver, there will be a larger deviation; in this case, the X-axis coordinate value from the second touch point coordinate system is used for correction. Similarly, when the first infrared receiver detects that the pen tip touch point falls on sub-region 2 or sub-region 4, the obstruction area will affect the first infrared receiver's reception of light in the horizontal (X-axis) direction. This means that when calculating the Y-axis coordinate value of the first touch point based on the first infrared light received by the first infrared receiver, there will be a larger deviation; in this case, the Y-axis coordinate value from the second touch point coordinate system is used for correction.

[0062] Optionally, if the first infrared receiver detects that the pen tip falls on the common edge of any two adjacent sub-regions, then one of the two adjacent sub-regions is selected as the target sub-region.

[0063] Based on the above embodiments of this application, in the sixth embodiment of this application, the content that is the same as or similar to the above embodiments can be referred to the above description, and will not be repeated hereafter. Furthermore, before step S20, the method for determining the touch point coordinates of the infrared touch component further includes steps S40~S60: Step S40: Determine the area of ​​the occluded region.

[0064] For example, after obtaining the boundary coordinate set of the occluded area through the first infrared light received by the first infrared receiver, the area of ​​the occluded area is calculated using a geometric area calculation formula. For example, the polygon is divided into triangles and the area of ​​each triangle is summed, or the area enclosed by adjacent sides and coordinate axes is calculated sequentially through coordinate points and then accumulated to finally obtain the area value of the occluded area.

[0065] Step S50: If the area of ​​the obstructed region is less than or equal to a preset threshold, then the coordinates of the first touch point are used as the coordinates of the target touch point.

[0066] Step S60: If the area of ​​the obstruction region is greater than a preset threshold, then the step of determining the target second infrared receiver based on the relative position of the obstruction region and the coordinates of the first contact point is executed.

[0067] When the obstruction area is small, the accuracy of the first touch point coordinates is sufficient for the application, and in this case, the first touch point coordinates are directly used as the target touch point coordinates. When the obstruction area is large, the first infrared light grid may be largely blocked, causing the first touch point coordinates to deviate due to beam misjudgment. In this case, the correction logic of the second infrared receiver is activated, and independent positioning is performed using the second infrared light actively emitted by the pen. This effectively avoids interference from obstructions to the first light grid, ensures the accuracy of the target touch point coordinates, and avoids touch malfunction or misoperation caused by obstruction.

[0068] Based on the above embodiments, the seventh embodiment of this application provides a method for determining the touch coordinates of an infrared touch component, applied to an infrared stylus. The tip of the infrared stylus is equipped with a Hall sensor and an infrared emitter. When the infrared stylus detects the trigger level of the Hall sensor, it controls the infrared emitter to emit a second infrared light. This trigger level is used to indicate that the stylus tip is in a pressed state.

[0069] In this embodiment, the infrared stylus is used to interact with the infrared touch screen. Its pen tip integrates a Hall sensor and an infrared emitter. The Hall sensor outputs a level by sensing changes in the magnetic field to detect whether the pen tip is in a pressed state. When a trigger level is detected, it controls the infrared emitter to emit a second infrared light, which is received by the second infrared receiver of the infrared touch screen to locate the position of the pen tip.

[0070] For example, to help understand the implementation flow of the method for determining the touch coordinates of the infrared touch component obtained by combining the above embodiments, please refer to... Figure 6 , Figure 6 A simplified flowchart illustrating a method for determining the touch point coordinates of an infrared touch component is provided, specifically: The first infrared receiver collects the first infrared light emitted by the infrared emitter on the infrared touchscreen, providing the raw signal for subsequent determination of the obstruction area and the coordinates of the first touch point. Then, the second infrared receiver collects the second infrared light emitted by the infrared emitter on the tip of the infrared stylus, providing an independent signal source for subsequent calculation of the second touch point coordinates and correction of the first touch point coordinates. Based on the collected first infrared light, the area of ​​the obstruction area is calculated and compared with a preset threshold. If the obstruction area is less than or equal to the preset threshold, it indicates that the obstruction has little impact on the first touch point coordinates, and the first touch point coordinates are directly used as the target touch point coordinates. If the obstruction area is greater than the preset threshold, it indicates that the obstruction has significant interference with the first touch point coordinates, and the second infrared correction process needs to be initiated. Based on the relative position of the obstruction area and the first touch point coordinates, the target second infrared receiver is determined, and infrared receivers whose optical path to the first touch point is not obstructed and can effectively receive the second infrared light are selected. Based on the second infrared light collected by the target second infrared receiver, the second touch point coordinates are calculated. Finally, the final target touch point coordinates are determined based on the first touch point coordinates and the second touch point coordinates.

[0071] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the touch point coordinate method of the infrared touch component of this application. Any simple transformations based on this technical concept are within the protection scope of this application.

[0072] This application provides a touch coordinate device for an infrared touch component. The touch coordinate device for the infrared touch component includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the touch coordinate method for the infrared touch component in the first embodiment described above.

[0073] The following is for reference. Figure 7 This document illustrates a schematic diagram of a touch coordinate device suitable for implementing the infrared touch component of the embodiments of this application. The touch coordinate device for the infrared touch component in the embodiments of this application may include, but is not limited to, mobile terminals such as laptops, tablets (PADs), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs. Figure 7 The touch coordinate device of the infrared touch component shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.

[0074] like Figure 7As shown, the touch coordinate device of the infrared touch component may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 1002 or a program loaded from storage device 1003 into random access memory (RAM) 1004. The random access memory 1004 also stores various programs and data required for the operation of the touch coordinate device of the infrared touch component. The processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the touch coordinate device of the infrared touch component to communicate wirelessly or wiredly with other devices to exchange data. Although touch coordinate devices of infrared touch components with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0075] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0076] The touch coordinate device for an infrared touch component provided in this application, employing the touch coordinate method for an infrared touch component in the above embodiments, can solve the technical problem of low accuracy in touch detection of infrared touch screens. Compared with the prior art, the beneficial effects of the touch coordinate device for an infrared touch component provided in this application are the same as those of the touch coordinate method for an infrared touch component provided in the above embodiments, and other technical features in this touch coordinate device for an infrared touch component are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.

[0077] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0078] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0079] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the touch coordinate method of the infrared touch component in the above embodiments.

[0080] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0081] The aforementioned computer-readable storage medium may be included in the touch coordinate device of the infrared touch component; or it may exist independently and not assembled into the touch coordinate device of the infrared touch component.

[0082] The aforementioned computer-readable storage medium carries one or more programs that, when executed by the touch coordinate device of the infrared touch component, enable the touch coordinate device of the infrared touch component to write computer program code for performing the operations of this application in one or more programming languages ​​or a combination thereof. These programming languages ​​include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, or as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0083] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0084] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0085] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the touch point coordinate method of the above-described infrared touch component, thereby solving the technical problem of low accuracy in touch point detection of infrared touch screens. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the touch point coordinate method of the infrared touch component provided in the above embodiments, and will not be repeated here.

[0086] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the touch point coordinate method for an infrared touch component as described above.

[0087] The computer program product provided in this application can solve the technical problem of low accuracy in touch detection of infrared touch screens. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as the beneficial effects of the touch coordinate method of the infrared touch component provided in the above embodiments, and will not be repeated here.

[0088] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A method for determining the touch point coordinates of an infrared touch component, characterized in that, Applied to infrared touch screens, the infrared touch screens are equipped with a first infrared receiver and a second infrared receiver. The determination of the touch point coordinates of the infrared touch component includes the following steps: The first infrared receiver receives the first infrared light emitted by the infrared transmitter on the infrared touch screen, and determines the occlusion area and the coordinates of the first touch point of the infrared stylus based on the first infrared light. Based on the relative position of the obstructed area and the coordinates of the first touch point, the target second infrared receiver is determined, and the coordinates of the second touch point of the infrared stylus are determined based on the second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared stylus, and the wavelengths of the first infrared light and the second infrared light are different; The target touch point coordinates of the infrared stylus are determined based on the coordinates of the first touch point and the coordinates of the second touch point.

2. The method as described in claim 1, characterized in that, The infrared touch screen is rectangular, with the first infrared receiver positioned on the rectangular screen border and the second infrared receiver positioned at the four corner vertices of the infrared touch screen.

3. The method as described in claim 2, characterized in that, The step of determining the target second infrared receiver based on the relative position of the obstructed area and the coordinates of the first contact point includes: Determine the center point of the occlusion area, and divide the touch area of ​​the infrared touch screen into four sub-areas based on the lines connecting the center point to each of the second infrared receivers, wherein each sub-area corresponds to two second infrared receivers. Determine the target sub-region where the coordinates of the first contact point are located, and use the two second infrared receivers corresponding to the target sub-region as the target second infrared receivers.

4. The method as described in claim 3, characterized in that, The step of determining the target touch point coordinates of the infrared stylus based on the first touch point coordinates and the second touch point coordinates includes: Determine the target coordinate axis corresponding to the screen border connected to the target sub-region; Determine the first coordinate value and the second coordinate value corresponding to the target coordinate axis in the first contact point coordinates and the second contact point coordinates, respectively; Replace the original first coordinate value in the first contact point coordinate with the average of the first coordinate value and the second coordinate value; The replaced coordinates of the first contact point are used as the coordinates of the target contact point.

5. The method as described in claim 1, characterized in that, The step of determining the target second infrared receiver based on the relative position of the obstructed area and the coordinates of the first contact point includes: Obtain the boundary coordinate set of the occlusion area, and determine the line segment coordinate set of the straight optical path from the coordinates of the first contact point to any of the second infrared receivers; If the boundary coordinate set does not have the same coordinates as the line segment coordinate set, then at least two of the second infrared receivers corresponding to the line segment coordinate set are selected as the target second infrared receivers.

6. The method as described in claim 5, characterized in that, The step of determining the target touch point coordinates of the infrared stylus based on the first touch point coordinates and the second touch point coordinates includes: The average of the X-axis coordinates of the first contact point and the second contact point is taken as the X-axis coordinate of the target contact point. The average of the Y-axis coordinates of the first contact point and the second contact point is used as the Y-axis coordinate of the target contact point.

7. The method as described in claim 1, characterized in that, Before the step of determining the target second infrared receiver based on the relative position of the obstructed area and the coordinates of the first contact point, Determine the area of ​​the obstructed region; If the area of ​​the obstructed region is less than or equal to a preset threshold, then the coordinates of the first touch point are used as the coordinates of the target touch point. If the area of ​​the obstructed region is greater than a preset threshold, then the step of determining the target second infrared receiver based on the relative position of the obstructed region and the coordinates of the first contact point is executed.

8. A method for determining the touch point coordinates of an infrared touch component, characterized in that, An infrared stylus is used, wherein the tip of the stylus is equipped with a Hall sensor and an infrared emitter, and the method for determining the touch point coordinates of the infrared touch component includes the following steps: When the trigger level of the Hall sensor is detected, the infrared emitter is controlled to emit a second infrared light, and the trigger level is used to indicate that the pen tip is in a pressed state.

9. A device for determining the touch coordinates of an infrared touch component, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for determining the touch coordinates of the infrared touch component as claimed in any one of claims 1 to 8.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the method for determining the touch coordinates of the infrared touch component as described in any one of claims 1 to 8.