Lamplight color control system, video player, smart home system and medium

By integrating an embedded graphic display system and light color processing unit on the video player, the existing light dynamic system has been solved, and more efficient lighting color control and synchronization effects have been achieved.

CN119865947AActive Publication Date: 2025-04-22GUANGZHOU YUNNENG TECH CO LTD

Patent Information

Application Number
CN202510127057.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-28
Publication Date
2025-04-22
Estimated Expiration
2045-01-28

AI Technical Summary

Technical Problem

The existing light-following system requires an external acquisition box, which has high project cost and cannot be controlled through the video player UI interface, resulting in poor controllability and poor follow-up between the light and video images.

Method used

The embedded graphic display system, a lighting color processing unit and a lighting address encoding unit are integrated on the video player. Through these units, image images are collected from the video signals, color analysis and light control parameters are generated, and output directly to the lighting driver to drive the lighting equipment for color control.

Benefits of technology

Reduce equipment costs and improve the effect and synchronization of lighting color control. Users can customize lighting modes and control parameters through the UI interface of the video player to achieve better follow-up of lighting and video images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119865947A_ABST
    Figure CN119865947A_ABST
Patent Text Reader

Abstract

The invention relates to a light color control system, a video player, a smart home system and a computer equipment storage medium. The control system comprises an embedded graphic display system which is used for collecting video signals from a video source and obtaining image pictures; the light color processing unit is used for performing color analysis on the image picture to obtain color data; the light address coding unit is used for carrying out address coding on light equipment according to the color data to generate light control parameters, and outputting the light control parameters to a light driver to drive the light equipment to emit light, so that the light color of the light equipment changes along with the image picture output to the display screen by the video player; according to the technical scheme, the equipment cost in light color control is reduced, and the light color control effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of lighting technology, and in particular to a lighting color control system, a video player, a smart home system, and a computer device storage medium. Background Art

[0002] Light Following Shadow is a popular technology for smart homes. When watching TV or movies, the smart home system can automatically adjust the brightness and color of the light. It can also automatically adjust the color and brightness of the background light and atmosphere light strip according to the color changes of the video screen, thus bringing users the ultimate viewing experience and lighting color effects.

[0003] At present, the commonly used light-following shadow motion systems on the market are Figure 1 As shown, Figure 1 This is a principle block diagram of an example of a light-following motion system. The video signal output by the graphics card of the video player is connected to a capture box through an HDMI video signal line. The video signal is collected by the capture card of the capture box, and the color analysis processing unit performs color analysis and light address encoding. The remote control is used for control. The capture box outputs the video signal to the display screen for playback, and the capture box outputs the light control parameters to the light driving circuit, which drives the light equipment for color control.

[0004] However, the above-mentioned lighting color control system requires the configuration of an external capture box, which has high engineering costs. Since the capture box is connected to the video player via an HDMI video signal cable, the capture box process cannot be controlled through the video player UI interface, and the controllability is poor. The capture box captures the video signal after the graphics card, resulting in poor tracking of the light and the video screen. Summary of the invention

[0005] In order to solve one of the above-mentioned defects, the present application provides a lighting color control system, a video player, a smart home system and a computer device storage medium to reduce equipment costs and improve lighting color control effects.

[0006] A lighting color control system, applied to a video player, comprises:

[0007] An embedded graphic display system is used to collect video signals from a video source and obtain image pictures;

[0008] A light color processing unit, used for performing color analysis on the image to obtain color data;

[0009] The light address encoding unit is used to encode the address of the light device according to the color data to generate the light control parameters, and output the light control parameters to the light driver to drive the light device to emit light, so that the light color of the light device changes with the image picture output by the video player to the display screen.

[0010] In one embodiment, the light address encoding unit is further used to adjust the light mode and light control parameters output by the light color control system according to the configuration information input by the user in the UI interface of the video player.

[0011] In one embodiment, the lighting color control system further includes: an audio processing unit, used to obtain input audio data, perform FFT processing on each channel of the audio data to obtain spectrum data; extract key frequency points from the spectrum data to obtain sound intensity information; and superimpose the sound intensity information on the control parameters to control the lighting color effect of the light strip.

[0012] In one embodiment, the embedded graphic display system, the light color processing unit and the light address encoding unit are integrated into the operating system of the video player.

[0013] In one embodiment, the light color processing unit is configured to adjust the resolution of the image to obtain a reduced image; perform Gaussian blur processing on the reduced image according to set Gaussian blur parameters to obtain a blurred image; and perform color sampling processing on the blurred image according to the matching range of the light strip to obtain color data.

[0014] In one embodiment, the light color processing unit is configured to perform Gaussian blur processing on the reduced image according to a set first Gaussian blur parameter to obtain a first blurred image; wherein the first blurred image is used for dynamic mode control; and perform Gaussian blur processing on the first blurred image according to the set first Gaussian blur parameter to obtain a second blurred image; wherein the second blurred image is used for atmosphere mode control.

[0015] In one embodiment, the light color processing unit is configured to perform parallel scanning on the image in the horizontal direction; perform vertical scanning using multiple scanning lines on the image and calculate the length of the black border of the image; and calculate the image within the black border range based on the black border length.

[0016] In one embodiment, the light color processing unit is configured to perform a parallel scan of the image from left to right in the horizontal direction, and when there is no black border in the scan, it is determined that there is no black border in the horizontal direction; a plurality of distributed vertical lines are set in the vertical direction of the image, and the image is scanned from the upper and lower sides to the center along the vertical lines to obtain the black screen length value; the average black border length is calculated according to the black screen length value, and the black border length of the image is calculated according to multiple black screen length values ​​with similar values.

[0017] In one embodiment, the light color processing unit is configured to determine a sampling radius according to the size of the edge range of the light strip matching the image screen; calculate the sampling coordinate range of the four edges to be sampled in the blurred image according to the sampling radius; and perform pixel sampling processing from the sampling coordinate range of the blurred image according to a set order to obtain color data.

[0018] In one embodiment, the light color processing unit is configured to perform pixel sampling from a sampling coordinate range of the blurred image according to a set order to obtain a color array; and perform linear interpolation sampling on the pixels of the color array to obtain color data identical to that of the light strip.

[0019] In one embodiment, the light color processing unit is configured to also perform unified post-processing on the color data; wherein the post-processing includes: one or more of brightness processing, saturation, gamma correction, highlight attenuation, palette color adjustment, and fixed coloring in test mode.

[0020] In one embodiment, the light color processing unit is configured to also trim the sequence of color data; wherein the trimming includes: one or more of: lamp bead direction selection, starting corner selection, starting point adjustment, starting point ignoring, and dirty data elimination.

[0021] In one embodiment, the light color processing unit is configured to also extract a color area from the blurred image using a regional image; perform Gaussian averaging on the color area to obtain a regional average color; and control the atmosphere light according to the average color.

[0022] A video player, characterized in that it comprises: a host and a graphics card; wherein an operating system runs on the host, and the lighting color control system is integrated into the operating system;

[0023] The graphics card is used to render and output the video images played by the host;

[0024] The host is used to play video images and output lighting control parameters.

[0025] In one embodiment, the host is connected to a host computer; wherein the host computer is also used to control the lighting mode and parameter configuration of the lighting equipment.

[0026] A smart home system, comprising: a video player, a display screen, a lighting driver and lighting equipment;

[0027] The graphics card output terminal of the video player is connected to the display screen;

[0028] The host of the video player is connected to a light driver, and the light driver is connected to a light device;

[0029] The host of the video player receives a video signal, renders the video signal through the graphics card and then outputs it to the display screen for playback, and outputs lighting control parameters according to the video signal, outputs them to the lighting driver through the input / output device, and drives the lighting device to emit light.

[0030] In one embodiment, the light driver includes a network driver or a wired driver; the light equipment includes a DMX512 light and a WS2812 light.

[0031] A computer-readable storage medium stores at least one instruction, at least one program, a code set or an instruction set, wherein the at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the function of the light color control system.

[0032] The technical solution of the above embodiment integrates a lighting color control system on the video player, collects video signals from the video source and obtains image pictures through the embedded graphic display system, performs color analysis on the image pictures through the lighting color processing unit to obtain color data, and generates lighting control parameters by address encoding the lighting equipment according to the color data through the lighting address encoding unit, and outputs the lighting control parameters to the lighting driver to drive the lighting equipment to emit light, so that the lighting color of the lighting equipment changes with the image pictures output by the video player to the display screen; this technical solution integrates the lighting color control function on the video player, reduces the equipment cost in lighting color control, extracts the image pictures and generates lighting control parameters before the video signal is played, and has good synchronization and followability with the video pictures, thereby improving the lighting color control effect.

