Intelligent dimming LED driver and intelligent dimming method
Through the processor module of the intelligent dimming LED driver, the brightness value of the video frame and the ambient light illumination are extracted, combined with audio information, and dynamic dimming and color matching of the LED light group are realized, solving the problem that traditional technology cannot dynamic dimming and improving users Experience and adaptability to lighting effects.
Patent Information
- Application Number
- CN202411129417.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-08-16
AI Technical Summary
Traditional LED intelligent dimming technology cannot dynamically dim based on different audio and video information, and cannot adapt to the needs of different environments and scenarios.
An intelligent dimming LED driver is designed, including a power module, a dimming control module, a processor module and a communication module. The processor module extracts the brightness value of the video frame, obtains ambient light illuminance and audio information, and matches the brightness of the LED light group and Color, realize dynamic dimming and color adjustment.
Accurate LED light dimming and color matching, enhance user's visual and auditory experience, improve the diversity and adaptability of lighting effects, avoid excessive brightness or darkness, improve the convenience of use and intelligence degree.
Smart Images

Figure CN118660362B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of control systems, and in particular relates to an intelligent dimming LED driver and an intelligent dimming method. Background Art
[0002] LED intelligent dimming is a way to achieve more efficient and comfortable lighting by controlling the brightness and color temperature of LED lights. This technology is widely used in lighting systems in homes, offices, businesses and public places.
[0003] In traditional LED intelligent dimming technology, it often relies on fixed parameters to set a fixed dimming mode or relies on manual dimming. Traditional LED intelligent dimming technology cannot perform dynamic dimming based on different audio and video information, so how to achieve dynamic dimming based on audio and video information has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] In view of this, the embodiments of the present invention provide an intelligent dimming LED driver and an intelligent dimming method to solve the technical problem that dynamic dimming cannot be performed based on different audio and video information.
[0005] A first aspect of an embodiment of the present invention provides an intelligent dimming LED driver, the intelligent dimming LED driver comprising a power module, a dimming control module, a processor module and a communication module; the power module, the dimming control module, the processor module and the communication module are respectively connected to the processor module;
[0006] The communication module is used to connect to the Internet of Things;
[0007] The processor module is used to extract the current brightness value of the current video frame of the display device when entering the next dimming cycle;
[0008] The processor module is used to match the minimum brightness value of the LED light group according to the current brightness value;
[0009] The processor module is used to obtain the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0010] The processor module is used to collect current audio information of the display device, extract current scene features in the current audio information, and match the color of the LED light group based on the current scene features;
[0011] The processor module is used to match the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value;
[0012] The dimming control module is used to execute the dimming command sent by the processor module.
[0013] A second aspect of an embodiment of the present invention provides an intelligent dimming method, the intelligent dimming method comprising:
[0014] When entering the next dimming cycle, extract the current brightness value of the current video frame of the display device;
[0015] Match the minimum brightness value of the LED light group according to the current brightness value;
[0016] Acquire the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0017] Collecting current audio information of the display device, extracting current scene features in the current audio information, and matching the color of the LED light group based on the current scene features;
[0018] Based on the current audio amplitude in the real-time audio information, the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle are matched; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
[0019] Furthermore, the step of obtaining the ambient light illumination and matching the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination includes:
[0020] Acquire multiple historical brightness values, and divide the high brightness range and the low brightness range according to the multiple historical brightness values;
[0021] If the current brightness value is within the low brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daylight shading state;
[0022] If the current brightness value is within the low brightness range and the ambient light illumination is lower than a preset value, it is determined that the viewing environment is at night;
[0023] If the current brightness value is within the high brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daytime unshaded state;
[0024] Obtaining preset brightness values corresponding to the daytime shading state, the night state, and the daytime unshading state;
[0025] The preset brightness value is used as the maximum brightness value.
[0026] Furthermore, the step of collecting current audio information of the display device, extracting current scene features in the current audio information, and matching the color of the LED light group based on the current scene features includes:
[0027] Calculating an audio feature matrix of the current audio information;
[0028] Acquire a plurality of preset standard feature matrices; the standard feature matrices are based on different scene audio settings, different standard feature matrices correspond to different standard scene features, and different standard scene features correspond to different LED light group colors;
[0029] Respectively calculating the similarity between the audio feature matrix and each of the standard feature matrices;
[0030] Extracting the standard feature matrix corresponding to the maximum similarity, and the standard scenario feature corresponding to the standard feature matrix corresponding to the maximum similarity as the current scenario feature;
[0031] Match the LED light group color corresponding to the current scene feature.
[0032] Furthermore, the step of calculating the audio feature matrix of the current audio information includes:
[0033] Dividing the current audio information into multiple audio segments according to fixed lengths;
[0034] Performing Fourier transform on the audio clip to obtain frequency components; the frequency components are used to represent frequency components at different time points;
[0035] Mapping the frequency categories to MIDI pitch values and matching the semitone categories corresponding to the MIDI pitch values;
[0036] Accumulate the amplitude of the frequency component corresponding to each semitone category in each frequency component to obtain the accumulated value corresponding to each semitone category;
[0037] The accumulated values corresponding to all semitone categories of each frequency component are combined into a feature vector;
[0038] The eigenvectors corresponding to the multiple frequency components are combined into an audio feature matrix.
[0039] Furthermore, the step of matching the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information includes:
[0040] Get the preset highest audio amplitude and lowest audio amplitude;
[0041] Calculate the position information of the current audio amplitude between the highest audio amplitude and the lowest audio amplitude;
[0042] The brightness value at the position corresponding to the position information between the minimum brightness value and the maximum brightness value is used as the adaptive brightness value.
[0043] Further, the step of calculating the position information of the current audio amplitude being between the highest audio amplitude and the lowest audio amplitude comprises:
[0044] Calculating a first difference between the highest audio amplitude and the lowest audio amplitude;
[0045] If the current audio amplitude is between the highest audio amplitude and the lowest audio amplitude, calculating a second difference between the current audio amplitude and the lowest audio amplitude;
[0046] Calculating a third difference between the highest audio amplitude and the current audio amplitude;
[0047] The second difference value is divided by the third difference value to obtain a ratio value, and the ratio value is used as the position information.
[0048] Furthermore, the step of using the brightness value of the position corresponding to the position information between the minimum brightness value and the maximum brightness value as the adaptive brightness value includes:
[0049] The brightness value at the position corresponding to the ratio value between the minimum brightness value and the maximum brightness value is used as the adaptive brightness value.
[0050] A third aspect of an embodiment of the present invention provides an intelligent dimming device, including:
[0051] An extraction unit, used to extract a current brightness value of a current video frame of a display device when entering a next dimming cycle;
[0052] A first matching unit, configured to match a minimum brightness value of the LED light group according to the current brightness value;
[0053] An acquisition unit, used to acquire the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0054] A second matching unit, configured to collect current audio information of the display device, extract current scene features in the current audio information, and match the color of the LED light group based on the current scene features;
[0055] The third matching unit is used to match the adaptive brightness values corresponding to multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
[0056] A third aspect of an embodiment of the present invention provides a terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.
[0057] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.
[0058] Compared with the prior art, the embodiments of the present invention have the following beneficial effects: the processor module extracts the current video frame of the display device when entering the next dimming cycle, and calculates its current brightness value, which can accurately match the minimum brightness value of the LED light group, so that the dimming effect is more delicate and adapts to different scene requirements. The processor module can obtain the ambient light illumination, match the maximum brightness value of the LED light group according to these data, and ensure that the brightness of the LED light is always in the best state under different ambient light to avoid being too bright or too dark. The processor module collects the current audio information of the display device, extracts the current scene features therein, and can match the color of the LED light group in real time, so that the lighting effect is coordinated with the current audio scene, and enhances the user's visual and auditory experience. The processor module matches the adaptive brightness values corresponding to multiple dimming points in the dimming cycle according to the current audio amplitude in the real-time audio information, so that the LED light can dynamically adjust the brightness as the audio changes. The communication module is used to connect the Internet of Things, so that the intelligent dimming LED driver can be remotely controlled and managed through the network, which improves the convenience and intelligence of use. In summary, the present invention realizes dynamic dimming and color adjustment of LED lights through the integration of intelligent processor modules and multiple sensor information, which significantly improves the user experience and the diversity and adaptability of lighting effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0060] Figure 1 A schematic flow chart of an intelligent dimming method provided by the present invention is shown;
[0061] Figure 2 A schematic diagram of an intelligent dimming device provided by an embodiment of the present invention is shown;
[0062] Figure 3 A schematic diagram of a terminal device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0063] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.
[0064] The embodiments of the present invention provide an intelligent dimming LED driver and an intelligent dimming method to solve the technical problem that dynamic dimming cannot be performed based on different audio and video information.
[0065] First, the present invention provides an intelligent dimming LED driver, which includes a power module, a dimming control module, a processor module and a communication module; the power module, the dimming control module, the processor module and the communication module are respectively connected to the processor module; the communication module is used to connect to the Internet of Things; the processor module is used to extract the current video frame of the display device and calculate the current brightness value of the current video frame when entering the next dimming cycle; the processor module is used to match the minimum brightness value of the LED light group according to the current brightness value; the processor module is used to obtain the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination; the processor module is used to collect the current audio information of the display device through the microphone module, extract the current scene features in the current audio information, and match the color of the LED light group based on the current scene features; the processor module is used to match the adaptive brightness values corresponding to multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value;
[0066] The dimming control module is used to execute the dimming command sent by the processor module.
[0067] In this embodiment, the processor module extracts the current video frame of the display device when entering the next dimming cycle, and calculates its current brightness value, which can accurately match the minimum brightness value of the LED light group, so that the dimming effect is more delicate and adapts to different scene requirements. The processor module can obtain the ambient light illumination, match the maximum brightness value of the LED light group according to these data, and ensure that the brightness of the LED light is always in the best state under different ambient light to avoid being too bright or too dark. The processor module collects the current audio information of the display device and extracts the current scene features therein, so that the color of the LED light group can be matched in real time, so that the lighting effect is coordinated with the current audio scene, and the user's visual and auditory experience is enhanced. The processor module matches the adaptive brightness values corresponding to multiple dimming points in the dimming cycle according to the current audio amplitude in the real-time audio information, so that the LED light can dynamically adjust the brightness as the audio changes. The communication module is used to connect the Internet of Things, so that the intelligent dimming LED driver can be remotely controlled and managed through the network, which improves the convenience and intelligence of use. In summary, the present invention realizes the dynamic dimming and color adjustment of LED lights through the integration of intelligent processor modules and multiple sensor information, which significantly improves the user experience and the diversity and adaptability of lighting effects.
[0068] Secondly, the present invention provides an intelligent dimming method. Figure 1 , Figure 1 FIG. 1 is a schematic flow chart of an intelligent dimming method provided by the present invention. Figure 1 As shown, the intelligent dimming method may include the following steps:
[0069] Step 101: when entering the next dimming cycle, extracting the current brightness value of the current video frame of the display device;
[0070] The intelligent dimming LED driver is connected to the display device via HDMI to collect video information and audio information. The dimming operation of the intelligent dimming LED driver is periodic dimming. When entering the next dimming cycle, the logical steps of the present invention are executed to achieve periodic dimming.
[0071] In order to prevent the brightness of the LED light group from being too high or too low, which may affect the lighting effect or the display effect of the display device, it is necessary to extract the current brightness value of the current video frame of the display device to match the brightness of the appropriate LED light group.
[0072] Step 102: Matching the minimum brightness value of the LED light group according to the current brightness value;
[0073] Different screen brightness corresponds to different LED minimum brightness values to avoid the brightness of the LED light group being too high, affecting the picture effect of the display device.
[0074] Step 103: Acquire the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0075] The ambient light intensity collected by the IoT system is obtained through the communication module.
[0076] Since the opening and closing of indoor curtains have different requirements on the brightness value of the LED light group, when the indoor curtains are opened, a higher brightness value of the LED light group is required, and when the indoor curtains are closed, a lower brightness value of the LED light group is required. Since the intelligent dimming LED driver cannot directly determine the opening and closing of the indoor curtains through sensors, this embodiment uses the following method to determine the opening and closing of the indoor curtains:
[0077] Specifically, step 103 specifically includes steps 1031 to 1036:
[0078] Step 1031: Acquire multiple historical brightness values, and divide a high brightness range and a low brightness range according to the multiple historical brightness values;
[0079] Calculate the average of multiple historical brightness values, take the historical brightness values greater than the average as the high brightness range, and take the historical brightness values less than the average as the low brightness range.
[0080] Step 1032: If the current brightness value is within the low brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daylight shielding state;
[0081] If the current brightness value is in the low brightness range and the ambient light illumination is higher than the preset value, it means that the indoor light is dim, so the brightness of the display device screen is low, while the outdoor light is sufficient, so it can be determined to be a daytime shading state (that is, the curtains are closed).
[0082] Step 1033: if the current brightness value is within the low brightness range and the ambient light illumination is lower than a preset value, determining that the viewing environment is in a night state;
[0083] If the current brightness value is in the low brightness range and the ambient light is lower than the preset value, it means that the indoor light is dim and the outdoor light is also dim, so it can be determined as a night state (that is, the curtains are open or closed).
[0084] Step 1034: if the current brightness value is within the high brightness range and the ambient light illumination is higher than a preset value, then determining that the viewing environment is in a daytime unshaded state;
[0085] If the current brightness value is in the high brightness range and the ambient light illumination is higher than the preset value, it means that the indoor light is strong, so the brightness of the display device screen is high, and there is sufficient light outside, so it can be determined that it is in the daytime without light blocking (that is, the curtains are open).
[0086] As an optional embodiment of the present invention, in addition to the judgment conditions of step 1032, step 1033 and step 1034, a fixed value can be used as the maximum brightness value.
[0087] Step 1035: Obtaining preset brightness values corresponding to the daytime shading state, the night state, and the daytime unshading state;
[0088] Step 1036: Use the preset brightness value as the maximum brightness value.
[0089] In this embodiment, multiple historical brightness values are obtained, and a high brightness range and a low brightness range are divided based on these data. This process ensures that the system can make corresponding adjustments according to different brightness conditions. When the current brightness value is in the low brightness range and the ambient light illumination is higher than the preset value, the system determines that the viewing environment is in the daytime shading state. This state is usually applicable to the situation where the user uses curtains or shading devices to reduce external light interference during the day. When the current brightness value is in the low brightness range and the ambient light illumination is lower than the preset value, the system determines that the viewing environment is in the night state. This state is applicable to the situation where the user is at night. When the current brightness value is in the high brightness range and the ambient light illumination is higher than the preset value, the system determines that the viewing environment is in the daytime unshaded state. This state is applicable to the situation where the user is in the daytime and unshaded. The preset brightness values corresponding to the daytime shading state, the night state and the daytime unshaded state are obtained. These preset brightness values are optimized according to different viewing environments to ensure that the brightness of the LED light group can be coordinated with the ambient light. Finally, the above preset brightness value is used as the maximum brightness value of the LED light group. This dynamic adjustment mechanism ensures that the LED light group can provide the best brightness effect in different viewing environments, avoiding visual fatigue caused by too bright or too dark.
[0090] Step 104: collecting current audio information of the display device, extracting current scene features in the current audio information, and matching the color of the LED light group based on the current scene features;
[0091] Since the emotions expressed in different audio and video are different, such as: panic, drama or tragedy, etc., there is a certain influence relationship between emotions and colors. Different colors can trigger or symbolize different emotional reactions. Therefore, in order to make the color of the light more consistent with the scene or emotion in the audio and video, this application identifies the current scene features in the current audio information to match the color suitable for the current audio information, thereby providing a better audio-visual experience. The specific logic is as follows:
[0092] Specifically, step 104 includes steps 1041 to 1045:
[0093] Step 1041: Calculate the audio feature matrix of the current audio information;
[0094] Specifically, step 1041 specifically includes steps A1 to A6:
[0095] Step A1: dividing the current audio information into multiple audio segments according to fixed lengths;
[0096] Step A2: performing Fourier transform on the audio clip to obtain frequency components; the frequency components are used to represent frequency components at different time points;
[0097] Step A3: Mapping the frequency classification to MIDI pitch values, and matching the semitone categories corresponding to the MIDI pitch values;
[0098] Map the frequency components in the spectrum to 12 semitone categories. Each semitone category corresponds to a musical pitch class. For example, all C notes (including C notes of different octaves such as C1, C2, C3, etc.) are mapped to the same semitone category. The 12 semitone categories refer to the 12 equally spaced pitches within an octave in the Western music system. An octave refers to an interval with a frequency ratio of 2:1 between two notes. In Western music, an octave is divided into 12 equally spaced pitch intervals, called semitones.
[0099] MIDI pitch values are standardized values used to represent musical pitches, and are widely used in music production and digital audio processing. MIDI pitch values use integers to represent pitches, where each integer corresponds to a specific note. This value range is usually from 0 to 127, where: MIDI value 60 represents middle C4, and each increase in value raises the pitch by one semitone, and MIDI value 69 represents A4. The frequency of standard tuning is usually 440Hz.
[0100] The specific logic for mapping frequency classification to MIDI pitch values is as follows:
[0101] Convert the frequency component to pitch (in semitones) using the following formula:
[0102] ;
[0103] in, is the frequency The corresponding MIDI pitch value, 440Hz is the standard A4 pitch. This formula represents the relationship between frequency and pitch, so that each frequency can be mapped to the corresponding MIDI pitch value.
[0104] As you can understand, the human ear perceives pitch in a logarithmic relationship, which means that if the frequency of one note is twice the frequency of another note, the pitch difference between the two notes is perceived as the same (i.e. one octave). Logarithmic operations convert this perception into a linear relationship, which is convenient for the numerical representation of pitch. A4 is the standard pitch, corresponding to a frequency of 440Hz. In the MIDI standard, the MIDI pitch value of A4 is 69. By calculating the logarithm of all frequencies relative to the frequency of A4, the pitch values can be standardized to correspond to the MIDI pitch values. In the Western music system, an octave is divided into 12 equally spaced semitones. The logarithmic base 2 operation ensures that the frequency ratio between each semitone is the same. Through the above formula, the frequency can be mapped to a specific MIDI pitch value for subsequent processing.
[0105] Represents a linear interpolation term, by adjusting the factor Makes a fine adjustment to the decimal part. Adjustment factor The introduction of can make the mapping smoother and more accurate, especially when processing frequencies that are similar but not completely equal, it can better reflect the subtle differences in frequency.
[0106] After getting the MIDI pitch value, it needs to be mapped to the 12 semitone categories. The 12 semitone categories can be mapped using the following formula:
[0107] ;
[0108] in, Indicates frequency Corresponding semitone categories. Mapping MIDI pitch values to 12 semitone categories is done via modulo arithmetic.
[0109] Step A4: Accumulate the amplitude of the frequency component corresponding to each semitone category in each frequency component to obtain the accumulated value corresponding to each semitone category;
[0110] Step A5: combining the accumulated values corresponding to all semitone categories of each frequency component into a feature vector;
[0111] Step A6: Combine the feature vectors corresponding to the multiple frequency components into an audio feature matrix.
[0112] In this embodiment, the current audio information is divided into a plurality of audio segments according to a fixed length. This segmentation method ensures local analysis of the audio information and facilitates subsequent processing. The audio segment is subjected to Fourier transform to obtain frequency components. Fourier transform can convert the time domain signal into the frequency domain, thereby resolving the frequency components at different time points, laying the foundation for subsequent frequency analysis. The frequency components are used to represent the frequency components at different time points, and this step makes the characteristics of the audio signal in the frequency domain more obvious and specific. The frequency components are mapped to MIDI pitch values, and the semitone categories corresponding to the MIDI pitch values are matched. This step provides a standardized pitch representation method through the introduction of MIDI pitch values, which is conducive to the unified representation and comparison of audio features. The amplitudes of the frequency components corresponding to each semitone category in each frequency component are accumulated to obtain the accumulated values corresponding to each semitone category. By accumulating, the amplitudes of the frequency components of the same semitone category can be effectively aggregated, simplifying and highlighting the audio features. The accumulated values corresponding to all semitone categories of each frequency component are combined into a feature vector. The feature vector is a concentrated representation of frequency domain features, which can effectively summarize the frequency features of the audio segment. The feature vectors corresponding to each of the multiple frequency components are combined into an audio feature matrix. The audio feature matrix integrates the frequency information of each audio clip and provides a comprehensive audio feature representation. Through the above steps, the frequency components of the audio information at different time points can be accurately represented, and a detailed frequency domain analysis can be provided. Standardization processing is performed using MIDI pitch values and semitone categories to facilitate comparison and analysis between different audio information. The representation of frequency domain information is simplified by accumulating the amplitude of the frequency components, making the feature vector more concise and clear. The generated audio feature matrix integrates the frequency information of multiple audio clips, provides a comprehensive audio feature representation, and is convenient for subsequent audio analysis and processing. In short, the technical solution provided by the present invention has significant advantages in audio information processing, and can efficiently and accurately calculate the audio feature matrix.
[0113] Step 1042: obtaining a plurality of preset standard feature matrices; the standard feature matrices are based on different scene audio settings, different standard feature matrices correspond to different standard scene features, and different standard scene features correspond to different LED light group colors;
[0114] Step 1043: respectively calculating the similarity between the audio feature matrix and each of the standard feature matrices;
[0115] Step 1044: extracting the standard feature matrix corresponding to the maximum similarity, and using the standard scenario feature corresponding to the standard feature matrix corresponding to the maximum similarity as the current scenario feature;
[0116] Step 1045: Match the LED light group color corresponding to the current scene feature.
[0117] In this embodiment, by calculating the audio feature matrix of the current audio information, intelligent matching with multiple preset standard feature matrices can be achieved. These standard feature matrices are set based on different scene audios, and each matrix is associated with specific standard scene features, and these features further correspond to different LED light group colors. This solution can accurately extract the standard feature matrix corresponding to the maximum similarity by calculating the similarity between the current audio feature matrix and each standard feature matrix. Through this process, the solution can identify the standard scene features that best match the current audio information. Once the current scene features are determined, the solution will automatically match the corresponding LED light group color, thereby achieving synchronous changes in the LED light group color and the audio scene. This not only enhances the user's audio-visual experience, but also dynamically adjusts the lighting effects according to changes in audio content, creating a more immersive and interactive environment effect. Through this technology, personalized lighting control can be achieved in a variety of application scenarios, such as concerts, home theaters, entertainment venues, etc., so that audio and visual elements are perfectly integrated and the overall user experience is improved.
[0118] Step 105: Based on the current audio amplitude in the real-time audio information, match the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
[0119] In order to achieve the sound and light synchronization effect, the present application matches the adaptive brightness values corresponding to multiple dimming points in the dimming cycle according to the current audio amplitude in the real-time audio information, so that the LED light can be dynamically adjusted according to the sound waves to achieve the sound and light synchronization effect.
[0120] Specifically, step 105 specifically includes steps 1051 to 1053:
[0121] Step 1051: Obtaining a preset maximum audio amplitude and a preset minimum audio amplitude;
[0122] Step 1052: Calculate the position information of the current audio amplitude between the highest audio amplitude and the lowest audio amplitude;
[0123] Specifically, step 1052 specifically includes steps A1 to A4:
[0124] A1: Calculate a first difference between the highest audio amplitude and the lowest audio amplitude;
[0125] A2: If the current audio amplitude is between the highest audio amplitude and the lowest audio amplitude, calculating a second difference between the current audio amplitude and the lowest audio amplitude;
[0126] A3: Calculate a third difference between the highest audio amplitude and the current audio amplitude;
[0127] A4: Divide the second difference value by the third difference value to obtain a ratio value, and use the ratio value as the position information.
[0128] By calculating the difference between the highest audio amplitude and the lowest audio amplitude, this solution can effectively determine the position of the current audio amplitude within this range. Specifically, a ratio value is obtained by calculating the ratio of the difference between the current audio amplitude and the lowest audio amplitude (i.e., the second difference) to the difference between the highest audio amplitude and the current audio amplitude (i.e., the third difference). The ratio value can intuitively reflect the position of the current audio amplitude between the highest and lowest audio amplitudes.
[0129] Step 1053: Use the brightness value of the position corresponding to the position information between the minimum brightness value and the maximum brightness value as the adaptive brightness value.
[0130] Specifically, step 1053 specifically includes: taking the brightness value at the corresponding position of the ratio value between the lowest brightness value and the highest brightness value as the adaptive brightness value.
[0131] For example, assuming that the current audio amplitude is 4, the values of the highest audio amplitude and the lowest audio amplitude are 2 to 8, and the values of the lowest brightness value and the highest brightness value are 10 to 16. The ratio of the current audio amplitude between the highest audio amplitude and the lowest audio amplitude is one third. The brightness value of the corresponding position between the lowest brightness value and the highest brightness value is 12.
[0132] The above scheme can effectively define the dynamic range of the audio amplitude by obtaining the preset maximum audio amplitude and the minimum audio amplitude. Then, by calculating the position of the current audio amplitude within this dynamic range, the relative strength of the audio signal within this range can be determined. This relative position information is further combined with the brightness correspondence between the preset minimum brightness value and the maximum brightness value, so that the brightness value can adaptively respond to changes in the current audio amplitude. The adaptive brightness value finally output can accurately reflect the changes in the audio signal in the real-time dimming cycle, thereby achieving the synchronous change effect of audio and brightness, and enhancing the user's visual and auditory experience.
[0133] In this embodiment, when entering the next dimming cycle, the current brightness value of the current video frame of the display device is extracted. Based on the current brightness value, the minimum brightness value of the LED light group is matched. This process ensures that the LED light group can provide the minimum brightness adapted to the current environment in any case, avoiding the stimulation of excessive brightness to the user's eyes. Secondly, the ambient light illumination is obtained, and the maximum brightness value of the LED light group is matched according to the current brightness value and the ambient light illumination. This step enables the brightness of the LED light group to not only synchronize with the content of the display device, but also adapt to the changes in external light, providing a more natural lighting effect. Then, by collecting the current audio information of the display device, the scene features in the current audio information are extracted, and the color of the LED light group is matched based on the current scene features. In this way, the color of the LED light group can match the scene changes in the audio information, enhancing the user's immersion and interactive experience. In addition, based on the current audio amplitude in the real-time audio information, the adaptive brightness values corresponding to multiple dimming points in the dimming cycle are matched. These adaptive brightness values are between the minimum brightness value and the maximum brightness value, realizing the lighting effect of sound and light synchronization, making the lighting changes more natural and not causing abrupt visual impact on the user. In summary, the intelligent dimming method of the present invention dynamically adjusts the brightness and color of the LED light group by comprehensively considering the video brightness, ambient light illumination, audio scene characteristics and audio amplitude information, thereby achieving an accurate and efficient dimming effect. This technology not only improves the visual expression of the display device, but also enhances the overall audio and video experience, providing users with a more comfortable and immersive viewing environment.
[0134] like Figure 2 The present invention provides an intelligent dimming device 2, see Figure 2 , Figure 2 A schematic diagram of an intelligent dimming device provided by the present invention is shown in FIG. Figure 2 An intelligent dimming device is shown, comprising:
[0135] The extraction unit 21 is used to extract the current brightness value of the current video frame of the display device when entering the next dimming cycle;
[0136] A first matching unit 22, configured to match the minimum brightness value of the LED light group according to the current brightness value;
[0137] An acquisition unit 23 is used to acquire the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0138] A second matching unit 24 is used to collect current audio information of the display device, extract current scene features in the current audio information, and match the color of the LED light group based on the current scene features;
[0139] The third matching unit 25 is used to match the adaptive brightness values corresponding to multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
[0140] The present invention provides an intelligent dimming device, which extracts the current brightness value of the current video frame of the display device when entering the next dimming cycle. Based on the current brightness value, the minimum brightness value of the LED light group is matched. This process ensures that the LED light group can provide the minimum brightness adapted to the current environment under any circumstances, avoiding the stimulation of excessive brightness to the user's eyes. Secondly, the ambient light illumination is obtained, and the maximum brightness value of the LED light group is matched according to the current brightness value and the ambient light illumination. This step enables the brightness of the LED light group to not only be synchronized with the content of the display device, but also to adapt to the changes in external light, providing a more natural lighting effect. Then, by collecting the current audio information of the display device, the scene features in the current audio information are extracted, and the color of the LED light group is matched based on the current scene features. In this way, the color of the LED light group can match the scene changes in the audio information, enhancing the user's immersion and interactive experience. In addition, based on the current audio amplitude in the real-time audio information, the adaptive brightness values corresponding to multiple dimming points in the dimming cycle are matched. These adaptive brightness values are between the minimum brightness value and the maximum brightness value, realizing the lighting effect of sound and light synchronization, making the lighting change more natural, and not causing abrupt visual impact on the user. In summary, the intelligent dimming method of the present invention dynamically adjusts the brightness and color of the LED light group by comprehensively considering the video brightness, ambient light illumination, audio scene characteristics and audio amplitude information, thereby achieving an accurate and efficient dimming effect. This technology not only improves the visual expression of the display device, but also enhances the overall audio and video experience, providing users with a more comfortable and immersive viewing environment.
[0141] Figure 3 Schematic diagram of a terminal device provided by an embodiment of the present invention. Figure 3 As shown, a terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and executable on the processor 30, such as a smart dimming program. When the processor 30 executes the computer program 32, the steps in each of the above-mentioned smart dimming method embodiments are implemented, such as Figure 1 Alternatively, when the processor 30 executes the computer program 32, the functions of each unit in the above-mentioned device embodiments are realized, for example, Figure 2 Function of the unit shown.
[0142] Exemplarily, the computer program 32 may be divided into one or more units, which are stored in the memory 31 and executed by the processor 30 to complete the present invention. The one or more units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 32 in the terminal device 3. For example, the computer program 32 may be divided into the following specific functions of each unit:
[0143] An extraction unit, used to extract a current brightness value of a current video frame of a display device when entering a next dimming cycle;
[0144] A first matching unit, configured to match a minimum brightness value of the LED light group according to the current brightness value;
[0145] An acquisition unit, used to acquire the ambient light illumination, and match the maximum brightness value of the LED light group according to the current brightness value and the ambient light illumination;
[0146] A second matching unit, configured to collect current audio information of the display device, extract current scene features in the current audio information, and match the color of the LED light group based on the current scene features;
[0147] The third matching unit is used to match the adaptive brightness values corresponding to multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
[0148] The terminal device includes but is not limited to a processor 30 and a memory 31. Those skilled in the art will appreciate that Figure 3 It is only an example of a terminal device 3 and does not constitute a limitation on the terminal device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0149] The processor 30 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0150] The memory 31 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 31 may also be an external storage device of the terminal device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device 3. Further, the memory 31 may also include both an internal storage unit and an external storage device of the terminal device 3. The memory 31 is used to store the computer program and other programs and data required by the roaming control device. The memory 31 may also be used to temporarily store data that has been output or is to be output.
[0151] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0152] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present invention. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0153] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0154] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0155] An embodiment of the present invention provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0156] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera device / terminal device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.
[0157] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0158] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0159] In the embodiments provided by the present invention, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0160] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed over multiple network units.
[0161] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0162] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0163] As used in the present specification and the appended claims, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to monitoring, depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is monitored" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is monitored" or "in response to monitoring [described condition or event]", depending on the context.
[0164] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0165] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0166] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.
Claims
1. An intelligent dimming LED driver, characterized in that: The intelligent dimming LED driver includes a power module, a dimming control module, a processor module and a communication module; the power module, the dimming control module, the processor module and the communication module are respectively connected to the processor module; The communication module is used to connect to the Internet of Things; The processor module is used to extract the current brightness value of the current video frame of the display device when entering the next dimming cycle; The processor module is used to match the minimum brightness value of the LED light group according to the current brightness value; The processor module is used to obtain the ambient light illumination, obtain multiple historical brightness values, and divide the high brightness range and the low brightness range according to the multiple historical brightness values; If the current brightness value is within the low brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daylight shading state; If the current brightness value is within the low brightness range and the ambient light illumination is lower than a preset value, it is determined that the viewing environment is at night; If the current brightness value is within the high brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daytime unshaded state; Obtaining preset brightness values corresponding to the daytime shading state, the night state, and the daytime unshading state; Using the preset brightness value as the maximum brightness value; The processor module is used to collect current audio information of the display device, extract current scene features in the current audio information, and match the color of the LED light group based on the current scene features; The processor module is used to match the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value; The dimming control module is used to execute the dimming command sent by the processor module.
2. An intelligent dimming method, characterized in that: The intelligent dimming method comprises: When entering the next dimming cycle, extract the current brightness value of the current video frame of the display device; Match the minimum brightness value of the LED light group according to the current brightness value; Acquire ambient light illumination, acquire multiple historical brightness values, and divide a high brightness range and a low brightness range according to the multiple historical brightness values; If the current brightness value is within the low brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daylight shading state; If the current brightness value is within the low brightness range and the ambient light illumination is lower than a preset value, it is determined that the viewing environment is at night; If the current brightness value is within the high brightness range and the ambient light illumination is higher than a preset value, it is determined that the viewing environment is in a daytime unshaded state; Obtaining preset brightness values corresponding to the daytime shading state, the night state, and the daytime unshading state; Using the preset brightness value as the maximum brightness value; Collecting current audio information of the display device, extracting current scene features in the current audio information, and matching the color of the LED light group based on the current scene features; Based on the current audio amplitude in the real-time audio information, the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle are matched; wherein the adaptive brightness value is between the minimum brightness value and the maximum brightness value.
3. The intelligent dimming method according to claim 2, characterized in that: The step of collecting the current audio information of the display device, extracting the current scene feature in the current audio information, and matching the color of the LED light group based on the current scene feature includes: Calculating an audio feature matrix of the current audio information; Acquire a plurality of preset standard feature matrices; the standard feature matrices are based on different scene audio settings, different standard feature matrices correspond to different standard scene features, and different standard scene features correspond to different LED light group colors; Respectively calculating the similarity between the audio feature matrix and each of the standard feature matrices; Extracting the standard feature matrix corresponding to the maximum similarity, and the standard scenario feature corresponding to the standard feature matrix corresponding to the maximum similarity as the current scenario feature; Match the LED light group color corresponding to the current scene feature.
4. The intelligent dimming method according to claim 3, characterized in that: The step of calculating the audio feature matrix of the current audio information comprises: Dividing the current audio information into multiple audio segments according to fixed lengths; Performing Fourier transform on the audio clip to obtain frequency components; the frequency components are used to represent frequency components at different time points; Mapping the frequency categories to MIDI pitch values and matching the semitone categories corresponding to the MIDI pitch values; Accumulate the amplitude of the frequency component corresponding to each semitone category in each frequency component to obtain the accumulated value corresponding to each semitone category; The accumulated values corresponding to all semitone categories of each frequency component are combined into a feature vector; The eigenvectors corresponding to the multiple frequency components are combined into an audio feature matrix.
5. The intelligent dimming method according to claim 2, characterized in that: The step of matching the adaptive brightness values corresponding to the multiple dimming points in the dimming cycle based on the current audio amplitude in the real-time audio information includes: Get the preset highest audio amplitude and lowest audio amplitude; Calculate the position information of the current audio amplitude between the highest audio amplitude and the lowest audio amplitude; The brightness value at the position corresponding to the position information between the minimum brightness value and the maximum brightness value is used as the adaptive brightness value.
6. The intelligent dimming method according to claim 5, characterized in that: The step of calculating the position information of the current audio amplitude being between the highest audio amplitude and the lowest audio amplitude comprises: Calculating a first difference between the highest audio amplitude and the lowest audio amplitude; If the current audio amplitude is between the highest audio amplitude and the lowest audio amplitude, calculating a second difference between the current audio amplitude and the lowest audio amplitude; Calculating a third difference between the highest audio amplitude and the current audio amplitude; The second difference value is divided by the third difference value to obtain a ratio value, and the ratio value is used as the position information.
7. The intelligent dimming method according to claim 6, characterized in that: The step of using the brightness value of the position corresponding to the position information between the minimum brightness value and the maximum brightness value as the adaptive brightness value comprises: The brightness value at the position corresponding to the ratio value between the minimum brightness value and the maximum brightness value is used as the adaptive brightness value.
8. A terminal device, characterized in that: The device comprises: a memory, a processor, and an intelligent dimming program stored in the memory and executable on the processor, wherein the intelligent dimming program is configured to implement the intelligent dimming method according to any one of claims 2 to 7.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 2 to 7 are implemented.