Infrared touch frame lamp bead arrangement method and device, terminal equipment and storage medium

By using methods such as optical grid quality evaluation and automatic adjustment of LED positions, the problem of reduced positioning accuracy caused by uneven LED arrangement in the infrared touch frame was solved, achieving an efficient LED arrangement method and improving the uniformity and adjustment efficiency of the optical grid.

CN118068989BActive Publication Date: 2026-05-29GUANGZHOU LANGO ELECTRONICS TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU LANGO ELECTRONICS TECH CO LTD
Filing Date
2024-02-29
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

The existing infrared touch frame LED arrangement has the problem of uneven distribution of infrared ray grid, which leads to reduced positioning accuracy and low efficiency of manual adjustment.

Method used

By obtaining the initial LED arrangement scheme, the optical network quality evaluation method is used for evaluation. The positions of the LEDs related to the largest void are adjusted to generate a uniformly distributed optical network that meets the evaluation threshold. Gaussian random numbers are used to adjust the positions of the LEDs until the optical network evaluation results meet the requirements.

Benefits of technology

It improves the uniformity of the optical grid, reduces the need for manual adjustments, and increases the efficiency of LED arrangement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118068989B_ABST
    Figure CN118068989B_ABST
Patent Text Reader

Abstract

The application discloses an infrared touch frame lamp bead arrangement method and device, a terminal equipment and a storage medium. The method comprises the following steps: evaluating an initial optical network corresponding to an initial lamp bead arrangement scheme according to an optical network quality evaluation method, and generating an optical network evaluation result; when the optical network evaluation result meets an evaluation threshold, taking the initial lamp bead arrangement scheme as a target lamp bead arrangement scheme; when the evaluation threshold is not met, performing a lamp bead arrangement adjustment operation; wherein the lamp bead arrangement adjustment operation comprises: determining the maximum cavity of the optical network corresponding to the initial lamp bead arrangement scheme, and taking the lamp bead related to the maximum cavity as a lamp bead to be adjusted; adjusting the lamp bead position according to the Gaussian random number of each lamp bead to be adjusted, and generating an adjusted lamp bead arrangement scheme; evaluating the adjusted lamp bead arrangement scheme; when the evaluation threshold is met, taking the adjusted lamp bead arrangement scheme as the target lamp bead arrangement scheme; and when the evaluation threshold is not met, performing the lamp bead arrangement adjustment operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of infrared touch technology, and in particular to a method, apparatus, terminal device and storage medium for arranging LED beads in an infrared touch frame. Background Technology

[0002] The basic principle of an infrared touch frame is to install infrared emitters and receivers on opposite sides of the touchscreen. A pair of emitters and receivers forms a ray with known coordinates at both ends. All the rays formed by the infrared emitters and receivers within the touch frame constitute an infrared grid. When an external object, such as a stylus or finger, touches the touchscreen within the frame, it blocks some rays. When the touched point needs to be located, the infrared touch system calculates the touch point based on the blocked rays. The density of the infrared ray grid directly affects the positioning accuracy during calculation. Uneven arrangement of the LEDs within the infrared touch frame leads to an uneven distribution of the infrared ray grid, thus affecting the positioning accuracy. Currently, the arrangement of infrared LEDs is mainly done manually, which results in uneven distribution of the infrared ray grid. When unevenness exists, the LED arrangement needs to be manually adjusted, leading to low efficiency. Summary of the Invention

[0003] This invention provides a method, apparatus, terminal device, and storage medium for arranging LED beads in an infrared touch frame, which can improve the uniformity of the generated optical network and increase the efficiency of LED bead arrangement.

[0004] An embodiment of the present invention provides a method for arranging LED beads in an infrared touch frame, comprising:

[0005] Obtain the initial LED arrangement scheme;

[0006] The initial optical network corresponding to the initial LED arrangement scheme is evaluated according to the optical network quality evaluation method, and the optical network evaluation results are generated.

[0007] When the evaluation result of the optical network meets the evaluation threshold, the initial lamp bead arrangement scheme is taken as the target lamp bead arrangement scheme.

[0008] When the evaluation result of the optical network does not meet the evaluation threshold, the lamp arrangement adjustment operation is performed;

[0009] The lamp bead arrangement adjustment operation includes:

[0010] Obtain the initial LED arrangement scheme;

[0011] Determine the maximum void in the optical mesh corresponding to the initial LED arrangement scheme, and identify the LEDs with the maximum void as LEDs to be adjusted.

