Infrared touch device and method for determining position of touch point of infrared touch device
By using uneven pitch infrared emitters and receiver tubes in infrared touch devices, combined with the operation of the processor, the calculation process of touch point positions is optimized, the complex and time-consuming calculation problem in the prior art is solved, and the response speed is improved .
Patent Information
- Application Number
- CN202310525626.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-10
- Publication Date
- 2024-11-12
AI Technical Summary
When determining the position of the touch point, existing infrared touch devices need to calculate the light intensity of each optical path in all scanning directions, resulting in a complex and time-consuming calculation process.
The infrared emitter and infrared receiver tube arranged at uneven spacing are used to determine the first touch area and select the target scanning direction from it by the processor in response to the user's touch operation, and determine the second touch area and the center point coordinate information according to the light intensity of the optical path. , the infrared emitter corresponding to the blocking light path is determined in combination with the preset extended scanning direction threshold, and the position information of the touch point is determined according to the scanning direction of each infrared emitter.
It reduces the cumbersomeness of calculating touch point position information, improves the efficiency of touch point position determination, and improves the touch response speed.
Smart Images

Figure CN118939139A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to touch device technology, and more specifically, to an infrared touch device and a method for determining a touch point position of the infrared touch device. Background Art
[0002] With the continuous advancement of science and technology, the arrangement of infrared emitting tubes in infrared touch devices has also developed from densely arranged with equal spacing to unequal spacing or large spacing. In order to improve the touch response speed of such infrared touch devices, it becomes particularly important to quickly locate the touch points on the screen.
[0003] In the prior art, when determining the position of a touch point, the light intensity of each light path of the touch point in all scanning directions is usually scanned in full screen, and then the position information of the touch point is determined according to the light intensity of all light paths. In the prior art, for a specific infrared emitting tube, each angle corresponding to the n light paths emitted by it is called a scanning direction.
[0004] However, the prior art needs to calculate the position information of the touch point according to the light intensity of each light path in all scanning directions, and the calculation process is redundant, complicated and time-consuming. Summary of the invention
[0005] The exemplary embodiments of the present application provide an infrared touch device and a method for determining the touch point position of the infrared touch device, which is used to solve the problem that the prior art needs to calculate the position information of the touch point based on the light intensity of each light path in all scanning directions, and the calculation process is redundant, complex and time-consuming.
[0006] In a first aspect, an infrared touch device according to an embodiment of the present application includes: infrared transmitting tubes arranged at unequal intervals, infrared receiving tubes arranged at unequal intervals, and a processor;
[0007] The infrared emitting tube is configured to: emit infrared light to form a light path, and all light paths formed by each infrared emitting tube are a set of light paths in a scanning direction;
[0008] The infrared receiving tube is configured to: receive the infrared light emitted by the infrared emitting tube;
[0009] The processor is configured to: determine a first touch area in response to a touch operation of a user, wherein the first touch area blocks a plurality of light paths in a plurality of scanning directions;
[0010] Selecting a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determining coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction;
[0011] Determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and the center point coordinate information;
[0012] According to the scanning direction corresponding to each infrared emitting tube, the light intensity of the light path of the touch point in each scanning direction is determined, and according to the light intensity of the light path in each scanning direction, the position information of the touch point is determined.
[0013] In some possible implementations, when the processor is used to select a target scanning direction from multiple scanning directions blocked by the first touch area and determine the coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction, it is specifically used to:
[0014] Selecting a first target scanning direction from a plurality of scanning directions blocked by the first touch area in the first direction;
[0015] Selecting a second target scanning direction from a plurality of scanning directions blocked by the first touch area in the second direction, wherein the first direction is perpendicular to the second direction;
[0016] Acquire a first light intensity of a light path of the first touch area in the first target scanning direction and a second light intensity of a light path in the second target scanning direction;
[0017] The second touch area and the coordinate information of the center point thereof are determined according to the first light intensity and the second light intensity.
[0018] In some possible implementations, when the processor is used to determine the coordinate information of the second touch area and its center point according to the first light intensity and the second light intensity, it is specifically used to:
[0019] determining a first reference touch area of the first touch area in the first target scanning direction according to the first light intensity;
[0020] determining a second reference touch area of the first touch area in the second target scanning direction according to the second light intensity;
[0021] The second touch area and the coordinate information of the center point thereof are calculated according to the first reference touch area and the second reference touch area.
[0022] In some possible implementations, when the processor is used to determine the plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and the center point coordinate information, it is specifically used to:
[0023] Adding / subtracting the center point coordinate information from the preset extended scanning direction threshold respectively to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area;
[0024] Obtaining the correspondence between the preset scanning direction and the infrared emitting tube;
[0025] For each scanning direction, the infrared emitting tube corresponding to the scanning direction is matched from the corresponding relationship.
[0026] In some possible implementations, the extended scanning direction threshold includes a first extended scanning direction threshold in the first direction and a second extended scanning direction threshold in the second direction, and the center point coordinate information includes coordinate information in the first direction and coordinate information in the second direction;
[0027] When the processor is used to perform addition / subtraction processing on the center point coordinate information and the preset extended scanning direction threshold respectively to obtain multiple scanning directions corresponding to the light path blocked by the second touch area, it is specifically used to:
[0028] Adding / subtracting the coordinate information in the first direction and the first extended scanning direction threshold value respectively to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the first direction;
[0029] The coordinate information in the second direction is added / subtracted from the second extended scanning direction threshold to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the second direction.
[0030] In some possible implementations, the correspondence between the preset scanning directions and the infrared emitting tubes includes a first correspondence between the preset scanning directions in the first direction and the infrared emitting tubes and a second correspondence between the preset scanning directions in the second direction and the infrared emitting tubes;
[0031] When the processor is used to match the infrared emitting tube corresponding to each scanning direction from the corresponding relationship, the processor is specifically used to:
[0032] For each scanning direction in the first direction, matching a first infrared emitting tube corresponding to the scanning direction from the first corresponding relationship;
[0033] For each scanning direction in the second direction, a second infrared emitting tube corresponding to the scanning direction is matched from the second corresponding relationship.
[0034] In some possible implementations, when the processor is used to determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, it is specifically used to:
[0035] For each scanning direction corresponding to each first infrared emitting tube, determining the light intensity of the light path of the touch point in the scanning direction;
[0036] With respect to the scanning direction corresponding to each second infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined.
[0037] In some possible implementations, when the processor is used to determine the position information of the touch point according to the light intensity of the light path in each scanning direction, it is specifically used to:
[0038] Determining vertex information, width information, and height information of a circumscribed rectangle formed by the touch point according to the light intensity of the light path in each scanning direction;
[0039] Coordinate conversion processing is performed on the vertex information, width information, and height information to determine the position information of the touch point.
[0040] In a second aspect, an embodiment of the present application provides a method for determining a touch point position of an infrared touch device, comprising:
[0041] In response to a touch operation of a user, determining a first touch area, wherein the first touch area blocks a plurality of light paths in a plurality of scanning directions;
[0042] Selecting a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determining coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction;
[0043] Determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and the center point coordinate information;
[0044] According to the scanning direction corresponding to each infrared emitting tube, the light intensity of the light path of the touch point in each scanning direction is determined, and according to the light intensity of the light path in each scanning direction, the position information of the touch point is determined.
[0045] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer program execution instructions are stored. When the computer program execution instructions are executed, the touch point position determination method of any infrared touch device described in the second aspect of the present application is implemented.
[0046] In a fourth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the method for determining a touch point position of any infrared touch device as described in the second aspect of the present application.
[0047] The present application provides an infrared touch device and a method for determining the position of a touch point of the infrared touch device, wherein the infrared touch device comprises: infrared emitting tubes arranged at unequal intervals, infrared receiving tubes arranged at unequal intervals, and a processor. The infrared emitting tube is configured to emit infrared light to form an optical path, and all optical paths formed by each infrared emitting tube are a set of optical paths under a scanning direction. The infrared receiving tube is configured to receive infrared light emitted by the infrared emitting tube. The processor is configured to: in response to a user's touch operation, determine a first touch area, the first touch area blocks multiple optical paths under multiple scanning directions, select a target scanning direction from the multiple scanning directions blocked by the first touch area, and determine the coordinate information of the second touch area and its center point according to the light intensity of the optical path under the target scanning direction. Then, according to the preset extended scanning direction threshold and the center point coordinate information, determine the multiple infrared emitting tubes corresponding to the optical path blocked by the second touch area, determine the light intensity of the optical path of the touch point under each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the optical path under each scanning direction. The present application determines other scanning directions associated with the target scanning direction according to the target scanning direction, and then determines the position information of the touch point according to the light intensity of the light paths in the other associated scanning directions, thereby reducing the cumbersomeness of the process of calculating the position information of the touch point using the light intensity of each light path under all scanning directions, improving the efficiency of determining the touch point position, and increasing the touch response speed.
[0048] These and other aspects of the present application will become more apparent from the following description of the embodiment(s). BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.
[0050] Figure 1 A schematic diagram of the structure of an infrared touch screen provided in this application;
[0051] Figure 2A A schematic diagram of a long side scanning direction provided in an embodiment of the present application;
[0052] Figure 2BA schematic diagram of another scanning direction of a long side provided in an embodiment of the present application;
[0053] Figure 2C A schematic diagram of a short-side scanning direction provided in an embodiment of the present application;
[0054] Figure 2D A schematic diagram of another scanning direction of a short side provided in an embodiment of the present application;
[0055] Figure 3 A schematic diagram of a touch area provided in this application;
[0056] Figure 4 A schematic diagram of the structure of an infrared touch device provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of an infrared touch device with infrared transmitting tubes / infrared receiving tubes arranged at unequal intervals or at very large intervals provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of a scanning direction provided in an embodiment of the present application;
[0059] Figure 7 A schematic diagram of a touch area provided in an embodiment of the present application;
[0060] Fig. 8A A schematic diagram of a reference touch area provided in an embodiment of the present application;
[0061] Figure 8B A schematic diagram of a second touch area provided in an embodiment of the present application;
[0062] Fig. 9 A schematic flow chart of a method for determining a plurality of infrared emitting tubes corresponding to a light path blocked by a second touch area provided in an embodiment of the present application;
[0063] Fig.10 A schematic diagram of a matched infrared emitting tube provided in an embodiment of the present application;
[0064] Fig.11 A schematic diagram of multiple scanning directions obtained according to a plurality of determined infrared emitting tubes provided in an embodiment of the present application;
[0065] Fig.12 A schematic diagram of a flow chart of a method for determining a touch point position of an infrared touch device provided in an embodiment of the present application;
[0066] Fig.13 A schematic diagram of the structure of a touch point position determination device for an infrared touch device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0067] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0068] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0069] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0070] The terms "first", "second", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise indicated. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented in an order other than those given in the diagrams or descriptions of the embodiments of this application.
[0071] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.
[0072] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0073] With the development of science and technology and users' pursuit of convenient life, touch screens are increasingly used in daily life. This application takes an infrared touch screen as an example. As an electronic system, it detects the touch in the display area to achieve the result of the user expressing the expected idea, action or purpose, simplifies the human-computer interaction method, and has many advantages such as strong environmental adaptability, longer life, and identifiable touch points.
[0074] like Figure 1 As shown, Figure 1 A schematic diagram of the structure of an infrared touch screen provided for this application. An infrared touch screen generally has an outer frame installed in front of a display screen, and a circuit board is arranged in the outer frame. The outer frame is composed of a long-side transmitting side, a long-side receiving side, a short-side transmitting side, and a short-side receiving side. There are a number of infrared transmitting tubes on the transmitting side, and correspondingly, there are a number of infrared receiving tubes on the receiving side. Infrared touch screens usually receive in a one-to-many manner, that is, one infrared transmitting tube and multiple infrared receiving tubes opposite can receive at the same time, thereby forming an optical network, and judging the touch behavior according to the light intensity of the optical path of the optical network under touch and no touch conditions.
[0075] In recent years, with the continuous advancement of science and technology, the arrangement of infrared emitting tubes in infrared touch devices has also changed. For example, the distance between the infrared emitting tubes is getting larger, the number is getting smaller, the number of light paths emitted by each infrared emitting tube is increasing, and in order to ensure the density and uniformity of the light network, the arrangement of infrared emitting tubes has developed from equal spacing to unequal spacing. Therefore, in order to improve the touch response speed of such infrared touch devices, it is particularly important to quickly locate the touch point on the screen.
[0076] In the prior art, when determining the position of a touch point, the light intensity of each light path of the touch point in all scanning directions is usually scanned in full screen, and then the touch area is determined according to the light intensity of all light paths, and then the position information of the touch point is determined. Among them, in the prior art, for a specific infrared emitting tube, each angle corresponding to the n light paths emitted by it is called a scanning direction.
[0077] For example, take 1 infrared emitting tube corresponding to multiple infrared receiving tubes, i.e. 1 to n (n ≥ 1) as an example. For a specific infrared emitting tube, each angle of the n light paths corresponding to it is called a scanning direction. Therefore, the 1 to n scanning method will have n scanning directions, and each scanning direction is composed of a group of parallel light paths with the same slope. Figures 2A-2D As shown, Figure 2A A schematic diagram of a long side scanning direction provided in an embodiment of the present application, Figure 2B A schematic diagram of another scanning direction of a long side provided in an embodiment of the present application, Figure 2C A schematic diagram of a short-side scanning direction provided in an embodiment of the present application, Figure 2D A schematic diagram of another scanning direction of a short side provided in an embodiment of the present application.
[0078] For a specific scanning direction in the prior art, a group of parallel scanning light paths corresponds to the touch screen. When the touch screen is touched, the touch point will block a number of consecutive parallel light paths. These consecutive blocked light paths are called a scanning area under this scanning direction, such as Figure 3As shown, Figure 3 A schematic diagram of a touch area provided in this application. Figure 3 In the figure, the dotted line represents the blocked light path. We define the first blocked light path in the continuous blocked light paths as the starting boundary of the touch area, and the last blocked light path as the ending boundary. The order of the starting boundary and the ending boundary can be customized.
[0079] However, the prior art needs to calculate the position information of the touch point according to the light intensity of each light path in all scanning directions, and the calculation process is redundant, complicated and time-consuming.
[0080] Therefore, in view of the above technical problems of the prior art, the present application proposes an infrared touch device and a method for determining the touch point position of the infrared touch device, wherein the infrared touch device includes infrared emitting tubes arranged at unequal intervals, infrared receiving tubes arranged at unequal intervals, and a processor. The infrared emitting tube is used to emit infrared light to form an optical path, and all optical paths formed by each infrared emitting tube are a set of optical paths under a scanning direction, and the infrared receiving tube is used to receive the infrared light emitted by the infrared emitting tube. The processor is used to determine a first touch area in response to a user's touch operation, wherein the first touch area blocks multiple optical paths under multiple scanning directions, and selects a target scanning direction from the multiple scanning directions blocked by the first touch area, and determines the coordinate information of the second touch area and its center point according to the light intensity of the optical path under the target scanning direction. Then, according to the preset extended scanning direction threshold and the center point coordinate information, determine the multiple infrared emitting tubes corresponding to the optical path blocked by the second touch area, determine the light intensity of the optical path of the touch point under each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the optical path under each scanning direction. The present application determines the position information of the touch point according to the light intensity of each light path in the scanning direction associated with the touch point, thereby reducing the redundancy and complexity in the process of calculating the position information of the touch point through the light intensity of each light path in all scanning directions and reducing the time consumption.
[0081] The application scenario of the present application can be to determine the position of a touch point on an electronic device with an infrared touch function. The electronic device can be a navigation machine in a shopping mall, a television, an automatic teller machine (ATM) in a bank, a vending machine on the street, a lending machine in a library, a conference machine used in meetings, an electronic whiteboard used in schools, and other equipment.
[0082] It is understood that the infrared touch device proposed in this application includes but is not limited to the above devices, and the above devices are not used as a limitation to this application. In addition, this application does not limit the type, size, specifications, etc. of specific electronic devices.
[0083] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0084] Figure 4 A schematic diagram of the structure of an infrared touch device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the infrared touch device includes an infrared transmitting tube, an infrared receiving tube and a processor.
[0085] The arrangement of the infrared emitting tubes in the same direction may be unequal spacing arrangement or super large spacing arrangement, and the arrangement of the infrared receiving tubes in the same direction may also be unequal spacing arrangement or super large spacing arrangement, such as Figure 5 As shown, Figure 5 A schematic diagram of an infrared touch device with infrared transmitting tubes / infrared receiving tubes arranged at unequal intervals or with extremely large intervals provided in an embodiment of the present application, Figure 5 The arrangement of the infrared emitting tubes and the infrared receiving tubes on the short side is the same as that on the long side, so they are not shown. In this embodiment, the super-large spacing can be a spacing of 10 mm or more between the two infrared emitting tubes.
[0086] The infrared emitting tube is configured to emit infrared light to form an optical path, and all the optical paths formed by each infrared emitting tube are an optical path set in a scanning direction.
[0087] In order to facilitate understanding of this embodiment, the scanning direction involved in this embodiment is first described. Figure 6 A schematic diagram of a scanning direction provided in an embodiment of the present application, such as Figure 6 As shown:
[0088] For an infrared touch screen in which the infrared emitting tubes are arranged at unequal intervals, the one to n light paths emitted by each infrared emitting tube is called a scanning direction. The number n of light paths emitted by each infrared emitting tube may be the same or different.
[0089] The infrared receiving tube is configured to receive the infrared light emitted by the infrared transmitting tube.
[0090] The processor is configured to: determine a first touch area in response to a touch operation of a user, where the first touch area blocks a plurality of light paths in a plurality of scanning directions.
[0091] In this embodiment, the processor may also be a controller, a main control chip, or an operating system, etc., and this application does not limit its type.
[0092] When a user touches the display screen of the infrared touch screen with a touch pen or a finger, the processor can determine a first touch area in response to the user's touch operation, wherein the first touch area blocks multiple light paths in multiple scanning directions.
[0093] To facilitate understanding of this embodiment, the touch area involved in this embodiment is described below. Figure 7 A schematic diagram of a touch area provided in an embodiment of the present application, such as Figure 7 As shown:
[0094] For one of the infrared emitting tubes, all the light paths emitted by the infrared emitting tube are a set of light paths in a scanning direction, and the light paths in a scanning direction are non-parallel light paths. When there is a touch in the infrared touch screen, the touch point will block a number of consecutive non-parallel light paths. These consecutive blocked light paths, together with the previous unblocked light path of the first blocked light path (if there is no previous light path, it is the first blocked light path in the current direction) and the next unblocked light path of the last blocked light path (if there is no next light path, it is the last blocked light path in the current direction) are called a scanning area in this scanning direction. Figure 7 As shown, in Figure 7 In the figure, the dotted line represents the blocked light path, the thick solid line represents the unblocked light path before the first blocked light path, and the unblocked light path after the last blocked light path, wherein the first thick solid line is the starting boundary of the touch area, and the second thick solid line is the ending boundary of the touch area, and the order of the starting boundary and the ending boundary can be customized.
[0095] The processor is further configured to: select a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determine the coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction.
[0096] One possible implementation is:
[0097] Select a first target scanning direction from a plurality of scanning directions blocked by the first touch area in the first direction.
[0098] A second target scanning direction is selected from a plurality of scanning directions blocked by the first touch area in the second direction, and the first direction is perpendicular to the second direction.
[0099] A first light intensity of a light path of the first touch region in a first target scanning direction and a second light intensity of a light path in a second target scanning direction are acquired.
[0100] The second touch area and the coordinate information of the center point thereof are determined according to the first light intensity and the second light intensity.
[0101] Specifically,
[0102] According to the first light intensity, determine the first reference touch area of the first touch area in the first target scanning direction; according to the second light intensity, determine the second reference touch area of the first touch area in the second target scanning direction; based on the first reference touch area and the second reference touch area, calculate the coordinate information of the second touch area and its center point.
[0103] For example,
[0104] Fig. 8A A schematic diagram of a reference touch area provided in an embodiment of the present application is shown in FIG. Fig. 8A As shown, the target scanning direction in the x direction is the first target scanning direction mentioned above. According to the blocking conditions of all light paths in the first target scanning direction, that is, the light intensity of the light path (first light intensity), the first reference touch area can be determined. The target scanning direction in the y direction is the second target scanning direction mentioned above. According to the blocking conditions of all light paths in the second target scanning direction, that is, the light intensity of the light path (second light intensity), the second reference touch area can be determined.
[0105] The polygonal area formed by the intersection of the first reference touch area and the second reference touch area is the second touch area mentioned above. It should be noted that in the present application, the second touch area can also be the circumscribed rectangular area of the polygonal area formed by the intersection of the first reference touch area and the second reference touch area, such as Figure 8B As shown, Figure 8B A schematic diagram of a second touch area provided in an embodiment of the present application.
[0106] After determining the second touch area, it is assumed that the second touch area is the circumscribed rectangular area of the polygonal area formed by the intersection of the first reference touch area and the second reference touch area, and the vertex coordinate information of the circumscribed rectangular area is obtained. Based on the vertex coordinate information, the center point coordinate information of the circumscribed rectangular area is calculated using a preset algorithm or formula.
[0107] The processor is further configured to determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and center point coordinate information.
[0108] The size of the preset extended scanning direction threshold can be determined according to the maximum angle between the light paths emitted by each infrared emitting lamp tube.
[0109] According to the preset extended scanning direction threshold and the center point coordinate information, multiple scanning directions corresponding to the light path blocked by the second touch area can be determined, and each infrared emitting tube has its own corresponding scanning direction. Therefore, according to the determined multiple scanning directions, multiple infrared emitting tubes corresponding to the light path blocked by the second touch area can be determined.
[0110] The processor is also configured to: determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the light path in each scanning direction.
[0111] Since the light paths emitted by the multiple infrared emitting tubes determined in the above steps are related to the light paths blocked by the touch points, the complete touch points can be obtained according to the area formed by the intersection of the light paths in the corresponding scanning directions of each infrared emitting tube, and then the position information of the touch points can be determined according to the light intensity of the light paths in each scanning direction.
[0112] In the above embodiment of the present application, the infrared touch device includes: infrared emitting tubes arranged at unequal intervals, infrared receiving tubes arranged at unequal intervals, and a processor. Among them, the infrared emitting tube is used to emit infrared light to form an optical path, and all optical paths formed by each infrared emitting tube are a set of optical paths under a scanning direction. The infrared receiving tube is used to receive infrared light emitted by the infrared emitting tube. The processor is used to respond to the user's touch operation, determine the first touch area, the first touch area blocks multiple optical paths under multiple scanning directions, select a target scanning direction from the multiple scanning directions blocked by the first touch area, and determine the second touch area and its center point coordinate information according to the light intensity of the optical path under the target scanning direction. Then, according to the preset extended scanning direction threshold and the center point coordinate information, determine the multiple infrared emitting tubes corresponding to the optical path blocked by the second touch area, determine the light intensity of the optical path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the optical path in each scanning direction. This embodiment reduces the complexity of the process of calculating the position information of the touch point using the light intensity of each light path in all scanning directions, improves the efficiency of determining the touch point position, and increases the touch response speed.
[0113] Further, based on the above embodiments, Fig. 9 , the process of determining the multiple infrared emitting tubes corresponding to the light path blocked by the second touch area according to the preset extended scanning direction threshold and the center point coordinate information involved in the above embodiment is described.
[0114] Fig. 9 A flowchart of a method for determining a plurality of infrared emitting tubes corresponding to a light path blocked by a second touch area provided in an embodiment of the present application is shown as follows: Fig. 9 As shown, the processor is configured to perform the following steps:
[0115] S901 . Perform addition / subtraction processing on the center point coordinate information and the preset extended scanning direction threshold value respectively to obtain multiple scanning directions corresponding to the light path blocked by the second touch area.
[0116] In this embodiment, the extended scanning direction threshold includes: a first extended scanning direction threshold in the first direction, assumed to be D_X, and a second extended scanning direction threshold in the second direction, assumed to be D_Y. The center point coordinate information includes: coordinate information in the first direction, assumed to be X, and coordinate information in the second direction, assumed to be Y.
[0117] The coordinate information in the first direction is added / subtracted from the first extended scanning direction threshold to obtain multiple scanning directions [X-D_X, X+D_X] corresponding to the light path blocked by the second touch area in the first direction.
[0118] The coordinate information in the second direction is added / subtracted from the second extended scanning direction threshold to obtain multiple scanning directions [Y-D_Y, Y+D_Y] corresponding to the light path blocked by the second touch area in the second direction.
[0119] S902: Obtain the correspondence between the preset scanning direction and the infrared emitting tube.
[0120] In this embodiment, the correspondence between the preset scanning direction and the infrared emitting tube includes: a first correspondence between the preset scanning direction in the first direction and the infrared emitting tube, and a second correspondence between the preset scanning direction in the second direction and the infrared emitting tube.
[0121] The scanning direction corresponds to the infrared emitting tube one by one, that is, when the scanning direction is determined, the infrared emitting tube corresponding to the scanning direction can be determined, and when the infrared emitting tube is determined, the scanning direction corresponding to the infrared emitting tube can be determined.
[0122] S903: For each scanning direction, match the infrared emitting tube corresponding to the scanning direction from the corresponding relationship.
[0123] For each scanning direction in the first direction, a first infrared emitting tube corresponding to the scanning direction is matched from the first corresponding relationship, assuming it is [Sx, Ex], where Sx and Ex are serial numbers of the infrared emitting tubes arranged in the first direction.
[0124] For each scanning direction in the second direction, a second infrared emitting tube corresponding to the scanning direction is matched from the second corresponding relationship, assuming it is [Sy, Ey], where Sy and Ey are the serial numbers of the infrared emitting tubes arranged in the second direction.
[0125] In summary, we can determine the infrared transmitting tube. Fig.10 A schematic diagram of a matched infrared emitting tube provided in an embodiment of the present application, such as Fig.10As shown, the infrared emitting tube matched in the first direction (X direction) is the infrared emitting tube in the dotted frame, and the infrared emitting tube matched in the second direction (Y direction) is the infrared emitting tube in the dotted frame.
[0126] In the above-mentioned embodiment of the present application, the processor is configured to perform addition / subtraction processing on the center point coordinate information and the preset extended scanning direction threshold, respectively, to obtain multiple scanning directions corresponding to the light path blocked by the second touch area, obtain the correspondence between the preset scanning direction and the infrared emitting tube, and for each scanning direction, match the infrared emitting tube corresponding to the scanning direction from the correspondence. In this embodiment, by matching the corresponding infrared emitting tube, when calculating the position of the touch point, it is only necessary to determine the position information of the touch point based on the blockage of the light path emitted by the matched infrared emitting tube, that is, the light intensity, thereby reducing the redundant complexity of determining the position information of the touch point based on the blockage of the light path emitted by the infrared emitting tube of the full screen, and improving the determination efficiency.
[0127] Furthermore, after determining the infrared emitting tubes in the first direction and the second direction, the light intensity of the light path of the touch point in each scanning direction is determined according to the scanning direction corresponding to each infrared emitting tube, and the position information of the touch point is determined according to the light intensity of the light path in each scanning direction.
[0128] According to the first infrared emitting tube determined in the first direction, the scanning direction of the first infrared emitting tube is determined, and according to the second infrared emitting tube determined in the second direction, the scanning direction of the second infrared emitting tube is determined, and the following is obtained: Fig.11 The schematic diagram shown, Fig.11 A schematic diagram of multiple scanning directions obtained according to a plurality of determined infrared emitting tubes provided in an embodiment of the present application.
[0129] For each scanning direction corresponding to the first infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined, and for each scanning direction corresponding to the second infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined.
[0130] Then, the position information of the touch point is determined according to the light intensity of the light path of the touch point in each scanning direction.
[0131] A possible implementation:
[0132] According to the light intensity of the light path in each scanning direction, the vertex information and the width and height information of the circumscribed rectangle formed by the touch point are determined, and the vertex information, width information and height information are converted into coordinates to finally determine the position information of the touch point.
[0133] In this embodiment, the circumscribed rectangle may also be other circumscribed polygons, which may be set according to actual usage and are not limited without application.
[0134] In the above embodiment of the present application, the processor is configured to determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the light path in each scanning direction. This embodiment reduces the cumbersomeness of the process of calculating the position information of the touch point using the light intensity of each light path in all scanning directions, improves the efficiency of determining the touch point position, and improves the touch response speed.
[0135] In the present application, a method for determining a touch point position of an infrared touch device is also provided. The method can be implemented by software, hardware, or a combination of software and hardware. Fig.12 A schematic diagram of a flow chart of a method for determining a touch point position of an infrared touch device provided in an embodiment of the present application, such as Fig.12 As shown, the method comprises the following steps:
[0136] S1201. In response to a touch operation of a user, determine a first touch area, where the first touch area blocks a plurality of light paths in a plurality of scanning directions.
[0137] S1202: Select a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determine the coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction.
[0138] S1203: Determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and center point coordinate information.
[0139] S1204: Determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the light path in each scanning direction.
[0140] In the above embodiments of the present application, the specific implementation steps and technical effects please refer to the above embodiments, and this embodiment will not be repeated.
[0141] Fig.13 The present invention provides a schematic diagram of a touch point position determination device for an infrared touch device according to an embodiment of the present invention. The device is applied to a display device. Fig.13 As shown, the device provided in the embodiment of the present application includes: a control module 1301, a determination module 1302, and a processing module 1303.
[0142] The control module 1301 is configured to determine a first touch area in response to a touch operation of a user, where the first touch area blocks a plurality of light paths in a plurality of scanning directions.
[0143] The determination module 1302 is used to select a target scanning direction from multiple scanning directions blocked by the first touch area, and determine the coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction.
[0144] The determination module 1302 is further configured to determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and center point coordinate information.
[0145] The processing module 1303 is used to determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, and determine the position information of the touch point according to the light intensity of the light path in each scanning direction.
[0146] In some possible implementations, the determining module 1302 is specifically configured to:
[0147] Select a first target scanning direction from a plurality of scanning directions blocked by the first touch area in the first direction.
[0148] A second target scanning direction is selected from a plurality of scanning directions blocked by the first touch area in the second direction, and the first direction is perpendicular to the second direction.
[0149] A first light intensity of a light path of the first touch region in a first target scanning direction and a second light intensity of a light path in a second target scanning direction are acquired.
[0150] The second touch area and the coordinate information of the center point thereof are determined according to the first light intensity and the second light intensity.
[0151] In some possible implementations, the determining module 1302 is specifically configured to:
[0152] A first reference touch area of the first touch area in the first target scanning direction is determined according to the first light intensity.
[0153] A second reference touch area of the first touch area in a second target scanning direction is determined according to the second light intensity.
[0154] The second touch area and the coordinate information of the center point thereof are calculated according to the first reference touch area and the second reference touch area.
[0155] In some possible implementations, the determining module 1302 is specifically configured to:
[0156] The center point coordinate information is added / subtracted from the preset extended scanning direction threshold to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area.
[0157] Obtain the correspondence between the preset scanning direction and the infrared emitting tube.
[0158] For each scanning direction, the infrared emitting tube corresponding to the scanning direction is matched from the corresponding relationship.
[0159] In some possible implementations, the determining module 1302 is specifically configured to:
[0160] The coordinate information in the first direction is added / subtracted from the first extended scanning direction threshold to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the first direction.
[0161] The coordinate information in the second direction is added / subtracted from the second extended scanning direction threshold to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the second direction.
[0162] In some possible implementations, the determination module 1302 is specifically configured to: for each scanning direction in the first direction, match a first infrared emitting tube corresponding to the scanning direction from the first corresponding relationship.
[0163] For each scanning direction in the second direction, a second infrared emitting tube corresponding to the scanning direction is matched from the second corresponding relationship.
[0164] In some possible implementations, the processing module 1303 is specifically configured to:
[0165] With respect to the scanning direction corresponding to each first infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined.
[0166] With respect to the scanning direction corresponding to each second infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined.
[0167] In some possible implementations, the processing module 1303 is specifically configured to:
[0168] According to the light intensity of the light path in each scanning direction, the vertex information, width information and height information of the circumscribed rectangle formed by the touch point are determined.
[0169] The vertex information, width information and height information are subjected to coordinate conversion processing to determine the position information of the touch point.
[0170] It should be noted that the device provided in this embodiment can be used to execute the above-mentioned touch point position determination method of the infrared touch device, and its implementation method and technical effect are similar, which will not be described in detail in this embodiment.
[0171] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the processing module can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0172] For example, the above modules can be one or more integrated circuits configured to implement the above methods, such as: one or more ASICs (Application Specific Integrated Circuit), or one or more DSPs (Digital Signal Processors), or one or more FPGAs (Field Programmable Gate Arrays), etc. For another example, when a module above is implemented in the form of a processing element calling a program code, the processing element can be a general-purpose processor, such as a CPU or other processor that can call a program code. For another example, these modules can be integrated together and implemented in the form of a SOC (System-on-a-Chip).
[0173] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer program can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0174] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method for determining a touch point position of an infrared touch device according to any of the above method embodiments is implemented.
[0175] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, the touch point position determination method of the infrared touch device of any of the above method embodiments can be implemented.
[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
[0177] For ease of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are intended to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.
Claims
1. An infrared touch device, characterized in that: include: Infrared transmitting tubes arranged at unequal intervals, infrared receiving tubes arranged at unequal intervals, and a processor; The infrared emitting tube is configured to: emit infrared light to form a light path, and all light paths formed by each infrared emitting tube are a set of light paths in a scanning direction; The infrared receiving tube is configured to: receive the infrared light emitted by the infrared emitting tube; The processor is configured to: determine a first touch area in response to a touch operation of a user, wherein the first touch area blocks a plurality of light paths in a plurality of scanning directions; Selecting a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determining coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction; Determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and the center point coordinate information; According to the scanning direction corresponding to each infrared emitting tube, the light intensity of the light path of the touch point in each scanning direction is determined, and according to the light intensity of the light path in each scanning direction, the position information of the touch point is determined.
2. The infrared touch device according to claim 1, characterized in that: When the processor is used to select a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determines the coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction, the processor is specifically used to: Selecting a first target scanning direction from a plurality of scanning directions blocked by the first touch area in the first direction; Selecting a second target scanning direction from a plurality of scanning directions blocked by the first touch area in the second direction, wherein the first direction is perpendicular to the second direction; Acquire a first light intensity of a light path of the first touch area in the first target scanning direction and a second light intensity of a light path in the second target scanning direction; The second touch area and the coordinate information of the center point thereof are determined according to the first light intensity and the second light intensity.
3. The infrared touch device according to claim 2, characterized in that: When the processor is used to determine the coordinate information of the second touch area and the center point thereof according to the first light intensity and the second light intensity, the processor is specifically used to: determining a first reference touch area of the first touch area in the first target scanning direction according to the first light intensity; determining a second reference touch area of the first touch area in the second target scanning direction according to the second light intensity; The second touch area and the coordinate information of the center point thereof are calculated according to the first reference touch area and the second reference touch area.
4. The infrared touch device according to claim 3, characterized in that: When the processor is used to determine the plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to the preset extended scanning direction threshold and the center point coordinate information, it is specifically used to: Adding / subtracting the center point coordinate information from the preset extended scanning direction threshold respectively to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area; Obtaining the correspondence between the preset scanning direction and the infrared emitting tube; For each scanning direction, the infrared emitting tube corresponding to the scanning direction is matched from the corresponding relationship.
5. The infrared touch device according to claim 4, characterized in that: The extended scanning direction threshold includes a first extended scanning direction threshold in the first direction and a second extended scanning direction threshold in the second direction, and the center point coordinate information includes coordinate information in the first direction and coordinate information in the second direction; When the processor is used to perform addition / subtraction processing on the center point coordinate information and the preset extended scanning direction threshold respectively to obtain multiple scanning directions corresponding to the light path blocked by the second touch area, it is specifically used to: Adding / subtracting the coordinate information in the first direction and the first extended scanning direction threshold respectively to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the first direction; The coordinate information in the second direction is added / subtracted from the second extended scanning direction threshold to obtain a plurality of scanning directions corresponding to the light path blocked by the second touch area in the second direction.
6. The infrared touch device according to claim 5, characterized in that: The correspondence between the preset scanning directions and the infrared emitting tubes includes a first correspondence between the preset scanning directions and the infrared emitting tubes in the first direction and a second correspondence between the preset scanning directions and the infrared emitting tubes in the second direction; When the processor is used to match the infrared emitting tube corresponding to each scanning direction from the corresponding relationship, the processor is specifically used to: For each scanning direction in the first direction, matching a first infrared emitting tube corresponding to the scanning direction from the first corresponding relationship; For each scanning direction in the second direction, a second infrared emitting tube corresponding to the scanning direction is matched from the second corresponding relationship.
7. The infrared touch device according to claim 6, characterized in that: When the processor is used to determine the light intensity of the light path of the touch point in each scanning direction according to the scanning direction corresponding to each infrared emitting tube, it is specifically used to: For each scanning direction corresponding to each first infrared emitting tube, determining the light intensity of the light path of the touch point in the scanning direction; With respect to the scanning direction corresponding to each second infrared emitting tube, the light intensity of the light path of the touch point in the scanning direction is determined.
8. The infrared touch device according to claim 1, characterized in that: When the processor is used to determine the position information of the touch point according to the light intensity of the light path in each scanning direction, it is specifically used to: Determining vertex information, width information, and height information of a circumscribed rectangle formed by the touch point according to the light intensity of the light path in each scanning direction; Coordinate conversion processing is performed on the vertex information, width information, and height information to determine the position information of the touch point.
9. A method for determining a touch point position of an infrared touch device, characterized in that: include: In response to a touch operation of a user, determining a first touch area, wherein the first touch area blocks a plurality of light paths in a plurality of scanning directions; Selecting a target scanning direction from a plurality of scanning directions blocked by the first touch area, and determining coordinate information of the second touch area and its center point according to the light intensity of the light path in the target scanning direction; Determine a plurality of infrared emitting tubes corresponding to the light path blocked by the second touch area according to a preset extended scanning direction threshold and the center point coordinate information; According to the scanning direction corresponding to each infrared emitting tube, the light intensity of the light path of the touch point in each scanning direction is determined, and according to the light intensity of the light path in each scanning direction, the position information of the touch point is determined.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method for determining a touch point position of an infrared touch device according to claim 9.