[0033] Furthermore, the UI interface based on the video player is also used to configure according to the parameters that can be input by the user to adjust the lighting mode and lighting control parameters output by the lighting color control system, thereby facilitating the implementation of various lighting modes and customized lighting control parameter configurations.

[0034] Furthermore, before control, the black edges of the video signal and the image are automatically detected, and the image within the black edge range is used to control the light color, thereby avoiding the defect that the light color cannot follow the changes of the image due to the upper and lower black edges of the video screen.

[0035] Furthermore, a first blurred image and a second blurred image are obtained through Gaussian blurring, which are used for dynamic mode control and atmosphere mode control respectively, thereby achieving an effect of freely controlling the lighting mode.

[0036] Furthermore, a color array of any shape is quickly generated through the video image and audio, and the array is used to send to the light strip to achieve a light color effect related to the video image outside the screen image.

[0037] Additional aspects and advantages of the present application will be partially given in the following description, which will become apparent from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0039] Figure 1 This is a block diagram of an example light-following-shadow system;

[0040] Figure 2 is a schematic diagram of the structure of a lighting color control system of an embodiment;

[0041] Figure 3 is a system block diagram of an example video player;

[0042] Figure 4 is a flow chart of a lighting color control method according to an embodiment;

[0043] Figure 5 This is a sample image with a reduced image size.

[0044] Figure 6 This is a schematic diagram of an example color sampling screen;

[0045] Figure 7 This is a schematic diagram of an example color sampling screen;

[0046] Figure 8 is a schematic structural diagram of a video player of an embodiment;

[0047] Fig. 9 This is a schematic diagram of an example smart home system structure;

[0048] Fig.10It is a schematic diagram of the structure of an example lighting driver and lighting equipment. DETAILED DESCRIPTION

[0049] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.

[0050] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, but does not exclude the presence or addition of one or more other features, integers, steps, operations.

[0051] refer to Figure 2 As shown, Figure 2 The present invention is a schematic diagram of the structure of a lighting color control system of an embodiment, which is applied to a video player and can be integrated into the operating system of the video player, and includes: an embedded graphic display system, a lighting color processing unit and a lighting address encoding unit.

[0052] Among them, the embedded graphic display system is used to collect video signals from the video source and obtain image pictures; the lighting color processing unit is used to perform color analysis on the image pictures to obtain color data; the lighting address encoding unit is used to perform address encoding on the lighting equipment according to the color data to generate lighting control parameters, and output the lighting control parameters to the lighting driver to drive the lighting equipment to emit light, so that the lighting color of the lighting equipment changes with the image pictures output by the video player to the display screen.

[0053] Compared with the rear capture box solution of conventional technology, the present application integrates a lighting color control system on a video player, thereby reducing the equipment cost and engineering implementation cost in lighting color control; the video signal is captured from the video source through an embedded graphic display system, and the color data of the picture image is obtained before the video signal is played and rendered, and the lighting control parameters are generated. The lighting color has good synchronization and followability with the video picture, thereby improving the lighting color control effect; since the color data obtained by the lighting color processing unit can be adjusted according to different needs, different lighting mode settings and lighting control parameter controls can be realized, so that different required lighting effects can be freely configured in the lighting color control.

[0054] In one embodiment, the light address encoding unit of the light color control system is also used to adjust the light mode and light control parameters output by the light color control system according to the configuration information input by the user in the UI (User Interface Designer) interface of the video player.

[0055] Specifically, the lighting color control system is integrated on the video player, and the configuration information can be inputted through the UI interface of the host computer of the video player, and the lighting color control system can be customized to configure the output lighting mode and lighting control parameters; thus, there is no need to add an additional control module.

[0056] For example, by using a host computer of a video player, such as a computer, a mobile terminal, etc., a configuration program and a configuration interface can be added by using the UI interface of the host computer to realize the configuration function of the lighting color control system.

[0057] In one embodiment, the lighting color control system is characterized in that it also includes: an audio processing unit, used to obtain input audio data, perform FFT processing on each channel of the audio data to obtain spectrum data; extract key frequency points from the spectrum data to obtain sound intensity information; and superimpose the sound intensity information on the control parameters to control the lighting color effect of the light strip.

