Lamp bead arrangement method and apparatus for infrared touch frame, and terminal device and storage medium
Through the method of evaluating the light network quality and automatically adjusting the position of the lamp beads, the problem of degradation of positioning accuracy caused by uneven arrangement of the lamp beads in the infrared touch frame is solved, and an efficient generation of the lamp bead arrangement scheme is achieved.
Patent Information
- Application Number
- PCT/CN2024/102132
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-29
- Filing Date
- 2024-06-27
- Publication Date
- 2025-09-04
AI Technical Summary
The existing infrared touch frame light bead arrangement method has the problem of uneven distribution of infrared ray grids, which leads to a decrease in positioning accuracy and low manual adjustment efficiency.
By obtaining the initial lamp bead arrangement scheme, using the optical network quality evaluation method for evaluation, adjusting the lamp bead position related to the largest cavity, and adjusting the lamp bead position using Gaussian random number until the optical network uniformity evaluation threshold is met, and the target lamp bead arrangement scheme is generated.
The uniformity of the infrared touch frame light network is improved, the need for manual adjustment is reduced, and the efficiency of lamp bead arrangement is improved.
Smart Images

Figure CN2024102132_04092025_PF_FP_ABST
Abstract
Description
Lamp arrangement method, device, terminal equipment and storage medium for infrared touch frame Technical Field
[0001] The present invention relates to the field of infrared touch technology, and in particular to a lamp bead arrangement method, device, terminal equipment and storage medium of an infrared touch frame. Background Art
[0002] The basic principle of an infrared touch frame is to install an infrared transmitter and an infrared receiver on opposite sides of the touch screen. A pair of infrared transmitters and receivers form a ray with known coordinates at both ends. The rays formed by all the infrared transmitters and receivers in the infrared touch frame together form a light network. In this infrared light network, when an external object, such as a stylus or finger, touches the touch screen in the touch frame, some of the rays are blocked. 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 calculations. Uneven arrangement of the lamp beads in the infrared touch frame will result in an uneven distribution of the infrared ray grid, which in turn affects the positioning accuracy during calculations. Existing infrared lamp beads are mainly arranged manually, which has the problem of uneven infrared ray grid distribution. When this unevenness occurs, the lamp bead arrangement method must be manually adjusted, which is inefficient.
[0003] Summary of the Invention
[0004] Embodiments of the present invention provide a method, apparatus, terminal device, and storage medium for arranging lamp beads in an infrared touch frame, which can improve the uniformity of a generated optical network and enhance the efficiency of lamp bead arrangement.
[0005] An embodiment of the present invention provides a method for arranging lamp beads in an infrared touch frame, comprising:
[0006] Get the initial lamp arrangement plan;
[0007] Evaluate the initial optical network corresponding to the initial lamp arrangement scheme according to the optical network quality evaluation method and generate an optical network evaluation result;
[0008] When the optical network evaluation result meets the evaluation threshold, the initial lamp bead arrangement scheme is used as the target lamp bead arrangement scheme;
[0009] When the optical network evaluation result does not meet the evaluation threshold, performing a lamp bead arrangement adjustment operation;
[0010] The lamp arrangement adjustment operation includes:
[0011] Get the initial lamp arrangement plan;
[0012] Determine the largest void in the optical network corresponding to the initial lamp arrangement scheme, and use the lamp beads associated with the largest void as the lamp beads to be adjusted;
[0013] Generate a Gaussian random number for each lamp bead to be adjusted, and adjust the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement plan;
[0014] Evaluate the optical network corresponding to the adjusted lamp arrangement scheme according to the optical network quality evaluation method and generate the corresponding optical network evaluation results;
[0015] When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the target lamp bead arrangement scheme;
[0016] When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the initial lamp bead arrangement scheme, and the lamp bead arrangement adjustment operation is performed.
[0017] Furthermore, the initial optical network corresponding to the initial lamp arrangement scheme is evaluated according to the optical network quality evaluation method to generate an optical network evaluation result, including:
[0018] Divide the initial light network into several areas and determine the number of rays in each area;
[0019] Generate a light grid array according to a number of areas and the number of rays in the areas;
[0020] Determine the uniformity of optical network distribution based on the standard deviation and mean of the optical network array;
[0021] Generate optical network evaluation results based on the optical network distribution uniformity.
[0022] Furthermore, after determining the uniformity of optical network distribution, the method further includes:
[0023] Obtaining hole information of the initial optical network; wherein the hole information includes: the number of holes and the area of each hole;
[0024] Determine the total area of the holes in the initial optical network according to the number of holes and the area of each hole;
[0025] Determine the optical network hole measurement value according to the total hole area, hole standard deviation and hole mean of the initial optical network;
[0026] Generating the optical network evaluation result includes:
[0027] The optical network evaluation results are generated based on the optical network distribution uniformity and optical network void measurement values.
[0028] Furthermore, after determining the maximum void of the optical network corresponding to the initial lamp bead arrangement scheme and taking the lamp beads related to the maximum void as the lamp beads to be adjusted, the method further includes:
[0029] The lamp beads whose lamp bead spacing with the lamp bead to be adjusted is smaller than the preset spacing are used as the lamp beads to be adjusted.
[0030] Furthermore, it also includes:
[0031] Generate a list of lamp arrangement plans;
[0032] Each lamp arrangement scheme and the corresponding optical network evaluation result are stored in the lamp arrangement scheme list in an array manner; wherein the lamp arrangement scheme list is sorted from largest to smallest according to the optical network evaluation result;
[0033] Select several lamp bead arrangement schemes from the head of the lamp bead arrangement scheme list for visual display.
[0034] Based on the above method embodiment, the present invention provides a corresponding device embodiment;
[0035] An embodiment of the present invention provides a lamp bead arrangement device for an infrared touch frame, comprising: a solution acquisition module, an optical network quality evaluation module, and a solution adjustment and determination module;
[0036] The scheme acquisition module is used to obtain an initial lamp bead arrangement scheme;
[0037] The optical network quality evaluation module is used to evaluate the initial optical network corresponding to the initial lamp bead arrangement scheme according to the optical network quality evaluation method and generate an optical network evaluation result;
[0038] The scheme adjustment and determination module is used to use the initial lamp bead arrangement scheme as the target lamp bead arrangement scheme when the optical network evaluation result meets the evaluation threshold; and to perform a lamp bead arrangement adjustment operation when the optical network evaluation result does not meet the evaluation threshold; wherein the lamp bead arrangement adjustment operation includes: obtaining the initial lamp bead arrangement scheme; determining the maximum hole of the optical network corresponding to the initial lamp bead arrangement scheme, and using the lamp beads related to the maximum hole as the lamp beads to be adjusted; generating a Gaussian random number for each lamp bead to be adjusted, and adjusting the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement scheme; evaluating the optical network corresponding to the adjusted lamp bead arrangement scheme according to the optical network quality evaluation method to generate a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, using the adjusted lamp bead arrangement scheme as the target lamp bead arrangement scheme; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, using the adjusted lamp bead arrangement scheme as the initial lamp bead arrangement scheme, and performing a lamp bead arrangement adjustment operation.
[0039] 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, the method for arranging lamp beads in an infrared touch frame described in the above-mentioned embodiment of the invention is implemented.
[0040] Another embodiment of the present invention provides a storage medium, which includes a stored computer program. When the computer program is executed, the device containing the storage medium is controlled to execute the method for arranging lamp beads in an infrared touch frame described in the above embodiment of the invention.
[0041] The following beneficial effects are achieved by implementing the present invention:
[0042] The present invention provides a method, apparatus, terminal device, and storage medium for arranging lamp beads for an infrared touch frame. The method obtains an initial lamp bead arrangement scheme and then performs an optical network quality evaluation on the scheme using an optical network quality evaluation method. If the optical network evaluation result does not meet an evaluation threshold, the initial lamp bead arrangement scheme is adjusted so that the optical network evaluation result of the adjusted lamp bead arrangement meets the evaluation threshold. If the evaluation threshold is met, the lamp bead arrangement scheme that meets the evaluation threshold is used as a target lamp bead arrangement scheme, so that the target lamp bead arrangement scheme generates a uniformly distributed optical network that meets the evaluation threshold. If the evaluation threshold is not met, the lamp bead arrangement scheme is adjusted by obtaining the maximum voids associated with the optical network, and the adjusted lamp bead arrangement scheme is subjected to an optical network quality evaluation, so that the adjusted lamp bead arrangement scheme generates a target lamp bead arrangement scheme that meets the evaluation threshold. Through optical network quality evaluation and automatic lamp bead arrangement, the lamp bead arrangement scheme is repeatedly evaluated and adjusted, thereby improving the uniformity of the generated optical network, reducing manual adjustments to the lamp bead arrangement scheme, and improving lamp bead arrangement efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] FIG1 is a flow chart of a method for arranging lamp beads of an infrared touch frame provided in one embodiment of the present invention.
[0044] FIG2 is a schematic structural diagram of a lamp bead arrangement device for an infrared touch frame provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0046] To better understand the present invention, it's important to note that the basic principle of an infrared touch frame is that infrared emitting and receiving lamps are installed on opposite sides of the touch screen. These lamps form a ray with known coordinates at both ends, and all of the infrared rays together form an optical network. Within this optical network, when an object such as a stylus or finger touches the touch screen, it blocks some of the rays. The infrared touch system associated with the infrared touch frame calculates the touch point based on the blocked rays, thereby determining the location of the touch pen's click. Therefore, the density of the infrared ray grid directly affects positioning accuracy and the minimum legibility of the stylus. The density of the infrared ray grid is proportional to the number of infrared emitting and receiving lamps, but increasing the number of infrared lamps increases costs. Another factor affecting the density of the infrared ray grid is the arrangement of the infrared lamps. The infrared lamps in the infrared emitting frame are not evenly spaced, resulting in high light density in some areas and low light density in others. The present invention aims to improve the uniformity of the optical network by adjusting the arrangement of the infrared lamps without increasing the number of infrared lamps, or hardware costs. The decisive factors for the uniformity of the optical network are mainly determined by the holes in the optical network and the uniformity of light distribution.
[0047] As shown in FIG1 , a method for arranging lamp beads of an infrared touch frame according to an embodiment of the present invention includes:
[0048] Step S1: Obtain the initial lamp bead arrangement plan;
[0049] Step S2: Evaluate the initial optical network corresponding to the initial lamp arrangement scheme according to the optical network quality evaluation method to generate an optical network evaluation result;
[0050] Step S3: When the optical network evaluation result meets the evaluation threshold, the initial lamp bead arrangement scheme is used as the target lamp bead arrangement scheme;
[0051] Step S4: When the optical network evaluation result does not meet the evaluation threshold, performing a lamp bead arrangement adjustment operation;
[0052] For step S1, an initial lamp bead arrangement scheme is determined by evenly distributing the lamp beads, and an initial light network is generated according to the initial lamp bead arrangement scheme.
[0053] For step S2, in a preferred embodiment, the initial optical network corresponding to the initial lamp bead arrangement scheme is evaluated according to the optical network quality evaluation method to generate an optical network evaluation result, including: dividing the initial optical network into several areas, and determining the number of lights in each area; generating an optical network array according to the several areas and the number of lights in the areas; determining the uniformity of optical network distribution according to the standard deviation and mean of the optical network array; and generating an optical network evaluation result according to the uniformity of optical network distribution.
[0054] Specifically, the quality of the generated initial optical network is evaluated. When evaluating the quality of the optical network, the uniformity of the optical network distribution is an important indicator for evaluating the quality of the optical network. The more uniform the distribution of the optical network on the entire touch screen, the higher the quality of the optical network. When evaluating the initial optical network, first divide the touch screen into m*n areas, count the number of light rays passing through each area, and form an optical network array with a length of m*n. Calculate the mean (mean) and standard deviation (std) of the array. The higher the mean, the better the uniformity of the optical network distribution, and the smaller the standard deviation, the better the uniformity of the optical network distribution. The uniformity of the optical network distribution is determined by calculating the standard deviation and mean of the optical network array. The corresponding calculation formula is as follows: Distribute_quality = a*mean1+b*std1
[0055] Where Distribute_Qulity represents the uniformity of 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 optical network distribution, it also includes: obtaining the hole information of the initial optical network; wherein, the hole information includes: the number of holes and the area of each hole; determining the total hole area of the initial optical network based on the number of holes and the area of each hole; determining the optical network hole measurement value based on the total hole area, hole standard deviation and hole mean of the initial optical network; generating the optical network evaluation result includes: generating the optical network evaluation result based on the uniformity of optical network distribution and the optical network hole measurement value.
[0057] Specifically, when evaluating the quality of an optical network, the optical network hole metric is another important indicator for evaluating the quality of an optical network. This indicator is used to evaluate the number, area, and distribution of larger holes in the optical network. In the optical network, the grid is polygonal, and we use the maximum diagonal length of the grid to calculate the grid size; in the entire optical network, polygonal grids with a maximum diagonal length greater than a preset threshold are regarded as holes, and then a hole list and corresponding hole information are generated; wherein the hole information includes: the number of holes, the area of each hole, and the distribution of each hole. The hole area and hole distribution can be determined by coordinates. The total hole area of the official website can be determined based on the number of holes and the area of each hole in the hole list. Similarly, the standard deviation of the holes and the mean of the holes are calculated, and then the optical network hole metric is determined based on the total hole area, the standard deviation of the holes, and the mean of the holes. The corresponding calculation formula is as follows: Hole_quality=c*mean2+d*std2+e*area
[0058] Among them, hole_quality represents the hole metric value of the optical network; mean2 represents the hole mean; std2 represents the hole standard deviation; area represents the total hole area; c, d and e are weight parameters, where -1 <c<0,-1<d<0,-1<e<0。
[0059] The optical network evaluation result is generated based on the optical network distribution uniformity and the optical network hole measurement value. The corresponding calculation formula is as follows: Qulity=a*Distribute_quality+β*Hole_qualit
[0060] Wherein, Quality represents the optical network evaluation result; α and β are two weight parameters, where 0<α<1, 0<β<1, and α+β=1.
[0061] In the embodiment of the present invention, α and β can be initially set to 0.5 respectively. If the local void phenomenon is found to be more obvious, β can be increased, otherwise α can be increased. If there is no obvious local void trend, it is maintained at 0.5.
[0062] Regarding step S3, when the optical network evaluation result meets the evaluation threshold, the initial lamp bead arrangement scheme is used as the target lamp bead arrangement scheme. The evaluation threshold may be an optical network evaluation result indicator set manually.
[0063] Regarding step S4, when the optical network evaluation result does not meet the evaluation threshold, a lamp arrangement adjustment operation is performed.
[0064] In a preferred embodiment, after determining the maximum hole in the optical network corresponding to the initial lamp bead arrangement scheme and selecting the lamp beads related to the maximum hole as the lamp beads to be adjusted, it also includes: selecting the lamp beads whose lamp bead spacing with the lamp beads to be adjusted is less than the preset spacing as the lamp beads to be adjusted.
[0065] The lamp arrangement adjustment operation specifically includes:
[0066] Step S401: Obtaining an initial lamp bead arrangement plan;
[0067] Step S402: determining the maximum void in the optical network corresponding to the initial lamp arrangement solution, and taking the lamp beads associated with the maximum void as lamp beads to be adjusted, and adding the determined lamp beads to be adjusted to a queue to be adjusted;
[0068] Step S403: The lamp beads whose distance from the lamp bead to be adjusted is less than m (i.e., the preset distance) are selected as the lamp beads to be adjusted, and the newly added lamp beads to be adjusted are added to the queue to be adjusted; wherein, the preset distance m is related to the size of the area when the screen is divided into equal areas during the optical network quality evaluation;
[0069] Step S404: Generate a Gaussian random number for each lamp bead in the queue to be adjusted, and adjust the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement plan; specifically, adjust the lamp bead according to the Gaussian random number of each lamp bead to be adjusted. If the Gaussian random number is positive, it will be adjusted to the right (upward), and if it is negative, it will be adjusted to the left (downward). 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: std3 = hole_size * δ
[0070] Among them, std3 represents the standard deviation of the Gaussian distribution of the lamp beads to be adjusted; hole_size represents the size of the hole; δ is a custom parameter that can be set to 1 and adjusted according to actual performance during the calculation process.
[0071] For each hole where the lamp bead is to be adjusted, it is adjusted according to the Gaussian distribution (0, hole_size*δ) to reduce the hole area and evenly arrange the related lamp beads.
[0072] Step S405: Evaluate the optical network corresponding to the adjusted lamp arrangement scheme according to the optical network quality evaluation method, and generate a corresponding optical network evaluation result;
[0073] Step S406: When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the target lamp bead arrangement scheme;
[0074] Step S407: When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the initial lamp bead arrangement scheme, and the process returns to step S401 to perform the lamp bead arrangement adjustment operation until a lamp bead arrangement scheme that meets the evaluation requirements of step S406 is obtained.
[0075] In a preferred embodiment, it also includes: generating a lamp bead arrangement scheme list; storing each lamp bead arrangement scheme and the corresponding optical network evaluation result in the form of an array in the lamp bead arrangement scheme list; wherein the lamp bead arrangement scheme list is sorted from large to small according to the optical network evaluation result; and selecting several lamp bead arrangement schemes from the head of the lamp bead arrangement scheme list for visual display.
[0076] Specifically, a list of lamp arrangement plans is generated. Each time an optical network evaluation result is obtained, the corresponding lamp arrangement plan and the optical network evaluation result are stored in the list in an array format. This creates a list of lamp arrangement plans containing several optical network evaluation results, sorted from highest to lowest optical network evaluation result. The top n plans with the highest optical network evaluation results are selected and displayed visually to the user, allowing them to quickly and intuitively select the desired lamp arrangement plan.
[0077] Based on the above method embodiments, the present invention provides corresponding device embodiments.
[0078] As shown in FIG2 , an embodiment of the present invention provides a lamp bead arrangement device for an infrared touch frame, comprising: a solution acquisition module, an optical network quality evaluation module, and a solution adjustment and determination module;
[0079] The scheme acquisition module is used to obtain an initial lamp bead arrangement scheme;
[0080] The optical network quality evaluation module is used to evaluate the initial optical network corresponding to the initial lamp bead arrangement scheme according to the optical network quality evaluation method and generate an optical network evaluation result;
[0081] The scheme adjustment and determination module is used to use the initial lamp bead arrangement scheme as the target lamp bead arrangement scheme when the optical network evaluation result meets the evaluation threshold; and to perform a lamp bead arrangement adjustment operation when the optical network evaluation result does not meet the evaluation threshold; wherein the lamp bead arrangement adjustment operation includes: obtaining the initial lamp bead arrangement scheme; determining the maximum hole of the optical network corresponding to the initial lamp bead arrangement scheme, and using the lamp beads related to the maximum hole as the lamp beads to be adjusted; generating a Gaussian random number for each lamp bead to be adjusted, and adjusting the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement scheme; evaluating the optical network corresponding to the adjusted lamp bead arrangement scheme according to the optical network quality evaluation method to generate a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, using the adjusted lamp bead arrangement scheme as the target lamp bead arrangement scheme; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, using the adjusted lamp bead arrangement scheme as the initial lamp bead arrangement scheme, and performing a lamp bead arrangement adjustment operation.
[0082] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed across multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art can understand and implement the present invention without inventive effort.
[0083] Those skilled in the art will clearly understand that for the sake of convenience and brevity, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0084] Based on the above method embodiment, the present invention provides a corresponding terminal device embodiment.
[0085] An embodiment of the present invention provides a terminal device, comprising 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, the method for arranging lamp beads in an infrared touch frame described in any one of the present inventions is implemented.
[0086] The terminal device may be a computing device such as a desktop computer, a notebook computer, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.
[0087] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, connecting various parts of the entire terminal device using various interfaces and lines.
[0088] The memory can be used to store the computer program, and the processor realizes various functions of the terminal device by running or executing the computer program stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created based on the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage device.
[0089] Based on the above method embodiment, the present invention provides a corresponding storage medium embodiment.
[0090] An embodiment of the present invention provides a storage medium, which includes a stored computer program. When the computer program is executed, the device containing the storage medium is controlled to execute any one of the methods for arranging lamp beads in an infrared touch frame according to the present invention.
[0091] The storage medium is a computer-readable storage medium, and the computer program is stored in the computer-readable storage medium. When the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented. The computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium.
[0092] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A method for arranging lamp beads of an infrared touch frame, characterized in that: include: Get the initial lamp arrangement plan; Evaluate the initial optical network corresponding to the initial lamp arrangement scheme according to the optical network quality evaluation method and generate an optical network evaluation result; When the optical network evaluation result meets the evaluation threshold, the initial lamp bead arrangement scheme is used as the target lamp bead arrangement scheme; When the optical network evaluation result does not meet the evaluation threshold, performing a lamp bead arrangement adjustment operation; The lamp arrangement adjustment operation includes: Get the initial lamp arrangement plan; Determine the largest void in the optical network corresponding to the initial lamp arrangement scheme, and use the lamp beads associated with the largest void as the lamp beads to be adjusted; Generate a Gaussian random number for each lamp bead to be adjusted, and adjust the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement plan; Evaluate the optical network corresponding to the adjusted lamp arrangement scheme according to the optical network quality evaluation method and generate the corresponding optical network evaluation results; When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the target lamp bead arrangement scheme; When the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, the adjusted lamp bead arrangement scheme is used as the initial lamp bead arrangement scheme, and the lamp bead arrangement adjustment operation is performed.
2. The method for arranging lamp beads of an infrared touch frame according to claim 1, characterized in that: The method of evaluating the initial optical network corresponding to the initial lamp arrangement scheme according to the optical network quality evaluation method to generate an optical network evaluation result includes: Divide the initial light network into several areas and determine the number of rays in each area; Generate a light grid array according to a number of areas and the number of rays in the areas; Determine the uniformity of optical network distribution based on the standard deviation and mean of the optical network array; Generate optical network evaluation results based on the optical network distribution uniformity.
3. The method for arranging lamp beads of an infrared touch frame according to claim 2, wherein: After determining the uniformity of optical network distribution, the following steps are also required: Obtaining hole information of the initial optical network; wherein the hole information includes: the number of holes and the area of each hole; Determine the total area of the holes in the initial optical network according to the number of holes and the area of each hole; Determine the optical network hole measurement value according to the total hole area, hole standard deviation and hole mean of the initial optical network; Generating the optical network evaluation result includes: The optical network evaluation results are generated based on the optical network distribution uniformity and optical network void measurement values.
4. The method for arranging lamp beads of an infrared touch frame according to claim 3, characterized in that: After determining the maximum void in the optical network corresponding to the initial lamp arrangement scheme and selecting the lamp beads associated with the maximum void as the lamp beads to be adjusted, the following steps are also included: The lamp beads whose lamp bead spacing with the lamp bead to be adjusted is smaller than the preset spacing are used as the lamp beads to be adjusted.
5. The method for arranging lamp beads of an infrared touch frame according to claim 4, characterized in that: Also includes: Generate a list of lamp arrangement plans; Each lamp arrangement scheme and the corresponding optical network evaluation result are stored in the lamp arrangement scheme list in an array manner; wherein the lamp arrangement scheme list is sorted from largest to smallest according to the optical network evaluation result; Select several lamp bead arrangement schemes from the head of the lamp bead arrangement scheme list for visual display.
6. A lamp bead arrangement device for an infrared touch frame, characterized in that: include: Solution acquisition module, optical network quality evaluation module and solution adjustment and confirmation module; The scheme acquisition module is used to obtain an initial lamp bead arrangement scheme; The optical network quality evaluation module is used to evaluate the initial optical network corresponding to the initial lamp bead arrangement scheme according to the optical network quality evaluation method and generate an optical network evaluation result; The scheme adjustment and determination module is configured to use the initial lamp bead arrangement scheme as the target lamp bead arrangement scheme when the optical network evaluation result meets the evaluation threshold; When the optical network evaluation result does not meet the evaluation threshold, a lamp bead arrangement adjustment operation is performed; wherein, the lamp bead arrangement adjustment operation includes: obtaining an initial lamp bead arrangement scheme; determining the maximum hole of the optical network corresponding to the initial lamp bead arrangement scheme, and using the lamp beads related to the maximum hole as the lamp beads to be adjusted; generating a Gaussian random number for each lamp bead to be adjusted, and adjusting the corresponding lamp bead position according to each Gaussian random number to generate an adjusted lamp bead arrangement scheme; evaluating the optical network corresponding to the adjusted lamp bead arrangement scheme according to the optical network quality evaluation method to generate a corresponding optical network evaluation result; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme meets the evaluation threshold, using the adjusted lamp bead arrangement scheme as the target lamp bead arrangement scheme; when the optical network evaluation result corresponding to the adjusted lamp bead arrangement scheme does not meet the evaluation threshold, using the adjusted lamp bead arrangement scheme as the initial lamp bead arrangement scheme, and performing the lamp bead arrangement adjustment operation.
7. A terminal device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the method for arranging lamp beads of an infrared touch frame according to any one of claims 1 to 5 is implemented.
8. A storage medium, characterized in that: The storage medium includes a stored computer program, wherein when the computer program is executed, the device where the storage medium is located is controlled to execute the method for arranging lamp beads of an infrared touch frame according to any one of claims 1 to 5.
Citation Information
Patent Citations
Method and device for determining arrangement mode of lamp beads of touch screen
CN114690962A
Method and device for constructing infrared grid
CN114690964A
Lamp bead arrangement method and device of infrared touch screen and electronic equipment
CN116958048A
Equally-spaced infrared touch screen optimization method
CN117170527A
Lamp bead arrangement method and device of infrared touch frame, terminal equipment and storage medium
CN118068989A