Method, device and equipment for LED screen adaptive adjustment according to ambient brightness change
By acquiring the ambient brightness to adjust the gamma curve and adjusting the brightness and contrast, the problem of poor display effect of LED screen in environments with changing brightness was solved, improving the image clarity and reducing power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
- Filing Date
- 2023-06-30
- Publication Date
- 2026-05-26
AI Technical Summary
LED screens do not perform well under varying ambient brightness conditions, especially in outdoor environments where there are significant differences in brightness between day and night, making it difficult to maintain a good display effect.
By acquiring ambient brightness, adjusting the gamma curve to match the target brightness of the screen, and adjusting brightness and contrast to ensure that the brightness of the low gray area is reduced and the brightness of the high gray area is increased, the adjusted gamma curve is generated by multi-segment function fitting or quadratic transformation curve iteration to achieve adaptive adjustment of the LED screen.
It improves the contrast of the LED screen, ensures clear image display, reduces image grayscale loss, and lowers screen power consumption.
Smart Images

Figure CN116798342B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display control technology, and in particular to a method, apparatus and device for adaptive adjustment of an LED screen according to changes in ambient brightness. Background Technology
[0002] An LED display screen (or LED screen for short) is a flat panel display composed of small LED module panels used to display various information such as text, images, and videos.
[0003] Changes in the brightness of the environment in which an LED screen is located will affect the display effect of the LED screen to varying degrees.
[0004] For example, for LED screens installed outdoors, the ambient brightness varies greatly from day to night, which can significantly affect the display effect of the LED screen.
[0005] Ensuring that LED screens maintain good display performance under varying ambient brightness conditions has become a pressing technical problem that needs to be solved. Summary of the Invention
[0006] In view of this, this application provides a method, apparatus, and device for adaptive adjustment of an LED screen according to changes in ambient brightness.
[0007] Specifically, this application is implemented through the following technical solution:
[0008] According to a first aspect of the embodiments of this application, a method for adaptively adjusting an LED screen according to changes in ambient brightness is provided, comprising:
[0009] Obtain ambient brightness;
[0010] Based on the ambient brightness, determine the target brightness of the screen that matches the ambient brightness, and set the brightness of the LED screen according to the target brightness.
[0011] Based on the ambient brightness, the conventional gamma curve is adjusted to obtain the adjusted gamma curve. In the adjusted gamma curve, the overall brightness of the low gray portion is lower than that of the conventional gamma curve, and the overall brightness of the high gray portion is higher than that of the conventional gamma curve. The low gray portion is the part with a gray level lower than a preset gray level threshold, and the high gray portion is the part with a gray level higher than the preset gray level threshold.
[0012] Based on the adjusted gamma curve, the contrast of the LED screen after the brightness setting is adjusted.
[0013] According to a second aspect of the embodiments of this application, an adaptive adjustment device for an LED screen as ambient brightness changes is provided, comprising:
[0014] Acquisition unit, used to acquire ambient brightness;
[0015] The determining unit is used to determine a target screen brightness that matches the ambient brightness based on the ambient brightness.
[0016] The setting unit is used to set the brightness of the LED screen according to the target brightness of the screen;
[0017] An adjustment unit is used to adjust the conventional gamma curve according to the ambient brightness to obtain an adjusted gamma curve; wherein, the overall brightness of the low gray portion of the adjusted gamma curve is lower than the overall brightness of the low gray portion of the conventional gamma curve, and the overall brightness of the high gray portion of the adjusted gamma curve is higher than the overall brightness of the high gray portion of the conventional gamma curve, wherein the low gray portion is the portion with a gray level lower than a preset gray level threshold, and the high gray portion is the portion with a gray level higher than the preset gray level threshold;
[0018] The control unit is used to adjust the contrast of the LED screen after the brightness is set, based on the adjusted gamma curve.
[0019] According to a third aspect of the embodiments of this application, an electronic device is provided, including a processor and a memory, the memory storing machine-executable instructions executable by the processor, the processor being configured to execute the machine-executable instructions to implement the method provided in the first aspect.
[0020] The LED screen adaptive brightness adjustment method of this application embodiment obtains the ambient brightness, determines the target brightness of the screen matching the ambient brightness, and sets the brightness of the LED screen according to the target brightness, thereby achieving adaptive adjustment of the LED screen brightness as the ambient brightness changes. Furthermore, the conventional gamma curve can be adjusted according to the ambient brightness to obtain an adjusted gamma curve. Based on the adjusted gamma curve, the contrast of the LED screen is adjusted. Since the overall brightness of the low gray portion in the adjusted gamma curve is lower than that of the conventional gamma curve, and the overall brightness of the high gray portion in the adjusted gamma curve is higher than that of the conventional gamma curve, the contrast of the LED screen is effectively improved, ensuring clear image display. Improving image quality by adjusting the gamma curve contrast effectively avoids the loss of image grayscale levels compared to adjusting image grayscale, and reduces screen power consumption compared to improving overall image brightness. Attached Figure Description
[0021] Figure 1 This is a flowchart illustrating an exemplary embodiment of the present application of a method for adaptive adjustment of an LED screen to changes in ambient brightness.
[0022] Figure 2 This is a schematic diagram illustrating gamma curves before and after adjustment, as shown in an exemplary embodiment of this application.
[0023] Figure 3 A schematic diagram of a screen adaptive adjustment environment architecture is shown as an exemplary embodiment of this application;
[0024] Figure 4 This is a schematic diagram illustrating a screen adaptive adjustment process as shown in an exemplary embodiment of this application;
[0025] Figure 5 This is a schematic diagram illustrating the structure of an LED screen adaptive adjustment device that adjusts to changes in ambient brightness, as shown in an exemplary embodiment of this application.
[0026] Figure 6 This is a schematic diagram illustrating the structure of another LED screen adaptive adjustment device that changes with ambient brightness, as shown in an exemplary embodiment of this application.
[0027] Figure 7 This is a schematic diagram of the hardware structure of an electronic device as illustrated in an exemplary embodiment of this application. Detailed Implementation
[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0029] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0030] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, some technical terms involved in the embodiments of this application will be explained below.
[0031] LED controller: A device that detects the working status of an LED display screen and configures the display screen.
[0032] Gamma curve: The curve that maps the 256 gray levels of an image to the screen brightness.
[0033] Conventional Gamma curve:
[0034] M = a * N r
[0035] Where M represents the gamma value, N represents the gray level, a represents the conventional coefficient, and r represents the gamma coefficient.
[0036] In the process of adjusting the screen brightness according to the Gamma curve, the maximum gamma value in the Gamma curve (the gamma value corresponding to the maximum gray level) corresponds to the current maximum brightness of the screen. Based on this, the mapping ratio between the gamma value and the screen brightness can be determined. Then, the screen brightness can be adjusted according to the gamma value corresponding to each gray level and the mapping ratio.
[0037] For example, assuming the maximum gamma value in the gamma curve is Gm and the current maximum brightness of the screen is Lm, the mapping ratio between the gamma value and the screen brightness is Gm / Lm. Then, for any gray level, the corresponding gamma value Gi, the corresponding screen brightness Li = Gi * Gm / Lm.
[0038] Minimum gamma step size: The minimum difference between the gamma values of adjacent gray levels.
[0039] Grayscale brightness: The gamma value corresponding to the smallest grayscale with brightness on the screen. For example, assuming the smallest grayscale with brightness is grayscale 3, then the areas corresponding to grayscale 1 and grayscale 2 on the screen are black (the brightness can be considered to be 0, allowing for tolerable errors, that is, allowing for extremely small brightness values, such as 0.2 nits).
[0040] To make the above-mentioned objectives, features and advantages of the embodiments of this application more apparent and understandable, the technical solutions of the embodiments of this application will be further described in detail below with reference to the accompanying drawings.
[0041] It should be noted that the sequence number of each step in the embodiments of this application does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0042] Please see Figure 1 This is a flowchart illustrating a method for adaptive adjustment of an LED screen to changes in ambient brightness, provided in an embodiment of this application. This method can be applied to an LED controller, such as... Figure 1 As shown, the method for adaptively adjusting the LED screen to changes in ambient brightness may include the following steps:
[0043] Step S100: Obtain ambient brightness.
[0044] In this embodiment, a light sensor can be used to obtain the ambient brightness (which can be denoted as L). The light sensor can then send the obtained light value (i.e., ambient brightness) to the LED controller.
[0045] For example, a light sensor can be mounted on the screen body of an LED screen.
[0046] Step S110: Determine the target brightness of the screen that matches the ambient brightness based on the ambient brightness, and set the brightness of the LED screen according to the target brightness.
[0047] In this embodiment, a target screen brightness matching the ambient brightness can be determined based on the obtained ambient brightness, and the LED screen brightness can be set according to the determined target screen brightness. For example, the current maximum brightness of the LED screen can be set as the target screen brightness.
[0048] Step S120: Adjust the conventional gamma curve according to the ambient brightness to obtain the adjusted gamma curve. The adjusted gamma curve has the same start and end points as the conventional gamma curve. The overall brightness of the low gray part in the adjusted gamma curve is lower than that of the low gray part in the conventional gamma curve. The overall brightness of the high gray part in the adjusted gamma curve is higher than that of the high gray part in the conventional gamma curve. The low gray part is the part with a gray level lower than the preset gray level threshold, and the high gray part is the part with a gray level higher than the preset gray level threshold.
[0049] In this embodiment of the application, in order to improve the contrast of the LED screen, ensure clear image display, and reduce image grayscale loss, the conventional gamma curve can be adjusted according to the ambient brightness, and the contrast of the LED screen can be adjusted according to the adjusted gamma curve.
[0050] For example, the adjusted gamma curve has the same start and end points as the regular gamma curve.
[0051] For example, in order to more effectively improve the contrast of an LED screen, the overall brightness of the low gray portion in the adjusted gamma curve is lower than that of the low gray portion in the conventional gamma curve, while the overall brightness of the high gray portion in the adjusted gamma curve is higher than that of the high gray portion in the conventional gamma curve.
[0052] The low gray portion is the part whose gray level is lower than the preset gray level threshold (which can be set according to actual needs), and the high gray portion is the part whose gray level is higher than the preset gray level threshold.
[0053] For example, the adjusted gamma curve can be generated by using multi-segment function fitting, quadratic transformation curve iteration, or other methods.
[0054] Step S130: Adjust the contrast of the LED screen after the brightness is set according to the adjusted gamma curve.
[0055] In this embodiment of the application, the contrast of the LED screen whose brightness has been set in the manner described in step S110 can be adjusted according to the adjusted gamma curve.
[0056] For example, after obtaining the adjusted gamma curve in the above manner, the gamma value corresponding to each gray level can be determined separately, a gamma table can be generated, and the generated gamma table can be sent to the LED screen. The LED screen can then determine the screen brightness corresponding to each gray level based on the gamma table and the current maximum brightness of the screen. Furthermore, the brightness of the LED screen can be adjusted according to the brightness corresponding to each gray level, thereby achieving contrast adjustment of the LED screen.
[0057] It can be seen that, in Figure 1 In the illustrated method, the ambient brightness is acquired, and a target screen brightness matching the ambient brightness is determined. The LED screen brightness is then set according to this target brightness, enabling adaptive adjustment of the LED screen brightness as the ambient brightness changes. Furthermore, the standard gamma curve can be adjusted based on the ambient brightness to obtain a modified gamma curve. The contrast of the LED screen after brightness setting is then adjusted based on this modified gamma curve. Since the overall brightness of the low gray portion in the modified gamma curve is lower than that of the standard gamma curve, and the overall brightness of the high gray portion is higher than that of the standard gamma curve, the contrast of the LED screen is effectively improved, ensuring clear image display. Improving image quality by adjusting the gamma curve contrast, compared to adjusting image grayscale, effectively avoids the loss of image grayscale levels. Compared to adjusting the overall image brightness, it reduces screen power consumption.
[0058] In some embodiments, determining the target screen brightness that matches the ambient brightness based on the ambient brightness may include:
[0059] Based on the ambient brightness, the target screen brightness that matches the ambient brightness is determined by querying a mapping table; the mapping table records the mapping relationship between the ambient brightness and the target screen brightness.
[0060] For example, in order to improve the efficiency of determining the target brightness of the screen, the mapping relationship between the ambient brightness and the target brightness of the screen can be determined in advance, and the mapping relationship can be recorded in a mapping table and stored.
[0061] Once the ambient brightness is obtained, the target screen brightness that matches the current ambient brightness can be determined by querying a mapping table.
[0062] In other embodiments, determining the target screen brightness that matches the ambient brightness based on the ambient brightness may include:
[0063] Based on the ambient brightness, a conversion function is used to determine the target screen brightness that matches the ambient brightness; the conversion function is used to convert between the ambient brightness and the target screen brightness.
[0064] For example, in order to reduce the amount of data that needs to be stored, a conversion function between ambient brightness and target screen brightness can be predetermined and stored.
[0065] Once the ambient brightness is obtained, a conversion function can be used to determine the target screen brightness that matches the ambient brightness.
[0066] It should be noted that, in this embodiment of the application, in order to avoid the LED screen being too bright or too dim, the maximum brightness and minimum brightness of the screen can be preset. When the target brightness of the screen is determined in the above manner, the target brightness of the screen can be compared with the maximum brightness and minimum brightness of the screen. If the target brightness of the screen exceeds the maximum brightness of the screen, the maximum brightness of the screen is taken as the target brightness of the screen; if the target brightness of the screen is lower than the minimum brightness of the screen, the minimum brightness of the screen is taken as the target brightness of the screen.
[0067] In some embodiments, adjusting the conventional gamma curve based on ambient light to obtain an adjusted gamma curve includes:
[0068] When the ambient brightness is inconsistent with the preset ambient brightness, the conventional gamma curve is adjusted according to the ambient brightness to obtain the adjusted gamma curve.
[0069] The LED screen adaptive adjustment method for changes in ambient brightness provided in this application embodiment may further include:
[0070] When the ambient brightness is the same as the preset ambient brightness, the contrast of the LED screen is adjusted according to the conventional gamma curve.
[0071] For example, considering that a conventional gamma curve can ensure the display effect of an LED screen well under normal ambient brightness, it is not necessary to adjust the gamma curve under normal ambient brightness.
[0072] For example, the above-mentioned normal ambient brightness can be set according to the actual scenario, and its value can be an empirical value or a range of values.
[0073] For example, normal ambient light can be 200 lux (lux, a unit of measurement for irradiance), or (190, 210) lux.
[0074] Accordingly, if the obtained ambient brightness differs from the preset ambient brightness (corresponding to the normal ambient brightness mentioned above), the gamma curve can be adjusted in the manner described in the above embodiments.
[0075] The discrepancy between the obtained ambient brightness and the preset ambient brightness may include a difference between the values of the ambient brightness and the preset ambient brightness, or the obtained ambient brightness value not being within the range of the preset ambient brightness value.
[0076] If the ambient brightness obtained is consistent with the preset ambient brightness, there is no need to adjust the gamma curve. Instead, the contrast of the LED screen can be adjusted according to the conventional gamma curve.
[0077] In one example, the larger the absolute value of the difference between the ambient brightness and the preset ambient brightness, the lower the overall brightness of the low gray portion and the higher the overall brightness of the high gray portion in the adjusted gamma curve.
[0078] For example, in order to ensure that the screen contrast remains high and the picture is clear even in bright or dark ambient light, the larger the absolute value of the difference between the ambient brightness and the preset ambient brightness, the lower the overall brightness of the low gray part and the higher the overall brightness of the high gray part in the adjusted gamma curve.
[0079] As an example, the above adjustment of the conventional gamma curve based on ambient light results in an adjusted gamma curve, including:
[0080] Based on the ambient brightness, a multi-segment function fitting method was used to adjust the conventional gamma curve to obtain the adjusted gamma curve;
[0081] The adjusted gamma curves include curve ABC and curve CDE.
[0082] Points A and E are the starting and ending points of the conventional gamma curve, respectively. Point C is the boundary between the low and high gray areas. The x-coordinate of point B is the first gray level value, and the x-coordinate of point D is the second gray level value, which is greater than the first gray level value. The y-coordinates of points B and D are... y and D y They are determined using the following formulas respectively:
[0083] B y=B0-s1*|L-L0|
[0084] D y =D0+s2*|L-L0|
[0085] Wherein, B0 is the value of the conventional gamma curve when the horizontal axis is the first gray level value; D0 is the value of the conventional gamma curve when the horizontal axis is the second gray level value; s1 and s2 are preset constants, and L0 is the preset ambient brightness.
[0086] For example, taking the adjusted gamma curve obtained by using a multi-segment function fitting method as an example, assume that the adjusted gamma curve includes two univariate quadratic curves, one of which corresponds to the low gray part and the other corresponds to the high gray part.
[0087] That is, the coordinates of the known starting point (denoted as point A) and the dividing point (the dividing point between the low gray part and the high gray part, denoted as point C) of the low gray part, and the coordinates of the known ending point (denoted as point E) and point C of the high gray part.
[0088] To calculate a quadratic equation, the coordinates of at least three points on the curve must be known. Therefore, it is necessary to determine the coordinates of one point on each of the low-gray and high-gray sections of the curve.
[0089] For the low-gray area, one gray level (which can be called the first gray level) can be selected in the low-gray area as the x-coordinate of the target point (which can be denoted as point B), and the y-coordinate of point B can be determined using the following formula:
[0090] B y =B0-s1*|L-L0|
[0091] For the high gray area, one gray level (which can be called the second gray level) can be selected in the low gray area as the x-coordinate of the target point (which can be denoted as point D), and the y-coordinate of point D can be determined using the following formula:
[0092] D y =D0+s2*|L-L0|
[0093] Wherein, B0 is the value of the conventional gamma curve when the horizontal axis is the first gray level value; D0 is the value of the conventional gamma curve when the horizontal axis is the second gray level value; s1 and s2 are preset constants, and L0 is the preset ambient brightness.
[0094] Given the coordinates of points B and D, the equations of curves ABC and CDE can be determined, and then the adjusted gamma curve can be obtained by fitting the curves.
[0095] The gamma curve obtained by fitting in the above manner (i.e., the schematic diagram of the adjusted gamma curve) can be seen as follows: Figure 2 (As shown).
[0096] In some embodiments, the above-mentioned contrast adjustment of the LED screen after brightness setting based on the adjusted gamma curve may include:
[0097] When the ambient brightness is higher than the preset brightness threshold, the updated minimum gamma step size and the updated dust emission brightness are determined based on the ambient brightness; both the updated minimum gamma step size and the updated dust emission brightness are positively correlated with the ambient brightness.
[0098] Based on the updated minimum gamma step size and the updated grayscale brightness, the gamma table corresponding to the adjusted gamma curve is updated to generate an updated gamma table.
[0099] The brightness of the LED screen is adjusted based on the updated gamma meter.
[0100] For example, to avoid the low gray areas having too low clarity when the ambient brightness is high, the minimum gamma step size and gray brightness can be updated according to the ambient brightness to avoid the low gray areas having too low brightness.
[0101] Accordingly, if the ambient brightness is higher than the preset brightness threshold, the updated minimum step size of gamma and the updated grayscale brightness can be determined based on the ambient brightness.
[0102] The preset brightness threshold can be set according to the actual scenario. Its value can be an empirical value, and it is usually greater than the preset ambient brightness value (when the preset ambient brightness value is a single value) or greater than the upper limit of the preset ambient brightness value range (when the preset ambient brightness value is a value range). For example, the preset brightness threshold can be 300 lux.
[0103] For example, both the updated minimum gamma step size and the updated grayscale brightness are positively correlated with the ambient brightness. That is, the brighter the ambient brightness, the larger both the updated minimum gamma step size and the updated grayscale brightness.
[0104] In one example, the updated minimum gamma step size and the updated grayscale brightness are determined based on the ambient brightness using the following formula:
[0105] O = s3 * L
[0106] P = s4 * L
[0107] Where O is the updated minimum gamma step size, P is the updated grayscale brightness, L is the ambient brightness, and s3 and s4 are preset constants.
[0108] For example, given the updated minimum gamma step size and the updated grayscale brightness, the gamma table corresponding to the adjusted gamma curve can be updated based on the updated minimum gamma step size and the updated grayscale brightness to generate an updated gamma table. Then, the brightness of the LED screen can be adjusted based on the updated gamma table to optimize the contrast and clarity of the LED screen.
[0109] For example, the brightness of the LED screen can be adjusted according to the updated gamma table, and the gamma value corresponding to each gray level can be adjusted according to the updated minimum gamma step size, so as to ensure that the difference of gamma value between adjacent gray levels of the screen is greater than or equal to the minimum gamma step size.
[0110] For example, the gamma value corresponding to the smallest gray level with brightness on the screen can be adjusted to the updated gray level brightness. Then, in order of increasing gray level, the gamma values corresponding to each gray level can be traversed to determine the difference in gamma values between adjacent gray levels. If the difference in gamma values is less than the updated minimum gamma step size, the brightness difference between adjacent gray levels can be adjusted to the updated minimum gamma step size.
[0111] Assuming grayscale 1 is the smallest grayscale with brightness, and grayscale 1 and grayscale 2 are adjacent grayscales, the gamma value corresponding to grayscale 1 can be set to the updated starting brightness. If the difference in gamma values between grayscale 1 and grayscale 2 is less than the updated minimum gamma step size, the gamma value corresponding to grayscale 2 is increased so that the difference in gamma values between grayscale 1 and grayscale 2 is equal to the updated minimum gamma step size. If the difference in gamma values between grayscale 1 and grayscale 2 is greater than or equal to the updated minimum gamma step size, the gamma value corresponding to grayscale 2 can be kept unchanged.
[0112] To enable those skilled in the art to better understand the technical solutions provided in the embodiments of this application, the technical solutions provided in the embodiments of this application are described below with reference to specific examples.
[0113] In this embodiment, ambient brightness is sensed by a light sensor, and the screen brightness, Gamma contrast curve, minimum Gamma step size, and grayscale brightness are adjusted to ensure no loss of grayscale during the adjustment process. Furthermore, while maintaining image contrast, the low-grayscale image is displayed more clearly. The implementation architecture can be illustrated as follows: Figure 3 As shown.
[0114] The specific implementation process is explained below.
[0115] Step 1: Obtain the ambient brightness L using a light sensor.
[0116] For example, a light sensor can be mounted on the screen to send the acquired light value (i.e., ambient brightness) to the LED controller.
[0117] Step 2: The LED controller determines the target screen brightness Y by querying a mapping table (which records the mapping relationship between ambient brightness and target screen brightness) based on the acquired light sensing value L, or by calculating the target screen brightness Y according to Y = k * L (i.e., the above conversion function, where k is the proportionality coefficient).
[0118] For example, if the target brightness of the screen is greater than the set maximum brightness Ymax, the target brightness of the screen is set to Y = Ymax; if the target brightness of the screen is less than the set minimum brightness Ymin, the target brightness of the screen is set to Y = Ymin.
[0119] The LED controller sets the current maximum brightness of the LED screen to Y.
[0120] Step 3: After adjusting the screen brightness, adjust the screen contrast.
[0121] For example, screen contrast can be adjusted by changing the screen's gamma curve. The gamma curves before and after adjustment can be as follows: Figure 2 As shown.
[0122] The adjusted gamma curve, compared to the original gamma curve, shows that the overall brightness of the low gray area is lower than before, while the overall brightness of the high gray area is higher than before.
[0123] The original gamma curve formula is as follows:
[0124] M = a * N r
[0125] Where M represents the gamma value, N represents the gray level, a represents the conventional coefficient, and r represents the gamma coefficient.
[0126] For example, there are multiple ways to adjust the Gamma curve, such as by fitting a multi-segment function or iterating a quadratic transformation curve.
[0127] The following explanation uses the fitting of two univariate quadratic curves to the Gamma curve as an example.
[0128] like Figure 2 As shown, A is the starting point, C is a fixed point, E is the ending point, and the vertical axis of BD is determined by the ambient brightness (the horizontal axis of BD is known). The brighter or darker the environment, the lower the vertical axis of B and the higher the vertical axis of D, that is, the stronger the contrast of the Gamma curve.
[0129] Determine the ordinate of point B using the following formula:
[0130] B y =B0-s1*|L-L0|
[0131] The ordinate of point D can be determined using the following formula:
[0132] D y =D0+s2*|L-L0|
[0133] Wherein, B0 is the x-coordinate of point B on the conventional gamma curve (i.e., the y-coordinate), D0 is the x-coordinate of point D on the conventional gamma curve (i.e., the y-coordinate), s1 and s2 are preset constants, and L0 is the preset ambient brightness.
[0134] Based on the coordinates of points A, B, C, D, and E, we can consider ABC and CDE as two linear curves in two variables. Using the formula for solving equations with the coordinates of the three points known, we can obtain the function curves for ABC and CDE as follows:
[0135] y ABC =j1*x 2 +j2*x+j3
[0136] y CDE =k1*x 2 +k2*x+k3
[0137] By substituting the coordinates of the known points above, we can obtain the values of j1, j2, and j3, as well as the values of k1, k2, and k3.
[0138] The Gamma value corresponding to each gray level can be calculated using these two formulas, thus achieving contrast adjustment.
[0139] Step 4: After adjusting the brightness and contrast as described above, you can further adjust the minimum Gamma step size and grayscale brightness based on the ambient brightness. The brighter the environment, the larger the minimum Gamma step size O and the larger the grayscale brightness P, thus making the low-grayscale display clearer. The specific formula is as follows:
[0140] O = s3 * L
[0141] P = s4 * L
[0142] The Gamma calculation is readjusted based on the updated minimum Gamma step size and the updated grayscale brightness to complete the full grayscale Gamma value calculation and obtain the final Gamma table.
[0143] Step 5: The LED controller sends the final Gamma value to the LED screen, thus completing the screen adjustment and enabling the screen display to better adapt to changes in ambient brightness, thereby improving image quality.
[0144] For example, the flowchart of the above process can be as follows: Figure 4 As shown.
[0145] The method provided in this application has been described above. The apparatus provided in this application is described below:
[0146] Please see Figure 5 This is a schematic diagram of the structure of an LED screen adaptive adjustment device that adapts to changes in ambient brightness, as provided in an embodiment of this application. Figure 5 As shown, the adaptive adjustment device for the LED screen to change with ambient brightness may include:
[0147] Acquisition unit 510 is used to acquire ambient brightness;
[0148] The determining unit 520 is used to determine a target screen brightness that matches the ambient brightness based on the ambient brightness.
[0149] Setting unit 530 is used to set the brightness of the LED screen according to the target brightness of the screen;
[0150] The adjustment unit 540 is used to adjust the conventional gamma curve according to the ambient brightness to obtain the adjusted gamma curve; wherein, the overall brightness of the low gray portion of the adjusted gamma curve is lower than the overall brightness of the low gray portion of the conventional gamma curve, and the overall brightness of the high gray portion of the adjusted gamma curve is higher than the overall brightness of the high gray portion of the conventional gamma curve, wherein the low gray portion is the part with a gray level lower than a preset gray level threshold, and the high gray portion is the part with a gray level higher than the preset gray level threshold;
[0151] The control unit 550 is used to adjust the contrast of the LED screen after the brightness is set, based on the adjusted gamma curve.
[0152] In some embodiments, the determining unit 520 determines a target screen brightness that matches the ambient brightness based on the ambient brightness, including:
[0153] Based on the ambient brightness, the target screen brightness that matches the ambient brightness is determined by querying a mapping table; wherein, the mapping table records the mapping relationship between ambient brightness and target screen brightness;
[0154] or,
[0155] Based on the ambient brightness, a conversion function is used to determine the target screen brightness that matches the ambient brightness; wherein, the conversion function is used to convert between the ambient brightness and the target screen brightness.
[0156] In some embodiments, the adjustment unit 540 adjusts the conventional gamma curve according to the ambient brightness to obtain an adjusted gamma curve, including:
[0157] When the ambient brightness is inconsistent with the preset ambient brightness, the conventional gamma curve is adjusted to obtain the adjusted gamma curve.
[0158] In some embodiments, the greater the absolute value of the difference between the ambient brightness and the preset ambient brightness, the lower the overall brightness of the low gray portion and the higher the overall brightness of the high gray portion in the adjusted gamma curve.
[0159] In some embodiments, the adjusted gamma curve has the same start and end points as the conventional gamma curve;
[0160] The adjustment unit adjusts the conventional gamma curve based on the ambient brightness to obtain an adjusted gamma curve, including:
[0161] Based on the ambient brightness, a multi-segment function fitting method is used to adjust the conventional gamma curve to obtain the adjusted gamma curve;
[0162] The adjusted gamma curve includes curve ABC and curve CDE;
[0163] Points A and E are the starting and ending points of the conventional gamma curve, respectively. Point C is the boundary between the low gray and high gray portions. The x-coordinate of point B is the first gray level value, and the x-coordinate of point D is the second gray level value, where the second gray level value is greater than the first gray level value. The y-coordinates of points B and D are... y and D y They are determined using the following formulas respectively:
[0164] B y =B0-s1*|L-L0|
[0165] D y =D0+s2*|L-L0|
[0166] Wherein, B0 is the value of the conventional gamma curve when the horizontal axis is the first gray level value; D0 is the value of the conventional gamma curve when the horizontal axis is the second gray level value; s1 and s2 are preset constants, and L0 is the preset ambient brightness.
[0167] In some embodiments, the determining unit is further configured to determine, based on the ambient brightness, an updated minimum gamma step size and an updated grayscale brightness when the ambient brightness is higher than a preset brightness threshold; wherein the updated minimum gamma step size and the updated grayscale brightness are both positively correlated with the ambient brightness;
[0168] like Figure 6 As shown, the device further includes:
[0169] The generation unit 560 is used to update the gamma table corresponding to the adjusted gamma curve based on the updated minimum gamma step size and the updated grayscale brightness, and generate an updated gamma table.
[0170] The control unit 550 is specifically used to adjust the brightness of the LED screen after the brightness setting based on the updated gamma meter.
[0171] In some embodiments, the updated minimum gamma step size and the updated grayscale brightness are determined based on the ambient brightness using the following formula:
[0172] O = s3 * L
[0173] P = s4 * L
[0174] Where O is the updated minimum gamma step size, P is the updated grayscale brightness, L is the ambient brightness, and s3 and s4 are preset constants.
[0175] This application also provides an electronic device, including a processor and a memory, wherein the memory is used to store computer programs; the processor is used to execute the program stored in the memory to implement the LED screen adaptive adjustment method described above as changing ambient brightness.
[0176] Please see Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. The electronic device may include a processor 701 and a memory 702 storing machine-executable instructions. The processor 701 and the memory 702 can communicate via a system bus 703. Furthermore, by reading and executing the machine-executable instructions in the memory 702 corresponding to the logic for adaptive adjustment of the LED screen according to changes in ambient brightness, the processor 701 can execute the LED screen adaptive adjustment method described above.
[0177] The memory 702 mentioned in this document can be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, etc. For example, machine-readable storage media can be: RAM (Random Access Memory), volatile memory, non-volatile memory, flash memory, storage drives (such as hard disk drives), solid-state drives, any type of storage disk (such as optical discs, DVDs, etc.), or similar storage media, or combinations thereof.
[0178] In some embodiments, a machine-readable storage medium, such as Figure 7 The memory 702 in the device stores machine-executable instructions, which, when executed by a processor, implement the adaptive adjustment method for the LED screen to change with ambient brightness as described above. For example, the machine-executable storage medium can be ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0179] This application also provides a computer program product that stores a computer program, and when a processor executes the computer program, it causes the processor to execute the LED screen adaptive adjustment method described above as changing with ambient brightness.
[0180] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0181] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A method for adaptively adjusting an LED screen to changes in ambient brightness, characterized in that, include: Obtain ambient brightness; Based on the ambient brightness, determine the target brightness of the screen that matches the ambient brightness, and set the brightness of the LED screen according to the target brightness. Based on the ambient brightness, the conventional gamma curve is adjusted to obtain the adjusted gamma curve; wherein, the gamma curve is the curve that maps 256 gray levels of the image to the screen brightness; the overall brightness of the low gray portion in the adjusted gamma curve is lower than the overall brightness of the low gray portion in the conventional gamma curve, and the overall brightness of the high gray portion in the adjusted gamma curve is higher than the overall brightness of the high gray portion in the conventional gamma curve, wherein the low gray portion is the part with gray levels lower than a preset gray level threshold, and the high gray portion is the part with gray levels higher than the preset gray level threshold; Based on the adjusted gamma curve, the contrast of the LED screen after the brightness setting is adjusted; The step of adjusting the conventional gamma curve based on the ambient brightness to obtain the adjusted gamma curve includes: When the ambient brightness is inconsistent with the preset ambient brightness, the conventional gamma curve is adjusted according to the ambient brightness to obtain the adjusted gamma curve; the inconsistency between the ambient brightness and the preset ambient brightness includes the ambient brightness being greater than the preset ambient brightness, or the ambient brightness being less than the preset ambient brightness; The larger the absolute value of the difference between the ambient brightness and the preset ambient brightness, the lower the overall brightness of the low gray part and the higher the overall brightness of the high gray part in the adjusted gamma curve. The method further includes: When the ambient brightness is the same as the preset ambient brightness, the contrast of the LED screen is adjusted according to the conventional gamma curve. The step of adjusting the contrast of the LED screen after the brightness setting based on the adjusted gamma curve includes: When the ambient brightness is higher than a preset brightness threshold, the updated minimum gamma step size and the updated grayscale brightness are determined based on the ambient brightness; wherein, the updated minimum gamma step size and the updated grayscale brightness are both positively correlated with the ambient brightness; Based on the updated minimum gamma step size and the updated grayscale brightness, the gamma table corresponding to the adjusted gamma curve is updated to generate an updated gamma table. The brightness of the LED screen is adjusted according to the updated gamma meter after the brightness setting.
2. The method according to claim 1, characterized in that, Determining the target screen brightness that matches the ambient brightness based on the ambient brightness includes: Based on the ambient brightness, the target screen brightness that matches the ambient brightness is determined by querying a mapping table; wherein, the mapping table records the mapping relationship between ambient brightness and target screen brightness; or, Based on the ambient brightness, a conversion function is used to determine the target screen brightness that matches the ambient brightness; wherein, the conversion function is used to convert between the ambient brightness and the target screen brightness.
3. The method according to claim 1, characterized in that, The adjusted gamma curve has the same start and end points as the conventional gamma curve; The adjustment of the conventional gamma curve based on the ambient brightness to obtain the adjusted gamma curve includes: Based on the ambient brightness, a multi-segment function fitting method is used to adjust the conventional gamma curve to obtain the adjusted gamma curve; The adjusted gamma curve includes curve ABC and curve CDE; Point A and point E are the starting point and the ending point of the conventional gamma curve respectively, point C is the demarcation point between the low gray part and the high gray part, the abscissa of point B is a first gray scale value, the abscissa of point D is a second gray scale value, the second gray scale value is greater than the first gray scale value, the ordinates of point B and point D are respectively determined by the following formula: y and D y Wherein, B0 is the value of the conventional gamma curve when the horizontal axis is the first gray level value; D0 is the value of the conventional gamma curve when the horizontal axis is the second gray level value; s1 and s2 are preset constants, and L0 is the preset ambient brightness.
4. The method according to claim 1, characterized in that, The updated minimum gamma step size and updated grayscale brightness are determined based on the ambient brightness using the following formula: Where O is the updated minimum gamma step size, P is the updated grayscale brightness, L is the ambient brightness, and s3 and s4 are preset constants.
5. A device for adaptive adjustment of an LED screen according to changes in ambient brightness, characterized in that, include: Acquisition unit, used to acquire ambient brightness; The determining unit is used to determine a target screen brightness that matches the ambient brightness based on the ambient brightness. The setting unit is used to set the brightness of the LED screen according to the target brightness of the screen; An adjustment unit is used to adjust the conventional gamma curve according to the ambient brightness to obtain an adjusted gamma curve; wherein, the gamma curve is a curve that maps 256 gray levels of an image to the screen brightness; the overall brightness of the low gray portion in the adjusted gamma curve is lower than the overall brightness of the low gray portion in the conventional gamma curve, and the overall brightness of the high gray portion in the adjusted gamma curve is higher than the overall brightness of the high gray portion in the conventional gamma curve, wherein the low gray portion is the part with a gray level lower than a preset gray level threshold, and the high gray portion is the part with a gray level higher than the preset gray level threshold. The control unit is used to adjust the contrast of the LED screen after the brightness setting according to the adjusted gamma curve. The adjustment unit adjusts the conventional gamma curve based on the ambient brightness to obtain an adjusted gamma curve, including: When the ambient brightness is inconsistent with the preset ambient brightness, the conventional gamma curve is adjusted according to the ambient brightness to obtain the adjusted gamma curve; the inconsistency between the ambient brightness and the preset ambient brightness includes the ambient brightness being greater than the preset ambient brightness, or the ambient brightness being less than the preset ambient brightness; The larger the absolute value of the difference between the ambient brightness and the preset ambient brightness, the lower the overall brightness of the low gray part and the higher the overall brightness of the high gray part in the adjusted gamma curve. The control unit is used to adjust the contrast of the LED screen according to a conventional gamma curve when the ambient brightness is consistent with the preset ambient brightness. The determining unit is further configured to determine, based on the ambient brightness, an updated minimum gamma step size and an updated grayscale brightness when the ambient brightness is higher than a preset brightness threshold; wherein the updated minimum gamma step size and the updated grayscale brightness are both positively correlated with the ambient brightness; The device further includes: The generation unit is used to update the gamma table corresponding to the adjusted gamma curve based on the updated minimum gamma step size and the updated grayscale brightness, and generate an updated gamma table. The control unit is specifically used to adjust the brightness of the LED screen after the brightness setting based on the updated gamma meter.
6. The apparatus according to claim 5, characterized in that, The determining unit determines a target screen brightness that matches the ambient brightness based on the ambient brightness, including: Based on the ambient brightness, the target screen brightness that matches the ambient brightness is determined by querying a mapping table; wherein, the mapping table records the mapping relationship between ambient brightness and target screen brightness; or, Based on the ambient brightness, a conversion function is used to determine the target screen brightness that matches the ambient brightness; wherein, the conversion function is used to convert between the ambient brightness and the target screen brightness. And / or, wherein the adjusted gamma curve has the same start and end points as the conventional gamma curve; The adjustment unit adjusts the conventional gamma curve based on the ambient brightness to obtain an adjusted gamma curve, including: Based on the ambient brightness, a multi-segment function fitting method is used to adjust the conventional gamma curve to obtain the adjusted gamma curve; The adjusted gamma curve includes curve ABC and curve CDE; Points A and E are the starting and ending points of the conventional gamma curve, respectively. Point C is the boundary between the low gray and high gray portions. The x-coordinate of point B is the first gray level value, and the x-coordinate of point D is the second gray level value, where the second gray level value is greater than the first gray level value. The y-coordinates of points B and D are... y and D y They are determined using the following formulas respectively: Wherein, B0 is the value of the conventional gamma curve when the horizontal axis is the first gray level value; D0 is the value of the conventional gamma curve when the horizontal axis is the second gray level value; s1 and s2 are preset constants, and L0 is the preset ambient brightness. And / or, The updated minimum gamma step size and updated grayscale brightness are determined based on the ambient brightness using the following formulas: Where O is the updated minimum gamma step size, P is the updated grayscale brightness, L is the ambient brightness, and s3 and s4 are preset constants.
7. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the method as described in any one of claims 1 to 4.