[0058] refer to Figure 3 As shown, Figure 3 This is a system block diagram of an example video player, in which the hardware layer mainly includes input / output devices, a host and a graphics card; wherein the input / output devices are mainly used to realize human-computer interaction functions, input configuration information, display UI interfaces, etc. The host mainly includes the CPU, memory and other motherboard circuits, etc.; the graphics card is used to render video signals, usually using a GPU as the core to realize image rendering operations, and output through an HDMI interface. In the system software layer, it is mainly the operating system of the video player, such as the Android system; in the application software layer, it is mainly various application software, and the lighting color control system provided in this application is pre-installed on the operating system, in which the player can play the video signal and render it through the graphics card; the configuration program can use the input / output device to realize the upper computer configuration function, and the user inputs the configuration information and sets it to the lighting color control system through the configuration program to change the lighting control parameters, etc.

[0059] In one embodiment, the lighting color control system and the lighting color processing unit of the present application are configured to adjust the resolution of an image to obtain a reduced image; perform Gaussian blur processing on the reduced image according to a set first Gaussian blur parameter to obtain a first blurred image, and perform Gaussian blur processing on the first blurred image according to the set first Gaussian blur parameter to obtain a second blurred image; perform color sampling processing on the blurred image according to the matching range of the light strip to obtain color data; wherein the first blurred image is used for dynamic mode control, and the second blurred image is used for atmosphere mode control.

[0060] As in the solution of the above embodiment, by using the first blurred image and the second blurred image as the basic picture of light following shadow movement, the effect of freely controlling the lighting mode can be achieved.

[0061] In one embodiment, in the lighting color control system of the present application, the lighting color processing unit is also configured to perform parallel scanning of the image in the horizontal direction; perform vertical scanning using multiple scanning lines on the image, and calculate the length of the black border of the image; and calculate the image within the black border range based on the black border length.

[0062] As in the solution of the above embodiment, the black edges of the video signal are automatically detected first, which can avoid the defect that the light color cannot follow the changes of the image screen due to the upper and lower black edges on the video screen.

[0063] Based on the lighting color control system of the present application, a lighting color control method for realizing the function of the lighting color control system is provided below; Figure 4 As shown, Figure 4 The present invention is a flow chart of a lighting color control method according to an embodiment, comprising:

[0064] Step S10, acquiring a video signal and an image frame, and adjusting the resolution of the image frame to obtain a reduced image.

[0065] In this step, the video signal on the TV screen can be obtained and the image can be obtained, or the video signal can be accessed externally and the image can be obtained, and then the resolution of each frame of the image can be adjusted to a small-sized reduced image, so that a native control solution can be implemented within the image system.

[0066] In one embodiment, in view of the defect in conventional technology that the upper and lower lights cannot be turned on when the video image has upper and lower black edges, the light color control system of the present application, before adjusting the resolution of the image to obtain a reduced image in step S10, further includes:

[0067] S101, performing parallel scanning on the image in the horizontal direction.

[0068] Specifically, each frame of the image is extracted from the input video, and then automatic black edge detection is performed, firstly performing horizontal parallel scanning; illustratively, the image can be scanned in parallel from left to right in the horizontal direction, and when there is no black edge in the scan, it is determined that there is no black edge in the horizontal direction; for example, the position between 2% and 98% can be scanned from left to right, and once non-black is found, the detection is terminated, and it is determined that the current image has no black edge.

[0069] S102, using a plurality of scanning lines on the image screen to perform vertical scanning, and calculating the length of the black border of the image screen.

[0070] Exemplarily, the method of scanning and calculating the black edge length in step S102 may include the following:

[0071] a) A plurality of distributed vertical lines are set in the vertical direction of the image screen, and the black screen length value is obtained by scanning from the upper and lower sides of the image screen toward the center along the vertical lines.

[0072] Specifically, vertical line scanning can be performed on the image screen. There are multiple scanning lines that are evenly distributed on the image screen. For example, the scanning is performed from the upper and lower directions to the center line, and then the length of the black is calculated. Assuming there are 5 scanning lines, 10 numbers are obtained by scanning, representing the black lengths in 10 vertical directions.

[0073] b) calculating the average black edge length according to the black screen length value, and calculating the black edge length of the image according to a plurality of black screen length values ​​with similar values.

[0074] Specifically, the scan data that is obviously larger than the mean value can be removed to prevent the black in the image from interfering with the real black edge. In the remaining scan data, the variance is less than a threshold, that is, the length of the black edge in each place is basically the same, and the mean value is calculated as the length of the black edge.

[0075] Preferably, in order to prevent the obtained black edge length mean from jumping, the historical value average can be calculated. For example, a queue can be used to record multiple (such as 8) latest historical data for use as a transition. Once it is detected that the image has no black edges, the queue is cleared.

[0076] S103, calculating the image frame within the black border range according to the black border length.

[0077] Specifically, according to the calculated black border length, an image within the black border range can be obtained as an original image for subsequent control of light color.

[0078] As in the above embodiment, Figure 5 As shown, Figure 5This is an example of image reduction. First, the video signal is automatically detected and the image is obtained. The black edges are removed and the light color is controlled by using the reduced image within the black edge range. This can avoid the defect that the light color cannot follow the changes of the image due to the upper and lower black edges on the video screen and realize fast color sampling processing.

[0079] Step S20, performing Gaussian blur processing on the reduced image according to the set Gaussian blur parameters to obtain a blurred image.

[0080] In this step, Gaussian blur parameters are set based on the lighting color control effect, and then the Gaussian blur parameters are used to perform Gaussian blur processing on the reduced image to obtain a blurred image as a basic image for lighting color control.

[0081] In one embodiment, in order to realize free control of lighting modes and more abundant color lighting control parameters; accordingly, the lighting color control system of the present application, such as Figure 6 As shown, Figure 6 is an exemplary Gaussian blur schematic diagram. Step S20 of performing Gaussian blur processing on the reduced image according to the set Gaussian blur parameters to obtain a blurred image may include:

[0082] S201, performing Gaussian blur processing on the reduced image according to a set first Gaussian blur parameter to obtain a first blurred image; wherein the first blurred image is used for dynamic mode control.

[0083] Exemplarily, the image within the black border range of the original picture is reduced to a small-sized image, and then a first Gaussian blur is performed on it to obtain a first blurred image.

[0084] S202, performing Gaussian blur processing on the first blurred image according to a set first Gaussian blur parameter to obtain a second blurred image; wherein the second blurred image is used for atmosphere mode control.

[0085] Exemplarily, the first blurred image is reduced to half its size, and then Gaussian blur is performed for the second time to obtain the second blurred image.

[0086] As in the scheme of the above-mentioned embodiment, a first blurred image is obtained by performing a first Gaussian blur on the reduced image of the original video screen, which is used for dynamic mode control, and is used as a high dynamic effect by utilizing the characteristics of high resolution and retention of more details; then, on this basis, the first blurred image is Gaussian blurred to obtain a second blurred image, which is used for atmosphere mode control, and the atmosphere light strip is controlled by utilizing the characteristics of a high degree of secondary blurred color mixing; these two blurred images are used as the basic images for subsequent light-following-shadow movement, thereby achieving the effect of freely controlling the lighting mode.

[0087] Step S30: performing color sampling processing on the blurred image according to the matching range of the light strip to obtain color data.

[0088] In this step, according to the matching of the light strip and the range of the image screen, the fuzzy image is used to perform color sampling to obtain color data for controlling the color of the color, so as to realize the solution of controlling the color of the ambient atmosphere of the video screen.

[0089] In one embodiment, the step S30 of performing color sampling processing on the blurred image according to the matching range of the light strip to obtain color data may include:

[0090] S301, determining a sampling radius according to the size of the edge range of the light strip matching the image screen.

[0091] Specifically, Figure 7 As shown, Figure 7 This is a schematic diagram of an example color sampling screen, which shows the sampling radius r determined by the edge range of the light strip matching the image screen; thus, the radius of the sampling position can be customized to control the style, such as precise sampling or fuzzy sampling.

[0092] S302: Calculate sampling coordinate ranges of four edges to be sampled in the blurred image according to the sampling radius.

[0093] Specifically, according to the determined sampling radius r, the sampling coordinate range of the four edges to be sampled in the blurred image can be calculated; thereby achieving adjustable color picking position and adjustable sampling band from the center of the image to the edge of the image.

[0094] like Figure 7 The first blurred image is taken as an example. If the radius is r, the size of the first blurred image is 240×160, and the sampling area size is 180×120. Taking the upper left corner as the origin, we can get the upper left corner sampling coordinate range x∈[0, 30], y∈[0, 20], and the sampling coordinate range x∈[180, 240], y∈[120, 160].

