A control method of an LED light bar and an LED light bar system
Patent Information
- Application Number
- CN202211326709.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-27
- Publication Date
- 2026-08-28
- Estimated Expiration
- 2042-10-27
AI Technical Summary
[0003]现有的流光溢彩技术主要存在两方面的限制
[0017]本发明提供的LED灯条的控制方法通过获取选定区域,在选定区域内确定目标像素,使选定区域内的目标像素的颜色在LED灯条上重现,并且还根据显示区域的清晰度对LED灯条发光点的密度进行调节,从而使LED灯条的显色更准确地模拟显示屏的画面显示。本发明既可以应用于流光溢彩技术,提升沉浸式体验;此外,LED灯条还可以独立于显示屏设置,应用于如舞厅、K歌房等,作为气氛灯的控制,使灯光的变化紧随屏幕显示的内容,充分利用了显示作为显示源,丰富了气氛灯的控制,提升了小空间内的沉浸式体验。
Smart Images

Figure CN115633435B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of light source emission control technology, and in particular to a control method and system for LED light strips. Background Technology
[0002] Ambilight technology can provide different colors for the TV wall according to specific TV scenarios, creating a wide field of view like a big screen, and providing an immersive viewing experience.
[0003] Existing Ambilight technology has two main limitations. First, it is primarily used for display background walls, but due to the obvious bezels of the screen, the color changes of the background wall cannot blend seamlessly with the content displayed, resulting in a rather jarring overall effect. Second, the background light achieves color rendering of the screen's background area by illuminating the visible area. When viewed from the front of the screen, the light source is invisible. It utilizes the diffuse reflection of the light source on the background wall to create a hazy, atmospheric light effect surrounding the display area. However, when the image displayed on the screen is detailed, the hazy background light cannot blend well with the image, resulting in a less than ideal immersive viewing experience.
[0004] The challenge for Ambilight technology is how to better provide an immersive experience. Summary of the Invention
[0005] Therefore, it is necessary to provide a control method and system for LED light strips to address the aforementioned problems.
[0006] The present invention is implemented as follows: a control method for an LED light strip, the control method for the LED light strip comprising:
[0007] Get the selected area;
[0008] The target pixel is obtained by identifying the pixel points corresponding to the LED light strip within the selected area;
[0009] The LED light strip color is controlled based on the color of the target pixel.
[0010] Determine the sharpness of the selected area;
[0011] The density of LED light strip light points is controlled according to the clarity of the selected area;
[0012] Dynamically update the color display content and light-emitting point density of the LED light strip.
[0013] In one embodiment, the present invention provides an LED light strip system, the LED light strip system comprising:
[0014] The display screen is used to display images;
[0015] A computer device connected between the display screen and the LED light strip, for executing the LED light strip control method as described in this invention;
[0016] LED light strips, controlled by the computer device, are used to display the color of the target pixel.
[0017] The LED light strip control method provided by this invention obtains a selected area, determines target pixels within the selected area, and reproduces the color of the target pixels within the selected area on the LED light strip. Furthermore, it adjusts the density of the LED light strip's light-emitting points according to the clarity of the display area, thereby making the color rendering of the LED light strip more accurately simulate the image displayed on the screen. This invention can be applied to ambiguous lighting technology to enhance the immersive experience; in addition, the LED light strip can be set independently of the display screen and applied in places such as dance halls and karaoke rooms as ambient lighting control, allowing the lighting changes to closely follow the content displayed on the screen. This fully utilizes the display as the display source, enriches the control of ambient lighting, and enhances the immersive experience in small spaces. Attached Figure Description
[0018] Figure 1 A flowchart illustrating a control method for an LED light strip as provided in one embodiment;
[0019] Figure 2 A structural block diagram of an LED light strip system provided in one embodiment;
[0020] Figure 3 An internal structural block diagram of a computer device provided in one embodiment. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0022] It is understood that the terms "first," "second," etc., used in this invention may be used to describe various elements herein, but unless specifically stated otherwise, these elements are not limited by these terms. These terms are used only to distinguish one element from another. For example, without departing from the scope of this invention, a first script may be referred to as a second script, and similarly, a second script may be referred to as a first script.
[0023] like Figure 1 As shown, in one embodiment, a method for controlling an LED light strip is proposed, which may specifically include the following steps:
[0024] Get the selected area;
[0025] The target pixel is obtained by identifying the pixel points corresponding to the LED light strip within the selected area;
[0026] The LED light strip color is controlled based on the color of the target pixel.
[0027] Determine the sharpness of the selected area;
[0028] The density of LED light strip light points is controlled according to the clarity of the selected area;
[0029] Dynamically update the color display content and light-emitting point density of the LED light strip.
[0030] In this embodiment, the selected area refers to the display area on the screen. The selected area can be selected by using a mouse or a touch screen. In addition, for the linear area, the selection can also be achieved by sliding the mouse or a touch point on the screen to select the sliding path, which is the linear selected area.
[0031] In this embodiment, after the selected area is determined, further processing is required to make the pixels in the selected area correspond to the light-emitting points on the LED light strip. For the same type of selected area, the way to obtain the target pixel from the selected area is different.
[0032] In this embodiment, the LED light strips are color-controlled based on the color of the target pixel. This allows the lines of the image displayed on the screen to be projected onto a wall when multiple LED light strips are arranged side-by-side. In small spaces, this creates a strong sense of immersion and enhances the viewing experience. When applied to the Ambilight technology, it effectively expands the screen area, creating a unique visual effect. In this embodiment, controlling the LED light strips based on the color of the target pixel is not simply a one-to-one reproduction of the target pixel's color; this application also includes adjustments to sharpness and the density of the light-emitting points.
[0033] In this embodiment, the density of the LED light strip's light-emitting points is adjusted by the clarity adjustment, making the LED light strip's color display closer to the screen image. This improves the integration between the LED light strip's color display and the screen's color display, reduces abruptness, and makes the transition more natural.
[0034] The LED light strip control method provided by this invention obtains a selected area, determines target pixels within the selected area, and reproduces the color of the target pixels within the selected area on the LED light strip. Furthermore, it adjusts the density of the LED light strip's light-emitting points according to the clarity of the display area, thereby making the color rendering of the LED light strip more accurately simulate the image displayed on the screen. This invention can be applied to ambiguous lighting technology to enhance the immersive experience; in addition, the LED light strip can be set independently of the display screen and applied in places such as dance halls and karaoke rooms as ambient lighting control, allowing the lighting changes to closely follow the content displayed on the screen. This fully utilizes the display as the display source, enriches the control of ambient lighting, and enhances the immersive experience in small spaces.
[0035] In a preferred embodiment of the present invention, determining the target pixel point by identifying the pixel point corresponding to the LED light strip within the selected area includes:
[0036] Determine the first and second boundaries of the selected area, wherein the first and second boundaries are parallel to each other;
[0037] Take the midpoint of the first boundary as the starting point, and make one end of the LED light strip shape model coincide with the starting point;
[0038] Stretch or compress the shape model of the LED light strip so that its other end falls on the second boundary;
[0039] The pixels through which the shape model of the LED light strip passes within the selected area are taken as the target pixels.
[0040] In this embodiment, the above refers to a frame-shaped selection area. For a frame-shaped selection area, there are two sets of opposite sides; the first boundary and the second boundary can be any set of opposite sides. The shape model of the LED strip is a curve obtained based on the actual arrangement of the LED strip. The distance between the two endpoints of this curve can be compressed to change the overall proportion of the curve in one direction. By compressing or stretching the distance between two points, the two endpoints of the shape model can fall onto the two boundaries respectively. In this embodiment, as a simple implementation, the shape model can be a straight line.
[0041] In a preferred embodiment of the present invention, for a linear selection area, determining the target pixel point by identifying the pixel point corresponding to the LED light strip within the selected area includes:
[0042] Get the consecutive pixels that the selected area passes through;
[0043] Make the starting pixel of the continuous pixels correspond to the first light of the LED strip, and make the ending pixel of the continuous pixels correspond to the tail light of the LED strip;
[0044] Based on the ratio of the number of consecutive pixels to the number of LED light strip light points, a number of pixels are selected in equal proportions from the consecutive pixels as the target pixels.
[0045] In this embodiment, consecutive pixels refer to adjacent pixels that are close to each other. Based on the ratio of the number of consecutive pixels to the number of LED light strip light-emitting points, a certain number of pixels are selected proportionally from the consecutive pixels as the target pixels. For example, if there are 100 consecutive pixels and 11 LED light strip light-emitting points, then one pixel is selected every 10 pixels as the target pixel, and so on. When the number of consecutive pixels is not an integer multiple of the number of LED light strip light-emitting points, an approximate value can be used.
[0046] In a preferred embodiment of the present invention, determining the display mode of the selected area includes:
[0047] Desaturate the selected area to obtain a grayscale image of the selected area;
[0048] Calculate the average gray level of pixels within the selected area;
[0049] Calculate the sum of the squares of the differences between the grayscale value of each pixel and the average grayscale value;
[0050] The results were standardized.
[0051] Sharpness is determined by the ratio of the value obtained from standardization to the theoretical upper limit.
[0052] In this embodiment, a commonly used algorithm for RGB to grayscale conversion is:
[0053] Gray = R * 0.299 + G * 0.587 + B * 0.11
[0054] In practical applications, it's necessary to avoid slow floating-point operations, so integer algorithms are required. Since the coefficients are all 3 digits of precision, they can be magnified by a factor of 1000 to achieve integer operations:
[0055] Gray=(R*299+G*587+B*114+500) / 1000
[0056] RGB values are typically 8 bits precise, but are magnified 1000 times to obtain a 32-bit integer; 500 is added to the end for rounding. Additionally, since this algorithm requires 32-bit operations, another variation of the formula can be used:
[0057] Gray=(R*30+G*59+B*11+50) / 100
[0058] In this embodiment, the grayscale value of the set point (x, y) is f(x, y), and the average grayscale of the pixels within the selected area is calculated by the following formula:
[0059]
[0060]
[0061] in: is the average gray level; Nx and Ny are the number of pixels in the horizontal and vertical directions, respectively; S is the result of normalization.
[0062] In this embodiment, the maximum value of S is 255. 2 For example, if sharpness is divided into two levels, and S = 100 is less than half of the maximum value, the sharpness can be determined as level one, or the ratio 100 / 255 can be used. 2 express.
[0063] In a preferred embodiment of the present invention, controlling the density of LED light strip light-emitting points according to the clarity of the selected area includes:
[0064] The LED light strip's light-emitting points are divided into several sharpness control groups, and each sharpness control group consists of several adjacent light-emitting points;
[0065] The system is divided into sharpness gradients, with each gradient corresponding to a different number of LED light strips. The higher the sharpness, the more LED light strips there are. The number of sharpness gradients is the same as the number of light strips within each sharpness control group.
[0066] Determine the sharpness gradient of the selected area;
[0067] The system controls the operation of a corresponding number of luminous points within each sharpness control group based on the sharpness gradient of the selected area.
[0068] In this embodiment, the sharpness gradient of the selected area can be determined by S / 255. 2 The ratios are determined as follows: below 0.25 is the first gradient, 0.25 to 0.5 is the second gradient, 0.5 to 0.75 is the third gradient, and 0.75 to 1 is the fourth gradient. The boundary values of these ranges include the upper boundary but not the lower boundary. In this example, each sharpness control group consists of four adjacent luminous points, and four luminous points form one sharpness control group.
[0069] In this example, for the first gradient, 1 / 4 of the LED strip's light-emitting points are active; and so on.
[0070] In a preferred embodiment of the present invention, the step of controlling the density of LED light strip light-emitting points according to the clarity of the selected area further includes:
[0071] If the clarity is low, the color of the light-emitting points of the LED light strip will be blurred.
[0072] If high clarity is required, the color of the light-emitting points of the LED light strip will be enhanced.
[0073] In this embodiment, when the clarity is low, the emitted color needs to be blurred; while when the clarity is high, the emitted color needs to be sharpened.
[0074] In a preferred embodiment of the present invention, the step of blurring the color of the light-emitting points of the LED light strip if the clarity is low includes:
[0075] Determine if the sharpness falls into the two lowest gradients. If so, perform blurring according to the following steps:
[0076] Obtain the R, G, and B values of each light-emitting point of the LED light strip;
[0077] The two non-maximum values of R, G, and B at each light-emitting point of the LED light strip are proportionally increased to a value no less than 0.8 times and no more than 1.2 times the first set value.
[0078] Wherein: the first set value is the maximum value among the R value, G value and B value of each light-emitting point.
[0079] This embodiment presents a specific method for fuzzification processing. Specifically, the two values after the increase cannot be equal to the maximum value before the increase.
[0080] In a preferred embodiment of the present invention, if the clarity is high, the color of the light-emitting points of the LED light strip is clarified, including:
[0081] Determine if the sharpness falls into the two highest gradients. If so, perform sharpening processing according to the following steps:
[0082] Obtain the R, G, and B values of each light-emitting point of the LED light strip;
[0083] Subtract the second set value from the R value, G value, and B value of each light-emitting point of the LED light strip;
[0084] Specifically: for the gradient with the lowest sharpness, the second setting value is 0.8 times the minimum value among the corresponding R, G, and B values of the luminous point; for the gradient with the second lowest sharpness, the second setting value is 0.4 times the minimum value among the corresponding R, G, and B values of the luminous point.
[0085] In this embodiment, a specific method for sharpening is given. Through the above processing, the color saturation of the light-emitting point is improved. By utilizing the diffuse reflection of light, this invention creatively uses a saturation processing method to change the sharpness / blurriness.
[0086] In a preferred embodiment of the present invention, each light-emitting point of the LED light strip is composed of lamps with red, blue and green light.
[0087] In this embodiment, this light source achieves color rendering by controlling the proportion of three colors of light, which is a direct use of existing hardware.
[0088] This invention also provides an LED light strip system, the LED light strip system comprising:
[0089] The display screen is used to display images;
[0090] A computer device connected between the display screen and the LED light strip, used to execute the LED light strip control method as described in the embodiments of the present invention;
[0091] LED light strips, controlled by the computer device, are used to display the color of the target pixel.
[0092] In this embodiment, the display screen can be a television, tablet computer, karaoke machine, mobile phone, etc. This invention determines a selected area on the display screen and controls the corresponding light-emitting points of the LED light strips to operate based on the color of the target pixels within that area. In this embodiment, the LED light strips can be arranged in layers along the edge of the display screen or on the background behind the display screen, or they can be independently installed in places such as karaoke bars or dance halls as ambient lighting strips. By arranging multiple strips side-by-side, the displayed image can be roughly replicated, bringing a unique immersive experience.
[0093] Figure 3 An internal structural diagram of a computer device in one embodiment is shown. This computer device is used for… Figure 2 The LED light strip system shown is an example. Figure 3As shown, the computer device includes a processor, memory, network interface, input device, and display screen connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the LED light strip control method provided in this embodiment of the invention. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the LED light strip control method provided in this embodiment of the invention. The display screen of the computer device can be a liquid crystal display screen or an e-ink display screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, a trackball, or a touchpad provided on the casing of the computer device, or an external keyboard, touchpad, or mouse, etc.
[0094] Those skilled in the art will understand that Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0095] In one embodiment, a computer device is provided, the computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, performs the following steps:
[0096] Get the selected area;
[0097] The target pixel is obtained by identifying the pixel points corresponding to the LED light strip within the selected area;
[0098] The LED light strip color is controlled based on the color of the target pixel.
[0099] Determine the sharpness of the selected area;
[0100] The density of LED light strip light points is controlled according to the clarity of the selected area;
[0101] Dynamically update the color display content and light-emitting point density of the LED light strip.
[0102] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, causes the processor to perform the following steps:
[0103] Get the selected area;
[0104] The target pixel is obtained by identifying the pixel points corresponding to the LED light strip within the selected area;
[0105] The LED light strip color is controlled based on the color of the target pixel.
[0106] Determine the sharpness of the selected area;
[0107] The density of LED light strip light points is controlled according to the clarity of the selected area;
[0108] Dynamically update the color display content and light-emitting point density of the LED light strip.
[0109] It should be understood that although the steps in the flowcharts of the various embodiments of the present invention are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the various embodiments may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least a portion of the sub-steps or stages of other steps.
[0110] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0111] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0112] The embodiments described above are merely illustrative of several implementations of the present invention, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of the present invention, and these modifications and improvements all fall within the scope of protection of the present invention. Therefore, the scope of protection of this patent should be determined by the appended claims.
Claims
1. A control method for an LED light strip, characterized in that, The control method for the LED light strip includes: Get the selected area; The target pixel is obtained by identifying the pixel points corresponding to the LED light strip within the selected area; The LED light strip color is controlled based on the color of the target pixel. Determine the sharpness of the selected area; The density of LED light strip light points is controlled according to the clarity of the selected area; Dynamically update the color display content and light-emitting point density of LED light strips; Determining the sharpness of the selected area includes: Desaturate the selected area to obtain a grayscale image of the selected area; Calculate the average gray level of pixels within the selected area; Calculate the sum of the squares of the differences between the grayscale value of each pixel and the average grayscale value; The results were standardized. Sharpness is determined by the ratio of the value obtained from standardization to the theoretical upper limit; The method of controlling the density of LED light strip light points based on the clarity of the selected area includes: The LED light strip's light-emitting points are divided into several sharpness control groups, and each sharpness control group consists of several adjacent light-emitting points; The system is divided into sharpness gradients, with each gradient corresponding to a different number of LED light strips. The higher the sharpness, the more LED light strips there are. The number of sharpness gradients is the same as the number of light strips within each sharpness control group. Determine the sharpness gradient of the selected area; The system controls the operation of a corresponding number of luminous points within each sharpness control group based on the sharpness gradient of the selected area.
2. The control method for LED light strips according to claim 1, characterized in that, The step of determining the target pixel point by identifying the pixel point corresponding to the LED light strip within the selected area includes: Determine the first and second boundaries of the selected area, wherein the first and second boundaries are parallel to each other; Take the midpoint of the first boundary as the starting point, and make one end of the LED light strip shape model coincide with the starting point; Stretch or compress the shape model of the LED light strip so that its other end falls on the second boundary; The pixels through which the shape model of the LED light strip passes within the selected area are taken as the target pixels.
3. The control method for LED light strips according to claim 1, characterized in that, For linear selection, determining the target pixel within the selected area corresponding to the LED light strip includes: Get the consecutive pixels that the selected area passes through; Make the starting pixel of the continuous pixels correspond to the first light of the LED strip, and make the ending pixel of the continuous pixels correspond to the tail light of the LED strip; Based on the ratio of the number of consecutive pixels to the number of LED light strip light points, a number of pixels are selected in equal proportions from the consecutive pixels as the target pixels.
4. The control method for LED light strips according to claim 1, characterized in that, The method of controlling the density of LED light strip light points according to the clarity of the selected area further includes: If the clarity is low, the color of the light-emitting points of the LED light strip will be blurred. If high clarity is required, the color of the light-emitting points of the LED light strip will be enhanced.
5. The control method for LED light strips according to claim 4, characterized in that, If the clarity is low, the color of the LED light strip's light-emitting points will be blurred, including: Determine if the sharpness falls into the two lowest gradients. If so, perform blurring according to the following steps: Obtain the R, G, and B values of each light-emitting point of the LED light strip; The two non-maximum values of R, G, and B at each light-emitting point of the LED light strip are proportionally increased to a value no less than 0.8 times and no more than 1.2 times the first set value. Wherein: the first set value is the maximum value among the R value, G value and B value of each light-emitting point.
6. The control method for LED light strips according to claim 4, characterized in that, If the clarity is high, the color of the light-emitting points of the LED light strip is clarified, including: Determine if the sharpness falls into the two highest gradients. If so, perform sharpening processing according to the following steps: Obtain the R, G, and B values of each light-emitting point of the LED light strip; Subtract the second set value from the R value, G value, and B value of each light-emitting point of the LED light strip; Specifically: for the gradient with the lowest sharpness, the second setting value is 0.8 times the minimum value among the corresponding R, G, and B values of the luminous point; for the gradient with the second lowest sharpness, the second setting value is 0.4 times the minimum value among the corresponding R, G, and B values of the luminous point.
7. The control method for LED light strips according to claim 1, characterized in that, Each light-emitting point of the LED light strip is composed of red, blue, and green light bulbs.
8. An LED light strip system, characterized in that, The LED light strip system includes: The display screen is used to display images; A computer device connected between the display screen and the LED light strip, for executing the LED light strip control method as described in any one of claims 1-7; LED light strips, controlled by the computer device, are used to display the color of the target pixel.
Citation Information
Patent Citations
Image photographing method and mobile terminal
CN107172296A
Light control method based on boundary recognition, controller, module and storage medium
CN113630932A
Atmosphere lamp adjusting method and device based on picture, intelligent terminal and storage medium
CN114040249A