[0012] Generate a Gaussian random number for each LED bead to be adjusted, and adjust the position of the corresponding LED bead according to each Gaussian random number to generate the adjusted LED bead arrangement scheme.

[0013] The optical network corresponding to the adjusted LED arrangement scheme is evaluated according to the optical network quality evaluation method, and the corresponding optical network evaluation results are generated.

[0014] When the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, the adjusted LED arrangement scheme will be used as the target LED arrangement scheme.

[0015] If the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, the adjusted LED arrangement scheme will be used as the initial LED arrangement scheme, and the LED arrangement adjustment operation will be performed.

[0016] Furthermore, the evaluation of the initial optical network corresponding to the initial LED arrangement scheme based on the optical network quality evaluation method, and the generation of optical network evaluation results, includes:

[0017] The initial optical grating is divided into several regions, and the number of rays in each region is determined.

[0018] Generate an array of light gratings based on several regions and the number of light rays within those regions;

[0019] The uniformity of optical grid distribution is determined based on the standard deviation and mean of the optical grid array.

[0020] The optical network evaluation results are generated based on the uniformity of the optical network distribution.

[0021] Furthermore, after determining the uniformity of the optical network distribution, the following steps are also included:

[0022] Obtain the void information of the initial optical network; wherein, the void information includes: the number of voids and the area of ​​each void;

[0023] The total area of ​​the initial optical mesh is determined based on the number of holes and the area of ​​each hole.

[0024] The hole metric of the optical network is determined based on the total hole area, hole standard deviation, and hole mean of the initial optical network.

[0025] The generated optical network evaluation results include:

[0026] The optical network evaluation results are generated based on the uniformity of optical network distribution and the optical network void metric.

[0027] Furthermore, after determining the maximum void in the optical mesh corresponding to the initial LED arrangement and identifying the LEDs associated with the maximum void as those to be adjusted, the process also includes:

[0028] LEDs with a spacing smaller than the preset spacing between them are designated as LEDs to be adjusted.

[0029] Furthermore, it also includes:

[0030] Generate a list of LED arrangement schemes;

[0031] Each LED arrangement scheme and its corresponding optical network evaluation result are stored in the LED arrangement scheme list in an array; wherein, the LED arrangement scheme list is sorted from largest to smallest according to the optical network evaluation result;

[0032] Several LED arrangement schemes are selected from the top of the list of LED arrangement schemes for visual display.

[0033] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments;

[0034] One embodiment of the present invention provides an LED bead arrangement device for an infrared touch frame, including: a scheme acquisition module, an optical network quality evaluation module, and a scheme adjustment and determination module;

[0035] The scheme acquisition module is used to acquire the initial LED bead arrangement scheme;

[0036] The optical network quality evaluation module is used to evaluate the initial optical network corresponding to the initial LED arrangement scheme according to the optical network quality evaluation method, and generate optical network evaluation results.

[0037] The scheme adjustment and determination module is used to: when the optical network evaluation result meets the evaluation threshold, use the initial LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result does not meet the evaluation threshold, perform an LED arrangement adjustment operation; wherein, the LED arrangement adjustment operation includes: obtaining the initial LED arrangement scheme; determining the maximum hole in the optical network corresponding to the initial LED arrangement scheme, and using the LEDs related to the maximum hole as LEDs to be adjusted; generating a Gaussian random number for each LED to be adjusted, and adjusting the corresponding LED position according to each Gaussian random number to generate an adjusted LED arrangement scheme; evaluating the optical network corresponding to the adjusted LED arrangement scheme according to the optical network quality evaluation method, and generating a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, use the adjusted LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, use the adjusted LED arrangement scheme as the initial LED arrangement scheme and perform the LED arrangement adjustment operation.

[0038] Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the LED arrangement method of an infrared touch frame described in the above-described embodiment of the invention.

[0039] Another embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is running, it controls the device where the storage medium is located to execute the LED bead arrangement method of the infrared touch frame described in the above embodiment of the invention.

[0040] The following benefits can be obtained by implementing the present invention:

