CN117238236A - Display control method, system, medium and equipment based on lamp strip - Google Patents

Display control method, system, medium and equipment based on lamp strip Download PDF

Info

Publication number
CN117238236A
CN117238236A CN202311298026.4A CN202311298026A CN117238236A CN 117238236 A CN117238236 A CN 117238236A CN 202311298026 A CN202311298026 A CN 202311298026A CN 117238236 A CN117238236 A CN 117238236A
Authority
CN
China
Prior art keywords
display
target
lamp
lamp bead
bead
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.)
Pending
Application number
CN202311298026.4A
Other languages
Chinese (zh)
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.)
Shenzhen Mingshang Optoelectronics Co ltd
Original Assignee
Shenzhen Mingshang Optoelectronics Co 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 Shenzhen Mingshang Optoelectronics Co ltd filed Critical Shenzhen Mingshang Optoelectronics Co ltd
Priority to CN202311298026.4A priority Critical patent/CN117238236A/en
Publication of CN117238236A publication Critical patent/CN117238236A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

A display control method, a system, a medium and equipment based on a lamp strip relate to the technical field of display control. The method comprises the following steps: acquiring a target display pattern required to be displayed at the current time of the target pattern; matching the target display pattern into a lamp strip array, and determining display color information currently required to be displayed by each lamp bead in the lamp strip array; dividing each lamp bead into a plurality of lamp bead display groups according to the information of each display color, wherein the lamp bead display groups display the same target color; calculating each display time length required by each lamp bead display group to completely display the target color; based on each display time length, the corresponding sub-controller in each lamp bead display group is controlled to send an opening display instruction to each lamp bead in the lamp bead display group so as to enable each lamp bead in the target lamp strip array to be synchronously displayed. By implementing the technical scheme provided by the application, each lamp bead can be synchronously displayed finally, so that the display effect of the whole pattern is improved.

Description

