CN111695257B - LED layout generation method and device, computer equipment and readable storage medium - Google Patents

LED layout generation method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN111695257B
CN111695257B CN202010528949.4A CN202010528949A CN111695257B CN 111695257 B CN111695257 B CN 111695257B CN 202010528949 A CN202010528949 A CN 202010528949A CN 111695257 B CN111695257 B CN 111695257B
Authority
CN
China
Prior art keywords
leds
led
array
coordinates
generating
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010528949.4A
Other languages
Chinese (zh)
Other versions
CN111695257A (en
Inventor
林崇致
张建文
黄达人
陈伯纶
陈俊达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Interface Optoelectronics Shenzhen Co Ltd
Interface Technology Chengdu Co Ltd
General Interface Solution Ltd
Original Assignee
Interface Optoelectronics Shenzhen Co Ltd
Interface Technology Chengdu Co Ltd
General Interface Solution Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Interface Optoelectronics Shenzhen Co Ltd, Interface Technology Chengdu Co Ltd, General Interface Solution Ltd filed Critical Interface Optoelectronics Shenzhen Co Ltd
Priority to CN202010528949.4A priority Critical patent/CN111695257B/en
Publication of CN111695257A publication Critical patent/CN111695257A/en
Application granted granted Critical
Publication of CN111695257B publication Critical patent/CN111695257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/13Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on liquid crystals, e.g. single liquid crystal display cells
    • G02F1/133Constructional arrangements; Operation of liquid crystal cells; Circuit arrangements
    • G02F1/1333Constructional arrangements; Manufacturing methods
    • G02F1/1335Structural association of cells with optical devices, e.g. polarisers or reflectors
    • G02F1/1336Illuminating devices
    • G02F1/133602Direct backlight
    • G02F1/133603Direct backlight with LEDs

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Nonlinear Science (AREA)
  • Optics & Photonics (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Chemical & Material Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application relates to a method and a device for generating an LED layout, a computer device and a readable storage medium, wherein the method for generating the LED layout comprises the following steps: generating a first array comprising a plurality of LEDs, wherein the LEDs are regularly arranged, and the distance between two adjacent LEDs is a preset initial distance; randomly adding a plurality of the LEDs in the first array to form a second array; adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition; generating the LED layout according to the adjusted coordinates of the LEDs in the second array. According to the invention, the first array with the regularly arranged LEDs is generated, the LEDs are randomly added to form the second array, so that the initial LED layout is quickly established, and then the position of the LEDs in the second array is adjusted to meet the preset conditions, so that the LED layout with better brightness uniformity and better display quality is formed.

Description

LED layout generation method and device, computer equipment and readable storage medium
Technical Field
The present application relates to the field of liquid crystal display technologies, and in particular, to a method and an apparatus for generating an LED layout, a computer device, and a readable storage medium.
Background
In a liquid crystal display device, the liquid crystal display device generally includes a backlight module, an optical film layer set, a liquid crystal cell, a driving module, and the like, wherein the backlight module is used for providing backlight for the liquid crystal cell, the optical film layer set can make the brightness of the backlight uniform, and the liquid crystal cell adjusts the emergent light intensity of the backlight after penetrating through the liquid crystal cell under the control of the driving module, thereby realizing the display of different brightness.
Because the requirement for the size of the display device is higher and higher, the conventional side-type backlight module cannot meet the requirement for the brightness uniformity of the large-size display device, and therefore, the direct-type backlight module is more and more applied to the large-size display device. The backlight module of straight following formula includes a plurality of LED lamp plates, is equipped with a plurality of LED lamp pearls on every lamp plate, and a plurality of LED lamp pearls are neatly arranged with the rule of setting for to obtain better luminance homogeneity, however, the overall arrangement mode of present LED lamp pearl produces flaws such as moire fringe easily, thereby influences display quality.
Disclosure of Invention
Based on this, it is necessary to provide a method and an apparatus for generating an LED layout, a computer device, and a readable storage medium for solving the technical problem that a layout manner of LED lamp beads causes poor display quality.
A method for generating an LED layout, comprising:
generating a first array comprising a plurality of LEDs, wherein the LEDs are regularly arranged, and the distance between every two adjacent LEDs is a preset initial distance;
randomly adding a plurality of the LEDs in the first array to form a second array;
adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
generating the LED layout according to the adjusted coordinates of the LEDs in the second array.
In one embodiment, the generating a first array comprising a plurality of LEDs comprises: generating a first array comprising a first number of the LEDs;
said randomly adding a plurality of said LEDs in said first array to form a second array, comprising: randomly adding a second number of LEDs in the first array to form a second array;
wherein a sum of the first number and the second number is greater than a target number of LEDs in the LED layout to be generated.
In one embodiment, the generating the LED layout according to the adjusted second array includes:
and removing a plurality of LEDs which are arranged at the outermost periphery of the second array at equal intervals to generate the LED layout, wherein in the generated LED layout, connecting lines between three adjacent LEDs form a non-equilateral triangle.
In one embodiment, the adjusting the coordinates of the LEDs in the second array to make the coordinates of each LED satisfy a preset condition includes:
performing for each of the LEDs a moving step:
acquiring target coordinates of the LED;
obtaining a movement vector of the LED according to the original coordinate and the target coordinate of the LED;
moving the LED according to the original coordinate and the movement vector, and updating the original coordinate according to the moved coordinate;
and repeatedly executing the moving step until the length of the moving vector of each LED is smaller than a preset length threshold value.
In one embodiment, the obtaining the target coordinates of the LED includes:
acquiring an original distance between a first LED and each second LED, wherein the LED defining a target coordinate to be acquired is a first LED, and a plurality of LEDs surrounding the first LED are all second LEDs;
and acquiring the target coordinates of the first LED according to the plurality of original distances and a preset distance threshold.
In one embodiment, the obtaining the motion vector of the LED according to the original coordinates and the target coordinates of the LED includes:
acquiring a preset correction coefficient;
and obtaining the motion vector of each LED according to the original coordinate, the target coordinate and the correction coefficient, wherein the motion vector is equal to the product of the correction coefficient and a difference vector, and the difference vector is a vector of the original coordinate pointing to the target coordinate.
In one embodiment, the length threshold is less than or equal to 0.001.
An apparatus for generating an LED layout, the apparatus comprising:
the first array generating module is used for generating a first array comprising a plurality of LEDs, the LEDs are regularly arranged, and the distance between every two adjacent LEDs is a preset initial distance;
a second array generation module for randomly adding a plurality of said LEDs in said first array to form a second array;
the coordinate adjusting module is used for adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
and the layout acquisition module is used for generating the LED layout according to the adjusted coordinates of the LEDs in the second array.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the generation method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the generation method described above.
The method, the device, the computer equipment and the readable storage medium for generating the LED layout comprise the following steps: generating a first array comprising a plurality of LEDs, wherein the LEDs are regularly arranged, and the distance between two adjacent LEDs is a preset initial distance; randomly adding a plurality of the LEDs in the first array to form a second array; adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition; generating the LED layout according to the adjusted coordinates of the LEDs in the second array. According to the invention, the first array with the regularly arranged LEDs is generated, the LEDs are randomly added to form the second array, so that the initial LED layout is quickly established, and then the position of the LEDs in the second array is adjusted to meet the preset conditions, so that the LED layout with better brightness uniformity and better display quality is formed.
Drawings
FIG. 1 is a flow diagram of a method for generating an LED layout according to one embodiment;
FIG. 2 is a schematic diagram of the first array after step S100;
FIG. 3 is a schematic diagram of an exemplary second array after step S200;
FIG. 4 is a schematic diagram of an exemplary second array after step S300;
FIG. 5 is a schematic diagram illustrating a second array of outermost plurality of LEDs according to one embodiment;
FIG. 6 is a schematic diagram of the embodiment of FIG. 5 with the outermost plurality of LEDs in the second array removed;
FIG. 7 is a sub-flowchart of step S300 according to an embodiment;
FIG. 8 is a sub-flowchart of step S311 according to an embodiment;
FIG. 9 is a schematic diagram of an exemplary first LED and second LED;
FIG. 10 is a graph of the results of an exemplary LED layout generated with a set length threshold of 1 mm;
FIG. 11 is a histogram of the distance distribution between adjacent LEDs in the resulting graph of the example of FIG. 10;
FIG. 12 is a graph of the results of an example LED layout generated with a set length threshold of 0.1 mm;
FIG. 13 is a histogram of the distance distribution between adjacent LEDs in the result graph of the example of FIG. 12;
FIG. 14 is a graph of the results of an example LED layout generated with a set length threshold of 0.001 mm;
FIG. 15 is a histogram of the distance distribution between adjacent LEDs in the result graph of the example of FIG. 14;
FIG. 16 is a graph of the relationship between the maximum value of the coordinate difference and the length threshold;
FIG. 17 is a sub-flowchart of step S312 according to an embodiment;
FIG. 18 is a schematic structural diagram of an apparatus for generating an LED layout according to an embodiment;
FIG. 19 is a block diagram of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the description of the present invention, it is to be understood that the terms "upper", "lower", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on methods or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
Fig. 1 is a flowchart of a method for generating an LED layout according to an embodiment, as shown in fig. 1, in the embodiment, the method for generating an LED layout includes steps S100 to S400.
S100: a first array comprising a plurality of LEDs is generated, and the plurality of LEDs are in a regular arrangement.
Specifically, fig. 2 is a schematic diagram of the first array after step S100, as shown in fig. 2, in this example, each point in the diagram represents one LED, and a plurality of LEDs are arranged in a matrix form. Further, the first distance dx between the LEDs adjacent in the horizontal direction may be equal to the second distance dy between the LEDs adjacent in the vertical direction, that is, the distance dx or dy between two adjacent LEDs is a preset initial distance, and the preset initial distance may be, for example, 4mm, 4.5mm, or 5mm, so as to further simplify the generation logic of the first array.
In other examples, the plurality of LEDs may also be arranged in a regular hexagon, a regular octagon, or the like, and the present embodiment does not specifically limit the arrangement manner of the plurality of LEDs in the first array.
S200: a plurality of LEDs is randomly added in the first array to form a second array.
Specifically, fig. 3 is a schematic diagram of an exemplary second array after step S200, and as shown in fig. 3, the hollow dots in fig. 3 are the LEDs added in step S200, and a plurality of LEDs are added at random positions in the first array to improve the irregularity of the generated LED layout. As is clear from the moire fringe generation principle, the light source that periodically changes is more likely to generate moire fringes, and therefore, the present embodiment can disturb the regular arrangement of the periodic changes of the LEDs in the backlight by randomly adding the LEDs, thereby reducing the occurrence probability of the moire fringe phenomenon.
The size and brightness of the LEDs added in step S200 are the same as those of the LEDs regularly arranged in step S100, so that the adjustment and processing methods of the LEDs generated in step S100 and the LEDs added in step S200 in the subsequent steps are the same, and the LEDs added in different steps will not be distinguished in other figures.
In the example shown in fig. 3, the ratio between the number of LEDs included in the first array and the number of LEDs added in step S200 is about 9. It will be appreciated that the smaller the number of randomly added LEDs, the shorter the adjustment time required in step S300, but the worse the non-uniformity of the resulting LED layout; while the larger the number of randomly added LEDs, the better the irregularity of the LED layout generated after step S400, but the longer the adjustment time required. It is understood that the better the irregularity of the LED layout, the lower the probability of the liquid crystal display device to have display quality problems such as moire fringes, and the like, and therefore, an appropriate number of LEDs can be randomly added according to different requirements for display quality.
S300: and adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet the preset condition.
Specifically, step S300 may adjust the coordinates of the LEDs in the set area in the second array, and may also adjust the coordinates of all the LEDs in the second array, it being understood that the larger the number of LEDs whose coordinates are adjusted, the better the irregularity of the LED layout generated after step S400. The preset condition may be that the distance between adjacent LEDs is in a set numerical range, or that each LED and the adjacent LEDs form a set pattern. It is understood that the random addition of the LEDs will also degrade the uniformity of the backlight, and therefore, step S300 of this embodiment further adjusts the coordinates of the LEDs in the second array to generate the second array as shown in fig. 4, so as to improve the light emitting uniformity of the backlight, thereby improving the display quality of the liquid crystal display device.
S400: and generating an LED layout according to the adjusted coordinates of the LEDs in the second array.
Specifically, the coordinates of the LEDs in the adjusted second array may be directly used as the coordinates of the LEDs in the LED layout, or the coordinates of the LEDs in the adjusted second array may be further cut and modified, so as to generate the coordinates of the LEDs in the LED layout.
In this embodiment, the method for generating the LED layout includes: generating a first array comprising a plurality of LEDs, wherein the plurality of LEDs are arranged regularly; randomly adding a plurality of LEDs in the first array to form a second array; adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition; and generating an LED layout according to the adjusted coordinates of the LEDs in the second array. In the embodiment, the first array with regularly arranged LEDs is generated, the LEDs are randomly added to form the second array, so that the initial LED layout is quickly established, and then the position of the LEDs in the second array is adjusted to meet the preset conditions, so that the backlight LED layout with good brightness uniformity, no moire fringe display problem and good display quality is formed.
In an embodiment, generating a first array comprising a plurality of LEDs comprises: a first array is generated that includes a first number of LEDs.
Randomly adding a plurality of LEDs in a first array to form a second array, comprising: randomly adding a second number of LEDs in the first array to form a second array;
wherein a sum of the first number and the second number is greater than a target number of LEDs in the LED layout to be generated.
Specifically, in order to make the display brightness of the liquid crystal display device reach the set brightness, the pitch and the number of LEDs in the backlight of the liquid crystal display device, i.e., the target number N0 of LEDs in the LED layout to be generated, need to be adjusted according to the brightness of each LED and the size of the display device, where N0 is a positive integer.
With continued reference to fig. 3, in the present example, the first number N1 of LEDs in the first array is 128, and a regular arrangement of 8 rows and 16 columns is formed, the second number N2 of LEDs randomly added in step S200 is 14, and the sum of the first number N1 and the second number N2 is 142, and when a better display effect needs to be obtained, further trimming and decorating can be performed on the adjusted LEDs in the second array. Therefore, the sum of the first number N1 and the second number N2 is greater than the target number N0 of LEDs in the LED layout to be generated, which can provide a larger operation space for the subsequent clipping and decoration steps, thereby improving the flexibility of the method for generating the LED layout of the present embodiment. It should be noted that the numerical values of the first number N1 and the second number N2 are only used for explanation, and are not used as specific limitations of the present example.
In one embodiment, generating the LED layout from the adjusted second array comprises: and removing the plurality of LEDs which are equidistantly arranged at the outermost periphery of the second array to generate an LED layout, wherein in the generated LED layout, connecting lines between three adjacent LEDs form a non-equilateral triangle. Fig. 5 is a schematic diagram illustrating a plurality of outermost LEDs in the second array of the present embodiment, and as shown in fig. 5, the outermost LEDs refer to a plurality of LEDs other than the inner square in the figure, that is, a plurality of LEDs located at the outermost periphery of the second array and arranged equidistantly, and in the adjusted second array, the LEDs other than the outermost LEDs are referred to as inner LEDs.
Fig. 6 is a schematic diagram of the embodiment after removing the plurality of LEDs equidistantly arranged on the outermost periphery of the second array, specifically, the connection between the three LEDs to form a non-equilateral triangle refers to a common triangle in which the lengths of the three sides are not equal, or an isosceles triangle in which only the lengths of the two sides are equal, where when any adjacent three LEDs in the LED layout form a common triangle, the effect of eliminating the moire phenomenon is the best. It can be understood that, based on the irregularly arranged LEDs in fig. 4, it has been possible to achieve the object of reducing the moire phenomenon of the display device and to obtain a display quality superior to that of the related art. In the present embodiment, by removing the outermost plurality of LEDs, the LED layout as shown in fig. 6 is obtained, and the irregularity of the LED arrangement can be further improved, thereby obtaining a better display effect.
Fig. 7 is a sub-flowchart of step S300 according to an embodiment, as shown in fig. 7, in the embodiment, step S300 includes step S310 and step S320, and step S310 specifically includes steps S311 to S313, and the purpose of optimizing the coordinates of the LEDs is achieved by circularly iterating the moving steps of steps S311 to S313.
S310: performing for each LED a moving step:
s311: target coordinates of the LEDs are obtained.
S312: obtaining a movement vector of the LED according to the original coordinate and the target coordinate of the LED;
s313: and moving the LED according to the original coordinate and the movement vector, and updating the original coordinate according to the moved coordinate.
Specifically, the original coordinates refer to the coordinates where the LED is currently located, and the target coordinates refer to the coordinates expected to arrive after the LED moves, which are obtained through calculation and analysis. In the loop of one moving step S11 to S313 of the present embodiment, step S311 is performed simultaneously for each LED to obtain the target coordinates of each LED, step S312 is performed simultaneously for each LED to obtain the moving vector of each LED, and finally each LED is moved simultaneously, thereby completing the loop of one moving step. It will be appreciated that the present embodiment can effectively increase the processing speed and efficiency of the moving step by analyzing and moving each LED simultaneously, as compared to moving different LEDs step by step.
S320: and repeating the moving step until the length of the moving vector of each LED is smaller than a preset length threshold value.
It will be appreciated that there are interactions and effects between adjacent LEDs, i.e. a change in the coordinates of any LED will affect the surrounding LEDs, and performing a single movement step will not bring all LEDs to the optimal coordinates. Therefore, it is necessary to iterate the above moving steps circularly and perform evaluation and analysis after each moving step is completed, so that the relative position of each LED is in a balanced state to obtain the optimal coordinates of each LED.
In this embodiment, the smaller the length of the motion vector, the closer the original coordinates of the LED are to the target coordinates; the larger the length of the movement vector, the farther the original coordinates of the LED are from the target coordinates, and therefore, the length of the movement vector is used as an index for evaluation and analysis, and the movement effect can be intuitively evaluated. Furthermore, a proper length threshold value can be set according to the requirements on brightness uniformity and elimination of moire fringes, so that a better display effect of the liquid crystal display device is realized at a higher coordinate adjusting speed.
Fig. 8 is a sub-flowchart of step S311 according to an embodiment, and as shown in fig. 8, step S311 includes steps S3111 and S3112 in this embodiment.
S3111: acquiring an original distance between a first LED and each second LED, wherein the LED of the target coordinate to be acquired is defined as the first LED, and a plurality of LEDs surrounding the first LED are all the second LEDs;
s3112: and acquiring target coordinates of the first LED according to the plurality of original distances and a preset distance threshold.
Specifically, fig. 9 is a schematic diagram of a first LED and a second LED of an example, as shown in fig. 9, the LED to be obtained the target coordinate is the first LED, i.e., LED1 in fig. 9, and each of the plurality of LEDs surrounding the first LED is the second LED, and the first LED shown in this example is surrounded by 4 second LEDs, i.e., LED2-1, LED2-2, LED2-3, and LED2-4. It should be noted that in other examples, the first LED may also be surrounded by 5 or 6 second LEDs, and the number of second LEDs surrounding different first LEDs may be different.
As shown in fig. 9, the original distances between the first LED and the four surrounding second LEDs are d1, d2, d3, and d4, respectively, and the length d0 shown in the upper right corner of fig. 9 is the preset distance threshold, as shown in fig. 9, both d1 and d2 are smaller than d0, and both d3 and d4 are larger than d0. Thus, LED1 should move away from LEDs 2-1 and 2-2 and toward LEDs 2-3 and 2-4 so that the distance between the first LED and each of the second LEDs is close to the distance threshold. In this example, the target coordinates of the first LED in the current moving step cycle can be accurately acquired from the plurality of original distances d1 to d4 and the preset distance threshold d0.
In one embodiment, the length threshold is less than or equal to 0.001mm. Specifically, fig. 10 is a result graph of an example of a layout of LEDs generated when the set length threshold is 1mm, fig. 11 is a histogram of a distribution of distances between adjacent LEDs in the result graph of the example of fig. 10, fig. 12 is a result graph of an example of a layout of LEDs generated when the set length threshold is 0.1mm, fig. 13 is a histogram of a distribution of distances between adjacent LEDs in the result graph of the example of fig. 12, fig. 14 is a result graph of an example of a layout of LEDs generated when the set length threshold is 0.001mm, and fig. 15 is a histogram of a distribution of distances between adjacent LEDs in the result graph of the example of fig. 14.
In this embodiment, the distance threshold is set to 4mm as an example, that is, the distance between adjacent LEDs in the finally generated LED layout is expected to be about 4mm. As shown in fig. 11, when the length threshold is 1mm, 50% of the distance between adjacent LEDs is distributed in the range of 3.5mm to 4.5 mm; as shown in fig. 12, when the length threshold is 0.1mm, 74% of the distance between adjacent LEDs is distributed in the range of 3.5mm to 4.5 mm; as shown in fig. 13, when the length threshold is 0.001mm, 91% of the distance between adjacent LEDs is distributed in the range of 3.5mm to 4.5 mm. Furthermore, referring to fig. 10, 12 and 14, it can also be known that the smaller the set length threshold, the better the uniformity of the LEDs in the generated LED layout, and the better the luminance uniformity of the corresponding liquid crystal display device, thereby obtaining better display quality.
Further, when 90% or more of the distances between adjacent LEDs are distributed within a set distance range, the requirement of the liquid crystal display device for brightness uniformity can be satisfied. Fig. 16 is a relationship diagram between the maximum coordinate difference value and the length threshold value, the abscissa of fig. 16 is the preset length threshold value, the ordinate is the maximum coordinate difference value, and the larger the maximum coordinate difference value is, the worse uniformity of the LEDs in the generated LED layout is. As shown in fig. 16, as the length threshold is continuously decreased, the maximum coordinate difference value is also continuously decreased, that is, the uniformity of the LEDs in the LED layout is continuously improved, when the length threshold is smaller than 0.001mm, the maximum coordinate difference value is not significantly changed, and the smaller the length threshold is, the more the number of cycles of the moving step that needs to be performed is, that is, the more the adjustment time is consumed, therefore, when the distance threshold is 0.001mm, the better LED layout can be obtained in the shorter adjustment time, thereby improving the speed and effect of generating the LED layout.
Fig. 17 is a sub-flowchart of step S312 according to an embodiment, and as shown in fig. 17, step S312 includes steps S3121 and S3122.
S3121: acquiring a preset correction coefficient;
s3122: and obtaining a movement vector of each LED according to the original coordinate, the target coordinate and the correction coefficient, wherein the movement vector is equal to the product of the correction coefficient and a difference vector, and the difference vector is a vector of the original coordinate pointing to the target coordinate.
In the present embodiment, the original coordinates of the LED are (x 0, y 0), the target coordinates are (x 1, y 1), and the difference vector is (x 1-x0, y1-y 0), for example, in an example, the original coordinates are (30, 25), the target coordinates are (31, 24), the difference vector is (1, -1), and the correction coefficient is 0.2, the movement vector is (0.2, -0.2), that is, the LED moves from (30, 25) to (30.2, 24.8) in the loop of the current movement step, so as to approach the target coordinates of the LED obtained by calculation, and updates the original coordinates of the LED by (30.2, 24.8), and enters the loop of the next movement step.
Further, the preset correction coefficient has a value range of 0.1 to 0.3, for example, 0.2, wherein the smaller the correction coefficient is, the shorter the length of the motion vector is, that is, the shorter the moving distance is; the larger the correction coefficient, the longer the length of the movement vector, i.e. the longer the movement distance, it can be understood that adjacent LEDs are related to each other, and the longer the movement distance of each LED, the greater the influence on other adjacent LEDs, and therefore, it is necessary to select an appropriate correction coefficient to obtain a better adjustment effect.
It should be understood that, although the steps in the flowcharts are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in each flowchart may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or stages in other steps.
Fig. 18 is a schematic structural diagram of an apparatus for generating an LED layout according to an embodiment, as shown in fig. 18, the apparatus includes:
the first array generating module is used for generating a first array comprising a plurality of LEDs, the LEDs are regularly arranged, and the distance between every two adjacent LEDs is a preset initial distance;
a second array generation module for randomly adding a plurality of LEDs in the first array to form a second array;
the coordinate adjusting module is used for adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
and the layout acquisition module is used for generating the LED layout according to the adjusted coordinates of the LEDs in the second array.
For specific definition of the generating device of the LED layout, reference may be made to the above definition of the generating method of the LED layout, and details are not described herein. The modules in the above LED layout generating device may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 19 is a schematic structural diagram of a computer device according to an embodiment, as shown in fig. 19, the computer includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the following steps:
s100: generating a first array comprising a plurality of LEDs, wherein the LEDs are regularly arranged, and the distance between two adjacent LEDs is a preset initial distance;
s200: randomly adding a plurality of LEDs in the first array to form a second array;
s300: adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
s400: and generating an LED layout according to the adjusted coordinates of the LEDs in the second array.
In one embodiment, the processor when executing the computer program further performs the steps of:
s310: performing for each LED a moving step:
s311: target coordinates of the LEDs are obtained.
S312: obtaining a movement vector of the LED according to the original coordinate and the target coordinate of the LED;
s313: moving the LED according to the original coordinate and the movement vector, and updating the original coordinate according to the moved coordinate;
s320: and repeating the moving step until the length of the moving vector of each LED is smaller than a preset length threshold value.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
s3111: acquiring an original distance between the first LED and each second LED, wherein the LED of the target coordinate to be acquired is defined as the first LED, and the plurality of LEDs surrounding the first LED are all the second LEDs;
s3112: and acquiring the target coordinates of the first LED according to the plurality of original distances and a preset distance threshold.
In one embodiment, the processor when executing the computer program further performs the steps of:
s3121: acquiring a preset correction coefficient;
s3122: and obtaining a movement vector of each LED according to the original coordinate, the target coordinate and the correction coefficient, wherein the movement vector is equal to the product of the correction coefficient and a difference vector, and the difference vector is a vector of the original coordinate pointing to the target coordinate.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
s100: generating a first array comprising a plurality of LEDs, wherein the plurality of LEDs are arranged regularly;
s200: randomly adding a plurality of LEDs in the first array to form a second array;
s300: adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
s400: and generating an LED layout according to the adjusted coordinates of the LEDs in the second array.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware that is instructed by a computer program, and the computer program may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (9)

1. A method for generating an LED layout, comprising:
generating a first array comprising a plurality of LEDs, wherein the LEDs are regularly arranged, and the distance between every two adjacent LEDs is a preset initial distance;
randomly adding a plurality of the LEDs in the first array to form a second array;
adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
generating the LED layout according to the adjusted coordinates of the LEDs in the second array;
wherein the adjusting the coordinates of the LEDs in the second array such that the coordinates of each of the LEDs satisfy a preset condition comprises:
performing for each of the LEDs a moving step:
acquiring target coordinates of the LED;
obtaining a movement vector of the LED according to the original coordinate and the target coordinate of the LED;
moving the LED according to the original coordinate and the movement vector, and updating the original coordinate according to the moved coordinate;
and repeatedly executing the moving step until the length of the moving vector of each LED is smaller than a preset length threshold value.
2. The method of generating as claimed in claim 1, wherein generating a first array comprising a plurality of LEDs comprises: generating a first array comprising a first number of the LEDs;
said randomly adding a plurality of said LEDs in said first array to form a second array comprising: randomly adding a second number of LEDs in the first array to form a second array;
wherein a sum of the first number and the second number is greater than a target number of LEDs in the LED layout to be generated.
3. The method of generating according to claim 2, wherein generating the LED layout according to the adjusted second array comprises:
and removing a plurality of LEDs which are arranged at the outermost periphery of the second array at equal intervals to generate the LED layout, wherein in the generated LED layout, connecting lines between three adjacent LEDs form a non-equilateral triangle.
4. The method of generating as claimed in claim 1, wherein said obtaining target coordinates of said LED comprises:
acquiring an original distance between a first LED and each second LED, wherein the LED defining a target coordinate to be acquired is the first LED, and a plurality of LEDs surrounding the first LED are all the second LEDs;
and acquiring the target coordinates of the first LED according to the plurality of original distances and a preset distance threshold.
5. The method according to claim 1, wherein the obtaining the motion vector of the LED according to the original coordinates and the target coordinates of the LED comprises:
acquiring a preset correction coefficient;
and obtaining the motion vector of each LED according to the original coordinate, the target coordinate and the correction coefficient, wherein the motion vector is equal to the product of the correction coefficient and a difference vector, and the difference vector is a vector of the original coordinate pointing to the target coordinate.
6. The generation method according to claim 1, characterized in that the length threshold is less than or equal to 0.001.
7. An apparatus for generating an LED layout, the apparatus comprising:
the first array generating module is used for generating a first array comprising a plurality of LEDs, the LEDs are regularly arranged, and the distance between every two adjacent LEDs is a preset initial distance;
a second array generation module for randomly adding a plurality of said LEDs in said first array to form a second array;
the coordinate adjusting module is used for adjusting the coordinates of the LEDs in the second array so that the coordinates of each LED meet a preset condition;
a layout acquisition module, configured to generate the LED layout according to the adjusted coordinates of the LEDs in the second array;
wherein the adjusting the coordinates of the LEDs in the second array so that the coordinates of each of the LEDs satisfy a preset condition comprises:
performing for each of the LEDs a moving step: acquiring target coordinates of the LED; obtaining a movement vector of the LED according to the original coordinate and the target coordinate of the LED; moving the LED according to the original coordinate and the movement vector, and updating the original coordinate according to the moved coordinate; and repeatedly executing the moving step until the length of the moving vector of each LED is smaller than a preset length threshold value.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the generation method of any one of claims 1 to 6 when executing the computer program.
9. A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the generation method of any one of claims 1 to 6.
CN202010528949.4A 2020-06-11 2020-06-11 LED layout generation method and device, computer equipment and readable storage medium Active CN111695257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010528949.4A CN111695257B (en) 2020-06-11 2020-06-11 LED layout generation method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010528949.4A CN111695257B (en) 2020-06-11 2020-06-11 LED layout generation method and device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111695257A CN111695257A (en) 2020-09-22
CN111695257B true CN111695257B (en) 2023-04-11

Family

ID=72480298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010528949.4A Active CN111695257B (en) 2020-06-11 2020-06-11 LED layout generation method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111695257B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736390B (en) * 2020-06-28 2022-11-29 业成科技(成都)有限公司 Light emitting method, light emitting device, computer apparatus, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372167A (en) * 2001-02-22 2002-10-02 海德堡印刷机械股份公司 Stripe reduced pattern making for print plate
CN111081193A (en) * 2020-01-07 2020-04-28 业成科技(成都)有限公司 Display and brightness adjusting method thereof

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6522425B2 (en) * 1997-02-04 2003-02-18 Fuji Photo Film Co., Ltd. Method of predicting and processing image fine structures
CA2546289A1 (en) * 2003-11-13 2005-06-02 Metrologic Instruments, Inc. Hand-supportable imaging-based bar code symbol reader supporting narrow-area and wide-area modes of illumination and image capture
US9425172B2 (en) * 2008-10-24 2016-08-23 Cree, Inc. Light emitter array
JP5802041B2 (en) * 2011-04-12 2015-10-28 インターナショナル・ビジネス・マシーンズ・コーポレーションInternational Business Machines Corporation Information processing apparatus, calculation method, program, and recording medium
CN103514149B (en) * 2012-06-29 2017-03-22 国际商业机器公司 Device and method for adjusting size of page of hyperlink
CN103839936B (en) * 2012-11-22 2016-09-28 深圳市光峰光电技术有限公司 The manufacture method of LED array device
JP6292464B2 (en) * 2013-06-20 2018-03-14 Tianma Japan株式会社 Display device
JP6322086B2 (en) * 2014-08-26 2018-05-09 シャープ株式会社 Display control device, display device, program, recording medium
CN104539360B (en) * 2014-12-12 2017-07-28 北京邮电大学 A kind of visible light communication received signal power optimization method and device
CN105634593B (en) * 2015-12-18 2018-05-04 重庆邮电大学 A kind of indoor visible light communication LED array layout optimization method based on genetic algorithm
CN106686828B (en) * 2017-02-15 2019-06-21 西安工业大学 A kind of LED array layout method in visible light communication system
CN107564427A (en) * 2017-10-18 2018-01-09 深圳明信技术有限公司 A kind of LED module, LED display and display system
CN109661059B (en) * 2018-11-27 2020-12-29 温州大学 LED dimming and color mixing method and system
CN109976654A (en) * 2019-03-21 2019-07-05 惠州Tcl移动通信有限公司 A kind of screen content method of adjustment, device, mobile terminal and storage medium
CN110118646B (en) * 2019-06-04 2021-02-26 大连鉴影光学科技有限公司 Glasses parameter detection device and method based on synthetic moire fringe technology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1372167A (en) * 2001-02-22 2002-10-02 海德堡印刷机械股份公司 Stripe reduced pattern making for print plate
CN111081193A (en) * 2020-01-07 2020-04-28 业成科技(成都)有限公司 Display and brightness adjusting method thereof

Also Published As

Publication number Publication date
CN111695257A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
US10680041B2 (en) Pixel arrangement structure and related apparatus
EP2820643B1 (en) Subpixel arrangements of displays and method for rendering the same
JP4995877B2 (en) Light guide plate design method and manufacturing method thereof
CN108345107B (en) Design method of free-form surface illumination system
CN111695257B (en) LED layout generation method and device, computer equipment and readable storage medium
CN112394523A (en) Dodging element, random rule manufacturing method and system thereof and electronic device
CN105372818B (en) Beam shaping method for divergent laser beam
CN111223437A (en) Gamma register calibration method, gamma register calibration device and display device
CN106932853B (en) Light guide plate design method, light guide plate, mesh point distribution method and lighting device
CN103286187B (en) A kind of method of sheet material blanking and typesetting and device
CN111430577A (en) Uniformity calculation method, device, controller and storage medium
KR100772567B1 (en) Led grouping and arranging method for uniform white and luminance distribution of led backlight unit
CN108343861B (en) Free-form surface illumination system
CN212989792U (en) Dodging assembly
JP4367250B2 (en) Light guide plate for surface light emitting device and method for manufacturing the same
US11808953B2 (en) Microlens array device used to project at least two patterns for improving control of projecting light
KR101469441B1 (en) method for producing shadow mask having dummy pattern for OLED fabrication
CN207094226U (en) Light guide plate, backlight module and display device
KR20100099387A (en) Method for desigining diffusing film having irregular spherical shaped patterns
CN113376719B (en) Engineering diffusion sheet and random micro-lens array boundary processing method
CN114596791B (en) Display module manufacturing method
CN111596463A (en) Dodging assembly
US11709307B2 (en) Light source module and method for manufacturing the same, and backlight module and display device using the same
KR20050089915A (en) Optimized design method for light reflection pattern of light guiding panel
CN108196335B (en) Improved light guide plate

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant