WO2023109091A1 - 灯带控制方法、灯带系统、电子设备以及存储介质 - Google Patents

灯带控制方法、灯带系统、电子设备以及存储介质 Download PDF

Info

Publication number
WO2023109091A1
WO2023109091A1 PCT/CN2022/102938 CN2022102938W WO2023109091A1 WO 2023109091 A1 WO2023109091 A1 WO 2023109091A1 CN 2022102938 W CN2022102938 W CN 2022102938W WO 2023109091 A1 WO2023109091 A1 WO 2023109091A1
Authority
WO
WIPO (PCT)
Prior art keywords
light strip
light
information
control
electronic device
Prior art date
Application number
PCT/CN2022/102938
Other languages
English (en)
French (fr)
Inventor
郭明海
Original Assignee
深圳创维-Rgb电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN202123203865.2U external-priority patent/CN216721637U/zh
Priority claimed from CN202111681425.XA external-priority patent/CN114340102B/zh
Application filed by 深圳创维-Rgb电子有限公司 filed Critical 深圳创维-Rgb电子有限公司
Publication of WO2023109091A1 publication Critical patent/WO2023109091A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission

Definitions

  • the present application relates to the technical field of light control, and in particular to a light strip control method, a light strip system, electronic equipment, and a storage medium.
  • the electronic device is connected to the light strip, and the electronic device provides power for the light strip, and the light strip controls the display of the light strip according to a preset display strategy.
  • the display control of the light strip is independent of the electronic device, so that there is a lack of interaction between the electronic device and the light strip, and the effect of the light strip on improving the user's listening experience is not good. Therefore, how to improve the connection and interaction between the light strip and the electronic device, and improve the user's listening experience is a technical problem that needs to be solved urgently.
  • the main purpose of this application is to provide a light strip control method, device, electronic equipment, system and storage medium, aiming to solve the technical problem of how to improve the connection and interaction between the light strip and electronic equipment in the prior art.
  • this application proposes a light strip control method for electronic equipment, the electronic equipment is connected to the light strip, the light strip includes several sections of light strips, and each section of the sub-light strips corresponds to a number of lamp beads ;
  • the method comprises the following steps:
  • the target lighting control strategy determines the light driving data corresponding to several light beads;
  • this application also proposes a light strip system, including electronic equipment and a light strip, the electronic equipment includes a data interaction module, and the light strip includes a light strip controller and several lamp beads, wherein:
  • the data interaction module is used to send light strip control information to the light strip controller
  • the light strip controller connected to the data interaction module, is used to receive the light strip control information, convert the light strip control information into a first light strip control command, and send the light strip control instruction to the light bead.
  • the first light strip control command ;
  • the lamp bead is connected to the light strip controller, and is used for receiving the first light strip control instruction, and performing a corresponding display action according to the received first light strip control instruction.
  • the present application also proposes an electronic device, the electronic device includes: a memory, a processor, and a light strip control program stored in the memory and running on the processor, the light When the strip control program is executed by the processor, the steps of any one of the above-mentioned light strip control methods are implemented.
  • the present application also proposes a storage medium, on which a light strip control program is stored, and when the light strip control program is executed by a processor, the light strip control program as described in any one of the above items can be realized. Steps with control methods.
  • the technical solution of this application proposes a light strip control method for electronic equipment, the electronic equipment is connected to the light strip, the light strip includes several section light strips, and each section light strip corresponds to several lamp beads; the method includes the following steps: obtaining the electronic equipment The target program information to be played and the target lighting control strategy corresponding to the target program information; according to the target program information, target lighting control strategy, the shape of the light strip and the lamp beads corresponding to each sub-light strip, determine the light driving data corresponding to several lamp beads ; Send some light driving data to the light strip, so that the light strip can display and control several light beads according to the light driving data.
  • the electronic device automatically obtains the light driving data corresponding to multiple light beads in the light strip according to the target program information, the shape of the light strip, and the light beads corresponding to each section of the light strip, so that the light strip can use the light driving data
  • the display control of several lamp beads realizes the interactive control of electronic equipment and light strips.
  • FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment involved in an embodiment of the present application
  • Fig. 2 is a schematic flow chart of the light strip control method of the present application
  • Figure 3 is a schematic diagram of the installation position of the light strip
  • Figure 4 is another schematic diagram of the installation position of the light strip
  • Fig. 5 is a structural block diagram of the light strip control device of the present invention.
  • Fig. 6 is a structural block diagram of the lighting control system of the present application.
  • FIG. 7 is a schematic structural diagram of a light belt system according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a light strip system according to another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a light strip system according to another embodiment of the present application.
  • Fig. 10 is a schematic structural diagram of the arrangement of in-line lamp beads in the light strip system of the present application.
  • FIG. 11 is a schematic structural diagram of the arrangement of U-shaped lamp beads in the light strip system of the present application.
  • FIG. 1 is a schematic structural diagram of an electronic device in a hardware operating environment involved in the solution of the embodiment of the present application.
  • an electronic device includes: at least one processor 301, a memory 302, and a light strip control program stored in the memory and operable on the processor, the light strip control program is configured to implement the aforementioned The steps of the light strip control method.
  • the processor 301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like.
  • Processor 301 can adopt at least one hardware form in DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) accomplish.
  • Processor 301 can also include main processor and coprocessor, and main processor is the processor that is used for processing the data in wake-up state, also claims CPU (Central Processing Unit, central processing unit); Low-power processor for processing data in standby state.
  • CPU Central Processing Unit, central processing unit
  • Low-power processor for processing data in standby state.
  • the processor 301 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing the content that needs to be displayed on the display screen.
  • the processor 301 may also include an AI (Artificial Intelligence, artificial intelligence) processor, which is used to process operations related to the light strip control method, so that the light strip control method model can be trained and learned independently, improving efficiency and accuracy.
  • AI Artificial Intelligence, artificial intelligence
  • Memory 302 may include one or more storage media, which may be non-transitory.
  • the memory 302 may also include high-speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • the non-transitory storage medium in the memory 302 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 301 to implement the light strip control method provided by the method embodiment in this application.
  • the terminal may optionally further include: a communication interface 303 and at least one peripheral device.
  • the processor 301, the memory 302, and the communication interface 303 may be connected through a bus or a signal line.
  • Each peripheral device can be connected to the communication interface 303 through a bus, a signal line or a circuit board.
  • the peripheral device includes: at least one of a radio frequency circuit 304 , a display screen 305 and a power supply 306 .
  • the communication interface 303 may be used to connect at least one peripheral device related to I/O (Input/Output, input/output) to the processor 301 and the memory 302 .
  • the processor 301, the memory 302 and the communication interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or both of the processor 301, the memory 302 and the communication interface 303 It can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 304 is used to receive and transmit RF (Radio Frequency, radio frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 304 communicates with the communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.
  • the radio frequency circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and the like.
  • the radio frequency circuit 304 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: metropolitan area network, mobile communication networks of various generations (2G, 3G, 4G and 5G), wireless local area network and/or WiFi (Wireless Fidelity, wireless fidelity) network.
  • the radio frequency circuit 304 may also include circuits related to NFC (Near Field Communication, short-range wireless communication), which is not limited in this application.
  • the display screen 305 is used to display a UI (User Interface, user interface).
  • the UI can include graphics, text, icons, video, and any combination thereof.
  • the display screen 305 also has the ability to collect touch signals on or above the surface of the display screen 305 .
  • the touch signal can be input to the processor 301 as a control signal for processing.
  • the display screen 305 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 305 there can be one display screen 305, which is the front panel of the electronic device; in other embodiments, there can be at least two display screens 305, which are respectively arranged on different surfaces of the electronic device or in a folded design; In some embodiments, the display screen 305 may be a flexible display screen disposed on a curved surface or a folded surface of the electronic device. Even, the display screen 305 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 305 can be made of LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, organic light-emitting diode) and other materials.
  • the power supply 306 is used to supply power to various components in the electronic device.
  • Power source 306 may be alternating current, direct current, disposable batteries, or rechargeable batteries.
  • the rechargeable battery can support wired charging or wireless charging.
  • the rechargeable battery can also be used to support fast charging technology.
  • FIG. 1 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
  • the embodiment of the present application also proposes a storage medium, on which a light strip control program is stored, and when the light strip control program is executed by a processor, the steps of the above-mentioned light strip control method are realized. Therefore, details will not be repeated here. In addition, the description of the beneficial effect of adopting the same method will not be repeated here.
  • program instructions may be deployed to be executed on one electronic device, or on multiple electronic devices located at one site, or, alternatively, on multiple electronic devices distributed across multiple sites and interconnected by a communication network to execute.
  • the above-mentioned program can be stored in a storage medium. When the program is executed, It may include the processes of the embodiments of the above-mentioned methods.
  • the above-mentioned storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
  • Fig. 2 is a schematic flowchart of the method for controlling the light strip of the present application, and the method includes the following steps:
  • Step S11 Obtain the target program information played by the electronic device and the target lighting control strategy corresponding to the target program information.
  • the execution subject of the present application is an electronic device, the electronic device is installed with a light strip control program, and when the electronic device executes the light strip control program, the steps of the light strip control method of the present application are realized.
  • the target program information usually refers to the program information being output by the electronic device, which may be image information (especially video frame information in the video, and the image in the non-video is determined as the application interface information later) or sound information.
  • the electronic device is connected to a light strip, and the light strip includes a plurality of light beads.
  • the light strip can be any form of ambient light, which is not limited in this application.
  • one light bead corresponds to the R unit (red unit), G unit (green unit) and B unit (blue unit), by outputting different R values , G value and B value, the lamp beads show different colors.
  • the light strip consists of several sections, each section is a sub-light strip, and each sub-light strip corresponds to several lamp beads.
  • Fig. 3 is a schematic diagram of the installation position of the light strip
  • Fig. 4 is another schematic diagram of the installation position of the light strip.
  • the light strip 1 is set above the electronic device 2, and the light strip 1 presents a straight shape, which corresponds to a section of the light strip.
  • the light strip 1 is set on the periphery of the electronic device 2, presenting an inverted U shape. , corresponding to the three-segment light strip.
  • the user can also set other positional relationships based on requirements, which is not limited in this application, and the straight and inverted U shapes are just examples of this application, for example, the light strip surrounds the four sides of the electronic device, etc. .
  • the light strip can be in direct contact with the electronic device, or the light strip can be placed on a supporting structure near the TV set.
  • the light strip has a plurality of lamp beads and a microprocessor (MCU) for controlling the plurality of lamp beads.
  • the microprocessor controls the plurality of lamp beads, and the lamp beads may be LED lamp beads.
  • the light strip can have a bluetooth module, which is used to connect with the bluetooth module of the electronic device through the bluetooth module, so as to realize the communication between the light strip and the electronic device.
  • the light strip control program of the electronic device can output a setting interface, and the user can complete the setting of the light strip on this interface.
  • Enter the actual shape of the light strip setting (such as the above-mentioned one-shaped and inverted U-shaped light strips, etc.) into the light strip control program. For example, if the light strip is placed in a line, you need to choose the shape of the light strip as an inverted U, and determine the number of light beads on each side.
  • the length of the light strip may be relatively large.
  • the user sets the light strip, he can set the available and unusable lamp beads of the light strip, and input the available or unusable lamp beads in the light strip control program.
  • the usable lamp beads are the lamp beads that need to be controlled, and the unusable lamp beads are the lamp beads that do not need to be controlled.
  • the unusable lamp beads may be because the lamp strip is too long, causing the lamp beads that do not need to be controlled to be hidden in the lamp strip in certain areas.
  • the multiple lamp beads in step S11 refer to usable lamp beads, excluding unusable lamp beads in the above situation.
  • Step S12 According to the target program information, the target lighting control strategy, the shape of the light strip and the light beads corresponding to each sub-light strip, determine the light driving data corresponding to several light beads.
  • Step S13 Sending some of the light driving data to the light strip, so that the light strip can display and control the light beads according to the light driving data.
  • the initial driving data may include the initial driving data of multiple lamp beads, and then according to the shape of the light strip and the corresponding light beads of each sub-light strip , adaptively adjust the initial driving data of each lamp bead, and obtain the light driving data of each lamp bead.
  • the initial driving data corresponding to different target program information is different, so that the multiple lighting driving data corresponding to the multiple lamp beads are different; for the same initial driving data corresponding to the same program information, the When the shapes of the lamp beads are different, the multiple light driving data corresponding to the corresponding multiple lamp beads are also different; for the same initial driving data corresponding to the same program information, when the shapes of the light strips are the same, the corresponding lights When the number of beads is different, the plurality of lamp driving data corresponding to the corresponding plurality of lamp beads are also different.
  • the electronic device obtains the number When there is one light driving data, multiple light driving data correspond to the number of each light bead. After the light strip obtains a plurality of light driving data, the light driving data of each light bead is determined according to the number of the light bead, so as to control the display of the plurality of light beads.
  • the technical solution of this application proposes a light strip control method for electronic equipment, the electronic equipment is connected to the light strip, the light strip includes several section light strips, and each section light strip corresponds to several lamp beads; the method includes the following steps: obtaining the electronic equipment The target program information to be played and the target lighting control strategy corresponding to the target program information; according to the target program information, target lighting control strategy, the shape of the light strip and the lamp beads corresponding to each sub-light strip, determine the light driving data corresponding to several lamp beads ; Send some light driving data to the light strip, so that the light strip can display and control several light beads according to the light driving data.
  • the electronic device automatically obtains the light driving data corresponding to multiple light beads in the light strip according to the target program information, the shape of the light strip, and the light beads corresponding to each section of the light strip, so that the light strip can use the light driving data
  • the display control of several lamp beads realizes the interactive control of electronic equipment and light strips.
  • the method further includes: receiving an instruction for selecting the shape of the light strip; determining the shape of the light strip according to the instruction for selecting the shape of the light strip; receiving an instruction for selecting the number of lamp beads; according to the shape of the light strip and the The instruction for selecting the number of lamp beads obtains the plurality of sub-light strips and the number of lamp beads corresponding to each sub-light strip.
  • the light strip control program of the electronic device can output a setting interface, and the user can complete the setting of the light strip on this interface.
  • Receive the shape selection instruction and enter the actual shape of the light strip setting (such as the above-mentioned one-shaped and inverted U-shaped light strips, etc.) into the light strip control program.
  • One-shaped, another example if the light strip is placed in one-line shape, you need to choose the shape of the light strip as an inverted U.
  • the corresponding number of sub-light strip segments is different.
  • the set light strip shape continues to send the number selection command for each sub-light strip to determine the number of light beads in each sub-light strip. .
  • the shape of the light strip is determined to be one-shaped, you only need to send a command to select the number of lamp beads for the one-shaped light strip to determine the number of light beads for the one-shaped light strip; if the shape of the light strip is two One side or more (for example, an inverted U shape has three sides, and each side is a section of light strip), the length of each side needs to be determined according to the light strip shape selection command, and the length of each side needs to be determined according to the number of lamp beads on each side.
  • the number of lamp beads used for display that is, one side corresponds to a sub-light strip, and one sub-light strip corresponds to a command for selecting the number of lamp beads.
  • the method further includes: determining the application scene information of the target program information;
  • the lighting control strategy set determines the target lighting control strategy corresponding to the application scenario information, and the lighting control strategy set includes lighting control strategies corresponding to different application scenario information.
  • the application scene information includes sound scene, image scene, ambient light scene, etc., wherein, in the ambient light scene, the change of the program information of the electronic device will not affect the change of the light driving data of the lamp bead.
  • the light driving data of beads has a fixed ambient light strategy, which can be obtained based on user settings; in the sound scene, the target program information of the electronic device can include music information or other sound information; in the image scene, the electronic device
  • the target program information of may include image information (especially video frame information in video information).
  • the electronic device automatically determines the application scene information according to the target program information.
  • the user can also manually select the application scenario information, and the electronic device directly performs the step of determining the target lighting control strategy corresponding to the application scenario information according to the lighting control strategy set.
  • the lighting control strategy may be determined as the ambient lighting control strategy corresponding to the ambient lighting scene (the fixed ambient lighting strategy described above).
  • the electronic device determines the corresponding lighting control strategy in the lighting control strategy set—the target lighting control strategy.
  • the lighting control strategy set usually includes a sound control strategy, an image control strategy and an ambient light control strategy. According to the application scene information (one of the ambient light scene, the sound scene and the image scene), the corresponding target light control strategy is determined.
  • the target lighting control strategy determines the shape of the light strip and the light beads corresponding to each sub-light strip.
  • the target program information includes sound information; according to the target program information, the target lighting control strategy, the shape of the light strip and the lamp beads corresponding to each sub-light strip, determine a number of
  • the step of describing a plurality of light driving data corresponding to the lamp bead includes: slicing the sound information to obtain a plurality of sound segments; inputting the sound segment into the sound lamp association model to obtain the light change data corresponding to the sound segment Obtain sound and light data according to the light change data; obtain light driving data corresponding to several light beads according to the sound and light data, the shape of the light strip and the light beads corresponding to each sub-light strip.
  • the sound control strategy refers to the strategy described above to obtain multiple lighting driving data through sound information.
  • the sound lamp association model may be any form of model, such as a neural network model.
  • the value of the playback time corresponding to a sound clip should not be too large, so as to avoid the sound clip input into the sound and light association model being too large, resulting in slow and accurate analysis of the obtained light change data low rate.
  • Each sound clip corresponds to a sound playback duration
  • the corresponding light change data is the change of the corresponding light color (including the respective colors of the three RGB units) within the sound playback duration.
  • each lamp bead it can correspond to one sound and light data, and multiple lamp beads correspond to their own sound and light data.
  • the sound and light data of each lamp bead are moderately adjusted, so as to obtain the adjusted sound and light data—light driving data.
  • the lamp beads on both sides increase the value of the light driving data (the specific value of RGB), etc., and the top lamp beads are not adjusted; while for a straight-shaped light strip, the overall adjustment is not made.
  • the number of lamp beads is different, and the light driving data may be different.
  • the number of lamp beads on both sides is less than the first preset number, increase the value of the light driving data of the lamp beads on both sides (the specific value of RGB), etc., and the number of lamp beads on both sides When it is not less than the first preset quantity, the lamp beads on both sides will not be adjusted.
  • the user can set the specific first preset quantity and the second preset quantity based on the demand, or determine the changing relationship between the number of lamp beads and the light driving data based on the demand , which is not limited in this application.
  • the electronic device creates a recording thread and instantiates an AudioRecord to continuously record sound information from the sound channel inside the chip of the electronic device. It is a general-purpose interface when recording, so the sound information is sampled at 48KHz. Considering that the sound effect of the Bluetooth light strip does not require such high-precision sound data, and taking into account the Bluetooth bandwidth problem, the sound information sampled at 48KHz needs to be re-sampled at 8KHz.
  • This ring buffer is used to store 8KHz sampled audio data in a loop, assuming that the buffer size is N bytes, it will be stored from 0 to N bytes at the beginning, and when it is full, loop store from 0);
  • the electronic device creates another thread, which is the thread for sending sound information. After periodically taking out the sound information from the ring buffer and encapsulating it according to the protocol requirements, the data is sent to the light strip through the Bluetooth interface, and the light strip itself performs the processing based on the sound information. display control;
  • the ring buffer is a public resource, so a thread lock must be added when reading and writing data to ensure data security.
  • a thread lock must be added when reading and writing data to ensure data security.
  • the target program information includes image information; according to the target program information, the target lighting control strategy, the shape of the light strip and the lamp beads corresponding to each sub-light strip, determine a number of
  • the step of describing the light driving data corresponding to the lamp bead includes: according to the target light control strategy corresponding to the image information, performing a screen capture operation on the display interface corresponding to the image information to obtain screen capture image information; The shape and the lamp bead corresponding to each section of the sub-light strip determine the analysis area in the screenshot image information; according to the pixel value of the analysis area, the light driving data corresponding to the lamp bead is obtained.
  • the obtaining the light driving data corresponding to the lamp beads according to the pixel values of the analysis area specifically includes: dividing the analysis area into several sub-areas; obtaining the average value of all pixel values in the sub-areas ; Taking the average value as the light driving data of the lamp bead corresponding to the sub-area.
  • the content at the top 200 pixels of the screen should be converted into RGB data for the light strip. as follows:
  • the screenshot image information is the screenshot obtained by performing the screenshot operation on the playing interface of the target program information.
  • it can be a first picture of a preset size (such as a picture pic1 of 1920x1080), and the first picture is ARGB (A is an alpha value, RGB is the RGB color of this pixel) format, the alpha value can be ignored during processing, and the RGB value can be processed directly, and all pixels with a height of 200 pixels on the upper edge of pic1 are taken out to obtain a picture pic2 with a resolution of 1920x200—the middle image;
  • the width of each sub-area is 1920/num1
  • the height is 200.
  • Accumulate the R/G/B values of all pixels in each sub-area to get sum1 divide the accumulated sum sum1 by the total pixels of the sub-area (1920*200/num1) to get the R/G/B value of this sub-area B average value avgN (N is 1 to num1)
  • the R/G/B average value of a sub-area is the light driving data of the lamp bead corresponding to this sub-area.
  • the steps are as follows:
  • the screenshot image information is the screenshot obtained by the screenshot operation on the playing interface of the target program information.
  • it can be a second picture of a preset size (such as a picture pic3 of 1920x1080), and the second picture is ARGB (A is an alpha value, RGB For the RGB color of this pixel) format, the alpha value can be ignored during processing, and the RGB value can be directly processed;
  • the R/G/B average value of a sub-area is the light driving data of the lamp bead corresponding to this sub-area.
  • the total pixel points of the left edge image sub-area are: 1080*200/numLeft, and the total pixel points of the top edge image sub-area are: 1020*200/numTop.
  • the total pixels of the right edge image sub-area are: 1080*200/numRight.
  • each sub-strip may correspond to multiple sub-areas, and the light driving data of several lamp beads corresponding to each sub-area are the same.
  • each lamp bead corresponds to a sub-area.
  • the method before performing a screenshot operation on the display interface corresponding to the image information according to the target lighting control strategy corresponding to the image information to obtain the screenshot image information, the method further includes: determining the value of the image information The maximum color proportion; when the maximum color proportion does not exceed the preset threshold, execute the target lighting control strategy corresponding to the image information, and perform a screenshot operation on the display interface corresponding to the image information to obtain a screenshot Steps for image information.
  • the step of determining the maximum color ratio of the image information includes: obtaining the histogram data corresponding to the image information; obtaining color data according to the histogram data; obtaining the maximum color ratio according to the color data Proportion.
  • the image information particularly refers to video frame information corresponding to the video, that is, in this embodiment, the output of the electronic device is a video.
  • Hue H Hue
  • Hue It is related to the frequency of light waves. It expresses the perception of different colors by human senses, such as red, green, blue, etc. It can also express a certain range of colors, such as warm colors and cool colors. wait.
  • Saturation S (Saturation): Indicates the purity of the color, pure spectral color is fully saturated, adding white light will dilute the saturation. The greater the saturation, the more vivid the color will appear, and vice versa.
  • Brightness I Intensity: Corresponding to imaging brightness and image grayscale, it is the brightness of the color.
  • the chip of the electronic device can directly provide the histogram information of the HSI.
  • the tone histogram is a 32-level array (different chips may have different levels of tone), and different colors will be reflected in different levels on the tone histogram.
  • the data on the hueHist array of the hue histogram is: 255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
  • hueHist[0] is the maximum value of 255, and all others are 0, indicating that the hue of the color with the largest proportion in the current screen is on the 0th order.
  • the 32-level tone histogram divides the color disk (360°) cut out under a certain brightness plane in the HSI color diagram into 32 angle spaces on average, and the 0th order means from 0° to 11.25°.
  • the histogram of saturation (S) is also a 32-order array (different chips may have different orders), and the saturation of different colors will be reflected in different orders on the saturation histogram.
  • S histogram of saturation
  • the data on the saturation histogram satHist array is: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 ,0 ,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255.
  • satHist[31] is the maximum value of 255, and all others are 0, which means that the saturation components of all the colors that account for the most in the current picture are all on the 31st order.
  • 32-order saturation histogram which divides the average saturation from 0% to 100% into 32 levels, and the 0th order represents the saturation component from 0 to 3.125%. Whichever level has the largest value means that the saturation of the color that accounts for the most in the screen is at this level, so satHist[31] is the maximum value of 255, indicating that the color saturation of the current screen is between 96.876% and 100%.
  • the histogram of brightness (I) is also a 32-order array (different chips may have different orders), and different brightness will be reflected in different steps on the brightness histogram.
  • the data on the brightness histogram intHist array is: 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0.0.0.0.
  • intHist[6] is the maximum value of 255, and all others are 0, indicating that the brightness component of the color that accounts for the most in the current screen is on the sixth level.
  • the 32-level brightness histogram divides the brightness from 0% to 100% into 32 levels on average, and the 0th level represents the brightness components from 0 to 3.125%.
  • the value of that level is the largest, which means that the brightness of the color with the largest proportion in the screen is at this level, so intHist[15] is the maximum value of 255, indicating that the brightness of the color with the largest proportion in the current screen is between 46.875 and 50%. .
  • color data includes red data R, blue data B and green data G
  • the preset database includes multiple hue intervals, and each hue interval corresponds to a calculation strategy.
  • the multiple hue intervals include: [0°, 120°), [120°, 2400°) and [240°, 360° °), the corresponding calculation strategy is as follows:
  • r is the red data in the color data
  • g is the green data in the color data
  • b is the blue data in the color data.
  • the interval including the target tone value is determined as the selected tone interval, and its corresponding calculation strategy is the selected calculation strategy (one of the three formulas).
  • the color data obtained in the above method is a floating point number normalized to a range of 0 to 1. It is necessary to multiply r, g, and b by 255 to obtain the corresponding color data.
  • the color data multiplied by 255 is used for multiple.
  • the acquisition of multiple light driving data corresponding to the above-mentioned lamp beads, that is, the color data described below refers to the color data obtained after multiplying the rgb data obtained according to the above three formulas by 255.
  • the color data includes the color data corresponding to each pixel in the image information, so for the target image, each pixel will correspond to a color data (including the red data, blue data and green data of the pixel); statistics For the number of pixels of the same color of pixels with the same color data, the color data with the largest number of pixels of the same color is determined as the maximum color, and the ratio of the maximum color pixel to all pixels of the image information is determined as the maximum color ratio.
  • the color data corresponding to the maximum color proportion is used as the light driving data corresponding to the plurality of lamp beads. Then use the shape of the light strip and the number of light beads in each sub-light strip to adjust the color of each light bead based on the maximum color to obtain the adjusted maximum color corresponding to each light bead, and the adjusted maximum color of each light bead
  • the color (in the form of color data) is the light driving data of the lamp bead.
  • the electronic equipment can use different lighting control strategies to obtain lighting driving data that better matches the target program information of the electronic equipment, so that the light strip
  • the display effect of the lamp bead is more compatible with the target program information of the electronic device, which improves the interaction effect between the light strip and the electronic device, and improves the user experience.
  • this application proposes the above two ways of obtaining light driving data (the maximum color ratio is greater than the preset threshold and less than the preset threshold), which can make the light driving data of the lamp bead more compatible with the image information, and further Improve user experience.
  • Fig. 5 is a structural block diagram of the light strip control device of the present invention, the device is used for a display device, the display device is connected to the light strip, and the light strip includes a plurality of lamp beads; based on the same
  • the inventive concept of the described device comprises:
  • An acquisition module 10 configured to acquire target program information played by the display device and a target lighting control strategy corresponding to the target program information
  • Obtaining module 20 configured to determine the light driving data corresponding to several light beads according to the target program information, the target light control strategy, the shape of the light strip and the light beads corresponding to each sub-light strip ;
  • the sending module 30 is configured to send a plurality of light driving data to the light strip, so that the light strip performs display control on a plurality of the light beads according to the light driving data.
  • the target program information includes image information;
  • the obtaining module 20 is specifically configured to, according to the target lighting control strategy corresponding to the image information, perform a screenshot operation on the display interface corresponding to the image information to obtain screenshot image information;
  • the analysis area is determined in the screenshot image information; according to the pixel value of the analysis area, the light driving corresponding to the light beads is obtained data.
  • the obtaining module 20 is specifically used to divide the analysis area into several sub-areas; obtain the average value of all pixel values in the sub-areas; use the average value as the lamp corresponding to the sub-area Bead lights drive data.
  • the obtaining module 20 is also used to determine the maximum color ratio of the image information; when the maximum color ratio does not exceed a preset threshold, execute the lighting control strategy according to the target corresponding to the image information A step of performing a screenshot operation on a display interface corresponding to the image information to obtain screenshot image information.
  • the obtaining module 20 is also used to obtain the histogram data corresponding to the image information; obtain the color data according to the histogram data; obtain the maximum color proportion according to the color data.
  • the device also includes:
  • the driving data obtaining module is configured to use the color data corresponding to the maximum color proportion as the light driving data corresponding to the plurality of lamp beads when the maximum color proportion exceeds the preset threshold.
  • the target program information includes sound information; the obtaining module 20 is specifically configured to slice the sound information to obtain a plurality of sound segments; input the sound segments into the sound lamp association model, and obtain the sound segment corresponding According to the light change data, the sound and light data are obtained; according to the sound and light data, the shape of the light strip and the light beads corresponding to each sub-light strip, the lights corresponding to several light beads are obtained drive data.
  • the device also includes:
  • a policy determination module configured to determine the application scene information of the target program information; determine the target light control policy corresponding to the application scene information according to the light control policy set, and the light control policy set includes different application scene information corresponding lighting control strategy.
  • the device also includes:
  • the light strip selection module is used to receive an instruction for selecting the shape of the light strip; determine the shape of the light strip according to the light strip shape selection instruction; receive a selection instruction for the number of lamp beads; according to the shape of the light strip and the light strip
  • the bead quantity selection command is used to obtain the number of sub-light strips and the number of light beads corresponding to each sub-light strip.
  • the display device automatically obtains the light driving data corresponding to multiple light beads in the light strip according to the target program information, the shape of the light strip, and the corresponding light beads of each sub-light strip, so that the light strip can use the light driving data
  • the display control of several lamp beads realizes the interactive control of the display device and the light strip.
  • the display device can use different lighting control strategies to obtain lighting driving data that is more compatible with the target program information of the display device, so that The display effect of the lamp beads of the light strip better matches the target program information of the display device, improves the interaction effect between the light strip and the display device, and improves the user experience.
  • the present invention proposes the above-mentioned two ways of obtaining light driving data (the maximum color ratio is greater than the preset threshold and less than the preset threshold), which can make the light driving data of the lamp bead more compatible with the image information, and further Improve user experience.
  • Fig. 6 is a structural block diagram of the lighting control system of the present application.
  • the system includes an electronic device 1 and a light strip 2.
  • the light strip 2 includes several sections of light strips, and each section of the sub-light strips corresponds to several lamp beads;
  • the electronic device 1 stores a light strip control program, and when the light strip control program is executed by the electronic device, the steps of the method for controlling the light strip as described above are realized.
  • the present application also proposes an electronic device, which includes: a memory, a processor, and a light strip control program stored in the memory and running on the processor, and the light strip control program is controlled by the When the above-mentioned processor is executed, the steps of the method for controlling the light strip as described above are realized.
  • the present application also proposes a computer-readable storage medium, on which a light strip control program is stored, and when the light strip control program is executed by a processor, the above-mentioned light strip control is realized. method steps.
  • FIG. 7 is a schematic structural diagram of a light strip system according to an embodiment of the present application.
  • the light strip system includes an electronic device 1 and a light strip 2 .
  • the electronic device 1 includes a data interaction module 101
  • the light strip 2 includes a light strip controller 201 and several lamp beads 202 .
  • the data interaction module 101 is used to send light strip control information to the light strip controller 201
  • the light strip controller 201 is connected to the data interaction module 101 to receive the light strip control information and convert the light strip control information into the first light strip Control command, and send the first light strip control command to the lamp bead 202
  • the lamp bead 202 is connected to the light strip controller 201, for receiving the first light strip control command, and according to the received first light strip control command, execute the corresponding Show actions.
  • the existing ambient light is usually independently set on the outline, edge, background wall or related decorations of the electronic device 1, and the ambient light often adopts a fixed display color and display mode, and has no connection with the electronic device 1 , so that the user cannot enjoy the best ambient light effect.
  • a data interaction module 101 can be set at the electronic device 1.
  • the data interaction module 101 obtains the control information of the light strip associated with the electronic device
  • the belt control information controls the display action of the lamp bead 202 on the light strip 2 , and then achieves the display of the lamp bead 202 according to the electronic device 1 , and realizes the display effect of the ambient light of the electronic device 1 .
  • the light strip controller 201 receives the light strip control information, and converts the light strip control information into a first light strip control command, and when the first light strip control command is sent to the light bead 202, it can make the light bead 202 Execute the display action corresponding to the light strip control information.
  • the electronic device 1 may be any electronic device 1 capable of interacting with a user, such as a TV, a stereo, a smart phone, or a computer, and this embodiment does not limit it.
  • the light strip system further includes a wireless communication module 3 , and the wireless communication module 3 is connected to the data interaction module 101 and the light strip controller 201 respectively.
  • the light strip 2 can be set on the outline and edge of the electronic device 1 Such as the position around the casing of the electronic device 1 , the light strip 2 can directly obtain the first light strip control instruction through the data interaction module 101 electrically connected to the light strip 2 .
  • the light strip 2 is set at a certain distance from the electronic device 1.
  • the light strip 2 is set on the background wall of the TV in the living room.
  • the light strip control information sent out controls the display of the light beads 202.
  • the wireless communication module 3 is used to transmit the light strip control information between the light strip 2 and the TV in the living room.
  • the wireless communication module 3 can be a communication module such as a Bluetooth communication module, an infrared communication module, a WIFI communication module, etc. that can establish wireless transmission between the light strip 2 and the data interaction module 101, which is not limited in this embodiment.
  • the wireless communication module 3 can be set in the light strip 2 , for example integrated with the light strip controller 201 , can also be set independently from the electronic device 1 and the light strip 2 , and can also be set in the electronic device 1 .
  • a light strip system in this embodiment, includes an electronic device 1, a wireless communication module 3 and a light strip 2, the electronic device 1 includes a data interaction module 101, and the light strip 2 includes a light strip controller 201 and several lamp beads 202, the data interaction module 101 is used to directly send the light strip control information to the light strip controller 201, or send the light strip control information to the light strip controller 201 through the wireless communication module 3, and the light strip controller 201 receives The light strip control information generates a first light strip control command to control the light bead 202 to perform a corresponding display action.
  • the light strip controller 201 receives the light strip control information transmitted by electrical connection or wireless connection, and controls the lamp beads 202 to perform corresponding display actions as the ambient light of the electronic device 1, which can improve the communication between the ambient light and the electronic device 1.
  • the interactive connection enhances the user's audition experience.
  • FIG. 8 is a schematic structural diagram of a light strip system according to another embodiment of the present application.
  • the light strip system includes: an electronic device 1 and a light strip 2 , the electronic device 1 includes a data interaction module 101 , and the light strip 2 includes a light strip controller 201 and several lamp beads 202 .
  • the electronic device 1 can usually play audio or video.
  • the display action of the lamp bead 202 can be performed by collecting the playback audio or video of the electronic device 1. Take control.
  • the electronic device 1 may further include an audio control information collector 102 and a central processing unit 104.
  • the audio control information collector 102 is connected to the central processing unit 104 for collecting audio control information of the electronic device 1.
  • the central processing unit 104 is connected to The data interaction module 101 is used to convert the audio control information into light strip control information and send it to the data interaction module 101 .
  • the data interaction module 101 can also be integrated in the central processing unit 104 .
  • the audio control information collector 102 can transmit the audio control information to the central processing unit 104 after collecting the audio control information, and the central processing unit 104 transmits the audio control information according to preset rules. It is converted into light strip control information.
  • the audio control information may be audio related information such as audio volume information or frequency information; the light strip control information is display related information such as the display interval or display brightness of the lamp bead 202 corresponding to the audio control information.
  • the audio control information collector 102 can use an audio module with a built-in microphone, such as the E200-470A17S audio collection module, or can use an external microphone and configure a corresponding audio amplifier, such as the ROHM-BH1418FV-E2 audio amplifier module .
  • the audio control information collector 102 may also be any other collector capable of collecting audio from the electronic device 1 , which is not limited in this embodiment.
  • the audio control information collector 102 can also be integrated in the central processing unit 104 .
  • the electronic device 1 may further include a picture control information collector 103 and a central processing unit 104.
  • the picture control information collector 103 is connected to the central processing unit 104 for collecting picture control information of the electronic device 1.
  • the central processing unit 104 is connected to The data interaction module 101 is used to convert the screen control information into light strip control instructions and send them to the data interaction module 101 .
  • the picture control information collector 103 can transmit the picture control information to the central processing unit 104 after collecting the picture control information, and the central processing unit 104 collects the picture control information according to preset rules. It is converted into light strip control information.
  • the picture control information may be picture brightness information or picture color information
  • the light strip control information is display related information such as the display interval or display brightness of the lamp bead 202 corresponding to the picture control information.
  • the image control information collector 103 can adopt a high-performance image acquisition module, such as VS-MC1208VD1, or a low-power color acquisition module, such as a BH1745NUC color sensor.
  • the screen control information collector 103 may also be any other collector capable of collecting the screen of the electronic device 1 , which is not limited in this embodiment.
  • the picture control information collector 103 can also be integrated in the central processing unit 104 .
  • the electronic device 1 may further include a mode selection component 105, the mode selection component 105
  • the component 105 is connected to the central processing unit 104, and is used to receive the user's selection action, generate a mode selection instruction according to the selection action, and send the mode selection instruction to the central processing unit 104, and the central processing unit 104 is also used to collect corresponding audio according to the mode selection instruction information or screen information.
  • the interaction module 101 drives the light strip controller 201 to control the light bead 202 to perform a display action according to the playing information, so as to realize the effect that the light bead 202 is associated with the content played by the electronic device 1 .
  • the mode selection component 105 collects the user's selection action, and selects the component of the device that collects the playback information according to the user's selection action.
  • the mode selection component 105 can be an interactive device such as a button, a switch, or a touch screen. limit.
  • the mode selection component 105 can also be set independently of the electronic device 1 .
  • a light strip system in this embodiment, includes an electronic device 1, a wireless communication module 3 and a light strip 2, and the electronic device 1 includes a data interaction module 101, an audio information collector, and a screen information collector , a mode selection component 105 and a central processing unit 104 , the light strip 2 includes a light strip controller 201 and several light beads 202 .
  • the mode selection component 105 installed in the electronic device 1 is used to select the corresponding broadcast information collector of the electronic device 1, so as to control the lamp bead 202 to perform display actions following the broadcast information of the electronic device 1, so as to achieve the effect of the ambient light of the electronic device 1 , which further improves the user experience of the light belt system.
  • FIG. 9 is a schematic structural diagram of a light strip system according to another embodiment of the present application.
  • the light strip system includes an electronic device 1, a wireless communication module 3 and a light strip 2, and the electronic device 1 includes a data interaction module 101, an audio information collector, a picture information collector, a mode selection component 105 and a central processing unit 104 , the light strip 2 includes a light strip controller 201 and several light beads 202 .
  • the lamp bead 202 can not only perform corresponding display along with the audio or video played by the electronic device 1, but also preset various display rules, and The display action corresponding to the display rule is executed according to the user's selection.
  • the light strip system also includes a light strip remote control 4, which is connected to the light strip controller 201.
  • the light strip remote control 4 is used to collect user remote control actions, and generate a second light strip control according to the user's remote control actions. command, and send a second light strip control command to the light strip controller 201 .
  • the user can not only choose the light strip controller 201 to control the display and execution of the light bead 202 according to the playback content of the electronic device 1, but also choose the light strip controller 201 to control the display according to the preset control instructions. Control the display execution of the lamp bead 202.
  • the light strip remote control 4 is set in the light strip system, and the user's remote control action is collected through the light strip remote control 4, and the user's remote control action directly generates a second light strip control command and sends it to the light strip controller 201, thereby controlling
  • the lamp beads 202 are displayed according to preset rules.
  • the lamp bead 202 in order to achieve flexible display control of the lamp bead 202 as an ambient light, can not only perform corresponding display along with the audio or video played by the electronic device 1, but also preset various display rules , and execute the display action corresponding to the display rule according to the user's control voice.
  • the light strip 2 also includes a sound collector 203, the sound collector 203 is connected to the light strip controller 201, and the sound collector 203 is used to collect sound information, and generate a third light strip control command according to the sound information, and send a signal to the light strip.
  • the strip controller 201 sends a third light strip control instruction.
  • the user can not only choose the light strip controller 201 to control the display and execution of the light bead 202 according to the playback content of the electronic device 1, but also choose the light strip controller 201 to control the display and execution of the light bead 202 according to the preset voice command Control the display execution of the lamp bead 202.
  • a sound collector 203 is set in the light strip 2, and the user control voice is collected by the sound collector 203, and the user control voice is directly generated into a third light strip control command and sent to the light strip controller 201, thereby controlling the lamp bead.
  • 202 is displayed according to preset rules.
  • the preset rules may include specified color display, specified shape display, specified position display, brightness gradient display, lamp bead 202 transfer display, etc. This embodiment does not specifically limit the display of the preset rules of the lamp bead 202 .
  • lamp beads 202 in order to improve the atmosphere display effect brought by the lamp beads 202 to the electronic device 1, several lamp beads 202 can be arranged in a line or U shape, and several lamp beads 202 surround the electronic device 1. All around or back panel setup. As shown in Figure 10, when the electronic device is a TV, the lamp beads are arranged in a straight line on the back panel. As shown in Figure 11, when the electronic device is a TV, the lamp beads are arranged in a U-shaped arrangement on the back panel Schematic diagram of the structure.
  • the lamp bead 202 performs a display action following the use of the electronic device 1 , further improving the atmosphere display effect of the light strip system.
  • the arrangement of the lamp beads 202 may include a straight shape, a U shape, a cross shape, a wave shape or any shape, and this embodiment does not specifically limit the arrangement of the lamp beads 202 .
  • a light strip system in this embodiment, includes an electronic device 1, a wireless communication module 3, a light strip remote control 4 and a light strip 2, the electronic device 1 includes a data interaction module 101, an audio information collection device, screen information collector, mode selection component 105 and central processing unit 104 , the light strip 2 includes a sound collector 203 , a light strip controller 201 and several lamp beads 202 .
  • This embodiment can not only control the display of the lamp bead 202 according to the playback content of the electronic device 1, but also control the display of the lamp bead 202 according to preset rules, further realizing the flexible control of the light strip system and enhancing the user's listening experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

本申请公开一种灯带控制方法,用于电子设备,电子设备与灯带连接,灯带包括若干段子灯带,每段子灯带对应若干灯珠;方法包括以下步骤:获取电子设备播放的目标节目信息和与目标节目信息对应的目标灯光控制策略;根据目标节目信息、目标灯光控制策略、灯带的形状和每段子灯带对应的灯珠,确定若干灯珠对应的灯光驱动数据;将若干灯光驱动数据发送至灯带,以使灯带根据若干灯光驱动数据对若干灯珠进行显示控制。本申请还公开一种灯带系统、电子设备以及存储介质。

Description

灯带控制方法、灯带系统、电子设备以及存储介质
优先权信息
本申请要求于2021年12月17日申请的、申请号为202123203865.2,以及2021年12月31号申请的、申请号为202111681425.X的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及灯光控制技术领域,特别涉及一种灯带控制方法、灯带系统、电子设备以及存储介质。
背景技术
电子设备深入千家万户,在丰富人们的业余文化生活,传播文化、知识和新闻消息等方面发挥了重要作用,随着人们对电子设备的试听体验要求越来越高,为电子设备安装氛围灯(又叫灯带)成为了一种可行的方式。
目前,现有技术中,电子设备与灯带连接,由电子设备为灯带提供电源,灯带按照预置的显示策略,进行灯带的显示控制。
然而,灯带的显示控制是独立于电子设备的,使得电子设备与灯带之间缺少互动,灯带提升用户试听体验的效果不佳。因此,如何提高灯带与电子设备之间的联系与互动,提高用户试听体验,是一个亟需解决的技术问题。
发明内容
本申请的主要目的是提供一种灯带控制方法、装置、电子设备、系统以及存储介质,旨在解决现有技术中如何提高灯带与电子设备之间的联系与互动的技术问题。
为实现上述目的,本申请提出一种灯带控制方法,用于电子设备,所述电子设备与灯带连接,所述灯带包括若干段子灯带,每段所述子灯带对应若干灯珠;所述方法包括以下步骤:
获取所述电子设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略;
根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据;
将若干所述灯光驱动数据发送至所述灯带,以使所述灯带根据若干所述灯光驱动数据对若干所述灯珠进行显示控制。
此外,为实现上述目的,本申请还提出了一种灯带系统,包括电子设备和灯带,所述电子设备包括数据交互模块,所述灯带包括灯带控制器和若干灯珠,其中:
所述数据交互模块,用于向所述灯带控制器发送灯带控制信息;
所述灯带控制器,连接所述数据交互模块,用于接收所述灯带控制信息,并将所述灯带控制信息转化为第一灯带控制指令,以及向所述灯珠发送所述第一灯带控制指令;
所述灯珠,连接所述灯带控制器,用于接收所述第一灯带控制指令,以及根据接收的所述第一灯带控制指令,执行对应的显示动作。
此外,为实现上述目的,本申请还提出了一种电子设备,所述电子设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行灯带控制程序,所述灯带控制程序被所 述处理器执行时实现如上述任一项所述的灯带控制方法的步骤。
此外,为实现上述目的,本申请还提出了一种存储介质,所述存储介质上存储有灯带控制程序,所述灯带控制程序被处理器执行时实现如上述任一项所述的灯带控制方法的步骤。
本申请技术方案提出了一种灯带控制方法,用于电子设备,电子设备与灯带连接,灯带包括若干段子灯带,每段子灯带对应若干灯珠;方法包括以下步骤:获取电子设备播放的目标节目信息和与目标节目信息对应的目标灯光控制策略;根据目标节目信息、目标灯光控制策略、灯带的形状和每段子灯带对应的灯珠,确定若干灯珠对应的灯光驱动数据;将若干灯光驱动数据发送至灯带,以使灯带根据若干灯光驱动数据对若干灯珠进行显示控制。
利用本申请的方法,电子设备自动根据目标节目信息、灯带的形状和每段子灯带对应的灯珠,获得灯带中多个灯珠对应的灯光驱动数据,以使灯带利用灯光驱动数据对若干灯珠进行显示控制,实现了电子设备与灯带的交互控制。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。
图1为本申请实施例方案涉及的硬件运行环境的电子设备结构示意图;
图2为本申请灯带控制方法的流程示意图;
图3为灯带安装位置的示意图;
图4为灯带安装位置的另一示意图;
图5为本发明灯带控制装置的结构框图;
图6为本申请灯光控制系统的结构框图;
图7为本申请一实施例的灯带系统的结构示意图;
图8为本申请的另一实施例的灯带系统的结构示意图;
图9为本申请的又一实施例的灯带系统的结构示意图;
图10为本申请灯带系统中一字型灯珠排列的结构示意图;
图11为本申请灯带系统中U字型灯珠排列的结构示意图。
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参照图1,图1为本申请实施例方案涉及的硬件运行环境的电子设备结构示意图。
通常,电子设备包括:至少一个处理器301、存储器302以及存储在所述存储器上并可在所述处理器上运行的灯带控制程序,所述灯带控制程序配置为实现如前所述的灯带控制方法的步骤。
处理器301可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器301可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器301也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器301可以 在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。处理器301还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关灯带控制方法操作,使得灯带控制方法模型可以自主训练学习,提高效率和准确度。
存储器302可以包括一个或多个存储介质,该存储介质可以是非暂态的。存储器302还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器302中的非暂态的存储介质用于存储至少一个指令,该至少一个指令用于被处理器301所执行以实现本申请中方法实施例提供的灯带控制方法。
在一些实施例中,终端还可选包括有:通信接口303和至少一个外围设备。处理器301、存储器302和通信接口303之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与通信接口303相连。具体地,外围设备包括:射频电路304、显示屏305和电源306中的至少一种。
通信接口303可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器301和存储器302。在一些实施例中,处理器301、存储器302和通信接口303被集成在同一芯片或电路板上;在一些其他实施例中,处理器301、存储器302和通信接口303中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路304用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路304通过电磁信号与通信网络以及其他通信设备进行通信。射频电路304将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路304包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路304可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:城域网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路304还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
显示屏305用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏305是触摸显示屏时,显示屏305还具有采集在显示屏305的表面或表面上方的触摸信号的能力。该触摸信号可以作为控制信号输入至处理器301进行处理。此时,显示屏305还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏305可以为一个,电子设备的前面板;在另一些实施例中,显示屏305可以为至少两个,分别设置在电子设备的不同表面或呈折叠设计;在再一些实施例中,显示屏305可以是柔性显示屏,设置在电子设备的弯曲表面上或折叠面上。甚至,显示屏305还可以设置成非矩形的不规则图形,也即异形屏。显示屏305可以采用LCD(LiquidCrystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
电源306用于为电子设备中的各个组件进行供电。电源306可以是交流电、直流电、一次性电池或可充电电池。当电源306包括可充电电池时,该可充电电池可以支持有线充电或无线充电。该可充电电池还可以用于支持快充技术。
本领域技术人员可以理解,图1中示出的结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
此外,本申请实施例还提出一种存储介质,所述存储介质上存储有灯带控制程序,所述灯带控制程序被处理器执行时实现如上文所述的灯带控制方法的步骤。因此,这里将不再进行赘述。另外,对采用相同方法的有益效果描述,也不再进行赘述。对于本申请所涉及的存储介质实施例中未披露的技术细节,请参照本申请方法实施例的描述。确定为示例,程序指令可被部署为在一个电子设备上执行,或者在位于一个地点的多个电子设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个电子设备上执行。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一取存储介质中,该程序在执行时, 可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。
参照图2,图2为本申请灯带控制方法的流程示意图,所述方法包括以下步骤:
步骤S11:获取所述电子设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略。
需要说明的是,本申请的执行主体是电子设备,电子设备安装有灯带控制程序,电子设备执行灯带控制程序时,实现本申请的灯带控制方法的步骤。目标节目信息通常是指电子设备正在输出的节目信息,可以是图像信息(尤其是指视频中视频帧信息,非视频中的图像确定为后文的应用界面信息)或声音信息等。
在本申请中,所述电子设备与灯带连接,所述灯带包括多个灯珠。灯带可以是任何形式的氛围灯,本申请不做限定,通常,一个灯珠对应R单元(红色单元)、G单元(绿色单元)和B单元(蓝色单元),通过输出不同的R值、G值和B值,灯珠呈现不同颜色。灯带包括若干段,每一段为一个子灯带,每个子灯带会对应若干灯珠。
参照图3-图4,图3为灯带安装位置的示意图,图4为灯带安装位置的另一示意图。图3中,灯带1设置于电子设备2的上方,灯带1呈现一字型,此时对应一段子灯带,图4中,灯带1设置于电子设备2的周边,呈现倒U形,此时对应三段子灯带。在其他实施例中,用户还可以基于需求设定其他的位置关系,本申请不做限定,一字型和倒U形只是本申请的示例,例如,灯带包围电子设备的四个侧边等。
在一些实施例中,灯带可以与电子设备直接接触,也可以将灯带设置于电视机附近的支撑结构。通常,灯带具有多个灯珠和用于控制多个灯珠的微处理器(MCU),通过微处理器对多个灯珠进行控制,灯珠可以是LED灯珠。
灯带可以具有蓝牙模块,用于通过蓝牙模块与电子设备的蓝牙模块连接,进而实现灯带与电子设备的通信。
在灯带安装完成时,灯带接入电子设备之后,电子设备的灯带控制程序可以输出设置界面,用户可以在此界面上完成灯带的设置。将灯带设置的实际形状(例如上述灯带一字型和倒U形等)录入该灯带控制程序,例如,灯带一字型放置,则需要选择灯带的形状为一字型,又如,灯带一字型放置,则需要选择灯带的形状为倒U型,并确定每个边的灯珠数量。
在一些实施例中,灯带的长度可能较大,用户设置好灯带后,可以设置灯带可用灯珠和不可用灯珠,并在灯带控制程序输入可用灯珠可不可用灯珠。可用灯珠即为需要进行控制的灯珠,不可用灯珠即为不需要控制的灯珠,不可用灯珠可能是由于灯带太长,导致灯带中存在不需要控制的灯珠被隐藏在某些区域。
步骤S11中的多个灯珠即是指可用灯珠,不包括上述情况中的不可用灯珠。
步骤S12:根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据。
步骤S13:将若干所述灯光驱动数据发送至所述灯带,以使所述灯带根据若干所述灯光驱动数据对若干所述灯珠进行显示控制。
需要根据目标节目信息,确定出灯带对应的初始驱动数据,初始驱动数据可以包括多个灯珠各自的初始驱动数据,然后再根据灯带的形状和每段所述子灯带对应的灯珠,对每个灯珠的初始驱动数据进行适应性调整,获得各个灯珠的灯光驱动数据。
需要说明的是,不同的目标节目信息对应的初始驱动数据不同,从而使得多个所述灯珠对应的多个灯光驱动数据不同;对于相同的节目信息对应的相同的初始驱动数据,在灯带的形状不同时,对应的多个所述灯珠对应的多个灯光驱动数据也不同;对于相同的节目信息对应的相同的初始驱动数据,在灯带的形状相同时,子灯带对应的灯珠的数量不同时,对应的多个所述灯珠对应的多个灯光驱动数据也不同。
对于灯带中的多个灯珠(可用灯珠),均具有对应的灯珠编号,电子设备根据初始驱动数据、灯带的形状和子灯带对应的灯珠,获得多个灯珠对应的多个灯光驱动数据时,多个灯 光驱动数据与多个灯珠各自灯珠编号是对应的。在灯带获得多个灯光驱动数据后,根据灯珠编号,在多个灯光驱动数据确定出各个灯珠的灯光驱动数据,以对多个灯珠进行显示控制。
本申请技术方案提出了一种灯带控制方法,用于电子设备,电子设备与灯带连接,灯带包括若干段子灯带,每段子灯带对应若干灯珠;方法包括以下步骤:获取电子设备播放的目标节目信息和与目标节目信息对应的目标灯光控制策略;根据目标节目信息、目标灯光控制策略、灯带的形状和每段子灯带对应的灯珠,确定若干灯珠对应的灯光驱动数据;将若干灯光驱动数据发送至灯带,以使灯带根据若干灯光驱动数据对若干灯珠进行显示控制。
利用本申请的方法,电子设备自动根据目标节目信息、灯带的形状和每段子灯带对应的灯珠,获得灯带中多个灯珠对应的灯光驱动数据,以使灯带利用灯光驱动数据对若干灯珠进行显示控制,实现了电子设备与灯带的交互控制。
进一步的,在根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据的步骤之前,所述方法还包括:接收针对灯带形状选择指令;根据所述灯带形状选择指令,确定所述灯带的形状;接收灯珠数量选择指令;根据所述灯带的形状和所述灯珠数量选择指令,获得所述若干段子灯带以及每段所述子灯带对应的灯珠数量。
在灯带安装完成时,灯带接入电子设备之后,电子设备的灯带控制程序可以输出设置界面,用户可以在此界面上完成灯带的设置。接收形状选择指令,将灯带设置的实际形状(例如上述灯带一字型和倒U形等)录入该灯带控制程序,例如,灯带一字型放置,则需要选择灯带的形状为一字型,又如,灯带一字型放置,则需要选择灯带的形状为倒U型。
对于不同的灯带形状,对应的子灯带段数不同,根据形状选择指令,设置好的灯带形状,继续对每段子灯带发送灯珠数量选择指令,以确定每个子灯带的灯珠数量。
例如,灯带形状确定为一字型,则只需要针对一字型的灯带发送一个灯珠数量选择指令,即可确定一字型灯带的灯珠数量;如果灯带的形状是两条边或以上(例如倒U型为三条边,每条边为一段子灯带),需要根据灯带形状选择指令确定每边的长短,以及根据每个边的灯珠数量选择指令,确定每边用于显示的灯珠数量,即一个边对应一个子灯带,一个子灯带对应一个灯珠数量选择指令。
进一步的,所述获取所述电子设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略的步骤之前,所述方法还包括:确定所述目标节目信息的应用场景信息;根据灯光控制策略集,确定出与所述应用场景信息对应的目标灯光控制策略,所述灯光控制策略集包括不同应用场景信息对应的灯光控制策略。
在本申请中,应用场景信息包括声音场景、图像场景和氛围灯场景等,其中,在氛围灯场景中,电子设备的节目信息的改变,不会影响到灯珠的灯光驱动数据的改变,灯珠的灯光驱动数据具有固定的氛围灯策略,该固定的氛围灯策略可以基于用户的设置获得;声音场景中,电子设备的目标节目信息可以包括音乐信息或其他声音信息,图像场景中,电子设备的目标节目信息可以包括图像信息(尤其是指视频信息中的视频帧信息)。电子设备根据目标节目信息,自动确定出应用场景信息。在一些实施例中,用户还可以手动选择应用场景信息,电子设备则直接进行根据灯光控制策略集,确定出与所述应用场景信息对应的目标灯光控制策略的步骤。
通常,对于没有声音的应用界面(虽然也是图像信息,但是不是视频中的图像信息),灯光控制策略可能确定为氛围灯场景对应的氛围灯控制策略(上文叙述的固定的氛围灯策略)。
然后,电子设备根据应用场景信息,在灯光控制策略集中确定出对应的灯光控制策略——目标灯光控制策略。灯光控制策略集通常包括声音控制策略、图像控制策略和氛围灯控制策略,根据应用场景信息(氛围灯场景、声音场景和图像场景中的某一种),确定出对应的目标灯光控制策略。
然后,根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据。
进一步的,所述目标节目信息包括声音信息;所述根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的多个灯光驱动数据的步骤,包括:将所述声音信息进行切片,获得多个声音片段;将所述声音片段输入音灯关联模型,获得所述声音片段对应的灯光变化数据;根据所述灯光变化数据,获得声音灯光数据;根据声音灯光数据、所述灯带的形状和每段所述子灯带对应的灯珠,获得若干所述灯珠对应的灯光驱动数据。
声音控制策略即是指上文叙述的,通过声音信息,获得多个灯光驱动数据的策略。其中,音灯关联模型可以是任何形式的模型,例如神经网络模型。
获取训练声音信息和训练声音信息对应的训练灯光变化数据,然后利用训练声音信息和训练灯光变化数据对初始模型进行训练,以获得音灯关联模型。
对于每一个声音片段对应一个灯光变化数据,一个声音片段对应的播放时长取值不宜过大,以避免输入音灯关联模型的声音片段过大,导致获得的灯光变化数据的分析速度慢,分析准确率低。
每一个声音片段对应一个声音播放时长,对应的灯光变化数据则是在该声音播放时长内,对应的灯光颜色(包括RGB三个单元各自的颜色)的变化。将各个声音片段的灯光变化数据,按照多个声音片段的连接方式进行连接,即获得声音灯光数据。
对于每一个灯珠,可以对应一个声音灯光数据,多个灯珠对应各自的声音灯光数据。
然后,根据所述灯带的形状和灯珠数量,对各个灯珠的声音灯光数据进行适度的调整,从而获得调整后的声音灯光数据——灯光驱动数据。
例如,对于倒U形的灯带,两侧的灯珠增加灯光驱动数据的值(RGB的具体值)等,顶部的灯珠不作调整;而对于一字型灯带,则整体不作调整。
当声音灯光数据相同时,灯珠数量不同,灯光驱动数据可能不同。又如,对于倒U形的灯带,两侧的灯珠数量小于第一预设数量时,增加两侧灯珠的灯光驱动数据的值(RGB的具体值)等,两侧的灯珠数量不小于第一预设数量时,两侧灯珠不调整等。
可以理解的是,上述例子只是示例性的描述,用户可以基于需求,设定具体的第一预设数量和第二预设数量,也可以基于需求,确定灯珠数量与灯光驱动数据的变化关系,本申请不做限定。
在一些实施例中,电子设备创建一个录音线程,实例化一个AudioRecord来持续地从电子设备芯片内部的声音通路中把声音信息录制下来。录制的时候为通用接口,所以声音信息为48KHz采样的,考虑到蓝牙灯带声音效果并不需要这么高精度的声音数据,同时兼顾蓝牙带宽问题,需要把48KHz采样的声音信息重新按8KHz采样。重新采样后的数据保存到一个ring buffer中(说明:此ring buffer用于循环存储8KHz采样音频数据,假设buffer大小为N字节,一开始从0开始存储到N字节,满了之后,循环从0开始存储);
电子设备创建另外一个线程,此线程为声音信息发送线程,周期性地从ring buffer中取出声音信息并按协议要求封装后,通过蓝牙接口将数据发送给灯带,由灯带自己基于声音信息进行显示控制;
在上面两个线程中,ring buffer为公共资源,所以在读写数据时要加线程锁,以确保数据安全。同时在ring buffer的读和写动作中,要维护好已保存的声音信息字节数的变量,写入数据时将已保存的声音信息字节数对应加大,读取后要对应减小此字节数。
进一步的,所述目标节目信息包括图像信息;所述根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据的步骤,包括:根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息;根据所述灯带的形状和每段所述子灯带对应的灯珠,在所述截屏图像信息中确定出分析区域;根据所述分析区域的像素值,获得所述 灯珠对应的灯光驱动数据。
其中,所述根据所述分析区域的像素值,获得所述灯珠对应的灯光驱动数据,具体包括:将所述分析区域分成若干子区域;获取所述子区域内的全部像素值的平均值;将所述平均值作为与所述子区域对应的所述灯珠的灯光驱动数据。
具体的,当灯带为一字型时(包括一段子灯带),要把屏幕顶部200个像素高的内容转换为RGB数据给灯带。如下:
截屏图像信息即为目标节目信息的播放界面进行截图操作获得的截图,该例子中可以是预设尺寸的第一图片(例如1920x1080的图片pic1),该第一图片为ARGB(A为alpha值,RGB为此像素点的RGB颜色)格式的,处理时可以忽略alpha值,直接对RGB数值进行处理,取出pic1上边沿200个像素高的全部像素点,得到分辨率为1920x200的图片pic2——中间图像;
根据灯珠数量num1,将pic2水平划分为num1个子区域,每一个子区域的宽度为1920/num1,高度为200。对每一个子区域的所有像素点的R/G/B数值分别累加,得到sum1,将累加和sum1除以该子区域总像素点(1920*200/num1)得到这个子区域的R/G/B平均值avgN(N为1到num1),一个子区域的R/G/B平均值为该子区域对应的灯珠的灯光驱动数据。
当灯带为倒U型时(包括三段子灯带,左侧一段、顶部一段和右侧一段),要把屏幕左边200个像素宽、顶部200个像素高和右边200个像素宽的内容转换为RGB数据给灯带,步骤如下:
截屏图像信息即为目标节目信息的播放界面进行截图操作获得的截图,该例子中可以是预设尺寸的第二图片(例如1920x1080的图片pic3),第二图片为ARGB(A为alpha值,RGB为此像素点的RGB颜色)格式的,处理时可以忽略alpha值,直接对RGB数值进行处理;
将pic3顺时针旋转90度得到pic4,取出pic4上边沿200个像素高内容得到分辨率为1080x200的图片pic5——中间图像;根据“倒U型”模式下的左边灯珠数量numLeft,将pic5水平划分为numLeft个子区域,每一个子区域的宽度为1080/numLeft,高度为200;
取出pic3上边沿200个像素高内容,得到分辨率为1920x200的图片pic6——中间图像,根据一字型模式下的灯珠数量numTop,将pic6水平划分为numTop个子区域,每一个子区域的宽度为1920/numTop,高度为200;
将pic3逆时针旋转90度得到pic7,取出pic7上边沿200个像素高内容得到分辨率为1080x200的图片pic8——中间图像,根据倒U型模式下的右边灯珠数量numRight,将pic8水平划分为numRight个子区域,每一个子区域的宽度为1080/numRight,高度为200;
对上面步骤划分出来的每一个子区域的所有像素点的R/G/B数值分别累加,得到sum,将累加和sum除以该子区域总像素点数量,计算后得到这个子区域的R/G/B平均值avgN,一个子区域的R/G/B平均值为该子区域对应的灯珠的灯光驱动数据。
其中,左边边沿图像子区域的总像素点为:1080*200/numLeft,顶边边沿图像子区域的总像素点为:1020*200/numTop。右边边沿图像子区域的总像素点为:1080*200/numRight。
基于上文描述可知,每段子灯带可能对应多个子区域,每个子区域对应的若干灯珠的灯光驱动数据是相同的。通常,每个灯珠对应一个子区域。
进一步的,在所述根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息之前,所述方法还包括:确定所述图像信息的最大颜色占比;在所述最大颜色占比不超过预设阈值时,执行所述根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息的步骤。
其中,所述确定所述图像信息的最大颜色占比的步骤,包括:获取所述图像信息对应的直方图数据;根据所述直方图数据,获得颜色数据;根据所述颜色数据,获得最大颜色占比。
在该实施例中,图像信息尤其是指视频对应的视频帧信息,也即,在该实施例中,电子设备输出的是视频。从电子设备的驱动中获取直方图数据——HSI直方图(H色调直方图、S饱和度直方图和I亮度直方图)。
HSI的定义如下:色调H(Hue):与光波的频率有关,它表示人的感官对不同颜色的感受,如红色、绿色、蓝色等,它也可表示一定范围的颜色,如暖色、冷色等。饱和度S(Saturation):表示颜色的纯度,纯光谱色是完全饱和的,加入白光会稀释饱和度。饱和度越大,颜色看起来就会越鲜艳,反之亦然。亮度I(Intensity):对应成像亮度和图像灰度,是颜色的明亮程度。
电子设备芯片的可以直接提供HSI的直方图信息。从芯片驱动获取得到的HSI直方图中,色调直方图是一个32阶的数组(不同芯片,可能色调阶数不同),不同的颜色,会体现在色调直方图上的不同阶上。例如,纯红色(255,0,0)画面,在色调直方图hueHist数组上的数据为:255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0。hueHist数组中,hueHist[0]为最大值255,其他全部为0,表示所有当前画面占比最多的颜色的色调在第0阶上。32阶的色调直方图,将HSI颜色图解中的某一亮度平面下截取出来的彩色圆盘(360°),平均划分为32个角度空间,第0阶表示从0°到11.25°。
在HSI颜色空间图解中:0°为红色(Red),60°为黄色(Yellow),120°为绿色(Green),180°为青色(Cyan),240°为蓝色(Blue),300°为洋红色(Magenta)两个角度中间的颜色为过度色,例如从0°到60°,是从红色慢慢变化到黄色的。所以hueHist[0]数值最大,表示当前画面中占比最多的颜色为红色。
饱和度(S)的直方图也是一个32阶的数组(不同芯片,可能阶数不同),不同颜色的饱和度,会体现在饱和度直方图上的不同阶上。例如,纯红色(255,0,0)画面,在饱和度直方图satHist数组上的数据为:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255。satHist数组中,satHist[31]为最大值255,其他全部为0,表示所有当前画面中占比最多的颜色的饱和度成分全部在第31阶上。32阶的饱和度直方图,将0%到100%的饱和度的平均划分为32个级别,第0阶表示从0到3.125%的饱和度成分。哪一阶的数值最大,就表示画面中占比最多的颜色的饱和度在这一阶,所以satHist[31]为最大值255,表示当前画面的颜色饱和度在96.876%到100%之间。
亮度(I)的直方图也是一个32阶的数组(不同芯片,可能阶数不同),不同的亮度,会体现在亮度直方图上的不同阶上。例如,纯红色(255,0,0)画面,在亮度直方图intHist数组上的数据为:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0。intHist数组中,intHist[6]为最大值255,其他全部为0,表示在当前画面中占比最多的颜色的亮度成分在第6阶上。32阶的亮度直方图,将0%到100%的亮度平均划分为32个级别,第0阶表示从0到3.125%的亮度成分。那一阶的数值最大,就表示画面中占比最多的颜色的亮度在这一阶,所以intHist[15]为最大值255,表示当前画面占比最多的颜色的亮度在46.875到50%之间。
具体的,采用以下步骤进行颜色数据的获得(颜色数据包括红色数据R、蓝色数据B和绿色数据G):
对于色调直方图,先计算色调直方图中数据总和hueSum,再找出色调直方图中的最大值hueMax及对应在色调直方图数组中的序号hueIndex,计算hueMax在hueSum中的占比(hueMax/hueSum),判断计算结果是否大于判断门限值(例如60%)。如果大于门限值,则需要计算出hueMax对应的目标色度值(色调角度),方法为:H1=360°/32*hueIndex;
对于饱和度直方图,同样计算饱和度直方图中数据总和satSum,再找出饱和度直方图中的最大值satMax及对应在饱和度直方图数组中的序号satIndex,计算satMax在satSum中的占比(satMax/satSum),判断计算结果是否大于判断门限值(例如60%)。如果大于门限值,则需要计算出satMax对应的目标饱和度值,方法为:S1=1.0/32*satIndex;
对于亮度直方图数据,同样计算亮度直方图中数据总和intSum,再找出亮度直方图中的 最大值intMax及对应在亮度直方图数组中的序号intIndex,计算intMax在intSum中的占比(intMax/intSum),判断计算结果是否大于判断门限值(例如60%)。如果大于门限值,则需要计算出intMax对应的目标亮度值,方法为:I 1=1.0/32*intIndex;
预设数据库包括多个色调区间,每一个色调区间对应一个计算策略,在本申请中,多个色调区间包括:[0°,120°)、[120°,2400°)和[240°,360°),对应的计算策略如下:
对于色调区间[0°,120°),计算策略参照公式一,公式一如下:
Figure PCTCN2022102938-appb-000001
Figure PCTCN2022102938-appb-000002
g=1-r-b
其中,r为颜色数据中的红色数据,g为颜色数据中的绿色数据,b为颜色数据中的蓝色数据。
对于色调区间[120°,240°),计算策略参照公式二,公式二如下:
H2=H1-120°
Figure PCTCN2022102938-appb-000003
Figure PCTCN2022102938-appb-000004
g=1-r-b
对于色调区间[240°,360°),计算策略参照公式三,公式三如下:
H3=H1-240°
Figure PCTCN2022102938-appb-000005
Figure PCTCN2022102938-appb-000006
g=1-r-b
在上述三个色调区间中确定出包括目标色调值的区间为选定色调区间,其对应的计算策略即为选定计算策略(是三个公式中的其中一个)。
按照上述方式获得的颜色数据为归一化为0到1范围的浮点数,需要将r、g和b分别乘以255获得对应的颜色数据,该乘以255之后的颜色数据用于多个所述灯珠对应的多个灯光驱动数据的获得,也即下文叙述的颜色数据是指按照上述三个公式获得的rgb数据乘以255之后获得的颜色数据。
颜色数据包括图像信息中各个像素点分别对应的颜色数据,因此对于目标图像,每一个像素点会对应的一个颜色数据(包括该像素点的红色数据、蓝色数据和绿色数据三者);统计具有相同颜色数据的像素点的同色像素点数量,将同色像素点数量最大的颜色数据确定为最大颜色,该最大颜色的像素点与图像信息全部像素点的比值确定为最大颜色占比。
当最大颜色占比超过预设阈值(比如60%,用户基于需求设定)时,将所述最大颜色占比对应的颜色数据作为若干所述灯珠对应的灯光驱动数据。然后利用灯带的形状和每段子灯带的灯珠数量,基于最大颜色,对每个灯珠进行颜色调整,获得每个灯珠对应的调整后的最大颜色,每个灯珠调整后的最大颜色(颜色数据的形式)即为该灯珠的灯光驱动数据。
当最大颜色占比超过预设阈值时,则按照上述方式获得对应的灯光驱动数据。
在本申请中,对于不同的应用场景信息,具有不同的灯光控制策略,同时,使得电子设备可以利用不同的灯光控制策略,获得与电子设备的目标节目信息更加匹配的灯光驱动数据,使得灯带的灯珠显示效果与电子设备的目标节目信息更加匹配,提高灯带与电子设备的互动效果,改善了用户体验。
同时,对于图像信息,本申请提出了上述两种灯光驱动数据获得方式(最大颜色占比大 于预设阈值和小于预设阈值),可以是的灯珠的灯光驱动数据与图像信息更加契合,进一步改善用户体验。
参照图5,图5为本发明灯带控制装置的结构框图,所述装置用于显示设备,所述显示设备与灯带连接,所述灯带包括多个灯珠;基于与前述实施例相同的发明构思,所述装置包括:
获取模块10,用于获取所述显示设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略;
获得模块20,用于根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据;
发送模块30,用于将若干所述灯光驱动数据发送至所述灯带,以使所述灯带根据若干所述灯光驱动数据对若干所述灯珠进行显示控制。
进一步的,所述目标节目信息包括图像信息;获得模块20,具体用于根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息;根据所述灯带的形状和每段所述子灯带对应的灯珠,在所述截屏图像信息中确定出分析区域;根据所述分析区域的像素值,获得所述灯珠对应的灯光驱动数据。
进一步的,获得模块20,具体用于将所述分析区域分成若干子区域;获取所述子区域内的全部像素值的平均值;将所述平均值作为与所述子区域对应的所述灯珠的灯光驱动数据。
进一步的,获得模块20,还用于确定所述图像信息的最大颜色占比;在所述最大颜色占比不超过预设阈值时,执行所述根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息的步骤。
进一步的,获得模块20,还用于获取所述图像信息对应的直方图数据;根据所述直方图数据,获得颜色数据;根据所述颜色数据,获得最大颜色占比。
进一步的,装置还包括:
驱动数据获得模块,用于在所述最大颜色占比超过所述预设阈值时,将所述最大颜色占比对应的颜色数据作为若干所述灯珠对应的灯光驱动数据。
进一步的,所述目标节目信息包括声音信息;获得模块20,具体用于将所述声音信息进行切片,获得多个声音片段;将所述声音片段输入音灯关联模型,获得所述声音片段对应的灯光变化数据;根据所述灯光变化数据,获得声音灯光数据;根据声音灯光数据、所述灯带的形状和每段所述子灯带对应的灯珠,获得若干所述灯珠对应的灯光驱动数据。
进一步的,装置还包括:
策略确定模块,用于确定所述目标节目信息的应用场景信息;根据灯光控制策略集,确定出与所述应用场景信息对应的目标灯光控制策略,所述灯光控制策略集包括不同应用场景信息对应的灯光控制策略。
进一步的,装置还包括:
灯带选择模块,用于接收针对灯带形状选择指令;根据所述灯带形状选择指令,确定所述灯带的形状;接收灯珠数量选择指令;根据所述灯带的形状和所述灯珠数量选择指令,获得所述若干段子灯带以及每段所述子灯带对应的灯珠数量。
需要说明的是,由于本实施例的装置所执行的步骤与前述方法实施例的步骤相同,其具体的实施方式以及可以达到的技术效果都可参照前述实施例,这里不再赘述。
利用本发明的方法,显示设备自动根据目标节目信息、灯带的形状和每段子灯带对应的灯珠,获得灯带中多个灯珠对应的灯光驱动数据,以使灯带利用灯光驱动数据对若干灯珠进行显示控制,实现了显示设备与灯带的交互控制。
另外,在本发明中,对于不同的应用场景信息,具有不同的灯光控制策略,同时,使得显示设备可以利用不同的灯光控制策略,获得与显示设备的目标节目信息更加匹配的灯光驱动数据,使得灯带的灯珠显示效果与显示设备的目标节目信息更加匹配,提高灯带与显示设 备的互动效果,改善了用户体验。
同时,对于图像信息,本发明提出了上述两种灯光驱动数据获得方式(最大颜色占比大于预设阈值和小于预设阈值),可以是的灯珠的灯光驱动数据与图像信息更加契合,进一步改善用户体验。
参照图6,图6为本申请灯光控制系统的结构框图,系统包括电子设备1和灯带2,所述灯带2包括若干段子灯带,每段所述子灯带对应若干灯珠;所述电子设备1存储有灯带控制程序,所述灯带控制程序被所述电子设备执行时实现如上文所述的灯带控制方法的步骤。
此外,本申请还提出了一种电子设备,所述电子设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行灯带控制程序,所述灯带控制程序被所述处理器执行时实现如上文所述的灯带控制方法的步骤。
此外,本申请还提出了一种计算机可读存储介质,所述计算机可读存储介质上存储有灯带控制程序,所述灯带控制程序被处理器执行时实现如上文所述的灯带控制方法的步骤。
需要说明的是,由于本实施例的系统所执行的步骤与前述方法实施例的步骤相同,其具体的实施方式以及可以达到的技术效果都可参照前述实施例,这里不再赘述。
参照图7,图7为本申请一实施例的灯带系统的结构示意图。
如图7所示,灯带系统包括电子设备1和灯带2。
具体而言,电子设备1包括数据交互模块101,灯带2包括灯带控制器201和若干灯珠202。数据交互模块101,用于向灯带控制器201发送灯带控制信息,灯带控制器201连接数据交互模块101,用于接收灯带控制信息,并将灯带控制信息转化为第一灯带控制指令,以及向灯珠202发送第一灯带控制指令,灯珠202连接灯带控制器201,用于接收第一灯带控制指令,以及根据接收的第一灯带控制指令,执行对应的显示动作。
容易理解的,现有的氛围灯通常独立设置于电子设备1的轮廓、边缘、背景墙或关联装饰物,且氛围灯往往采用固定的显示颜色和显示方式,与电子设备1之间并没有联系,导致用户不能享受到最佳的氛围灯效果。
在本实施例中,为了实现增加电子设备1与氛围灯之间的联系,可在电子设备1处设置一数据交互模块101,数据交互模块101获取电子设备1关联的灯带控制信息,利用灯带控制信息控制灯带2上灯珠202的显示动作,进而达成灯珠202根据电子设备1进行显示,实现电子设备1氛围灯的显示效果。
在此之后,灯带控制器201接收灯带控制信息,并将灯带控制信息转化为第一灯带控制指令,该第一灯带控制指令在发送至灯珠202时,能够使得灯珠202执行灯带控制信息对应的显示动作。
需要说明的是,电子设备1可以是电视、音响、智能手机、电脑等能够与用户进行交互的任何电子设备1,本实施例对此不做限制。
在一些实施例中,灯带系统还包括无线通信模块3,无线通信模块3分别连接数据交互模块101和灯带控制器201。
实际应用中,在为电子设备1设置对应的灯带2,利用灯带2根据电子设备1执行对应显示动作,以达成氛围灯显示效果时,灯带2可设置在电子设备1的轮廓、边缘等电子设备1壳体周围的位置,灯带2可通过与灯带2电连接的数据交互模块101直接获取的第一灯带控制指令。
然而,在一些情况下,灯带2设置的位置距离电子设备1有一定距离,例如在客厅电视的背景墙上设置灯带2,灯带2的灯带控制器201根据电视的数据交互模块101发出的灯带控制信息控制灯珠202的显示,此时,为了保证灯带2设置的美观,灯带2与客厅电视之间采用无线通信模块3传输灯带控制信息。
需要说明的是,无线通信模块3可以是蓝牙通信模块、红外通信模块、WIFI通信模块等能够建立灯带2与数据交互模块101之间无线传输的通信模块,本实施例对此不做限制。 无线通信模块3可以设置在灯带2中,例如与灯带控制器201集成,也可以独立于电子设备1和灯带2设置,还可以设置在电子设备1中。
在本实施例中,提供了一种灯带系统,该灯带系统包括电子设备1、无线通信模块3和灯带2,电子设备1包括数据交互模块101,灯带2包括灯带控制器201和若干灯珠202,数据交互模块101用于直接向灯带控制器201发送灯带控制信息,或通过无线通信模块3向灯带控制器201发送灯带控制信息,灯带控制器201根据接收的灯带控制信息生成第一灯带控制指令,以控制灯珠202执行对应显示动作。本实施例通过灯带控制器201接收电连接传输或无线连接传输的灯带控制信息,控制灯珠202作为电子设备1的氛围灯执行对应的显示动作,能够提高氛围灯与电子设备1之间的交互联系,增强了用户的试听体验。
参照图8,图8为本申请另一实施例的灯带系统的结构示意图。
如图8所示,灯带系统包括:电子设备1和灯带2,电子设备1包括数据交互模块101,灯带2包括灯带控制器201和若干灯珠202。
在实际应用中,电子设备1通常可以播放音频或视频,为了实现灯珠202关于电子设备1的氛围显示控制,可通过采集电子设备1的播放音频或播放视频,来对灯珠202的显示动作进行控制。
具体而言,电子设备1还可包括音频控制信息采集器102和中央处理器104,音频控制信息采集器102连接中央处理器104,用于采集电子设备1的音频控制信息,中央处理器104连接数据交互模块101,用于将音频控制信息转化为灯带控制信息,并发送至数据交互模块101。
在实际应用中,数据交互模块101也可集成设置于中央处理器104中。
容易理解的,在电子设备1播放音频时,音频控制信息采集器102在采集到音频控制信息后,可将音频控制信息传输至中央处理器104,中央处理器104根据预设规则将音频控制信息转化为灯带控制信息。具体的,音频控制信息可以为音频的音量信息或频率信息等音频关联信息;灯带控制信息为音频控制信息对应的灯珠202显示间隔或显示亮度等显示关联信息。
需要说明的是,音频控制信息采集器102可以采用具有内置麦克风的音频模块,例如E200-470A17S音频采集模块,也可以采用外置麦克风并配置对应的音频放大器,例如ROHM-BH1418FV-E2音频放大模块。当然,音频控制信息采集器102也可以是其他任何能够采集电子设备1的音频的采集器,本实施例对此不做限制。音频控制信息采集器102还可集成设置于中央处理器104中。
具体而言,电子设备1还可包括画面控制信息采集器103和中央处理器104,画面控制信息采集器103连接中央处理器104,用于采集电子设备1的画面控制信息,中央处理器104连接数据交互模块101,用于将画面控制信息转化为灯带控制指令,并发送至数据交互模块101。
容易理解的,在电子设备1播放画面时,画面控制信息采集器103在采集到画面控制信息后,可将画面控制信息传输至中央处理器104,中央处理器104根据预设规则将画面控制信息转化为灯带控制信息。具体的,画面控制信息可以为画面亮度信息或画面色彩信息,灯带控制信息为画面控制信息对应的灯珠202显示间隔或显示亮度等显示关联信息。
需要说明的是,画面控制信息采集器103可以采用高性能的图像采集模组,例如VS-MC1208VD1,也可以采用低功耗的色彩采集模组,例如BH1745NUC色彩传感器。当然,画面控制信息采集器103也可以是其他任何能够采集电子设备1的画面的采集器,本实施例对此不做限制。画面控制信息采集器103还可集成设置于中央处理器104中。
在本实施例中,为了实现切换数据交互模块101接收的灯带控制信息,以使灯珠202根据不同的播放内容,执行对应的显示动作,电子设备1还可包括模式选择组件105,模式选择组件105连接中央处理器104,用于接收用户选择动作,并根据选择动作生成模式选择指令,以及向中央处理器104发送模式选择指令,中央处理器104还用于根据模式选择指令采 集对应的音频信息或画面信息。
容易理解的,模式选择组件105在采集接收到用户的选择动作后,将该选择动作对应的模式选择指令发送至中央处理器104,中央处理器104根据模式选择指令采集对应的播放信息,进而数据交互模块101根据播放信息驱动灯带控制器201控制灯珠202执行显示动作,实现灯珠202与电子设备1播放内容相关联的效果。
需要说明的是,模式选择组件105采集用户选择动作,并根据用户选择动作选择采集播放信息的设备的组件,该模式选择组件105可以为按键、开关或触摸屏等交互装置,本实施例不做具体限制。
在实际应用中,模式选择组件105还可以独立于电子设备1设置。
在本实施例中,提供了一种灯带系统,该灯带系统包括电子设备1、无线通信模块3和灯带2,电子设备1包括数据交互模块101、音频信息采集器、画面信息采集器、模式选择组件105和中央处理器104,灯带2包括灯带控制器201和若干灯珠202。本实施例利用在电子设备1设置的模式选择组件105选择对应的电子设备1播放信息采集器,以此来控制灯珠202跟随电子设备1播放信息执行显示动作,达成电子设备1氛围灯的效果,进一步提高了灯带系统的使用体验。
参照图9,图9为本申请又一实施例的灯带系统的结构示意图。
如图9所示,灯带系统包括电子设备1、无线通信模块3和灯带2,电子设备1包括数据交互模块101、音频信息采集器、画面信息采集器、模式选择组件105和中央处理器104,灯带2包括灯带控制器201和若干灯珠202。
在实际应用中,为了实现对作为氛围灯的灯珠202的灵活显示控制,灯珠202可不仅随着电子设备1播放的音频或视频执行对应的显示,还可预设多种显示规则,并根据用户的选择执行对应显示规则的显示动作。
具体而言,灯带系统还包括灯带遥控器4,灯带遥控器4连接灯带控制器201,灯带遥控器4用于采集用户遥控动作,并根据用户遥控动作生成第二灯带控制指令,以及向灯带控制器201发送第二灯带控制指令。
容易理解的,在灯带系统的具体应用中,用户不仅可以选择灯带控制器201根据电子设备1的播放内容控制灯珠202的显示执行,还可以选择灯带控制器201根据预设控制指令控制灯珠202的显示执行。本实施例通过在灯带系统中设置灯带遥控器4,通过灯带遥控器4采集用户遥控动作,并将用户遥控动作直接生成第二灯带控制指令发送至灯带控制器201,进而控制灯珠202根据预设规则进行显示。
在另一实施例中,为了实现对作为氛围灯的灯珠202的灵活显示控制,灯珠202可不仅随着电子设备1播放的音频或视频执行对应的显示,还可预设多种显示规则,并根据用户的控制语音执行对应显示规则的显示动作。
具体而言,灯带2还包括声音采集器203,声音采集器203连接灯带控制器201,声音采集器203用于采集声音信息,并根据声音信息生成第三灯带控制指令,以及向灯带控制器201发送第三灯带控制指令。
容易理解的,在灯带系统的具体应用中,用户不仅可以选择灯带控制器201根据电子设备1的播放内容控制灯珠202的显示执行,还可以选择灯带控制器201根据预设语音指令控制灯珠202的显示执行。本实施例通过在灯带2中设置声音采集器203,通过声音采集器203采集用户控制语音,并将用户控制语音直接生成第三灯带控制指令发送至灯带控制器201,进而控制灯珠202根据预设规则进行显示。
需要说明的是,预设规则可以包括指定颜色显示、指定形状显示、指定位置显示、亮度渐变显示、灯珠202传递显示等,本实施例对灯珠202的预设规则的显示不做具体限制。
在又一实施例中,为了提高灯珠202给电子设备1带来的氛围显示效果的提升,可将若干灯珠202成一字型或U字型排列,且若干灯珠202围绕电子设备1的四周或背板设置。如图10所示,为电子设备为电视时,灯珠一字型排列设置在背板的结构示意图,如图11所示, 为电子设备为电视时,灯珠U字型排列设置在背板的结构示意图。
容易理解的,在电子设备1播放音频、视频,或采集到用户遥控动作,或采集到用户的控制语音时,控制围绕电子设备1的四周或背板设置的一字型或U字型排列的灯珠202跟随电子设备1的使用执行显示动作,进一步提升灯带系统的氛围显示效果。
需要说明的是,灯珠202的排列方式可以包括一字型、U字型、十字型、波浪型或任何形状,本实施例对灯珠202的排列方式不做具体的限制。
在本实施例中,提供了一种灯带系统,该灯带系统包括电子设备1、无线通信模块3、灯带遥控器4和灯带2,电子设备1包括数据交互模块101、音频信息采集器、画面信息采集器、模式选择组件105和中央处理器104,灯带2包括声音采集器203、灯带控制器201和若干灯珠202。本实施例不但可以实现根据电子设备1播放内容控制灯珠202的显示,还可以根据预设的规则控制灯珠202的显示,进一步实现了灯带系统的灵活控制,增强了用户的试听体验。
以上所述仅为本申请的可选实施例,并非因此限制本申请的专利范围,凡是在本申请的发明构思下,利用本申请说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本申请的专利保护范围内。

Claims (20)

  1. 一种灯带控制方法,其中,用于电子设备,所述电子设备与灯带连接,所述灯带包括若干段子灯带,每段所述子灯带对应若干灯珠;
    所述方法包括以下步骤:
    获取所述电子设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略;
    根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据;以及
    将若干所述灯光驱动数据发送至所述灯带,以使所述灯带根据若干所述灯光驱动数据对若干所述灯珠进行显示控制。
  2. 如权利要求1所述的方法,其中,所述目标节目信息包括图像信息;所述根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据的步骤,包括:
    根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息;
    根据所述灯带的形状和每段所述子灯带对应的灯珠,在所述截屏图像信息中确定出分析区域;以及
    根据所述分析区域的像素值,获得所述灯珠对应的灯光驱动数据。
  3. 如权利要求2所述的方法,其中,所述根据所述分析区域的像素值,获得所述灯珠对应的灯光驱动数据的步骤包括:
    将所述分析区域分成若干子区域;
    获取所述子区域内的全部像素值的平均值;以及
    将所述平均值作为与所述子区域对应的所述灯珠的灯光驱动数据。
  4. 如权利要求2所述的方法,其中,在所述根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息之前,所述方法还包括:
    确定所述图像信息的最大颜色占比;以及
    在所述最大颜色占比不超过预设阈值时,执行所述根据与所述图像信息对应的目标灯光控制策略,对所述图像信息对应的显示界面进行截屏操作,获得截屏图像信息的步骤。
  5. 如权利要求4所述的方法,其中,所述确定所述图像信息的最大颜色占比的步骤,包括:
    获取所述图像信息对应的直方图数据;
    根据所述直方图数据,获得颜色数据;以及
    根据所述颜色数据,获得最大颜色占比。
  6. 如权利要求4所述的方法,其中,所述确定所述图像信息的最大颜色占比的步骤之后,所述方法还包括:
    在所述最大颜色占比超过所述预设阈值时,将所述最大颜色占比对应的颜色数据作为若干所述灯珠对应的灯光驱动数据。
  7. 如权利要求1所述的方法,其中,所述目标节目信息包括声音信息;所述根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的多个灯光驱动数据的步骤,包括:
    将所述声音信息进行切片,获得多个声音片段;
    将所述声音片段输入音灯关联模型,获得所述声音片段对应的灯光变化数据;
    根据所述灯光变化数据,获得声音灯光数据;以及
    根据声音灯光数据、所述灯带的形状和每段所述子灯带对应的灯珠,获得若干所述灯珠对应的灯光驱动数据。
  8. 如权利要求1所述的方法,其中,所述获取所述电子设备播放的目标节目信息和与所述目标节目信息对应的目标灯光控制策略的步骤之前,所述方法还包括:
    确定所述目标节目信息的应用场景信息;以及
    根据灯光控制策略集,确定出与所述应用场景信息对应的目标灯光控制策略,所述灯光控制策略集包括不同应用场景信息对应的灯光控制策略。
  9. 如权利要求1-8任一项所述的方法,其中,在根据所述目标节目信息、所述目标灯光控制策略、所述灯带的形状和每段所述子灯带对应的灯珠,确定若干所述灯珠对应的灯光驱动数据的步骤之前,所述方法还包括:
    接收针对灯带形状选择指令;
    根据所述灯带形状选择指令,确定所述灯带的形状;
    接收灯珠数量选择指令;以及
    根据所述灯带的形状和所述灯珠数量选择指令,获得所述若干段子灯带以及每段所述子灯带对应的灯珠数量。
  10. 一种灯带系统,其中,包括电子设备和灯带,所述电子设备包括数据交互模块,所述灯带包括灯带控制器和若干灯珠,其中:
    所述数据交互模块,用于向所述灯带控制器发送灯带控制信息;
    所述灯带控制器,连接所述数据交互模块,用于接收所述灯带控制信息,并将所述灯带控制信息转化为第一灯带控制指令,以及向所述灯珠发送所述第一灯带控制指令;
    所述灯珠,连接所述灯带控制器,用于接收所述第一灯带控制指令,以及根据接收的所述第一灯带控制指令,执行对应的显示动作。
  11. 如权利要求10所述的灯带系统,其中,所述灯带系统还包括无线通信模块;
    所述无线通信模块分别连接所述数据交互模块和所述灯带控制器。
  12. 如权利要求11所述的灯带系统,其中,所述无线通信模块为蓝牙通信模块、红外通信模块、WiFi通信模块中的其中一种。
  13. 如权利要求10所述的灯带系统,其中,所述电子设备还包括音频控制信息采集器和中央处理器,所述音频控制信息采集器连接所述中央处理器,所述中央处理器连接所述数据交互模块,所述音频控制信息采集器用于采集所述电子设备的音频控制信息,所述中央处理器用于将所述音频控制信息转化为所述灯带控制信息并发送至所述数据交互模块。
  14. 如权利要求13所述的灯带系统,其中,所述电子设备还包括画面控制信息采集器和中央处理器,所述画面控制信息采集器连接所述中央处理器,所述中央处理器连接所述数据交互模块,所述画面控制信息采集器用于采集所述电子设备的画面控制信息,所述中央处理器用于将所述画面控制信息转化为所述灯带控制信息并发送至所述数据交互模块。
  15. 如权利要求14所述的灯带系统,其中,所述电子设备还包括模式选择组件,所述模式选择组件连接所述中央处理器,所述模式选择组件用于接收用户选择动作,并根据所述选择动作生成模式选择指令,以及向所述中央处理器发送所述模式选择指令,所述中央处理器用于根据所述模式选择指令采集对应的音频信息或画面信息。
  16. 如权利要求10所述的灯带系统,其中,所述灯带系统还包括灯带遥控器,所述灯带遥控器连接所述灯带控制器;所述灯带遥控器用于采集用户遥控动作,并根据所述用户遥控动作生成第二灯带控制指令,以及向所述灯带控制器发送所述第二灯带控制指令。
  17. 如权利要求10所述的灯带系统,其中,所述灯带还包括声音采集器,所述声音采集器连接所述灯带控制器,所述声音采集器用于采集声音信息,并根据所述声音信息生成第三灯带控制指令,以及向所述灯带控制器发送所述第三灯带控制指令。
  18. 如权利要求10至17中任一项所述的灯带系统,其中,所述若干灯珠成一字型或U 字型排列,且所述若干灯珠围绕所述电子设备的四周或背板设置。
  19. 一种电子设备,其中,所述电子设备包括:存储器、处理器及存储在所述存储器上并在所述处理器上运行灯带控制程序,所述灯带控制程序被所述处理器执行时实现如权利要求1至9中任一项所述的灯带控制方法的步骤。
  20. 一种计算机可读存储介质,其中,所述存储介质上存储有灯带控制程序,所述灯带控制程序被处理器执行时实现如权利要求1至9中任一项所述的灯带控制方法的步骤。
PCT/CN2022/102938 2021-12-17 2022-06-30 灯带控制方法、灯带系统、电子设备以及存储介质 WO2023109091A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202123203865.2U CN216721637U (zh) 2021-12-17 2021-12-17 氛围灯系统
CN202123203865.2 2021-12-17
CN202111681425.XA CN114340102B (zh) 2021-12-31 2021-12-31 灯带控制方法、装置、显示设备、系统以及存储介质
CN202111681425.X 2021-12-31

Publications (1)

Publication Number Publication Date
WO2023109091A1 true WO2023109091A1 (zh) 2023-06-22

Family

ID=86775216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/102938 WO2023109091A1 (zh) 2021-12-17 2022-06-30 灯带控制方法、灯带系统、电子设备以及存储介质

Country Status (1)

Country Link
WO (1) WO2023109091A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117042265A (zh) * 2023-10-10 2023-11-10 深圳市千岩科技有限公司 校准方法、装置、电子设备及计算机可读存储介质
CN117412451A (zh) * 2023-12-13 2024-01-16 深圳市千岩科技有限公司 氛围灯设备及其映射配色方法和相应的装置、介质
CN117412452A (zh) * 2023-12-13 2024-01-16 深圳市千岩科技有限公司 氛围灯设备及其配色方法和相应的装置、介质
CN117500117A (zh) * 2023-12-29 2024-02-02 深圳市智岩科技有限公司 灯屏设备及灯效智能控制方法和相应的装置、介质
CN117521179A (zh) * 2024-01-04 2024-02-06 深圳市智岩科技有限公司 氛围灯设备及发光分区布局构造方法、装置和计算机设备

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180172226A1 (en) * 2016-12-20 2018-06-21 Shandong Neon King Electronics Co., Ltd. LED Light String Having Colorful Light Beads
CN109654398A (zh) * 2018-12-18 2019-04-19 深圳市联芯互联科技有限公司 一种多彩光氛围灯
CN110843665A (zh) * 2019-11-29 2020-02-28 安徽江淮汽车集团股份有限公司 车及其车载氛围灯控制系统、多媒体处理装置
CN111787658A (zh) * 2020-08-26 2020-10-16 广州市天汇计算机科技有限公司 一种灯带控制方法及系统
CN113613370A (zh) * 2021-08-30 2021-11-05 江苏惠通集团有限责任公司 氛围灯控制方法及装置、计算机可读存储介质、终端
CN113677077A (zh) * 2021-08-30 2021-11-19 江苏惠通集团有限责任公司 无线氛围灯控制系统、方法及装置、可读存储介质、终端
CN114340102A (zh) * 2021-12-31 2022-04-12 深圳创维-Rgb电子有限公司 灯带控制方法、装置、显示设备、系统以及存储介质
CN216721637U (zh) * 2021-12-17 2022-06-10 深圳创维-Rgb电子有限公司 氛围灯系统

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180172226A1 (en) * 2016-12-20 2018-06-21 Shandong Neon King Electronics Co., Ltd. LED Light String Having Colorful Light Beads
CN109654398A (zh) * 2018-12-18 2019-04-19 深圳市联芯互联科技有限公司 一种多彩光氛围灯
CN110843665A (zh) * 2019-11-29 2020-02-28 安徽江淮汽车集团股份有限公司 车及其车载氛围灯控制系统、多媒体处理装置
CN111787658A (zh) * 2020-08-26 2020-10-16 广州市天汇计算机科技有限公司 一种灯带控制方法及系统
CN113613370A (zh) * 2021-08-30 2021-11-05 江苏惠通集团有限责任公司 氛围灯控制方法及装置、计算机可读存储介质、终端
CN113677077A (zh) * 2021-08-30 2021-11-19 江苏惠通集团有限责任公司 无线氛围灯控制系统、方法及装置、可读存储介质、终端
CN216721637U (zh) * 2021-12-17 2022-06-10 深圳创维-Rgb电子有限公司 氛围灯系统
CN114340102A (zh) * 2021-12-31 2022-04-12 深圳创维-Rgb电子有限公司 灯带控制方法、装置、显示设备、系统以及存储介质

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117042265A (zh) * 2023-10-10 2023-11-10 深圳市千岩科技有限公司 校准方法、装置、电子设备及计算机可读存储介质
CN117042265B (zh) * 2023-10-10 2024-02-23 深圳市千岩科技有限公司 校准方法、装置、电子设备及计算机可读存储介质
CN117412451A (zh) * 2023-12-13 2024-01-16 深圳市千岩科技有限公司 氛围灯设备及其映射配色方法和相应的装置、介质
CN117412452A (zh) * 2023-12-13 2024-01-16 深圳市千岩科技有限公司 氛围灯设备及其配色方法和相应的装置、介质
CN117412451B (zh) * 2023-12-13 2024-03-15 深圳市千岩科技有限公司 氛围灯设备及其映射配色方法和相应的装置、介质
CN117412452B (zh) * 2023-12-13 2024-04-02 深圳市千岩科技有限公司 氛围灯设备及其配色方法和相应的装置、介质
CN117500117A (zh) * 2023-12-29 2024-02-02 深圳市智岩科技有限公司 灯屏设备及灯效智能控制方法和相应的装置、介质
CN117500117B (zh) * 2023-12-29 2024-03-19 深圳市智岩科技有限公司 灯屏设备及灯效智能控制方法和相应的装置、介质
CN117521179A (zh) * 2024-01-04 2024-02-06 深圳市智岩科技有限公司 氛围灯设备及发光分区布局构造方法、装置和计算机设备
CN117521179B (zh) * 2024-01-04 2024-04-19 深圳市智岩科技有限公司 氛围灯设备及发光分区布局构造方法、装置和计算机设备

Similar Documents

Publication Publication Date Title
WO2023109091A1 (zh) 灯带控制方法、灯带系统、电子设备以及存储介质
WO2022121114A1 (zh) 灯光模组控制方法、灯光模组、电子设备及存储介质
WO2021175165A1 (zh) 一种音频处理方法及设备
CN106571149B (zh) 电子装置及电子装置的音乐内容可视化方法
US9558591B2 (en) Method of providing augmented reality and terminal supporting the same
US20140135571A1 (en) Environment adjustment system, environment adjustment method, air conditioner, and remote controller
US20220319077A1 (en) Image-text fusion method and apparatus, and electronic device
CN203164829U (zh) 无线高清传屏智能一体机
CN104820537B (zh) 一种调整终端显示效果的方法及装置
CN114340102B (zh) 灯带控制方法、装置、显示设备、系统以及存储介质
WO2022022731A1 (zh) 一种拍摄的补光方法及相关装置
CN114040249A (zh) 基于画面的氛围灯调节方法、装置、智能终端及存储介质
CN103780888A (zh) 视频文件中的环境光效果和色度控制
KR102070322B1 (ko) 디스플레이 장치 및 그 디스플레이 패널 구동 방법
WO2022161094A1 (zh) 显示设备驱动方法、显示设备以及计算机可读存储介质
WO2020037754A1 (zh) 一种增强视频画质的方法和装置
US11853640B2 (en) Display apparatus and method of controlling the same
CN112269554B (zh) 显示系统及显示方法
CN103949055A (zh) 视频游戏中的环境光效果
CN216721637U (zh) 氛围灯系统
CN110543077A (zh) 一种投影幕布和投影装置
CN202956916U (zh) 指纹识别式移动教学系统
CN106504725A (zh) 一种基于自动检测的背投亮度控制单元
CN201194416Y (zh) 一种多功能可视门铃
CN112397064A (zh) 灯光调整方法、装置、终端设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22905856

Country of ref document: EP

Kind code of ref document: A1