Display control method, system, medium and equipment based on lamp strip
Technical Field
The application relates to the technical field of display control, in particular to a display control method, a system, a medium and equipment based on a lamp strip.
Background
A lamp strip is a very common display device. The lamp strip is provided with a substrate and lamp beads, the lamp beads are arranged on the substrate to form a display array, and the display result can be obtained by controlling the bead lamps to display in sequence. The lamp strip is widely applied to the fields of indoor decoration, landscape lighting, commercial exhibition, entertainment places and the like. Its flexibility and varied colors and effects make it an ideal choice for creating unique atmospheres and enhancing environmental aesthetics.
The light strips are usually arranged side by side, and the display content of each light strip is controlled respectively to form a pattern. When the pattern color that needs to show is complicated various, the lamp pearl in every lamp area needs to show different colours, and the different display delay that can exist for every lamp pearl can not show in step, thereby leads to the display effect of whole pattern relatively poor.
Disclosure of Invention
The application provides a display control method, a system, a medium and equipment based on a lamp strip, which can enable each lamp bead to finally perform synchronous display, thereby improving the display effect of the whole pattern.
In a first aspect, the present application provides a display control method based on a light band, which is applied to a main controller, where the main controller is connected with a plurality of sub-controllers in a communication manner, and adopts the following technical scheme:
Acquiring a target display pattern required to be displayed at the current time of the target pattern;
matching the target display pattern into a lamp strip array, and determining display color information currently required to be displayed by each lamp bead in the lamp strip array, wherein the lamp strip array comprises a plurality of rows of lamp strips, each lamp strip comprises a plurality of lamp beads, and each sub-controller is used for respectively and independently controlling each lamp bead;
dividing each lamp bead into a plurality of lamp bead display groups according to the display color information, wherein the lamp bead display groups display the same target color;
calculating each display time length required by each lamp bead display group to completely display the target color;
based on the display time length, controlling the corresponding sub-controller in each lamp bead display group to send an opening display instruction to each lamp bead in the lamp bead display group so as to enable each lamp bead in the target lamp strip array to synchronously display
By adopting the technical scheme, the target display pattern required to be displayed at the current time is matched with each lamp bead in the lamp strip array, so that the target display pattern can be accurately displayed on the lamp strip array, the lamp beads displaying the same target color are divided into the same lamp bead display groups, each display time length required by the complete display of the target color of each lamp bead display group is calculated, and according to each display time length, the corresponding sub-controller in each lamp bead display group is respectively controlled to send an opening display instruction to each lamp bead in the lamp bead display group, so that the display time length of each lamp bead display group can be made up, and each lamp bead in the lamp strip array is finally synchronously displayed, so that the display effect of the whole pattern is improved.
Optionally, the matching the target display pattern to the light band array, determining display color information currently required to be displayed by each light bead in the light band array includes: acquiring a coordinate layout diagram corresponding to the lamp strip array; and matching each pixel in the display pattern to the lamp beads in the coordinate layout diagram, and determining display color information corresponding to the pixel to be displayed currently of each lamp bead in the lamp strip array.
By adopting the technical scheme, each pixel in the target display pattern is matched to the lamp beads of the lamp strip array, so that each lamp bead can accurately display the corresponding pixel color in the target pattern. Thus, a highly accurate display effect can be achieved, so that the lamp strip array can accurately present the target pattern.
Optionally, the dividing each of the light beads into a plurality of light bead display groups according to each of the display color information, where the light bead display groups display the same target color, includes: obtaining display color information to be displayed by each lamp bead, wherein the color information comprises RGB color values; dividing the lamp beads with the same RGB color value into a lamp bead display group to obtain a plurality of lamp bead display groups, so that each lamp bead display group displays the same target color, wherein the target color is the color corresponding to the RGB color value.
By adopting the technical scheme, the lamp beads with the same RGB color value are divided into the same display group, and the lamp beads in the same group are ensured to display the same target color, so that the lamp beads can be uniformly controlled by the controller of each lamp bead display group.
Optionally, the calculating the display duration required for each bead display group to completely display the target color includes: acquiring RGB color values corresponding to the target colors to be displayed in each lamp bead display group; and determining each display time length required by each lamp bead display group to completely display the target color according to the RGB color values and the relation between the preset RGB color values and the lamp bead complete display time length.
By adopting the technical scheme, the display time required by each bead display group for completely displaying the target color can be calculated according to the relation between the preset RGB color values and the bead complete display time. Therefore, accurate time control can be realized, and each lamp bead display group can completely display target colors in proper time, so that each lamp bead in the lamp strip array can be finally synchronously displayed, and the display effect of the whole pattern is improved.
Optionally, the controlling the corresponding sub-controller in each bead display group to send an on display instruction to each bead in the bead display group based on each display duration includes: acquiring a target lamp bead display group with the longest display duration from the display duration; calculating the compensation time length of each display time length and the target display time length; controlling the corresponding sub-controller in the target lamp bead display group to send a first starting display instruction to each lamp bead in the target lamp bead display group; after the first display starting instruction is sent and the compensation time length is reached, the sub-controllers corresponding to the lamp bead display groups are respectively controlled to send an opening display instruction to each lamp bead in the lamp bead display groups, so that each lamp bead in the target lamp strip array is synchronously displayed.
By adopting the technical scheme, the compensation time length of each lamp bead display group is calculated, after the target lamp bead display group starts to display, the subcontrollers of other lamp bead display groups are gradually controlled to send the start display instruction so as to enable each lamp bead to be displayed gradually and synchronously, and therefore each lamp bead in the lamp strip array is finally displayed synchronously, and the display effect of the whole pattern is improved.
Optionally, after the sub-controller corresponding to each bead display group sends an on display instruction to each bead in the bead display group, the method further includes: acquiring the environment brightness of the lamp strip array sent by the light sensor and a preset target brightness range of the lamp strip array; calculating target brightness according to the environment brightness and the target brightness range; and controlling each lamp bead in the lamp strip array to display according to the target brightness.
By adopting the technical scheme, the brightness level of the current environment can be perceived in real time by acquiring the environment brightness sent by the light sensor, and the target brightness suitable for the current environment can be calculated according to the environment brightness by combining with the preset target brightness range. Therefore, the self-adaptive brightness adjustment can be realized, so that the light can keep proper brightness level under different environments, better visual feeling and comfort are provided, and meanwhile, energy sources can be effectively saved.
Optionally, the calculating the target brightness according to the ambient brightness and the target brightness range includes: calculating the proportion of the ambient brightness in the measuring range of the light sensor according to the first calculation formula; acquiring the lowest brightness and the highest brightness of the target brightness range; bringing the ratio, the lowest brightness and the highest brightness into a second calculation formula to calculate the target brightness; the first calculation formula is as follows: k= (L-T) min )/(T max -T min ) The K is a proportion, L is ambient brightness, T min For the lowest measured brightness of the measuring range of the light sensor, T max For the highest measured brightness of the light sensor measuring range, the second calculation formula is: w=l min +(L max - L min ) K, wherein W is the target brightness, and L is min L is the lowest luminance of the target luminance range max Is the highest luminance of the target luminance range.
By adopting the technical scheme, the accurate control of the lamplight brightness can be realized through setting the proportion K and the target brightness range in the calculation formula. And calculating an accurate target brightness value according to the specific value of the ambient brightness. Therefore, the brightness level of the lamplight can be accurately controlled according to the actual requirements and the fine adjustment requirements, so that the lamplight can keep proper brightness level in different environments.
In a second aspect of the application there is provided a light strip based display control system, the system comprising:
the target display pattern acquisition module is used for acquiring a target display pattern required to be displayed at the current time of the target pattern;
the display color information determining module is used for matching the target display pattern into a lamp strip array to determine display color information required to be displayed currently by each lamp bead in the lamp strip array, the lamp strip array comprises a plurality of lamp strips, each lamp strip comprises a plurality of lamp beads, and each sub-controller is used for respectively and independently controlling each lamp bead;
the lamp bead display group dividing module is used for dividing each lamp bead into a plurality of lamp bead display groups according to each display color information, and the lamp bead display groups display the same target color;
the display time length calculation module is used for calculating each display time length required by each lamp bead display group to completely display the target color;
the control display module is used for controlling the corresponding sub-controllers in the lamp bead display groups to send display starting instructions to the lamp beads in the lamp bead display groups based on the display time lengths so as to enable the lamp beads in the target lamp strip array to be synchronously displayed.
In a third aspect the application provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect of the application there is provided an electronic device comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
In summary, one or more technical solutions provided in the embodiments of the present application at least have the following technical effects or advantages:
1. according to the application, the target display pattern required to be displayed at the current time is matched with each lamp bead in the lamp strip array, so that the target display pattern can be correctly displayed on the lamp strip array, the lamp beads displaying the same target color are divided into the same lamp bead display groups, each display time length required by the lamp bead display groups to completely display the target color is calculated, and according to each display time length, the corresponding sub-controller in each lamp bead display group is respectively controlled to send an opening display instruction to each lamp bead in the lamp bead display group, so that the display time length of each lamp bead display group can be compensated, and each lamp bead in the lamp strip array is finally synchronously displayed, thereby improving the display effect of the whole pattern;
2. According to the application, the brightness level of the current environment can be perceived in real time by acquiring the environment brightness sent by the light sensor, and the target brightness suitable for the current environment can be calculated according to the environment brightness by combining with the preset target brightness range. Therefore, the self-adaptive brightness adjustment can be realized, so that the light can keep proper brightness level under different environments, better visual feeling and comfort are provided, and meanwhile, energy sources can be effectively saved.
Drawings
Fig. 1 is a schematic flow chart of a display control method based on a light strip according to an embodiment of the present application;
FIG. 2 is an exemplary diagram of a target display pattern provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a display control system module based on a light strip according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Reference numerals illustrate: 1. a target display pattern acquisition module; 2. a display color information determination module; 3. the lamp bead display group dividing module; 4. a display duration calculation module; 5. a control display module; 400. an electronic device; 401. a processor; 402. a communication bus; 403. a user interface; 404. a network interface; 405. a memory.
Detailed Description
In order that those skilled in the art will better understand the technical solutions in the present specification, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments.
In describing embodiments of the present application, words such as "for example" or "for example" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "such as" or "for example" in embodiments of the application should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "or" for example "is intended to present related concepts in a concrete fashion.
In the description of embodiments of the application, the term "plurality" means two or more. For example, a plurality of systems means two or more systems, and a plurality of screen terminals means two or more screen terminals. Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating an indicated technical feature. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
The following description of the embodiments of the present application will be given in detail with reference to the accompanying drawings, and it is apparent that the embodiments described are only some, but not all embodiments of the present application.
The embodiment of the application provides a system architecture of a display control method based on lamp bands, the system architecture can be realized into a display control system based on the lamp bands, the system can be applied to a lamp band array, the lamp band array comprises a plurality of lamp bands, and each lamp band comprises a plurality of lamp beads, for example, the system can comprise: the main controller is in communication connection with the plurality of sub-controllers, wherein each sub-controller respectively and independently controls each lamp bead, and therefore each lamp bead in the lamp strip array can be independently controlled. The main controller is mainly responsible for generating overall lamp bead control instructions, and the instructions can comprise information such as color, brightness, mode and the like, and are used for defining patterns to be displayed by the whole lamp strip array. The main controller is in communication connection with the plurality of sub-controllers, each sub-controller is respectively and independently responsible for controlling each lamp bead on a row of lamp strips, the main controller sends the generated overall control instruction to each sub-controller through communication connection, and each sub-controller receives the control instruction sent by the main controller and then independently controls the managed lamp beads according to information in the instruction. In the control process, the main controller and the sub-controllers need to be synchronized to ensure that the display effect of the whole lamp strip array is consistent. The main controller can confirm the receiving and executing condition of the instruction through the communication with the sub-controllers, and each sub-controller is ensured to control the corresponding lamp beads according to the instruction.
The system architecture of the present application has been described above, and further, please refer to fig. 1, a schematic flow chart of a display control method based on a light strip is provided, the method may be implemented by a computer program, may be implemented by a single chip microcomputer, may also be implemented by a display control system based on a light strip, and the computer program may be integrated in a main controller or may also be implemented as a separate tool application, and specifically, the method includes steps 10 to 50, where the steps are as follows:
step 10: and acquiring a target display pattern required to be displayed at the current time of the target pattern.
Referring to fig. 2, fig. 2 is an exemplary diagram of a target display pattern according to an embodiment of the present application.
Specifically, the target pattern refers to a pattern that needs to be displayed in the light strip array in the embodiment of the present application, and the pattern may be text, graphics, animation, or any other content that needs to be presented in the display. Since the display of the target pattern may need to follow a change in time, the display of the pattern may also be different, such as a change in color, a change in shape, and the like. The target display pattern refers to pattern information that the target pattern needs to be displayed on the lamp strip array at the current time.
For example, please refer to fig. 2, when the light strip array is turned on, the target display pattern of the target pattern at the current time is an love, and the target display pattern is displayed in the color distribution of the color a, the color B, the color C, and the color D in fig. 2 for the first five seconds. It is possible to display in another color distribution after five seconds, thereby realizing color-changing display of the target pattern.
It should be noted that fig. 2 is an exemplary target display pattern of the target pattern at the current time, and the target display pattern may be a more complex pattern, and fig. 2 is only an exemplary pattern.
Step 20: and matching the target display pattern into a lamp strip array, determining display color information required to be displayed currently by each lamp bead in the lamp strip array, wherein the lamp strip array comprises a plurality of lamp strips, each lamp strip comprises a plurality of lamp beads, and each sub-controller is used for respectively and independently controlling each lamp bead.
Specifically, the light band array is composed of a plurality of rows of light bands, and each light band comprises a plurality of light beads, so that the light band array can be regarded as a coordinate system, each light bead has a corresponding coordinate position, each pixel of the target display diagram is matched into the light band array according to the position of the light bead, and each pixel can be matched to the corresponding light bead in color, so that display color information required to be displayed currently by each light bead in the light band array is determined.
Based on the above embodiments, as an optional embodiment, the step of matching the target display pattern to the light band array and determining the display color information currently required to be displayed by each light bead in the light band array may further include the following steps:
step 201: and obtaining a coordinate layout diagram corresponding to the lamp strip array.
Specifically, the number of rows and the number of beads in each row of the lamp strip array are determined, and a coordinate layout corresponding to the lamp strip array is created according to the determined number of rows and the number of beads in each row. This may be a two-dimensional array or matrix representing the position coordinates of each bead. For example, the array of light bands can be considered as a coordinate axis, the abscissa being the number of light beads in a row of light bands, and the ordinate being the number of rows of light bands, each light bead being assigned a unique coordinate value. The location of each light bead may be indicated using a row number and a column number. For example, the row number increases from bottom to top, and the column number increases from left to right, as the position coordinate of the sixth lamp bead P in the first column in fig. 2 is (1, 6).
Step 202: and matching each pixel in the display pattern to the lamp beads in the coordinate layout diagram, and determining display color information corresponding to the pixel to be displayed currently of each lamp bead in the lamp strip array.
Specifically, a loop structure is used to traverse the display pattern and the coordinate layout so as to access each pixel and the corresponding lamp bead, and each pixel is matched to the corresponding lamp bead in the coordinate layout according to the position of the pixel. The color information of the pixels is associated with the position coordinates of the lamp beads, and the display color information corresponding to the pixels required to be displayed currently by each lamp bead is determined according to the matching result. The color information of the pixels can be directly assigned to the display color information of the lamp beads. As can be seen from fig. 2, the target display pattern is matched to the coordinate layout, so that each bead corresponds to a display color, for example, the current target display pattern is displayed by the color distribution of the color a, the color B, the color C, and the color D, and the other beads are displayed according to the default color Y.
Step 30: according to the information of each display color, each lamp bead is divided into a plurality of lamp bead display groups, and the lamp bead display groups display the same target color.
Specifically, different display colors can affect the display time of the lamp beads, for example, the higher the color depth is, the more colors can be represented, and the more color details can be displayed. However, higher color depths may require longer time to convert and display because each color channel requires a greater number of bits to represent a different color level. And when a bead needs to switch from one color to another, the higher the color depth involved, the longer the transition time may be. This is because at higher color depths, the beads need to handle more color levels and details, making more complex calculations and adjustments to ensure accurate display of the target color. Therefore, according to the display color information of each lamp bead, the lamp beads with the same display color information of each lamp bead are divided into one lamp bead display group, so that a plurality of lamp bead display groups can be obtained. Thus, each bead display group displays the same target color.
On the basis of the above embodiment, as an optional embodiment, the step of dividing each of the light beads into a plurality of light bead display groups according to each of the display color information, the light bead display groups displaying the same target color may further include the steps of:
step 301: obtaining display color information to be displayed by each lamp bead, wherein the color information comprises RGB color values;
step 302: dividing the lamp beads with the same RGB color values into a lamp bead display group to obtain a plurality of lamp bead display groups.
Specifically, each pixel in the target pattern corresponds to an RGB color value, and display color information to be displayed by each lamp bead is obtained, where the color information may include the RGB color value, and RGB is a method for representing colors, and creates a color space with a wide color gamut based on a combination of three color channels of red, green and blue. RGB color values are digital values representing the intensities of the three color channels red, green, and blue, typically using an integer representation of 0 to 255, with the value of each color channel determining the extent to which that channel contributes to the final color in the RGB color model. The intensities of the three channels combine to form the visible color. For example, pure red may be combined with the maximum value (255) of the red channel and the minimum values (0) of the green and blue channels. The display color of each bead can be represented by RGB color values, creating an empty dictionary for storing the bead display sets. The keys of the dictionary are RGB color values, the values are a list of the beads corresponding to the color, each bead is traversed, and the beads having the same RGB color values are divided into corresponding bead display groups. If the color key is already present in the dictionary, adding the current lamp bead to the corresponding list; if no key of the color exists in the dictionary, a new key value pair is created, the key is the color, and the value is a list containing only the current light beads. Therefore, the lamp beads with the same RGB color values can be divided into one lamp bead display group, and a plurality of lamp bead display groups are obtained.
Step 40: and calculating each display time length required by each lamp bead display group to completely display the target color.
Specifically, the RGB color values corresponding to the target color to be displayed in each bead display group are obtained, and according to the RGB color values and the relationship between the preset RGB color values and the full bead display time, the display time required by the full bead display group to display the target color can be determined.
On the basis of the above embodiment, as an alternative embodiment, the step of calculating each display time period required for each bead display group to completely display the target color may further include the steps of:
step 401: acquiring RGB color values corresponding to target colors to be displayed in each lamp bead display group;
step 402: and determining each display time length required by each lamp bead display group to completely display the target color according to the RGB color values and the relation between the preset RGB color values and the lamp bead complete display time length.
Specifically, each bead display group includes at least one bead, and the RGB color values corresponding to the target color to be displayed by all the beads in each bead display group are the same, so that the RGB color values corresponding to the target color to be displayed in each bead display group are obtained. Because each RGB color value corresponds to the full display time of the lamp bead, the relation between the RGB color value of each lamp bead and the preset RGB color value and the full display time of the lamp bead can be used for determining the display time required by each lamp bead display group to fully display the target color.
Illustratively, in connection with fig. 2, there are five bead display groups that display an a color, a B color, a C color, a D color, and a Y color (beads of the array of lamp strips other than the heart shape), respectively, assuming that the RGB color corresponding to the a color is (255, 0), the RGB color corresponding to the B color is (0, 255, 0), and the RGB color corresponding to the C color is (0, 255). And the display period in which the lamp beads completely display RGB colors (255, 0) is 1 second, the display period in which the lamp beads completely display RGB colors (0, 255, 0) is 0.6 seconds, and the display period in which the lamp beads completely display RGB colors (0, 255) is 1.5 seconds. Thus, each display duration required for each bead display group to completely display the target color can be obtained, for example, the display duration for each bead display group to completely display the target color a is 1 second.
Step 50: based on each display time length, the corresponding sub-controller in each lamp bead display group is controlled to send an opening display instruction to each lamp bead in the lamp bead display group so as to enable each lamp bead in the target lamp strip array to be synchronously displayed.
Specifically, since the display duration of each bead display group is different, a deviation in the display duration occurs on the overall display of the target pattern, resulting in poor overall display effect. Therefore, the application calculates the compensation time length of other lamp bead display groups and the target lamp bead display groups by acquiring the target lamp bead display group with the longest display time length based on the display time length of each lamp bead display group, thereby controlling each lamp bead display group to display according to the compensation time length, so that each lamp bead is synchronously displayed, and the display effect of the whole pattern is improved.
Based on the foregoing embodiments, as an optional embodiment, based on each display duration, controlling the corresponding sub-controller in each bead display group to send an on display instruction to each bead in the bead display group, so as to enable each bead in the target strip array to display synchronously, the method may further include the following steps:
step 501: obtaining a target lamp bead display group with the longest display duration in the display duration;
step 502: calculating the compensation time length of each display time length and the target display time length;
step 503: the corresponding sub-controllers in the target lamp bead display group are controlled to send first starting display instructions to all the lamp beads in the target lamp bead display group;
step 504: after the first display starting instruction is sent and the compensation time length is reached, the corresponding subcontrollers in the corresponding lamp bead display groups are respectively controlled to send display starting instructions to the lamp beads in the lamp bead display groups so as to enable the lamp beads in the target lamp band array to be synchronously displayed.
Specifically, the display time length of each lamp bead display group is traversed sequentially, the lamp bead display group with the longest display time length is used as the target lamp bead display group, and the time difference between other lamp bead display groups and the target lamp bead display group is calculated sequentially to obtain the compensation time length of the other lamp bead display groups. The method comprises the steps of firstly controlling a corresponding sub-controller in a target lamp bead display group to send a first starting display instruction to each lamp bead in the target lamp bead display group so that the lamp beads in the target lamp bead display group are displayed first, and controlling the corresponding sub-controller in the corresponding lamp bead display group to send a starting display instruction to each lamp bead in the lamp bead display group after the compensation time length of each other lamp bead display group is reached so that each lamp bead in the target lamp zone array is synchronously displayed.
For example, assuming that the display duration of the color C is 1.5 seconds at the longest, the bead display group corresponding to the color C is taken as the target bead display group, and then the compensation durations of the other four bead display groups and the target bead display group are sequentially calculated, for example, the compensation duration of the first bead display group corresponding to the color a is 0.5 seconds, and the compensation duration of the second bead display group corresponding to the color B is 0.4 seconds. The main controller controls the corresponding sub-controllers in the target bead display group to send a first turn-on display instruction to each bead in the target bead display group, so that the beads in the target bead display group firstly display the color C, after 0.4 seconds of the first turn-on display instruction is sent, the main controller sends a second turn-on display instruction to each bead in the second bead display group to the corresponding sub-controllers in the second bead display group, after 0.5 seconds of the first turn-on display instruction to each bead in the first bead display group, and so on, after the compensation time of other bead display groups is reached, the corresponding sub-controllers in the corresponding bead display group are controlled to send turn-on display instructions to each bead in the bead display group, so that the beads in the target bead array are finally synchronously displayed, and the display effect of the whole pattern is improved.
On the basis of the above embodiment, as an alternative embodiment, a display control method based on a light band may further include a calculation process of the brightness of the light bead, and the specific process may include the following steps:
step 601: acquiring the ambient brightness of the lamp strip array sent by the light sensor and a preset target brightness range of the lamp strip array;
specifically, the light band array is provided with a light sensor, the light sensor can detect the ambient brightness of the environment where the light band array is located, the light sensor sends the detected and read ambient brightness to the main controller, the main controller obtains the ambient brightness of the current environment where the light band array is located, and a preset target brightness range of the light band array, wherein the target brightness range refers to a proper display brightness range set for the light band array in advance by personnel, and for example, the target brightness range can be 30-80. The target brightness range can be adjusted according to actual conditions, so that the target brightness range can keep proper brightness level in different environments.
Step 602: and calculating the target brightness according to the environment brightness and the target brightness range.
Specifically, a measured luminance range of the photosensor is obtained, the measured luminance range including a lowest measured luminance and a highest measured luminance, and a ratio of the ambient luminance within the measured luminance range of the photosensor is calculated according to a first calculation formula. The first calculation formula is: k= (L-T) min )/(T max -T min ) Wherein K is a proportion, L is ambient brightness, T min For the lowest measured brightness of the measuring range of the light sensor, T max The brightness is measured for the highest of the measuring ranges of the light sensor. And obtaining the lowest brightness and the highest brightness of the target brightness range, and taking the proportion, the lowest brightness and the highest brightness into a second calculation formula to calculate the target brightness of the lamp strip array. Second calculation formulaThe method comprises the following steps: w=l min +(L max - L min ) K, wherein W is the target brightness, L min L is the lowest luminance of the target luminance range max Is the highest luminance of the target luminance range.
Illustratively, the measured luminance range of the photosensor is 0 (darkest) to 100 (brightest), and the target luminance range is 30-80, when the measured ambient luminance is 50, the ratio k= (50-0)/(100-0) =0.5 of the ambient luminance in the measured luminance range of the photosensor is 0.5=55, and the target luminance w=30+ (80-30) ×0.5=55 of the light band array is 55 in the environment where the light band array is located.
Step 603: and controlling each lamp bead in the lamp strip array to display according to the target brightness.
Specifically, the target brightness is used as a brightness parameter to be added into the starting display instruction, and the main controller controls the corresponding sub-controllers in each lamp bead display group to send the starting display instruction to each lamp bead in the lamp bead display group, so that the lamp beads in each lamp bead display group display according to the target brightness. Therefore, the consistency of brightness can be ensured, and the display brightness can be adaptively adjusted through the ambient brightness.
Referring to fig. 3, a schematic diagram of a display control system based on a light band according to an embodiment of the present application may include: a target display pattern acquisition module 1, a display color information determination module 2, a lamp bead display group division module 3, a display duration calculation module 4, and a control display module 5, wherein:
the target display pattern acquisition module 1 is used for acquiring a target display pattern required to be displayed at the current time of the target pattern;
a display color information determining module 2, configured to match the target display pattern to a light band array, and determine display color information currently required to be displayed by each light bead in the light band array, where the light band array includes a plurality of light bands, each light band includes a plurality of light beads, and each sub-controller separately controls each light bead;
the lamp bead display group dividing module 3 is used for dividing each lamp bead into a plurality of lamp bead display groups according to each display color information, wherein the lamp bead display groups display the same target color;
the display duration calculation module 4 is used for calculating each display duration required by each lamp bead display group to completely display the target color;
The control display module 5 is configured to control, based on each display duration, the corresponding sub-controller in each bead display group to send an on display instruction to each bead in the bead display group, so as to enable each bead in the target strip array to be synchronously displayed.
It should be noted that: in the system provided in the above embodiment, when implementing the functions thereof, only the division of the above functional modules is used as an example, in practical application, the above functional allocation may be implemented by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the system and method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the system and method embodiments are detailed in the method embodiments, which are not repeated herein.
The embodiment of the application also provides a computer storage medium, which can store a plurality of instructions, the instructions are suitable for being loaded by a processor and executed by the processor, the specific execution process can be referred to in the specific description of the embodiment shown in fig. 1-2, and the details are not repeated here.
Referring to fig. 4, the application also discloses an electronic device. Fig. 4 is a schematic structural diagram of an electronic device according to the disclosure. The electronic device 400 may include: at least one processor 401, at least one network interface 404, a user interface 403, a memory 405, and at least one communication bus 402.
Wherein communication bus 402 is used to enable connected communications between these components.
The user interface 403 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 403 may further include a standard wired interface and a standard wireless interface.
The network interface 404 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 401 may include one or more processing cores. The processor 401 connects the various parts within the entire server using various interfaces and lines, performs various functions of the server and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 405, and invoking data stored in the memory 405. Alternatively, the processor 401 may be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 401 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 401 and may be implemented by a single chip.
The Memory 405 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 405 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 405 may be used to store instructions, programs, code sets, or instruction sets. The memory 405 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like involved in the above respective method embodiments. The memory 405 may also optionally be at least one storage device located remotely from the aforementioned processor 401. Referring to fig. 4, an operating system, a network communication module, a user interface module, and an application program of a light band-based display control method may be included in the memory 405 as a computer storage medium.
In the electronic device 400 shown in fig. 4, the user interface 403 is mainly used as an interface for providing input for a user, and obtains data input by the user; and the processor 401 may be used to invoke an application program in the memory 405 that stores a light strip-based display control method, which when executed by the one or more processors 401, causes the electronic device 400 to perform the method as described in one or more of the embodiments above. It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all of the preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, such as a division of units, merely a division of logic functions, and there may be additional divisions in actual implementation, such as multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some service interface, device or unit indirect coupling or communication connection, electrical or otherwise.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable memory. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in whole or in part in the form of a software product stored in a memory, comprising several instructions for causing a computer device (which may be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method of the various embodiments of the present application. And the aforementioned memory includes: various media capable of storing program codes, such as a U disk, a mobile hard disk, a magnetic disk or an optical disk.
The foregoing is merely exemplary embodiments of the present disclosure and is not intended to limit the scope of the present disclosure. That is, equivalent changes and modifications are contemplated by the teachings of this disclosure, which fall within the scope of the present disclosure. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure.
This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a scope and spirit of the disclosure being indicated by the claims.

Claims (10)

1. A display control method based on a light strip, which is applied to a main controller, wherein the main controller is in communication connection with a plurality of sub-controllers, the method comprising:
acquiring a target display pattern required to be displayed at the current time of the target pattern;
matching the target display pattern into a lamp strip array, and determining display color information currently required to be displayed by each lamp bead in the lamp strip array, wherein the lamp strip array comprises a plurality of rows of lamp strips, each lamp strip comprises a plurality of lamp beads, and each sub-controller is used for respectively and independently controlling each lamp bead;
dividing each lamp bead into a plurality of lamp bead display groups according to the display color information, wherein each lamp bead display group displays the same target color;
calculating each display time length required by each lamp bead display group to completely display the target color;
And controlling the corresponding sub-controllers in the lamp bead display groups to send display starting instructions to the lamp beads in the lamp bead display groups based on the display time lengths, so that the lamp beads in the target lamp strip array are synchronously displayed.
2. The method of claim 1, wherein the matching the target display pattern to the array of light bands, determining display color information currently required to be displayed by each light bead in the array of light bands, comprises:
acquiring a coordinate layout diagram corresponding to the lamp strip array;
and matching each pixel in the display pattern to each lamp bead in the coordinate layout diagram, and determining display color information corresponding to the pixel which is required to be displayed currently by each lamp bead in the lamp strip array.
3. The method of claim 1, wherein the dividing each of the beads into a plurality of bead display groups according to each of the display color information, the bead display groups displaying the same target color, comprises:
obtaining display color information to be displayed by each lamp bead, wherein the color information comprises RGB color values;
dividing the lamp beads with the same RGB color value into a lamp bead display group to obtain a plurality of lamp bead display groups, so that each lamp bead display group displays the same target color, wherein the target color is the color corresponding to the RGB color value.
4. The method of claim 3, wherein calculating the display time period required for each of the bead display groups to fully display the target color comprises:
acquiring RGB color values corresponding to the target colors to be displayed in each lamp bead display group;
and determining each display time length required by each lamp bead display group to completely display the target color according to the RGB color values and the relation between the preset RGB color values and the lamp bead complete display time length.
5. The method of claim 1, wherein the controlling the sub-controller in each bead display group to send an on display command to each bead in the bead display group based on each display time period comprises:
acquiring a target lamp bead display group with the longest display duration from the display duration;
calculating the compensation time length of each display time length and the target display time length;
controlling the corresponding sub-controller in the target lamp bead display group to send a first starting display instruction to each lamp bead in the target lamp bead display group;
after the first display starting instruction is sent and the compensation time length is reached, the sub-controllers corresponding to the lamp bead display groups are respectively controlled to send an opening display instruction to each lamp bead in the lamp bead display groups, so that each lamp bead in the target lamp strip array is synchronously displayed.
6. The method of claim 1, wherein after the sub-controller corresponding to each of the bead display groups sends an on display command to each of the beads in the bead display groups, further comprising:
acquiring the environment brightness of the lamp strip array sent by the light sensor and a preset target brightness range of the lamp strip array;
calculating target brightness according to the environment brightness and the target brightness range;
and controlling each lamp bead in the lamp strip array to display according to the target brightness.
7. The method of claim 6, wherein calculating the target brightness from the ambient brightness and the target brightness range comprises:
calculating the proportion of the ambient brightness in the measuring range of the light sensor according to the first calculation formula;
acquiring the lowest brightness and the highest brightness of the target brightness range;
bringing the ratio, the lowest brightness and the highest brightness into a second calculation formula to calculate the target brightness;
the first calculation formula is as follows: k= (L-T) min )/(T max -T min ) The K is a proportion, L is ambient brightness, T min For the lowest measured brightness of the measuring range of the light sensor, T max The highest measured brightness for the light sensor measurement range;
the second calculation formula is as follows: w=l min +(L max - L min ) K, wherein W is the target brightness, and L is min L is the lowest luminance of the target luminance range max Is the highest luminance of the target luminance range.
8. A light strip based display control system for a main controller in communication with a plurality of sub-controllers, the system comprising:
the target display pattern acquisition module (1) is used for acquiring a target display pattern required to be displayed at the current time of the target pattern;
a display color information determining module (2) for matching the target display pattern to a lamp strip array to determine display color information currently required to be displayed by each lamp bead in the lamp strip array, wherein the lamp strip array comprises a plurality of rows of lamp strips, each lamp strip comprises a plurality of lamp beads, and each sub-controller is used for respectively and independently controlling each lamp bead;
the lamp bead display group dividing module (3) is used for dividing each lamp bead into a plurality of lamp bead display groups according to each display color information, and the lamp bead display groups display the same target color;
A display duration calculation module (4) for calculating each display duration required by each bead display group to completely display the target color;
and the control display module (5) is used for controlling the corresponding sub-controllers in the lamp bead display groups to send an opening display instruction to each lamp bead in the lamp bead display groups based on the display time length so as to synchronously display each lamp bead in the target lamp strip array.
9. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a processor, a memory and a transceiver, the memory configured to store instructions, the transceiver configured to communicate with other devices, the processor configured to execute the instructions stored in the memory, to cause the electronic device to perform the method of any one of claims 1-7.
CN202311298026.4A 2023-10-07 2023-10-07 Display control method, system, medium and equipment based on lamp strip Pending CN117238236A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311298026.4A CN117238236A (en) 2023-10-07 2023-10-07 Display control method, system, medium and equipment based on lamp strip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311298026.4A CN117238236A (en) 2023-10-07 2023-10-07 Display control method, system, medium and equipment based on lamp strip