[0095] S303, performing pixel sampling processing from a sampling coordinate range of the blurred image according to a set order to obtain color data.

[0096] In one embodiment, the sampling process of step S303 may include the following:

[0097] (1) Pixel sampling is performed from the sampling coordinate range of the blurred image according to the set order to obtain a color array.

[0098] Specifically, according to the determined sampling coordinate range, the pixel color values ​​of four edges are sampled from the blurred image in a clockwise direction to obtain a basic color array.

[0099] (2) performing linear interpolation sampling on the pixels of the color array to obtain color data identical to that of the light strip;

[0100] Specifically, since the number of light-emitting units of the lighting device is not strictly equal to the size of the color array, the pixels are linearly interpolated and sampled to be enlarged or reduced, thereby obtaining the same color array as the light strip.

[0101] As in the solution of the above-mentioned embodiment, different radii are set based on the data of the blurred image, and the pixel color values ​​are extracted to obtain the color data for controlling the color of the light, thereby achieving accurate sampling of the color data of the video screen.

[0102] In one embodiment, during the sampling process of this embodiment, the color data may also be uniformly post-processed, such as the clockwise and counterclockwise rotation of the light strip, the starting corner of the installation, and the additional head light-emitting units that need to be skipped during installation.

[0103] Exemplarily, after the color data is sampled, the color is subsequently subjected to unified post-processing, including:

[0104] 1) Brightness;

[0105] 2) Saturation;

[0106] 3) Gamma correction;

[0107] 4) High brightness attenuation (compressing overly bright white light to avoid interference with video viewing);

[0108] 5) Optional palette color adjustment;

[0109] 6) Fixed coloring in test mode (fixed coloring of four-side light strips during installation test).

[0110] In one embodiment, during the sampling process of this embodiment, the color data required by all light-emitting units (lamp beads) has been obtained, but the data is a perfect clockwise data starting from the upper left corner, which does not necessarily match the actual installation situation of the light strip. Based on this, in this embodiment, a trimming process can also be performed on the sequence, including:

[0111] 1) Select the direction of the lamp beads (if the light strip is installed counterclockwise, the order needs to be reversed);

[0112] 2) Starting corner selection (offset the color sequence according to the starting point of the light strip installation);

[0113] 3) Starting point adjustment (moving forward and backward when the mounting point is not perfectly in the corner);

[0114] 4) Ignore the starting point (if there is a section of unused lamp beads before the installation point, additional offset is required);

[0115] 5) Dirty data elimination (in setting mode, used to eliminate tail residue).

[0116] In one embodiment, when the first blurred image and the second blurred image are generated in step S20, then in step S30, after the first blurred image is sampled to obtain the corresponding color, more details can be retained because it is only blurred once and has a high resolution, and it can be used as a high dynamic effect; after the second blurred image is sampled to obtain the corresponding color, because it is small in size and has undergone secondary blurring, the color mixing degree is higher, and it can be used as an atmosphere light strip.

[0117] Step S40, generating a lighting control parameter according to the color data to control the lighting color of the light strip.

[0118] In this step, based on the obtained color data, lighting control parameters can be generated to control the lighting color of the light strip; specifically, by adjusting the color data so that the color sequence is consistent with the actual installation of the light strip, lighting control parameters can be generated and sent to the lighting control device for display to achieve control of the ambient color.

[0119] For example, the lighting device may use pixel point lights of the type WS2812, so as to better match the changes in the picture and achieve the effect of synchronous changes of the light and the picture following the video picture.

[0120] As in the scheme of the above-mentioned embodiment, after obtaining the video signal and the image frame, the resolution is adjusted to obtain a reduced image, and Gaussian blur processing is performed on the reduced image to obtain a blurred image; color sampling processing is performed on the blurred image to obtain color data, and light control parameters are generated to control the light color of the light strip; this technical scheme can enhance the light color control effect based on the synchronized light color related to the video screen that is blurred outside the video screen.

[0121] In one embodiment, the technical solution of the present application can also be applied to point light sources such as DMX512. Accordingly, the lighting color control system of this embodiment can also include: using a regional image to extract a color area from the blurred image; performing Gaussian averaging on the color area to obtain a regional average color; and controlling the atmosphere light according to the average color.

[0122] Specifically, the regional image is cut out, and then Gaussian average color is taken to obtain the regional average color, which is used as the atmosphere light.

