Intelligent lamp control method, device, equipment and computer readable storage medium
By controlling smart lights based on program information, the method and device dynamically adjust lighting to match the content, enhancing the user experience by providing dynamic and engaging lighting effects.
Patent Information
- Application Number
- CN202011128404.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2040-10-20
AI Technical Summary
Smart lamps on TV walls lack the ability to dynamically adjust lighting based on the content being played on smart TVs, resulting in monotonous and unlayered lighting experiences.
A method and device that control smart lights by acquiring program information from a display device, determining lighting configuration parameters based on this information, and adjusting display parameters to match the content, using techniques such as keyword extraction, color signal analysis, and Fourier transform to enhance lighting effects.
The smart lights can automatically adjust lighting effects to enhance the user's viewing experience by dynamically responding to the content being played, providing a more engaging and immersive environment.
Smart Images

Figure CN112423438B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method, device, equipment and computer-readable storage medium for controlling an intelligent lamp. Background Art
[0002] With the development of smart TVs, users have higher and higher requirements for the intelligent scenes of smart TVs. Smart lights on the TV wall that match smart TVs can change the lighting according to user needs. In the prior art, the lighting of smart lights on the TV wall is often mechanical, regular, lacking in layering and monotonous, and cannot change with the content played on the smart TV. Summary of the invention
[0003] The main purpose of the present invention is to provide a control method, device, equipment and computer-readable storage medium for a smart lamp, aiming to solve the problem that the smart lamp cannot change with the playback content of the smart TV.
[0004] To achieve the above object, the present invention provides a method for controlling a smart light, the method comprising the following steps:
[0005] Get the program information of the program currently being played on the display device;
[0006] Acquire lighting configuration parameters according to the program information;
[0007] The display parameters of the smart light are adjusted according to the lighting configuration parameters.
[0008] In one embodiment, the step of acquiring lighting configuration parameters according to the program information includes:
[0009] Extracting keywords from the program information, wherein the program information includes at least one of a program introduction and program lines;
[0010] Get the lighting configuration parameters corresponding to the keyword.
[0011] In one embodiment, the step of obtaining the lighting configuration parameters corresponding to the keyword includes:
[0012] Get the number of times the keyword appears;
[0013] Determine the weight information of the keyword according to the number of times;
[0014] The lighting configuration parameters of the smart lamp are determined according to the keywords and the corresponding weight information.
[0015] In one embodiment, the step of obtaining lighting configuration parameters according to the program information includes:
[0016] Acquire multiple image frames of the currently playing program within a preset duration;
[0017] Determine a single frame whose color ratio is within a preset range among multiple image frames as a key frame;
[0018] determining a color signal of the program information according to the key picture;
[0019] The lighting configuration parameters of the smart lamp are determined according to the color signal.
[0020] In one embodiment, the step of determining the lighting configuration parameters of the smart lamp according to the color signal comprises:
[0021] Performing Fourier transform on the color signal to determine characteristic information of the color signal, wherein the characteristic information includes at least one of frequency domain, variance and amplitude;
[0022] The lighting configuration parameters of the smart lamp are determined according to the characteristic information.
[0023] In one embodiment, the step of determining the lighting configuration parameters of the smart lamp according to the characteristic information includes:
[0024] The lighting configuration parameters of the smart lamp are determined according to the characteristic information, where the lighting configuration parameters include at least one of brightness, color, and saturation.
[0025] In one embodiment, before the step of obtaining program information of a program currently being played by the display device, the step further includes:
[0026] Detecting the user's facial information and / or the number of times the user moves;
[0027] If the face information is detected, and / or if it is detected that the number of movements of the user is greater than a preset number, the step of obtaining the program information of the program currently being played by the display device is performed.
[0028] To achieve the above object, the present invention further provides a control device for a smart light, the control device for the smart light comprising:
[0029] An acquisition module, used to acquire program information of a program currently being played by a display device;
[0030] A calculation module, used for obtaining lighting configuration parameters according to the program information;
[0031] The adjustment module is used to adjust the display parameters of the smart light according to the lighting configuration parameters.
[0032] To achieve the above-mentioned purpose, the present invention also provides a smart light control device, which includes a memory, a processor, and a smart light control program stored in the memory and executable on the processor. When the smart light control program is executed by the processor, it implements the various steps of the smart light control method described above.
[0033] To achieve the above objectives, the present invention also provides a computer-readable storage medium, which stores a control program for a smart light. When the control program for the smart light is executed by a processor, the various steps of the smart light control method described above are implemented.
[0034] The present invention provides a control method, device, equipment and computer-readable storage medium for smart lights, which obtain program information of a program currently played by a display device; obtain lighting configuration parameters according to the program information; and adjust the display parameters of the smart lights according to the lighting configuration parameters. The lighting configuration parameters of the smart lights are determined according to the program information of the played program, and then the display parameters of the smart lights are adjusted. The smart lights can automatically adjust and display different lighting effects according to different program information, thereby improving the user's viewing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A schematic diagram of the hardware structure of a smart light control device according to an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of a flow chart of a first embodiment of a method for controlling a smart lamp according to the present invention;
[0037] Figure 3 It is a detailed flowchart diagram of step S20 of the second embodiment of the intelligent lamp control method of the present invention;
[0038] Figure 4 Detailed flowchart of step S20 of the third embodiment of the method for controlling a smart lamp of the present invention;
[0039] Figure 5 It is a schematic diagram of the functional module structure of the control device of the smart lamp of the present invention.
[0040] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0041] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0042] The main solution of the embodiment of the present invention is: obtaining program information of a program currently played by a display device; obtaining lighting configuration parameters according to the program information; and adjusting display parameters of the smart light according to the lighting configuration parameters.
[0043] The lighting configuration parameters of the smart lights are determined according to the program information of the program being played, and then the display parameters of the smart lights are adjusted. The smart lights can automatically adjust and display different lighting effects according to different program information, thereby improving the user's viewing experience.
[0044] As an implementation solution, the control device of the smart light can be Figure 1 shown.
[0045] The embodiment of the present invention relates to a control device for a smart light, which includes: a processor 101, such as a CPU, a memory 102, and a communication bus 103. The communication bus 103 is used to realize connection and communication between these components.
[0046] The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Figure 1 As shown, the memory 102 as a computer-readable storage medium may include a control program for the smart light; and the processor 101 may be used to call the control program for the smart light stored in the memory 102 and perform the following operations:
[0047] Get the program information of the program currently being played on the display device;
[0048] Acquire lighting configuration parameters according to the program information;
[0049] The display parameters of the smart light are adjusted according to the lighting configuration parameters.
[0050] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0051] Extracting keywords from the program information, wherein the program information includes at least one of a program introduction and program lines;
[0052] Get the lighting configuration parameters corresponding to the keyword.
[0053] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0054] Get the number of times the keyword appears;
[0055] Determine the weight information of the keyword according to the number of times;
[0056] The lighting configuration parameters of the smart lamp are determined according to the keywords and the corresponding weight information.
[0057] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0058] Acquire multiple image frames of the currently playing program within a preset duration;
[0059] Determine a single frame whose color ratio is within a preset range among multiple image frames as a key frame;
[0060] determining a color signal of the program information according to the key picture;
[0061] The lighting configuration parameters of the smart lamp are determined according to the color signal.
[0062] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0063] Performing Fourier transform on the color signal to determine characteristic information of the color signal, wherein the characteristic information includes at least one of frequency domain, variance and amplitude;
[0064] The lighting configuration parameters of the smart lamp are determined according to the characteristic information.
[0065] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0066] The lighting configuration parameters of the smart lamp are determined according to the characteristic information, where the lighting configuration parameters include at least one of brightness, color, and saturation.
[0067] In one embodiment, the processor 101 may be used to call the control program of the smart light stored in the memory 102 and perform the following operations:
[0068] Detecting the user's facial information and / or the number of times the user moves;
[0069] If the face information is detected, and / or if it is detected that the number of movements of the user is greater than a preset number, the step of obtaining the program information of the program currently being played by the display device is performed.
[0070] Based on the hardware architecture of the above-mentioned smart lamp control device, an embodiment of the smart lamp control method of the present invention is proposed.
[0071] Reference Figure 2 , Figure 2 The first embodiment of the smart light control method of the present invention comprises the following steps:
[0072] Step S10, obtaining program information of a program currently being played by the display device;
[0073] Specifically, the display device may be a smart device such as a smart TV, mobile phone, or tablet computer. When an application in the display device plays a video program, program information of the program currently played by the display device is obtained. The program information may be dialogue information or picture information of the program.
[0074] Before obtaining the program information of the program currently being played by the display device, it is also necessary to detect whether the user is watching the program. If the program is being played but no user is watching the program, it is not necessary to obtain the program information. If the program is being played and a user is watching the program, it is necessary to obtain the program information. The detection of whether the user is watching the program can detect the user's facial information and / or the number of times the user moves; if the facial information is detected, and / or if it is detected that the number of times the user moves is greater than a preset number, the program information of the program currently being played by the display device is obtained.
[0075] Step S20, obtaining lighting configuration parameters according to the program information;
[0076] Specifically, the program information may be the sound, picture and color information of the program being played, and determining the lighting configuration parameters according to the program information may be determining a plurality of lighting configuration parameters according to different program information, and the lighting configuration parameters include lighting saturation, brightness, contrast and the like.
[0077] The lighting configuration parameters may be generated based on program information. If it is detected that a horror or suspense film is being played and that there are gunshots, screams, and other sounds emitted by the TV, dark lighting configuration parameters with low saturation and concentration are configured.
[0078] The lighting configuration parameters can also be set in advance. The various lighting configuration parameters set in advance can be divided into multiple categories, for example, according to the application scenario, they can be divided into categories such as "Spring Festival", "Universe", "Desert", "Forest", etc. When the corresponding application scenario is detected, the lighting configuration parameters corresponding to the application scenario are directly called. For example, when it is detected that the program is playing the Spring Festival Gala, and the keywords such as farewell to the old and ushering in the new, Happy New Year, Happy New Year, countdown, etc. issued by the host or actor are collected, it can be judged that the Spring Festival Gala is being played in the program at this time and the countdown to the New Year has come. The smart light automatically obtains the lighting configuration parameters of the pre-set countdown screen and fireworks and other scenes, and automatically creates a joyful scene with the display device. When it is detected that the program is playing Animal World, and the commentary keywords such as desert, dryness, migration, etc. are detected, the lighting configuration parameters of the desert category are matched.
[0079] Step S30: adjusting the display parameters of the smart light according to the lighting configuration parameters.
[0080] Specifically, the display parameters of the smart lights are adjusted according to the lighting configuration parameters to show different lighting effects. For example, during the Spring Festival Gala, in order to create a festive atmosphere, the lighting configuration parameters may be to adjust the smart lights to festive lighting effects such as red. During the countdown to the Spring Festival Gala, the lighting configuration parameters of the smart lights are adjusted according to the program information, and the smart lights play the countdown screen according to the adjusted lighting configuration parameters.
[0081] In the technical solution of this embodiment, the lighting configuration parameters of the smart light are determined according to the program information of the program being played, and then the display parameters of the smart light are adjusted. The smart light can automatically adjust and display different lighting effects according to different program information, thereby improving the user's viewing experience.
[0082] Reference Figure 3 , Figure 3 This is a second embodiment of the intelligent lamp control method of the present invention. Based on the first embodiment of the present invention, step S20 includes:
[0083] Step S21, extracting keywords from the program information, wherein the program information includes at least one of a program introduction and a program script;
[0084] Step S22, obtaining lighting configuration parameters corresponding to the keyword.
[0085] The step S22 includes: obtaining the number of times the keyword appears; determining the weight information of the keyword according to the number; and determining the lighting configuration parameters of the smart lamp according to the keyword and the corresponding weight information.
[0086] Specifically, the program information includes program introduction and program lines. The program introduction can be a pre-stored introduction of the program, such as the type of the movie is a thriller; the program lines can be the lines of the host or actor, etc. Extract keywords from the program information. For example, if the program information is the program lines of the host or actor, extract keywords from the program lines, such as "desert", "river", "migration", etc., and determine the corresponding lighting configuration parameters based on the keywords. The lighting configuration parameters can also be adjusted based on the number of times the keywords appear. For example, if the desert appears three times and the river appears once, the weight information of the desert is greater than the weight information of the river. Based on the keywords and the corresponding weight information, it can be determined that the current smart light can be set to the lighting configuration parameters for the desert.
[0087] In the technical solution of this embodiment, the lighting configuration parameters of the smart lamp are determined based on the keywords in the program information and the corresponding weight information. The lighting configuration parameters can be determined more accurately based on multiple keywords, thereby preventing the lighting configuration parameters from being inconsistent with the application scenario due to the existence of keywords that appear less frequently.
[0088] Reference Figure 4 , Figure 4 This is a third embodiment of the intelligent lamp control method of the present invention, based on the first or second embodiment of the present invention, the step S20 includes:
[0089] Step S23, obtaining multiple image frames of the currently playing program within a preset duration;
[0090] Step S24, determining a single frame whose color ratio is within a preset range among the multiple image frames as a key frame;
[0091] Step S25, determining the color signal of the program information according to the key picture;
[0092] Step S26, determining the lighting configuration parameters of the smart lamp according to the color signal.
[0093] The step S26 includes: performing Fourier transform on the color signal to determine characteristic information of the color signal, wherein the characteristic information includes at least one of frequency domain, variance and amplitude; and determining the lighting configuration parameters of the smart lamp according to the characteristic information.
[0094] Specifically, multiple image frames of a program within a preset duration are obtained, wherein the preset duration may be 1 second, and the image frame is an image corresponding to the video played by the program. The color ratio of each image frame is determined, wherein the color ratio here may be the ratio of the three colors red, green, and blue, for example, the color ratio is red: green: blue = 1:2:3. A single frame with a color ratio in a preset interval is screened out from multiple image frames as a key picture, and the key picture is an image frame that can represent the content of the current program. A key picture is defined as a signal on a two-dimensional plane, and the amplitude of the signal corresponds to the red value, green value, and blue value in the RGB value, and the color signal corresponding to the key picture is determined. The lighting configuration parameters of the smart lamp are determined according to the color signal of the key picture. Among them, the color signal can be subjected to Fourier transform to obtain characteristic information of the color signal, and the characteristic information includes at least one of the frequency domain, variance, and amplitude, exemplarily, as shown in the following formula,
[0095]
[0096] Among them, f(n) is the color signal, F(k) is the color signal after Fourier transform, N is the signal frequency of the collected signal, and k is the corresponding order.
[0097] After that, find the variance S of F(k) 2 , as shown in the following formula,
[0098]
[0099] Among them, F(k) is the color signal after Fourier transform, is the mean value of the color signal, N is the signal frequency of the collected signal, and k is the corresponding order.
[0100] After determining the characteristic information, the lighting configuration parameters of the smart lamp are determined according to the characteristic information, and the lighting configuration parameters of the smart lamp are determined according to the characteristic information, and the lighting configuration parameters include at least one of brightness, color and saturation.
[0101] When the variance S 2 When the same application scenario is used for a certain period of time, the smart light is controlled to display parameters fixed to the application scenario. For example, the lighting configuration parameters are divided into categories such as festive, soothing, cheerful, sad, and exciting according to the application scenario, and each lighting configuration parameter represents different lighting brightness, concentration, color temperature, etc. When the variance of the color signal obtained by program information processing falls within the preset threshold corresponding to the festive category for a certain period of time, the smart light is controlled to display parameters fixed to the lighting effect corresponding to the festive category.
[0102] In the technical solution of this embodiment, the key picture of the program is determined, the color signal of the key picture is processed to obtain characteristic information, the lighting configuration parameters of the smart lamp are determined based on the characteristic information, and the lighting configuration parameters of the smart lamp are automatically adjusted according to the picture content of the program to avoid single mechanized lighting configuration parameters.
[0103] Reference Figure 5 The present invention also provides a control device for a smart light, the control device for the smart light comprising:
[0104] The acquisition module 100 is used to acquire program information of the program currently being played by the display device;
[0105] A calculation module 200, used to obtain lighting configuration parameters according to the program information;
[0106] The adjustment module 300 is used to adjust the display parameters of the smart light according to the lighting configuration parameters.
[0107] In one embodiment, in terms of obtaining lighting configuration parameters according to the program information, the calculation module 200 is specifically used to:
[0108] Extracting keywords from the program information, wherein the program information includes at least one of a program introduction and program lines;
[0109] Get the lighting configuration parameters corresponding to the keyword.
[0110] In one embodiment, in terms of obtaining the lighting configuration parameters corresponding to the keyword, the calculation module 200 is specifically used to:
[0111] Get the number of times the keyword appears;
[0112] Determine the weight information of the keyword according to the number of times;
[0113] The lighting configuration parameters of the smart lamp are determined according to the keywords and the corresponding weight information.
[0114] In one embodiment, in terms of obtaining lighting configuration parameters according to the program information, the calculation module 200 is specifically used to:
[0115] Acquire multiple image frames of the currently playing program within a preset duration;
[0116] Determine a single frame whose color ratio is within a preset range among multiple image frames as a key frame;
[0117] determining a color signal of the program information according to the key picture;
[0118] The lighting configuration parameters of the smart lamp are determined according to the color signal.
[0119] In one embodiment, in determining the lighting configuration parameters of the smart lamp according to the color signal, the calculation module 200 is specifically used to:
[0120] Performing Fourier transform on the color signal to determine characteristic information of the color signal, wherein the characteristic information includes at least one of frequency domain, variance and amplitude;
[0121] The lighting configuration parameters of the smart lamp are determined according to the characteristic information.
[0122] In one embodiment, in determining the lighting configuration parameters of the smart lamp according to the characteristic information, the calculation module 200 is specifically used to:
[0123] The lighting configuration parameters of the smart lamp are determined according to the characteristic information, where the lighting configuration parameters include at least one of brightness, color, and saturation.
[0124] In one embodiment, the control device of the smart lamp further includes a detection unit 400, wherein:
[0125] The detection unit 400 is used to detect the user's facial information and / or the number of times the user moves; if the facial information is detected, and / or if the number of times the user moves is detected to be greater than a preset number, the step of obtaining the program information of the program currently being played on the display device is executed.
[0126] The present invention also provides a smart light control device, which includes a memory, a processor, and a smart light control program stored in the memory and executable on the processor. When the smart light control program is executed by the processor, the smart light control device implements the various steps of the smart light control method described in the above embodiment.
[0127] The present invention also provides a computer-readable storage medium, which stores a control program for a smart light. When the control program for the smart light is executed by a processor, the steps of the smart light control method described in the above embodiment are implemented.
[0128] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0130] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0131] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for controlling a smart lamp, characterized in that: The control method of the smart lamp includes: Detect the user's facial information and the number of times the user moves; If the face information is detected and the number of movements of the user is detected to be greater than a preset number, program information of a program currently being played by the display device is obtained; Acquiring lighting configuration parameters according to the program information includes: acquiring multiple image frames of the currently playing program within a preset duration; determining a single frame with a color ratio within a preset interval in the multiple image frames as a key frame, wherein the key frame is an image frame representing the current program content; determining a color signal of the program information according to the key frame; performing Fourier transform on the color signal to determine feature information of the color signal, wherein the feature information includes a frequency domain, a variance, and an amplitude; determining the lighting configuration parameters of the smart lamp according to the feature information, wherein when the variances all belong to the same application scenario within a preset time, the smart lamp is controlled to fix the display parameters to the application scenario, and the application scenario corresponds to the lighting configuration parameters; The display parameters of the smart light are adjusted according to the light configuration parameters, where the light configuration parameters include brightness, color, and saturation.
2. The intelligent lamp control method according to claim 1, characterized in that: The step of obtaining lighting configuration parameters according to the program information comprises: Extracting keywords from the program information, wherein the program information includes at least one of a program introduction and program lines; Get the lighting configuration parameters corresponding to the keyword.
3. The intelligent lamp control method according to claim 2, characterized in that: The step of obtaining the lighting configuration parameters corresponding to the keyword includes: Get the number of times the keyword appears; Determine the weight information of the keyword according to the number of times; The lighting configuration parameters of the smart lamp are determined according to the keywords and the corresponding weight information.
4. A smart lamp control device, characterized in that: The control device of the intelligent lamp comprises: An acquisition module, used to detect the user's face information and the number of times the user moves; if the face information is detected and the number of times the user moves is greater than a preset number, then the program information of the program currently played by the display device is acquired; A calculation module, used for obtaining lighting configuration parameters according to the program information, including: obtaining multiple image frames of the currently playing program within a preset duration; determining a single frame with a color ratio within a preset interval in the multiple image frames as a key frame, wherein the key frame is an image frame representing the current program content; determining a color signal of the program information according to the key frame; performing Fourier transform on the color signal to determine feature information of the color signal, wherein the feature information includes frequency domain, variance and amplitude; determining the lighting configuration parameters of the smart lamp according to the feature information, wherein when the variances all belong to the same application scenario within the preset time, the smart lamp is controlled to fix the display parameters to the application scenario, and the application scenario corresponds to the lighting configuration parameters; The adjustment module is used to adjust the display parameters of the smart light according to the lighting configuration parameters, and the lighting configuration parameters include brightness, color and saturation.
5. A smart lamp control device, characterized in that: The control device of the smart light includes a memory, a processor, and a control program of the smart light stored in the memory and executable on the processor. When the control program of the smart light is executed by the processor, the various steps of the control method of the smart light as described in any one of claims 1-3 are implemented.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a control program for a smart light, and when the control program for the smart light is executed by a processor, each step of the method for controlling a smart light as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Control method and control apparatus for intelligent lamp, intelligent lamp and communication control apparatus
CN105636312A
Time synchronization method for ambient light television and ambient light television
CN106658134A
