A brightness adjustment method, device, display, and storage medium for a display

By constructing a brightness array and determining the target environment brightness working condition and calculating the brightness adjustment parameter value, the problem that the display brightness adjustment method in the prior art cannot adapt to environmental changes is solved, and the adaptive adjustment of the display brightness is realized, which improves the driver's visual experience.

CN115206261BActive Publication Date: 2025-07-08ZEJING (XIAN) AUTOMOTIVE ELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210636847.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2025-07-08
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

The existing automatic display brightness adjustment method cannot adaptively according to changes in ambient brightness, resulting in a fixed amount of brightness data selection, which cannot meet all ambient brightness conditions, resulting in a mismatch between the display brightness and the ambient brightness, affecting the driver's visual experience.

Method used

By obtaining the environmental brightness of the current and historical moments, building a brightness array, determining the target environmental brightness working condition based on the brightness change information, selecting the brightness data amount according to the target environmental brightness working condition, calculating the brightness adjustment parameter value, and realizing the adaptive brightness adjustment of the monitor.

Benefits of technology

It realizes adaptive adjustment of the brightness of the monitor, meets the brightness adjustment requirements under different ambient brightness conditions, avoids the problem of brightness mismatch, and improves the driver's visual comfort and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115206261B_ABST
    Figure CN115206261B_ABST
Patent Text Reader

Abstract

This application is applicable to the field of display technologies, and provides a method and device for adjusting the brightness of a display, a display, and a storage medium. The method includes: obtaining a first ambient brightness at the current moment and a second ambient brightness before the current moment to obtain a brightness array; determining a target ambient brightness condition at the current moment based on the brightness change information of the first ambient brightness and the second ambient brightness in the time sequence in the brightness array; selecting at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data selection corresponding to the target ambient brightness condition; calculating a brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness; and adjusting the brightness of the display based on the brightness adjustment parameter value. This application can adaptively adjust the amount of brightness data selection based on the brightness change information of the ambient brightness in the time sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of displays, and particularly relates to a method and device for adjusting the brightness of a display, a display, and a storage medium. Background Art

[0002] In the cab, there is a display that provides data display for the driver and whose brightness is adjustable. The display can automatically adjust its own brightness according to the ambient brightness. The existing method for automatically adjusting the brightness of the display is to obtain multiple ambient brightnesses based on a set amount of selected brightness data, and adjust the brightness of the display according to the average value of the multiple ambient brightnesses. In this method, the amount of selected brightness data is a fixed value and cannot be adaptively adjusted according to the change of the ambient brightness. Summary of the Invention

[0003] Embodiments of this application provide a method and device for adjusting the brightness of a display, a display, and a storage medium, which can adaptively adjust the amount of selected brightness data based on the brightness change information of the ambient brightness in time series.

[0004] In a first aspect, embodiments of this application provide a method for adjusting the brightness of a display, including:

[0005] Obtain a first ambient brightness at the current moment and a second ambient brightness before the current moment to obtain a brightness array;

[0006] Based on the brightness change information of the first ambient brightness and the second ambient brightness in the brightness array in time series, determine the target ambient brightness condition at the current moment;

[0007] According to the amount of selected brightness data corresponding to the target ambient brightness condition, select at least one target ambient brightness from the second ambient brightness in the brightness array;

[0008] Based on the target ambient brightness and the first ambient brightness, calculate a brightness adjustment parameter value;

[0009] Based on the brightness adjustment parameter value, adjust the brightness of the display.

[0010] In a second aspect, embodiments of this application provide a device for adjusting the brightness of a display, including:

[0011] A brightness acquisition module, configured to obtain a first ambient brightness at the current moment and a second ambient brightness before the current moment to obtain a brightness array;

[0012] A condition determination module, configured to determine the target ambient brightness condition at the current moment based on the brightness change information of the first ambient brightness and the second ambient brightness in the brightness array in time series;

[0013] A brightness selection module, configured to select at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data corresponding to the target ambient brightness condition of the target environment.

[0014] A parameter calculation module, configured to calculate a brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness.

[0015] A brightness adjustment module, configured to adjust the brightness of the display based on the brightness adjustment parameter value.

[0016] In a third aspect, an embodiment of the present application provides a display, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, it implements the brightness adjustment method of a display in the first aspect.

[0017] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the brightness adjustment method of a display in the first aspect.

[0018] The beneficial effects of the embodiments of the present application compared with the prior art are as follows: The present application obtains the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array; based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, determines the target ambient brightness condition at the current moment; selects at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data corresponding to the target ambient brightness condition; calculates a brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness; adjusts the brightness of the display based on the brightness adjustment parameter value. The present application can determine the target ambient brightness condition at the current moment based on the brightness change information of the ambient brightness in the time series, and then adaptively adjust the amount of brightness data selected according to the target ambient brightness condition. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0020] Figure 1 It is a schematic flowchart of a brightness adjustment method for a display provided by an embodiment of the present application;

[0021] Figure 2 It is a schematic diagram for comparing the brightness change curves when the selected amount of brightness data in an embodiment of the present application is small;

[0022] Figure 3 It is a schematic diagram for comparing the brightness change curves when the selected amount of brightness data in an embodiment of the present application is large;

[0023] Figure 4 It is a graph of the brightness change after brightness adjustment based on the selected amount of brightness data in an embodiment of the present application;

[0024] Figure 5 It is a schematic structural block diagram of a brightness adjustment device for a display in an embodiment of the present application;

[0025] Figure 6 It is a schematic diagram of the structure of a display in an embodiment of the present application. Detailed implementation manners

[0026] In the following description, for the purpose of illustration rather than limitation, specific details such as specific system structures and technologies are presented to thoroughly understand the embodiments of the present application. However, those skilled in the art should clearly understand that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from interfering with the description of the present application.

[0027] It should be understood that when used in the specification and the appended claims of the present application, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components, and / or their combinations.

[0028] It should also be understood that the term "and / or" as used in the specification and the appended claims of the present application refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0029] As used in the specification and the appended claims of the present application, the term "if" can be interpreted as "when", "once", "in response to determining", or "in response to detecting" according to the context. Similarly, the phrase "if determined" or "if detecting [the described condition or event]" can be interpreted as meaning "once determined", "in response to determining", "once detecting [the described condition or event]", or "in response to detecting [the described condition or event]" according to the context.

[0030] In addition, in the description of the specification and the appended claims of this application, the terms "first", "second", "third", etc. are only used for differential description and cannot be construed as indicating or implying relative importance.

[0031] The reference to "one embodiment" or "some embodiments" described in the specification of this application means that a specific feature, structure, or characteristic described in connection with that embodiment is included in one or more embodiments of this application. Thus, statements such as "in one embodiment", "in some embodiments", "in other some embodiments", "in still other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "comprising", "including", "having" and their variants all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0032] The brightness of the display (display brightness) can be automatically adjusted according to the ambient brightness outside the vehicle. Most of the existing display brightness adjustment methods filter the ambient brightness based on the sliding average filtering method and adjust the brightness of the display based on the filtering result. Among them, the sliding average filtering method is also called the recursive average filtering method, that is, sampling is performed based on a preset sampling period (sampling interval) T. Considering continuous N sampling values as a queue, the length of the queue is fixed at N, and the sampling duration corresponding to the queue is K, K = N * T. Each time a new data is sampled and put into the end of the queue, and the original data at the head of the queue is discarded (first-in, first-out principle). The N data in the queue are averaged to obtain the filtering result. The existing display brightness adjustment methods all use fixed N values or K values, and this method cannot meet all ambient brightness conditions. Based on this, this application proposes a display brightness adjustment method, device, display, and storage medium. For specific content, please refer to the following embodiments.

[0033] Embodiment 1:

[0034] Please refer to Figure 1 , Figure 1 which shows a schematic flow of a display brightness adjustment method provided by this application.

[0035] Step 101, obtain the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array.

[0036] According to the relevant description of the above sliding average filtering method, the data required by the sliding average filtering method are the data at the current moment and the data at the historical moment. The present application performs brightness adjustment based on the sliding average filtering method. Therefore, the present application needs to obtain the first ambient brightness at the current moment and the second ambient brightness before the current moment, and then obtain the brightness array. Among them, the brightness array can be obtained based on the first-in-first-out principle, and the length of the brightness array, that is, the maximum number of ambient brightnesses included in the brightness array, can be pre-set. Optionally, the length of the brightness array can be 50.

[0037] It should be noted that the first ambient brightness and the second ambient brightness can be the ambient brightness outside the vehicle. The ambient brightness can be collected using the brightness sensor built into the display, or the brightness sensor built into the vehicle can be used to collect the ambient brightness, and then the collected ambient brightness can be sent to the display through bus communication based on the electronic control unit (ECU) in the vehicle.

[0038] Step 102: determine the target environment brightness condition at the current moment based on the brightness change information of the first environment brightness and the second environment brightness in the brightness array in time sequence.

[0039] Different ambient brightness conditions correspond to different brightness change information. Therefore, based on the brightness change information of the first ambient brightness and the second ambient brightness in the brightness array in time sequence, an ambient brightness condition that matches the brightness change information can be selected from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment; wherein the preset ambient brightness conditions at least include the first ambient brightness condition, the second ambient brightness condition and the third ambient brightness condition, wherein the first ambient brightness condition corresponds to the first brightness data selection amount; the second ambient brightness condition corresponds to the second brightness data selection amount, and the third ambient brightness condition corresponds to the third brightness data selection amount; the first brightness data selection amount is less than the third brightness data selection amount, and the third brightness data selection amount is less than the second brightness data selection amount.

[0040] The first ambient brightness condition is characterized by an instantaneous and sharp change in ambient brightness, i.e., a rapid change from high brightness to dark or a rapid change from dark to high brightness. The corresponding driving scenarios include but are not limited to daytime entering and exiting tunnels and daytime entering and exiting underground parking lots. The second ambient brightness condition is characterized by frequent alternating changes in ambient brightness. The corresponding driving scenarios include but are not limited to daytime continuous tree shade scenes and nighttime continuous street light scenes. The third ambient brightness condition is characterized by constant or slowly changing ambient brightness. The corresponding driving scenarios include but are not limited to highway scenes and nighttime road scenes without street lights. It should be noted that the third ambient brightness condition covers most of the ambient brightness conditions in actual driving.

[0041] See also Figure 2and Figure 3 , Figure 2 FIG. is a comparative schematic diagram of the luminance change curves before and after filtering for each ambient luminance condition when the selected amount of luminance data is small. Figure 3 FIG. is a comparative schematic diagram of the luminance change curves before and after filtering for each ambient luminance condition when the selected amount of luminance data is large; for the first ambient luminance condition, the ambient luminance changes rapidly. At this time, the luminance of the display also needs to respond quickly. Otherwise, the luminance of the display will be significantly higher or lower than the ambient luminance, resulting in a mismatch between the display luminance and the ambient luminance, and further causing glare or inability to see the displayed content clearly. Combining Figure 2 and Figure 3 the luminance change curves before and after filtering corresponding to the first ambient luminance condition in, it can be determined that Figure 2 the luminance change curve after filtering corresponding to the first ambient luminance condition in changes rapidly. Therefore, when the selected amount of luminance data corresponding to the first ambient luminance condition is small, the display luminance can change rapidly following the ambient luminance. For the second ambient luminance condition, the ambient luminance changes frequently and alternately. If the luminance of the display responds quickly, the display will have luminance flicker, causing discomfort to the driver's eyes and distracting the driver's attention. Therefore, under the second ambient luminance condition, the smoother the luminance change curve after filtering, the less obvious the human eye feels the luminance change, and the more comfortable the human eye feels. Combining Figure 2 and Figure 3 the luminance change curves before and after filtering corresponding to the second ambient luminance condition in, it can be determined that Figure 3 the luminance change curve after filtering corresponding to the second ambient luminance condition in changes relatively smoothly. Therefore, when the selected amount of luminance data corresponding to the first ambient luminance condition is large, the change in the filtered display luminance is relatively smooth. For the third ambient luminance condition, since the corresponding ambient luminance change characteristic is that the ambient luminance remains unchanged or changes slowly, therefore, whether the selected amount of luminance data is large or small, it will not cause discomfort to the driver's eyes. However, in order to avoid the display luminance response being untimely when the selected amount of luminance data is too large or waste of computing resources when the selected amount of luminance data is too small, based on the subjective feelings of the driver and the R & D and debugging personnel, within the range of the selected amount of luminance data corresponding to the first ambient luminance condition and the second ambient luminance condition, the selected amount of luminance data corresponding to the third ambient luminance condition can be determined. Based on the above content, it can be known that the first selected amount of luminance data is less than the third selected amount of luminance data, and the third selected amount of luminance data is less than the second selected amount of luminance data.

[0042] Step 103, select at least one target ambient luminance from the second ambient luminance in the luminance array according to the selected amount of luminance data corresponding to the target ambient luminance condition.

[0043] Optionally, the amount of selected brightness data includes the number of selected brightness data or the duration of selected brightness data. Among them, the number of selected brightness data can be regarded as the length N of the sampling value queue in the above moving average filtering method, and the duration of selected brightness data can be regarded as the sampling duration K of the sampling value queue in the above moving average filtering method.

[0044] Optionally, according to the amount of selected brightness data corresponding to the target ambient brightness condition, at least one target ambient brightness is selected from the second ambient brightness in the brightness array, including: according to the number of selected brightness data corresponding to the target ambient brightness condition, the target ambient brightness is selected in reverse chronological order from the second ambient brightness in the brightness array; or, according to the duration of selected brightness data corresponding to the target ambient brightness condition, the second ambient brightness within the duration of selected brightness data before the current moment is selected from the brightness array as the target ambient brightness. It should be noted that when the amount of selected brightness data is the number of selected brightness data, the number of selected target ambient brightnesses is the number of selected brightness data minus 1.

[0045] Step 104, based on the target ambient brightness and the first ambient brightness, calculate the brightness adjustment parameter value.

[0046] In this step, the brightness adjustment parameter value is obtained by calculating the average value of the first ambient brightness and the target ambient brightness.

[0047] In an alternative embodiment, weights can be set for the first ambient brightness and the target ambient brightness, and the average value is calculated after weighted summation to obtain the brightness adjustment parameter value.

[0048] Step 105, based on the brightness adjustment parameter value, adjust the brightness of the display.

[0049] It should be noted that the display includes, but is not limited to, a Head Up Display (HUD) and an in-vehicle display.

[0050] When adjusting the brightness of the display according to the brightness adjustment parameter value obtained in this application, the brightness adjustment parameter value is related to the amount of selected brightness data; please refer to Figure 4 , Figure 4 shows the brightness change curves corresponding to each ambient brightness condition after adjusting the brightness of the display based on the amount of selected brightness data. It can be seen that when adjusting the brightness of the display by obtaining the brightness adjustment parameter value based on the first amount of selected brightness data under the first ambient brightness condition, the brightness of the display can change rapidly following the ambient brightness, and there will be no situation where the brightness of the display is dazzling or the display content cannot be clearly seen. When adjusting the brightness of the display by obtaining the brightness adjustment parameter value based on the second amount of selected brightness data under the second ambient brightness condition, the change in the brightness of the display is relatively gentle, and the human eye feels that the change in brightness is not obvious, and there will be no discomfort in the eyes of the driver due to brightness flicker.

[0051] This application obtains the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array; based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, determines the target ambient brightness condition at the current moment; selects at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data selection corresponding to the target ambient brightness condition; calculates a brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness; and adjusts the brightness of the display based on the brightness adjustment parameter value. This application can determine the target ambient brightness condition at the current moment based on the brightness change information of the ambient brightness in the time series, and then adaptively adjust the amount of brightness data selection according to the target ambient brightness condition.

[0052] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.

[0053] Embodiment 2:

[0054] This embodiment provides a method for adjusting the brightness of a display, and the specific process is as follows:

[0055] Step 201, obtain the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array.

[0056] Refer to the relevant description in step 101 for the content in step 201.

[0057] Step 202, based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, determine the target ambient brightness condition at the current moment.

[0058] Optionally, based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, an ambient brightness condition that matches the brightness change information can be selected from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment.

[0059] Among them, the target ambient brightness condition at the current moment can be confirmed through the following two implementation manners:

[0060] In one implementation manner:

[0061] Optionally, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array in terms of time sequence, select an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, including: selecting the first ambient luminance at the current moment and the second ambient luminance within the first set duration before the current moment from the luminance array; constructing a first luminance curve including the first ambient luminance and the second ambient luminance within the first set duration before the current moment according to the time sequence; if the first luminance curve is monotonically decreasing and the minimum value of the first luminance curve is less than or equal to the first luminance threshold, or if the first luminance curve is monotonically increasing and the maximum value of the first luminance curve is greater than or equal to the second luminance threshold, then select the first ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition; wherein, the first luminance threshold is less than the second luminance threshold.

[0062] If the curve value of the first luminance curve drops to the first luminance threshold or rises to the second luminance threshold within the first set duration, then the first ambient luminance condition is the target ambient luminance condition at the current moment. If the first luminance curve is not monotonically decreasing or the minimum value of the first luminance curve is greater than the first luminance threshold, then the first ambient luminance condition is not the target ambient luminance condition at the current moment, or if the first luminance curve is not monotonically increasing or the maximum value of the first luminance curve is less than the second luminance threshold, then the first ambient luminance condition is not the target ambient luminance condition at the current moment.

[0063] When obtaining the ambient luminance condition at the current moment based on the ambient luminance data corresponding to a historical moment with a relatively long time interval from the current moment, it will cause deviation in the obtained ambient luminance condition. Therefore, in order to accurately determine the ambient luminance condition at the current moment, the embodiment obtains the second ambient luminance within the first set duration before the current moment, and selects an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment according to the first ambient luminance and the second ambient luminance within the first set duration before the current moment.

[0064] By way of example and not limitation, the value of the first set duration can be 2 seconds, and the value of the first luminance threshold can be 400 lux. The second luminance threshold is affected by various factors such as weather, and its value is not fixed. Optionally, the corresponding second luminance threshold can be obtained according to various factors such as the weather when driving the vehicle.

[0065] Optionally, based on the brightness change information of the first ambient brightness and the second ambient brightness in the brightness array in terms of time sequence, select an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment, including: select the first ambient brightness at the current moment and the second ambient brightness within the second set duration before the current moment from the brightness array; construct a second brightness curve including the first ambient brightness and the second ambient brightness within the second set duration before the current moment according to the time sequence; if the number of jumps of the peaks and valleys with a peak-valley difference greater than the difference threshold in the second brightness curve is greater than or equal to the number threshold, select the second ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition.

[0066] If the number of jumps of the peaks and valleys in the second brightness curve reaches the number threshold within the second set duration, and the difference between the brightness values corresponding to the peaks and valleys is greater than the difference threshold, then the second ambient brightness condition is the target ambient brightness condition at the current moment; if the number of jumps of the peaks and valleys with a peak-valley difference greater than the difference threshold in the second brightness curve is less than the number threshold, then the second ambient brightness condition is not the target ambient brightness condition at the current moment.

[0067] When obtaining the ambient brightness condition at the current moment based on the ambient brightness data corresponding to a historical moment with a relatively long time interval from the current moment, the obtained ambient brightness condition may deviate. Therefore, in order to accurately judge the ambient brightness condition at the current moment, the embodiment obtains the second ambient brightness within the second set duration before the current moment, and selects an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment according to the first ambient brightness and the second ambient brightness within the second set duration before the current moment.

[0068] It should be noted that the first ambient brightness condition is characterized by an instantaneous sharp change in ambient brightness, and the second ambient brightness condition is characterized by a frequent alternating change in ambient brightness. According to the characteristics of the first ambient brightness condition and the second ambient brightness condition, when judging the ambient brightness condition at the current moment, the first set duration is less than or equal to the second set duration.

[0069] As an example rather than a limitation, the value of the second set duration can be 3 seconds, the difference threshold can be 1000 lux, and the number threshold can be 3.

[0070] It should be noted that judging whether the target ambient brightness condition at the current moment is the first ambient brightness condition and judging whether the target ambient brightness condition at the current moment is the second ambient brightness condition can be a serial processing process or a parallel processing process.

[0071] Optionally, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array over time, select an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, including: selecting the first ambient luminance at the current moment and the second ambient luminance within the first set duration before the current moment from the luminance array, and constructing a first luminance curve including the first ambient luminance and the second ambient luminance within the first set duration before the current moment in sequence; selecting the first ambient luminance at the current moment and the second ambient luminance within the second set duration before the current moment from the luminance array, and constructing a second luminance curve including the first ambient luminance and the second ambient luminance within the second set duration before the current moment in sequence; if the first luminance curve is not monotonically decreasing or the minimum value of the first luminance curve is greater than the first luminance threshold or the first luminance curve is not monotonically increasing or the maximum value of the first luminance curve is less than the second luminance threshold, and the number of jumps of the peaks and valleys with a peak-valley difference greater than the difference threshold in the second luminance curve is less than the number threshold, then select the third ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition.

[0072] When neither the first ambient luminance condition nor the second ambient luminance condition is the target ambient luminance condition at the current moment, select the third ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition.

[0073] In another implementation:

[0074] Optionally, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array over time, select an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, including: selecting the first ambient luminance at the current moment and the second ambient luminance within the third set duration before the current moment from the luminance array; constructing a first luminance sequence including the first ambient luminance and the second ambient luminance within the third set duration before the current moment in sequence; if the ambient luminance at the minimum moment in the first luminance sequence is greater than the ambient luminance at the maximum moment and the minimum luminance value in the first luminance sequence is less than or equal to the first luminance threshold, or if the ambient luminance at the minimum moment in the first luminance sequence is less than the ambient luminance at the maximum moment and the maximum luminance value in the first luminance sequence is greater than or equal to the second luminance threshold, then select the first ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition; where the first luminance threshold is less than the second luminance threshold.

[0075] The minimum moment in the first luminance sequence can be the moment with the farthest time interval from the current moment among the respective moments corresponding to the first luminance sequence, and the maximum moment in the first luminance sequence can be the current moment.

[0076] To ensure the accuracy of the judgment, in an optional embodiment, determination conditions can be added. Specifically, if the ambient brightness at the minimum moment in the first brightness sequence is greater than the ambient brightness at the maximum moment, and the minimum brightness value in the first brightness sequence is less than or equal to the first brightness threshold, and the absolute value of the difference between the ambient brightness at the minimum moment and the ambient brightness at the maximum moment is greater than the absolute value threshold, or if the ambient brightness at the minimum moment in the first brightness sequence is less than the ambient brightness at the maximum moment, and the maximum brightness value in the first brightness sequence is greater than or equal to the second brightness threshold, and the absolute value of the difference between the ambient brightness at the minimum moment and the ambient brightness at the maximum moment is greater than the absolute value threshold, then the first ambient brightness condition is selected from multiple preset ambient brightness conditions as the target ambient brightness condition.

[0077] It should be noted that the third set duration and the first set duration have the same value.

[0078] Optionally, based on the brightness change information of the first ambient brightness and the second ambient brightness in the brightness array in terms of time sequence, an ambient brightness condition that matches the brightness change information is selected from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment, including: selecting the first ambient brightness at the current moment and the second ambient brightness within the fourth set duration before the current moment from the brightness array; constructing a second brightness sequence including the first ambient brightness and the second ambient brightness within the fourth set duration before the current moment according to the time sequence; grouping the second brightness sequence, and determining the group with the difference between the maximum value and the minimum value within the group greater than the difference threshold as the target group. If the number of target groups is greater than or equal to the number threshold, then the second ambient brightness condition is selected from multiple preset ambient brightness conditions as the target ambient brightness condition.

[0079] Optionally, the second brightness sequence is grouped based on a preset value, that is, the number of ambient brightnesses included in each group is the preset value; where the preset value is the number of ambient brightnesses collected within the duration corresponding to one alternation of ambient brightness. The obtaining method of the preset value is as follows: If the duration corresponding to one alternation of ambient brightness is directly obtained, there will be a certain deviation in the obtained duration. Therefore, the durations corresponding to n alternations of ambient brightness are obtained, and the duration corresponding to n alternations of ambient brightness is divided by n to obtain the duration corresponding to one alternation of ambient brightness. The duration corresponding to one alternation of ambient brightness is divided by the preset sampling period T to obtain the number of ambient brightnesses collected within the duration corresponding to one alternation of ambient brightness, that is, the preset value. Among them, the preset sampling period T can be understood as the sampling interval. The duration t corresponding to one alternation of ambient brightness is greater than T, and t / T represents the number of sampling data (i.e., the number of ambient brightnesses collected) obtained by sampling at the sampling interval T within the duration corresponding to one alternation of ambient brightness.

[0080] It should be noted that the fourth set duration has the same value as the second set duration, and the number threshold has the same value as the number of times threshold.

[0081] Optionally, based on the brightness change information of the first ambient brightness and the second ambient brightness in the time sequence in the brightness array, select an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment, including: selecting the first ambient brightness at the current moment and the second ambient brightness within the third set duration before the current moment from the brightness array, and constructing a first brightness sequence including the first ambient brightness and the second ambient brightness within the third set duration before the current moment according to the time sequence; selecting the first ambient brightness at the current moment and the second ambient brightness within the fourth set duration before the current moment from the brightness array, and constructing a second brightness sequence including the first ambient brightness and the second ambient brightness within the fourth set duration before the current moment according to the time sequence, grouping the second brightness sequence, and determining that the group with the difference between the maximum value and the minimum value within the group greater than the difference threshold is the target group; if the ambient brightness at the earliest moment in the first brightness sequence is not greater than the ambient brightness at the latest moment, or the minimum brightness value in the first brightness sequence is greater than the first brightness threshold, or the ambient brightness at the earliest moment in the first brightness sequence is not less than the ambient brightness at the latest moment, or the maximum brightness value in the first brightness sequence is less than the second brightness threshold, and the number of target groups is less than the number threshold, then select the third ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition.

[0082] If it is not possible to determine that the first ambient brightness condition is the target ambient brightness condition at the current moment, and it is also not possible to determine that the second ambient brightness condition is the target ambient brightness condition at the current moment, then determine that the third ambient brightness condition is the target ambient brightness condition.

[0083] Step 203, select at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data selected corresponding to the target ambient brightness condition.

[0084] Optionally, the amount of brightness data selected includes the number of brightness data selected or the duration of brightness data selected.

[0085] When the amount of selected brightness data is the number of selected brightness data, the number of selected brightness data corresponding to different ambient brightness conditions is different. The first ambient brightness condition corresponds to the first number of selected brightness data, the second ambient brightness condition corresponds to the second number of selected brightness data, and the third ambient brightness condition corresponds to the third number of selected brightness data; the first number of selected brightness data is less than the third number of selected brightness data, and the third number of selected brightness data is less than the second number of selected brightness data. By way of example and not limitation, the value of the first number of selected brightness data can be 20, the value of the second number of selected brightness data can be 45, and the value of the third number of selected brightness data can be 30.

[0086] When the amount of selected brightness data is the duration of selected brightness data, the duration of selected brightness data corresponding to different ambient brightness conditions is different. The first ambient brightness condition corresponds to the first duration of selected brightness data, the second ambient brightness condition corresponds to the second duration of selected brightness data, and the third ambient brightness condition corresponds to the third duration of selected brightness data; the first duration of selected brightness data is less than the third duration of selected brightness data, and the third duration of selected brightness data is less than the second duration of selected brightness data. By way of example and not limitation, the value of the first duration of selected brightness data can be 2000 milliseconds, the value of the second duration of selected brightness data can be 4500 milliseconds, and the value of the third duration of selected brightness data can be 3000 milliseconds.

[0087] Step 204: Calculate the brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness.

[0088] Step 205: Adjust the brightness of the display based on the brightness adjustment parameter value.

[0089] For the content in Step 204 and Step 205, refer to the relevant descriptions in Step 104 and Step 105.

[0090] This application obtains the corresponding amount of selected brightness data based on the ambient brightness condition at the current moment, and then calculates the brightness adjustment parameter value based on the amount of selected brightness data to adjust the brightness of the display; different ambient brightness conditions correspond to different amounts of selected brightness data, so this application can ensure the brightness adjustment effect of the display under various ambient brightness conditions and meet the brightness adjustment requirements of the display under various ambient brightness conditions. In addition, this application determines the ambient brightness condition at the current moment based on the brightness curve or brightness sequence, with small calculation amount and high accuracy.

[0091] Embodiment 3:

[0092] Please refer to Figure 5 , Figure 5 which shows the schematic structure of a brightness adjustment device for a display provided by this application. For the sake of convenience of description, only the parts related to the embodiments of this application are shown in the figure.

[0093] Refer to Figure 5 , the device includes a brightness acquisition module 51, a working condition determination module 52, a brightness selection module 53, a parameter calculation module 54, and a brightness adjustment module 55; among them, the specific functions of each module are as follows:

[0094] The brightness acquisition module 51 is used to acquire the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array;

[0095] The working condition determination module 52 is used to determine the target ambient brightness working condition at the current moment based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array;

[0096] The brightness selection module 53 is used to select at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data selected corresponding to the target ambient brightness working condition;

[0097] The parameter calculation module 54 is used to calculate a brightness adjustment parameter value based on the target ambient brightness and the first ambient brightness;

[0098] The brightness adjustment module 55 is used to adjust the brightness of the display based on the brightness adjustment parameter value.

[0099] Optionally, the working condition determination module 52 is specifically used for:

[0100] Based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, select an ambient brightness working condition that matches the brightness change information from multiple preset ambient brightness working conditions as the target ambient brightness working condition at the current moment;

[0101] Among them, the preset ambient brightness working conditions at least include a first ambient brightness working condition, a second ambient brightness working condition, and a third ambient brightness working condition. Among them, the first ambient brightness working condition corresponds to a first amount of brightness data selected; the second ambient brightness working condition corresponds to a second amount of brightness data selected, and the third ambient brightness working condition corresponds to a third amount of brightness data selected; the first amount of brightness data selected is less than the third amount of brightness data selected, and the third amount of brightness data selected is less than the second amount of brightness data selected.

[0102] Optionally, the working condition determination module 52 is specifically used for:

[0103] Select the first ambient brightness at the current moment and the second ambient brightness within the first set duration before the current moment from the brightness array;

[0104] Construct a first brightness curve including the first ambient brightness and the second ambient brightness within the first set duration before the current moment according to the time series;

[0105] If the first brightness curve is monotonically decreasing and the minimum value of the first brightness curve is less than or equal to the first brightness threshold, or if the first brightness curve is monotonically increasing and the maximum value of the first brightness curve is greater than or equal to the second brightness threshold, then select the first ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition; wherein, the first brightness threshold is less than the second brightness threshold.

[0106] Optionally, the condition determination module 52 is specifically configured to:

[0107] Select the first ambient brightness at the current moment and the second ambient brightness within a second set duration before the current moment from the brightness array;

[0108] Construct a second brightness curve including the first ambient brightness and the second ambient brightness within a second set duration before the current moment according to the time sequence;

[0109] If the number of jumps of the peaks and valleys whose peak-valley difference in the second brightness curve is greater than the difference threshold is greater than or equal to the number threshold, then select the second ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition.

[0110] Optionally, the condition determination module 52 is specifically configured to:

[0111] Select the first ambient brightness at the current moment and the second ambient brightness within a third set duration before the current moment from the brightness array;

[0112] Construct a first brightness sequence including the first ambient brightness and the second ambient brightness within a third set duration before the current moment according to the time sequence;

[0113] If the ambient brightness at the minimum moment in the first brightness sequence is greater than the ambient brightness at the maximum moment and the minimum brightness value in the first brightness sequence is less than or equal to the first brightness threshold, or if the ambient brightness at the minimum moment in the first brightness sequence is less than the ambient brightness at the maximum moment and the maximum brightness value in the first brightness sequence is greater than or equal to the second brightness threshold, then select the first ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition; wherein, the first brightness threshold is less than the second brightness threshold.

[0114] Optionally, the condition determination module 52 is specifically configured to:

[0115] Select the first ambient brightness at the current moment and the second ambient brightness within a fourth set duration before the current moment from the brightness array;

[0116] Construct a second brightness sequence including the first ambient brightness and the second ambient brightness within a fourth set duration before the current moment according to the time sequence;

[0117] Group the second brightness sequence, and determine that the group with the difference between the maximum value and the minimum value within the group greater than the difference threshold is the target group. If the number of target groups is greater than or equal to the number threshold, select the second ambient brightness condition as the target ambient brightness condition from multiple preset ambient brightness conditions.

[0118] Optionally, the condition determination module 52 is specifically configured to:

[0119] From the brightness array, select the first ambient brightness at the current moment and the second ambient brightness within the first set duration before the current moment, and construct a first brightness curve including the first ambient brightness and the second ambient brightness within the first set duration before the current moment according to the time sequence; from the brightness array, select the first ambient brightness at the current moment and the second ambient brightness within the second set duration before the current moment, and construct a second brightness curve including the first ambient brightness and the second ambient brightness within the second set duration before the current moment according to the time sequence;

[0120] If the first brightness curve is not monotonically decreasing, or the minimum value of the first brightness curve is greater than the first brightness threshold, or the first brightness curve is not monotonically increasing, or the maximum value of the first brightness curve is less than the second brightness threshold, and the number of jumps of the peaks and valleys with the peak-valley difference greater than the difference threshold in the second brightness curve is less than the number threshold, then select the third ambient brightness condition as the target ambient brightness condition from multiple preset ambient brightness conditions;

[0121] Or,

[0122] From the brightness array, select the first ambient brightness at the current moment and the second ambient brightness within the third set duration before the current moment, and construct a first brightness sequence including the first ambient brightness and the second ambient brightness within the third set duration before the current moment according to the time sequence; from the brightness array, select the first ambient brightness at the current moment and the second ambient brightness within the fourth set duration before the current moment, and construct a second brightness sequence including the first ambient brightness and the second ambient brightness within the fourth set duration before the current moment according to the time sequence, group the second brightness sequence, and determine that the group with the difference between the maximum value and the minimum value within the group greater than the difference threshold is the target group;

[0123] If the ambient brightness at the minimum moment in the first brightness sequence is not greater than the ambient brightness at the maximum moment, or the minimum brightness value in the first brightness sequence is greater than the first brightness threshold, or the ambient brightness at the minimum moment in the first brightness sequence is not less than the ambient brightness at the maximum moment, or the maximum brightness value in the first brightness sequence is less than the second brightness threshold, and the number of target groups is less than the number threshold, then select the third ambient brightness condition as the target ambient brightness condition from multiple preset ambient brightness conditions.

[0124] Optionally, the brightness data selection amount includes the brightness data selection quantity or the brightness data selection duration.

[0125] Optionally, the brightness selection module 53 is specifically configured to:

[0126] Select the number according to the brightness data corresponding to the target environmental brightness condition, and select the target environmental brightness from the second environmental brightness in the brightness array in reverse chronological order;

[0127] Alternatively, select the duration according to the brightness data corresponding to the target environmental brightness condition, and select the second environmental brightness within the duration of the brightness data selection before the current moment from the brightness array as the target environmental brightness.

[0128] It should be noted that for the information interaction, execution process, etc. between the above modules, since they are based on the same concept as the method embodiments of the present application, for their specific functions and the technical effects brought, please refer to the method embodiment part for details, and will not be elaborated here.

[0129] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional unit and module is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit. In addition, the specific names of each functional unit and module are only for the convenience of mutual distinction and do not limit the protection scope of the present application. The specific working process of the units and modules in the above system can refer to the corresponding process in the foregoing method embodiments and will not be elaborated here.

[0130] Embodiment 4:

[0131] Please refer to Figure 6 , Figure 6 , which shows a schematic structure of a display provided by an embodiment of the present application. The display 6 of this embodiment includes: at least one processor 60 ( Figure 6 only one is shown in the figure), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60. When the processor 60 executes the computer program 62, the steps of a brightness adjustment method for a display in the above Embodiment 1 and Embodiment 2 are implemented.

[0132] The display may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art can understand that Figure 6This is only an example of the display 6, which does not constitute a limitation on the display 6. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0133] The so-called processor 60 may be a central processing unit (CPU). This processor 60 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or this processor may also be any conventional processor, etc.

[0134] In some embodiments, the memory 61 may be an internal storage unit of the display 6, such as the hard disk or memory of the display 6. In other embodiments, the memory 61 may also be an external storage device of the display 6, such as a plug-in hard disk equipped on the display 6, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. Further, the memory 61 may also include both the internal storage unit and the external storage device of the display 6. The memory 61 is used to store an operating system, application programs, a boot loader, data, and other programs, such as the program code of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or will be output.

[0135] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above various method embodiments can be implemented.

[0136] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, to implement all or part of the processes in the above method embodiments of this application, a computer program can be used to instruct relevant hardware to complete. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can at least include: any entity or device that can carry the computer program code to a display, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disc, etc. In some jurisdictions, according to legislation and patent practice, the computer-readable medium cannot be an electrical carrier signal and a telecommunications signal.

[0137] In the above embodiments, the descriptions of the various embodiments have their own emphases. For the parts not detailed or recorded in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0138] Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.

[0139] In the embodiments provided in this application, it should be understood that the disclosed device / display and method can be implemented in other ways. For example, the device / display embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0140] The unit described as a separating component may or may not be physically separated. The component shown as a unit may or may not be a physical unit, that is, it may be located in one place or may be distributed over multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0141] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for adjusting the brightness of a display, characterized in that, Including: Obtain the first ambient brightness at the current moment and the second ambient brightness before the current moment to obtain a brightness array; Based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, determine the target ambient brightness condition at the current moment; Select at least one target ambient brightness from the second ambient brightness in the brightness array according to the amount of brightness data selected corresponding to the target ambient brightness condition; Based on the target ambient brightness and the first ambient brightness, calculate a brightness adjustment parameter value; Based on the brightness adjustment parameter value, adjust the brightness of the display; Wherein, the determining the target ambient brightness condition at the current moment based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array includes: Based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array, select an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment; Wherein, at least the first ambient brightness condition, the second ambient brightness condition and the third ambient brightness condition are included in the preset ambient brightness conditions. Among them, the characteristic of the first ambient brightness condition is that the ambient brightness changes sharply instantaneously, the characteristic of the second ambient brightness condition is that the ambient brightness changes frequently alternately, and the characteristic of the third ambient brightness condition is that the ambient brightness remains unchanged or changes slowly. The first ambient brightness condition corresponds to a first amount of brightness data selected; the second ambient brightness condition corresponds to a second amount of brightness data selected, and the third ambient brightness condition corresponds to a third amount of brightness data selected; the first amount of brightness data selected is less than the third amount of brightness data selected, and the third amount of brightness data selected is less than the second amount of brightness data selected.

2. The method according to claim 1, wherein The selecting an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment based on the brightness change information of the first ambient brightness and the second ambient brightness in the time series in the brightness array includes: Select the first ambient brightness at the current moment and the second ambient brightness within the first set duration before the current moment from the brightness array; Construct a first brightness curve including the first ambient brightness and the second ambient brightness within the first set duration before the current moment according to the time series; If the first brightness curve is monotonically decreasing and the minimum value of the first brightness curve is less than or equal to a first brightness threshold, or if the first brightness curve is monotonically increasing and the maximum value of the first brightness curve is greater than or equal to a second brightness threshold, then select the first ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition; wherein, the first brightness threshold is less than the second brightness threshold.

3. The method according to claim 1, characterized in that, Selecting, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array over time, an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, includes: Selecting, from the luminance array, the first ambient luminance at the current moment and the second ambient luminance within a second preset duration before the current moment; Constructing, in chronological order, a second luminance curve including the first ambient luminance and the second ambient luminance within a second preset duration before the current moment; If the number of jumps of the peaks and valleys with a peak-valley difference greater than the difference threshold in the second luminance curve is greater than or equal to the number threshold, selecting the second ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition.

4. The method according to claim 1, characterized in that Selecting, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array over time, an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, includes: Selecting, from the luminance array, the first ambient luminance at the current moment and the second ambient luminance within a third preset duration before the current moment; Constructing, in chronological order, a first luminance sequence including the first ambient luminance and the second ambient luminance within a third preset duration before the current moment; If the ambient luminance at the earliest moment in the first luminance sequence is greater than the ambient luminance at the latest moment and the minimum luminance value in the first luminance sequence is less than or equal to the first luminance threshold, or if the ambient luminance at the earliest moment in the first luminance sequence is less than the ambient luminance at the latest moment and the maximum luminance value in the first luminance sequence is greater than or equal to the second luminance threshold, selecting the first ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition; wherein, the first luminance threshold is less than the second luminance threshold.

5. The method according to claim 1, wherein Selecting, based on the luminance change information of the first ambient luminance and the second ambient luminance in the luminance array over time, an ambient luminance condition that matches the luminance change information from multiple preset ambient luminance conditions as the target ambient luminance condition at the current moment, includes: Selecting, from the luminance array, the first ambient luminance at the current moment and the second ambient luminance within a fourth preset duration before the current moment; Constructing, in chronological order, a second luminance sequence including the first ambient luminance and the second ambient luminance within a fourth preset duration before the current moment; Grouping the second luminance sequence, determining the groups with a difference between the maximum value and the minimum value within the group greater than the difference threshold as the target groups, and if the number of target groups is greater than or equal to the number threshold, selecting the second ambient luminance condition from multiple preset ambient luminance conditions as the target ambient luminance condition.

6. The method according to claim 1, wherein Based on the brightness change information of the first ambient brightness and the second ambient brightness in the temporal sequence in the brightness array, selecting an ambient brightness condition that matches the brightness change information from multiple preset ambient brightness conditions as the target ambient brightness condition at the current moment, including: Selecting the first ambient brightness at the current moment and the second ambient brightness within the first set duration before the current moment from the brightness array, and constructing a first brightness curve including the first ambient brightness and the second ambient brightness within the first set duration before the current moment in temporal sequence; selecting the first ambient brightness at the current moment and the second ambient brightness within the second set duration before the current moment from the brightness array, and constructing a second brightness curve including the first ambient brightness and the second ambient brightness within the second set duration before the current moment in temporal sequence; If the first brightness curve is not monotonically decreasing, or the minimum value of the first brightness curve is greater than the first brightness threshold, or the first brightness curve is not monotonically increasing, or the maximum value of the first brightness curve is less than the second brightness threshold, and the number of jumps of the peak-valley with a peak-valley difference greater than the difference threshold in the second brightness curve is less than the number threshold, then selecting the third ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition; Or, Selecting the first ambient brightness at the current moment and the second ambient brightness within the third set duration before the current moment from the brightness array, and constructing a first brightness sequence including the first ambient brightness and the second ambient brightness within the third set duration before the current moment in temporal sequence; selecting the first ambient brightness at the current moment and the second ambient brightness within the fourth set duration before the current moment from the brightness array, and constructing a second brightness sequence including the first ambient brightness and the second ambient brightness within the fourth set duration before the current moment in temporal sequence, grouping the second brightness sequence, and determining the group with a difference between the maximum value and the minimum value within the group greater than the difference threshold as the target group; If the ambient brightness at the minimum moment in the first brightness sequence is not greater than the ambient brightness at the maximum moment, or the minimum brightness value in the first brightness sequence is greater than the first brightness threshold, or the ambient brightness at the minimum moment in the first brightness sequence is not less than the ambient brightness at the maximum moment, or the maximum brightness value in the first brightness sequence is less than the second brightness threshold, and the number of target groups is less than the number threshold, then selecting the third ambient brightness condition from multiple preset ambient brightness conditions as the target ambient brightness condition.

7. The method according to claim 1, wherein The brightness data selection amount includes the brightness data selection quantity or the brightness data selection duration; Selecting at least one target ambient brightness from the second ambient brightness in the brightness array according to the brightness data selection amount corresponding to the target ambient brightness condition, including: Select the quantity according to the luminance data corresponding to the target ambient luminance condition, and select the target ambient luminance from the second ambient luminances in the luminance array in reverse chronological order; Alternatively, select the duration according to the luminance data corresponding to the target ambient luminance condition, and select the second ambient luminance within the luminance data selection duration before the current moment from the luminance array as the target ambient luminance.

8. A display device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • HUD brightness automatic regulation device and method

    CN107102442A

  • Screen brightness control method

    CN111179867A