Light strip lighting control method, device, equipment and storage medium

By acquiring the screen image of the display device and adjusting the sequence of the LED strip control data, the problem of fixed LED strip lighting direction was solved, achieving matching between the LED strip and the screen content, thus improving adaptability and user experience.

CN114867160BActive Publication Date: 2025-11-28SHENZHEN SKYWORTH RGB ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210492286.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-07
Publication Date
2025-11-28
Estimated Expiration
2042-05-07

AI Technical Summary

Technical Problem

In existing technologies, the lighting direction and control data arrangement of light strips are fixed and cannot be adjusted according to actual needs, resulting in low installation adaptability.

Method used

By receiving the LED strip lighting control information, the system obtains the current screen image of the display device, determines the target lighting direction based on the image and control information, and adjusts the order of the LED strip control data to match user needs.

Benefits of technology

This achieves matching between the LED strip display effect and the screen content, improving the installation compatibility and user experience of the LED strip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114867160B_ABST
    Figure CN114867160B_ABST
Patent Text Reader

Abstract

The application discloses a kind of light strip lighting control method, device, equipment and storage medium, belong to light control technical field.The method comprises: receiving light strip lighting control information, obtains current screen image;According to light strip lighting control information and current screen image, obtain multiple light strip control data;According to light strip lighting control information, determine the target light-on direction of corresponding light strip;According to target light-on direction, multiple light strip control data is sent to the light strip controller of light strip according to the control order corresponding to target light-on direction, to control light strip complete lighting operation.The application can arrange the multiple light strip control data obtained according to the light-on direction required by user when lighting control is carried out on light strip according to corresponding control order, so that the display effect of light strip matches the content displayed on screen, thereby improving the adaptability of light strip.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of light control, and in particular to a light strip lighting control method, device, equipment and storage medium. BACKGROUND

[0002] In related technologies, relevant control data can be transmitted to the light strip through wireless connection between the light strip and the display device, so that the light strip completes corresponding lighting operation.

[0003] However, the lighting direction of the light strip in the current stage is determined by the connection relationship among the display device, the power socket and the light strip controller, and once the installation is completed, the lighting direction is fixed, and the arrangement order of the corresponding multiple control data is also fixed, which cannot be adjusted according to actual needs, so the installation adaptability of the light strip is low. SUMMARY

[0004] The main purpose of the present application is to provide a light strip lighting control method, device, equipment and storage medium, which aims to solve the technical problem of low installation adaptability of the light strip in the prior art.

[0005] According to a first aspect of the present application, a light strip lighting control method is provided, the method comprising:

[0006] If the light strip lighting control information is received, the current screen image of the corresponding display device is obtained;

[0007] According to the light strip lighting control information and the current screen image, a plurality of light strip control data corresponding thereto is obtained;

[0008] According to the light strip lighting control information, the target lighting direction of the corresponding light strip is determined;

[0009] According to the target lighting direction, the plurality of light strip control data is sent to the light strip controller of the light strip in a control order corresponding to the target lighting direction, so that the light strip controller controls the light strip to complete the lighting operation according to the light strip control data.

[0010] Optionally, the plurality of light strip control data corresponding to the light strip lighting control information and the current screen image is obtained, comprising:

[0011] According to the light strip lighting control information, the installation mode of the light strip is determined;

[0012] The sub-image corresponding to the installation mode is extracted from the current screen image, and the sub-image is divided into a plurality of image partitions corresponding to the number of lamp beads in the light strip;

[0013] For any of the image partitions, obtain the average pixel value corresponding to all pixel points in the image partition;

[0014] The pixel value averages of the plurality of image partitions are used as corresponding lamp strip control data.

[0015] Optionally, the method further comprises:

[0016] determining whether the target lighting direction is consistent with a preset direction;

[0017] If the target lighting direction is consistent with the preset direction, the lamp strip control data is encapsulated as corresponding first lamp strip control data packets, and the first lamp strip control data packets are sent to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the first lamp strip control data packets.

[0018] Optionally, after determining whether the target lighting direction is consistent with a preset direction, the method comprises:

[0019] If the target lighting direction is opposite to the preset direction, a plurality of data pointers corresponding to the lamp strip control data are determined.

[0020] The lamp strip control data is arranged in reverse order using the plurality of data pointers.

[0021] The lamp strip control data arranged in reverse order is encapsulated as corresponding second lamp strip control data packets, and the second lamp strip control data packets are sent to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the second lamp strip control data packets.

[0022] Optionally, before determining the installation mode of the lamp strip according to the lamp strip lighting control information, the method further comprises:

[0023] obtaining hue data, saturation data, and brightness data corresponding to the current screen image;

[0024] determining image color data of the current screen image according to the hue data, the saturation data, and the brightness data;

[0025] determining whether the maximum color proportion of the current screen image is greater than a preset threshold according to the image color data;

[0026] If the maximum color proportion is less than or equal to the preset threshold, the installation mode of the light strip is determined according to the light strip lighting control information.

[0027] Optionally, after the maximum color proportion of the current screen image is determined according to the image color data, the method further comprises:

[0028] If the maximum color proportion is greater than the preset threshold, the color data corresponding to the maximum color proportion is taken as the light strip control data.

[0029] Optionally, if the light strip lighting control information is received, the current screen image of the corresponding display device is acquired, comprising:

[0030] If the light-on direction selection information input by the user is received, the target light-on direction is determined according to the light-on direction selection information.

[0031] The light strip lighting control information is generated based on the target light-on direction, and the current screen image of the corresponding display device is acquired.

[0032] According to a second aspect of the present application, a light strip lighting control device is provided, comprising:

[0033] An image acquisition module is configured to acquire the current screen image of the corresponding display device if the light strip lighting control information is received.

[0034] A data generation module is configured to obtain a plurality of light strip control data corresponding to the light strip lighting control information and the current screen image.

[0035] A direction determination module is configured to determine the target light-on direction of the corresponding light strip according to the light strip lighting control information.

[0036] A light strip control module is configured to send the plurality of light strip control data to the light strip controller of the light strip according to a control sequence corresponding to the target light-on direction, so that the light strip controller controls the light strip to complete the lighting operation according to the light strip control data.

[0037] According to a third aspect of the present application, a light strip lighting control device is provided, comprising a memory, a processor, and a light strip lighting control program stored in the memory and executable on the processor, wherein the processor implements each step described in any one of the possible implementation manners of the first aspect when executing the light strip lighting control program.

[0038] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a light strip lighting control program is stored, wherein the light strip lighting control program, when executed by a processor, implements the steps described in any possible implementation of the first aspect.

[0039] This invention provides a method, apparatus, device, and storage medium for controlling LED strip lighting. The method involves receiving LED strip lighting control information through the LED strip lighting control device and acquiring the current screen image. Based on the LED strip lighting control information and the current screen image, multiple LED strip control data are obtained. The target lighting direction for the corresponding LED strip is determined based on the LED strip lighting control information. According to the target lighting direction, the multiple LED strip control data are sent to the LED strip controller in a control sequence corresponding to the target lighting direction to control the LED strip to complete the lighting operation.

[0040] When controlling the illumination of a light strip, this invention can arrange multiple light strip control data in a corresponding control order according to the user's desired lighting direction. Since one light strip control data corresponds to one LED in the light strip, the control order of the LEDs in the light strip can be changed by changing the order of the light strip control data. This allows the light strip to be illuminated according to actual needs, thereby matching the display effect of the light strip with the content displayed on the screen and improving the adaptability of the light strip. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0042] Figure 1 This is a schematic diagram of the structure of the LED strip lighting control device in the hardware operating environment involved in the embodiments of the present invention;

[0043] Figure 2 This is a flowchart illustrating the first embodiment of the LED strip lighting control method of the present invention;

[0044] Figure 3 For the present invention Figure 2 A detailed flowchart illustrating the steps in S202;

[0045] Figure 4 For the present invention Figure 2 A detailed flowchart illustrating the steps in S204;

[0046] Figure 5 For the present invention Figure 3 A flowchart illustrating the steps preceding A10;

[0047] Figure 6 The function module schematic diagram of the lamp strip lighting control device related to the embodiment of the application is shown in the figure;

[0048] Figure 7 The lamp strip schematic diagram of the inverted U-shaped installation and the lighting direction from left to right related to the embodiment of the application is shown in the figure;

[0049] Figure 8 The lamp strip schematic diagram of the inverted U-shaped installation and the lighting direction from right to left related to the embodiment of the application is shown in the figure;

[0050] Figure 9 The lamp strip schematic diagram of the linear installation and the lighting direction from left to right related to the embodiment of the application is shown in the figure;

[0051] Figure 10 The lamp strip schematic diagram of the linear installation and the lighting direction from right to left related to the embodiment of the application is shown in the figure.

[0052] The implementation, functional features and advantages of the application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0053] It should be understood that the specific embodiments described herein are merely intended to explain the application and are not intended to limit the application.

[0054] The main solution of the embodiment of the application is that if the lamp strip lighting control information is received, the current screen image of the corresponding display device is acquired; according to the lamp strip lighting control information and the current screen image, a plurality of pieces of lamp strip control data are obtained; according to the lamp strip lighting control information, the target lighting direction of the corresponding lamp strip is determined; according to the target lighting direction, the plurality of pieces of lamp strip control data are sent to the lamp strip controller of the lamp strip in a control sequence corresponding to the target lighting direction, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the lamp strip control data.

[0055] In the related art, the relevant control data can be transmitted to the lamp strip through the wireless connection between the lamp strip and the display device, so that the lamp strip completes the corresponding lighting operation. However, the lighting direction of the lamp strip is determined by the connection relationship among the display device, the power socket and the lamp strip controller at the present stage, and once the installation is completed, the lighting direction is fixed, and the arrangement sequence of the corresponding plurality of pieces of control data is also fixed, which cannot be adjusted according to the actual demand, so the installation adaptability of the lamp strip is low.

[0056] The application provides a solution for a lamp strip lighting control device, which can arrange the obtained multiple lamp strip control data according to the corresponding control sequence according to the lighting direction required by the user when lighting control is performed on the lamp strip, since one piece of lamp strip control data corresponds to one lamp bead in the lamp strip, the control sequence of the lamp beads in the lamp strip can be changed by changing the sequence of the lamp strip control data, so that the lamp strip can be lit according to the actual requirement, and the display effect of the lamp strip can be matched with the content displayed on the screen, thereby improving the adaptability of the lamp strip.

[0057] To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the protection scope of the present application.

[0058] The "first", "second" in the specification and claims of the embodiments of the present application are used to distinguish similar objects, and do not have to be used to describe a specific sequence or chronological order, and it should be understood that such data can be interchanged under appropriate circumstances, so that the embodiments described herein can be implemented in an order other than those illustrated or described herein.

[0059] Reference Figure 1 , Figure 1 The structure schematic diagram of the lamp strip lighting control device of the hardware running environment related to the embodiment of the present application.

[0060] As Figure 1As shown, the lamp strip lighting control device can include a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection communication between the components. The user interface 1003 can include a display, an input unit such as a keyboard, and can also include a standard wired interface, a wireless interface. The network interface 1004 can optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (WIreless-FIdelity, WI-FI) interface). The memory 1005 can be a high-speed random access memory (RAM), and can also be a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 can also be a storage device independent of the aforementioned processor 1001.

[0061] Those skilled in the art can understand that Figure 1 The structure shown in the figure does not constitute a limitation on the lamp strip lighting control device, and can include more or fewer components than the figure, or combine certain components, or different component arrangements.

[0062] As Figure 1 As shown, the memory 1005 as a storage medium can include an operating system, an image acquisition module, an information processing module, a lamp strip control module, and a lamp strip lighting control program. The information processing module can be further divided into a data generation module and a direction determination module.

[0063] In Figure 1 In the lamp strip lighting control device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the lamp strip lighting control device of the application can be arranged in the lamp strip lighting control device. The lamp strip lighting control device calls the lamp strip lighting control program stored in the memory 1005 through the processor 1001, and executes the lamp strip lighting control method provided by the embodiment of the application.

[0064] Based on the above hardware structure but not limited to the above hardware structure, the application provides a lamp strip lighting control method first embodiment. Referring to Figure 2 , Figure 2 The flowchart of the first embodiment of the lamp strip lighting control method of the application.

[0065] In this embodiment, the method comprises:

[0066] Step S201, if the light strip lighting control information is received, the current screen image of the corresponding display device is acquired;

[0067] In the embodiment, the execution subject is a light strip lighting control device, which can be a television, or a display, a monitor or other display devices, and the embodiment is not limited thereto. The user can input the light strip lighting control information to the light strip lighting control device through a remote control or other means. Taking the television as an example, the user can select to enter the light strip setting interface after turning on the television, and determine to input the following control information according to the actual situation: 1. installation mode, which can be selected to include inverted U-shaped and linear; 2. lighting direction, which can be selected to include from left to right and from right to left; 3. the number of lamp beads, which can be understood that if the installation mode is selected to be inverted U-shaped, it means that the left side, the top and the right side of the television are all provided with light strips (see Figure 7 、 8 ), so the user needs to set the number of lamp beads in these three directions respectively; if the installation mode is selected to be linear, it means that only the top of the television is provided with a light strip (see Figure 9 、 10 ), so the user only needs to set the number of lamp beads in one direction, i.e. the top. That is, the light strip lighting control information in the embodiment is composed of at least the above three parts, and the control of the light strip is completed by the three parts together. Of course, the specific setting content involved in the above control information can be adjusted according to the actual situation, and the embodiment is not limited thereto, for example, the installation mode can also be selected to be positive U-shaped, mouth-shaped, etc.; the lighting direction can also be selected to be clockwise, counterclockwise, etc.; and the corresponding lamp beads to be set can also be the left and right sides, the upper, lower, left and right four sides, etc.

[0068] In particular, since different control data has a one-to-one corresponding relationship with different lamp beads in the lamp strip, and different control data is obtained according to image data of different regions of the display device, the image data of different regions and the different lamp beads also have a one-to-one corresponding relationship, and generally the image data on the leftmost of the display device corresponds to the first lamp bead, the image data on the rightmost of the display device corresponds to the last lamp bead, and so on. Obviously, such a mapping rule is only applicable to the case where the lamp beads are also arranged from left to right, but if the display device is connected to the power supply through the socket located on the right side, and the corresponding lamp strip controller is also located on the right side, then the first lamp bead closest to the lamp strip controller is the rightmost lamp bead. Since the lamp bead closest to the lamp strip controller is generally taken as the first lamp bead, and then arranged in sequence, the order of the lamp beads is from right to left, that is, at this time, the image data on the leftmost will correspond to the lamp bead on the rightmost, and the image data on the rightmost will correspond to the lamp bead on the leftmost, which will inevitably cause the problem that the display effect of the lamp strip is reversed left and right with the content displayed on the screen. Therefore, the adaptability of the lamp strip at the present stage is low, and it cannot be applied to different actual situations.

[0069] Therefore, in order to solve the above problems, the present embodiment adds the setting information of the lighting direction, and the user can select the corresponding lighting direction according to the actual installation mode of the lamp strip relative to the display device, so that the display image of the device and the display effect of the lamp strip can be matched, thereby meeting different needs and improving the adaptability of the lamp strip.

[0070] When the lamp strip lighting control device receives the above lamp strip lighting control information, the lamp strip lighting control device can call the screenshot interface to intercept the content currently displayed on the screen, that is, the above current screen image, and perform subsequent processing.

[0071] In step S202, according to the lamp strip lighting control information and the current screen image, a plurality of corresponding lamp strip control data are obtained.

[0072] After obtaining the above lamp strip lighting control information and the current screen image, the lamp strip lighting control information includes installation mode, lighting direction, number of lamp beads and the like. First, the installation mode can be read out, different processing modes are adopted for different installation modes, and corresponding lamp strip control data is obtained. It can be understood that for the inverted U-shaped installation mode, the left side, top and right side of the display device are all installed with lamp strips, so the left side, top and right side of the current screen image of the display device need to be processed correspondingly, and for the linear installation mode, only the top of the display device is installed with lamp strips, so only the top of the current screen image of the display device needs to be processed correspondingly. Then, the number of lamp beads is determined to determine how many lamp beads need to be controlled to perform lighting operation, and the number of lamp strip control data to be generated is determined correspondingly to obtain the above plurality of lamp strip control data.

[0073] In step S203, the target lighting direction of the corresponding lamp strip is determined according to the lamp strip lighting control information.

[0074] In order to solve the problem that the lamp strip adaptability is low, which may cause the display effect of the lamp strip and the display content of the display device to be mismatched, i.e., the direction is reversed, the lighting direction set by the user can be read from the lamp strip lighting control information in the embodiment, so as to obtain the corresponding target lighting direction. Thus, subsequent processing can be performed according to the target lighting direction, so as to ensure that the plurality of lamp strip control data can control the lamp beads in the lamp strip to light up according to the target lighting direction.

[0075] In step S204, the plurality of lamp strip control data is sent to the lamp strip controller of the lamp strip according to the control order corresponding to the target lighting direction, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the lamp strip control data.

[0076] As described above, the embodiment can perform subsequent processing according to the target lighting direction, so as to ensure that the plurality of lamp strip control data can control the lamp beads in the lamp strip to light up according to the target lighting direction. Specifically, the order of the plurality of lamp strip control data can be adjusted according to the target lighting direction, and the corresponding relationship order between the image corresponding to the plurality of lamp strip control data and the lamp beads is also adjusted, so that the display effect of the lamp strip and the display content of the display device are matched, and the entire lighting operation is completed.

[0077] In the embodiment, not only the light strip can be controlled to display corresponding effect based on the setting of the user and the display image of the display device to achieve the display effect of light changing with shadow, but also the control order of the plurality of light strip control data can be adjusted according to different installation conditions and actual needs, so that the image information corresponding to the light strip control data and the corresponding displayed light beads can be matched, the problem of direction being reversed can be avoided, the user experience is ensured, and the adaptability of the light strip is improved.

[0078] In a specific embodiment, referring to Figure 3 , Figure 3 the detailed flowchart of the step of S202 in the present application Figure 2 , the step of obtaining the corresponding plurality of light strip control data according to the light strip lighting control information and the current screen image comprises:

[0079] S10, determining the installation mode of the light strip according to the light strip lighting control information;

[0080] S20, extracting a sub-image corresponding to the installation mode from the current screen image, and dividing the sub-image into a plurality of image partitions corresponding to the number of light beads in the light strip;

[0081] As described above, for different installation modes, different processing modes are adopted in the embodiment to obtain the corresponding light strip control data.

[0082] Specifically, if the installation mode is inverted U-shaped, as Figure 7 , 8As shown, at this time, the images of the left, right and top three areas need to be processed, in the following manner: call the screenshot interface, intercept the full screen picture and save it as a 1920x1080 picture pic1, for easy processing, the picture data is in ARGB (A is the alpha value, RGB is the RGB color of this pixel point) format, the alpha value can be ignored during processing, and the RGB value is directly processed. Rotate pic1 clockwise by 90 degrees to obtain pic2, and take out the 200-pixel-high content on the top edge of pic2 to obtain a picture pic3 with a resolution of 1080x200 (i.e. the left image in the original picture). According to the number of left LED beads numLeft in the "inverted U-shaped" mode, divide pic3 horizontally into numLeft partitions, and the width of each partition is 1080 / numLeft and the height is 200. Take out the 200-pixel-high content on the top edge of pic1 to obtain a picture pic4 with a resolution of 1920x200 (i.e. the top image in the original picture). According to the number of LED beads numTop in the "linear" mode, divide pic4 horizontally into numTop partitions, and the width of each partition is 1920 / numTop and the height is 200. Rotate pic1 counterclockwise by 90 degrees to obtain pic5, and take out the 200-pixel-high content on the top edge of pic5 to obtain a picture pic6 with a resolution of 1080x200 (i.e. the right image in the original picture). According to the number of right LED beads numRight in the "inverted U-shaped" mode, divide pic6 horizontally into numRight partitions, and the width of each partition is 1080 / numRight and the height is 200.

[0083] If the installation mode is linear, as shown in Figure 9 , 10 At this time, only the image of the top area needs to be processed, in the following manner: call the screenshot interface, intercept the full screen picture and save it as a 1920x1080 picture pic1, for easy processing, the picture data is in ARGB (A is the alpha value, RGB is the RGB color of this pixel point) format, the alpha value can be ignored during processing, and the RGB value is directly processed. Take out the 200-pixel-high content on the top edge of pic1 (i.e. the top image in the original picture) to obtain a picture pic2 with a resolution of 1920x200. According to the number of LED beads num1 in the "linear" mode, divide pic2 horizontally into num1 partitions, and the width of each partition is 1920 / num1 and the height is 200.

[0084] It should be noted that the image resolution involved in the above-described method can be set by the user, but the number of partitions is strictly determined according to the previously set number of beads, so as to ensure that the image partition and the bead have a one-to-one correspondence.

[0085] Step A30, obtaining the average pixel value corresponding to all pixel points in the image partition for any image partition;

[0086] Step A40, taking the average pixel value of the plurality of image partitions as a plurality of corresponding light strip control data.

[0087] As described above, one image partition corresponds to one lamp bead, so the light strip control data obtained from one partition corresponds to controlling one lamp bead. Specifically, first for any image partition, it contains a plurality of pixel points, and the display effect of the lamp bead is essentially the display of different colors, so in order to make the display effect of the light strip match the display content of the display device, it is necessary to make the display color of the lamp bead match the color of the corresponding image partition, and the colors of different pixel points in the image partition are different, that is, the pixel values are different, so the average pixel value of the entire partition is taken as the corresponding light strip control data.

[0088] Specifically, when the above current screen image is obtained, the HSI histogram data of the image can be obtained, where hue H, saturation S and brightness I are collectively referred to as HSI, and the corresponding HSI histogram data includes hue histogram, saturation histogram and brightness histogram. Then the HSI data is converted into corresponding RGB data, that is, pixel value, according to the preset calculation formula.

[0089] Among them, the hue histogram is a 32-order array, which can be represented by hueHist (different chips may have different hue orders), and different colors will be reflected on different orders of the hue histogram. The 32-order hue histogram will average divide the color disc (360°) under a certain brightness plane in the HSI color diagram into 32 angle spaces, such as the 0th order representing from 0° to 11.25°.

[0090] The saturation histogram is also a 32-order array (different chips may have different orders), and the saturation of different colors will be reflected on different orders of the saturation histogram. The 32-order saturation histogram will average divide the saturation from 0% to 100% into 32 levels, such as the 0th order representing the saturation component from 0 to 3.125%. The value of which order is the largest indicates that the saturation of the color with the largest proportion in the picture is in this order.

[0091] The brightness histogram is also a 32-order array (different chips may have different orders), and different brightness will be reflected on different orders of the brightness histogram. The 32-order brightness histogram will average divide the brightness from 0% to 100% into 32 levels, such as the 0th order representing the brightness component from 0 to 3.125%. The value of which order is the largest indicates that the brightness of the color with the largest proportion in the picture is in this order.

[0092] Finally, for any image partition, the mean value of the pixel values of all pixel points in the partition can be determined, and the mean value is taken as the corresponding lamp strip control data. Specifically, for the lamp strip in the inverted U-shaped installation mode, the R / G / B values of all pixel points of each partition divided by the above steps are added respectively to obtain sum, and the sum is divided by the total pixel points of the partition. Among them: the total pixel points of the left edge image partition are: 1080*200 / numLeft; the total pixel points of the top edge image partition are: 1020*200 / numTop; the total pixel points of the right edge image partition are: 1080*200 / numRight. After calculation, the R / G / B average value avgN (N is 1 to numTotal, numTotal is the sum of numLeft+numTop+numRight) of this partition is obtained.

[0093] And for the lamp strip in the linear installation mode, the R / G / B values of all pixel points of each partition divided by the above steps are added respectively to obtain sum1, and the sum1 is divided by the total pixel points of the partition (1920*200 / num1) to obtain the R / G / B average value avgN (N is 1 to num1) of this partition.

[0094] In this embodiment, the corresponding lamp strip control data can be obtained according to the current screen image of the display device and the actual setting of the user, that is, different regions of the screen image, different lamp strip control data and different lamp beads have a one-to-one corresponding relationship, so that the image information corresponding to the lamp strip control data and the corresponding display lamp beads can be matched with each other in the subsequent processing process.

[0095] In a specific embodiment, with reference to Figure 4 , Figure 4 the detailed flowchart of the step of S204 in the present application Figure 2 , the step of sending a plurality of lamp strip control data to the lamp strip controller of the lamp strip according to the control order corresponding to the target light-on direction, so that the lamp strip controller controls the lamp strip to complete the light-on operation according to the lamp strip control data, comprises:

[0096] Step B10, judging whether the target light-on direction is consistent with the preset direction;

[0097] Step B20, if the target light-on direction is consistent with the preset direction, a plurality of lamp strip control data is packaged into corresponding first lamp strip control data packets, and the first lamp strip control data packets are sent to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the light-on operation according to the first lamp strip control data packets.

[0098] Although the above-mentioned processing obtains a plurality of pieces of lamp strip control data corresponding to each of the lamp beads to be lighted in the lamp strip, since the above-mentioned processing is generally performed on each of the partition images in a preset direction (for example, from left to right), the arrangement order of the plurality of pieces of lamp strip control data is also determined accordingly, that is, the first lamp bead is controlled by the control data obtained from the leftmost partition image.

[0099] Therefore, regardless of the installation mode of the inverted U shape or the straight line shape, the default arrangement order of the plurality of pieces of lamp strip control data is correct only when the target light direction is consistent with the preset direction, that is, the lamp strip is required to be lighted from left to right. As shown in Figure 7 、 9 Since the lamp strip controller is located on the left side, the light of the corresponding lamp beads also starts from the left side, so at this time, the plurality of pieces of lamp strip control data only need to be packaged and sent to the lamp strip controller according to the original arrangement order. After the lamp strip controller parses the plurality of pieces of lamp strip control data, the first piece of data corresponds to the leftmost partition image data and controls the first lamp bead on the left side, so that the display effect of the first lamp bead on the left side corresponds to the leftmost partition image data, and the same is true for the other lamp beads, thereby realizing that the display effect of the entire lamp strip can be matched with the entire screen image.

[0100] Step B30, if the target light direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the plurality of pieces of lamp strip control data;

[0101] Step B40, arranging the plurality of pieces of lamp strip control data in reverse order by using the plurality of data pointers;

[0102] Step B50, packaging the plurality of pieces of lamp strip control data arranged in reverse order into corresponding second lamp strip control data packets, and sending the second lamp strip control data packets to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the light operation according to the second lamp strip control data packets.

[0103] If the target light direction is opposite to the preset direction, if the plurality of pieces of lamp strip control data are still packaged and sent to the lamp strip controller according to the default arrangement order, then the light of the lamp strip and the display content of the screen image will be opposite. It is not difficult to understand that if the lamp strip controller is located on the right side, the target light direction is required to be from right to left. Referring to Figure 8 、 10If the arrangement order of the plurality of lamp strip control data is shown as above, but corresponds to the arrangement order of the image partitions from left to right, then the first lamp strip control data, i.e. the control data corresponding to the leftmost partition image will be sent to the first lamp bead on the right, and so on, that is, the display content of the leftmost part of the screen will correspond to the rightmost lamp bead, and the display content of the rightmost part of the screen will correspond to the leftmost lamp bead, so that the lamp bead display effect and the screen display picture are reversed.

[0104] Therefore, in order to solve the above problems, in the embodiment, when the target lighting direction is opposite to the preset direction, the plurality of lamp strip control data can be arranged in reverse order. Specifically, the data pointer of each lamp strip control data can be obtained, and then the first lamp strip control data and the last lamp strip control data are exchanged in position by using the data pointer, and the second lamp strip control data and the second last lamp strip control data are exchanged in position, and so on, so that the plurality of lamp strip control data can be arranged in reverse order. After the reverse arrangement is completed, it is not difficult to understand that the first lamp strip control data at this time corresponds to the rightmost partition image, and controls the rightmost first lamp bead, and so on, so that the entire lamp strip display effect and the entire screen picture can be matched with each other.

[0105] In the embodiment, the arrangement order of the plurality of lamp strip control data can be reasonably adjusted according to the installation condition of the lamp strip and the actual demand, so that the display effect of the plurality of lamp beads along the target lighting direction can be matched with the display content of the corresponding partition image, thereby meeting different actual demands and improving the adaptability of the lamp strip.

[0106] Further, as an embodiment, with reference to Figure 5 , Figure 5 for the step of A10 in the present application Figure 3 Before the process diagram before the step of A10 in the present application, before the installation mode of the lamp strip is determined according to the lamp strip lighting control information, the method further comprises:

[0107] In step S501, the hue data, saturation data and brightness data corresponding to the current screen image are obtained;

[0108] In step S502, the image color data of the current screen image is determined according to the hue data, saturation data and brightness data;

[0109] As described above, when the current screen image is obtained, the HSI histogram data of the image, i.e. the hue data, saturation data and brightness data, are obtained, and then these data need to be converted into corresponding RGB data, i.e. pixel value, for subsequent processing. However, before this, the following processing needs to be performed:

[0110] For hue data, first calculate the sum of hue histogram data hueSum, then find the maximum value hueMax in the hue histogram data and the corresponding index hueIndex in the hue histogram array, calculate the proportion of hueMax in hueSum (hueMax / hueSum), and determine whether the calculation result is greater than the judgment preset threshold (for example, 60%). If it is greater than the preset threshold, the hue angle corresponding to hueMax needs to be calculated. The method is: H=360° / 32*hueIndex;

[0111] For saturation data, calculate the sum of saturation histogram data satSum, then find the maximum value satMax in the saturation histogram data and the corresponding index satIndex in the saturation histogram array, calculate the proportion of satMax in satSum (satMax / satSum), and determine whether the calculation result is greater than the judgment preset threshold (for example, 60%). If it is greater than the preset threshold, the saturation corresponding to satMax needs to be calculated. The method is: S=1.0 / 32*satIndex;

[0112] For brightness data, calculate the sum of brightness histogram data intSum, then find the maximum value intMax in the brightness histogram data and the corresponding index intIndex in the brightness histogram array, calculate the proportion of intMax in intSum (intMax / intSum), and determine whether the calculation result is greater than the judgment preset threshold (for example, 60%). If it is greater than the preset threshold, the brightness corresponding to intMax needs to be calculated. The method is: I=1.0 / 32*intIndex.

[0113] Finally, if the three data above are all greater than the preset threshold, it is considered that the proportion of a certain color is greater than the preset threshold.

[0114] Step S503, according to the image color data, determine whether the maximum color proportion of the current screen image is greater than a preset threshold;

[0115] Step S504, if the maximum color proportion is less than or equal to the preset threshold, execute the installation method of the lamp strip according to the lamp strip lighting control information;

[0116] Step S505, if the maximum color proportion is greater than the preset threshold, the color data corresponding to the maximum color proportion is taken as the lamp strip control data.

[0117] After the maximum color proportion is obtained, if the maximum color proportion is less than or equal to the preset threshold, the related processes of steps A10-A40 are executed, and the specific manner is the same as the above, which will not be repeated here. If the maximum color proportion is greater than the preset threshold, it means that most of the current screen image is displayed in the color, and subsequent related processing is not required. All control data are directly set to the pixel value corresponding to the color, and all the lamp beads are displayed according to the color.

[0118] In the embodiment, different processing manners can be adopted for different screen images, so that the display effect of the lamp strip can better match the display content of the screen image.

[0119] Based on the same inventive concept, the embodiment of the application also provides a lamp strip lighting control device, which is shown in Figure 6 and includes:

[0120] An image acquisition module is configured to acquire a current screen image of a corresponding display device if the lamp strip lighting control information is received.

[0121] A data generation module is configured to obtain a plurality of lamp strip control data corresponding to the lamp strip lighting control information and the current screen image.

[0122] A direction determination module is configured to determine a target lighting direction of the corresponding lamp strip according to the lamp strip lighting control information.

[0123] A lamp strip control module is configured to send the plurality of lamp strip control data to a lamp strip controller of the lamp strip according to a control order corresponding to the target lighting direction, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the lamp strip control data.

[0124] It should be noted that the various embodiments of the lamp strip lighting control device in the embodiment and the technical effects achieved thereby can refer to the various embodiments of the lamp strip lighting control method in the foregoing embodiments, which will not be repeated here.

[0125] In addition, in an embodiment, the application also provides a computer storage medium, and the computer storage medium stores a computer program. When the computer program is run by a processor, the steps of the method in the foregoing method embodiment are implemented.

[0126] In some embodiments, the computer readable storage medium can be FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disc, or CD-ROM memory, or various devices including one or any combination of the above memories. The computer can be various computing devices including smart terminals and servers.

[0127] In some embodiments, executable instructions can be in the form of programs, software, software modules, scripts, or code, written in any form of programming language, including compiled or interpreted languages, or declarative or procedural languages; and it can be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.

[0128] By way of example, an executable instruction can, but need not, correspond to a file in a file system. An executable instruction can be stored in one or more files, in a portion of a file, in a single file that contains many instructions, in a single file that contains one or more instructions, in multiple files, in a single file with public name, in a single file with common name, in one or more executables, in a file that holds application program data, in a file that holds data related to the program, in a file that holds shared library code, as a file with decimal or hexadecimal notation or another format, or in any other medium suitable for the use intended by the present disclosure.

[0129] By way of further example, an executable instruction can execute entirely on a user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. It should be appreciated that the present disclosure can be implemented with any programming language, including a compiled or interpreted language, or declarative or procedural programming languages.

[0130] The foregoing is merely exemplary and is not intended to limit the scope of the present disclosure. Rather, the scope of the disclosure is broader than is apparent from the availability of equivalents in accordance with the doctrine of equivalents in patent law. Accordingly, there is no intention, with regard to the examples of equivalent structures, materials, acts or equivalents that additional structures, materials, acts or equivalents that are not explicitly described are intended to be encompassed by the present disclosure.

Claims

1. A method for controlling lighting of a light strip, characterized by, The method comprises: if the light strip lighting control information is received, obtaining a current screen image of a corresponding display device; according to the light strip lighting control information and the current screen image, obtaining corresponding light strip control data; according to the light strip lighting control information, determining a target lighting direction of a corresponding light strip; according to the target lighting direction, sending the light strip control data to the light strip controller of the light strip in a control sequence corresponding to the target lighting direction, so that the light strip controller controls the light strip to complete the lighting operation according to the light strip control data; if the target lighting direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the light strip control data; arranging the light strip control data in reverse order by using the data pointers; packaging the light strip control data arranged in reverse order into corresponding second light strip control data packets, and sending the second light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the second light strip control data packets; if the target lighting direction is consistent with the preset direction, packaging the light strip control data into corresponding first light strip control data packets, and sending the first light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the first light strip control data packets. if the target lighting direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the light strip control data; arranging the light strip control data in reverse order by using the data pointers; 2. The method of claim 1, wherein, packaging the light strip control data arranged in reverse order into corresponding second light strip control data packets, and sending the second light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the second light strip control data packets; if the target lighting direction is consistent with the preset direction, packaging the light strip control data into corresponding first light strip control data packets, and sending the first light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the first light strip control data packets. if the target lighting direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the light strip control data; arranging the light strip control data in reverse order by using the data pointers; packaging the light strip control data arranged in reverse order into corresponding second light strip control data packets, and sending the second light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the second light strip control data packets; 3. The method of claim 2, wherein, if the target lighting direction is consistent with the preset direction, packaging the light strip control data into corresponding first light strip control data packets, and sending the first light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the first light strip control data packets. if the target lighting direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the light strip control data; arranging the light strip control data in reverse order by using the data pointers; packaging the light strip control data arranged in reverse order into corresponding second light strip control data packets, and sending the second light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the second light strip control data packets; if the target lighting direction is consistent with the preset direction, packaging the light strip control data into corresponding first light strip control data packets, and sending the first light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the first light strip control data packets. if the target lighting direction is opposite to the preset direction, determining a plurality of data pointers corresponding to the light strip control data; arranging the light strip control data in reverse order by using the data pointers; packaging the light strip control data arranged in reverse order into corresponding second light strip control data packets, and sending the second light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the second light strip control data packets; if the target lighting direction is consistent with the preset direction, packaging the light strip control data into corresponding first light strip control data packets, and sending the first light strip control data packets to the light strip controller, so that the light strip controller controls the light strip to complete the lighting operation according to the first light strip control data packets.

4. The method of claim 3, wherein, After judging whether the maximum color proportion of the current screen image is greater than a preset threshold according to the image color data, the method further comprises: If the maximum color proportion is greater than the preset threshold, the color data corresponding to the maximum color proportion is taken as the lamp strip control data.

5. The method of claim 1, wherein, If the lamp strip lighting control information is received, the current screen image of the corresponding display device is acquired, comprising: If the user input light-on direction selection information is received, the target light-on direction is determined according to the light-on direction selection information; The lamp strip lighting control information is generated based on the target light-on direction, and the current screen image of the corresponding display device is acquired.

6. A light string lighting control device, characterized by, The device comprises: An image acquisition module, configured to acquire the current screen image of the corresponding display device if the lamp strip lighting control information is received; A data generation module, configured to obtain a plurality of lamp strip control data corresponding to the lamp strip lighting control information and the current screen image; A direction determination module, configured to determine the target light-on direction of the corresponding lamp strip according to the lamp strip lighting control information; A lamp strip control module, configured to send the plurality of lamp strip control data to the lamp strip controller of the lamp strip according to the control sequence corresponding to the target light-on direction, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the lamp strip control data; The lamp strip control module is further configured to judge whether the target light-on direction is consistent with a preset direction; if the target light-on direction is opposite to the preset direction, a plurality of data pointers corresponding to the plurality of lamp strip control data are determined; the plurality of lamp strip control data are arranged in reverse order by using the plurality of data pointers; the plurality of lamp strip control data arranged in reverse order are packaged into a corresponding second lamp strip control data packet, and the second lamp strip control data packet is sent to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the second lamp strip control data packet; if the target light-on direction is consistent with the preset direction, the plurality of lamp strip control data are packaged into a corresponding first lamp strip control data packet, and the first lamp strip control data packet is sent to the lamp strip controller, so that the lamp strip controller controls the lamp strip to complete the lighting operation according to the first lamp strip control data packet.

7. A light strip lighting control device, characterized in that, The lamp strip lighting control program is stored on the memory and can be run on the processor, and the lamp strip lighting control program is implemented when the processor is executed to realize the steps of the lamp strip lighting control method in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The lamp strip lighting control program is stored on the computer readable storage medium, and the lamp strip lighting control program is implemented when the processor is executed to realize the steps of the lamp strip lighting control method in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for rapid communication of LED lamp beads connected in series

    CN113747627A

  • Lamp strip control method and device, display equipment, system and storage medium

    CN114340102A