[0123] In one embodiment, the technical solution of the present application can also be combined with audio to control the change of light color. Accordingly, the light color control system of the present application also includes:

[0124] The input audio data is obtained, and each channel of the audio data is processed by FFT (fast Fourier transform) to obtain spectrum data; key frequency points are extracted from the spectrum data to obtain sound intensity information; and the sound intensity information is superimposed on the control parameter to control the light color effect of the light strip.

[0125] Exemplarily, the input audio data is received, and FFT processing is performed on the left channel, the right channel, and the mixed mono channel to obtain a spectrum data, and several key frequency points are taken to obtain their decibel information, which is combined with the sampled RGB values ​​of the color data of the four edges and referenced to the script environment. In the script, the colors of the four edges are superimposed through the audio spectrum information, thereby achieving the effect of the light color following the music linkage.

[0126] As in the above-mentioned embodiment, a rectangular or arbitrarily shaped color array can be quickly generated through video images and audio, and the color array is sent to the light strip for control to achieve a light color effect related to the video image outside the screen image.

[0127] The solutions of the above-mentioned embodiments have the following characteristics: high real-time performance, color transition smoothing, simple algorithm flow, high real-time performance, and the radius of the sampling position can be customized (neutral to edge position); the style can be controlled and the sampling can be precise or fuzzy; the black edges are automatically calculated and removed to avoid the defect that the lights cannot be turned on in the case of black edges; the color can be corrected through post-processing; the area can be sampled as point lights for use as atmosphere light; the audio rhythm can be superimposed on the changing light color through FFT calculation of the audio; the lighting products using the technical solution of this application can effectively match the lights around the screen, ceiling lights, atmosphere lights, etc. after actual testing.

[0128] An embodiment of a video player is described below.

[0129] refer to Figure 8 As shown, Figure 8 The present invention is a schematic diagram of the structure of a video player of an embodiment, comprising: a host and a graphics card; in addition, it may also include an input / output device and a power module; wherein an operating system runs on the host, and the lighting color control system of any of the above embodiments is integrated on the operating system; the graphics card is used to render and output the video screen played by the host; the host is used to play the video screen and output the lighting control parameters, and the input / output device can realize the input function and various display functions of user operation; the power module can provide power for the video player.

[0130] As mentioned above, the video player can output lighting control parameters, which enter an IO layer, which is an abstraction of a hardware device for different forms of lighting drivers. Various lighting drivers have an automatic discovery mechanism to facilitate binding and setting after searching the lighting SDK.

[0131] The video player of this embodiment also includes a communication module, which communicates with the outside through wireless communication or wired communication; wherein the wireless communication method includes WiFi, Bluetooth, data network, etc., and the wired communication method may include USB connection, Ethernet connection, etc.

[0132] Accordingly, the video player can access the video signal, and the video signal can be accessed through the TV, audio and video equipment, or input from the outside through interfaces such as HDMI; finally, the lighting control parameters are output to the lighting driver to drive the lighting equipment to emit light; since the hardware of the video player can be used to realize the output function, therefore, compared with the conventional method of using a capture box, it can reduce equipment costs and reduce the complexity of the solution.

[0133] An embodiment of the smart home system is described below.

[0134] The smart home system of this embodiment can be used to achieve the light-follow-shadow effect; Fig. 9 As shown, Fig. 9 This is a schematic diagram of the structure of an example smart home system, which mainly includes a video player, a display screen, a light driver and a light device as in any of the above embodiments; wherein the graphics card output end of the video player is connected to the display screen; the host of the video player is connected to the light driver, and the light driver is connected to the light device; the host of the video player receives a video signal, renders the video signal through the graphics card and then outputs it to the display screen for playback, and outputs light control parameters according to the video signal, outputs them to the light driver through the input / output device, and drives the light device to emit light.

[0135] Exemplarily, a video player may be connected to a plurality of lighting drivers 1-k, each lighting driver may adopt a different protocol, and each lighting device may be used to drive a plurality of lighting devices 1-m, thereby meeting different lighting device usage requirements.

[0136] like Fig.10 As shown, Fig.10 This is a schematic diagram of the structure of an example lighting driver and lighting equipment. The lighting driver in the figure includes a network driver or a wired driver, such as a network LED driver, a USB LED driver, etc., and the lighting equipment includes a DMX512 light and a WS2812 light.

[0137] The smart home system of this application is based on the function of the video player. The color picking position can be adjusted, and the sampling circle from the center of the picture to the edge of the picture can be adjusted to remove the black edge to avoid abnormal brightness. Through color post-processing, there are rich color adjustments after color picking, while the products on the market generally only have brightness; the degree of light shading can be adjusted; audio and video can act on the light at the same time; multiple driver connection methods, wired and wireless connections, can be automatically discovered; multiple light type drivers, including ws2812 and dmx512, etc.; scripts dynamically update effects to facilitate the realization of various effects.

[0138] Embodiments of computer-readable storage media are described below.

[0139] The present application provides a computer-readable storage medium, which stores at least one instruction, at least one program, a code set or an instruction set. The at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the function of the lighting color control system of any of the above embodiments.

[0140] In an exemplary embodiment, the computer-readable storage medium may be a non-temporary computer-readable storage medium including instructions, such as a memory including instructions. For example, the non-temporary computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

[0141] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A lighting color control system, characterized in that: Applied to video players, including: An embedded graphic display system is used to collect video signals from a video source and obtain image pictures; A light color processing unit, used for performing color analysis on the image to obtain color data; The light address encoding unit is used to encode the address of the light device according to the color data to generate the light control parameters, and output the light control parameters to the light driver to drive the light device to emit light, so that the light color of the light device changes with the image picture output by the video player to the display screen.

2. The lighting color control system according to claim 1, characterized in that: The lighting address encoding unit is also used to adjust the lighting mode and lighting control parameters output by the lighting color control system according to the configuration information input by the user in the UI interface of the video player.

3. The lighting color control system according to claim 1, characterized in that: Also includes: The audio processing unit is used to obtain input audio data and perform FFT processing on each channel of the audio data to obtain spectrum data; Extract key frequency points from the spectrum data to obtain sound intensity information; superimpose the sound intensity information on the control parameters to control the light color effect of the light strip.

4. The lighting color control system according to claim 3, characterized in that: The embedded graphic display system, the light color processing unit and the light address encoding unit are integrated on the operating system of the video player.

5. The lighting color control system according to any one of claims 1 to 4, characterized in that: The light color processing unit is configured to adjust the resolution of the image to obtain a reduced image; perform Gaussian blur processing on the reduced image according to a set first Gaussian blur parameter to obtain a first blurred image; wherein the first blurred image is used for dynamic mode control; perform Gaussian blur processing on the first blurred image according to a set first Gaussian blur parameter to obtain a second blurred image; wherein the second blurred image is used for atmosphere mode control; perform color sampling processing on the blurred image according to the matching range of the light strip to obtain color data.

6. The lighting color control system according to claim 5, characterized in that: The light color processing unit is configured to perform parallel scanning on the image in the horizontal direction; perform vertical scanning using multiple scanning lines on the image and calculate the length of the black border of the image; and calculate the image within the black border range according to the black border length.

7. A video player, characterized in that: include: A host and a graphics card; wherein an operating system is running on the host, and the lighting color control system according to any one of claims 1 to 6 is integrated into the operating system; The graphics card is used to render and output the video images played by the host; The host is used to play video images and output lighting control parameters.

8. A smart home system, characterized in that: include: The video player, display screen, lighting driver and lighting equipment as described in claim 7; The graphics card output terminal of the video player is connected to the display screen; The host of the video player is connected to a light driver, and the light driver is connected to a light device; The host of the video player receives a video signal, renders the video signal through the graphics card and then outputs it to the display screen for playback, and outputs lighting control parameters according to the video signal, outputs them to the lighting driver through the input / output device, and drives the lighting device to emit light.

9. The smart home system according to claim 8, characterized in that: The lighting driver includes a network driver or a wired driver; the lighting equipment includes a DMX512 light and a WS2812 light.

10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded by the processor and executes the function of the lighting color control system of any one of claims 1-6.

Citation Information

Patent Citations

  • LED surgical shadowless lamp system with full-automatic intelligent constant-light control function

    CN104363676A

  • Linkage method of set top box and atmosphere lamp in immersive film watching system

    CN110366030A

  • Video processing method and device, equipment and storage medium

    CN112995535A

  • Light control method based on boundary recognition, controller, module and storage medium

    CN113630932A

  • Video atmosphere light control method and device, electronic equipment and storage medium

    CN115866308A

Cited By

  • Color following method and device for video playing equipment

    CN120711302A