Display brightness adjustment method, device, electronic device and storage medium
By identifying and filtering short-term mutation signals in the ambient brightness signal within the preset time period, the problem of abnormal display brightness caused by abnormal detection of photosensitive sensors or sudden changes in ambient brightness waves in the prior art is solved, and the stability of display brightness adjustment is improved.
Patent Information
- Application Number
- CN202210373993.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2042-04-11
AI Technical Summary
In the prior art, when using a light sensor to detect the ambient brightness in an outdoor display, there is a problem that the display's brightness is abnormal due to abnormal detection of the light sensor or sudden changes in the ambient brightness, and the stability is poor.
By obtaining the ambient brightness signal within the preset time period, the target time and target signal in the ambient brightness signal are identified. If the continuous holding time of the target signal is less than or equal to the preset time threshold, the signal is filtered to avoid brightness abnormalities caused by short-term sudden changes.
It effectively avoids abnormal display brightness variation caused by short-term ambient light changes, and improves the stability of display brightness adjustment.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of display technology, and in particular to a display brightness adjustment method, device, electronic device and storage medium. Background Art
[0002] The outdoor display has a built-in light sensor to detect the ambient brightness value, and the electronic device that executes the ambient brightness value detection method has a pre-built-in correspondence between the ambient brightness value and the display brightness value. The electronic device that executes the ambient brightness value detection method can adjust the brightness value of the display by querying the correspondence, taking into account the brightness value of the environment where the display is located, and accurately adjusting the brightness value of the display. However, if the light sensor detects an abnormality or there is a sudden change in the ambient brightness value, and the display brightness value is still adjusted, the brightness of the display will also be abnormal, which has the disadvantage of poor stability. Summary of the invention
[0003] The embodiments of the present application provide a display brightness adjustment method, device, electronic device and storage medium, in which a short-term sudden change target signal is filtered out as an abnormal signal to avoid instantaneous changes in external ambient light. Immediate response to adjust the display brightness will cause abnormal sudden changes in the display brightness.
[0004] In a first aspect, an embodiment of the present application provides a method for adjusting brightness of a display, comprising:
[0005] Acquire an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness;
[0006] If the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, the first moment is determined to be a target moment, and an ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is determined to be a target signal, the second moment is the moment before the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value;
[0007] When the target time is taken as the starting point within the preset time period and the continuous holding time of the target signal is less than or equal to a preset time threshold, the brightness of the display is controlled to maintain the initial brightness.
[0008] In some embodiments, if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then the next ambient brightness signal of the next preset time period is acquired;
[0009] When it is determined according to the next ambient brightness signal that the total duration of the target signal is less than or equal to a preset time threshold, the display is controlled to maintain the initial brightness, and the total duration is the sum of the first time difference and the next continuous holding time of the target signal in the next preset time period.
[0010] In some embodiments, if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then after obtaining the next ambient brightness signal of the next preset time period, it includes:
[0011] When it is determined according to the next ambient brightness signal that the total duration of the target signal is greater than a preset time threshold, determining the target brightness according to the target signal and a correspondence between the preset ambient brightness and the display brightness;
[0012] The brightness of the display is adjusted to the target brightness.
[0013] In some embodiments, if the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, then determining the first moment as a target moment, and determining that the ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is a target signal, includes:
[0014] When the target signal is continuously maintained for a time greater than a preset time threshold within the preset time period starting from the target moment, the target brightness is determined according to the target signal and a correspondence between the preset ambient brightness and the display brightness;
[0015] The brightness of the display is adjusted to the target brightness.
[0016] In some embodiments, when the target signal is continuously maintained for a time greater than a preset time threshold within the preset time period starting from the target moment, determining the target brightness according to the target signal and a correspondence between a preset ambient brightness and a display brightness includes:
[0017] When the target moment is taken as the starting point within the preset time period and the continuous holding time of the target signal is greater than the preset time threshold, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range, the target brightness is determined according to the first ambient brightness value and the corresponding relationship between the preset ambient brightness and the display brightness;
[0018] When the continuous holding time of the target signal is greater than the preset time threshold with the target moment as the starting point within the preset time period, if the target brightness difference of the target signal at at least two moments within the continuous holding time exceeds the preset difference range, the target brightness is determined according to the ambient brightness value of the target signal at each moment within the continuous holding time and the corresponding relationship between the preset ambient brightness and the display brightness.
[0019] In some embodiments, adjusting the brightness of the display to the target brightness includes:
[0020] Determine a brightness difference to be adjusted according to the initial brightness and the target brightness;
[0021] Determining an adjustment strategy according to the brightness difference to be adjusted and a preset adjustment limit parameter;
[0022] The brightness of the display is controlled to be adjusted from the initial brightness to the target brightness according to the adjustment strategy.
[0023] In some embodiments, obtaining the ambient brightness signal of the display during a preset time period includes:
[0024] Acquire the initial environment brightness signal of the display in the preset time period respectively through a plurality of sensors;
[0025] When deviations of initial environment brightness signals acquired by target sensors exceeding a preset number among the multiple sensors are within a preset deviation range, the initial environment brightness signal acquired by any target sensor is determined to be the environment brightness signal.
[0026] In a second aspect, the present application provides a display brightness adjustment device, comprising:
[0027] An information acquisition module, used to acquire an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness;
[0028] an information analysis module, which is in communication connection with the information acquisition module, and is used to determine that the first moment is a target moment if the brightness difference between a first ambient brightness value at a first moment and a second ambient brightness value at a second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, and to determine that an ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is a target signal, the second moment is a moment before the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value;
[0029] The brightness display module is communicatively connected to the information analysis module, and is used to control the display to maintain the initial brightness when the continuous holding time of the target signal is less than or equal to the preset time threshold within the preset time period starting from the target moment.
[0030] In some embodiments, the brightness display module is also used to obtain the next ambient brightness signal of the next preset time period if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold; when it is determined according to the next ambient brightness signal that the total duration of the target signal is less than or equal to the preset time threshold, control the display to maintain the initial brightness, and the total duration is the sum of the first time difference and the next continuous maintenance time of the target signal in the next preset time period.
[0031] In some embodiments, the brightness display module is also used to determine the target brightness according to the correspondence between the target signal and the preset ambient brightness and the display brightness when the total duration of the target signal is determined to be greater than a preset time threshold according to the next ambient brightness signal; and adjust the brightness of the display to the target brightness.
[0032] In some embodiments, the brightness display module is also used to determine the target brightness according to the correspondence between the target signal and the preset ambient brightness and the display brightness when the continuous maintenance time of the target signal within the preset time period starting from the target moment is greater than a preset time threshold; and adjust the brightness of the display to the target brightness.
[0033] In some embodiments, the brightness display module is also used to determine the target brightness according to the first ambient brightness value and the corresponding relationship between the preset ambient brightness and the display brightness when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range; when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if there are at least two moments within the continuous holding time where the target brightness difference of the target signal exceeds the preset difference range, then determine the target brightness according to the ambient brightness value of the target signal at each moment within the continuous holding time and the corresponding relationship between the preset ambient brightness and the display brightness.
[0034] In some embodiments, the brightness display module is also used to determine the brightness difference to be adjusted based on the initial brightness and the target brightness; determine an adjustment strategy based on the brightness difference to be adjusted and preset adjustment limit parameters; and control the brightness of the display from the initial brightness to the target brightness according to the adjustment strategy.
[0035] In some embodiments, the information acquisition module is also used to obtain the initial ambient brightness signal of the display in the preset time period through multiple sensors respectively; when the deviation of the initial ambient brightness signal obtained by more than a preset number of target sensors among the multiple sensors is within a preset deviation range, the initial ambient brightness signal obtained by any target sensor is determined to be the ambient brightness signal.
[0036] In a third aspect, the present application provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps in any one of the display brightness adjustment methods.
[0037] In a fourth aspect, the present application provides a storage medium storing a plurality of instructions, wherein the instructions are used for a controller to execute to implement any of the methods described.
[0038] The display brightness adjustment method, device, electronic device and storage medium provided in the embodiments of the present application identify the target moment when the ambient brightness value changes suddenly within a preset time period, and use the target moment as the starting point to count the continuous retention time of the target signal. If it is determined through the continuous retention time that the target signal is only short-term abnormal information, it is filtered out to avoid instantaneous changes in the external ambient light. Immediate response to adjust the display brightness will cause abnormal sudden changes in the display brightness. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The technical solution and other beneficial effects of the present application will be made apparent by describing in detail the specific implementation methods of the present application in conjunction with the accompanying drawings.
[0040] Figure 1 is a flow chart of a method for adjusting display brightness in an embodiment of the present application;
[0041] Figure 2 is a schematic diagram of the brightness of the display according to the external environment brightness adjustment in the embodiment of the present application;
[0042] Figure 3 Schematic diagram of the brightness of the display in the embodiment of the present application being adjusted according to the ambient brightness
[0043] Figure 4 It is a structural schematic diagram of a display brightness adjustment device in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.
[0045] In the description of the present application, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present application. In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0046] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, an electrical connection, or mutual communication; it can be a direct connection, or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0047] In the present application, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0048] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or reference letters in different examples, and this repetition is for the purpose of simplification and clarity, which itself does not indicate the relationship between the various embodiments and / or settings discussed. In addition, the various specific processes and material examples provided by the present application, but those of ordinary skill in the art can appreciate the application of other processes and / or the use of other materials.
[0049] See also Figure 1 The embodiment of the present application provides a display brightness adjustment method, which includes steps S101 to S103, which are as follows:
[0050] S101, obtaining an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness.
[0051] Specifically, Figure 2 As shown, the brightness of the display follows the external environment brightness adjustment. In fact, the brightness change of the display has a certain lag. Therefore, the external environment brightness signal of the display in a preset time period is obtained, and the brightness of the display is controlled based on the analysis of the environment brightness signal in the preset time period.
[0052] It should be noted that the preset time period can be set according to the requirements of the display effect. The shorter the preset time period, the faster the brightness of the display is adjusted to follow the external ambient brightness. This embodiment does not specifically limit the specific value of the preset time period.
[0053] Determine that the display brightness of the display when entering the preset time period is the initial brightness. If the display is in the initial start-up stage within the preset time period, the initial brightness is the set default brightness. If the display is not in the initial start-up stage within the preset time period, the initial brightness is the brightness of the display determined according to the external ambient brightness in the time period before the preset time period.
[0054] In one embodiment, this step includes: S201, respectively obtaining the initial ambient brightness signal of the display in the preset time period through multiple sensors; S202, when the deviation of the initial ambient brightness signal obtained by more than a preset number of target sensors among the multiple sensors is within a preset deviation range, determining that the initial ambient brightness signal obtained by any target sensor is the ambient brightness signal.
[0055] Specifically, when obtaining the ambient brightness signal through a single light sensor or other information collection device, if the light sensor detects an abnormality due to static electricity or other reasons, the corresponding ambient brightness signal obtained may also be abnormal, resulting in the brightness adjustment of the display not actually matching the external ambient brightness. Therefore, the initial ambient brightness signals of the display in a preset time period are obtained through multiple sensors respectively, and the initial ambient brightness signals obtained by multiple sensors are comprehensively analyzed to determine the ambient brightness signal for analysis.
[0056] Among them, if the initial ambient brightness signals of the display in a preset time period are obtained respectively through two sensors, then only when the deviation of the initial ambient brightness signals obtained by the two sensors is within the preset deviation range, the two sensors are judged to be in normal working state, and the initial ambient brightness signal obtained by one of the two sensors can be arbitrarily selected as the ambient brightness signal for subsequent analysis.
[0057] When there are more than two sensors for collecting data, it is necessary to determine the sensors that are working normally, considering that there may be sensors that are working normally and there may be abnormal sensors. When the deviation of the initial ambient brightness signal obtained by target sensors exceeding a preset number among multiple sensors is within a preset deviation range, the target sensors exceeding the preset number are determined to be sensors that are working normally, and then the initial ambient brightness signal obtained by any target sensor that is working normally is determined to be the ambient brightness signal. For example, data is collected by 5 sensors, and the preset number is set to 3. When the deviation of the initial ambient brightness signal collected by 4 of the sensors is within the preset deviation range, these 4 sensors are sensors that are working normally, and the initial ambient brightness signal obtained by any one of the 4 sensors can be selected as the ambient brightness signal for subsequent analysis. Similarly, the number of sensors used to collect data is not specifically limited in this embodiment.
[0058] S102, if the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, the first moment is determined to be the target moment, and the ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is determined to be the target signal, the second moment is the previous moment of the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value.
[0059] Specifically, by analyzing the ambient brightness signal of a preset time period, if there is a brightness change between the adjacent second moment and the first moment, and the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment is greater than or equal to the preset brightness threshold, it means that a sudden change has occurred in the ambient brightness signal at the first moment, then the first moment is determined as the target moment, and the target moment is used as the starting point to further identify whether a sudden change has occurred in the actual ambient brightness of the outside world, or whether it is just an abnormality in the ambient brightness signal, or even if the actual ambient brightness of the outside world has changed, it is further identified whether it is a short-term sudden change or a long-term change adjustment.
[0060] Among them, the second moment is the previous moment of the first moment, and before the second moment in the preset time period, the ambient brightness in the ambient brightness signal has not changed or has changed slightly and has not exceeded the preset brightness threshold, the initial brightness is the display brightness of the display when entering the preset time period, and before the second moment in the preset time period, the brightness of the display has not changed, so the initial brightness is also the display brightness of the display corresponding to the second ambient brightness value. It should be noted that the second moment may also be the last moment of the previous preset time period of the preset time period. The preset brightness threshold is set based on the accuracy of judgment and recognition, and is not specifically limited in this embodiment.
[0061] In addition, an ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to a preset threshold is determined as a target signal, that is, the brightness value of the target signal is not a unique value determined. After the first moment, that is, the target moment, there may be a target signal with a higher brightness than the first ambient brightness value at the first moment.
[0062] S103, when the target signal is continuously maintained for a time period less than or equal to a preset time threshold within the preset time period starting from the target moment, controlling the brightness of the display to maintain the initial brightness.
[0063] Specifically, when the brightness difference between the third environment brightness value at the third moment and the second environment brightness value at the second moment within the preset time period is less than the preset brightness threshold value, the third moment is the moment after the target moment within the preset time period. The continuous retention time of the target signal within the preset time period is between the target moment and the third moment, that is, the retention time of the entire target signal completely falls within the preset time period, and the signal at the last moment of the preset time period is not the target signal. When the continuous retention time of the target signal is less than or equal to the preset time threshold, it means that the target signal lasts for a short time, which may be a signal abnormality, and is not a stable change in the external brightness. Therefore, there is no need to adjust the brightness of the display according to the target signal within the continuous retention time period, that is, the brightness of the display remains unchanged at the initial brightness.
[0064] It should be noted that the preset time period is freely set according to the accuracy of the judgment, for example, it is set to 0.25 of the preset time period, etc., and this embodiment does not make a specific limitation.
[0065] In one embodiment, this step is followed by: S301, when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, the target brightness is determined according to the correspondence between the target signal and the preset ambient brightness and the display brightness; S302, adjusting the brightness of the display to the target brightness.
[0066] Specifically, when the target signal is continuously maintained for a time greater than the preset time threshold starting from the target moment within the preset time period, that is, starting from the target moment, the ambient brightness signals within the preset time threshold are all target signals. And the event segments of the preset time threshold are all within the preset time period, indicating that the brightness mutation at the target moment is not a signal abnormality or a short-term mutation, but a stable change in the actual external environment brightness. Therefore, according to the corresponding relationship between the target signal and the preset ambient brightness and the display brightness, the target brightness is determined, and the display brightness is adjusted to the target brightness.
[0067] Among them, starting from the target time, the signal in the time period after exceeding the preset time threshold may be the target signal or may not be the target signal. In addition, the corresponding relationship between the preset ambient brightness and the display brightness is based on the user's usage habits or the brightness compensation relationship uniformly set by the system, and the specific corresponding values are not specifically limited in this embodiment.
[0068] In one embodiment, step S103, when the continuous holding time of the target signal is less than or equal to the preset time threshold within the preset time period starting from the target moment, the brightness of the display is controlled to maintain the initial brightness, and then includes: S401, if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then the next ambient brightness signal of the next preset time period is obtained; S402, when it is determined according to the next ambient brightness signal that the total duration of the target signal is less than or equal to the preset time threshold, the display is controlled to maintain the initial brightness, and the total duration is the sum of the first time difference and the next continuous holding time of the target signal in the next preset time period.
[0069] Specifically, if the target signal is continuously maintained from the target moment to the last moment of the preset time period, that is, the target signal is the starting point of the preset time period until the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, that is, the target signal may continue to the next preset time period, and the target signal in the preset time period is insufficient to determine whether the target signal is a signal abnormality or an actual brightness change in the outside world. Therefore, the next environmental brightness signal of the next preset time period is further obtained. If the sum of the next continuous maintenance time of the abnormal signal in the next preset time period and the first time difference in the preset time period is less than or equal to the preset time threshold, it means that the target signal lasts for a short time, which may be a signal abnormality, not a stable change in the brightness of the outside world. Therefore, there is no need to adjust the brightness of the display according to the target signal in the continuous maintenance time period, that is, the brightness of the display remains unchanged at the initial brightness.
[0070] In one embodiment, S401, if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then after obtaining the next ambient brightness signal of the next preset time period, it includes: S501, when it is determined according to the next ambient brightness signal that the total duration of the target signal is greater than the preset time threshold, the target brightness is determined according to the correspondence between the target signal and the preset ambient brightness and the brightness of the display; S502, adjusting the brightness of the display to the target brightness.
[0071] Specifically, if the total duration of the target signal is greater than the preset time threshold, it means that the brightness mutation at the target moment is not a signal abnormality or a short-term mutation, but a stable change in the actual external environment brightness. Therefore, the target brightness is determined according to the correspondence between the target signal and the preset ambient brightness and the display brightness, and the brightness of the display is adjusted to the target brightness.
[0072] In one embodiment, the step of determining the target brightness according to the target signal and the correspondence between the preset ambient brightness and the display brightness includes: S601, when the continuous holding time of the target signal is greater than the preset time threshold with the target moment as the starting point within the preset time period, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range, then the target brightness is determined according to the first ambient brightness value and the correspondence between the preset ambient brightness and the display brightness; S602, when the continuous holding time of the target signal is greater than the preset time threshold with the target moment as the starting point within the preset time period, if the target brightness difference of the target signal at at least two moments within the continuous holding time exceeds the preset difference range, then the target brightness is determined according to the ambient brightness value of the target signal at each moment within the continuous holding time and the correspondence between the preset ambient brightness and the display brightness.
[0073] Specifically, when it is determined that the external ambient brightness is stably changing based on the retention time of the target signal (continuous retention time or total duration), that is, when the display brightness of the display needs to be adjusted based on the target signal, since the ambient brightness signals whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold are all target signals, that is, the target signals at different times may or may not be the same.
[0074] When the target brightness difference of the target signal at any two moments is within the preset difference range during the holding time of the target signal, it means that the collected external ambient brightness signal is relatively stable, and the display brightness of the display can be adjusted by selecting the target signal at any moment. For example, the target brightness can be determined based on the correspondence between the first ambient brightness value and the preset ambient brightness and the display brightness. This embodiment does not make specific limitations.
[0075] When the target brightness difference of the target signal at at least two moments exceeds the preset difference range within the holding time of the target signal, it indicates that the collected external environment brightness signal has large fluctuations. In order to avoid the display brightness of the display from fluctuating frequently with the target signal, the target brightness can be determined according to the environment brightness value of the target signal at each moment within the holding time and the preset corresponding relationship between the environment brightness and the display brightness. For example, curve fitting is performed on the target signal at each moment within the holding time, and the target signal whose deviation is greater than the threshold is excluded, so as to determine the actual brightness signal of the outside world, and then the target brightness is determined in combination with the preset corresponding relationship between the environment brightness and the display brightness.
[0076] In one embodiment, the steps of adjusting the brightness of the display to the target brightness include: S701, determining a brightness difference to be adjusted based on the initial brightness and the target brightness; S702, determining an adjustment strategy based on the brightness difference to be adjusted and a preset adjustment limit parameter; S703, controlling the brightness of the display from the initial brightness to the target brightness according to the adjustment strategy.
[0077] Specifically, after determining the target brightness that the display needs to be adjusted to reach, the brightness difference to be adjusted is determined according to the initial brightness and the target brightness of the display, and the brightness difference to be adjusted is the brightness difference that the display needs to change.
[0078] Among them, the preset adjustment limit parameters include adjustment time and adjustment amplitude. The longer the adjustment time, the longer the change process of the display is, which is convenient for users to adapt slowly and avoid poor effects caused by short-term brightness changes of the display. Similarly, the adjustment amplitude is the difference in brightness change per time unit within the adjustment time. The adjustment amplitude can be fixed, that is, the brightness changes evenly, or the adjustment amplitude can be different for each time unit to better adapt to the acceptance of the human eye. This embodiment does not make specific limitations. The adjustment strategy is determined based on the brightness difference to be adjusted and the preset adjustment limit parameters, and the brightness of the display is controlled according to the adjustment strategy to adjust from the initial brightness to the target brightness.
[0079] like Figure 3 As shown, for the target signal between T2 and T3, since its holding time is less than the preset time threshold, it is filtered out as an abnormal signal, and the display brightness of the display remains at the initial brightness and does not change accordingly. When the holding time of the target signal in the T5 stage is greater than the preset time threshold, it is determined that the external environment has indeed changed stably, so the display brightness of the display is adjusted accordingly. Correspondingly, the T5 stage is used as the adjustment time for the display brightness adjustment, and its adjustment amplitude is a smooth transition curve.
[0080] In this embodiment, the target moment when the ambient brightness value changes suddenly within the preset time period is identified, and the continuous retention time of the target signal is counted with the target moment as the starting point. If it is judged through the continuous retention time that the target signal is only short-term abnormal information, it will be filtered out to avoid instantaneous changes in the external ambient light. Immediate response to adjust the display brightness will cause abnormal sudden changes in the display brightness.
[0081] In order to better implement the display brightness adjustment method in the embodiment of the present application, based on the display brightness adjustment method, the embodiment of the present application also provides a display brightness adjustment device, such as Figure 4 As shown, the display brightness adjustment device 100 includes:
[0082] The information acquisition module 110 is used to acquire an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness;
[0083] The information analysis module 120 is communicatively connected with the information acquisition module 110, and is used to determine that the first moment is the target moment, and determine that the ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is the target signal, if the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to the preset brightness threshold, the second moment is the previous moment of the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value;
[0084] The brightness display module 130 is communicatively connected to the information analysis module 120, and is used to control the display to maintain the initial brightness when the continuous holding time of the target signal is less than or equal to the preset time threshold within the preset time period starting from the target moment.
[0085] In some embodiments of the present application, the brightness display module 130 is also used to obtain the next ambient brightness signal of the next preset time period if the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold; when it is determined according to the next ambient brightness signal that the total duration of the target signal is less than or equal to the preset time threshold, control the display to maintain the initial brightness, and the total duration is the sum of the first time difference and the next continuous maintenance time of the target signal in the next preset time period.
[0086] In some embodiments of the present application, the brightness display module 130 is also used to determine the target brightness according to the correspondence between the target signal and the preset ambient brightness and the display brightness when it is determined according to the next ambient brightness signal that the total duration of the target signal is greater than a preset time threshold; and adjust the brightness of the display to the target brightness.
[0087] In some embodiments of the present application, the brightness display module 130 is also used to determine the target brightness according to the correspondence between the target signal and the preset ambient brightness and the display brightness when the continuous maintenance time of the target signal is greater than a preset time threshold within the preset time period starting from the target moment; and adjust the brightness of the display to the target brightness.
[0088] In some embodiments of the present application, the brightness display module 130 is also used to determine the target brightness according to the first ambient brightness value and the corresponding relationship between the preset ambient brightness and the display brightness when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range; when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if there are at least two moments within the continuous holding time where the target brightness difference of the target signal exceeds the preset difference range, then determine the target brightness according to the ambient brightness value of the target signal at each moment within the continuous holding time and the corresponding relationship between the preset ambient brightness and the display brightness.
[0089] In some embodiments of the present application, the brightness display module 130 is also used to determine the brightness difference to be adjusted based on the initial brightness and the target brightness; determine the adjustment strategy based on the brightness difference to be adjusted and the preset adjustment limit parameters; and control the brightness of the display from the initial brightness to the target brightness according to the adjustment strategy.
[0090] In some embodiments of the present application, the information acquisition module 110 is also used to obtain the initial ambient brightness signal of the display in the preset time period through multiple sensors; when the deviation of the initial ambient brightness signal obtained by more than a preset number of target sensors among the multiple sensors is within a preset deviation range, the initial ambient brightness signal obtained by any target sensor is determined to be the ambient brightness signal.
[0091] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0092] In some embodiments of the present application, an electronic device is provided, comprising one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor in the steps of the display brightness adjustment method. The steps of the display brightness adjustment method here may be the steps of the display brightness adjustment method in the above-mentioned embodiments.
[0093] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0094] The above is a detailed introduction to a display brightness adjustment method, device, electronic device and computer-readable storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for adjusting display brightness, characterized in that: include: Acquire an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness; If the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, the first moment is determined to be a target moment, and an ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is determined to be a target signal, the second moment is the moment before the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value; When the target time is taken as the starting point within the preset time period and the continuous holding time of the target signal is less than or equal to the preset time threshold, controlling the brightness of the display to maintain the initial brightness; After determining that the first moment is a target moment if the brightness difference between the first ambient brightness value at the first moment and the second ambient brightness value at the second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, and determining that the ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is a target signal, the method further includes: When the target signal is continuously maintained for a time greater than a preset time threshold within the preset time period starting from the target moment, the target brightness is determined according to the target signal and a correspondence between the preset ambient brightness and the display brightness; adjusting the brightness of the display to the target brightness; Wherein, when the target signal is continuously maintained for a time greater than a preset time threshold within the preset time period starting from the target moment, the target brightness is determined according to the corresponding relationship between the target signal and the preset ambient brightness and the display brightness, including: When the target moment is taken as the starting point within the preset time period and the continuous holding time of the target signal is greater than the preset time threshold, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range, the target brightness is determined according to the first ambient brightness value and the corresponding relationship between the preset ambient brightness and the display brightness; When the continuous holding time of the target signal is greater than the preset time threshold with the target moment as the starting point within the preset time period, if the target brightness difference of the target signal at at least two moments within the continuous holding time exceeds the preset difference range, the target brightness is determined according to the ambient brightness value of the target signal at each moment within the continuous holding time and the corresponding relationship between the preset ambient brightness and the display brightness.
2. The display brightness adjustment method according to claim 1, characterized in that: When the target time is taken as the starting point within the preset time period and the continuous holding time of the target signal is less than or equal to the preset time threshold, controlling the display to maintain the initial brightness includes: If the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then obtaining the next ambient brightness signal of the next preset time period; When it is determined according to the next ambient brightness signal that the total duration of the target signal is less than or equal to a preset time threshold, the display is controlled to maintain the initial brightness, and the total duration is the sum of the first time difference and the next continuous holding time of the target signal in the next preset time period.
3. The display brightness adjustment method according to claim 2, characterized in that: If the target signal is continuously maintained from the target moment to the last moment of the preset time period, and the first time difference from the target moment to the last moment is less than or equal to the preset time threshold, then after obtaining the next ambient brightness signal of the next preset time period, the method includes: When it is determined according to the next ambient brightness signal that the total duration of the target signal is greater than a preset time threshold, determining the target brightness according to the target signal and a correspondence between the preset ambient brightness and the display brightness; The brightness of the display is adjusted to the target brightness.
4. The display brightness adjustment method according to claim 1, characterized in that: The adjusting the brightness of the display to the target brightness includes: Determine a brightness difference to be adjusted according to the initial brightness and the target brightness; Determining an adjustment strategy according to the brightness difference to be adjusted and a preset adjustment limit parameter; The brightness of the display is controlled to be adjusted from the initial brightness to the target brightness according to the adjustment strategy.
5. The display brightness adjustment method according to claim 1, characterized in that: The step of obtaining the ambient brightness signal of the display during a preset time period includes: Acquire the initial environment brightness signal of the display in the preset time period respectively through a plurality of sensors; When deviations of initial environment brightness signals acquired by target sensors exceeding a preset number among the multiple sensors are within a preset deviation range, the initial environment brightness signal acquired by any target sensor is determined to be the environment brightness signal.
6. A display brightness adjustment device, characterized in that: include: An information acquisition module, used to acquire an ambient brightness signal of a display in a preset time period, wherein the display brightness of the display is an initial brightness; an information analysis module, which is in communication connection with the information acquisition module, and is used to determine that the first moment is a target moment if the brightness difference between a first ambient brightness value at a first moment and a second ambient brightness value at a second moment in the ambient brightness signal is greater than or equal to a preset brightness threshold, and to determine that an ambient brightness signal whose brightness difference with the second ambient brightness value is greater than or equal to the preset threshold is a target signal, the second moment is a moment before the first moment, and the initial brightness is the display brightness of the display corresponding to the second ambient brightness value; a brightness display module, which is in communication with the information analysis module and is used to control the display to maintain the initial brightness when the continuous holding time of the target signal is less than or equal to a preset time threshold within the preset time period starting from the target moment; The brightness display module is further used to determine the target brightness according to the corresponding relationship between the target signal and the preset ambient brightness and the display brightness; and adjust the brightness of the display to the target brightness when the continuous holding time of the target signal is greater than the preset time threshold within the preset time period starting from the target moment; The brightness display module is also used to determine the target brightness according to the first ambient brightness value and the corresponding relationship between the preset ambient brightness and the display brightness when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if the target brightness difference of the target signal at any two moments within the continuous holding time is within the preset difference range; when the continuous holding time of the target signal within the preset time period starting from the target moment is greater than the preset time threshold, if there are at least two moments within the continuous holding time where the target brightness difference of the target signal exceeds the preset difference range, determine the target brightness according to the ambient brightness value of the target signal at each moment within the continuous holding time and the corresponding relationship between the preset ambient brightness and the display brightness.
7. An electronic device, characterized in that: The electronic device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps in the display brightness adjustment method according to any one of claims 1 to 5.
8. A storage medium storing a plurality of instructions, characterized in that: The instructions are used for being executed by a controller to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Electronic equipment and display device screen brightness adjusting method thereof
CN101789230A
Electronic device with display brightness control
CN104350537A