Brightness adjustment methods and devices, electronic devices, storage media

By acquiring ambient light and image brightness information and selecting sample pixels to calculate brightness adjustment values, the problem of reduced display effect caused by screen backlight brightness adjustment in existing technologies is solved, resulting in clearer image display and improved image display performance of electronic devices.

CN115602136BActive Publication Date: 2025-10-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110718761.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-28
Publication Date
2025-10-28
Estimated Expiration
2041-06-28

AI Technical Summary

Technical Problem

In the prior art, adjusting the screen backlight brightness of electronic devices can easily reduce the display effect of different displayed content, causing users to be unable to obtain clear image details and reducing image display performance.

Method used

By acquiring ambient light information and the brightness information of the currently displayed image on the screen, sampling conditions are determined, sample pixels that meet the conditions are selected, brightness adjustment values ​​are calculated, and targeted brightness adjustments are made. Combined with screen backlight brightness adjustments, the optimal display effect is achieved.

Benefits of technology

It improves the display effect of electronic devices under different lighting environments and display content, avoids problems such as loss of detail and hazy image, and improves image display performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115602136B_ABST
    Figure CN115602136B_ABST
Patent Text Reader

Abstract

A brightness adjustment method, apparatus, electronic device, and storage medium are disclosed. The method, applied to an electronic device, includes: acquiring ambient light information corresponding to the electronic device and image brightness information of the currently displayed image on the screen of the electronic device; determining sampling conditions based on the ambient light information and determining sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information; and calculating a brightness adjustment value based on the sample pixels, wherein the brightness adjustment value can be used to adjust the brightness of the currently displayed image. Implementing the embodiments of this application can improve the display effect of the electronic device for different display content, thereby improving the image display performance of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of screen display technology, and in particular to a brightness adjustment method and apparatus, electronic device, and storage medium. Background Technology

[0002] Currently, electronic devices (such as smartphones, computers, and televisions) often adjust their screen backlight brightness according to the lighting environment to enable users to see the displayed content clearly. However, in practice, it has been found that simply adjusting the backlight brightness can easily reduce the display effect of different content, resulting in users being unable to obtain clear image details and reducing the image display performance of electronic devices. Summary of the Invention

[0003] This application discloses a brightness adjustment method and apparatus, an electronic device, and a storage medium, which can improve the display effect of the electronic device for different display content, thereby improving the image display performance of the electronic device.

[0004] The first aspect of this application discloses a brightness adjustment method applied to an electronic device, the method comprising:

[0005] Obtain the ambient light information corresponding to the electronic device, and the image brightness information of the currently displayed image on the screen of the electronic device;

[0006] The sampling conditions are determined based on the ambient light information, and the sample pixels that meet the sampling conditions are determined from the currently displayed image based on the image brightness information.

[0007] A brightness adjustment value is calculated based on the sample pixels, and the brightness adjustment value is used to adjust the brightness of the currently displayed image.

[0008] A second aspect of this application discloses a brightness adjustment device applied to an electronic device, the brightness adjustment device comprising:

[0009] The acquisition unit is used to acquire ambient light information corresponding to the electronic device and image brightness information of the currently displayed image on the screen of the electronic device;

[0010] A sampling unit is used to determine sampling conditions based on the ambient light information and to determine sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information.

[0011] The calculation unit is used to calculate a brightness adjustment value based on the sample pixels, and the brightness adjustment value is used to adjust the brightness of the currently displayed image.

[0012] The third aspect of this application discloses an electronic device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs all or part of the steps in any brightness adjustment method disclosed in the first aspect of this application.

[0013] The fourth aspect of this application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements all or part of the steps in any brightness adjustment method disclosed in the first aspect of this application.

[0014] Compared with related technologies, the embodiments of this application have the following beneficial effects:

[0015] In this embodiment, the electronic device using the brightness adjustment method can acquire ambient light information corresponding to the electronic device and image brightness information of the currently displayed image on its screen. Based on this, the electronic device can determine sampling conditions according to the ambient light information and identify sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information. A brightness adjustment value is then calculated based on these sample pixels, and this brightness adjustment value can be used to adjust the brightness of the currently displayed image. Therefore, by implementing this embodiment, the electronic device can jointly determine the brightness adjustment value corresponding to the currently displayed image based on its ambient light environment and the currently displayed image on its screen. This not only considers the influence of ambient light on the display effect of the electronic device but also allows for targeted brightness adjustment based on the actual display content, providing users with more and clearer image details as much as possible. Compared to a scheme that uniformly adjusts the screen backlight brightness, implementing this embodiment allows for flexible improvement of the display effect of the electronic device for different display content, thereby enhancing the image display performance of the electronic device. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0017] Figure 1 This is a schematic diagram illustrating an application scenario of a brightness adjustment method disclosed in an embodiment of this application;

[0018] Figure 2 This is a schematic flowchart of a brightness adjustment method disclosed in an embodiment of this application;

[0019] Figure 3This is a schematic diagram of a brightness adjustment curve disclosed in an embodiment of this application;

[0020] Figure 4 This is a schematic flowchart of another brightness adjustment method disclosed in an embodiment of this application;

[0021] Figure 5 This is a schematic flowchart of another brightness adjustment method disclosed in the embodiments of this application;

[0022] Figure 6 This is a schematic diagram of a brightness histogram corresponding to a currently displayed image disclosed in an embodiment of this application;

[0023] Figure 7 This is a modular schematic diagram of a brightness adjustment device disclosed in an embodiment of this application;

[0024] Figure 8 This is a modular schematic diagram of an electronic device disclosed in an embodiment of this application. Detailed Implementation

[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0026] It should be noted that the terms "comprising" and "having" and any variations thereof in the embodiments of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to these processes, methods, products, or devices.

[0027] This application discloses a brightness adjustment method and apparatus, an electronic device, and a storage medium, which can improve the display effect of the electronic device for different display content, thereby improving the image display performance of the electronic device.

[0028] The following will be described in detail with reference to the accompanying drawings.

[0029] Please see Figure 1 , Figure 1 This is a schematic diagram illustrating an application scenario of a brightness adjustment method disclosed in an embodiment of this application. For example... Figure 1As shown, the electronic device 100 may include a screen 101 for outputting the currently displayed image. The screen 101 of the electronic device 100 may include a backlight layer (not shown) and a display layer. The backlight layer can emit white backlight, and the display layer can adjust the filter color and filter degree of different pixels to filter the white backlight, achieving color output of different colors and brightness. For example, taking an LCD television as an example, it may have a liquid crystal display (LCD). The display layer may specifically be a combination of a TFT (Thin Film Transistor) layer, a liquid crystal layer, and a filter layer. By controlling the voltage signal on the TFT layer through the processor built into the LCD television, the arrangement of liquid crystal molecules in the liquid crystal layer can be accurately adjusted to allocate corresponding light transmittance to different pixels and different color filters in the filter layer, thereby adjusting the brightness of each pixel in different color channels and achieving brightness adjustment of the currently displayed image on the screen.

[0030] Optionally, the screen 101 of the aforementioned electronic device 100 may also consist only of a display layer, which may be self-emissive, so that the brightness of the currently displayed image on the screen 101 can be directly adjusted under the control of a processor built into the electronic device 100. For example, taking an OLED (Organic Light Emitting Diodes) television as an example, which may have an OLED display screen, the aforementioned display layer may specifically be an OLED layer.

[0031] In this embodiment, to improve the display effect of the electronic device through the aforementioned brightness adjustment, the electronic device can first acquire its corresponding ambient light information and the image brightness information of the currently displayed image on the screen of the electronic device. Based on this, by taking the influence of ambient light on the display effect of the electronic device into consideration, the electronic device can determine sampling conditions based on the aforementioned ambient light information and determine sample pixels that meet the sampling conditions from the currently displayed image based on the aforementioned image brightness information. A brightness adjustment value is then calculated based on the sample pixels, and this brightness adjustment value can be used to perform targeted brightness adjustments on the currently displayed image.

[0032] Optionally, in addition to the brightness adjustment mentioned above, the electronic device can also adjust the current backlight brightness of its screen according to the corresponding ambient light information, so as to achieve a balance between the adjustment of its backlight brightness and the brightness adjustment of the currently displayed image. Whether it is a brighter or darker image in a brighter light environment or a brighter or darker image in a darker light environment, it can avoid the occurrence of problems such as loss of detail, hazy image, glare and reflection as much as possible, so as to achieve the optimal display effect of the electronic device.

[0033] As can be seen, by implementing the above method, electronic devices can adjust the brightness of the currently displayed image based on the ambient light and the image on the screen. This not only considers the impact of ambient light on the display effect but also allows for targeted brightness adjustments based on the actual content displayed, providing users with the best possible display experience. Compared to a uniform adjustment of screen backlight brightness, this method can flexibly improve the display effect for different content displayed on the electronic device, thereby enhancing the image display performance of the device.

[0034] The aforementioned electronic devices may include various devices or systems with screen display functions, such as mobile phones, smart wearable devices, televisions, displays, vehicle terminals, tablet computers, PCs (Personal Computers), PDAs (Personal Digital Assistants), etc., and are not specifically limited in this application embodiment.

[0035] Please see Figure 2 , Figure 2 This is a schematic flowchart of a brightness adjustment method disclosed in an embodiment of this application, which can be applied to the aforementioned electronic device. Figure 2 As shown, the brightness adjustment method may include the following steps:

[0036] 202. Obtain the ambient light information corresponding to the electronic device, as well as the image brightness information of the currently displayed image on the screen of the electronic device.

[0037] In this embodiment of the application, in order to incorporate the impact of ambient light on the display effect of electronic devices into the scope of brightness adjustment, the electronic device can first acquire its corresponding ambient light information. This ambient light information may include the light intensity, light frequency range, light frequency distribution, and light duration of the scene in which the electronic device is located, etc., to evaluate different lighting environments and facilitate targeted adjustments to the brightness of the displayed image on the screen of the electronic device in subsequent steps.

[0038] In some embodiments, the electronic device can collect the aforementioned ambient light information through its built-in ambient light sensor. For example, when the electronic device needs to output the currently displayed image through its screen, it can trigger its ambient light sensor to activate and collect ambient light information such as the light intensity of the scene in which the electronic device is located in real time. Alternatively, the electronic device can also activate its ambient light sensor at regular intervals to periodically collect ambient light information of the scene in which the electronic device is located. This allows the electronic device to directly access the most recently collected ambient light information when it needs to output the currently displayed image through its screen, improving the efficiency of ambient light information acquisition.

[0039] In other embodiments, the electronic device can also acquire pre-set ambient light information. This ambient light information can be manually set by the user before adjusting the brightness of the currently displayed image. It can also be acquired via the network communication port of the electronic device (e.g., network-stored weather conditions, home layout conditions, etc.), thus facilitating unified management of electronic devices located in different locations. For example, the electronic device may include a display screen installed in a shopping mall, store, or other similar location. Its corresponding ambient light information, such as light intensity and duration of illumination, is usually fixed, so when the electronic device is activated, it can directly acquire this fixed ambient light information. As another example, the electronic device may include a television installed in a home. When the television is activated, it can acquire information uploaded by the user (e.g., the user's home time period, fixed time periods for turning on the television), home layout conditions (e.g., indoor lighting layout, television position), and current weather conditions (e.g., sunny, rainy, etc.) to jointly determine the corresponding ambient light information.

[0040] In this embodiment, the electronic device can also acquire image brightness information of the currently displayed image output on its screen. This image brightness information may include the current brightness information of each pixel in the currently displayed image, the overall brightness distribution (such as a brightness distribution histogram), and the brightness range. It is understood that the image brightness information is related to the selected color space; different color spaces can correspond to different brightness information representations. For example, when using the RGB color space, the grayscale values ​​of each pixel in the current displayed image on the three different color channels R (Red), G (Green), and B (Blue) can respectively represent the current brightness information of that pixel on each color channel. As another example, when using the YCbCr color space, the value of each pixel in the current displayed image on the Y channel, i.e., its brightness component, can be used to represent the current brightness information corresponding to that pixel. Optionally, the image brightness information of the currently displayed image on the electronic device screen can also be directly determined based on the brightness results obtained from testing with a color analyzer (such as CA-410).

[0041] 204. Determine the sampling conditions based on the ambient light information, and determine the sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information.

[0042] In this embodiment, after acquiring the ambient light information and the image brightness information of the currently displayed image, the electronic device can determine corresponding sampling conditions based on the ambient light information and select one or more sample pixels in the currently displayed image that meet the sampling conditions based on the image brightness information. These sample pixels may include the pixels in the currently displayed image that best match the ambient light information (i.e., have the best display effect), and the current brightness information of these sample pixels can be used as a basis for subsequent brightness adjustments to the current displayed image. For example, the sampling conditions may include constraints composed of both ambient light information and image brightness information. These constraints can be expressed in different forms such as functional relationships or numerical ranges to filter sample pixels in the currently displayed image that meet the constraints.

[0043] 206. A brightness adjustment value is calculated based on the sample pixels. This brightness adjustment value is used to adjust the brightness of the currently displayed image.

[0044] After determining the aforementioned sample pixels, the electronic device can also determine the corresponding brightness adjustment method based on these sample pixels. For example, it can calculate a brightness adjustment curve through fitting or interpolation, and determine a brightness adjustment function through matching or mapping. This allows it to determine the corresponding brightness adjustment value for adjusting the brightness of the entire currently displayed image. For example, for the aforementioned brightness adjustment curve, the brightness adjustment value may include the coefficients corresponding to the brightness adjustment curve (such as the coefficients of a quadratic curve, cubic curve, etc.); for the aforementioned brightness adjustment function, the brightness adjustment value may include the constants and coefficients contained in the brightness adjustment function.

[0045] Specifically, in some embodiments, the brightness adjustment value calculated by the electronic device based on the aforementioned sample pixels may include various coefficients corresponding to the brightness adjustment curve. Based on this brightness adjustment value, the corresponding brightness adjustment curve can be uniquely determined. Please refer to [link / reference]. Figure 3 , Figure 3 This is a schematic diagram of a brightness adjustment curve disclosed in an embodiment of this application. The brightness adjustment curve can be a cubic curve, where the horizontal axis in the Cartesian coordinate system represents the original brightness value, and the vertical axis represents the adjusted brightness value. Therefore, for each original brightness value within the horizontal axis range of the brightness adjustment curve, there exists a unique corresponding adjusted brightness value. For example, for... Figure 3 Point A(x, y) in the diagram, with x as the horizontal coordinate and y as the vertical coordinate, indicates that the electronic device can adjust the brightness value of a pixel in the currently displayed image on its screen from its original brightness value of x to y, thereby achieving brightness adjustment of the currently displayed image.

[0046] In other embodiments, the brightness adjustment value calculated by the electronic device based on the aforementioned sample pixels may include various constants and coefficients corresponding to the brightness adjustment function. Based on this brightness adjustment value, the corresponding brightness adjustment function can be uniquely determined. Furthermore, according to the aforementioned brightness adjustment function, the original brightness value of each pixel in the currently displayed image is substituted as an independent variable in the calculation to obtain its uniquely corresponding mapping function value, i.e., the adjusted brightness value corresponding to each pixel, thereby enabling brightness adjustment of the currently displayed image.

[0047] As can be seen, by implementing the brightness adjustment method described in the above embodiments, the electronic device can adjust the brightness of the currently displayed image based on its ambient light environment and the image on its screen. This not only considers the impact of ambient light on the display effect of the electronic device but also allows for targeted brightness adjustments based on the actual display content, providing the user with the best possible display effect. Compared to a solution that uniformly adjusts the screen backlight brightness, this method can flexibly improve the display effect for different display content on the electronic device, thereby enhancing the image display performance of the electronic device.

[0048] Please see Figure 4 , Figure 4 This is a schematic flowchart of another brightness adjustment method disclosed in an embodiment of this application, which can be applied to the aforementioned electronic device. Figure 4 As shown, the brightness adjustment method may include the following steps:

[0049] 402. Obtain the ambient light information corresponding to the electronic device, as well as the image brightness information of the currently displayed image on the screen of the electronic device.

[0050] Step 402 is similar to step 202 above, and will not be described again here.

[0051] 404. The aforementioned ambient light information includes the light intensity of the scene where the electronic device is located. Based on the light intensity, an ambient light coefficient matching the light intensity is determined.

[0052] In this embodiment, after acquiring the ambient light intensity of its surroundings (e.g., by using its built-in ambient light sensor or by acquiring a user-preset ambient light intensity), the electronic device can determine a matching ambient light coefficient based on this intensity. This ambient light coefficient can meet certain numerical conditions, such as falling within a specific range or including several quantified fixed values, thus representing the differentiated ambient light intensities in different scenes in a relatively uniform and fixed form. Based on this, the electronic device can determine corresponding sampling conditions in subsequent steps according to the ambient light coefficient, and calculate the corresponding brightness adjustment value using sample pixels in the currently displayed image that meet these sampling conditions, thereby achieving brightness adjustment of the currently displayed image on the electronic device screen.

[0053] In one embodiment, the ambient light coefficient matching the light intensity can be determined by a preset mapping function, which is a mapping function with light intensity as the independent variable and the matching ambient light coefficient as the dependent variable. For example, after acquiring the light intensity L, the electronic device can substitute the value of the light intensity into the mapping function f(L) between the light intensity and the ambient light coefficient for calculation, thereby obtaining a function value uniquely corresponding to the light intensity, i.e., obtaining the ambient light coefficient matching the light intensity.

[0054] In another embodiment, the electronic device can also obtain the ambient light coefficient matching the aforementioned light intensity by looking up a table. For example, after obtaining the aforementioned light intensity, the electronic device can look up a table corresponding to the light intensity and the ambient light coefficient. This table can include ambient light coefficients matching each light intensity value, or ambient light coefficients matching different light intensity ranges. For example, the table corresponding to the light intensity and the ambient light coefficient of the scene in which the electronic device is located can be as shown in Table 1 below. It should be noted that the specific numerical ranges of light intensity shown in Table 1 are merely examples. Different light intensity ranges can be defined according to different brightness adjustment requirements or scene classification standards to specify the corresponding ambient light coefficient.

[0055] Table 1:

[0056] Light intensity / illuminance (lux) Ambient light coefficient 3~7 A 7~15 B 15~30 C 30~75 D 75~150 E >150 F

[0057] When an electronic device is in different scenarios, based on the light intensity (i.e., illuminance, in lux) obtained by the electronic device corresponding to its scenario, the range of light intensity it is in in Table 1 can be determined, and then the ambient light coefficient corresponding to that light intensity can be found by looking up Table 1.

[0058] Optionally, the aforementioned ambient light coefficients A to F may include fixed values ​​(such as 1.9, 2.0, 2.1, etc.) or fixed value ranges (such as A corresponding to 1.9 to 2.0, B corresponding to 1.9 to 2.2, etc.), thereby flexibly matching a certain range of light intensity and improving the flexibility and reliability of determining the ambient light coefficients.

[0059] In some embodiments, Table 1 can be set by empirical values ​​or obtained through training with a large amount of data. For example, when an electronic device is in different scenarios, the light intensity of the scenario can be collected, and the backlight brightness of the screen can be adaptively set under that light intensity (which can also be obtained through training). Then, the light intensity or backlight brightness, along with the corresponding ambient light coefficient, can be input into the training model for training. Based on this, the trained model, using large amounts of data, can be used to directly calculate the ambient light coefficient corresponding to different light intensities, or it can be used to statistically summarize and obtain Table 1, facilitating the lookup of the ambient light coefficient corresponding to different light intensities.

[0060] 406. Determine the sampling conditions based on the above ambient light coefficient.

[0061] Step 406 is similar to step 204 above. It should be noted that after the electronic device determines the ambient light coefficient, it can substitute the ambient light coefficient into the specified sampling conditions (such as coefficients of a function, coefficients of a numerical range, etc.), or select different sampling conditions based on the ambient light coefficient to improve the flexibility of determining the sampling conditions, thereby improving the accuracy and reliability of obtaining sample pixels from the currently displayed image in subsequent steps.

[0062] As an optional implementation, before determining the sampling conditions based on the aforementioned ambient light coefficient, the electronic device may first obtain the maximum backlight brightness of its screen. Optionally, this maximum backlight brightness may be related to the aforementioned light intensity, or it may be independent of the aforementioned light intensity, and is simply a fixed value determined by the hardware conditions of the electronic device's screen. For example, this maximum backlight brightness can be obtained through testing using a color analyzer (such as CA-410). Based on this, the electronic device can use this maximum backlight brightness as a reference benchmark for the aforementioned sampling conditions, that is, determine the corresponding sampling conditions jointly based on the aforementioned ambient light coefficient and the maximum backlight brightness.

[0063] 408. Determine the current brightness information of each pixel in the currently displayed image based on the above image brightness information.

[0064] The aforementioned image brightness information can include the brightness value of each pixel in the currently displayed image. It should be noted that this brightness value can include brightness values ​​converted from different color spaces (e.g., converting from the RGB color space with known R, G, and B components to the YCbCr color space, where the Y component is the brightness component), or it can include brightness values ​​directly obtained through testing with a color analyzer. Therefore, based on the aforementioned image brightness information, the brightness of each specific pixel can be obtained, i.e., the current brightness information of each pixel can be acquired.

[0065] 410. The above sampling conditions include the color-brightness relationship formula, which determines the color parameters of each pixel, and selects the pixel points whose current brightness information and color parameters conform to the above color-brightness relationship formula from the currently displayed image as sample pixels.

[0066] In this embodiment, the color parameter of each pixel can be matched with the current brightness information of each pixel. The above color-brightness relationship can be expressed as shown in Formula 1 as follows:

[0067] Formula 1:

[0068] Current brightness value = Maximum backlight brightness * (color parameter / 255)^Ambient light coefficient

[0069] The aforementioned current brightness information may include the brightness value of each pixel in the current display of the electronic device's screen, i.e., the current brightness value in Formula 1; the color parameter may represent the identifier value that matches the current brightness information and is located in each different color channel of the selected color space. The identifier value may be used to represent the grayscale value (usually 0-255) when the aforementioned current brightness information is mapped to the corresponding color channel.

[0070] In one embodiment, the electronic device can first calculate the current color parameter corresponding to the current brightness information of each pixel according to the above-mentioned color-brightness relationship formula, and then compare it with the reference color parameter to determine the sample pixel that matches the current color parameter and the reference color parameter. The reference color parameter refers to the reference color parameter matched with each different brightness information in the mapping relationship table between brightness information and reference color parameters. This mapping relationship table is obtained by sequentially testing the reference color parameter corresponding to each brightness information within the screen brightness range of the electronic device screen.

[0071] For example, this mapping table can be obtained by testing display images of different colors and brightness using a color analyzer (such as CA-410). Specifically, the color analyzer can be used to test the display images corresponding to each grayscale value (usually 0-255) in different color channels of the selected color space. After the color analyzer obtains the red primary color ratio x, green primary color ratio y, and brightness lv for each display image, the mapping table between brightness information (i.e., the aforementioned grayscale values) and reference color parameters can be calculated using the conversion relationship between x, y, and lv and the aforementioned color space.

[0072] Based on this, the electronic device can first calculate the current color parameter corresponding to the current brightness information of each pixel according to the color brightness relationship; then compare the current color parameter corresponding to each pixel with the reference color parameter corresponding to the current brightness information of each pixel, and determine the pixel whose current color parameter and reference color parameter match as the sample pixel.

[0073] In another embodiment, the electronic device may first obtain the reference color parameter corresponding to the current brightness information of each pixel, and then substitute the current brightness information of each pixel and the corresponding reference color parameter into the above color brightness relationship formula to determine the pixel that conforms to the color brightness relationship formula as the sample pixel.

[0074] 412. A brightness adjustment value is calculated based on the sample pixels. This brightness adjustment value is used to adjust the brightness of the currently displayed image.

[0075] Step 412 is similar to step 206 above, and will not be repeated here.

[0076] 414. Adjust the current backlight brightness of the electronic device screen based on the above ambient light information.

[0077] 416. Adjust the brightness of the currently displayed image according to the brightness adjustment values ​​mentioned above.

[0078] It is understood that in this embodiment, steps 414 and 416 can be performed simultaneously. This allows the electronic device to adjust both the current backlight brightness of its screen and the image brightness information of the currently displayed image, thereby achieving a balance between the two adjustment methods. This facilitates flexible adjustment of the screen display output for different lighting environments and content, minimizing issues such as detail loss, image haziness, and glare. Alternatively, the adjustments can be performed at different times; the order of these adjustments is not limited in this embodiment, making the degree and effect of the image adjustment more noticeable to the user.

[0079] As can be seen, the brightness adjustment method described in the above embodiments can take into account the influence of ambient light on the display effect of electronic devices, and simultaneously achieve targeted brightness adjustment based on the actual display content of the electronic device, so as to provide users with a better display effect as much as possible. This allows for flexible improvement of the display effect for different display content of the electronic device, which is beneficial to improving the image display performance of the electronic device. In addition, by determining the sample pixel points according to the above color-brightness relationship, the pixel points in the current display image that best match the above ambient light information can be obtained, which helps to achieve the best display effect after brightness adjustment, greatly improving the accuracy of the electronic device in adjusting the brightness of the current display image. Furthermore, by simultaneously adjusting the backlight brightness of the electronic device screen and the image brightness of the current display image, the two adjustment methods can be balanced, which is beneficial to flexibly adjust the screen display effect for different lighting environments and different screen content, and improve the stability and reliability of the image display output of the electronic device.

[0080] Please see Figure 5 , Figure 5 This is a schematic flowchart of another brightness adjustment method disclosed in an embodiment of this application, which can be applied to the aforementioned electronic device. Figure 5 As shown, the brightness adjustment method may include the following steps:

[0081] 502. Obtain the ambient light information corresponding to the electronic device, as well as the image brightness information of the currently displayed image on the screen of the electronic device.

[0082] Step 502 is similar to step 202 above, and will not be described again here.

[0083] 504. The aforementioned ambient light information includes the light intensity of the scene in which the electronic device is located. Based on the light intensity, an ambient light coefficient matching the light intensity is determined.

[0084] 506. Based on the light intensity, determine the maximum backlight brightness of the electronic device's screen.

[0085] 508. Based on the above ambient light coefficient and maximum backlight brightness, the sampling conditions are determined together.

[0086] Steps 504, 506, and 508 are similar to steps 404 and 406 above, and will not be described again here.

[0087] 510. Determine the current brightness information of each pixel in the currently displayed image based on the above image brightness information.

[0088] 512. The above sampling conditions include the color-brightness relationship formula, which determines the color parameters of each pixel, and selects the pixel points whose current brightness information and color parameters conform to the above color-brightness relationship formula from the currently displayed image as sample pixels.

[0089] Steps 510 and 512 are similar to steps 408 and 410 above, and will not be described again here.

[0090] 514. Based on the sample pixels, calculate the first brightness curve corresponding to the currently displayed image.

[0091] In this embodiment, the first brightness curve corresponding to the current displayed image, calculated based on the sample pixels, can represent the optimal image brightness curve of the current displayed image under the lighting environment of the electronic device. Since the sample pixels may include the pixels in the current displayed image that best match the aforementioned ambient light information (i.e., have the best display effect), the current brightness information of these sample pixels can be used as the basis for subsequent brightness adjustments to the current displayed image.

[0092] Specifically, after determining the aforementioned sample pixels, the electronic device can calculate the first brightness curve by interpolation, fitting, or other methods. In one embodiment, the electronic device can acquire the current brightness information of each sample pixel and perform interpolation calculations based on this current brightness information to obtain the first brightness curve corresponding to the currently displayed image. This interpolation calculation can be performed using various interpolation algorithms such as cubic spline interpolation and piecewise low-order interpolation, which are not specifically limited in this embodiment. Alternatively, after acquiring the current brightness information of each sample pixel, the electronic device can also perform fitting calculations based on this current brightness information to obtain the first brightness curve that best matches each sample pixel.

[0093] It should be noted that, for multiple different color channels in the selected color space, the electronic device can determine multiple sets of different sample pixels to calculate the first brightness curve corresponding to each color channel. This curve is then used to adjust the brightness of the currently displayed image for each color channel in subsequent steps. For example, if the electronic device screen uses an RGBW display array (i.e., each pixel includes four sub-pixels: red (R), green (G), blue (B), and white (W), which corresponds to the RGB color space, then three different sets of sample pixels can be selected for the R, G, and B color channels respectively, and the corresponding first brightness curves can be calculated accordingly.

[0094] 516. Obtain the second brightness curve generated based on the image brightness range of the currently displayed image.

[0095] In this embodiment, the electronic device can select multiple pixels from the currently displayed image within its brightness range, according to a certain brightness step size (i.e., brightness values ​​at equal intervals), and generate a second brightness curve similar to the first brightness curve described above, following a similar approach to step 514. This second brightness curve can represent the overall brightness state of the currently displayed image on the electronic device screen. Based on this, the electronic device can calculate a brightness adjustment curve according to the first and second brightness curves, and determine a brightness adjustment value based on the brightness adjustment curve for adjusting the brightness of the currently displayed image.

[0096] For example, an electronic device can determine multiple sampled brightness information within the image brightness range of the currently displayed image, according to a target step size. For instance, since the maximum image brightness range of the currently displayed image is 0 to 255, when selecting 10 sampled brightness information, the target step size can be as high as 25; or, for example, if the image brightness range of the currently displayed image is 100 to 200, when selecting 20 sampled brightness information, the target step size can be as high as 5.

[0097] Furthermore, the electronic device can select target pixels with various sampled brightness information from the current display screen, and then generate a second brightness curve based on the target pixels, so as to adjust the brightness of the current display image in subsequent steps.

[0098] 518. Based on the current brightness information of each pixel in the currently displayed image, calculate the brightness histogram corresponding to the currently displayed image.

[0099] Specifically, in the currently displayed image on the screen of an electronic device, the brightness value corresponding to each pixel can be quantized into a certain value within a certain range (e.g., grayscale value within the range of 0-255). Thus, the electronic device can perform histogram statistics on the current brightness information of each pixel to obtain the brightness histogram corresponding to the currently displayed image. This brightness histogram can be used to provide feedback on the overall brightness distribution of the currently displayed image.

[0100] For example, please refer to Figure 6 , Figure 6 This is a schematic diagram of a brightness histogram corresponding to a currently displayed image, as disclosed in an embodiment of this application. Figure 6As shown, the electronic device can first determine multiple brightness intervals (such as 10, 64, 128, etc.) within the screen brightness range of the electronic device screen. Then, based on these brightness intervals, it can count the number of pixels whose current brightness information falls within each brightness interval, thereby obtaining the brightness histogram corresponding to the currently displayed image. Optionally, the electronic device can also determine the above brightness intervals within the image brightness range of the currently displayed image, thereby avoiding the situation where the number of pixels counted in some brightness intervals is 0, which helps to save statistical computing resources.

[0101] 520. Based on the brightness histogram above, calculate the average brightness coefficient corresponding to the currently displayed image.

[0102] In this embodiment, after obtaining the luminance histogram corresponding to the currently displayed image, the electronic device can calculate the histogram mean of the luminance histogram as the average luminance coefficient corresponding to the currently displayed image. For example, to calculate the histogram mean, the electronic device can first perform histogram summation on the luminance histogram corresponding to the currently displayed image, and then divide the sum by the screen brightness range to obtain the average luminance coefficient corresponding to the currently displayed image. Optionally, the sum can also be divided by the image brightness range of the currently displayed image to obtain another average luminance coefficient for different brightness ranges.

[0103] It is understood that steps 516, 518, and 520 can be executed after step 510, thereby enabling the simultaneous calculation of the first brightness curve, the second brightness curve, and the average brightness coefficient, reducing calculation time and improving the efficiency of the electronic device in adjusting the brightness of the current displayed image.

[0104] 522. Based on the first brightness curve, the second brightness curve, and the average brightness coefficient, calculate the brightness adjustment curve, and determine the brightness adjustment value based on the brightness adjustment curve.

[0105] In this embodiment, after obtaining the first brightness curve, the second brightness curve, and the average brightness coefficient, the electronic device can calculate the corresponding brightness adjustment curve. For example, the calculation of this brightness adjustment curve can be achieved using the following formula 2:

[0106] Formula 2:

[0107] Brightness adjustment curve = (First brightness curve - Second brightness curve) * Average brightness coefficient / 100 + First brightness curve

[0108] This brightness adjustment curve illustrates the mapping relationship between the original brightness value and the adjusted brightness value. In a Cartesian coordinate system, the horizontal axis represents the original brightness value, and the vertical axis represents the adjusted brightness value. Therefore, for each original brightness value within the horizontal range of the brightness adjustment curve, there exists a unique corresponding adjusted brightness value. Based on this brightness adjustment curve, electronic devices can adjust the brightness values ​​of pixels with different original brightness values ​​in the currently displayed image on their screen to the adjusted brightness value, thereby achieving brightness adjustment for the currently displayed image.

[0109] Optionally, among the multiple color channels (such as the R, G, B, and other color channels in the RGB color space) contained in the currently displayed image, the electronic device can calculate the brightness adjustment curve matching each color channel according to the first brightness curve, the second brightness curve, and the average brightness coefficient corresponding to each color channel, and determine the brightness adjustment value of each color channel according to the brightness adjustment curve matching each color channel, so as to adjust the brightness of the currently displayed image in each color channel, and finally achieve the overall brightness adjustment of the currently displayed image.

[0110] 524. Adjust the current backlight brightness of the electronic device screen according to the above ambient light information, and adjust the brightness of the currently displayed image according to the above brightness adjustment value.

[0111] Step 524 is similar to steps 414 and 416 above, and will not be described again here.

[0112] As can be seen, the brightness adjustment method described in the above embodiments can take into account the influence of ambient light on the display effect of electronic devices, and at the same time, achieve targeted brightness adjustment according to the actual display content of electronic devices, so as to provide users with a better display effect as much as possible. This allows for flexible improvement of the display effect of electronic devices for different display content, which is beneficial to improving the image display performance of electronic devices. In addition, the brightness adjustment curve calculated by the above method is simple to calculate, has a relatively small amount of computation, and is more convenient for subsequent brightness adjustment, which is beneficial to improving the efficiency of electronic devices in adjusting the brightness of the current display image.

[0113] Please see Figure 7 , Figure 7 This is a modular schematic diagram of a brightness adjustment device disclosed in an embodiment of this application, which can be applied to the aforementioned electronic devices. Figure 7 As shown, the brightness adjustment device may include an acquisition unit 701, a sampling unit 702, and a calculation unit 703, wherein:

[0114] The acquisition unit 701 is used to acquire ambient light information corresponding to the electronic device, and image brightness information of the currently displayed image on the screen of the electronic device;

[0115] The sampling unit 702 is used to determine the sampling conditions based on the ambient light information and to determine the sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information.

[0116] The calculation unit 703 is used to calculate a brightness adjustment value based on sample pixels, and the brightness adjustment value is used to adjust the brightness of the currently displayed image.

[0117] As can be seen, by employing the brightness adjustment device described in the above embodiments, the electronic device can adjust the brightness of the currently displayed image based on its ambient light environment and the image on its screen. This not only considers the impact of ambient light on the display effect of the electronic device but also allows for targeted brightness adjustments based on the actual display content, providing the user with the best possible display effect. Compared to a solution that uniformly adjusts the screen backlight brightness, this method can flexibly improve the display effect for different display content on the electronic device, thereby enhancing the image display performance of the electronic device.

[0118] In one embodiment, the brightness adjustment device may further include a first adjustment unit and a second adjustment unit (not shown), wherein:

[0119] The first adjustment unit is used to adjust the current backlight brightness of the screen of the electronic device according to the aforementioned ambient light information.

[0120] The second adjustment unit is used to adjust the brightness of the currently displayed image according to the brightness adjustment value.

[0121] In one embodiment, the ambient light information may include the light intensity of the scene in which the electronic device is located. When the sampling unit 702 determines the sampling conditions based on the ambient light information, it may specifically include:

[0122] Based on the above light intensity, determine the ambient light coefficient that matches the light intensity;

[0123] The sampling conditions are determined based on the ambient light coefficient.

[0124] In one embodiment, the acquisition unit 701 described above can also be used to acquire the maximum backlight brightness of the screen of the electronic device;

[0125] When determining the sampling conditions based on the aforementioned ambient light information, the sampling unit 702 may specifically include:

[0126] Based on the ambient light coefficient and maximum backlight brightness mentioned above, the sampling conditions are determined together.

[0127] In one embodiment, the sampling conditions may include a color-brightness relationship. When the sampling unit 702 determines sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information, it may specifically include:

[0128] Based on the image brightness information, determine the current brightness information of each pixel in the currently displayed image; determine the color parameters of each pixel, and select pixels whose current brightness information and color parameters conform to the color brightness relationship from the currently displayed image as sample pixels.

[0129] For example, when selecting sample pixels, the sampling unit 702 can calculate the current color parameter corresponding to the current brightness information of each pixel according to the above color brightness relationship;

[0130] The current color parameter corresponding to each pixel is compared with the reference color parameter corresponding to the current brightness information of each pixel, and the pixel whose current color parameter matches the reference color parameter is determined as the sample pixel.

[0131] For example, the sampling unit 702 can also obtain a reference color parameter corresponding to the current brightness information of each pixel;

[0132] Substitute the current brightness information and corresponding reference color parameters of each pixel into the above color brightness relationship formula, and determine the pixels that conform to the color brightness relationship formula as sample pixels.

[0133] In the mapping table between brightness information and reference color parameters, the sampling unit 702 can query the reference color parameters corresponding to the current brightness information of each pixel. The mapping table is obtained by sequentially testing the reference color parameters corresponding to each brightness information within the screen brightness range of the electronic device screen.

[0134] As can be seen, the brightness adjustment device described in the above embodiments can take into account the influence of ambient light on the display effect of electronic devices, and simultaneously perform targeted brightness adjustments based on the actual display content of the electronic devices, so as to provide users with the best possible display effect. This allows for flexible improvement of the display effect for different display content of the electronic devices, which is beneficial to improving the image display performance of the electronic devices. In addition, by determining the sample pixel points according to the above color-brightness relationship, the pixel points in the current display image that best match the above ambient light information can be obtained, which helps to achieve the best display effect after brightness adjustment, greatly improving the accuracy of the electronic devices in adjusting the brightness of the current display image. Furthermore, by simultaneously adjusting the backlight brightness of the electronic device screen and the image brightness of the current display image, the two adjustment methods can be balanced, which is beneficial to flexibly adjust the screen display effect for different lighting environments and different screen content, and improve the stability and reliability of the image display output of the electronic devices.

[0135] In one embodiment, when the number of sample pixels exceeds the sampling threshold, the sampling unit 702 can select a portion of the sample pixels equal to the sampling threshold and discard other sample pixels, thereby using a fixed number of sample pixels for subsequent brightness adjustment steps to reduce computation and improve the efficiency of the electronic device in adjusting the brightness of the current displayed image.

[0136] In one embodiment, when the calculation unit 703 calculates the brightness adjustment value based on sample pixels, it may specifically include:

[0137] Calculate the first brightness curve corresponding to the currently displayed image based on the sample pixels;

[0138] Obtain a second brightness curve generated based on the image brightness range of the currently displayed image;

[0139] The brightness adjustment curve is calculated based on the first brightness curve and the second brightness curve, and the brightness adjustment value is determined based on the brightness adjustment curve.

[0140] Specifically, when calculating the first brightness curve corresponding to the currently displayed image based on the sample pixels, the calculation unit 703 can perform interpolation calculations on the sample pixels to determine the first brightness curve corresponding to the currently displayed image.

[0141] When acquiring the second brightness curve generated based on the image brightness range of the currently displayed image, the calculation unit 703 can determine multiple sampled brightness information within the image brightness range of the currently displayed image according to the target step size; select target pixels with each sampled brightness information from the current display screen; and generate the second brightness curve based on the target pixels.

[0142] In one embodiment, before calculating the brightness adjustment curve based on the first brightness curve and the second brightness curve, the calculation unit 703 may also calculate the brightness histogram corresponding to the current display image based on the current brightness information of each pixel in the current display image; and calculate the average brightness coefficient corresponding to the current display image based on the brightness histogram.

[0143] Therefore, when calculating the brightness adjustment curve, the calculation unit 703 can specifically calculate the brightness adjustment curve based on the first brightness curve, the second brightness curve, and the average brightness coefficient.

[0144] In one embodiment, the calculation unit 703 may further calculate a brightness adjustment curve matching each color channel in the multiple color channels contained in the currently displayed image, based on the first brightness curve and the second brightness curve corresponding to each color channel, and determine the brightness adjustment value of each color channel based on the brightness adjustment curve matching each color channel.

[0145] As can be seen, the brightness adjustment device described in the above embodiments can take into account the influence of ambient light on the display effect of electronic devices, and at the same time, perform targeted brightness adjustment according to the actual display content of the electronic device, so as to provide users with a better display effect as much as possible. This allows for flexible improvement of the display effect of electronic devices for different display content, which is beneficial to improving the image display performance of electronic devices. In addition, the brightness adjustment curve calculated by the above method is simple to calculate, has a relatively small amount of calculation, and is more convenient for subsequent brightness adjustment, which is beneficial to improving the efficiency of electronic devices in adjusting the brightness of the current display image.

[0146] Please see Figure 8 , Figure 8 This is a modular schematic diagram of an electronic device disclosed in an embodiment of this application. For example... Figure 8 As shown, the electronic device may include:

[0147] Memory 801 storing executable program code;

[0148] Processor 802 coupled to memory 801;

[0149] The processor 802 can call the executable program code stored in the memory 801 to execute all or part of the steps in any of the brightness adjustment methods described in the above embodiments.

[0150] Furthermore, embodiments of this application disclose a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program enables a computer to perform all or part of the steps in any of the brightness adjustment methods described in the above embodiments.

[0151] Furthermore, this application further discloses a computer program product that, when run on a computer, enables the computer to execute all or part of the steps in any of the brightness adjustment methods described in the above embodiments.

[0152] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, including read-only memory (ROM), random access memory (RAM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), one-time programmable read-only memory (OTPROM), electrically-Erasable Programmable Read-Only Memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage, magnetic tape storage, or any other computer-readable medium capable of carrying or storing data.

[0153] The above provides a detailed description of a brightness adjustment method, apparatus, electronic device, and storage medium disclosed in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A brightness adjustment method, characterized in that, Applied to electronic devices, the method includes: Obtain the ambient light information corresponding to the electronic device, and the image brightness information of the currently displayed image on the screen of the electronic device; The sampling conditions are determined based on the ambient light information, and the sample pixels that meet the sampling conditions are determined from the currently displayed image based on the image brightness information. A brightness adjustment value is calculated based on the sample pixels, and the brightness adjustment value is used to adjust the brightness of the currently displayed image; The ambient light information includes the light intensity of the scene in which the electronic device is located, and the step of determining the sampling conditions based on the ambient light information includes: Based on the light intensity, determine the ambient light coefficient that matches the light intensity; Sampling conditions are determined based on the ambient light coefficient.

2. The method according to claim 1, characterized in that, After calculating the brightness adjustment value based on the sample pixels, the method further includes: The current backlight brightness of the screen of the electronic device is adjusted based on the ambient light information.

3. The method according to claim 1, characterized in that, Before determining the sampling conditions based on the ambient light coefficient, the method further includes: Obtain the maximum backlight brightness of the screen of the electronic device; The step of determining the sampling conditions based on the ambient light coefficient includes: The sampling conditions are determined based on the ambient light coefficient and the maximum backlight brightness.

4. The method according to any one of claims 1 to 3, characterized in that, The sampling conditions include a color-brightness relationship, and determining sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information includes: The current brightness information of each pixel in the currently displayed image is determined based on the image brightness information. The color parameters of each pixel are determined, and pixels whose current brightness information and color parameters conform to the color-brightness relationship are selected from the currently displayed image as sample pixels.

5. The method according to claim 4, characterized in that, The step of determining the color parameters of each pixel and selecting pixels from the currently displayed image whose current brightness information and color parameters conform to the color-brightness relationship as sample pixels includes: Based on the color-brightness relationship, calculate the current color parameter corresponding to the current brightness information of each pixel; The current color parameter corresponding to each pixel is compared with the reference color parameter corresponding to the current brightness information of each pixel, and the pixel whose current color parameter matches the reference color parameter is determined as the sample pixel.

6. The method according to claim 4, characterized in that, The step of determining the color parameters of each pixel and selecting pixels from the currently displayed image whose current brightness information and color parameters conform to the color-brightness relationship as sample pixels includes: Obtain the reference color parameter corresponding to the current brightness information of each pixel; The current brightness information of each pixel and the corresponding reference color parameter are substituted into the color brightness relationship formula, and the pixels that conform to the color brightness relationship formula are determined as sample pixels.

7. The method according to claim 6, characterized in that, The step of obtaining the reference color parameter corresponding to the current brightness information of each pixel includes: In the mapping table between brightness information and reference color parameters, the reference color parameter corresponding to the current brightness information of each pixel is obtained by querying the reference color parameter corresponding to each brightness information within the screen brightness range of the electronic device.

8. The method according to any one of claims 1 to 3, characterized in that, After determining the sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information, the method further includes: If the number of sample pixels exceeds the sampling threshold, select a portion of the sample pixels equal to the sampling threshold and discard the other sample pixels.

9. The method according to any one of claims 1 to 3, characterized in that, The process of calculating the brightness adjustment value based on the sample pixels includes: Based on the sample pixels, calculate the first brightness curve corresponding to the currently displayed image; Obtain a second brightness curve generated based on the image brightness range of the currently displayed image; A brightness adjustment curve is calculated based on the first brightness curve and the second brightness curve, and a brightness adjustment value is determined based on the brightness adjustment curve.

10. The method according to claim 9, characterized in that, The step of calculating the first brightness curve corresponding to the currently displayed image based on the sample pixels includes: Interpolation calculations are performed on the sample pixels to determine the first brightness curve corresponding to the currently displayed image.

11. The method according to claim 9, characterized in that, The step of obtaining the second brightness curve generated based on the image brightness range of the currently displayed image includes: Within the image brightness range of the currently displayed image, multiple sampled brightness information are determined according to the target step size; Select target pixels that have each of the aforementioned sampled brightness information from the currently displayed screen; A second brightness curve is generated based on the target pixel.

12. The method according to claim 9, characterized in that, Before calculating the brightness adjustment curve based on the first brightness curve and the second brightness curve, the method further includes: Based on the current brightness information of each pixel in the currently displayed image, a brightness histogram corresponding to the currently displayed image is calculated. Calculate the average brightness coefficient corresponding to the currently displayed image based on the brightness histogram; The step of calculating the brightness adjustment curve based on the first brightness curve and the second brightness curve includes: A brightness adjustment curve is calculated based on the first brightness curve, the second brightness curve, and the average brightness coefficient.

13. The method according to claim 9, characterized in that, The step of calculating a brightness adjustment curve based on the first brightness curve and the second brightness curve, and determining a brightness adjustment value based on the brightness adjustment curve, includes: In the multiple color channels contained in the currently displayed image, a brightness adjustment curve matching each color channel is calculated based on the first brightness curve and the second brightness curve corresponding to each color channel, and the brightness adjustment value of each color channel is determined based on the brightness adjustment curve matching each color channel.

14. A brightness adjustment device, characterized in that, The brightness adjustment device, used in electronic devices, includes: The acquisition unit is used to acquire ambient light information corresponding to the electronic device and image brightness information of the currently displayed image on the screen of the electronic device; A sampling unit is used to determine sampling conditions based on the ambient light information and to determine sample pixels that meet the sampling conditions from the currently displayed image based on the image brightness information. A calculation unit is used to calculate a brightness adjustment value based on the sample pixels, and the brightness adjustment value is used to adjust the brightness of the currently displayed image; The ambient light information includes the light intensity of the scene in which the electronic device is located, and the sampling unit is used for: Based on the light intensity, determine the ambient light coefficient that matches the light intensity; Sampling conditions are determined based on the ambient light coefficient.

15. An electronic device, characterized in that, The system includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method as described in any one of claims 1 to 13.

16. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Backlight control method and device and computer readable storage medium

    CN108806616A