CN115602136A - Brightness adjusting method and device, electronic equipment and storage medium - Google Patents

Brightness adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115602136A
CN115602136A CN202110718761.0A CN202110718761A CN115602136A CN 115602136 A CN115602136 A CN 115602136A CN 202110718761 A CN202110718761 A CN 202110718761A CN 115602136 A CN115602136 A CN 115602136A
Authority
CN
China
Prior art keywords
brightness
information
current
image
curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110718761.0A
Other languages
Chinese (zh)
Inventor
武勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110718761.0A priority Critical patent/CN115602136A/en
Publication of CN115602136A publication Critical patent/CN115602136A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity circuits
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • G09G3/3413Details of control of colour illumination sources

Abstract

A brightness adjustment method and device, electronic equipment and storage medium are provided, wherein the method is applied to the electronic equipment and comprises the following steps: acquiring ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment; determining sampling conditions according to the ambient light information, and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information; and calculating to obtain a brightness adjustment value based on the sample pixel point, wherein the brightness adjustment value can be used for adjusting the brightness of the current display image. By implementing the embodiment of the application, the display effect of the electronic equipment on different display contents can be improved, so that the image display performance of the electronic equipment is improved.

Description

Brightness adjusting method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of screen display technologies, and in particular, to a brightness adjustment method and apparatus, an electronic device, and a storage medium.
Background
Currently, when electronic devices (such as smart phones, computers, televisions, etc.) are in different light environments, the backlight brightness of the screens of the electronic devices is often adjusted according to the light environments, so that users can clearly see the display contents on the screens. However, in practice, it is found that adjusting only the backlight brightness easily reduces the display effect of different display contents, and on the contrary, the user cannot obtain clear picture details, which reduces the image display performance of the electronic device.
Disclosure of Invention
The embodiment of the application discloses a brightness adjusting method and device, electronic equipment and a storage medium, which can improve the display effect of the electronic equipment on different display contents, thereby improving the image display performance of the electronic equipment.
A first aspect of an embodiment of the present application discloses a brightness adjustment method applied to an electronic device, where the method includes:
acquiring ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment;
determining sampling conditions according to the ambient light information, and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information;
and calculating to obtain a brightness adjustment value based on the sample pixel point, wherein the brightness adjustment value is used for adjusting the brightness of the current display image.
A second aspect of the embodiments of the present application discloses a brightness adjusting apparatus, which is applied to an electronic device, and includes:
the acquisition unit is used for acquiring the ambient light information corresponding to the electronic equipment and the image brightness information of the current display image of the screen of the electronic equipment;
the sampling unit is used for determining sampling conditions according to the ambient light information and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information;
and the calculating unit is used for calculating to obtain a brightness adjusting value based on the sample pixel point, and the brightness adjusting value is used for adjusting the brightness of the current display image.
A third aspect of the embodiments of the present application discloses an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor is enabled to implement all or part of the steps in any one of the brightness adjustment methods disclosed in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present 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 of any one of the brightness adjustment methods disclosed in the first aspect of the embodiments of the present application.
Compared with the related art, the embodiment of the application has the following beneficial effects:
in the embodiment of the application, the electronic device applying the brightness adjustment method can acquire the ambient light information corresponding to the electronic device and the image brightness information of the currently displayed image of the electronic device on the screen of the electronic device. On this basis, the electronic device may determine a sampling condition according to the ambient light information, and determine a sample pixel meeting the sampling condition from the currently displayed image according to the image brightness information, so as to obtain a brightness adjustment value based on the sample pixel, where the brightness adjustment value may be used to perform brightness adjustment on the currently displayed image. Therefore, by implementing the embodiment of the application, the electronic device can jointly determine the brightness adjustment value corresponding to the current display image based on the light environment where the electronic device is located and the current display image on the screen, so that not only is the influence of ambient light on the display effect of the electronic device considered, but also targeted brightness adjustment can be realized according to the actual display content of the electronic device, and more and clearer picture details are provided for a user as far as possible. Compared with the scheme of uniformly adjusting the backlight brightness of the screen, the embodiment of the application can flexibly improve the display effect of the electronic equipment according to different display contents of the electronic equipment, thereby being beneficial to improving the image display performance of the electronic equipment.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a brightness adjustment method disclosed in an embodiment of the present application;
fig. 2 is a schematic flowchart of a brightness adjustment method disclosed in an embodiment of the present application;
fig. 3 is a schematic diagram of a brightness adjustment curve disclosed in an embodiment of the present application;
fig. 4 is a schematic flowchart of another brightness adjustment method disclosed in the embodiment of the present application;
fig. 5 is a schematic flowchart of another brightness adjustment method disclosed in the embodiment of the present application;
FIG. 6 is a diagram illustrating a luminance histogram corresponding to a currently displayed image according to an embodiment of the present disclosure;
fig. 7 is a schematic block diagram of a brightness adjustment apparatus according to an embodiment of the present disclosure;
fig. 8 is a schematic block diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses a brightness adjusting method and device, electronic equipment and a storage medium, which can improve the display effect of the electronic equipment on different display contents, thereby improving the image display performance of the electronic equipment.
The following detailed description is made with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a brightness adjustment method disclosed in an embodiment of the present application. As shown in fig. 1, the electronic device 100 may include a screen 101, the screen 101 being used to output a currently displayed image. The screen 101 of the electronic device 100 may include a backlight layer and a display layer, which are not shown in the drawing, where the backlight layer may be used to emit white backlight, and the display layer may be used to adjust the filtering colors and filtering degrees of different pixels, so as to filter the white backlight, and implement color output with different colors and different brightness. For example, taking a Liquid Crystal Display as an example, the Display layer may be a combination of a TFT (Thin Film Transistor) layer, a Liquid Crystal layer, and a filter layer. The voltage signal on the TFT layer is controlled by a processor arranged in the liquid crystal television, the arrangement state of liquid crystal molecules in the liquid crystal layer can be accurately adjusted, corresponding light transmission amount is distributed for different pixel points and filters with different colors in the filter layer, and therefore the brightness of each pixel point on different color channels is adjusted, and the brightness adjustment of the current display image of the screen is achieved.
Alternatively, the screen 101 of the electronic device 100 may also only include a display layer, and the display layer may self-emit light to directly implement brightness adjustment of a currently displayed image on the screen 101 under the control of a processor built in the electronic device 100. For example, taking an OLED (Organic Light Emitting diode) television as an example, the OLED television may have an OLED display screen, and the display layer may be specifically an OLED layer.
In this embodiment of the application, in order to improve the display effect of the electronic device through the brightness adjustment, the electronic device may first 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. On this basis, the influence of the ambient light on the display effect of the electronic device is taken into consideration, the electronic device can determine a sampling condition according to the ambient light information, determine a sample pixel point meeting the sampling condition from the current display image according to the image brightness information, and calculate a brightness adjustment value based on the sample pixel point, wherein the brightness adjustment value can be used for performing targeted brightness adjustment on the current display image.
Optionally, on the basis of implementing the brightness adjustment, the electronic device may further adjust the current backlight brightness of the screen of the electronic device according to the corresponding ambient light information, so that the adjustment of the backlight brightness of the electronic device is balanced with the brightness adjustment of the current display image.
Therefore, by implementing the method, the electronic device can jointly realize the brightness adjustment of the current display image based on the light environment where the electronic device is located and the current display image on the screen, thereby not only considering the influence of ambient light on the display effect of the electronic device, but also realizing the targeted brightness adjustment according to the actual display content of the electronic device, and providing a better display effect for a user as much as possible. Compared with the scheme of uniformly adjusting the backlight brightness of the screen, the method can flexibly improve the display effect of the electronic equipment according to different display contents of the electronic equipment, thereby being beneficial to improving the image display performance of the electronic equipment.
The electronic device may include various devices or systems with a screen display function, such as a mobile phone, a smart wearable device, a television, a display screen, a vehicle-mounted terminal, a tablet Computer, a PC (Personal Computer), a PDA (Personal Digital Assistant), and the like, which is not limited in this embodiment.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a brightness adjustment method according to an embodiment of the present disclosure, where the method can be applied to the electronic device. As shown in fig. 2, the brightness adjusting method may include the steps of:
202. the method comprises the steps of obtaining ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment.
In this embodiment of the application, in order to take the influence of the ambient light on the display effect of the electronic device into consideration for brightness adjustment, the electronic device may first acquire the ambient light information corresponding to the ambient light. The environment light information may include illumination intensity, an illumination frequency range, illumination frequency distribution, an illumination time period, and the like of a scene where the electronic device is located, so as to evaluate different light environments, and facilitate performing targeted adjustment on brightness of a display image on a screen of the electronic device in subsequent steps.
In some embodiments, the electronic device may collect the ambient light information through its built-in ambient light sensor. For example, when the electronic device needs to output a currently displayed image through its screen, it may trigger its ambient light sensor to start up, and collect ambient light information such as illumination intensity of a scene where the electronic device is located in real time. In another example, the electronic device may also start its ambient light sensor at regular intervals to periodically collect ambient light information of a scene where the electronic device is located, so that when the electronic device needs to output a current display image through its screen, the recently collected ambient light information may be directly called, thereby improving the efficiency of obtaining the ambient light information.
In other embodiments, the electronic device may also obtain preset ambient light information, where the preset ambient light information may be manually set by a user in advance before brightness adjustment of a current display image is required; and the electronic equipment can be networked and acquired (such as the weather state and the home layout state of networked storage) through a network communication port of the electronic equipment, so that the electronic equipment arranged at different positions can be managed in a unified manner. Specifically, for example, the electronic device may include a display screen disposed in a mall, a store, or the like, and the corresponding ambient light information such as the illumination intensity, the illumination time period, or the like is usually fixed, so that when the electronic device is started, the fixed ambient light information can be directly obtained. For another example, the electronic device may include a television set disposed in a home, and when the television set is started, information of a schedule (e.g., a time period of the user's home, a fixed time period of turning on the television, etc.), a home layout state (e.g., an indoor lighting layout, a television position, etc.), a current weather state (e.g., a sunny day, a rainy day, etc.), and the like uploaded by the user may be obtained through networking, so as to determine corresponding ambient light information together according to the information.
In the embodiment of the application, the electronic device can also acquire the image brightness information of the currently displayed image output on the screen of the electronic device. The image brightness information may include current brightness information of each pixel in the current display image, an overall brightness distribution condition (such as a brightness distribution histogram, etc.), a brightness range, and the like. It will be appreciated that the image luminance information described above is associated with a selected color space, and that different color spaces may correspond to different luminance information representations. For example, when an RGB color space is used, the gray values of each pixel point in the current display image on three different color channels, namely R (Red), G (Green ), and B (Blue), may respectively represent the current luminance information corresponding to the pixel point on each color channel. Also illustratively, when using the YCbCr color space, the value of each pixel in the currently displayed image in the Y channel, i.e., its luminance component, may be used to represent the current luminance information corresponding to the pixel. Alternatively, the image brightness information of the currently displayed image on the screen of the electronic device may be directly determined according to the brightness result obtained by the test of the color analyzer (such as CA-410).
204. And determining sampling conditions according to the ambient light information, and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information.
In this embodiment, after acquiring the ambient light information and the image brightness information of the currently displayed image, the electronic device may determine a corresponding sampling condition according to the ambient light information, and select one or more sample pixel points meeting the sampling condition in the currently displayed image according to the image brightness information. The sample pixel points may include pixel points in the current display image that are most matched with the ambient light information (i.e., have the best display effect), so that the current brightness information of the sample pixel points may be used as a basis for performing brightness adjustment on the current display image subsequently. For example, the sampling condition may include a constraint condition formed by the ambient light information and the image brightness information, and the constraint condition may be embodied in different forms, such as a functional relation, a numerical range, and the like, so as to be used for screening, in the current display image, sample pixel points meeting the constraint condition.
206. And calculating to obtain a brightness adjustment value based on the sample pixel point, wherein the brightness adjustment value is used for adjusting the brightness of the current display image.
After the electronic device determines the sample pixel point, it may also determine a corresponding brightness adjustment mode according to the sample pixel point, for example, calculate a brightness adjustment curve through fitting, interpolation, and determine a brightness adjustment function through matching, mapping, and the like, so as to determine a corresponding brightness adjustment value for performing brightness adjustment on the entire current display image. For example, for the brightness adjustment curve, the brightness adjustment value may include various coefficients (such as coefficients of a quadratic curve, a cubic curve, etc.) corresponding to the brightness adjustment curve; for the above-described brightness adjustment function, the brightness adjustment value may include respective constants, coefficients, and the like included in the brightness adjustment function.
Specifically, in some embodiments, the brightness adjustment value calculated by the electronic device based on the sample pixel point may include each coefficient corresponding to a brightness adjustment curve, and according to the brightness adjustment value, the corresponding brightness adjustment curve may be uniquely determined. Referring to fig. 3, fig. 3 is a schematic diagram of a brightness adjustment curve according to an embodiment of the present disclosure, where the brightness adjustment curve may be a cubic curve, and a horizontal axis of the rectangular plane coordinate system may represent an original brightness value and a vertical axis thereof may represent an adjusted brightness value, so that for each original brightness value within an abscissa range of the brightness adjustment curve, there is an adjusted brightness value uniquely corresponding to the original brightness value. For example, for a point a (x, y) in fig. 3, the abscissa is x, and the ordinate is y, it indicates that the electronic device may adjust the luminance value of a pixel point of which the original luminance value is x in the current display image of the screen to y, so as to implement luminance adjustment on the current display image.
In other embodiments, the brightness adjustment value calculated by the electronic device based on the sample pixel point may include each constant and coefficient corresponding to the brightness adjustment function, and according to the brightness adjustment value, the corresponding brightness adjustment function may be uniquely determined. On the basis, according to the brightness adjusting function, the original brightness value of each pixel point in the current display image is substituted and calculated as an independent variable, and a mapping function value which is only corresponding to the original brightness value, namely the adjusting brightness value corresponding to each pixel point can be obtained, so that the brightness of the current display image can be adjusted.
Therefore, by implementing the brightness adjustment method described in the above embodiment, the electronic device can implement brightness adjustment required for the current display image based on the light environment where the electronic device is located and the current display image on the screen thereof, so that not only is the influence of ambient light on the display effect of the electronic device considered, but also targeted brightness adjustment can be implemented according to the actual display content of the electronic device, so as to provide a better display effect to a user as much as possible. Compared with the scheme of uniformly adjusting the backlight brightness of the screen, the method can flexibly improve the display effect of the electronic equipment according to different display contents of the electronic equipment, thereby being beneficial to improving the image display performance of the electronic equipment.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another brightness adjustment method disclosed in an embodiment of the present application, where the method can be applied to the electronic device. As shown in fig. 4, the brightness adjustment method may include the steps of:
402. the method comprises the steps of obtaining ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment.
Step 402 is similar to step 202 described above, and is not described herein again.
404. The environment light information comprises the illumination intensity of the scene where the electronic equipment is located, and the environment light coefficient matched with the illumination intensity is determined according to the illumination intensity.
In this embodiment of the application, after obtaining the illumination intensity of a scene where the electronic device is located (for example, collecting the illumination intensity by using a built-in ambient light sensor of the electronic device, or obtaining an illumination intensity preset by a user, etc.), the electronic device may determine an ambient light coefficient matching the illumination intensity according to the illumination intensity. The ambient light coefficient may satisfy a certain numerical condition, for example, within a certain numerical range, or include a plurality of quantized fixed numerical values, and the like, so that differentiated illumination intensities in different scenes may be represented in a relatively uniform and fixed manner. On the basis, the electronic device can determine a corresponding sampling condition according to the ambient light coefficient in the subsequent steps, so that a corresponding brightness adjustment value is obtained through calculation of sample pixel points which accord with the sampling condition in the current display image, and the brightness adjustment of the current display image of the screen of the electronic device can be realized.
In an embodiment, the above-mentioned ambient light coefficient matching with the illumination intensity may be determined by a preset mapping function, that is, a mapping function with the illumination intensity as an independent variable and the matching ambient light coefficient as a dependent variable. For example, after obtaining the illumination intensity L, the electronic device may substitute a value of the illumination intensity into the mapping function f (L) between the illumination intensity and the ambient light coefficient to perform calculation, so that a function value uniquely corresponding to the illumination intensity, that is, an ambient light coefficient matching the illumination intensity may be obtained.
In another embodiment, the electronic device may also obtain the ambient light coefficient matching the illumination intensity by looking up a table. For example, after obtaining the illumination intensity, the electronic device may query a correspondence table between the illumination intensity and the ambient light coefficient, where the correspondence table may include the ambient light coefficient matching each illumination intensity value, and may also include the ambient light coefficient matching different illumination intensity ranges. For example, the table of correspondence between the illumination intensity of the scene in which the electronic device is located and the ambient light coefficient may be as shown in table 1 below. It should be noted that the specific value ranges of the illumination intensity shown in table 1 are only an example, and different illumination intensity ranges may be correspondingly divided according to different brightness adjustment requirements or scene classification criteria to specify corresponding ambient light coefficients.
Table 1:
illumination intensity/illuminance (lux) Coefficient of ambient light
3~7 A
7~15 B
15~30 C
30~75 D
75~150 E
>150 F
When the electronic device is in different scenes, the illumination intensity range of the electronic device in table 1 may be determined according to the illumination intensity (i.e., the illumination degree, which is expressed by lux as a unit) corresponding to the scene where the electronic device is located, which is obtained by the electronic device, and then the ambient light coefficient corresponding to the illumination intensity is queried according to table 1.
Optionally, the ambient light coefficients a to F may include fixed values (e.g., 1.9, 2.0, 2.1, etc.), and may also include fixed value ranges (e.g., a may correspond to 1.9 to 2.0, B may correspond to 1.9 to 2.2, etc.), so that a range of illumination intensities of a certain span may be flexibly matched, and flexibility and reliability of determining the ambient light coefficients are improved.
In some embodiments, the above table 1 can be set through empirical values, and can also be obtained through training through a large amount of data. For example, when the electronic device is in different scenes, the illumination intensity of the scene in which the electronic device is located may be collected, and the backlight brightness (which may also be obtained through training) of the screen of the electronic device that is adaptively set under the illumination intensity may be further determined, so that the illumination intensity or the backlight brightness, and the corresponding ambient light coefficient may be input to the training model for training. On the basis, the training model trained based on the big data can be used for directly calculating the ambient light coefficients corresponding to different illumination intensities, and can also be used for counting and summarizing to obtain the table 1, so that the ambient light coefficients corresponding to different illumination intensities can be conveniently obtained through table lookup.
406. And determining a sampling condition according to the ambient light coefficient.
Step 406 is similar to step 204 described above. It should be noted that after the electronic device determines the ambient light coefficient, the ambient light coefficient may be substituted into a specified sampling condition (e.g., a coefficient as a functional relation, a coefficient of a numerical range, etc.), or different sampling conditions may be selected according to the ambient light coefficient, so as to improve flexibility of determining the sampling condition, and further improve accuracy and reliability of obtaining a sample pixel point from a current display image in a subsequent step.
As an optional implementation manner, before the electronic device determines the sampling condition according to the above ambient light coefficient, the electronic device may further obtain a maximum backlight brightness of the screen of the electronic device. Alternatively, the maximum backlight brightness may be related to the illumination intensity or may be independent of the illumination intensity, and is only a fixed value determined by the hardware condition of the screen of the electronic device. Illustratively, the maximum backlight brightness may be obtained by a color analyzer (e.g., CA-410, etc.) through testing. On this basis, the electronic device may use the maximum backlight brightness as a reference of the sampling condition, that is, determine the corresponding sampling condition jointly according to the ambient light coefficient and the maximum backlight brightness.
408. And respectively determining the current brightness information of each pixel point in the current display image according to the image brightness information.
The image brightness information may include a brightness value of each pixel in the currently displayed image. It should be noted that the luminance value may include a luminance value obtained by down-converting in different color spaces (for example, converting from an RGB color space in which R, G, and B components are known to a YCbCr color space, and the obtained Y component is a luminance component), or may include a luminance value obtained directly by performing a test by a color analyzer. Therefore, according to the image brightness information, the brightness of each pixel point can be acquired respectively, namely the current brightness information of each pixel point is acquired.
410. The sampling conditions comprise a color brightness relational expression, the color parameters of each pixel point are determined, and the pixel points with the current brightness information and the color parameters meeting the color brightness relational expression are selected from the current display image as sample pixel points.
In the embodiment of the present application, the color parameter of each pixel point may be respectively matched with the current brightness information of each pixel point, and the color brightness relational expression may be expressed as follows in a form shown in formula 1:
equation 1:
current luminance value = maximum backlight luminance ^ ambient light coefficient (color parameter/255) ^ ambient light coefficient
The current brightness information may include a brightness value corresponding to each pixel point in a current display picture of a screen of the electronic device, that is, a current brightness value in formula 1; the color parameter may represent an identification value corresponding to the current luminance information and corresponding to each different color channel in the selected color space, and the identification value may be used to represent a gray value (usually 0-255) when the current luminance information is mapped to the corresponding color channel.
In an embodiment, the electronic device may first calculate a current color parameter corresponding to the current luminance information of each pixel according to the color luminance relational expression, and then compare the current color parameter with a reference color parameter to determine a sample pixel where the current color parameter matches the reference color parameter. The reference color parameter refers to a reference color parameter matched with each different luminance information in a mapping relation table between the luminance information and the reference color parameter, and the mapping relation table is obtained by sequentially testing the reference color parameter corresponding to each luminance information in the screen luminance range of the screen of the electronic device.
Illustratively, the mapping table may be obtained by testing display images of different colors and different brightness by using a color analyzer (e.g., CA-410). Specifically, for example, the color analyzer can be used to respectively test the display images corresponding to the gray values (usually 0-255) of the electronic device in different color channels of the selected color space. After the color analyzer obtains the red primary color ratio x, the green primary color ratio y and the brightness lv corresponding to each display image, a mapping relation table between the brightness information (i.e. each gray value) and the reference color parameter can be obtained through calculation according to the conversion relation between x, y and lv and the color space.
On the basis, the electronic equipment can respectively calculate the current color parameters corresponding to the current brightness information of each pixel point according to the color brightness relational expression; and respectively comparing the current color parameter corresponding to each pixel point with the reference color parameter corresponding to the current brightness information of each pixel point, and determining the pixel point matched with the current color parameter and the reference color parameter as a sample pixel point.
In another embodiment, the electronic device may also obtain a reference color parameter corresponding to the current luminance information of each pixel point, and then substitute the current luminance information of each pixel point and the corresponding reference color parameter into the color luminance relation, so as to determine the pixel points that meet the color luminance relation as sample pixel points.
412. And calculating to obtain a brightness adjustment value based on the sample pixel points, wherein the brightness adjustment value is used for adjusting the brightness of the current display image.
Step 412 is similar to step 206, and is not described herein again.
414. And adjusting the current backlight brightness of the screen of the electronic equipment according to the environment light information.
416. And adjusting the brightness of the current display image according to the brightness adjustment value.
It can be understood that, in the embodiment of the present application, the step 414 and the step 416 may be performed simultaneously, so that the electronic device may adjust the current backlight brightness of the screen thereof and also adjust the image brightness information of the current display image output by the screen thereof, thereby balancing the two adjustment manners, facilitating to flexibly adjust the screen display output effect according to different light environments and different image contents, and avoiding the problems of detail loss, gray screen, glare, reflection of light, and the like as much as possible. Or, the two operations may be performed in different time periods, and the order of implementing the two operations is not limited in the embodiment of the present application, so that the degree and effect of the picture adjustment may be more obvious to the user.
Therefore, by implementing the brightness adjustment method described in the above embodiment, the influence of ambient light on the display effect of the electronic device can be considered, and meanwhile, the targeted brightness adjustment is implemented according to the actual display content of the electronic device, so as to provide a better display effect to the user as much as possible, thereby flexibly improving the display effect of the electronic device according to different display contents of the electronic device, and being beneficial to improving the image display performance of the electronic device; in addition, the sample pixel points are determined according to the color brightness relational expression, so that the pixel points which are most matched with the ambient light information in the current display image can be obtained, the best display effect can be realized after brightness adjustment is carried out, and the accuracy of brightness adjustment of the current display image by the electronic equipment is greatly improved; in addition, through adjusting the backlight brightness of the screen of the electronic equipment and the image brightness of the currently displayed image at the same time, the two adjustment modes can be balanced, the screen display effect can be flexibly adjusted according to different light environments and different image contents, and the stability and the reliability of image display output of the electronic equipment are improved.
Referring to fig. 5, fig. 5 is a flowchart illustrating another brightness adjustment method disclosed in the embodiment of the present application, which can be applied to the electronic device. As shown in fig. 5, the brightness adjustment method may include the steps of:
502. the method comprises the steps of obtaining ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment.
Step 502 is similar to step 202 described above, and is not described herein again.
504. The environment light information comprises the illumination intensity of the scene where the electronic equipment is located, and the environment light coefficient matched with the illumination intensity is determined according to the illumination intensity.
506. According to the illumination intensity, the maximum backlight brightness of the screen of the electronic equipment is determined.
508. And jointly determining a sampling condition according to the ambient light coefficient and the maximum backlight brightness.
Step 504, step 506 and step 508 are similar to step 404 and step 406, and are not described again here.
510. And respectively determining the current brightness information of each pixel point in the current display image according to the image brightness information.
512. The sampling conditions comprise a color brightness relational expression, the color parameters of each pixel point are determined, and the pixel points with the current brightness information and the color parameters meeting the color brightness relational expression are selected from the current display image and serve as sample pixel points.
Step 510 and step 512 are similar to step 408 and step 410, and are not described herein again.
514. And calculating a first brightness curve corresponding to the current display image according to the sample pixel points.
In the embodiment of the application, the first brightness curve corresponding to the current display image obtained by calculating the sample pixel points can represent the optimal image brightness curve of the current display image in the light environment where the electronic device is located. The sample pixel points can include pixel points in the current display image which are most matched with the ambient light information (namely, have the best display effect), so that the current brightness information of the sample pixel points can be used as the basis for adjusting the brightness of the current display image subsequently.
Specifically, after the electronic device determines the sample pixel points, the electronic device may calculate the sample pixel points through interpolation, fitting, and the like, so as to obtain a first brightness curve. In an embodiment, the electronic device may obtain current luminance information of each sample pixel point, and perform interpolation calculation according to the current luminance information to obtain a first luminance curve corresponding to a current display image. The interpolation calculation may be performed by various interpolation algorithms such as cubic spline interpolation, piecewise low-order interpolation, and the like, and is not specifically limited in the embodiment of the present application. Further exemplarily, after obtaining the current luminance information of each sample pixel point, the electronic device may also perform fitting calculation according to the current luminance information to obtain a first luminance curve with the highest matching degree with each sample pixel point.
It should be noted that, for a plurality of different color channels in the selected color space, the electronic device may determine a plurality of groups of different sample pixel points, so as to calculate a first brightness curve corresponding to each color channel, respectively, for brightness adjustment in the subsequent steps for each color channel of the currently displayed image. Exemplarily, if the RGBW display array (i.e., each pixel includes four subpixels of red R, green G, blue B, and white W) is adopted on the screen of the electronic device, and the RGBW display array corresponds to the RGB color space, three groups of different sample pixels under three color channels of R, G, and B may be respectively and correspondingly selected, and then corresponding first luminance curves are respectively calculated.
516. And acquiring a second brightness curve generated based on the image brightness range of the current display image.
In this embodiment, the electronic device may select a plurality of pixel points from the current display image according to a certain brightness step (that is, a brightness value with the same interval) within the image brightness range of the current display image, and generate a second brightness curve similar to the first brightness curve in a manner similar to that in step 514. The second brightness curve can be used for representing the overall brightness state of the currently displayed image of the screen of the electronic device. On the basis, the electronic device may calculate a brightness adjustment curve according to the first brightness curve and the second brightness curve, and determine a brightness adjustment value according to the brightness adjustment curve, so as to adjust the brightness of the current display image.
For example, the electronic device may determine a plurality of sampling brightness information according to the target step size within the image brightness range of the currently displayed image. For example, since the image brightness range of the currently displayed image is 0 to 255 at most, 25 may be used as the target step at most when 10 pieces of sampling brightness information are selected; for another example, if the image luminance range of the currently displayed image is 100 to 200, and if 20 pieces of sampling luminance information are selected, the target step size may be 5 at most.
Furthermore, the electronic device can respectively select target pixel points with each sampling brightness information from the current display picture, and then can generate a second brightness curve according to the target pixel points, so as to adjust the brightness of the current display image in the subsequent steps.
518. And counting a brightness histogram corresponding to the current display image according to the current brightness information of each pixel point in the current display image.
Specifically, in a current display image on the screen of the electronic device, the brightness value corresponding to each pixel point may be quantized to a certain value within a certain numerical value range (for example, a gray value within a gray value range of 0 to 255), so that the electronic device may perform histogram statistics on the current brightness information of each pixel point to obtain a brightness histogram corresponding to the current display image, and the brightness histogram may be used to feed back the overall brightness distribution condition of the current display image.
For example, please refer to fig. 6, fig. 6 is a schematic diagram of a luminance histogram corresponding to a currently displayed image according to an embodiment of the present application. As shown in fig. 6, the electronic device may first determine a plurality of luminance intervals (e.g., 10, 64, 128, etc.) within a screen luminance range of a screen of the electronic device, and then count the number of pixels of which the current luminance information falls in each luminance interval according to the luminance intervals, so as to obtain a luminance histogram corresponding to the current display image. Optionally, the electronic device may also determine the brightness interval within the image brightness range of the current display image, so as to avoid that the number of the pixel points counted in a part of the brightness intervals is 0, which is beneficial to saving counting calculation resources.
520. And calculating an average brightness coefficient corresponding to the current display image according to the brightness histogram.
In this embodiment of the present application, after obtaining a luminance histogram corresponding to a current display image through statistics, the electronic device may calculate a histogram mean value of the luminance histogram as an average luminance coefficient corresponding to the current display image. For example, to calculate the histogram mean, the electronic device may first perform histogram summation on the luminance histogram corresponding to the current display image, and then divide the sum by the screen luminance range, so as to obtain an average luminance coefficient corresponding to the current display image. Alternatively, the sum may be divided by the image brightness range of the currently displayed image to obtain another average brightness coefficient in different brightness ranges.
It is to be understood that, the step 516, the step 518, and the step 520 may be executed after the step 510, so that the calculation of the first luminance curve, the second luminance curve, and the average luminance coefficient can be executed simultaneously, so as to reduce the calculation time and improve the efficiency of the electronic device in adjusting the luminance of the current display image.
522. And calculating to obtain a brightness adjustment curve according to the first brightness curve, the second brightness curve and the average brightness coefficient, and determining a brightness adjustment value according to the brightness adjustment curve.
In this embodiment, after obtaining the first luminance curve, the second luminance curve, and the average luminance coefficient, the electronic device may calculate a corresponding luminance adjustment curve accordingly. Illustratively, the calculation of the brightness adjustment curve may be implemented by the following equation 2:
equation 2:
luminance adjustment curve = (first luminance curve-second luminance curve) × average luminance coefficient/100 + first luminance curve
The brightness adjustment curve can reflect the mapping relationship between the original brightness value and the adjustment brightness value, the horizontal axis in the rectangular plane coordinate system where the brightness adjustment curve is located can represent the original brightness value, and the vertical axis can represent the adjustment brightness value, so that the adjustment brightness value uniquely corresponding to each original brightness value in the horizontal coordinate range of the brightness adjustment curve exists. Based on the brightness adjustment curve, the electronic device can adjust the brightness values of the pixel points with different original brightness values in the current display image of the screen to be adjustment brightness values, so as to adjust the brightness of the current display image.
Optionally, in a plurality of color channels (e.g., different color channels such as R, G, and B included in an RGB color space) included in the current display image, the electronic device may calculate a brightness adjustment curve matched with each color channel according to a first brightness curve, a second brightness curve, and an average brightness coefficient corresponding to each color channel, and determine a brightness adjustment value of each color channel according to the brightness adjustment curve matched with each color channel, so as to perform brightness adjustment on the current display image in each color channel, and finally implement overall brightness adjustment on the current display image.
524. And adjusting the current backlight brightness of the screen of the electronic equipment according to the ambient light information, and adjusting the brightness of the current display image according to the brightness adjustment value.
Step 524 is similar to step 414 and step 416 described above, and is not described herein again.
Therefore, the implementation of the brightness adjustment method described in the above embodiment can consider the influence of ambient light on the display effect of the electronic device, and meanwhile, achieve targeted brightness adjustment according to the actual display content of the electronic device, so as to provide a better display effect to the user as much as possible, thereby flexibly improving the display effect of the electronic device according to different display contents of the electronic device, and being beneficial to improving the image display performance of the electronic device; in addition, the brightness adjustment curve is obtained through calculation by the method, the calculation process is simple, the calculation amount is relatively small, the subsequent brightness adjustment is more convenient, and the efficiency of the electronic equipment in adjusting the brightness of the current display image is improved.
Referring to fig. 7, fig. 7 is a schematic block diagram of a brightness adjustment apparatus according to an embodiment of the disclosure, where the brightness adjustment apparatus can be applied to the electronic device. As shown in fig. 7, the brightness adjusting apparatus may include an obtaining unit 701, a sampling unit 702, and a calculating unit 703, wherein:
an obtaining unit 701, configured to obtain ambient light information corresponding to an electronic device and image brightness information of a currently displayed image on a screen of the electronic device;
a sampling unit 702, configured to determine a sampling condition according to the ambient light information, and determine, according to the image brightness information, a sample pixel meeting the sampling condition from a currently displayed image;
the calculating unit 703 is configured to obtain a brightness adjustment value based on the sample pixel, where the brightness adjustment value is used to perform brightness adjustment on the current display image.
It can be seen that, by using the brightness adjustment apparatus described in the foregoing embodiment, the electronic device can implement brightness adjustment required for the current display image together based on the light environment where the electronic device is located and the current display image on the screen of the electronic device, so that not only is the influence of ambient light on the display effect of the electronic device considered, but also targeted brightness adjustment can be implemented according to the actual display content of the electronic device, so as to provide a better display effect to a user as much as possible. Compared with the scheme of uniformly adjusting the backlight brightness of the screen, the method can flexibly improve the display effect of the electronic equipment according to different display contents of the electronic equipment, thereby being beneficial to improving the image display performance of the electronic equipment.
In one embodiment, the brightness adjusting apparatus may further include a first adjusting unit and a second adjusting unit, not shown, wherein:
the first adjusting unit is used for adjusting the current backlight brightness of the screen of the electronic equipment according to the ambient light information;
and the second adjusting unit is used for adjusting the brightness of the current display image according to the brightness adjusting value.
In an embodiment, the ambient light information may include an illumination intensity of a scene where the electronic device is located, and when determining the sampling condition according to the ambient light information, the sampling unit 702 may specifically include:
determining an ambient light coefficient matched with the illumination intensity according to the illumination intensity;
and determining a sampling condition according to the ambient light coefficient.
In an embodiment, the obtaining unit 701 may be further configured to obtain a maximum backlight brightness of a screen of the electronic device;
when determining the sampling condition according to the above ambient light information, the sampling unit 702 may specifically include:
and jointly determining a sampling condition according to the ambient light coefficient and the maximum backlight brightness.
In an embodiment, the sampling condition may include a color brightness relational expression, and when determining, according to the image brightness information, a sample pixel meeting the sampling condition from a currently displayed image, the sampling unit 702 may specifically include:
respectively determining the current brightness information of each pixel point in the current display image according to the image brightness information; and determining the color parameter of each pixel point, and selecting the pixel point of which the current brightness information and the color parameter accord with the color brightness relation from the current display image as a sample pixel point.
Exemplarily, when selecting sample pixel points, the sampling unit 702 may respectively calculate current color parameters corresponding to the current luminance information of each pixel point according to the color luminance relational expression;
and respectively comparing the current color parameter corresponding to each pixel point with the reference color parameter corresponding to the current brightness information of each pixel point, and determining the pixel point matched with the current color parameter and the reference color parameter as a sample pixel point.
Also exemplarily, the sampling unit 702 may further obtain a reference color parameter corresponding to the current luminance information of each pixel point;
and respectively substituting the current brightness information of each pixel point and the corresponding reference color parameter into the color brightness relational expression, and determining the pixel points which accord with the color brightness relational expression as sample pixel points.
In a mapping relationship table between the luminance information and the reference color parameter, the sampling unit 702 may respectively query and obtain the reference color parameter corresponding to the current luminance information of each pixel point, where the mapping relationship table is obtained by sequentially testing the reference color parameter corresponding to each luminance information within the screen luminance range of the screen of the electronic device.
It can be seen that, by using the brightness adjustment apparatus described in the above embodiment, the influence of ambient light on the display effect of the electronic device can be considered, and meanwhile, the targeted brightness adjustment is implemented according to the actual display content of the electronic device, so as to provide a better display effect to the user as much as possible, thereby flexibly improving the display effect of the electronic device according to different display contents of the electronic device, and being beneficial to improving the image display performance of the electronic device; in addition, the sample pixel points are determined according to the color brightness relational expression, so that the pixel points which are most matched with the ambient light information in the current display image can be obtained, the best display effect can be realized after brightness adjustment is carried out, and the accuracy of brightness adjustment of the current display image by the electronic equipment is greatly improved; in addition, through adjusting the backlight brightness of the screen of the electronic equipment and the image brightness of the currently displayed image at the same time, the two adjustment modes can be balanced, the screen display effect can be flexibly adjusted according to different light environments and different image contents, and the stability and the reliability of image display output of the electronic equipment are improved.
In an embodiment, when the number of the sample pixel points exceeds the sampling threshold, the sampling unit 702 may further select a part of the sample pixel points whose number is the sampling threshold from the sample pixel points, and reject other sample pixel points, so as to perform a subsequent brightness adjustment step by using a fixed number of sample pixel points, thereby reducing the amount of calculation and improving the efficiency of the electronic device in performing brightness adjustment on the current display image.
In an embodiment, when the calculating unit 703 calculates the brightness adjustment value based on the sample pixel, the calculating may specifically include:
calculating a first brightness curve corresponding to the current display image according to the sample pixel points;
acquiring a second brightness curve generated based on the image brightness range of the current display image;
and calculating to obtain a brightness adjustment curve according to the first brightness curve and the second brightness curve, and determining a brightness adjustment value according to the brightness adjustment curve.
When calculating the first luminance curve corresponding to the currently displayed image according to the sample pixel points, the calculating unit 703 may perform interpolation calculation on the sample pixel points to determine the first luminance curve corresponding to the currently displayed image.
When a second brightness curve generated based on the image brightness range of the current display image is obtained, the calculating unit 703 may determine a plurality of pieces of sampling brightness information according to a target step length within the image brightness range of the current display image; respectively selecting target pixel points with each sampling brightness information from a current display picture; and generating a second brightness curve according to the target pixel point.
In an embodiment, before the calculating unit 703 calculates the brightness adjustment curve according to the first brightness curve and the second brightness curve, it may also calculate a brightness histogram corresponding to the current display image according to the current brightness information of each pixel point in the current display image; calculating an average brightness coefficient corresponding to the current display image according to the brightness histogram;
therefore, when calculating the brightness adjustment curve, the calculating unit 703 may specifically calculate the brightness adjustment curve according to the first brightness curve, the second brightness curve, and the average brightness coefficient.
In an embodiment, the calculating unit 703 may further calculate, in a plurality of color channels included in the current display image, a brightness adjustment curve matched with each color channel according to the first brightness curve and the second brightness curve corresponding to each color channel, respectively, and determine the brightness adjustment value of each color channel according to the brightness adjustment curve matched with each color channel, respectively.
It can be seen that, by using the brightness adjustment apparatus described in the above embodiment, the influence of ambient light on the display effect of the electronic device can be considered, and meanwhile, the targeted brightness adjustment is implemented according to the actual display content of the electronic device, so as to provide a better display effect to the user as much as possible, thereby flexibly improving the display effect of the electronic device according to different display contents of the electronic device, and being beneficial to improving the image display performance of the electronic device; in addition, the brightness adjustment curve is obtained through calculation by the method, the calculation process is simple, the calculation amount is relatively small, the subsequent brightness adjustment is more convenient, and the efficiency of the electronic equipment for adjusting the brightness of the current display image is favorably improved.
Referring to fig. 8, fig. 8 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 8, the electronic device may include:
a memory 801 in which executable program code is stored;
a processor 802 coupled with the memory 801;
the processor 802 calls the executable program code stored in the memory 801, and may perform all or part of the steps of any of the brightness adjustment methods described in the above embodiments.
Further, the present application further discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute all or part of the steps of any one of the brightness adjustment methods described in the above embodiments.
In addition, the embodiments of the present application further disclose a computer program product, which when run on a computer, enables the computer to execute all or part of the steps of any one of the brightness adjustment methods described in the above embodiments.
It will be understood by those skilled in the art that all or part of the steps of the methods of the embodiments described above may be implemented by associated hardware instructed by a program, which may 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), a Compact Disc-Read-Only Memory (CD-ROM) or other Memory capable of storing data, a magnetic tape, or any other computer-readable medium capable of storing data.
The foregoing describes in detail a brightness adjustment method and apparatus, an electronic device, and a storage medium disclosed in the embodiments of the present application, and specific examples are applied herein to explain the principles and implementations of the present application, and the description of the foregoing embodiments is only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (17)

1. A brightness adjustment method is applied to an electronic device, and the method comprises the following steps:
acquiring ambient light information corresponding to the electronic equipment and image brightness information of a current display image of a screen of the electronic equipment;
determining sampling conditions according to the ambient light information, and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information;
and calculating to obtain a brightness adjustment value based on the sample pixel point, wherein the brightness adjustment value is used for adjusting the brightness of the current display image.
2. The method of claim 1, wherein after the computing a luma adjustment value based on the sample pixel points, the method further comprises:
and adjusting the current backlight brightness of the screen of the electronic equipment according to the ambient light information.
3. The method of claim 1, wherein the ambient light information comprises an illumination intensity of a scene in which the electronic device is located, and wherein determining the sampling condition based on the ambient light information comprises:
determining an ambient light coefficient matched with the illumination intensity according to the illumination intensity;
and determining a sampling condition according to the ambient light coefficient.
4. The method of claim 3, wherein prior to said determining a sampling condition from the ambient light coefficient, the method further comprises:
acquiring the maximum backlight brightness of a screen of the electronic equipment;
the determining of the sampling condition according to the ambient light coefficient comprises:
and determining a sampling condition according to the ambient light coefficient and the maximum backlight brightness.
5. The method according to any one of claims 1 to 4, wherein the sampling condition comprises a color brightness relation, and the determining a sample pixel point meeting the sampling condition from the currently displayed image according to the image brightness information comprises:
respectively determining the current brightness information of each pixel point in the current display image according to the image brightness information;
and determining the color parameter of each pixel point, and selecting the pixel point of which the current brightness information and the color parameter accord with the color brightness relational expression from the current display image as a sample pixel point.
6. The method of claim 5, wherein the determining the color parameter of each pixel and selecting the pixel having the current luminance information and the color parameter corresponding to the color-luminance relationship from the current display image as the sample pixel comprises:
respectively calculating current color parameters corresponding to the current brightness information of each pixel point according to the color brightness relational expression;
and respectively comparing the current color parameter corresponding to each pixel point with the reference color parameter corresponding to the current brightness information of each pixel point, and determining the pixel point matched with the current color parameter and the reference color parameter as a sample pixel point.
7. The method of claim 5, wherein the determining the color parameter of each pixel and selecting a pixel having current luminance information and a color parameter corresponding to the color-luminance relationship from the current display image as a sample pixel comprises:
acquiring a reference color parameter corresponding to the current brightness information of each pixel point;
and respectively substituting the current brightness information of each pixel point and the corresponding reference color parameters into the color brightness relational expression, and determining the pixel points which accord with the color brightness relational expression as sample pixel points.
8. The method according to claim 7, wherein the obtaining of the reference color parameter corresponding to the current luminance information of each pixel point comprises:
and respectively inquiring a mapping relation table between the brightness information and the reference color parameters to obtain the reference color parameters corresponding to the current brightness information of each pixel point, wherein the mapping relation table is obtained by sequentially testing the reference color parameters corresponding to each brightness information in the screen brightness range of the screen of the electronic equipment.
9. The method according to any one of claims 1 to 4, wherein after determining the sample pixel point meeting the sampling condition from the currently displayed image according to the image brightness information, the method further comprises:
and if the number of the sample pixel points exceeds a sampling threshold, selecting partial sample pixel points with the number being the sampling threshold from the sample pixel points, and rejecting other sample pixel points.
10. The method according to any one of claims 1 to 4, wherein the calculating a luminance adjustment value based on the sample pixel point comprises:
calculating a first brightness curve corresponding to the current display image according to the sample pixel points;
acquiring a second brightness curve generated based on the image brightness range of the current display image;
and calculating to obtain a brightness adjustment curve according to the first brightness curve and the second brightness curve, and determining a brightness adjustment value according to the brightness adjustment curve.
11. The method of claim 10, wherein said calculating a first luminance curve corresponding to the currently displayed image according to the sample pixel point comprises:
and carrying out interpolation calculation on the sample pixel points, and determining a first brightness curve corresponding to the current display image.
12. The method of claim 10, wherein obtaining a second luminance profile generated based on an image luminance range of the currently displayed image comprises:
determining a plurality of sampling brightness information according to a target step length in the image brightness range of the current display image;
respectively selecting target pixel points with the sampling brightness information from the current display picture;
and generating a second brightness curve according to the target pixel point.
13. The method according to claim 10, wherein before the calculating a luminance adjustment curve according to the first luminance profile and the second luminance profile, the method further comprises:
counting a brightness histogram corresponding to the current display image according to the current brightness information of each pixel point in the current display image;
calculating an average brightness coefficient corresponding to the current display image according to the brightness histogram;
the calculating to obtain a brightness adjustment curve according to the first brightness curve and the second brightness curve includes:
and calculating to obtain a brightness adjustment curve according to the first brightness curve, the second brightness curve and the average brightness coefficient.
14. The method of claim 10, wherein calculating a brightness adjustment curve according to the first brightness curve and the second brightness curve, and determining a brightness adjustment value according to the brightness adjustment curve comprises:
in a plurality of color channels included in the current display image, a brightness adjustment curve matched with each color channel is obtained through calculation according to a first brightness curve and a second brightness curve corresponding to each color channel, and a brightness adjustment value of each color channel is determined according to the brightness adjustment curve matched with each color channel.
15. A brightness adjustment device applied to an electronic apparatus, the brightness adjustment device comprising:
the acquisition unit is used for acquiring the ambient light information corresponding to the electronic equipment and the image brightness information of the current display image of the screen of the electronic equipment;
the sampling unit is used for determining sampling conditions according to the ambient light information and determining sample pixel points meeting the sampling conditions from the current display image according to the image brightness information;
and the calculating unit is used for calculating to obtain a brightness adjusting value based on the sample pixel point, and the brightness adjusting value is used for adjusting the brightness of the current display image.
16. An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and wherein the computer program, when executed by the processor, causes the processor to carry out the method according to any one of claims 1 to 14.
17. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 14.
CN202110718761.0A 2021-06-28 2021-06-28 Brightness adjusting method and device, electronic equipment and storage medium Pending CN115602136A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110718761.0A CN115602136A (en) 2021-06-28 2021-06-28 Brightness adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110718761.0A CN115602136A (en) 2021-06-28 2021-06-28 Brightness adjusting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115602136A true CN115602136A (en) 2023-01-13

