CN114220399B - Backlight value control method and device, storage medium and electronic equipment - Google Patents

Backlight value control method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114220399B
CN114220399B CN202210026814.7A CN202210026814A CN114220399B CN 114220399 B CN114220399 B CN 114220399B CN 202210026814 A CN202210026814 A CN 202210026814A CN 114220399 B CN114220399 B CN 114220399B
Authority
CN
China
Prior art keywords
brightness
value
image
backlight value
current
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.)
Active
Application number
CN202210026814.7A
Other languages
Chinese (zh)
Other versions
CN114220399A (en
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.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co 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 Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202210026814.7A priority Critical patent/CN114220399B/en
Publication of CN114220399A publication Critical patent/CN114220399A/en
Application granted granted Critical
Publication of CN114220399B publication Critical patent/CN114220399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • 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/36Control 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 using liquid crystals
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/02Improving the quality of display appearance
    • G09G2320/0233Improving the luminance or brightness uniformity across the screen
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/16Calculation or use of calculated indices related to luminance levels in display data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The embodiment of the application provides a method and a device for controlling a backlight value, a storage medium and electronic equipment. The control method may include: processing an image to obtain a brightness value of each pixel of the image, obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image, obtaining a target backlight value according to the average brightness parameter and the current environment light brightness, and controlling the backlight value when the image is displayed according to the target backlight value. When different images are displayed, the backlight value can be dynamically adjusted according to the average brightness parameter of the images and the current ambient light brightness, and therefore the light leakage phenomenon can be dynamically improved.

Description

Backlight value control method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method and an apparatus for controlling a backlight value, a storage medium, and an electronic device.
Background
The liquid crystal display device generally adopts the LED as a backlight source, and due to structural characteristics, heating characteristics of the LED, tolerance and other factors during assembly, the liquid crystal display device generally has a light leakage phenomenon, and the light leakage belongs to a normal phenomenon within a certain range, but poor viewing experience can be brought to users more or less in a dark scene. The user can reduce liquid crystal display device's backlight value in order to improve the light leak and experience through the backlight value on the adjustment menu, but reduces the backlight value and can influence the viewing experience under the bright scene, and the user is when watching video moreover, and the image is dynamic change, can't accomplish dynamic adjustment backlight value.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling a backlight value, a storage medium and an electronic device, which can dynamically adjust the backlight value according to an average brightness parameter of an image, thereby dynamically improving a light leakage phenomenon.
In a first aspect, an embodiment of the present application provides a method for controlling a backlight value, where the method includes:
processing an image to obtain a brightness value of each pixel of the image;
obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
obtaining a target backlight value according to the average brightness parameter and the current ambient light brightness;
and controlling the backlight value when the image is displayed according to the target backlight value.
In a second aspect, an embodiment of the present application provides an apparatus for controlling a backlight value, where the apparatus includes:
the processing module is used for processing the image to obtain the brightness value of each pixel of the image;
the first calculation module is used for obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
the second calculation module is used for obtaining a target backlight value according to the average brightness parameter and the current ambient light brightness;
and the control module is used for controlling the backlight value when the image is displayed according to the target backlight value.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the method provided in the embodiment of the present application by calling a computer program stored in the memory.
According to the method for controlling the backlight value, the average brightness parameter of the image can be obtained according to the brightness value of each pixel of the image, the target backlight value can be obtained according to the average brightness parameter and the current ambient light brightness, and the backlight value when the image is displayed can be controlled according to the target backlight value. Therefore, the backlight value can be dynamically adjusted according to the average brightness parameter of the currently displayed image and the current ambient light brightness, that is, different target backlight values are controlled to display the image according to the average brightness of the current image and the ambient light brightness of the image watched by the current user, so that the light leakage phenomenon can be dynamically improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that other drawings can be derived from these drawings by a person skilled in the art without inventive effort.
For a more complete understanding of the present application and its advantages, reference is now made to the following descriptions taken in conjunction with the accompanying drawings. Wherein like reference numerals refer to like parts in the following description.
Fig. 1 is a first flowchart illustrating a backlight value control method according to an embodiment of the present application.
Fig. 2 is an exemplary diagram of histogram information of an image.
Fig. 3 is an exemplary graph of a relationship between the average luminance level, the current ambient light brightness, and the backlight coefficient.
Fig. 4 is another schematic flow chart of a backlight value control method according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a backlight value control device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
Referring to fig. 1, fig. 1 is a first flowchart illustrating a backlight value control method according to an embodiment of the present disclosure. The flow of the backlight value control method may include:
in 101, the image is processed to obtain a luminance value for each pixel of the image.
After the video signal is input to the display device to be played, the image corresponding to the video signal is in a dynamic change, and the brightness of the image displayed on the display device is also in a dynamic change.
For example, after a video signal is input to the display device, software of the display device performs encoding and decoding processing to obtain an image of a current frame, and the signal analysis module performs analysis processing on the obtained image to obtain a corresponding brightness value of each pixel, for example, the brightness value is presented in a histogram information manner.
Referring to fig. 2, fig. 2 is a schematic diagram of histogram information corresponding to an image. Illustratively, the abscissa is luminance level information, 8-Bit coding is adopted, indicating a luminance range of 0 to 255, 0 indicating all black, 255 indicating brightest, and the ordinate is pixel number information. The luminance level distribution of all pixels of the current image can be obtained from the histogram.
At 102, an average luminance parameter of the image is obtained based on the luminance value of each pixel of the image.
The Average luminance parameter ABP of the image may be a normalized Average luminance APL (Average Program Level), but of course, the Average luminance parameter ABP of the image may be another parameter that can represent the Average luminance of the image.
In one embodiment, the luminance value of each pixel may be represented by histogram information, and an average luminance parameter of the image may be obtained from the histogram information, wherein the average luminance parameter may be calculated by the following formula:
Figure BDA0003464322170000031
wherein, lel i Is the luminance level of the ith order, i ranges from 0 to 255 i Pixel corresponding to the ith-order brightness levelThe quantity, APL, is the normalized average luminance, and the range of values of APL is 0 to 100.
The APL is the normalized average brightness of the current image, so the larger the APL value is, the higher the brightness of the current image of the display device is. When the value of the APL is smaller, the brightness of the current image of the display device is lower.
In 103, a target backlight value is obtained according to the average brightness parameter and the current ambient light brightness.
It can be understood that, if the brightness of the current image of the display device is higher, the corresponding display image is brighter, the light leakage phenomenon of the display device is less likely to be perceived by the user, and as an example, it is obtained through experimental data, if the APL of the current image is greater than 8, the light leakage phenomenon of the display device is basically not perceived by the user, so that the current backlight value of the display device does not need to be adjusted, and the viewing experience of the user in a bright scene is not affected.
Or, the user is in different viewing environments, different environments can correspond to have different environmental light brightnesses, if the current environmental light brightness is higher, the user is also less likely to perceive the light leakage phenomenon of the display device, exemplarily, the experimental data is obtained, the environmental light brightness threshold value is higher than 100Nit, the user basically cannot perceive the light leakage phenomenon of the display device, and therefore the current backlight value of the display device does not need to be adjusted, so that the viewing experience of the user in the brighter environment cannot be influenced.
The current ambient light brightness can be obtained through the ambient light sensor, and the ambient light sensor can dynamically monitor the ambient light brightness.
However, when the brightness of the current image of the display device is lower, the corresponding display screen is darker, and the light leakage phenomenon of the display device is more obvious, the user can more easily perceive the light leakage phenomenon of the display device, and for example, when the APL of the current image is smaller than 8, the user can more obviously perceive the light leakage phenomenon of the display device. Moreover, if the current ambient light brightness corresponding to the viewing environment is lower, the user is more likely to perceive the light leakage phenomenon of the display device, and for example, it is found through experimental data that, if the current ambient light brightness is less than 100Nit, the smaller the current ambient light brightness, the more significantly the user can perceive the light leakage phenomenon of the display device.
Therefore, if the average brightness parameter is not greater than the preset brightness threshold and the current ambient light brightness is not greater than the preset ambient light brightness threshold, the current backlight value of the display device needs to be adjusted to improve the light leakage phenomenon. Specifically, the light leakage phenomenon can be improved by reducing the backlight value.
Because the difference between the average brightness parameter of the image and the current ambient light brightness affects whether the user is likely to perceive the light leakage phenomenon of the display device, the embodiment of the present application may obtain the backlight coefficient according to the average brightness parameter of the image and by combining the current ambient light brightness, wherein the backlight coefficient may be obtained by calculating according to the following formula:
Figure BDA0003464322170000051
Figure BDA0003464322170000052
wherein La is an average brightness level coefficient, ABP is an average brightness parameter, BG is a backlight coefficient, BG ranges from 0 to 1, lamb is the current ambient light brightness, and Lmax is an ambient light brightness threshold.
The average brightness parameter ABP may be APL, la is an average brightness level coefficient associated with the APL, la may be calculated by substituting the APL, and then BG may be calculated by La, the current ambient light brightness, and a preset ambient light brightness threshold, where BG may indicate a ratio that a backlight value corresponding to the current image needs to be adjusted. In this example, the preset ambient light brightness threshold may be set to 100Nit according to experimental data.
Referring to fig. 3, fig. 3 is an exemplary graph of a relationship between an average luminance parameter, a current ambient light luminance, and a backlight coefficient. The average brightness parameter may be APL, the abscissa is APL, the ordinate is BG, and curves when the current ambient light brightness is 5nit,10nit,20nit,30nit,50nit,70nit,90nit, and 100nit are from bottom to top, respectively.
From each curve in fig. 3, when the APL is smaller than the preset brightness threshold, for example, 8, as the APL decreases, the gradient of the BG curve gradually becomes steeper, and it can be understood that the human eye is more sensitive to the brightness change in the dark environment, and therefore, the BG curve gradually changes and shakes as the APL decreases, and the corresponding backlight value decreases by a larger amount, which is in accordance with the visual characteristics of the human eye. Lamb that corresponds to many curves from the bottom up in fig. 3 becomes progressively bigger, and it can be seen that Lamb is lower, and the slope of BG curve becomes steeply gradually, and becomes high along with Lamb, and the change of BG curve tends to be gentle, and it can be understood that, along with ambient light brightness is higher, the user is difficult to perceive the light leak phenomenon more, so the amplitude of backlight value adjustment can be less to also accord with human visual characteristic. When Lamb reaches Lmax, for example: when the light leakage phenomenon of the display device reaches 100Nit, a user basically can not perceive the light leakage phenomenon of the display device, and the backlight value of the current display device does not need to be adjusted, so that the backlight value of the display device can be dynamically adjusted according to the average brightness of the current image and the current ambient light brightness, and the light leakage phenomenon of the display device is better improved.
And after the backlight coefficient of the current image is obtained through calculation, multiplying the backlight coefficient by the current backlight value of the display device, thereby obtaining a target backlight value matched with the average brightness of the current image.
At 104, a backlight value when displaying the image is controlled according to the target backlight value.
And after the target backlight value is obtained through calculation, controlling the backlight value when the image is displayed according to the target backlight value. Therefore, the backlight value of the display device can be dynamically adjusted according to the brightness level of the current image, so that the light leakage phenomenon of the display device can be dynamically improved.
According to the method for controlling the backlight value, the average brightness parameter of the image can be obtained according to the brightness value of each pixel of the image, the target backlight value can be obtained according to the average brightness parameter and the current ambient light brightness, and the backlight value when the image is displayed can be controlled according to the target backlight value. Therefore, the backlight value can be dynamically adjusted according to the average brightness parameter of the current display image and the current ambient light brightness, that is, the image is displayed according to the target backlight value which is controlled to be different between the average brightness of the current image and the current ambient light brightness, so that the light leakage phenomenon of the display device can be dynamically improved.
Referring to fig. 4, fig. 4 is another schematic flow chart of a backlight value control method according to an embodiment of the present application, where the flow chart may include:
in 201, the image is processed to obtain a luminance value for each pixel of the image.
After the video signal is input to the display device to be played, the image corresponding to the video signal is in a dynamic change, and the brightness of the image displayed on the display device is also in a dynamic change. Wherein, the video signal can be input through a source, or the video can be played through a network or locally.
For example, after a video signal is input to the display device, software of the display device performs encoding and decoding processing to obtain an image of a current frame, and the signal analysis module performs analysis processing on the obtained image to obtain a corresponding brightness value of each pixel, for example, the brightness value is presented in a histogram information manner.
Referring to fig. 2, fig. 2 is an exemplary diagram of histogram information of an image. Illustratively, the abscissa is luminance level information, 8-Bit coding is adopted, indicating a luminance range of 0 to 255, 0 indicating all black, 255 indicating brightest, and the ordinate is pixel number information. The luminance level distribution of all pixels of the current image can be obtained from the histogram.
At 202, an average luminance parameter of the image is obtained based on the luminance value of each pixel of the image.
The Average luminance parameter ABP of the image may be normalized Average luminance APL (Average Program Level), but of course, the Average luminance parameter ABP of the image may be other parameters that can represent the Average luminance of the image.
In one embodiment, the luminance value of each pixel may be represented by histogram information, and an average luminance parameter of the image may be obtained from the histogram information, wherein the average luminance parameter may be calculated by the following formula:
Figure BDA0003464322170000071
wherein, lel i Is the luminance level of the ith order, i ranges from 0 to 255 i The APL is the normalized average luminance, and the value range of the APL is 0 to 100.
The APL is the normalized average brightness of the current image, so the larger the APL value is, the higher the brightness of the current image of the display device is. When the value of the APL is smaller, the brightness of the current image of the display device is lower.
In 203, if the average brightness parameter is greater than a preset brightness threshold and/or the current ambient light brightness is greater than a preset ambient light brightness threshold, determining the current backlight value as the target backlight value.
Due to the difference between the average brightness parameter of the image and the current ambient light brightness, whether the user is likely to perceive the light leakage phenomenon of the display device is affected. If the brightness of the current display image of the display device is higher, and the corresponding image picture is brighter, the light leakage phenomenon of the display device is less likely to be perceived by a user, and the current backlight value of the display device may not be adjusted. Therefore, if the average brightness parameter is greater than the preset brightness threshold, the current backlight value is determined as the target backlight value, that is, the display device is controlled to display according to the current backlight value. Illustratively, it is found through experimental data that when the APL is greater than 8, a user basically does not perceive a light leakage phenomenon of the display device, and thus does not need to adjust a current backlight value of the display device, so that a viewing experience in a bright scene is not affected.
Or, the user is in different viewing environments, different environments may have different ambient light intensities, and if the current ambient light intensity is higher, the user is less likely to perceive the light leakage phenomenon of the display device, and the current backlight value of the display device may not be adjusted. Therefore, if the current ambient light brightness is greater than the preset ambient light brightness threshold, the current backlight value is determined as the target backlight value, that is, the display device is controlled to display according to the current backlight value. Illustratively, the preset ambient light brightness threshold may be set to 100Nit according to experimental data, and a user may not substantially perceive a light leakage phenomenon of the display device, so that the current backlight value of the display device does not need to be adjusted, and the viewing experience of the user in a brighter environment may not be affected.
In 204, if the average brightness parameter is not greater than the preset brightness threshold and the current ambient light brightness is not greater than the preset ambient light brightness threshold, a backlight coefficient is obtained according to the average brightness parameter and the current ambient light brightness. When the brightness of the current image of the display device is lower, the corresponding display screen is darker, and the light leakage phenomenon of the display device is more obvious, the user can more easily perceive the light leakage phenomenon of the display device, for example, when the APL of the current image is less than 8, the smaller the APL is, the more obviously the user can feel the light leakage phenomenon of the display device. Furthermore, if the current ambient light brightness is lower, the light leakage phenomenon of the display device is more easily perceived by the user, and for example, it is found through experimental data that, if the current ambient light brightness is lower than 100Nit, the light leakage phenomenon of the display device can be more obviously perceived by the user.
Therefore, if the average brightness parameter is not greater than the preset brightness threshold and the current ambient light brightness is not greater than the preset ambient light brightness threshold, the current backlight value of the display device needs to be adjusted to improve the light leakage phenomenon, and the backlight value needs to be reduced to improve the light leakage phenomenon.
However, since the human eye does not perceive the luminance linearly, the linearly decreased backlight value is not suitable for the visual characteristics of the human eye, and the light leakage phenomenon of the display device cannot be improved well. Therefore, the backlight coefficient can be obtained by combining the current ambient light brightness according to the average brightness parameter of the image, wherein the backlight coefficient can be obtained by calculating according to the following formula:
Figure BDA0003464322170000081
Figure BDA0003464322170000082
wherein La is an average brightness level coefficient, ABP is an average brightness parameter, BG is a backlight coefficient, the value range of BG is 0-1, lamb is the current ambient light brightness, and Lmax is an ambient light brightness threshold.
The average brightness parameter ABP may be APL, la is an average brightness level coefficient associated with the APL, la may be calculated by substituting the APL, and then BG may be calculated by La, the current ambient light brightness, and a preset ambient light brightness threshold, where BG may indicate a ratio that a backlight value corresponding to the current image needs to be adjusted. In this case, the preset ambient light brightness threshold may be set to 100Nit, for example, by experimental data.
Referring to fig. 3, fig. 3 is an exemplary graph of a relationship between an average luminance parameter, a current ambient light luminance, and a backlight coefficient. Wherein, the average brightness parameter can be APL, and the abscissa is APL, and the ordinate is BG, and from the bottom up is that current ambient light brightness is higher and higher respectively, and exemplary current ambient light brightness is: curves at 5nit,10nit,20nit,30nit,50nit,70nit,90nit, and 100nit.
From each curve in fig. 3, when the APL is smaller than the preset brightness threshold, for example, 8, as the APL decreases, the gradient of the BG curve gradually becomes steeper, and it can be understood that the human eye is more sensitive to the brightness change in the dark environment, and therefore, the BG curve gradually changes and shakes as the APL decreases, and the corresponding backlight value decreases by a larger amount, which is in accordance with the visual characteristics of the human eye.
Lamb corresponding to a plurality of curves from bottom to top in fig. 3 gradually increases, and it can be seen that the lower Lamb is, the gradient of the BG curve gradually becomes steep, and as Lamb increases, the change of the BG curve tends to be gentle, and it can be understood that as the ambient light brightness is higher, the light leakage phenomenon is less likely to be perceived by a user, so the amplitude of backlight value adjustment can be smaller, and thus the backlight value adjustment also conforms to the visual characteristics of human eyes. When Lamb reaches Lmax, for example, 100Nit, the user basically does not perceive the light leakage phenomenon of the display device, and does not need to adjust the backlight value of the current display device, so that the backlight value of the display device can be dynamically adjusted according to the average brightness of the current image and the current ambient light brightness, and the light leakage phenomenon of the display device is better improved. Wherein when the average luminance parameter is less than 0.05, the average luminance parameter is determined to be 0.05. It can be understood that when the average brightness parameter is less than or equal to 0.05, the image is close to the black field, and the fixing process is performed at this time, so that the effect of improving light leakage is also ensured.
When the ambient light brightness is less than 5Nit, the ambient light brightness is set to be 5Nit, and it can be understood that when the ambient light brightness is less than 5Nit, the viewing environment is close to darkness, and at the moment, the fixed treatment is carried out, so that the effect of improving light leakage is also ensured.
It should be noted that, if the average luminance parameter is greater than the preset luminance threshold, for example, the value of the APL is greater than 8, the display device is controlled to display according to the current backlight value, or it can be understood that if the average luminance parameter is greater than the preset luminance threshold, the value of the backlight coefficient is 1. If the current ambient light brightness is greater than the preset ambient light brightness threshold, for example, if the value of Lamb is greater than 100Nit, the display device is controlled to display according to the current backlight value, which may also be understood as that if the current ambient light brightness is greater than the preset ambient light brightness threshold, the value of the backlight coefficient is also 1. In 205, a target backlight value is calculated based on the current backlight value and the backlight coefficient.
And after the backlight coefficient corresponding to the matched current image is obtained through calculation, multiplying the backlight coefficient by the current backlight value of the display device, thereby obtaining the target backlight value according with the average brightness of the current image.
At 206, the display device is controlled to display according to the target backlight value.
And after the target backlight value of the current image is obtained through calculation, controlling the backlight value when the image is displayed according to the target backlight value. Therefore, the backlight value can be dynamically adjusted according to the average brightness of the current image, and the light leakage phenomenon of the display device can be effectively improved.
The backlight value control method provided by the embodiment of the application can dynamically acquire the image and process the image to obtain the brightness value of each pixel of the image; obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image; if the average brightness parameter is greater than the preset brightness threshold or the current ambient light brightness is greater than the preset ambient light brightness threshold, the user is not easy to perceive the light leakage phenomenon of the display device, and the backlight value when the image is displayed is controlled according to the current backlight value, so that the viewing experience in a bright scene is not influenced. If the average brightness parameter is not greater than the preset brightness threshold and/or the current environment brightness is not greater than the preset environment brightness threshold, obtaining a target backlight value according to the average brightness parameter and the current environment brightness, and controlling the backlight value when the image is displayed according to the target backlight value. Therefore, the backlight value can be dynamically adjusted according to the average brightness parameter of the current image and in combination with the brightness of the current environment, that is, different target backlight values are controlled to display the image according to different average brightness of the current image and the brightness of the current viewing environment, so that the light leakage phenomenon of the display device can be dynamically improved, and the viewing experience in a bright scene is not influenced.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a backlight value control device according to an embodiment of the present disclosure. The backlight value control apparatus 400 may include:
the processing module 401 is configured to: processing the image to obtain a brightness value of each pixel of the image;
the first calculation module 402 is configured to: obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
the second calculation module 403 is configured to: obtaining a target backlight value according to the average brightness parameter and the current ambient light brightness;
the control module 404 is configured to: and controlling the backlight value when the image is displayed according to the target backlight value.
In one embodiment, the first calculating module 402 calculates the average brightness parameter by the following formula:
Figure BDA0003464322170000111
wherein, lel i The value of i is 0 to 255, num is the ith brightness level i The APL is the normalized average luminance, and the value range of the APL is 0 to 100.
In one embodiment, the second calculation module 403 is configured to: if the average brightness parameter is larger than a preset brightness threshold and/or the current ambient light brightness is larger than a preset ambient light brightness threshold, determining the current backlight value as the target backlight value;
and if the average brightness parameter is not greater than the preset brightness threshold and the current environment light brightness is not greater than the preset environment light brightness threshold, obtaining a target backlight value according to the average brightness parameter and the current environment light brightness.
In one embodiment, the second calculation module 403 is configured to: obtaining a backlight coefficient according to the average brightness parameter and the current ambient light brightness;
and calculating to obtain a target backlight value according to the current backlight value and the backlight coefficient.
In one embodiment, the second calculating module 403 calculates the backlight coefficient by the following formula:
Figure BDA0003464322170000112
Figure BDA0003464322170000113
wherein L is a The average brightness level coefficient is ABP, the average brightness parameter is BG, the value range of BG is 0 to 1, lamb is the current ambient light brightness, and Lmax is a preset ambient light brightness threshold value.
In one embodiment, the second calculation module 403 is configured to: when the average luminance parameter is less than 0.05, setting the average luminance parameter to 0.05;
and when the current ambient light brightness is less than 5Nit, setting the current ambient light brightness to be 5Nit.
The application embodiment provides a computer-readable storage medium, on which a computer program is stored, which when executed on a computer, causes the computer to execute the flow of the processing method of the user interface poster picture provided by the embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute a flow in the method for processing a poster picture in a user interface provided in the embodiment by calling a computer program stored in the memory.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 500 may include components such as a memory 501, a processor 502, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The memory 501 may be used to store applications and data. The memory 501 stores applications containing executable code. The application programs may constitute various functional modules. The processor 502 executes various functional applications and data processing by running an application program stored in the memory 501.
The processor 502 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 501 and calling data stored in the memory 501, thereby integrally monitoring the electronic device.
In this embodiment, the processor 502 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 501 according to the following instructions, and the processor 502 runs the application programs stored in the memory 501, so as to execute:
processing the image to obtain a brightness value of each pixel of the image;
obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
obtaining a target backlight value according to the average brightness parameter and the current ambient light brightness;
and controlling the backlight value when the image is displayed according to the target backlight value.
In some embodiments, please refer to fig. 7, and fig. 7 is a second structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 500 further comprises: a display device 503, a radio frequency circuit 504, a control circuit 505, an input unit 506, an audio circuit 507, a sensor 508, and a power supply 509. The processor 502 is electrically connected to the display device 503, the radio frequency circuit 504, the control circuit 505, the input unit 506, the audio circuit 507, the sensor 508, and the power supply 509.
The display device 503 may be configured to display input information such as images, text, icons, video, and any combination thereof.
The rf circuit 504 is used for transceiving rf signals to communicate with a network device or other electronic devices through wireless communication.
The control circuit 505 is electrically connected to the display device 503, and is configured to control the display device 503 to display information.
The input unit 506 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 506 may include a fingerprint recognition module.
Audio circuitry 507 may provide an audio interface between a user and an electronic device through a speaker, microphone. Where audio circuitry 507 includes a microphone. The microphone is electrically connected to the processor 502. The microphone is used for receiving voice information input by a user.
The sensor 508 is used to collect external environmental information. The sensors 508 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, and the like.
The power supply 509 is used to power the various components of the electronic device 500. In some embodiments, the power supply 509 may be logically coupled to the processor 502 via a power management system, such that the power management system may manage charging, discharging, and power consumption.
Although not shown in the drawings, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 502 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 501 according to the following instructions, and the processor 502 runs the application programs stored in the memory 501, so as to execute:
processing the image to obtain a brightness value of each pixel of the image;
obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
obtaining a target backlight value according to the average brightness parameter and the current ambient light brightness;
and controlling the backlight value when the image is displayed according to the target backlight value.
In one embodiment, the processor 502 calculates the average brightness parameter by the following formula:
Figure BDA0003464322170000131
wherein, lel i The value of i is 0 to 255, num is the ith brightness level i Corresponding to a brightness level of the ith orderThe number of pixels, APL is the normalized average luminance, and the range of the APL is 0 to 100.
In one embodiment, in obtaining the target backlight value according to the average brightness parameter and the current ambient light brightness, the processor 502 executes:
if the average brightness parameter is larger than a preset brightness threshold and/or the current ambient light brightness is larger than a preset ambient light brightness threshold, determining the current backlight value as the target backlight value;
and if the average brightness parameter is not greater than the preset brightness threshold and the current environment light brightness is not greater than the preset environment light brightness threshold, obtaining a target backlight value according to the average brightness parameter and the current environment light brightness.
In one embodiment, in obtaining the target backlight value according to the average brightness parameter, the processor 502 performs obtaining the backlight coefficient according to the average brightness parameter and the current ambient light brightness;
and calculating to obtain a target backlight value according to the current backlight value and the backlight coefficient.
In one embodiment, the processor 502 calculates the backlight coefficient by the following formula:
Figure BDA0003464322170000141
Figure BDA0003464322170000142
wherein L is a The average brightness level coefficient is ABP, the average brightness parameter is BG, the value range of BG is 0-1, lamb is the current ambient light brightness, and Lmax is a preset ambient light brightness threshold value.
In one embodiment, the processor 502 performs determining the average brightness is 0.05 when the average brightness is less than 0.05; and when the current environment light brightness is less than 5Nit, setting the current environment light brightness to be 5Nit.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the backlight value control method, and are not described herein again.
The apparatus for controlling a display device provided in the embodiment of the present application and the processing method for controlling a display device in the above embodiments belong to the same concept, and any method provided in the processing method embodiment for controlling a display device may be run on the processing device for controlling a display device, and a specific implementation process thereof is described in detail in the processing method embodiment for controlling a display device, and is not described herein again.
It should be noted that, for the processing method for controlling the display device in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the flow of the processing method for implementing the control of the display device in the embodiment of the present application can be completed by controlling the related hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the flow of the embodiment of the processing method, such as the control of the display device. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the processing device for controlling the display device according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.

Claims (8)

1. A method for controlling a backlight value, comprising:
processing an image to obtain a brightness value of each pixel of the image;
obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
obtaining a target backlight value according to the average brightness parameter and the current environment light brightness, obtaining a backlight coefficient according to the average brightness parameter and the current environment light brightness, and obtaining the target backlight value by calculation according to the current backlight value and the backlight coefficient, wherein the backlight coefficient is obtained by calculation according to the following formula:
Figure FDA0003935213800000011
Figure FDA0003935213800000012
wherein L is a The average brightness level coefficient is defined as ABP, the average brightness parameter is defined as BG, the value range of BG is 0-1, lamb is the current ambient light brightness, and Lmax is a preset ambient light brightness threshold value;
and controlling the backlight value when the image is displayed according to the target backlight value.
2. The backlight value control method according to claim 1, wherein the average luminance parameter is calculated by the following formula:
Figure FDA0003935213800000013
wherein, lel i The value of i is 0 to 255, num is the ith brightness level i The APL is the normalized average luminance, which is the number of pixels corresponding to the ith-order luminance level, and the range of the APL is 0 to 100.
3. The method of claim 1, wherein obtaining the target backlight value according to the average brightness parameter and the current ambient light brightness comprises:
if the average brightness parameter is larger than a preset brightness threshold and/or the current ambient light brightness is larger than a preset ambient light brightness threshold, determining the current backlight value as the target backlight value;
and if the average brightness parameter is not greater than the preset brightness threshold and the current environment light brightness is not greater than the preset environment light brightness threshold, obtaining a target backlight value according to the average brightness parameter and the current environment light brightness.
4. The method of claim 1, further comprising:
setting the average brightness parameter to 0.05 when the average brightness parameter is less than 0.05;
and when the current environment light brightness is less than 5Nit, setting the current environment light brightness to be 5Nit.
5. A backlight value control apparatus, characterized in that the apparatus comprises:
the processing module is used for processing the image to obtain a brightness value of each pixel of the image;
the first calculation module is used for obtaining an average brightness parameter of the image according to the brightness value of each pixel of the image;
a second calculating module, configured to obtain a target backlight value according to the average brightness parameter and the current ambient light brightness, obtain a backlight coefficient according to the average brightness parameter and the current ambient light brightness, and obtain the target backlight value according to the current backlight value and the backlight coefficient, where the backlight coefficient is obtained by calculating according to the following formula:
Figure FDA0003935213800000021
Figure FDA0003935213800000022
wherein L is a The average brightness level coefficient is defined as ABP, the average brightness parameter is defined as BG, the value range of BG is 0-1, lamb is the current ambient light brightness, and Lmax is a preset ambient light brightness threshold value;
and the control module is used for controlling the backlight value when the image is displayed according to the target backlight value.
6. The backlight value control device of claim 5, wherein the second calculation module is further configured to:
if the average brightness parameter is larger than a preset brightness threshold and/or the current ambient light brightness is larger than a preset ambient light brightness threshold, determining the current backlight value as the target backlight value;
and if the average brightness parameter is not greater than the preset brightness threshold and the current environment light brightness is not greater than the preset environment light brightness threshold, obtaining a target backlight value according to the average brightness parameter and the current environment light brightness.
7. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any of claims 1 to 4.
8. An electronic device comprising a memory, a processor, a display device, wherein the processor is configured to perform the method of any one of claims 1 to 4 by invoking a computer program stored in the memory.
CN202210026814.7A 2022-01-11 2022-01-11 Backlight value control method and device, storage medium and electronic equipment Active CN114220399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210026814.7A CN114220399B (en) 2022-01-11 2022-01-11 Backlight value control method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210026814.7A CN114220399B (en) 2022-01-11 2022-01-11 Backlight value control method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN114220399A CN114220399A (en) 2022-03-22
CN114220399B true CN114220399B (en) 2023-03-24

Family

ID=80708093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210026814.7A Active CN114220399B (en) 2022-01-11 2022-01-11 Backlight value control method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114220399B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104715736B (en) * 2013-12-16 2018-02-23 炬芯(珠海)科技有限公司 The backlight Automatic adjustment method and device of a kind of electronic equipment
CN108090405B (en) * 2016-11-23 2020-08-14 腾讯科技(深圳)有限公司 Face recognition method and terminal
CN107437402B (en) * 2017-06-07 2019-09-06 微鲸科技有限公司 Method for controlling backlight thereof, device and display equipment
CN108806616A (en) * 2018-05-30 2018-11-13 深圳市零度智控科技有限公司 Method for controlling backlight thereof, device and computer readable storage medium
CN111462701A (en) * 2019-01-18 2020-07-28 北京小米移动软件有限公司 Backlight brightness adjusting method and device

Also Published As

Publication number Publication date
CN114220399A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN110619836B (en) Display screen processing method and device, storage medium and electronic equipment
CN107957294B (en) Ambient light intensity detection method and device, storage medium and electronic equipment
CN107111992B (en) method and terminal for adjusting backlight brightness
US9818332B2 (en) Image display method and electronic device
CN107293265B (en) Display screen picture adjusting method, display terminal and readable storage medium
CN112071267B (en) Brightness adjusting method, brightness adjusting device, terminal equipment and storage medium
CN112950499B (en) Image processing method, device, electronic equipment and storage medium
CN114203119B (en) Display control method, display control device, electronic equipment and storage medium
CN108806616A (en) Method for controlling backlight thereof, device and computer readable storage medium
CN114119431A (en) Image processing method, image processing device, electronic equipment and storage medium
US11232757B2 (en) Backlight control method and device, and computer-readable storage medium for improving the contrast, restoring the image, and ensuring the distortion of the image
CN112289278A (en) Screen brightness adjusting method, screen brightness adjusting device and electronic equipment
CN114038370B (en) Display parameter adjustment method and device, storage medium and display equipment
CN114119432A (en) Image processing method, image processing device, electronic equipment and storage medium
CN116382540A (en) Display method and device for electronic paper, electronic equipment and storage medium
CN107968939B (en) Display screen processing method and device, storage medium and electronic device
CN114220399B (en) Backlight value control method and device, storage medium and electronic equipment
CN112992052B (en) Power consumption control method of display panel and display panel
CN115691387A (en) Method for adjusting refresh frequency of display screen and electronic equipment
CN114242021A (en) Display control method, display control device, electronic equipment and storage medium
CN114092452A (en) Method and device for enhancing image visual effect, storage medium and terminal equipment
CN111367604A (en) Processing method and device for file display, storage medium and terminal
CN114822444B (en) Compatible display method, device, equipment and readable storage medium
CN118732811A (en) Display method, display device, storage medium and electronic equipment
CN117116188A (en) Color temperature adjusting method, color temperature adjusting device, storage medium and display device

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
GR01 Patent grant
GR01 Patent grant