Publications (1)

Publication Number Publication Date
CN117238236A true CN117238236A (en) 2023-12-15

Family

ID=89084222

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311298026.4A Pending CN117238236A (en) 2023-10-07 2023-10-07 Display control method, system, medium and equipment based on lamp strip

Country Status (1)

Country Link
CN (1) CN117238236A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117793987A (en) * 2024-02-23 2024-03-29 攀枝花镁森科技有限公司 Method for controlling display of lamp strip, lamp strip and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117793987A (en) * 2024-02-23 2024-03-29 攀枝花镁森科技有限公司 Method for controlling display of lamp strip, lamp strip and storage medium
CN117793987B (en) * 2024-02-23 2024-04-26 攀枝花镁森科技有限公司 Method for controlling display of lamp strip, lamp strip and storage medium

Similar Documents

Publication Publication Date Title
RU2622405C2 (en) Light source remote control
CN110024020A (en) Display device, calibrating installation and its calibration method
US20180342224A1 (en) Electronic device, and display panel device correction method and system thereof
CN107680556B (en) A kind of display power-economizing method, device and display
CN106030665B (en) Realistic colour is created for the virtual objects in augmented reality environment
US9947275B1 (en) Real-time white point correction for tablet display
CN117238236A (en) Display control method, system, medium and equipment based on lamp strip
CN110192241A (en) Control the brightness of emissive display
JP2010524046A5 (en)
CN106463089A (en) User interface and method for directly setting display white point
JP2018510485A (en) Color picker
KR20150006723A (en) Method and apparatus for controlling optical quantities of organic light emission display device
CN108432344A (en) Controller for controlling light source and its method
KR20200015863A (en) Device and method for controlling color gamut, display device including the device for controlling color gamut
US20130293599A1 (en) Electronic device and chromaticity adjustment method
US9907143B2 (en) Lighting control device, lighting system, and program
CN115989720A (en) Object origin based illumination effect rendering method for rendering object
JP6624541B2 (en) Light projection device and illumination device using the same
CN110853578B (en) Voltage compensation method and device
US10002571B1 (en) Liquid crystal display incorporating color-changing backlight
US10354614B2 (en) Technique for color management for a set of display devices
EP3604949A1 (en) Equipment apparatus management device
EP3387879B1 (en) Deriving a white-point for use in a multi-color light scene
CN115989721A (en) Controlling an array of light segments based on user interaction with a virtual representation in a color space
JP2013196475A (en) Projection device, projection method and program

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