Family

ID=84841283

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110718761.0A Pending CN115602136A (en) 2021-06-28 2021-06-28 Brightness adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115602136A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116884359A (en) * 2023-09-06 2023-10-13 深圳市明亚顺科技有限公司 Adaptive dimming method, device, equipment and storage medium based on picture content

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116884359A (en) * 2023-09-06 2023-10-13 深圳市明亚顺科技有限公司 Adaptive dimming method, device, equipment and storage medium based on picture content

Similar Documents

Publication Publication Date Title
US10535125B2 (en) Dynamic global tone mapping with integrated 3D color look-up table
US8300069B2 (en) Optimal backlighting determination apparatus and method
CN105225647B (en) Luminance regulating method and device
CN109274985B (en) Video transcoding method and device, computer equipment and storage medium
KR20070084293A (en) Color adjusting device and method
CN108446705A (en) The method and apparatus of image procossing
CN105915816A (en) Method and equipment for determining brightness of given scene
KR20070090224A (en) Method of electronic color image saturation processing
CN113507598B (en) Video picture display method, device, terminal and storage medium
US20170359488A1 (en) 3D Color Mapping and Tuning in an Image Processing Pipeline
US20080056566A1 (en) Video processing
CN115602136A (en) Brightness adjusting method and device, electronic equipment and storage medium
CN114222098B (en) Gamma curve adjusting method and equipment for projection equipment
CN112929625B (en) Display material rendering method and device
WO2022120799A9 (en) Image processing method and apparatus, electronic device, and storage medium
WO2023284528A1 (en) Image enhancement method and apparatus, computer device, and storage medium
KR101715854B1 (en) Method and unit converting color temperature for improving emotional image quality and digital display apparatus using the same
CN114286000B (en) Image color processing method and device and electronic equipment
CN116092423A (en) Color correction method and device for display panel
CN109379545A (en) Image display method, device, equipment and readable storage medium storing program for executing
CN114531521B (en) Image processing method, device, storage medium and electronic equipment
CN108765502B (en) Color appearance obtaining method in complex environment
WO2023134235A1 (en) Image processing method and electronic device
Lee et al. Piecewise tone reproduction for high dynamic range imaging
US20230206592A1 (en) Method and electronic device for digital image enhancement on display

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination