A Lighting Control Method, Device, and Storage Medium Based on Environment Adaptation
By obtaining and calculating the environmental brightness and light source attributes in the intelligent lighting control system, determining the lighting comfort value and adjusting the lighting brightness, the problem of inability to adjust the lighting in time in the existing technology is solved, and the coordination of indoor and outdoor environment brightness and user comfort experience is achieved.
Patent Information
- Application Number
- CN202510172261.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-17
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2045-02-17
AI Technical Summary
The existing intelligent lighting control methods cannot adjust the lighting status in time according to the changes in the environment themselves, resulting in inconsistent brightness of the indoor and outdoor environments and cannot give users a comfortable experience environment.
By obtaining the color temperature value, chromaticity value, ambient brightness, sampling time and original light brightness of the light source, a series of calculations are performed to determine the light intensity, brightness change difference value, brightness difference index value, environmental change degree value and lighting comfort value, and finally adjust the light brightness based on these values.
It realizes timely adjustment of the lighting state according to changes in the external environment, so that the brightness of the indoor and outdoor environment is coordinated, and gives users a comfortable environmental experience.
Smart Images

Figure CN119629793B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent lighting control technology, and in particular to a lighting control method, device and storage medium based on environment adaptation. Background Art
[0002] Smart lighting control is a technology commonly used in home decoration. Smart lighting control means that the brightness and color temperature of lights are automatically adjusted as the external environment changes, so that the indoor lighting reaches the ideal state.
[0003] The existing intelligent lighting control method mainly compares the current ambient light intensity collected with the preset ideal light intensity value. When the light intensity is higher or lower than the user's preset value, the light is controlled to adjust accordingly. The existing intelligent lighting control method can only wait for the indoor light to automatically change to the user's preset value before the light is adjusted.
[0004] Due to changes in the external environment, this adjustment method cannot adjust the lighting status in time according to changes in the environment itself, resulting in an uncoordinated brightness between the indoor and outdoor environments, and failing to provide users with a comfortable experience environment. Summary of the invention
[0005] The present invention provides a lighting control method, device and storage medium based on environment adaptation to solve the problem that the existing intelligent lighting control method cannot adjust the lighting state in time according to the changes of the environment itself, resulting in uncoordinated brightness between indoor and outdoor environments.
[0006] In a first aspect, in order to solve the above technical problems, the present invention provides a lighting control method based on environment adaptation, comprising:
[0007] Get the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness;
[0008] Perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity;
[0009] Calculate the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference;
[0010] Calculate the brightness difference index according to the brightness change difference to obtain a brightness difference index value;
[0011] Perform severity judgment according to the light intensity and the brightness difference index value to obtain an environmental change degree value;
[0012] Performing comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value;
[0013] A brightness comparison is performed according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0014] In an optional embodiment,
[0015] The ambient brightness includes the ambient brightness at the current sampling moment and the ambient brightness at the previous sampling moment;
[0016] The sampling time includes a current sampling time value and a previous sampling time value.
[0017] In an optional implementation, performing photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain the light intensity includes:
[0018] The light intensity is calculated using the following formula:
[0019] In the formula, is the light intensity, is the color temperature value, is the chromaticity value, is the ambient brightness, is the color temperature weight parameter, is the chroma weight parameter, is the brightness weight parameter.
[0020] In an optional implementation, the calculating the brightness difference according to the ambient brightness and the sampling time to obtain the brightness change difference includes:
[0021] The brightness change difference is calculated by the following formula:
[0022] In the formula, is the brightness change difference, is the ambient brightness at the current sampling moment, is the ambient brightness at the last sampling moment, is the current sampling time value, is the value at the last sampling moment.
[0023] In an optional implementation, the calculating a difference index according to the brightness change difference to obtain a brightness difference index value includes:
[0024] The brightness difference index value is calculated by the following formula:
[0025] In the formula, is the brightness difference index value, is the brightness change difference, is the minimum value of preset brightness change. It is the maximum value of preset brightness change.
[0026] In an optional implementation, the step of determining the severity of the change according to the light intensity and the brightness difference index value to obtain the environmental change degree value includes:
[0027] When the brightness difference index value is less than the light intensity, the environmental change degree value is zero;
[0028] When the brightness difference index value is greater than the light intensity, the environmental change degree value is calculated by the following formula:
[0029] In the formula, is the degree of environmental change, is the brightness difference index value, is the light intensity, It is the preset ambient light brightness change factor.
[0030] In an optional implementation, performing comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value includes:
[0031] The lighting comfort value is calculated by the following formula:
[0032] In the formula, is the lighting comfort value, is the degree of environmental change, is the base of natural logarithms, is the brightness change difference, is the exponential decay factor, is the logarithmic growth factor.
[0033] In an optional implementation, performing brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, and adjusting the light brightness according to the optimal light brightness adjustment value, includes:
[0034] When the lighting comfort value is less than the original lighting brightness, the optimal lighting brightness adjustment value is zero, and there is no need to adjust the lighting brightness;
[0035] When the lighting comfort value is greater than the original lighting brightness, the optimal lighting brightness adjustment value is the lighting comfort value, and the lighting brightness is adjusted to the original lighting brightness plus the lighting comfort value.
[0036] In a second aspect, the present invention provides a lighting control device based on environment adaptation, comprising:
[0037] The data acquisition module is used to obtain the color temperature value, chromaticity value, ambient brightness, sampling time and original light brightness of the light source;
[0038] A light intensity calculation module, used to perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity;
[0039] A brightness difference calculation module, used to calculate the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference;
[0040] A brightness index calculation module, used to calculate a difference index according to the brightness change difference value to obtain a brightness difference index value;
[0041] An environment change judgment module, used to judge the severity of the environment change according to the light intensity and the brightness difference index value, and obtain an environment change degree value;
[0042] A lighting comfort calculation module, used to perform comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value;
[0043] The light brightness adjustment module is used to perform brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0044] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the processor implements any one of the above-mentioned methods for lighting control based on environment adaptation.
[0045] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned environmentally adaptive lighting control methods.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] The present invention discloses a lighting control method based on environmental adaptation, comprising obtaining a color temperature value of a light source, a chromaticity value of the light source, environmental brightness, a sampling time and an original light brightness; performing photometric calculation according to the color temperature value, the chromaticity value and the environmental brightness to obtain light intensity; performing brightness difference calculation according to the environmental brightness and the sampling time to obtain a brightness change difference; performing difference index calculation according to the brightness change difference to obtain a brightness difference index value; performing severity judgment according to the light intensity and the brightness difference index value to obtain an environmental change degree value; performing comfort calculation according to the brightness change difference and the environmental change degree value to obtain a lighting comfort value; performing brightness comparison according to the original light brightness and the lighting comfort value to obtain an optimal lighting brightness adjustment value, so as to adjust the lighting brightness according to the optimal lighting brightness adjustment value. The method collects the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness, and then calculates the light intensity according to the color temperature value, the chromaticity value and the ambient brightness, and then calculates the brightness change difference according to the ambient brightness and the sampling time, and then calculates the brightness difference index value according to the brightness change difference, and then judges the severity according to the light intensity and the brightness difference index value to obtain the environmental change degree value, and then calculates the light comfort value according to the brightness change difference and the environmental change degree value, and finally compares the brightness according to the original light brightness and the light comfort value to obtain the optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0048] The method can timely adjust the lighting state according to changes in the external environment, coordinate the brightness of the indoor and outdoor environments, and provide users with a comfortable environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a schematic flow chart of a lighting control method based on environment adaptation provided by the first embodiment of the present invention;
[0050] Figure 2 It is a schematic diagram of the structure of a lighting control device based on environment adaptation provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0051] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Reference Figure 1The first embodiment of the present invention provides a lighting control method based on environment adaptation, comprising the following steps:
[0053] S11, obtaining the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness;
[0054] S12, performing photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity;
[0055] S13, calculating the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference;
[0056] S14, calculating a difference index according to the brightness change difference to obtain a brightness difference index value;
[0057] S15, determining the severity of the change according to the light intensity and the brightness difference index value to obtain a value of the degree of environmental change;
[0058] S16, performing comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value;
[0059] S17, performing brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, and adjusting the light brightness according to the optimal light brightness adjustment value.
[0060] In step S11, the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness are obtained.
[0061] The ambient brightness includes the ambient brightness at the current sampling moment and the ambient brightness at the previous sampling moment;
[0062] The sampling time includes a current sampling time value and a previous sampling time value.
[0063] It should be noted that the color temperature value of the light source is obtained by the blue / red ratio method. In this method, by changing the color temperature of the standard light source, the blue / red ratio of the measured light source and the standard light source is equal. At this time, it is considered that the color temperature of the measured light source is equal to the color temperature of the standard light source. The chromaticity value of the light source is obtained by the RGB color space method. By measuring the spectral energy distribution of the light source at different wavelengths, the color coordinates can be calculated to obtain the chromaticity value of the light source. The ambient brightness is obtained by the light sensor. By detecting the data changes of the light sensor and updating the light data, the ambient brightness data is updated in real time. The sampling time is obtained by the sensor trigger method. When the light sensor detects that there is light source data, the recorder can be triggered to record the current sampling time. The original light brightness is obtained by the image analysis method. This is a non-contact measurement method that uses an image capture device to capture the image under the light, and then the brightness of the light is obtained by analyzing the brightness of a specific area in the image. The light brightness image is transmitted to the analysis system, and the brightness information of the LED light is obtained by processing and analyzing the image.
[0064] In one implementation, the color temperature value of the light source is obtained by the blue / red ratio method. The light source to be measured is placed side by side with the standard light source, and the lighting conditions of the two are similar. Then the color temperature of the standard light source is adjusted to match the blue / red ratio of the light source to be measured. The blue / red ratio refers to the ratio of the radiation intensity of blue light (in the range of 450-500nm) to red light (in the range of 600-700nm) in the spectrum of the light source. When the color temperature of the standard light source is adjusted to be equal to the blue / red ratio of the light source to be measured, the color temperature value of the standard light source is recorded at this time. At this time, the color temperature of the light source to be measured is equal to the color temperature of the standard light source. For example, to measure the color temperature of an LED lamp, first set a standard light source with a known color temperature, such as a fluorescent lamp with a color temperature of 6500K. Then, use a spectroradiometer to measure the spectral power distribution of the LED lamp and the fluorescent lamp, and calculate their blue / red ratio. By adjusting the color temperature of the fluorescent lamp until its blue / red ratio matches that of the LED lamp, the color temperature value of the fluorescent lamp is the color temperature value of the LED lamp.
[0065] In one implementation, the chromaticity value of the light source is obtained by the RGB color space method. First, the RGB value is converted to sRGB value, that is, normalized to the [0,1] interval, and the maximum value (Rmax, Gmax, Bmax) and the minimum value (Rmin, Gmin, Bmin) in RGB are determined. Then the chromaticity value (C) is calculated:
[0066] If Rmax = Gmax = Bmax, the chromaticity value is 0 (gray or white);
[0067] If Rmax > Gmax, chromaticity value C = (Rmax - Gmax) + (Rmax - Bmax) / 2;
[0068] If Gmax > Rmax, the chromaticity value C = (Gmax - Rmax) + (Gmax - Bmax) / 2.
[0069] Finally, based on the chromaticity value C and the RGB value, the hue (H) can be calculated:
[0070] If Rmax > Gmax, hue H = C / (Rmax + Gmax);
[0071] If Bmax = Rmax, hue H = C / (Rmax + Bmax) + 2;
[0072] If Gmax = Bmax, hue H = C / (Gmax + Bmax) + 4.
[0073] Through the above steps, the chromaticity value of a given color can be calculated.
[0074] For example, there are RGB values (255, 153, 102). First, convert the RGB values to sRGB values, that is, normalize them to the interval [0,1] to obtain (1, 0.6, 0.4). Then determine Rmax = 1, Gmax = 0.6, and Bmin = 0.4. Calculate the chromaticity value C = (1 - 0.6) + (1 - 0.4) / 2 = 0.55. Since Rmax > Gmax, the hue H = 0.55 / (1 +0.6) = 0.35, so the chromaticity value of the light source is equal to the hue H = 0.35.
[0075] In one implementation, the ambient brightness is obtained through a light sensor. A phototransistor sensor is selected and installed at the brightest position in the room to ensure that the sensor is not blocked and can receive uniform ambient light. The sensitivity, measurement range, response time, and accuracy of the sensor are adjusted. At the same time, the sensor is calibrated in an environment with known brightness, the sensor reading is adjusted to match the reading of a standard brightness meter, and the calibration parameters are recorded for adjustment in subsequent use. Then, the sampling frequency is determined according to the application requirements, such as once per second, once per minute, etc., the sensor is started, and the ambient brightness is continuously monitored, and the power supply and data connection of the sensor are ensured to be stable and reliable. The sensor readings are recorded using a data acquisition card to obtain the ambient brightness value.
[0076] In one implementation, the sampling moment is obtained by the sensor trigger method, which is a common data acquisition technology that relies on the sensor's response to specific environmental conditions to determine when to sample data. This method is suitable for scenarios where the sampling frequency needs to be dynamically adjusted according to environmental changes. First, the trigger condition needs to be defined. When the light sensor detects light source data, a sample is taken. When sampling, the light sensor is selected because the trigger condition is light source data. The light sensor has high sensitivity and fast response time. The sensor is installed in a position where the trigger condition can be accurately captured, and the necessary calibration is performed. The purpose of the calibration is to ensure that the sensor reading is accurate and reduce errors. Then configure the data acquisition system so that it can respond immediately when the sensor is triggered, including setting up the data storage device, determining the sampling frequency, and determining the data transmission method. Finally, start the sensor and the data acquisition system to start monitoring the environmental conditions. Whenever the sensor detects that the trigger condition is met, the system will record this moment and start or continue data sampling.
[0077] In one implementation, the original light brightness is obtained by image analysis. First, a camera device with sufficient resolution and dynamic range is selected to ensure that the details of the light brightness changes can be captured. Before starting to capture images, the device needs to be calibrated, including setting the correct exposure time, aperture size and ISO sensitivity. The purpose of calibration is to ensure that the brightness of the image can accurately reflect the actual light brightness. Then the image capture device is aimed at the light to capture a series of images. At the same time, different exposure settings are used when capturing images to obtain images at different brightness levels. Then multiple areas are selected in the image for brightness analysis. These areas are evenly illuminated and can represent the overall brightness of the light. Avoid selecting areas containing reflections, shadows or color changes, because these factors will affect the brightness measurement. The brightness information of the selected area is extracted by using image processing software, which involves calculating the average brightness value of the area. The brightness value is expressed in grayscale values, where 0 represents black (no light) and 255 represents white (maximum brightness). The extracted brightness value is converted into actual brightness units, such as lux or candela per square meter (cd / m²). The acquisition of the original light intensity is best accomplished by analyzing the brightness variations in different images to determine the light intensity and recording the measurements.
[0078] In step S12, photometric calculation is performed according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity.
[0079] The light intensity is calculated using the following formula:
[0080] In the formula, is the light intensity, is the color temperature value, is the chromaticity value, is the ambient brightness, is the color temperature weight parameter, is the chroma weight parameter, is the brightness weight parameter.
[0081] It should be noted that this formula is a linear combination model used to calculate light intensity based on color temperature value, chromaticity value and ambient brightness. In this formula, , and Represents the weight parameters of the influence of color temperature, chromaticity and ambient brightness on light intensity. The weight parameters can be adjusted according to the actual situation to reflect the actual influence of different factors on light intensity. By adjusting the weight parameters, the model can be better adapted to different application scenarios and needs. For example, increasing The value of can improve the effect of color temperature on light intensity. In addition, the linear combination form of the formula simplifies the calculation process, making the model easy to implement and calculate, and can quickly respond to and process large amounts of data in practical applications.
[0082] For example, when the color temperature value , chromaticity value , ambient brightness , color temperature weight parameter , chroma weight parameter , brightness weight parameter When, according to the formula .
[0083] In step S13, the brightness difference is calculated according to the ambient brightness and the sampling time to obtain a brightness change difference.
[0084] The brightness change difference is calculated by the following formula:
[0085] In the formula, is the brightness change difference, is the ambient brightness at the current sampling moment, is the ambient brightness at the last sampling moment, is the current sampling time value, is the value at the last sampling moment.
[0086] It should be noted that the numerator of this formula is calculated by calculating the difference in ambient brightness between two consecutive sampling moments. and To quantitatively describe the change in brightness, this difference calculation method can intuitively reflect the magnitude of brightness changes in time series and analyze the dynamic changes in brightness. By calculating the brightness difference, the speed of brightness change can be captured. This time-weighted method can more accurately calculate the rate of brightness change because it combines the brightness change with the sampling time, thus being able to more realistically calculate the difference in brightness change. In addition, the calculation results of this formula are It is a dimensionless quantity that can be used in different brightness units and time units.
[0087] For example, assuming that the ambient brightness at the current sampling moment is , the ambient brightness at the last sampling moment , current sampling time value , the value at the last sampling time , through the formula Calculated .
[0088] In step S14, a difference index is calculated according to the brightness change difference to obtain a brightness difference index value.
[0089] The brightness difference index value is calculated by the following formula:
[0090] In the formula, is the brightness difference index value, is the brightness change difference, is the minimum value of preset brightness change. It is the maximum value of preset brightness change.
[0091] It should be noted that the formula is calculated by dividing the brightness change difference The minimum value of the preset brightness change The difference between the preset brightness and the maximum value of the brightness change Minimum change from preset brightness The difference is compared with the difference between the two values, and the result is normalized to the range of 0 to 1 to obtain a dimensionless brightness difference index value, so that the brightness changes at different times and in different environments can be compared and calculated, eliminating the influence of units and providing a unified measurement standard, and intuitively reflecting the position of the current brightness change relative to the preset range. At the same time, by adjusting and The value can be flexibly adapted to different application scenarios and requirements. For example, in some application scenarios, it is necessary to be more sensitive to brightness changes. In this case, the value can be appropriately reduced. and The difference between the two makes the change of the brightness difference index value more in line with the needs of the application scenario. In addition, because the change of ambient brightness is smooth and continuous, the brightness change of this formula is continuous. By calculating the continuous brightness change difference and converting it into a brightness difference index value, the value of the brightness change can be calculated more accurately. This calculation can be combined with other sensor data or algorithms to more accurately capture the change in brightness and more accurately calculate the brightness difference index value. For example, the brightness difference index value can be combined with other environmental parameters (such as temperature, humidity, etc.) to implement a more complex environmental control strategy.
[0092] For example, assuming Brightness change difference , preset minimum brightness change , preset the maximum value of brightness change , through the formula Calculated .
[0093] In step S15, a severity judgment is performed based on the light intensity and the brightness difference index value to obtain an environmental change degree value.
[0094] When the brightness difference index value is less than the light intensity, the environmental change degree value is zero;
[0095] When the brightness difference index value is greater than the light intensity, the environmental change degree value is calculated by the following formula:
[0096] In the formula, is the degree of environmental change, is the brightness difference index value, is the light intensity, It is the preset ambient light brightness change factor.
[0097] It should be noted that the brightness difference index value in the formula Reflects the changes in ambient brightness and light intensity represents the basic light level of the current environment. Less than When the ambient brightness changes slightly, it will not cause significant changes in the environment; when Greater than When the ambient brightness changes greatly, significant environmental changes occur. Indicates the difference between the brightness difference index value and the light intensity, reflecting the absolute amount of change in ambient brightness. It plays a normalization role, making the calculation result related to the relative change of light intensity rather than the absolute change. For example, in the case of weak light intensity, the absolute change of brightness difference index value is not large, resulting in large relative change, thus reflecting the obvious degree of environmental change. Preset ambient light brightness change factor It is a preset factor used to adjust the value of the environmental change degree so that it can better adapt to different application scenarios and needs. The value of can control the sensitivity to environmental changes. For example, in situations where the environment is more sensitive, you can appropriately increase value, so that the environmental change value can reflect the brightness change; in the case of low environmental change requirements, it can be reduced The absolute value is used in the formula to avoid excessive fluctuations in the degree of environmental change. In addition, the absolute value is used in the formula because the change in ambient brightness is an increase or decrease. The absolute value can be used to describe the severity of the change and ignore the direction of the change. The use of absolute values ensures that no matter whether the brightness increases or decreases, as long as the degree of change is the same, the calculated value of the degree of environmental change is consistent. At the same time, the formula non-dimensionalizes the calculation results, and the obtained value of the degree of environmental change is a dimensionless value, which is convenient for comparison and analysis in different scenarios and different unit systems.
[0098] Exemplarily, the preset ambient light brightness change factor The value range is 1-10. When the preset ambient light brightness change factor When the brightness difference index value , light intensity , the brightness difference index value is greater than the light intensity, so according to the formula Calculated, the environmental change value When the brightness difference index value , light intensity When the brightness difference index value is less than the light intensity, the environmental change degree value is zero.
[0099] In step S16, a comfort calculation is performed based on the brightness change difference and the environment change degree value to obtain a lighting comfort value.
[0100] The lighting comfort value is calculated by the following formula:
[0101] In the formula, is the lighting comfort value, is the degree of environmental change, is the base of natural logarithms, is the brightness change difference, is the exponential decay factor, is the logarithmic growth factor.
[0102] It should be noted that the brightness change difference It directly reflects the change in light brightness. The greater the difference in brightness, the higher the light comfort value. The greater the value of the environment change degree It is calculated by the light intensity and brightness difference index value, reflecting the change of ambient light. When the ambient light changes drastically, the environmental change degree value The larger the value, the greater the environmental change value The introduction of the formula can accurately evaluate the comfort of lighting under different environmental changes. Exponential decay factor and the logarithmic growth factor These two factors are used to adjust the influence of each variable in the formula on the lighting comfort. The exponential decay factor Make the brightness change difference The impact of lighting comfort The logarithmic growth factor gradually decreases as the brightness increases, which is in line with the adaptive characteristics of brightness changes, that is, as the brightness changes continue, the sensitivity gradually decreases. Then the environmental change value The impact on lighting comfort shows a logarithmic growth trend, reflecting that the impact of environmental changes on lighting comfort is nonlinear. When the degree of environmental change is large, its impact on lighting comfort is more significant.
[0103] It should be noted that in the formula This part of the structure represents the brightness change difference The result after exponential decay, exponential decay function It can effectively reflect the process of brightness change, so that the influence of brightness change difference on lighting comfort is gradually reduced. The value of light comfort value gradually decreases with the increase of brightness, so as to avoid excessive fluctuation of light comfort value due to large brightness change. This part of the structure represents the degree of environmental change The result after logarithmic growth, logarithmic function Ability to change the degree of environmental change The nonlinear effect of the formula is introduced, so that when the environmental change value When the environmental change degree is small, the impact on lighting comfort is small; When it is larger, its impact on lighting comfort increases, thus more accurately reflecting the impact of environmental changes on lighting comfort. and environmental change value By combining the effects of light and air, and adjusting the exponential decay and logarithmic growth, a quantitative index that can accurately calculate the lighting comfort is obtained.
[0104] It should be noted that the exponential decay function Has the normalized mathematical property, when When it is greater than zero, its value range is from zero to one. As the function value increases, it gradually decreases. Therefore, the brightness change difference The impact on lighting comfort can be adjusted within a reasonable range, avoiding Too large will cause the lighting comfort value to change. Logarithmic function It has the characteristic of monotonically increasing, and its value range is from zero to positive infinity. Although it has the characteristic of monotonically increasing, its growth rate is slow, which makes the environmental change value The impact on lighting comfort can be The light comfort value is calculated by combining the variables and parameters in the formula. It is a dimensionless value, which makes the formula applicable and comparable in different scenarios and different unit systems.
[0105] For example, the exponential decay factor The value range is 1-10, the logarithmic growth factor The value range is 1-10. , brightness change difference , Exponential decay factor , logarithmic growth factor When, according to the formula Calculated, lighting comfort value .
[0106] In step S17, a brightness comparison is performed based on the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, and the light brightness is adjusted based on the optimal light brightness adjustment value.
[0107] When the lighting comfort value is less than the original lighting brightness, the optimal lighting brightness adjustment value is zero, and there is no need to adjust the lighting brightness;
[0108] When the lighting comfort value is greater than the original lighting brightness, the optimal lighting brightness adjustment value is the lighting comfort value, and the lighting brightness is adjusted to the original lighting brightness plus the lighting comfort value.
[0109] It should be noted that when the light comfort value is less than the original light brightness value, the light brightness is not adjusted; when the light comfort value is greater than the original light brightness value, the light comfort value is added to the original light brightness value to obtain a new light brightness value, and the light brightness is adjusted according to the new light brightness value. Each light brightness has a corresponding value, and the light brightness is adjusted according to this value.
[0110] For example, the light brightness has one to ten levels, and the corresponding light brightness value range is 0-1. The light comfort value is calculated based on the above content. When the original light brightness value is 0.7, the light comfort value is less than the original light brightness value, and the light brightness does not need to be adjusted. When the original light brightness value is 0.2, the light comfort value is greater than the original light brightness value, so the new light brightness value is 0.4786. According to the rounding method, the new light brightness value is about 0.5, so the light brightness is adjusted to the fifth level, that is, adjusted to the medium level of light brightness.
[0111] In summary, the present invention discloses a lighting control method based on environmental adaptation, including obtaining the color temperature value of a light source, the chromaticity value of the light source, the ambient brightness, a sampling time and the original light brightness; performing photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity; performing brightness difference calculation according to the ambient brightness and the sampling time to obtain a brightness change difference; performing a difference index calculation according to the brightness change difference to obtain a brightness difference index value; performing severity judgment according to the light intensity and the brightness difference index value to obtain an environmental change degree value; performing comfort calculation according to the brightness change difference and the environmental change degree value to obtain a lighting comfort value; performing brightness comparison according to the original light brightness and the lighting comfort value to obtain an optimal lighting brightness adjustment value, so as to adjust the lighting brightness according to the optimal lighting brightness adjustment value. The method collects the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness, and then calculates the light intensity according to the color temperature value, the chromaticity value and the ambient brightness, and then calculates the brightness change difference according to the ambient brightness and the sampling time, and then calculates the brightness difference index value according to the brightness change difference, and then judges the severity according to the light intensity and the brightness difference index value to obtain the environmental change degree value, and then calculates the light comfort value according to the brightness change difference and the environmental change degree value, and finally compares the brightness according to the original light brightness and the light comfort value to obtain the optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0112] The method can timely adjust the lighting state according to changes in the external environment, coordinate the brightness of the indoor and outdoor environments, and provide users with a comfortable environment.
[0113] Reference Figure 2 The second embodiment of the present invention provides a lighting control device based on environment adaptation, comprising:
[0114] The data acquisition module is used to obtain the color temperature value, chromaticity value, ambient brightness, sampling time and original light brightness of the light source;
[0115] A light intensity calculation module, used to perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity;
[0116] A brightness difference calculation module, used to calculate the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference;
[0117] A brightness index calculation module, used to calculate a difference index according to the brightness change difference value to obtain a brightness difference index value;
[0118] An environment change judgment module, used to judge the severity of the environment change according to the light intensity and the brightness difference index value, and obtain an environment change degree value;
[0119] A lighting comfort calculation module, used to perform comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value;
[0120] The light brightness adjustment module is used to perform brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0121] Preferably, the light intensity calculation module is specifically used to perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain the light intensity.
[0122] The light intensity is calculated using the following formula:
[0123] In the formula, is the light intensity, is the color temperature value, is the chromaticity value, is the ambient brightness, is the color temperature weight parameter, is the chroma weight parameter, is the brightness weight parameter.
[0124] Preferably, the brightness difference calculation module is specifically used to calculate the brightness difference according to the ambient brightness and the sampling time to obtain the brightness change difference.
[0125] The brightness change difference is calculated by the following formula:
[0126] In the formula, is the brightness change difference, is the ambient brightness at the current sampling moment, is the ambient brightness at the last sampling moment, is the current sampling time value, is the value at the last sampling moment.
[0127] Preferably, the brightness index calculation module is specifically used to calculate the difference index according to the brightness change difference value to obtain the brightness difference index value.
[0128] The brightness difference index value is calculated by the following formula:
[0129] In the formula, is the brightness difference index value, is the brightness change difference, is the minimum value of preset brightness change. It is the maximum value of preset brightness change.
[0130] Preferably, the environment change judgment module is specifically used to judge the severity according to the light intensity and the brightness difference index value to obtain the environment change degree value.
[0131] When the brightness difference index value is less than the light intensity, the environmental change degree value is zero;
[0132] When the brightness difference index value is greater than the light intensity, the environmental change degree value is calculated by the following formula:
[0133] In the formula, is the degree of environmental change, is the brightness difference index value, is the light intensity, It is the preset ambient light brightness change factor.
[0134] Preferably, the lighting comfort calculation module is specifically used to perform comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value.
[0135] The lighting comfort value is calculated by the following formula:
[0136] In the formula, is the lighting comfort value, is the degree of environmental change, is the base of natural logarithms, is the brightness change difference, is the exponential decay factor, is the logarithmic growth factor.
[0137] Preferably, the light brightness adjustment module is used to perform brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
[0138] When the lighting comfort value is less than the original lighting brightness, the optimal lighting brightness adjustment value is zero, and there is no need to adjust the lighting brightness;
[0139] When the lighting comfort value is greater than the original lighting brightness, the optimal lighting brightness adjustment value is the lighting comfort value, and the lighting brightness is adjusted to the original lighting brightness plus the lighting comfort value.
[0140] It should be noted that the lighting control device based on environment adaptation provided in the embodiment of the present invention is used to execute all the process steps of the lighting control method based on environment adaptation in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they are not described in detail.
[0141] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a program for a lighting control device based on environment adaptation. When the processor executes the computer program, the steps in the above-mentioned embodiments of the lighting control method based on environment adaptation are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of the modules / units in the above-mentioned device embodiments are realized, such as the data acquisition module.
[0142] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0143] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0144] The processor may be a central processing unit (CPU), 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. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0145] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0146] Wherein, if the module / unit integrated in the electronic device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, 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 include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0147] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0148] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A lighting control method based on environment adaptation, characterized in that: include: Get the color temperature value of the light source, the chromaticity value of the light source, the ambient brightness, the sampling time and the original light brightness; Perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity; Calculate the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference; Calculate the brightness difference index according to the brightness difference to obtain a brightness difference index value; Perform severity judgment according to the light intensity and the brightness difference index value to obtain an environmental change degree value; Performing comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value; Performing brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, and adjusting the light brightness according to the optimal light brightness adjustment value; The step of determining the severity of the change according to the light intensity and the brightness difference index value to obtain the environmental change degree value includes: When the brightness difference index value is less than the light intensity, the environmental change degree value is zero; When the brightness difference index value is greater than the light intensity, the environmental change degree value is calculated by the following formula: In the formula, is the degree of environmental change, is the brightness difference index value, is the light intensity, is the preset ambient light brightness change factor; The step of performing comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value includes: The lighting comfort value is calculated by the following formula: In the formula, is the lighting comfort value, is the degree of environmental change, is the base of natural logarithms, is the brightness change difference, is the exponential decay factor, is the logarithmic growth factor.
2. The lighting control method based on environment adaptation according to claim 1 is characterized in that: The ambient brightness includes the ambient brightness at the current sampling moment and the ambient brightness at the previous sampling moment; The sampling time includes a current sampling time value and a previous sampling time value.
3. The lighting control method based on environment adaptation according to claim 1, characterized in that: The performing photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain the light intensity includes: The light intensity is calculated using the following formula: , where is the light intensity, is the color temperature value, is the chromaticity value, is the ambient brightness, is the color temperature weight parameter, is the chroma weight parameter, is the brightness weight parameter.
4. The lighting control method based on environment adaptation according to claim 2, characterized in that: The calculating the brightness difference according to the ambient brightness and the sampling time to obtain the brightness change difference includes: The brightness change difference is calculated by the following formula: In the formula, is the brightness change difference, is the ambient brightness at the current sampling moment, is the ambient brightness at the last sampling moment, is the current sampling time value, is the value at the last sampling moment.
5. The lighting control method based on environment adaptation according to claim 1, characterized in that: The step of calculating a difference index according to the brightness change difference to obtain a brightness difference index value includes: The brightness difference index value is calculated by the following formula: In the formula, is the brightness difference index value, is the brightness change difference, is the minimum value of preset brightness change. It is the maximum value of preset brightness change.
6. The lighting control method based on environment adaptation according to claim 1, characterized in that: The step of performing brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, and adjusting the light brightness according to the optimal light brightness adjustment value, comprises: When the lighting comfort value is less than the original lighting brightness, the optimal lighting brightness adjustment value is zero, and there is no need to adjust the lighting brightness; When the lighting comfort value is greater than the original lighting brightness, the optimal lighting brightness adjustment value is the lighting comfort value, and the lighting brightness is adjusted to the original lighting brightness plus the lighting comfort value.
7. A lighting control device based on environment adaptation, used to implement the lighting control method based on environment adaptation as claimed in any one of claims 1 to 6, characterized in that: include: The data acquisition module is used to obtain the color temperature value, chromaticity value, ambient brightness, sampling time and original light brightness of the light source; A light intensity calculation module, used to perform photometric calculation according to the color temperature value, the chromaticity value and the ambient brightness to obtain light intensity; A brightness difference calculation module, used to calculate the brightness difference according to the ambient brightness and the sampling time to obtain a brightness change difference; A brightness index calculation module, used to calculate a difference index according to the brightness change difference value to obtain a brightness difference index value; An environment change judgment module, used to judge the severity of the environment change according to the light intensity and the brightness difference index value, and obtain an environment change degree value; A lighting comfort calculation module, used to perform comfort calculation according to the brightness change difference and the environment change degree value to obtain a lighting comfort value; The light brightness adjustment module is used to perform brightness comparison according to the original light brightness and the light comfort value to obtain an optimal light brightness adjustment value, so as to adjust the light brightness according to the optimal light brightness adjustment value.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the environment-adaptive lighting control method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent LED illuminating lamp capable of adjusting color temperature and brightness automatically
CN102966873A
Illumination unit self-adaptive adjustment method of intelligent illumination system
CN118102545A