CN-122018718-A - Method, equipment and storage medium for determining contact coordinates of infrared touch component
Abstract
The application discloses a contact coordinate determining method, equipment and a storage medium of an infrared touch component, and relates to the technical field of data processing. The method comprises the steps of receiving first infrared light emitted by an infrared emitter on an infrared touch screen through a first infrared receiver, determining a shielding area and first contact coordinates of an infrared touch pen according to the first infrared light, determining a target second infrared receiver according to the relative position of the shielding area and the first contact coordinates, determining second contact coordinates of the infrared touch pen according to second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared touch pen, the wavelengths of the first infrared light and the second infrared light are different, and determining target contact coordinates of the infrared touch pen according to the first contact coordinates and the second contact coordinates, so that the accuracy of contact detection is improved.
Inventors
- CHEN WEISHAN
- LV JIAN
- LI FURONG
Assignees
- 深圳市天英联合科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251230
Claims (10)
- 1. The method for determining the contact coordinates of the infrared touch assembly is characterized by being applied to an infrared touch screen, wherein the infrared touch screen is provided with a first infrared receiver and a second infrared receiver, and the method for determining the contact coordinates of the infrared touch assembly comprises the following steps: Receiving first infrared light emitted by an infrared emitter on the infrared touch screen through the first infrared receiver, and determining a shielding area and a first contact point coordinate of an infrared touch pen according to the first infrared light; determining a target second infrared receiver according to the relative position of the shielding area and the first contact point coordinate, and determining a second contact point coordinate of the infrared stylus according to second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared stylus, and the wavelength of the first infrared light is different from that of the second infrared light; And determining the target contact coordinates of the infrared touch pen according to the first contact coordinates and the second contact coordinates.
- 2. The method of claim 1, wherein the infrared touch screen is rectangular, the first infrared receiver is disposed at a rectangular screen frame of the infrared touch screen, and the second infrared receiver is disposed at four corner vertices of the infrared touch screen.
- 3. The method of claim 2, wherein determining the target second infrared receiver based on the relative position of the occlusion region and the first contact coordinates comprises: Determining a central point of the shielding area, and dividing a touch area of the infrared touch screen into four sub-areas according to a connecting line from the central point to each second infrared receiver, wherein each sub-area corresponds to two second infrared receivers; and determining a target subarea where the first contact coordinates are located, and taking two second infrared receivers corresponding to the target subarea as the target second infrared receivers.
- 4. The method of claim 3, wherein determining the target contact coordinates of the infrared stylus from the first contact coordinates and the second contact coordinates comprises: Determining a target coordinate axis corresponding to a screen frame connected with the target sub-region; Respectively determining a first coordinate value and a second coordinate value corresponding to the target coordinate axis in the first contact coordinate and the second contact coordinate; Replacing the original first coordinate value in the first contact point coordinate with the average value of the first coordinate value and the second coordinate value; And taking the replaced first contact point coordinate as the target contact point coordinate.
- 5. The method of claim 1, wherein determining the target second infrared receiver based on the relative position of the occlusion region and the first contact coordinates comprises: Acquiring a boundary coordinate set of the shielding area, and determining a line segment coordinate set of a linear light path from the first contact point coordinate to any one of the second infrared receivers; And if the boundary coordinate set and the line segment coordinate set do not have the same coordinates, selecting at least two second infrared receivers corresponding to the line segment coordinate set as the target second infrared receivers.
- 6. The method of claim 5, wherein determining the target contact coordinates of the infrared stylus from the first contact coordinates and the second contact coordinates comprises: Taking the average value of X-axis coordinate values of the first contact point coordinate and the second contact point coordinate as the X-axis coordinate value of the target contact point coordinate; And taking the average value of the Y-axis coordinate values of the first contact point coordinate and the second contact point coordinate as the Y-axis coordinate value of the target contact point coordinate.
- 7. The method of claim 1, wherein prior to the step of determining a target second infrared receiver based on the relative positions of the occlusion region and the first contact coordinates, Determining the area of the shielding area; if the area of the shielding area is smaller than or equal to a preset threshold value, the first contact point coordinate is used as the target contact point coordinate; and if the area of the shielding area is larger than a preset threshold value, executing the step of determining a target second infrared receiver according to the relative position of the shielding area and the first contact coordinates.
- 8. The contact coordinate determining method of the infrared touch component is characterized by being applied to an infrared touch pen, wherein a Hall sensor and an infrared emitter are arranged at a pen point of the infrared touch pen, and the contact coordinate determining method of the infrared touch component comprises the following steps of: And when the triggering level of the Hall sensor is detected, controlling the infrared emitter to emit second infrared light, wherein the triggering level is used for indicating that the pen point is in a pressing state.
- 9. A contact coordinate determination device for an infrared touch assembly, characterized in that the device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the contact coordinate determination method for an infrared touch assembly according to any one of claims 1 to 8.
- 10. A storage medium, characterized in that the storage medium is a computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method for determining contact coordinates of an infrared touch assembly according to any one of claims 1 to 8.
Description
Method, equipment and storage medium for determining contact coordinates of infrared touch component Technical Field The present application relates to the field of data processing technologies, and in particular, to a method, an apparatus, and a storage medium for determining a contact coordinate of an infrared touch component. Background The infrared touch screen is characterized in that a dense infrared light net is formed by infrared rays which are fixedly combined, and when an opaque object shields the infrared light net, the position information of a touch area can be calculated through the shielded infrared light. When the pen is held on the surface of the screen by hand to write, the quantity of infrared rays passing through the pen point is greatly reduced because the hand contact part shields a plurality of infrared rays, the position of the pen point is deviated when calculation is performed, and the calculation of the coordinates of the contact point of the pen point is inaccurate. The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present application and is not intended to represent an admission that the foregoing is prior art. Disclosure of Invention The application mainly aims to provide a contact coordinate determining method, equipment and a storage medium of an infrared touch component, and aims to solve the technical problem of low accuracy of contact detection of an infrared touch screen. In order to achieve the above object, the present application provides a method for determining a contact coordinate of an infrared touch assembly, which is applied to an infrared touch screen, wherein the infrared touch screen is provided with a first infrared receiver and a second infrared receiver, and the method for determining the contact coordinate of the infrared touch assembly comprises: Receiving first infrared light emitted by an infrared emitter on the infrared touch screen through the first infrared receiver, and determining a shielding area and a first contact point coordinate of an infrared touch pen according to the first infrared light; determining a target second infrared receiver according to the relative position of the shielding area and the first contact point coordinate, and determining a second contact point coordinate of the infrared stylus according to second infrared light received by the target second infrared receiver, wherein the second infrared light is emitted by the infrared stylus, and the wavelength of the first infrared light is different from that of the second infrared light; And determining the target contact coordinates of the infrared touch pen according to the first contact coordinates and the second contact coordinates. In an embodiment, the infrared touch screen is rectangular, the first infrared receiver is disposed on a rectangular screen frame of the infrared touch screen, and the second infrared receiver is disposed on four corner vertices of the infrared touch screen. In one embodiment, the step of determining the target second infrared receiver based on the relative positions of the occlusion region and the first contact coordinates comprises: Determining a central point of the shielding area, and dividing a touch area of the infrared touch screen into four sub-areas according to a connecting line from the central point to each second infrared receiver, wherein each sub-area corresponds to two second infrared receivers; and determining a target subarea where the first contact coordinates are located, and taking two second infrared receivers corresponding to the target subarea as the target second infrared receivers. In one embodiment, the step of determining the target contact coordinates of the infrared stylus based on the first contact coordinates and the second contact coordinates includes: Determining a target coordinate axis corresponding to a screen frame connected with the target sub-region; Respectively determining a first coordinate value and a second coordinate value corresponding to the target coordinate axis in the first contact coordinate and the second contact coordinate; Replacing the original first coordinate value in the first contact point coordinate with the average value of the first coordinate value and the second coordinate value; And taking the replaced first contact point coordinate as the target contact point coordinate. In one embodiment, the step of determining the target second infrared receiver based on the relative positions of the occlusion region and the first contact coordinates comprises: Acquiring a boundary coordinate set of the shielding area, and determining a line segment coordinate set of a linear light path from the first contact point coordinate to any one of the second infrared receivers; And if the boundary coordinate set and the line segment coordinate set do not have the same coordinates, selecting at least two second infrared receivers correspondin