[0041] This invention provides a method, apparatus, terminal device, and storage medium for arranging LEDs in an infrared touch frame. The method involves obtaining an initial LED arrangement scheme, then evaluating its optical network quality using a quality assessment method. If the evaluation result does not meet an evaluation threshold, the initial LED arrangement scheme is adjusted to ensure the adjusted LEDs form an optical network that meets the threshold. If the threshold is met, the target LED arrangement scheme is used to generate a uniformly distributed optical network that meets the threshold. If the threshold is not met, the LEDs associated with the largest void in the optical network are adjusted, and the adjusted arrangement is then evaluated for optical network quality to generate the target LED arrangement scheme that meets the threshold. By repeatedly evaluating and adjusting the LED arrangement scheme through optical network quality assessment and automatic LED arrangement, the uniformity of the generated optical network is improved, manual adjustments to the LED arrangement scheme are reduced, and LED arrangement efficiency is increased. Attached Figure Description

[0042] Figure 1 This is a flowchart illustrating a method for arranging LED beads in an infrared touch frame according to an embodiment of the present invention.

[0043] Figure 2 This is a schematic diagram of the structure of an infrared touch frame LED bead arrangement device provided in an embodiment of the present invention. Detailed Implementation

[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0045] To better understand this invention, it's important to understand that the basic principle of an infrared touch frame is that infrared emitters and receivers are installed on opposite sides of the touchscreen. These emitters and receivers form a ray with known coordinates at both ends, and all these infrared rays together constitute a light grid. Within this light grid, when a stylus or finger touches the touchscreen, it blocks some rays. The infrared touch system associated with the infrared touch frame calculates the touch point based on the blocked rays, thus determining the location clicked by the stylus. Therefore, the density of the infrared ray grid directly affects the positioning accuracy and the minimum discernibility of the stylus. The infrared ray grid density is directly proportional to the number of infrared emitters and receivers, but increasing the number of infrared lights increases cost. Another factor affecting the infrared ray grid density is the arrangement of the infrared lights. Infrared lights in the infrared emitter frame are not evenly spaced, resulting in areas with high light density and areas with low light density. The purpose of this invention is to improve the uniformity of the light grid by adjusting the arrangement of the infrared lights without increasing the number of lights, i.e., without increasing hardware costs. The uniformity of an optical network is primarily determined by the voids in the network and the uniformity of light distribution.

[0046] like Figure 1 The image shows a method for arranging LED beads in an infrared touch frame according to an embodiment of the present invention, comprising:

[0047] Step S1: Obtain the initial LED arrangement scheme;

[0048] Step S2: Evaluate the initial optical network corresponding to the initial LED arrangement scheme according to the optical network quality evaluation method, and generate the optical network evaluation result;

[0049] Step S3: When the evaluation result of the optical network meets the evaluation threshold, the initial lamp bead arrangement scheme is taken as the target lamp bead arrangement scheme;

[0050] Step S4: When the evaluation result of the optical network does not meet the evaluation threshold, perform the lamp bead arrangement adjustment operation;

[0051] For step S1, an initial LED arrangement scheme is determined by uniformly distributing the LEDs, and an initial light grid is generated based on the initial LED arrangement scheme.

[0052] For step S2, in a preferred embodiment, evaluating the initial optical network corresponding to the initial LED arrangement scheme according to the optical network quality evaluation method and generating an optical network evaluation result includes: dividing the initial optical network into several regions and determining the number of light rays in each region; generating an optical network array based on the several regions and the number of light rays in each region; determining the optical network distribution uniformity based on the standard deviation and mean of the optical network array; and generating an optical network evaluation result based on the optical network distribution uniformity.

[0053] Specifically, the quality of the generated initial optical grating is evaluated. The uniformity of the optical grating distribution is a crucial indicator of its quality. The more uniform the distribution of the optical grating across the entire touchscreen, the higher its quality. To evaluate the initial optical grating, the touchscreen is first divided into m*n regions, and the number of light rays passing through each region is counted, forming an optical grating array of length m*n. The mean and standard deviation of this array are then calculated. A higher mean and a smaller standard deviation both indicate better uniformity. The uniformity of the optical grating distribution is determined by calculating the standard deviation and mean of the optical grating array, using the following formula:

[0054] Distribute_quality=a*mean1+b*std1

[0055] Where Distribute_quality represents the uniformity of the optical network distribution; mean1 represents the mean of the optical network array; std1 represents the standard deviation of the optical network array; a and b are weight parameters, where 1>a>0, -1 <b<0。

[0056] In a preferred embodiment, after determining the uniformity of the optical network distribution, the method further includes: acquiring void information of the initial optical network; wherein the void information includes: the number of voids and the area of ​​each void; determining the total void area of ​​the initial optical network based on the number of voids and the area of ​​each void; determining the optical network void metric value based on the total void area, void standard deviation, and void mean of the initial optical network; and generating the optical network evaluation result includes: generating the optical network evaluation result based on the optical network distribution uniformity and the optical network void metric value.

[0057] Specifically, in evaluating optical network quality, the optical network hole metric is another important indicator. This metric is used to evaluate the number, area, and distribution of larger holes in the optical network. In an optical network, the grid is polygonal; we calculate the grid size using the maximum diagonal length. In the entire optical network, polygonal grids with a maximum diagonal length greater than a preset threshold are considered holes, generating a hole list and corresponding hole information. This hole information includes: the number of holes, the area of ​​each hole, and the distribution of each hole. The hole area and distribution can be determined using coordinates. Based on the number of holes and the area of ​​each hole in the hole list, the total hole area of ​​the network can be determined. Similarly, the standard deviation and mean of the holes are calculated. Then, based on the total hole area, standard deviation, and mean of the holes, the optical network hole metric is determined. The corresponding calculation formula is as follows:

[0058] Hole_quality=c*mean2+d*std2+e*area

[0059] Where Hole_quality represents the hole metric of the optical network; mean2 represents the mean hole value; std2 represents the standard deviation of the hole value; area represents the total hole area; c, d, and e are weighting parameters, where -1 <c<0,-1<d<0,-1<e<0。

[0060] The optical network evaluation results are generated based on the optical network distribution uniformity and the optical network hole metric. The corresponding calculation formulas are as follows:

[0061] Quality=α*Distribute_quality+β*Hole_qualit

[0062] Where Qulity represents the evaluation result of the optical network; α and β are two weight parameters, where 0 < α < 1, 0 < β < 1, and α + β = 1.

[0063] In this embodiment of the invention, α and β can be initially set to 0.5 respectively. If the phenomenon of local voids is found to be obvious, β can be increased, and vice versa. If there is no obvious trend of local voids, it can be kept at 0.5.

[0064] For step S3, when the optical network evaluation result meets the evaluation threshold, the initial lamp bead arrangement scheme is taken as the target lamp bead arrangement scheme. The evaluation threshold can be an index of the optical network evaluation result set manually.

[0065] For step S4, when the evaluation result of the optical network does not meet the evaluation threshold, the lamp arrangement adjustment operation is performed.

[0066] In a preferred embodiment, after determining the maximum void in the optical network corresponding to the initial LED arrangement and identifying the LEDs associated with the maximum void as LEDs to be adjusted, the method further includes: identifying LEDs whose spacing from the LEDs to be adjusted is less than a preset spacing as LEDs to be adjusted.

[0067] The lamp bead arrangement adjustment operation specifically includes:

[0068] Step S401: Obtain the initial LED arrangement scheme;

[0069] Step S402: Determine the maximum hole in the optical mesh corresponding to the initial LED arrangement scheme, and take the LEDs related to the maximum hole as LEDs to be adjusted, and add the determined LEDs to be adjusted to an adjustment queue;

[0070] Step S403: Select LEDs with a spacing of less than m (i.e., the preset spacing) from the LEDs to be adjusted as LEDs to be adjusted, and add the newly added LEDs to the adjustment queue; wherein, the preset spacing m is related to the area size when dividing the screen into equal areas during the evaluation of optical network quality.

[0071] Step S404: Generate a Gaussian random number for each LED bead in the adjustment queue, and adjust the corresponding LED bead position according to each Gaussian random number to generate an adjusted LED bead arrangement scheme; specifically, adjust the LED bead according to the Gaussian random number of each LED bead to be adjusted. If the Gaussian random number is positive, adjust to the right (up); if it is negative, adjust to the left (down). The mean of the Gaussian distribution is zero, and the standard deviation is proportional to the size of the hole. The corresponding standard deviation calculation formula is as follows:

[0072] std3 = hole_size * δ

[0073] Where std3 represents the standard deviation of the Gaussian distribution of the LED beads to be adjusted; hole_size represents the hole size; δ is a custom parameter that can be set to 1 and adjusted based on actual performance during the calculation process.

[0074] For each cavity containing an LED bead to be adjusted, the LED bead is adjusted according to a Gaussian distribution (0, hole_size*δ) to reduce the cavity area and evenly distribute the relevant LED beads.

[0075] Step S405: Evaluate the optical network corresponding to the adjusted LED arrangement scheme according to the optical network quality evaluation method, and generate the corresponding optical network evaluation results;

[0076] Step S406: When the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, the adjusted LED arrangement scheme is taken as the target LED arrangement scheme.

[0077] Step S407: If the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, the adjusted LED arrangement scheme is used as the initial LED arrangement scheme, and the process returns to step S401 to perform the LED arrangement adjustment operation until an LED arrangement scheme that meets the evaluation requirements of step S406 is obtained.

[0078] In a preferred embodiment, the method further includes: generating a list of LED arrangement schemes; storing each LED arrangement scheme and its corresponding optical network evaluation result in an array in the list of LED arrangement schemes; wherein the list of LED arrangement schemes is sorted from largest to smallest according to the optical network evaluation result; and selecting several LED arrangement schemes from the head of the list of LED arrangement schemes for visualization.

[0079] Specifically, a list of LED chip arrangement schemes is generated. Each time a fiber optic network evaluation result is obtained, the corresponding LED chip arrangement scheme and the evaluation result are stored in an array in the LED chip arrangement scheme list. This results in a list of LED chip arrangement schemes containing several fiber optic network evaluation results, which are then arranged in descending order of evaluation result. The top n schemes with the highest fiber optic network evaluation results are selected and displayed to the user visually, allowing for quick and intuitive selection of the desired LED chip arrangement scheme.

[0080] Based on the above method embodiments, the present invention provides corresponding apparatus embodiments.

[0081] like Figure 2 As shown, an embodiment of the present invention provides an LED bead arrangement device for an infrared touch frame, including: a scheme acquisition module, an optical network quality evaluation module, and a scheme adjustment and determination module;

[0082] The scheme acquisition module is used to acquire the initial LED bead arrangement scheme;

[0083] The optical network quality evaluation module is used to evaluate the initial optical network corresponding to the initial LED arrangement scheme according to the optical network quality evaluation method, and generate optical network evaluation results.

[0084] The scheme adjustment and determination module is used to: when the optical network evaluation result meets the evaluation threshold, use the initial LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result does not meet the evaluation threshold, perform an LED arrangement adjustment operation; wherein, the LED arrangement adjustment operation includes: obtaining the initial LED arrangement scheme; determining the maximum hole in the optical network corresponding to the initial LED arrangement scheme, and using the LEDs related to the maximum hole as LEDs to be adjusted; generating a Gaussian random number for each LED to be adjusted, and adjusting the corresponding LED position according to each Gaussian random number to generate an adjusted LED arrangement scheme; evaluating the optical network corresponding to the adjusted LED arrangement scheme according to the optical network quality evaluation method, and generating a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, use the adjusted LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, use the adjusted LED arrangement scheme as the initial LED arrangement scheme and perform the LED arrangement adjustment operation.

[0085] It should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided by this invention, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0086] Those skilled in the art will clearly understand that, for convenience and brevity, the specific working process of the device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0087] Based on the above method embodiments, the present invention provides corresponding terminal device embodiments.

[0088] An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements a method for arranging LED beads in an infrared touch frame as described in any one of the present invention.

[0089] The terminal device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0090] The processor can be a Central Processing Unit (CPU), or 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. A general-purpose processor can be a microprocessor or any conventional processor. The processor is the control center of the terminal device, connecting all parts of the terminal device via various interfaces and lines.

[0091] The memory can be used to store the computer program. The processor implements various functions of the terminal device by running or executing the computer program stored in the memory and calling data stored in the memory. The memory may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function, etc.; the data storage area may store data created based on the use of the mobile phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, RAM, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0092] Based on the above method embodiments, the present invention provides corresponding storage medium embodiments.

[0093] One embodiment of the present invention provides a storage medium including a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to execute a method for arranging LED beads in an infrared touch frame as described in any one of the present invention.

[0094] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When executed by a processor, the computer program can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0095] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A method for arranging LED beads in an infrared touch frame, characterized in that, include: Obtain the initial LED arrangement scheme; The initial light grid corresponding to the initial LED arrangement is divided into several regions, and the number of light rays in each region is determined. A light grid array is generated based on several regions and the number of light rays within those regions; the uniformity of the light grid distribution is determined based on the standard deviation and mean of the light grid array. Obtain the void information of the initial optical network; wherein, the void information includes: the number of voids and the area of ​​each void; determine the total void area of ​​the initial optical network based on the number of voids and the area of ​​each void; determine the void metric value of the optical network based on the total void area, the standard deviation of voids, and the mean of voids. The optical network evaluation results are generated based on the optical network distribution uniformity and the optical network void metric. When the evaluation result of the optical network meets the evaluation threshold, the initial lamp bead arrangement scheme is taken as the target lamp bead arrangement scheme. When the evaluation result of the optical network does not meet the evaluation threshold, the lamp arrangement adjustment operation is performed; The lamp bead arrangement adjustment operation includes: Obtain the initial LED arrangement scheme; Determine the maximum void in the optical mesh corresponding to the initial LED arrangement scheme, and identify the LEDs with the maximum void as LEDs to be adjusted. Generate a Gaussian random number for each LED bead to be adjusted, and adjust the position of the corresponding LED bead according to each Gaussian random number to generate the adjusted LED bead arrangement scheme. The optical network corresponding to the adjusted LED arrangement scheme is evaluated according to the optical network quality evaluation method, and the corresponding optical network evaluation results are generated. When the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, the adjusted LED arrangement scheme will be used as the target LED arrangement scheme. If the evaluation result of the optical network corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, the adjusted LED arrangement scheme will be used as the initial LED arrangement scheme, and the LED arrangement adjustment operation will be performed.

2. The method for arranging LED beads in an infrared touch frame as described in claim 1, characterized in that, After determining the maximum void in the optical mesh corresponding to the initial LED arrangement and identifying the LEDs with the maximum void as those to be adjusted, the process also includes: LEDs with a spacing smaller than the preset spacing between them are designated as LEDs to be adjusted.

3. The method for arranging LED beads in an infrared touch frame as described in claim 2, characterized in that, Also includes: Generate a list of LED arrangement schemes; Each LED arrangement scheme and its corresponding optical network evaluation result are stored in the LED arrangement scheme list in an array; wherein, the LED arrangement scheme list is sorted from largest to smallest according to the optical network evaluation result; Several LED arrangement schemes are selected from the top of the list of LED arrangement schemes for visual display.

4. A lamp bead arrangement device for an infrared touch frame, characterized in that, include: The module includes a solution acquisition module, an optical network quality evaluation module, and a solution adjustment and confirmation module. The scheme acquisition module is used to acquire the initial LED bead arrangement scheme; The optical network quality evaluation module is used to divide the initial optical network into several regions and determine the number of rays in each region; generate an optical network array based on the several regions and the number of rays in each region; and determine the uniformity of the optical network distribution based on the standard deviation and mean of the optical network array. Obtain void information of the initial optical network; wherein, the void information includes: the number of voids and the area of ​​each void; determine the total void area of ​​the initial optical network based on the number of voids and the area of ​​each void; determine the void metric of the optical network based on the total void area, the standard deviation of the voids, and the mean void value; generate an optical network evaluation result based on the uniformity of the optical network distribution and the void metric of the optical network. The scheme adjustment and determination module is used to: when the optical network evaluation result meets the evaluation threshold, use the initial LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result does not meet the evaluation threshold, perform an LED arrangement adjustment operation; wherein, the LED arrangement adjustment operation includes: obtaining the initial LED arrangement scheme; determining the maximum hole in the optical network corresponding to the initial LED arrangement scheme, and using the LEDs related to the maximum hole as LEDs to be adjusted; generating a Gaussian random number for each LED to be adjusted, and adjusting the corresponding LED position according to each Gaussian random number to generate an adjusted LED arrangement scheme; evaluating the optical network corresponding to the adjusted LED arrangement scheme according to the optical network quality evaluation method, and generating a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme meets the evaluation threshold, use the adjusted LED arrangement scheme as the target LED arrangement scheme; when the optical network evaluation result corresponding to the adjusted LED arrangement scheme does not meet the evaluation threshold, use the adjusted LED arrangement scheme as the initial LED arrangement scheme and perform the LED arrangement adjustment operation.

5. A terminal device, characterized in that, The device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement a method for arranging LEDs in an infrared touch frame as described in any one of claims 1 to 3.

6. A storage medium, characterized in that, The storage medium includes a stored computer program, wherein, when the computer program is executed, it controls the device where the storage medium is located to perform a method for arranging LED beads in an infrared touch frame as described in any one of claims 1 to 3.