A method and device for constructing an infrared grid

By acquiring and utilizing the positional relationship between the infrared receiving lamp beads and the transmitting lamp beads, the target emission lamp beads are selected to form an initial infrared grid, which solves the problem of the net hole caused by the limited amount of light that the infrared receiving lamp beads can receive, and improves the accuracy and stability of the infrared touch screen.

CN114690964BActive Publication Date: 2025-06-17SHENZHEN TIMELINK TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011631141.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2025-06-17
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The amount of light that the infrared receiving lamp beads can receive is limited. If random connections are made, a large number of net holes may be formed, resulting in a decrease in the accuracy and stability of the infrared touch screen.

Method used

By obtaining the position information of multiple infrared transmitting beads corresponding to each infrared receiving lamp bead, and according to the position relationship between the infrared receiving lamp beads and the infrared transmitting lamp beads, the target transmitting beads corresponding to each infrared receiving lamp bead is selected to form an initial infrared grid.

Benefits of technology

The number of net holes is reduced, the accuracy and stability of infrared touch screens are improved, and the problem of uneven infrared distribution is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114690964B_ABST
    Figure CN114690964B_ABST
Patent Text Reader

Abstract

This application is applicable to the technical field of touch screens, and provides a method for constructing an infrared grid. The method includes: obtaining the position information of a plurality of infrared emitting beads corresponding to each infrared receiving bead; selecting a target emitting bead corresponding to each infrared receiving bead from the plurality of infrared emitting beads according to the positional relationship between the infrared receiving bead and the infrared emitting bead; connecting each infrared receiving bead to the target emitting bead corresponding to each infrared receiving bead to obtain an initial infrared grid. Compared with traditional random connection, since random connection may cause multiple infrared receiving beads to correspond to the same infrared emitting bead, resulting in uneven infrared distribution. However, in this application, an initial infrared grid is formed through the positional relationship, avoiding multiple infrared receiving beads corresponding to the same infrared emitting bead, reducing the number of holes, and thus improving the accuracy and stability of the infrared touch screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of touch screens, and particularly relates to a method, device, terminal device, and computer-readable storage medium for constructing an infrared grid. Background Art

[0002] An infrared touch screen is composed of infrared transmitters and receivers installed on the outer frame of the touch screen (generally composed of infrared lamp beads). When the infrared touch screen works, the infrared emission lamp beads continuously emit infrared rays for the infrared receiving lamp beads on the opposite side to receive and record, forming a dense infrared grid composed of infrared rays on the display screen.

[0003] Among them, the infrared rays emitted by the infrared emission lamp beads are not a single infrared straight line, but are composed of multiple light rays with a certain angle of scattering. Different light rays correspond to different infrared receiving lamp beads. However, the number of light rays that the infrared receiving lamp beads can receive is limited. If randomly connected, a large number of holes (i.e., areas not covered by infrared rays) may be formed, resulting in a decrease in the accuracy and stability of the infrared touch screen. Summary of the Invention

[0004] In view of this, the embodiments of this application provide a method, device, terminal device, and computer-readable storage medium for constructing an infrared grid, which can solve the technical problem that the number of light rays that the infrared receiving lamp beads can receive is limited. If randomly connected, a large number of holes may be formed, resulting in a decrease in the accuracy and stability of the infrared touch screen.

[0005] The first aspect of the embodiments of this application provides a method for constructing an infrared grid. The method includes:

[0006] Obtain the position information of multiple infrared emission lamp beads corresponding to each infrared receiving lamp bead;

[0007] According to the positional relationship between the infrared receiving lamp bead and the infrared emission lamp beads, select the target emission lamp bead corresponding to each infrared receiving lamp bead from the multiple infrared emission lamp beads;

[0008] Connect each infrared receiving lamp bead to the target emission lamp bead corresponding to each infrared receiving lamp bead to obtain an initial infrared grid.

[0009] The second aspect of the embodiments of this application provides a device for constructing an infrared grid. The device includes:

[0010] An obtaining unit, configured to obtain the position information of multiple infrared emission lamp beads corresponding to each infrared receiving lamp bead;

[0011] A selection unit, configured to select, according to the positional relationship between the infrared receiving lamp beads and the infrared transmitting lamp beads, a target transmitting lamp bead corresponding to each of the infrared receiving lamp beads from the multiple infrared transmitting lamp beads;

[0012] A connection unit, configured to connect each of the infrared receiving lamp beads to the target transmitting lamp bead corresponding to each of the infrared receiving lamp beads to obtain an initial infrared grid.

[0013] A third aspect of the embodiments of the present application provides a terminal device, including a touch screen, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method described in the first aspect above are implemented.

[0014] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect above are implemented.

[0015] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: In the present application, the position information of multiple infrared transmitting lamp beads corresponding to each infrared receiving lamp bead is obtained; according to the positional relationship between the infrared receiving lamp beads and the infrared transmitting lamp beads, a target transmitting lamp bead corresponding to each of the infrared receiving lamp beads is selected from the multiple infrared transmitting lamp beads; each of the infrared receiving lamp beads is connected to the target transmitting lamp bead corresponding to each of the infrared receiving lamp beads to obtain an initial infrared grid. In the above solution, an initial infrared grid is formed through the positional relationship between the infrared receiving lamp beads and the infrared transmitting lamp beads. Compared with traditional random connection, since random connection may cause multiple infrared receiving lamp beads to correspond to the same infrared transmitting lamp bead, resulting in uneven infrared distribution. However, in the present application, an initial infrared grid is formed through the positional relationship, avoiding multiple infrared receiving lamp beads corresponding to the same infrared transmitting lamp bead, reducing the number of holes, and thus improving the accuracy and stability of the infrared touch screen. Description of the Drawings

[0016] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0017] Figure 1 A schematic diagram of the infrared transmitting lamp beads provided by the present application is shown;

[0018] Figure 2Shows a schematic diagram of the infrared grid provided by this application;

[0019] Figure 3 Shows a schematic flowchart of a method for constructing an infrared grid provided by this application;

[0020] Figure 4 Shows a schematic diagram of an infrared receiving lamp bead and an infrared emitting lamp bead provided by this application;

[0021] Figure 5 Shows a specific schematic flowchart of step 303 in a method for constructing an infrared grid provided by this application;

[0022] Figure 6 Shows a specific schematic flowchart of step 302 in a method for constructing an infrared grid provided by this application;

[0023] Figure 7 Shows a specific schematic flowchart of step 3024 in a method for constructing an infrared grid provided by this application;

[0024] Figure 8 Shows a specific schematic flowchart of step 303 in a method for constructing an infrared grid provided by this application;

[0025] Figure 9 Shows a schematic flowchart of another method for constructing an infrared grid provided by this application;

[0026] Figure 10 Shows a specific schematic flowchart of step 802 in a method for constructing an infrared grid provided by this application;

[0027] Figure 11 Shows a schematic diagram of infrared grid traversal provided by this application;

[0028] Figure 12 Shows a schematic diagram of a device for constructing an infrared grid provided by this application;

[0029] Figure 13 Is a schematic diagram of a terminal device provided by an embodiment of the present invention. Detailed implementation manners

[0030] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system architectures, technologies, etc. are presented to thoroughly understand the embodiments of this application. However, those skilled in the art should clearly understand that this application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of this application.

[0031] To better explain the technical solution of this application, the working principle of the infrared touch screen is briefly explained here.

[0032] First, infrared emission lamp beads and infrared reception lamp beads are arranged on the circuit boards at the four edges of the infrared touch screen. Infrared rays are emitted by the infrared emission lamp beads and received by the infrared reception lamp beads to form a vertical and horizontal cross-shaped infrared grid. The infrared touch screen detects and locates the user's touch by continuously scanning whether any infrared rays are blocked by an object.

[0033] Among them, the infrared rays emitted by the infrared emission lamp beads are not a single infrared straight line, but are composed of multiple rays within a certain emission range. Please refer to Figure 1 , Figure 1 which shows a schematic diagram of the infrared emission lamp beads provided by this application. It can be understood that Figure 1 it is only for illustrative purposes, and no limitations are imposed on the positions of the infrared emission lamp beads, the number of infrared emission lamp beads, and the number of infrared rays. As Figure 1 shown, the multiple infrared rays emitted by each infrared emission lamp bead crisscross to form an infrared grid. Among them, the infrared grid formed by the infrared rays is as Figure 2 shown. Please refer to Figure 2 , Figure 2 which shows a schematic diagram of the infrared grid provided by this application. As Figure 2 shown, the black part is the area covered by the infrared rays, while Figure 2 the dotted white parts in it are the gaps (i.e., mesh holes) between the infrared rays. Since the number of rays that the infrared reception lamp beads can receive is limited, if randomly connected, a large number of mesh holes (i.e., areas not covered by infrared rays) may be formed, resulting in a decrease in the accuracy and stability of the infrared touch screen.

[0034] In view of this, the embodiments of this application provide a method, device, terminal device, and computer-readable storage medium for constructing an infrared grid, which can solve the above technical problems.

