US-12621915-B2 - Method for controlling lamp strip, lamp strip system, electronic device and storage medium
Abstract
Disclosed are a method for controlling a lamp strip, a lamp strip system, an electronic device and a storage medium. The electronic device is connected to the lamp strip. The lamp strip includes a plurality of sub-lamp strips, and each sub-lamp strip corresponds to a plurality of lamp beads. The method includes: obtaining target program information played by the electronic device and a target light control strategy corresponding to the target program information; determining light drive data corresponding to a plurality of the lamp beads according to the target program information, the target light control strategy, a shape of the lamp strip and the lamp beads corresponding to each of the sub-lamp strips; and sending a plurality of the light drive data to the lamp strip, so that the lamp strip performs display control on a plurality of the lamp beads according to the plurality of the light drive data.
Inventors
- Minghai GUO
Assignees
- SHENZHEN SKYWORTH-RGB ELECTRONIC CO., LTD.
Dates
- Publication Date
- 20260505
- Application Date
- 20240614
- Priority Date
- 20211231
Claims (9)
- 1 . A method for controlling a lamp strip, applied to an electronic device, the electronic device being connected to the lamp strip, the lamp strip comprising a plurality of sub-lamp strips, and each of the sub-lamp strips corresponding to a plurality of lamp beads; the method comprising: obtaining target program information played by the electronic device and a target light control strategy corresponding to the target program information; determining light drive data corresponding to the plurality of lamp beads according to the target program information, the target light control strategy, a shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips; and sending a plurality of the light drive data to the lamp strip, so that the lamp strip performs display control on the plurality of lamp beads according to the plurality of the light drive data, wherein the target program information comprises image information, and determining the light drive data corresponding to the plurality of lamp beads according to the target program information, the target light control strategy, the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips comprises: performing a screenshot operation on a display interface corresponding to the image information to obtain screenshot image information according to a target light control strategy corresponding to the image information; determining an analysis area in the screenshot image information according to the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strip; and obtaining the light drive data corresponding to the lamp beads according to a pixel value of the analysis area, wherein before performing the screenshot operation on the display interface corresponding to the image information according to the target light control strategy corresponding to the image information to obtain the screenshot image information, the method further comprises: determining maximum color proportion of the image information; and in response to that the maximum color proportion does not exceed a preset threshold, performing the screenshot operation on the display interface corresponding to the image information according to the target light control strategy corresponding to the image information to obtain the screenshot image information.
- 2 . The method of claim 1 , wherein obtaining the light drive data corresponding to the plurality of lamp beads according to the pixel value of the analysis area comprises: dividing the analysis area into a plurality of sub-areas; obtaining an average value of all pixel values in the sub-areas; and using the average value as the light drive data of the plurality of lamp beads corresponding to the sub-areas.
- 3 . The method of claim 1 , wherein determining the maximum color proportion of the image information comprises: obtaining histogram data corresponding to the image information; obtaining color data according to the histogram data; and obtaining the maximum color proportion according to the color data.
- 4 . The method of claim 1 , wherein after determining the maximum color proportion of the image information, the method further comprises: in response to that the maximum color proportion exceeds the preset threshold, using color data corresponding to the maximum color proportion as the light drive data corresponding to the plurality of lamp beads.
- 5 . The method of claim 1 , wherein the target program information comprises sound information, and determining the light drive data corresponding to the plurality of lamp beads according to the target program information, the target light control strategy, the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips comprises: slicing the sound information to obtain multiple sound clips; inputting the sound clip into a sound and light association model to obtain light change data corresponding to the sound clip; obtaining sound and light data according to the light change data; and obtaining the light drive data corresponding to the plurality of lamp beads according to the sound and light data, the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips.
- 6 . The method of claim 1 , wherein before obtaining the target program information played by the electronic device and the target light control strategy corresponding to the target program information, the method further comprises: determining application scene information of the target program information; and determining a target light control strategy corresponding to the application scene information according to a light control strategy set, wherein the light control strategy set comprises light control strategies corresponding to different application scene information.
- 7 . The method of claim 1 , wherein before determining the light drive data corresponding to the plurality of lamp beads according to the target program information, the target light control strategy, the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips, the method further comprises: receiving a shape selection instruction for the lamp strip; determining the shape of the lamp strip according to the shape selection instruction for the lamp strip; receiving a quantity selection instruction for the lamp bead; and obtaining the plurality of sub-lamp strips and the number of the plurality of lamp beads corresponding to each of the sub-lamp strips according to the shape of the lamp strip and the quantity selection instruction for the lamp bead.
- 8 . The method of claim 1 , wherein determining light drive data corresponding to the plurality of lamp beads according to the target program information, the target light control strategy, the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips comprises: determining initial drive data corresponding to the lamp strip according to the target program information, wherein the initial drive data comprises initial drive data of each of the plurality of lamp beads; and according to the shape of the lamp strip and the plurality of lamp beads corresponding to each of the sub-lamp strips, adjusting the initial drive data of each of the plurality of lamp beads to obtain the light drive data of each of the plurality of lamp beads.
- 9 . An electronic device, comprising: a memory; a processor; and a program for controlling a lamp strip stored in the memory and run on the processor, wherein when the program for controlling the lamp strip is controlled by the processor, the method for controlling the lamp strip of claim 1 is implemented.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application is a continuation application of International Application No. PCT/CN2022/102938, filed on Jun. 30, 2022, which claims priority to Chinese Patent Application No. 202123203865.2, filed on Dec. 17, 2021, and Chinese Patent Application No. 202111681425.X, filed on Dec. 31, 2021. The disclosures of the above-mentioned applications are incorporated herein by reference in their entireties. TECHNICAL FIELD The present application relates to the technical field of light control, and in particular to a method for controlling a lamp strip, a lamp strip system, an electronic device and a storage medium. BACKGROUND Electronic devices have penetrated into thousands of households and played an important role in enriching people's amateur cultural life and spreading culture, knowledge and news. As people have higher and higher requirements for the listening experience of electronic device, it is necessary to install ambient lights for electronic device (also called lamp strips) became a viable method. Currently, in the existing technology, the electronic device is connected to a lamp strip and provides power to the lamp strip, and the lamp strip controls the display of the lamp strip according to a preset display strategy. However, the display control of the lamp strip is independent of the electronic device, resulting in a lack of interaction between the electronic device and the lamp strip, and the lamp strip has a poor effect in improving the user's listening experience. Therefore, how to improve the connection and interaction between lamp strips and electronic devices and improve the user's listening experience is an urgent technical problem that needs to be solved. SUMMARY The main purpose of the present application is to provide a method for controlling a lamp strip, apparatus, electronic device, system and storage medium, aiming to solve the technical problem in the existing technology of how to improve the connection and interaction between the lamp strip and the electronic device. In order to achieve the above purpose, the present application provides a method for controlling the lamp strip, applied to the electronic device. The electronic device is connected to the lamp strip, the lamp strip includes a plurality of sub-lamp strips, and each of the sub-lamp strips corresponds to a plurality of lamp beads. The method includes: obtaining target program information played by the electronic device and a target light control strategy corresponding to the target program information;determining light drive data corresponding to a plurality of the lamp beads according to the target program information, the target light control strategy, a shape of the lamp strip and the lamp beads corresponding to each of the sub-lamp strips; andsending a plurality of the light drive data to the lamp strip, so that the lamp strip performs display control on a plurality of the lamp beads according to the plurality of the light drive data. In addition, in order to achieve the above purpose, the present application also provides a lamp strip system, including: an electronic device, including a data interaction module; anda lamp strip, including a lamp strip controller and a plurality of lamp beads. The data interaction module is configured to send lamp strip control information to the lamp strip controller. The lamp strip controller is connected to the data interaction module and is configured to receive the lamp strip control information, convert the lamp strip control information into a first lamp strip control instruction, and send the first lamp strip control instruction to the lamp bead. The lamp bead is connected to the lamp strip controller, and is configured to receive the first lamp strip control instruction, and perform a corresponding display action according to received first lamp strip control instruction. In addition, in order to achieve the above purpose, the present application also provides an electronic device, including: a memory;a processor; anda program for controlling the lamp strip stored in the memory and run on the processor. When the program for controlling the lamp strip is controlled by the processor, the method for controlling the lamp strip as described above is implemented. In addition, in order to achieve the above purpose, the present application also provides a non-transitory computer-readable storage medium on which a program for controlling the lamp strip is stored, and when the program for controlling the lamp strip is executed by a processor, the method for controlling the lamp strip as described above is implemented. The present application provides a method for controlling the lamp strip, applied to the electronic device. The electronic device is connected to the lamp strip, the lamp strip includes a plurality of sub-lamp strips, and each of the sub-lamp strips corresponds to a plurality of lamp beads. The method includes: obtaining targe