[0035] Please refer to Figure 3 , Figure 3 which shows a schematic flowchart of a method for constructing an infrared grid provided by this application.

[0036] As Figure 3 shown, the method may include the following steps:

[0037] Step 301, obtain the position information of multiple infrared emission lamp beads corresponding to each infrared reception lamp bead.

[0038] Since the infrared receiving lamp beads have a certain receiving angle, each infrared receiving lamp bead corresponds to multiple infrared transmitting lamp beads. To better understand the correspondence between the infrared receiving lamp beads and the infrared transmitting lamp beads, please refer to Figure 4 , Figure 4 which shows a schematic diagram of the infrared receiving lamp beads and the infrared transmitting lamp beads provided by the present application. As Figure 4 shown, the infrared receiving lamp bead 1 has a certain receiving angle (the two straight lines represent the receiving angle range of the infrared receiving lamp bead 1), and the corresponding transmitting lamp beads for this receiving angle are: the infrared transmitting lamp bead 2, the infrared transmitting lamp bead 3, the infrared transmitting lamp bead 4, and the infrared transmitting lamp bead 5.

[0039] Among them, the acquisition methods of the position information (the position information includes but is not limited to information such as coordinate information or serial numbers for characterizing the positions of the infrared transmitting lamp beads) include the following two types:

[0040] Method ①: Pre-store the serial numbers of the multiple infrared transmitting lamp beads corresponding to different infrared receiving lamp beads. When performing step 301, directly obtain the pre-stored serial numbers to obtain the position information of the multiple infrared transmitting lamp beads corresponding to each infrared receiving lamp bead.

[0041] Method ②: As an optional embodiment of the present application, step 301 includes the following steps 3011 to 3013. Please refer to Figure 5 , Figure 5 which shows a specific schematic flowchart of step 303 in a method for constructing an infrared grid provided by the present application.

[0042] Step 3011, obtain the receiving angle of the infrared receiving lamp bead; the receiving angle refers to the angle formed by the infrared range that the infrared receiving lamp bead can receive.

[0043] Step 3012, according to the receiving angle of the infrared receiving lamp bead and the first coordinate information, calculate the second coordinate information and the third coordinate information of the two intersection points of the two sides of the receiving angle with the touch screen edge.

[0044] As Figure 4 shown, the two sides of the receiving angle and the line segments mapped to the opposite side form a triangle. And the coordinate information of the infrared receiving lamp bead is known, so the second coordinate information and the third coordinate information of the two intersection points of the two sides of the receiving angle with the touch screen edge can be calculated according to the angle-side relationship between the triangles. The calculation process is as follows:

[0045] S = tanθ × L

[0046] where S represents half of the distance between the two intersection points, L is the length of the long side of the screen, and θ is the receiving angle.

[0047] Since this triangle is an isosceles triangle, the first coordinate information and the second coordinate information can be calculated based on the midpoint (the midpoint refers to the point where the midline of the triangle intersects with the opposite side) and the distance between the two intersection points (i.e. S). If the first coordinate information of the infrared receiving lamp bead is (X, Y), the second coordinate information is (X+L, Y+S), and the third coordinate information is (X+L, YS).

[0048] Step 3013: Use the position information of the emitting lamp beads between the second coordinate information and the third coordinate information as the position information of the multiple infrared emitting lamp beads.

[0049] Step 302, according to the positional relationship between the infrared receiving lamp bead and the infrared emitting lamp bead, select a target emitting lamp bead corresponding to each infrared receiving lamp bead from the plurality of infrared emitting lamp beads.

[0050] Due to hardware limitations, infrared receiving lamp beads can only receive a certain amount of infrared rays.

[0051] Among them, Figure 4 As shown, if the infrared ray only receives the infrared rays emitted by the infrared emitting lamp bead 2 and the infrared emitting lamp bead 5 (after reaching the hardware limit, other infrared rays cannot be received), a large number of holes may appear in the middle. Therefore, this embodiment selects the target emitting lamp bead corresponding to each infrared receiving lamp bead from multiple infrared emitting lamp beads according to the positional relationship between the infrared receiving lamp bead and the infrared emitting lamp bead, that is, the infrared receiving lamp bead and the infrared emitting lamp bead on the same straight line are matched as much as possible. The specific matching process is as follows:

[0052] As an optional embodiment of the present application, step 302 includes the following steps 3021 to 3024. Figure 6 , Figure 6 A specific schematic flow chart of step 302 in a method for constructing an infrared grid provided by the present application is shown.

[0053] Step 3021: Use the adjacent first number of infrared receiving lamp beads as a receiving group; wherein the infrared receiving lamp beads in each receiving group are different.

[0054] Step 3022: Use the second number of adjacent receiving groups as a receiving column; wherein the receiving groups in each receiving column are different.

[0055] Step 3023, counting the same infrared emitting lamp beads in all the receiving groups in each of the receiving columns.

[0056] Since different infrared receiving lamp beads in the receiving column may receive a large amount of infrared rays emitted by the same infrared transmitting lamp beads. And different infrared receiving lamp beads receiving the same infrared rays results in the inability to receive the infrared rays emitted by other infrared transmitting lamp beads, thus generating a large number of holes. Therefore, in this example, all the same infrared transmitting lamp beads in each of the receiving groups in each receiving column are counted.

[0057] Among them, the first quantity, the second quantity, and the number of receiving columns can be determined according to the actual application scenario and are not limited here. To better explain the technical solution of this application, this application takes the first quantity as four, the second quantity as three, and the receiving column including the first receiving group, the second receiving group, and the third receiving group as an example to explain the technical solution of this application. It can be understood that the technical solutions corresponding to different first quantities, different second quantities, and different numbers of receiving columns can be obtained by analogy with the technical solution of this application.

[0058] Step 3024, select the target transmitting lamp bead corresponding to each infrared receiving lamp bead among the multiple infrared transmitting lamp beads according to the same infrared transmitting lamp beads.

[0059] In this embodiment, the same infrared transmitting lamp beads are removed from different receiving groups, so that the infrared receiving lamp beads in different receiving groups receive different infrared rays. The specific process is as follows:

[0060] As an optional embodiment of this application, step 3024 includes the following steps A1 to A3. Please refer to Figure 7 , Figure 7 shows a specific schematic flowchart of step 3024 in a method for constructing an infrared grid provided by this application.

[0061] Each of the receiving columns performs the following steps A1 to A3:

[0062] Step A1, sequentially remove the same infrared transmitting lamp beads in the second receiving group until the number of remaining infrared transmitting lamp beads in the second receiving group is the third quantity; use the infrared transmitting lamp beads corresponding to the third quantity as the first target transmitting lamp beads.

[0063] It can be understood that since the second receiving group is the receiving group between the first receiving group and the third receiving group, a large number of infrared receiving lamp beads in the second receiving group correspond to the same infrared transmitting lamp beads.

[0064] Therefore, in this embodiment, in the second receiving group, the same infrared transmitting lamp beads are removed in the order of arrangement until the number of remaining infrared transmitting lamp beads in the second receiving group is the third quantity. Among them, the third quantity is the upper limit value or less than the upper limit value of the number of infrared transmitting lamp beads corresponding to the receiving group, etc., and is not limited here.

[0065] Step A2: Use the infrared emission lamp beads among the multiple infrared emission lamp beads that are before the first sorting as the second target emission lamp beads of the first receiving group.

[0066] Since the first receiving group has a relatively high sorting, it is necessary to select the emission lamp beads with a relatively high sorting as the second target emission lamp beads of the first receiving group, so that receiving groups in different positions correspond to emission lamp beads in different positions. Among them, the first sorting can be preset according to the actual scenario and is not limited here.

[0067] Step A3: Use the infrared emission lamp beads among the multiple infrared emission lamp beads that are after the second sorting as the third target emission lamp beads of the third receiving group.

[0068] Since the third receiving group has a relatively low sorting, it is necessary to select the emission lamp beads with a relatively low sorting as the third target emission lamp beads of the third receiving group, so that receiving groups in different positions correspond to emission lamp beads in different positions. Among them, the second sorting can be preset according to the actual scenario and is not limited here.

[0069] Step 303: Connect each of the infrared receiving lamp beads to the target emission lamp beads corresponding to each of the infrared receiving lamp beads to obtain an initial infrared grid.

[0070] As an optional embodiment of the present application, Step 303 includes the following Steps 3031 to 3033. Please refer to Figure 8 , Figure 8 which shows a specific schematic flowchart of Step 303 in a method for constructing an infrared grid provided by the present application.

[0071] Step 3031: Connect the first target infrared emission lamp bead to the infrared receiving lamp beads in the second receiving group.

[0072] Step 3032: Connect the second target infrared emission lamp bead to the infrared receiving lamp beads in the first receiving group.

[0073] Step 3033: Connect the third target infrared emission lamp bead to the infrared receiving lamp beads in the third receiving group.

[0074] Repeat Steps 3031 to 3033 for each receiving column to obtain the initial infrared grid.

[0075] In this embodiment, the position information of multiple infrared emission lamp beads corresponding to each infrared reception lamp bead is obtained; according to the positional relationship between the infrared reception lamp bead and the infrared emission lamp bead, a target emission lamp bead corresponding to each infrared reception lamp bead is selected from the multiple infrared emission lamp beads; each infrared reception lamp bead is connected to the target emission lamp bead corresponding to each infrared reception lamp bead to obtain an initial infrared grid. In the above solution, an initial infrared grid is formed through the positional relationship between the infrared reception lamp bead and the infrared emission lamp bead. Compared with traditional random connection, since random connection may cause multiple infrared reception lamp beads to correspond to the same infrared emission lamp bead, resulting in uneven infrared distribution. However, in this application, an initial infrared grid is formed through the positional relationship, avoiding multiple infrared reception lamp beads corresponding to the same infrared emission lamp bead, reducing the number of holes, and thus improving the accuracy and stability of the infrared touch screen.

[0076] Optionally, on the basis of the above Figure 1 shown embodiment, after step 303, the following steps are further included. Please refer to Figure 9 , Figure 9 which shows a schematic flowchart of another method for constructing an infrared grid provided by this application.

[0077] Step 301, obtain multiple infrared emission lamp beads corresponding to each infrared reception lamp bead.

[0078] Step 302, according to the positional relationship between the infrared reception lamp bead and the infrared emission lamp bead, select a target emission lamp bead corresponding to each infrared reception lamp bead from the multiple infrared emission lamp beads.

[0079] Step 303, connect each infrared reception lamp bead to the target emission lamp bead corresponding to each infrared reception lamp bead to obtain an initial infrared grid.

[0080] Step 801, repeatedly execute the step of obtaining the position information of multiple infrared emission lamp beads corresponding to each infrared reception lamp bead and subsequent steps to obtain multiple initial infrared grids.

[0081] Step 802, calculate the fourth quantity of preset holes in each initial infrared grid; the preset hole refers to a hole of a preset size; the hole refers to an area not covered by infrared rays.

[0082] For the preset hole, this embodiment provides two calculation methods:

[0083] The first calculation method: As Figure 2As shown, since the colors of the holes and the infrared rays in the infrared ray grid map are often different, the number of white pixels in the infrared ray grid maps corresponding to multiple initial arrangement manners can be counted, and the initial arrangement manner corresponding to the infrared ray grid map with the fewest white pixels is used as the target arrangement manner.

[0084] The second calculation method: As an optional embodiment of the present application, step 802 includes the following steps 8021 to step 8020. Please refer to Figure 10 , Figure 10 shows a specific schematic flowchart of step 802 in a method for constructing an infrared ray grid provided by the present application.

[0085] Step 8021, traverse the initial infrared ray grid from the first long side of the touch screen to the second long side of the touch screen at a first preset step length through a first straight line parallel to the long side of the touch screen.

[0086] Step 8022, during the traversing process, count the first intersections between each position of the first straight line and the infrared rays.

[0087] Step 8023, calculate the first distances between adjacent first intersections.

[0088] Step 8024, count the fifth quantity of the first distances greater than or equal to the threshold.

[0089] Step 8025, traverse the initial infrared ray grid from the first wide side of the touch screen to the second wide side of the touch screen at a second preset step length through a second straight line parallel to the wide side of the touch screen.

[0090] Step 8026, during the traversing process, count the second intersections between each position of the second straight line and the infrared rays.

[0091] Step 8027, calculate the second distances between adjacent second intersections.

[0092] Step 8028, count the sixth quantity of the second distances greater than or equal to the threshold.

[0093] Step 8029, add the fifth quantity and the sixth quantity to obtain the seventh quantity.

[0094] Step 8020, use the seventh quantity as the fourth quantity of the preset holes.

[0095] For a better explanation of the calculation process, please refer to Figure 11 , Figure 11 shows a schematic diagram of infrared ray grid traversal provided by the present application. As Figure 11As shown, line a is the first line and line b is the second line. The terminal device traverses from the first long side of the touch screen to the second long side in the infrared grid diagram along the first line parallel to the long side of the touch screen with a first preset step length (e.g., one millimeter). During the traversal, the first intersections between the first line and the infrared rays at each location are counted, and the first distances between adjacent first intersections are calculated. The fifth quantity where the first distance is greater than or equal to the threshold is counted (thus ending the traversal of the long side of the touch screen).

[0096] Through the second line parallel to the short side of the touch screen, traverse from the first short side of the touch screen to the second short side in the infrared grid diagram with a second preset step length (the second preset step length can be the same as or different from the first preset step length). During the traversal, the second intersections between the second line and the infrared rays at each location are counted. The second distances between adjacent second intersections are calculated. The sixth quantity where the second distance is greater than or equal to the threshold is counted. The fifth quantity and the sixth quantity are added together to obtain the fourth quantity of the preset mesh holes.

[0097] Step 803: Use the initial infrared grid with the fewest preset mesh holes among the multiple initial infrared grids as the target infrared grid.

[0098] In this embodiment, by repeatedly executing the step of obtaining the position information of the multiple infrared emitting lamp beads corresponding to each infrared receiving lamp bead and the subsequent steps, multiple initial infrared grids are obtained. Calculate the fourth quantity of the preset mesh holes in each of the initial infrared grids; the preset mesh hole refers to a mesh hole of a preset size; the mesh hole refers to the area not covered by the infrared rays. Use the initial infrared grid with the fewest preset mesh holes among the multiple initial infrared grids as the target infrared grid. Through the above solution, the number of mesh holes is further reduced, thereby improving the accuracy and stability of the infrared touch screen.

[0099] As Figure 12 This application provides a device 12 for constructing an infrared grid. Please refer to Figure 12 , Figure 12 shows a schematic diagram of a device for constructing an infrared grid provided by this application. As Figure 12 shown, a device for constructing an infrared grid includes:

[0100] An acquisition unit 121 for acquiring the position information of the multiple infrared emitting lamp beads corresponding to each infrared receiving lamp bead.

[0101] A selection unit 122 for selecting the target emitting lamp bead corresponding to each infrared receiving lamp bead from the multiple infrared emitting lamp beads according to the positional relationship between the infrared receiving lamp bead and the infrared emitting lamp bead.

[0102] A connection unit 123 is used to connect each of the infrared receiving lamp beads to the target emitting lamp bead corresponding to each of the infrared receiving lamp beads, so as to obtain an initial infrared grid.

[0103] An apparatus for constructing an infrared grid provided by this application obtains the position information of a plurality of infrared emitting lamp beads corresponding to each infrared receiving lamp bead; selects the target emitting lamp bead corresponding to each infrared receiving lamp bead from the plurality of infrared emitting lamp beads according to the positional relationship between the infrared receiving lamp bead and the infrared emitting lamp bead; and connects each infrared receiving lamp bead to the target emitting lamp bead corresponding to each infrared receiving lamp bead to obtain an initial infrared grid. In the above solution, an initial infrared grid is formed through the positional relationship between the infrared receiving lamp bead and the infrared emitting lamp bead. Compared with traditional random connection, since random connection may cause multiple infrared receiving lamp beads to correspond to the same infrared emitting lamp bead, the infrared distribution is uneven. However, in this application, an initial infrared grid is formed through the positional relationship, avoiding multiple infrared receiving lamp beads corresponding to the same infrared emitting lamp bead, reducing the number of holes, and thus improving the accuracy and stability of the infrared touch screen.

[0104] Figure 13 It is a schematic diagram of a terminal device provided by an embodiment of the present invention. As Figure 13 shown, a terminal device 13 in this embodiment includes: a touch screen 130, a processor 131, a memory 132, and a computer program 133 stored in the memory 132 and executable on the processor 131, such as a program for constructing an infrared grid. When the processor 131 executes the computer program 133, the steps in the above method embodiments for constructing an infrared grid are implemented, such as Figure 3 the steps 301 to 303 shown. Alternatively, when the processor 131 executes the computer program 133, the functions of each unit in the above device embodiments are implemented, such as Figure 12 the functions of the units 121 to 123 shown.

[0105] Exemplarily, the computer program 133 can be divided into one or more units. The one or more units are stored in the memory 132 and executed by the processor 131 to complete the present invention. The one or more units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program 133 in the terminal device 13. For example, the computer program 133 can be divided into an acquisition unit and a calculation unit. The specific functions of each unit are as follows:

[0106] A storage unit is used to obtain the position information of a plurality of infrared emitting lamp beads corresponding to each infrared receiving lamp bead;

[0107] A selection unit, configured to select, according to the positional relationship between the infrared receiving lamp beads and the infrared transmitting lamp beads, a target transmitting lamp bead corresponding to each of the infrared receiving lamp beads from the multiple infrared transmitting lamp beads;

[0108] A connection unit, configured to connect each of the infrared receiving lamp beads to the target transmitting lamp bead corresponding to each of the infrared receiving lamp beads, so as to obtain an initial infrared grid.

[0109] The terminal device may include, but is not limited to, a touch screen 130, a processor 131, and a memory 132. Those skilled in the art can understand that Figure 13 This is only an example of a terminal device 13, and does not constitute a limitation on the terminal device 13. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, the terminal device may further include input / output devices, network access devices, buses, etc.

[0110] The touch screen 130 is an infrared touch screen, which is composed of infrared transmitting lamp beads and infrared receiving lamp beads installed on the outer frame of the touch screen. An infrared grid is formed on the screen surface, and any touch object can change the infrared rays at the contact point to achieve touch screen operation.

[0111] The processor 131 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc.

[0112] The memory 132 may be an internal storage unit of the terminal device 13, such as a hard disk or memory of the terminal device 13. The memory 132 may also be an external storage device of the terminal device 13, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. equipped on the terminal device 13. Further, the memory 132 may also include both the internal storage unit of the terminal device 13 and the external storage device. The memory 132 is used to store the computer program and other programs and data required by the terminal device 13. The memory 132 may also be used to temporarily store the data that has been output or will be output.

[0113] It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.

[0114] It should be noted that the information interaction, execution process, etc. between the above-mentioned device / units, due to being based on the same concept as the method embodiments of the present application, for the specific functions and the technical effects brought, reference may be specifically made to the method embodiment part, and details will not be elaborated here.

[0115] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the above division of each functional unit and module is used as an example. In practical applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments, and details will not be elaborated here.

[0116] The embodiments of the present application also provide a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0117] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, it enables the mobile terminal to execute steps implemented in the above-mentioned method embodiments.

[0118] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above-mentioned method embodiments of the present application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device capable of carrying the computer program code to the photographing device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk, or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunication signal.

[0119] In the above embodiments, the descriptions of each embodiment have their own emphases. For parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0120] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0121] In the embodiments provided in the present application, it should be understood that the disclosed device / network device and method can be implemented in other ways. For example, the device / network device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection shown or discussed between each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in electrical, mechanical or other forms.

[0122] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units.

[0123] It should be understood that when used in the specification and appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their combinations.

[0124] It should also be understood that the term "and / or" used in the specification and appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0125] As used in the specification and appended claims of the present application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if it is determined" or "if [the described condition or event] is detected" can be interpreted as meaning "once it is determined", "in response to determining", "once [the described condition or event] is detected", or "in response to detecting [the described condition or event]" according to the context.

[0126] In addition, in the description of the specification and appended claims of the present application, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0127] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that a particular feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily all refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized.

[0128] The above-described embodiments are only used to illustrate the technical solutions of this application, rather than to limit them; although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for constructing an infrared grid, characterized in that, The method includes: Obtaining position information of a plurality of infrared emission lamp beads corresponding to each infrared reception lamp bead; Selecting a target emission lamp bead corresponding to each infrared reception lamp bead from the plurality of infrared emission lamp beads according to the positional relationship between the infrared reception lamp bead and the infrared emission lamp bead; Connecting each infrared reception lamp bead to the target emission lamp bead corresponding to each infrared reception lamp bead to obtain an initial infrared grid; The step of selecting a target emission lamp bead corresponding to each infrared reception lamp bead from the plurality of infrared emission lamp beads according to the positional relationship between the infrared reception lamp bead and the infrared emission lamp bead includes: Taking adjacent first-number infrared reception lamp beads as a reception group; wherein, the infrared reception lamp beads in each reception group are different; taking adjacent second-number reception groups as a reception column; wherein, the reception groups in each reception column are different; counting the same infrared emission lamp beads in all reception groups in each reception column; and selecting a target emission lamp bead corresponding to each infrared reception lamp bead from the plurality of infrared emission lamp beads according to the same infrared emission lamp beads; When the first number is four and the second number is three; the reception column includes a first reception group, a second reception group, and a third reception group; the step of selecting a target emission lamp bead corresponding to each infrared reception lamp bead from the plurality of infrared emission lamp beads according to the same infrared emission lamp beads includes: Each reception column performs the following steps: sequentially removing the same infrared emission lamp beads in the second reception group until the number of remaining infrared emission lamp beads in the second reception group is a third number; taking the infrared emission lamp beads corresponding to the third number as first target emission lamp beads; taking the infrared emission lamp beads ranked before the first sorting in the plurality of infrared emission lamp beads as second target emission lamp beads of the first reception group; and taking the infrared emission lamp beads ranked after the second sorting in the plurality of infrared emission lamp beads as third target emission lamp beads of the third reception group.

2. The method according to claim 1, characterized in that, The step of obtaining position information of a plurality of infrared emission lamp beads corresponding to each infrared reception lamp bead includes: Obtaining a reception angle of the infrared reception lamp bead; the reception angle refers to an angle formed by a range within which the infrared reception lamp bead can receive infrared rays; Calculating second coordinate information and third coordinate information of two intersection points between two sides of the reception angle and the edges of the touch screen according to the reception angle of the infrared reception lamp bead and coordinate information; Taking the position information of the emission lamp beads between the second coordinate information and the third coordinate information as the position information of the plurality of infrared emission lamp beads.

3. The method according to claim 1, characterized in that, The step of connecting each infrared reception lamp bead to the target emission lamp bead corresponding to each infrared reception lamp bead to obtain an initial infrared grid includes: Each reception column performs the following steps to obtain the initial infrared grid: Connecting the first target emission lamp bead to the infrared reception lamp beads in the second reception group; Connect the second target emission lamp bead to the infrared receiving lamp bead in the first receiving group; Connect the third target emission lamp bead to the infrared receiving lamp bead in the third receiving group.

4. The method according to claim 1, characterized in that, After connecting each of the infrared receiving lamp beads to the target emission lamp bead corresponding to each of the infrared receiving lamp beads to obtain an initial infrared grid, the method further includes: Repeatedly execute the step of obtaining the position information of the multiple infrared emission lamp beads corresponding to each infrared receiving lamp bead and subsequent steps to obtain multiple initial infrared grids; Calculate the fourth quantity of the preset holes in each of the initial infrared grids; the preset hole refers to a hole of a preset size; the hole refers to an area not covered by infrared rays; Use the initial infrared grid with the fewest preset holes among the multiple initial infrared grids as the target infrared grid.

5. The method according to claim 4, characterized in that, The calculating the fourth quantity of the preset holes in each of the initial infrared grids includes: Traverse the initial infrared grid from the first long side of the touch screen to the second long side of the touch screen at a first preset step length through a first straight line parallel to the long side of the touch screen; During the traversal, count the first intersections between each position of the first straight line and the infrared rays; Calculate the first distances between adjacent first intersections; Count the fifth quantity of the first distances greater than or equal to the threshold; Traverse the initial infrared grid from the first wide side of the touch screen to the second wide side of the touch screen at a second preset step length through a second straight line parallel to the wide side of the touch screen; During the traversal, count the second intersections between each position of the second straight line and the infrared rays; Calculate the second distances between adjacent second intersections; Count the sixth quantity of the second distances greater than or equal to the threshold; Add the fifth quantity and the sixth quantity to obtain a seventh quantity; Use the seventh quantity as the fourth quantity of the preset holes.

6. An apparatus for constructing an infrared grid, characterized in that, The device includes: An acquisition unit, configured to acquire the position information of multiple infrared emission lamp beads corresponding to each infrared receiving lamp bead; A selection unit, configured to select the target emission lamp bead corresponding to each infrared receiving lamp bead from the multiple infrared emission lamp beads according to the position relationship between the infrared receiving lamp bead and the infrared emission lamp bead; A connection unit, configured to connect each infrared receiving lamp bead to the target emission lamp bead corresponding to each infrared receiving lamp bead to obtain an initial infrared grid; The selection unit is further configured to use a first number of adjacent infrared receiving lamp beads as a receiving group; wherein, the infrared receiving lamp beads in each receiving group are different; use a second number of adjacent receiving groups as a receiving column; wherein, the receiving groups in each receiving column are different; count the same infrared emitting lamp beads in all the receiving groups in each receiving column; select a target emitting lamp bead corresponding to each infrared receiving lamp bead from the multiple infrared emitting lamp beads according to the same infrared emitting lamp beads; when the first number is four and the second number is three; the receiving column includes a first receiving group, a second receiving group and a third receiving group; sequentially remove the same infrared emitting lamp beads in the second receiving group until the number of remaining infrared emitting lamp beads in the second receiving group is a third number; use the infrared emitting lamp beads corresponding to the third number as the first target emitting lamp beads; use the infrared emitting lamp beads ranked before the first sorting among the multiple infrared emitting lamp beads as the second target emitting lamp beads of the first receiving group; use the infrared emitting lamp beads ranked after the second sorting among the multiple infrared emitting lamp beads as the third target emitting lamp beads of the third receiving group.

7. A terminal device, comprising a touch screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Road monitoring system and method based on internet of lamps

    CN105262983A

  • Control method and device used for infrared emitting light in infrared touch screen

    CN107256103A