CN117496900A - Display backlight adjusting method and device, electronic equipment and storage medium - Google Patents

Display backlight adjusting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117496900A
CN117496900A CN202311361718.9A CN202311361718A CN117496900A CN 117496900 A CN117496900 A CN 117496900A CN 202311361718 A CN202311361718 A CN 202311361718A CN 117496900 A CN117496900 A CN 117496900A
Authority
CN
China
Prior art keywords
image
value
average
difference value
partition
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
CN202311361718.9A
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.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202311361718.9A priority Critical patent/CN117496900A/en
Publication of CN117496900A publication Critical patent/CN117496900A/en
Pending legal-status Critical Current

Links

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
    • G09G3/342Control of illumination source using several illumination sources separately controlled corresponding to different display panel areas, e.g. along one dimension such as lines
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The application relates to a method and a device for adjusting a display backlight, an electronic setting and a storage medium, wherein the method comprises the following steps: partitioning a current display image of a display to obtain a plurality of image partitions; determining an average gray value and a maximum gray value corresponding to each image partition; for each image partition, determining adjusting parameters corresponding to the image partition according to average gray values and maximum gray values of the image partition and a plurality of adjacent image partitions; and adjusting the brightness of the backlight corresponding to the image partition based on the adjustment parameters. Therefore, the capability and effect of improving local backlight adjustment can be realized, and better image quality experience can be presented.

Description

Display backlight adjusting method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of television backlight technologies, and in particular, to a method and an apparatus for adjusting a display backlight, an electronic device, and a storage medium.
Background
With the development of display-like LCD (Liquid Crystal Display ) electronics, the backlight adjustment of LCD electronics has evolved from global light control to local backlight adjustment. The global light control means that the backlight part is fully bright after the electronic product is started, and the currently displayed image content is not referred to at all, namely the backlight cannot be changed along with the change of the image content, so that the image contrast is poor, the dark scene of the displayed image is not changed, and larger power loss exists. The local backlight adjustment can carry out partition control on the backlight, can adjust the brightness or contrast of the backlight in real time according to the current display image, can reduce the consumption of the whole machine, improves the contrast, and has obvious image contrast effect.
In the prior art, local backlight adjustment divides a display image into the same number of partitions according to backlight partitions, counts the average gray value of each partition, and then determines backlight brightness through a series of algorithms.
However, the above local backlight adjustment can make the image contrast better, but due to the limitations of the current algorithm and the defects of the hardware light type related (light control capability), the problem of uneven brightness between the subareas may occur, for example, different subareas in the same starry sky image display different brightness, which results in poor visual experience.
Disclosure of Invention
The application provides a method, a device, an electronic device and a storage medium for adjusting a display backlight, which are used for solving the technical problems that local backlight adjustment in the prior art can enable image contrast to be better, but due to the defects of current algorithm limitation and hardware light type related (light control capability), uneven brightness between subareas possibly occurs, and the visual experience effect is poor.
In a first aspect, the present application provides a method for adjusting a backlight of a display, the method comprising:
partitioning a current display image of a display to obtain a plurality of image partitions;
Determining an average gray value and a maximum gray value corresponding to each image partition;
for each image partition, determining adjusting parameters corresponding to the image partition according to average gray values and maximum gray values of the image partition and a plurality of adjacent image partitions;
and adjusting the brightness of the backlight corresponding to the image partition based on the adjustment parameters.
As a possible implementation manner, the partitioning the current display image of the display to obtain a plurality of image partitions includes:
acquiring backlight partitions included in a backlight panel of a display, wherein each backlight partition includes one or more backlight lamps;
and partitioning the current display image of the display according to the backlight partitions to obtain a plurality of image partitions, wherein each image partition corresponds to the backlight partition one by one.
As a possible implementation manner, the determining the average gray value and the maximum gray value corresponding to each image partition includes:
for each image partition, acquiring a gray value corresponding to each pixel point included in the image partition to obtain a plurality of gray values;
determining a maximum gray value corresponding to the image partition from a plurality of gray values;
And carrying out average value calculation on the gray values to obtain the average gray value corresponding to the image partition.
As one possible implementation manner, the determining, according to the average gray value and the maximum gray value of the image partition and the plurality of adjacent image partitions, the adjustment parameter corresponding to the image partition includes:
acquiring adjacent average gray values and adjacent maximum gray values of a plurality of adjacent image partitions corresponding to the image partitions, and obtaining an adjacent average gray value set and an adjacent maximum gray value set;
determining the difference value between the average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set to obtain a plurality of first difference values;
obtaining an average value of the first difference values to obtain an average difference value corresponding to the image partition;
determining a difference value between the maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set to obtain a plurality of second difference values;
determining the largest second difference value among the second difference values as the largest difference value;
and determining the adjusting parameters corresponding to the image partitions according to the average difference value and the maximum difference value.
As a possible implementation manner, the determining, according to the average difference value and the maximum difference value, the adjustment parameter corresponding to the image partition includes:
comparing the average difference value with a preset first threshold value to obtain a first comparison result;
comparing the maximum difference value with a preset second threshold value to obtain a second comparison result;
and determining the adjusting parameters corresponding to the image partitions according to the first comparison result and the second comparison result.
As a possible implementation manner, the determining, according to the first comparison result and the second comparison result, the adjustment parameter corresponding to the image partition includes:
determining that the adjusting parameter corresponding to the image partition is a preset first value under the condition that the average difference value represented by the first comparison result is smaller than or equal to the first threshold value;
calculating the average difference value and the maximum difference value through a preset first calculation mode under the condition that the first comparison result indicates that the average difference value is larger than the first threshold value and the second comparison result indicates that the maximum difference value is larger than the second threshold value, so as to obtain an adjusting parameter corresponding to the image partition;
And calculating the average difference value through a preset second calculation mode under the condition that the first comparison result represents that the average difference value is larger than the first threshold value and the second comparison result represents that the maximum difference value is smaller than or equal to the second threshold value, so as to obtain the adjustment parameter corresponding to the image partition.
As a possible implementation manner, the calculating, by a preset first calculation manner, the average difference value and the maximum difference value to obtain the adjustment parameter corresponding to the image partition includes:
calculating the average difference value and the maximum difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255)+(max_diff/255))
wherein a is the adjustment parameter, avg_diff is the average difference value, and max_diff is the maximum difference value.
As a possible implementation manner, the calculating, by using a preset second calculation manner, the average difference value to obtain the adjustment parameter corresponding to the image partition includes:
calculating the average difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255))
Wherein a is the adjustment parameter, and avg_diff is the average difference value.
In a second aspect, embodiments of the present application provide a display backlight adjustment apparatus, the apparatus including:
the partition module is used for partitioning the current display image of the display to obtain a plurality of image partitions;
the first determining module is used for determining an average gray value and a maximum gray value corresponding to each image partition;
the second determining module is used for determining the adjusting parameters corresponding to the image partitions according to the average gray values and the maximum gray values of the image partitions and the plurality of adjacent image partitions for each image partition;
and the adjusting module is used for adjusting the brightness of the backlight corresponding to the image partition based on the adjusting parameters.
As a possible implementation manner, the partition module is specifically configured to:
acquiring backlight partitions included in a backlight panel of a display, wherein each backlight partition includes one or more backlight lamps;
and partitioning the current display image of the display according to the backlight partitions to obtain a plurality of image partitions, wherein each image partition corresponds to the backlight partition one by one.
As a possible implementation manner, the first determining module is specifically configured to:
for each image partition, acquiring a gray value corresponding to each pixel point included in the image partition to obtain a plurality of gray values;
determining a maximum gray value corresponding to the image partition from a plurality of gray values;
and carrying out average value calculation on the gray values to obtain the average gray value corresponding to the image partition.
As a possible implementation manner, the second adjusting module includes:
the first acquisition submodule is used for acquiring adjacent average gray values and adjacent maximum gray values of a plurality of adjacent image partitions corresponding to the image partitions to obtain an adjacent average gray value set and an adjacent maximum gray value set;
a first determining submodule, configured to determine a difference value between an average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set, so as to obtain a plurality of first difference values;
the second obtaining submodule is used for obtaining average values of the first difference values and obtaining average difference values corresponding to the image partitions;
a second determining submodule, configured to determine a difference value between a maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set, so as to obtain a plurality of second difference values;
The third determining submodule is used for determining the largest second difference value in the second difference values as the largest difference value;
and the fourth determining submodule is used for determining the adjusting parameters corresponding to the image partitions according to the average difference value and the maximum difference value.
As one possible implementation manner, the fourth determining sub-module includes:
the first comparison unit is used for comparing the average difference value with a preset first threshold value to obtain a first comparison result;
the second comparison unit is used for comparing the maximum difference value with a preset second threshold value to obtain a second comparison result;
and the determining unit is used for determining the adjusting parameters corresponding to the image partitions according to the first comparison result and the second comparison result.
As a possible implementation manner, the determining unit includes:
a first determining subunit, configured to determine, when the first comparison result indicates that the average difference value is less than or equal to the first threshold, an adjustment parameter corresponding to the image partition to be a preset first value;
the first calculating subunit is configured to calculate, when the first comparison result indicates that the average difference value is greater than the first threshold and the second comparison result indicates that the maximum difference value is greater than the second threshold, the average difference value and the maximum difference value in a preset first calculation manner, so as to obtain an adjustment parameter corresponding to the image partition;
And the second calculating subunit is used for calculating the average difference value through a preset second calculating mode to obtain the adjusting parameter corresponding to the image partition under the condition that the average difference value represented by the first comparison result is larger than the first threshold value and the maximum difference value represented by the second comparison result is smaller than or equal to the second threshold value.
As a possible implementation manner, the first computing subunit is specifically configured to:
calculating the average difference value and the maximum difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255)+(max_diff/255))
wherein a is the adjustment parameter, avg_diff is the average difference value, and max_diff is the maximum difference value.
As a possible implementation manner, the second computing subunit is specifically configured to:
calculating the average difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255))
wherein a is the adjustment parameter, and avg_diff is the average difference value.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory, the processor being configured to execute a display backlight adjustment program stored in the memory to implement the display backlight adjustment method of any one of the first aspects.
In a fourth aspect, embodiments of the present application provide a storage medium storing one or more programs executable by one or more processors to implement the method for adjusting a display backlight of any one of the first aspects.
According to the technical scheme provided by the embodiment of the application, the current display image of the display is partitioned to obtain a plurality of image partitions, the average gray value and the maximum gray value corresponding to each image partition are determined, for each image partition, the adjusting parameters corresponding to the image partitions are determined according to the average gray value and the maximum gray value of the image partitions and the average gray value and the maximum gray value of the plurality of adjacent image partitions, and the backlight brightness corresponding to the image partitions is adjusted based on the adjusting parameters. According to the technical scheme, the display image of the display is accurately analyzed, the display image is partitioned, the adjusting parameters of each image partition are determined according to the maximum gray value and the average gray value of the adjacent image partition, the image quality algorithm of the picture which is easy to be problematic can be optimized, the local backlight adjusting capacity and effect are improved, and better image quality experience is presented.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a flowchart of an embodiment of a method for adjusting a backlight of a display according to an embodiment of the present application;
FIG. 2 is a flowchart of another embodiment of a method for adjusting a backlight of a display according to an embodiment of the present application;
FIG. 3 is a flowchart of an embodiment of a method for adjusting a backlight of a display according to an embodiment of the present application;
FIG. 4 is a block diagram of an embodiment of a backlight adjustment device for a display according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
The following disclosure provides many different embodiments, or examples, for implementing different structures of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed.
In order to solve the technical problem that the visual experience effect is poor because the brightness and darkness between the subareas are possibly uneven due to the defects of the current algorithm limitation and hardware light type related (light control capability) although the image contrast performance can be better, the application provides a display backlight adjusting method, a device, electronic equipment and a storage medium, which can realize accurate analysis of images, optimize the image quality algorithm of the images which are easy to be problematic by adapting to image quality parameters of different degrees, fully exert the capability and effect of local dimming and present better image quality experience.
The following describes the method for adjusting a backlight of a display provided in the present application in a specific embodiment with reference to the accompanying drawings, and the embodiment is not limited to the embodiment of the present invention.
Referring to fig. 1, a flowchart of an embodiment of a method for adjusting a backlight of a display is provided in an embodiment of the present application. As shown in fig. 1, the process may include the steps of:
and 101, partitioning a current display image of a display to obtain a plurality of image partitions.
The display may be a display of a television set, which may be used to display images.
The display image may be an image currently displayed by the display, which may be a picture corresponding to a certain video frame in the video, or may be a picture corresponding to a photo or an image, which is not limited in the embodiment of the present application.
In the embodiment of the application, in order to perform local backlight adjustment on a display image of a display, a current display image of the display may be partitioned, so as to obtain a plurality of image partitions.
As an exemplary embodiment, in order to improve the adjustment effect of the backlight corresponding to each image partition, the execution body of the embodiment of the present application may obtain the backlight partition included in the backlight panel of the display, where each backlight partition may include one or more backlights. The backlight panel may be a panel where a backlight of a display is located, and in the prior art, in order to improve a display effect of a display image in the display, the backlight in the panel may be partitioned to obtain a plurality of backlight partitions.
Then, the current display image of the display can be partitioned according to the backlight partitions to obtain a plurality of image partitions, wherein each image partition corresponds to the backlight partition one by one. That is, the partial display image corresponding to each backlight section is divided into one image section.
Step 102, determining an average gray value and a maximum gray value corresponding to each image partition.
The average gray value is the average gray value of all the pixel points included in each image partition.
The maximum gray value is the maximum gray value of all pixel points included in each image partition.
In an embodiment, when determining the average gray value and the maximum gray value of each image partition, the gray value corresponding to each pixel included in each image partition may be obtained for each image partition, so as to obtain a plurality of gray values.
And then, determining the maximum gray value corresponding to the image partition from the plurality of gray values, and calculating the average value of the plurality of gray values to obtain the average gray value corresponding to the image partition.
Step 103, for each image partition, determining an adjustment parameter corresponding to the image partition according to the average gray value and the maximum gray value of the image partition and the plurality of adjacent image partitions.
And 104, adjusting the brightness of the backlight corresponding to the image partition based on the adjustment parameters.
The following collectively describes step 103 and step 104:
the above adjustment parameters refer to adjustment parameters corresponding to each image partition, and the adjustment parameters can be used to further optimize the backlight display effect of the image partition.
The above adjacent image partitions refer to image partitions adjacent to the image partition, for example, image partitions around the image partition, that is, eight image partitions corresponding to the image partition, i.e., upper left, middle left, lower left, upper, lower right, upper right, middle right, and lower right.
In this embodiment of the present application, after determining an average gray value and a maximum gray value corresponding to each image partition, the execution body according to this embodiment of the present application may determine, for each image partition, an adjustment parameter of the image partition according to the average gray value and the maximum gray value corresponding to a critical image partition of the image partition, so as to perform optimization adjustment based on the adjustment parameter when adjusting brightness of a backlight partition corresponding to the image partition, thereby improving capability and effect of local backlight adjustment, and presenting better image quality experience.
In an embodiment, when the backlight partition corresponding to each image partition is optimally adjusted based on the adjustment parameter corresponding to the image partition, the adjustment can be performed with reference to the adjustment parameter corresponding to each image partition on the basis of the existing local backlight adjustment method, so that the capability and effect of the existing local backlight adjustment method are improved, and better image quality experience is presented.
As to how to determine the adjustment parameters corresponding to each image partition, the following description will be given by the flow shown in fig. 2, which is not described in detail here.
According to the technical scheme provided by the embodiment of the application, the current display image of the display is partitioned to obtain a plurality of image partitions, the average gray value and the maximum gray value corresponding to each image partition are determined, for each image partition, the adjusting parameters corresponding to the image partitions are determined according to the average gray value and the maximum gray value of the image partitions and the average gray value and the maximum gray value of the plurality of adjacent image partitions, and the backlight brightness corresponding to the image partitions is adjusted based on the adjusting parameters. According to the technical scheme, the display image of the display is accurately analyzed, the display image is partitioned, the adjusting parameters of each image partition are determined according to the maximum gray value and the average gray value of the adjacent image partition, the image quality algorithm optimization can be carried out on the image which is easy to be problematic, the capacity and the effect of the local backlight adjusting method are improved, and better image quality experience is presented.
Referring to fig. 2, a flowchart of an embodiment of another method for adjusting a backlight of a display according to an embodiment of the present application is provided. The flow shown in fig. 2 describes how the adjustment parameters corresponding to each image partition are determined specifically on the basis of the flow shown in fig. 1. As shown in fig. 2, the process may include the steps of:
Step 201, for each image partition, obtaining adjacent average gray values and adjacent maximum gray values of a plurality of adjacent image partitions corresponding to the image partition, and obtaining an adjacent average gray value set and an adjacent maximum gray value set.
The adjacent average gray value refers to an average gray value corresponding to the adjacent image partition.
Correspondingly, the set of adjacent average gray values is a set of average gray values of each adjacent image partition in the adjacent image partitions.
The adjacent maximum gray value refers to the maximum gray value corresponding to the adjacent image partition.
Correspondingly, the maximum gray value set is a set formed by the maximum gray value of each adjacent image partition in the adjacent image partitions.
The adjacent image partitions may be a portion of the eight adjacent image partitions or an adjacent image partition corresponding to the image partition, and the embodiment of the present application does not limit the above.
In an embodiment, when determining the adjustment parameter of each image partition, for each image partition, the adjacent average gray value and the adjacent maximum gray value of a plurality of adjacent image partitions corresponding to the image partition may be obtained, so as to obtain an adjacent average gray value set and an adjacent maximum gray value set.
Step 202, determining a difference value between the average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set, so as to obtain a plurality of first difference values.
And 203, obtaining an average value of the first difference values to obtain an average difference value corresponding to the image partition.
Step 204, determining a difference value between the maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set, so as to obtain a plurality of second difference values.
Step 205, determining the largest second difference value among the plurality of second difference values as the largest difference value.
The following collectively describes steps 202 to 205:
in the embodiment of the application, in order to more accurately determine the adjustment parameters corresponding to each image partition, the execution body of the embodiment of the application may fit better adjustment parameters according to the average gray value and the maximum gray value of each image partition in the display image and referring to the difference between the image partitions in the same frame of picture, so as to achieve a better image quality effect.
As an exemplary embodiment, a difference between the average gray value of the image partition and each neighboring average gray value in the determined neighboring average gray value set may be determined, to obtain a plurality of first differences. And then, obtaining an average value of the first difference values to obtain an average difference value corresponding to the image partition.
As an exemplary embodiment, a difference between the maximum gray value of the image partition and each adjacent maximum gray value in the determined critical maximum gray value set may be determined, so as to obtain a plurality of second differences. Then, the largest second difference value among the plurality of second difference values may be determined as the largest difference value.
And 206, determining the adjusting parameters corresponding to the image partitions according to the average difference value and the maximum difference value.
In the embodiment of the present application, in order to more accurately determine the adjustment parameter corresponding to each image partition, the execution body of the embodiment of the present application may determine the adjustment parameter of each image partition according to the average difference value and the maximum difference value corresponding to each image partition in the display image.
As an exemplary embodiment, the average difference value and the maximum difference value of each image partition may be compared with corresponding threshold values, and the adjustment parameter corresponding to the image partition may be determined according to the comparison result.
Optionally, the average difference value may be compared with a preset first threshold to obtain a first comparison result. Meanwhile, the maximum difference value can be compared with two preset thresholds to obtain a second comparison result. And then, according to the first comparison result and the second comparison result, determining the adjusting parameters corresponding to the image partitions. The first threshold and the second threshold may be thresholds preset by the user and obtained through experiments, and may be the same threshold, or may be different thresholds, for example, the first threshold and the second threshold are both 5, the first threshold may be 5, and the second threshold may be 6, which is not limited in this embodiment of the present application.
In an embodiment, when the average difference value represented by the first comparison result is smaller than or equal to the first threshold, it is indicated that the brightness of the backlight of the image partition is similar to that of the adjacent other image partitions, and local backlight adjustment of the image partition may not need to be optimized according to the adjustment parameter at this time, so the adjustment parameter corresponding to the image partition may be determined as a preset first value, where the first value may be a smaller value (for example, 0).
In an embodiment, when the average difference value represented by the first comparison result is greater than the first threshold, it indicates that the brightness of the backlight of the image partition is more different from that of the adjacent other image partitions, so that the local backlight adjustment of the image partition can be optimized according to the adjustment parameters. In particular, the adjustment parameters of the image partition can be further determined according to the second comparison result.
Further, when the first comparison result indicates that the average difference value is greater than the first threshold value and the second comparison result indicates that the maximum difference value is greater than the second threshold value, the average difference value and the maximum difference value can be calculated through a preset first calculation mode, and the adjustment parameters corresponding to the image partitions are obtained.
Specifically, the average difference value and the maximum difference value can be calculated according to the following formula (one), so as to obtain the adjustment parameters corresponding to the image partition:
a=16 (- (avg_diff/255) + (max_diff/255)) formula (one)
Wherein a is an adjustment parameter, avg_diff is an average difference value, and max_diff is a maximum difference value.
Further, when the first comparison result represents that the average difference value is greater than the first threshold and the second comparison result represents that the maximum difference value is less than or equal to the second threshold, the average difference value can be calculated through a preset second calculation mode, so that the adjustment parameter corresponding to the image partition is obtained.
Specifically, the average difference value may be calculated according to the following formula (two), to obtain the adjustment parameter corresponding to the image partition:
a=16 (- (avg_diff/255)) formula (two)
Wherein a is an adjustment parameter, and avg_diff is an average difference value.
According to the technical scheme provided by the embodiment of the application, the adjacent average gray value and the adjacent maximum gray value of a plurality of adjacent image partitions corresponding to the image partitions are obtained for each image partition, an adjacent average gray value set and an adjacent maximum gray value set are obtained, the difference value of the average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set is determined, a plurality of first difference values are obtained, the average value of the plurality of first difference values is obtained, the average difference value corresponding to the image partition is obtained, the difference value of the maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set is determined, a plurality of second difference values are obtained, the largest second difference value in the plurality of second difference values is determined to be the maximum difference value, and the adjusting parameter corresponding to the image partition is determined according to the average difference value and the maximum difference value. According to the technical scheme, the average gray value and the maximum gray value of each image partition in the display image are analyzed, and the adjustment parameters corresponding to each image partition are determined by referring to the difference between the adjacent image partitions, so that the adjustment parameters of each image partition are determined more accurately, the capacity and the effect of the local backlight adjustment method are improved, and better image quality experience is presented.
Referring to fig. 3, a flowchart of an embodiment of a method for adjusting a backlight of a display according to an embodiment of the present application is provided. As shown in fig. 3, the flow may include the following:
1. the localdiming module analyzes the input picture gray value information frame by frame.
2. Dividing the currently displayed picture according to hardware partition (backlight partition of the lamp panel), i.e. for example, h×v blocks (image partitions) in horizontal and vertical directions respectively;
3. counting the information in each block, and counting the average value avg (average gray value) and the maximum value max (maximum gray value) of the gray value information in each block, wherein the average value and the maximum value are 8 bits, namely the value range is [0, 255];
4. the backlight brightness corresponding to each block is determined by the statistical result of each block, namely, an alpha value (adjusting parameter) is set, alpha epsilon < -16 > and alpha_default=0 indicates that the alpha value is not effective, namely, the current local backlight adjusting module is in bypass state, and the backlight brightness is determined by the algorithm of other chips.
The larger α indicates the more backlight luminance references max, such as when α=16, the backlight luminance of the current block is indicated as the complete reference max.
The smaller α indicates the more backlight luminance reference avg, for example, when α= -16, the backlight luminance of the current block indicates the complete reference avg.
5. The avg and max of all blocks in the picture are counted and calculated:
let avg=m, max=n in one block_ (i, j), then its alpha value is determined by 8 adjacent blocks around it, block_ (i-1, j-1), block_ (i-1, j), block_ (i, j-1), block_ (i+1, j-1), block_ (i-1, j+1), block_ (i+1, j), block_ (i, j+1), and block_ (i, j+1). Specifically, the average difference value avg_diff and the maximum difference value max_diff corresponding to each image partition may be determined, and specifically, how to determine the average difference value avg_diff and the maximum difference value max_diff may refer to the flow shown in fig. 2 and will not be described herein.
Thereafter, the adjustment parameters of the image partition may be determined from the average difference value avg_diff and the maximum difference value max_diff:
when avg_diff is less than or equal to 5 and max_diff is more than 5, alpha_default=0 is taken, namely alpha value is not acted, and the current module bypass state is obtained.
When avg_diff is less than or equal to 5 and max_diff is less than or equal to 5, alpha_default=0 is taken, namely the alpha value is not active, and the current module bypass state is obtained.
When avg_diff >5, and max_diff >5, α_defaults=16 (- (avg_diffx/255) + (max_diffx/255)).
When avg_diff >5, and max_diff is less than or equal to 5, α_defaults=16 (- (avg_diffx/255).
According to the technical scheme provided by the embodiment of the application, the original algorithm is optimized, the average value and the maximum value information of the blocks in the picture are analyzed, the difference between the blocks of the pictures in the same frame is referred, and better effect gain parameters are fitted, so that a better image quality effect is achieved.
Referring to fig. 4, a block diagram of an embodiment of a backlight adjustment device for a display according to an embodiment of the present application is provided. As shown in fig. 4, the apparatus may include:
the partition module 41 is configured to partition a current display image of the display to obtain a plurality of image partitions;
a first determining module 42, configured to determine an average gray value and a maximum gray value corresponding to each of the image partitions;
a second determining module 43, configured to determine, for each of the image partitions, an adjustment parameter corresponding to the image partition according to an average gray value and a maximum gray value of the image partition and a plurality of neighboring image partitions;
and the adjusting module 44 is configured to adjust the brightness of the backlight corresponding to the image partition based on the adjusting parameter.
As a possible implementation manner, the partitioning module 41 is specifically configured to:
acquiring backlight partitions included in a backlight panel of a display, wherein each backlight partition includes one or more backlight lamps;
And partitioning the current display image of the display according to the backlight partitions to obtain a plurality of image partitions, wherein each image partition corresponds to the backlight partition one by one.
As a possible implementation manner, the first determining module 42 is specifically configured to:
for each image partition, acquiring a gray value corresponding to each pixel point included in the image partition to obtain a plurality of gray values;
determining a maximum gray value corresponding to the image partition from a plurality of gray values;
and carrying out average value calculation on the gray values to obtain the average gray value corresponding to the image partition.
As a possible implementation manner, the second adjusting module 43 includes:
the first acquisition submodule is used for acquiring adjacent average gray values and adjacent maximum gray values of a plurality of adjacent image partitions corresponding to the image partitions to obtain an adjacent average gray value set and an adjacent maximum gray value set;
a first determining submodule, configured to determine a difference value between an average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set, so as to obtain a plurality of first difference values;
the second obtaining submodule is used for obtaining average values of the first difference values and obtaining average difference values corresponding to the image partitions;
A second determining submodule, configured to determine a difference value between a maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set, so as to obtain a plurality of second difference values;
the third determining submodule is used for determining the largest second difference value in the second difference values as the largest difference value;
and the fourth determining submodule is used for determining the adjusting parameters corresponding to the image partitions according to the average difference value and the maximum difference value.
As one possible implementation manner, the fourth determining sub-module includes:
the first comparison unit is used for comparing the average difference value with a preset first threshold value to obtain a first comparison result;
the second comparison unit is used for comparing the maximum difference value with a preset second threshold value to obtain a second comparison result;
and the determining unit is used for determining the adjusting parameters corresponding to the image partitions according to the first comparison result and the second comparison result.
As a possible implementation manner, the determining unit includes:
a first determining subunit, configured to determine, when the first comparison result indicates that the average difference value is less than or equal to the first threshold, an adjustment parameter corresponding to the image partition to be a preset first value;
The first calculating subunit is configured to calculate, when the first comparison result indicates that the average difference value is greater than the first threshold and the second comparison result indicates that the maximum difference value is greater than the second threshold, the average difference value and the maximum difference value in a preset first calculation manner, so as to obtain an adjustment parameter corresponding to the image partition;
and the second calculating subunit is used for calculating the average difference value through a preset second calculating mode to obtain the adjusting parameter corresponding to the image partition under the condition that the average difference value represented by the first comparison result is larger than the first threshold value and the maximum difference value represented by the second comparison result is smaller than or equal to the second threshold value.
As a possible implementation manner, the first computing subunit is specifically configured to:
calculating the average difference value and the maximum difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255)+(max_diff/255))
wherein a is the adjustment parameter, avg_diff is the average difference value, and max_diff is the maximum difference value.
As a possible implementation manner, the second computing subunit is specifically configured to:
Calculating the average difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255))
wherein a is the adjustment parameter, and avg_diff is the average difference value.
As shown in fig. 5, a schematic structural diagram of an electronic device according to an embodiment of the present application includes a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete communication with each other through the communication bus 54,
a memory 53 for storing a computer program;
in one embodiment of the present application, the processor 51 is configured to implement the method for adjusting a backlight of a display provided in any one of the foregoing method embodiments when executing a program stored in the memory 53, where the method includes:
partitioning a current display image of a display to obtain a plurality of image partitions;
determining an average gray value and a maximum gray value corresponding to each image partition;
for each image partition, determining adjusting parameters corresponding to the image partition according to average gray values and maximum gray values of the image partition and a plurality of adjacent image partitions;
and adjusting the brightness of the backlight corresponding to the image partition based on the adjustment parameters.
The present application also provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the display backlight adjustment method provided by any one of the method embodiments described above.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
From the above description of embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus a general purpose hardware platform, or may be implemented by hardware. Based on such understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the related art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the respective embodiments or some parts of the embodiments.
It is to be understood that the terminology used herein is for the purpose of describing particular example embodiments only, and is not intended to be limiting. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The terms "comprises," "comprising," "includes," "including," and "having" are inclusive and therefore specify the presence of stated features, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, elements, components, and/or groups thereof. The method steps, processes, and operations described herein are not to be construed as necessarily requiring their performance in the particular order described or illustrated, unless an order of performance is explicitly stated. It should also be appreciated that additional or alternative steps may be used.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (11)

1. A method of adjusting a backlight of a display, the method comprising:
partitioning a current display image of a display to obtain a plurality of image partitions;
determining an average gray value and a maximum gray value corresponding to each image partition;
for each image partition, determining adjusting parameters corresponding to the image partition according to average gray values and maximum gray values of the image partition and a plurality of adjacent image partitions;
and adjusting the brightness of the backlight corresponding to the image partition based on the adjustment parameters.
2. The method of claim 1, wherein partitioning the current display image of the display to obtain a plurality of image partitions comprises:
acquiring backlight partitions included in a backlight panel of a display, wherein each backlight partition includes one or more backlight lamps;
and partitioning the current display image of the display according to the backlight partitions to obtain a plurality of image partitions, wherein each image partition corresponds to the backlight partition one by one.
3. The method of claim 1, wherein determining the average gray value and the maximum gray value for each of the image partitions comprises:
For each image partition, acquiring a gray value corresponding to each pixel point included in the image partition to obtain a plurality of gray values;
determining a maximum gray value corresponding to the image partition from a plurality of gray values;
and carrying out average value calculation on the gray values to obtain the average gray value corresponding to the image partition.
4. The method of claim 1, wherein determining the adjustment parameter corresponding to the image partition according to the average gray value and the maximum gray value of the image partition and the plurality of neighboring image partitions comprises:
acquiring adjacent average gray values and adjacent maximum gray values of a plurality of adjacent image partitions corresponding to the image partitions, and obtaining an adjacent average gray value set and an adjacent maximum gray value set;
determining the difference value between the average gray value of the image partition and each adjacent average gray value in the adjacent average gray value set to obtain a plurality of first difference values;
obtaining an average value of the first difference values to obtain an average difference value corresponding to the image partition;
determining a difference value between the maximum gray value of the image partition and each adjacent maximum gray value in the adjacent maximum gray value set to obtain a plurality of second difference values;
Determining the largest second difference value among the second difference values as the largest difference value;
and determining the adjusting parameters corresponding to the image partitions according to the average difference value and the maximum difference value.
5. The method of claim 4, wherein determining the adjustment parameter corresponding to the image partition according to the average difference value and the maximum difference value comprises:
comparing the average difference value with a preset first threshold value to obtain a first comparison result;
comparing the maximum difference value with a preset second threshold value to obtain a second comparison result;
and determining the adjusting parameters corresponding to the image partitions according to the first comparison result and the second comparison result.
6. The method of claim 5, wherein determining the adjustment parameter corresponding to the image partition according to the first comparison result and the second comparison result comprises:
determining that the adjusting parameter corresponding to the image partition is a preset first value under the condition that the average difference value represented by the first comparison result is smaller than or equal to the first threshold value;
calculating the average difference value and the maximum difference value through a preset first calculation mode under the condition that the first comparison result indicates that the average difference value is larger than the first threshold value and the second comparison result indicates that the maximum difference value is larger than the second threshold value, so as to obtain an adjusting parameter corresponding to the image partition;
And calculating the average difference value through a preset second calculation mode under the condition that the first comparison result represents that the average difference value is larger than the first threshold value and the second comparison result represents that the maximum difference value is smaller than or equal to the second threshold value, so as to obtain the adjustment parameter corresponding to the image partition.
7. The method according to claim 6, wherein the calculating the average difference value and the maximum difference value by a preset first calculation method to obtain the adjustment parameters corresponding to the image partitions includes:
calculating the average difference value and the maximum difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255)+(max_diff/255))
wherein a is the adjustment parameter, avg_diff is the average difference value, and max_diff is the maximum difference value.
8. The method of claim 6, wherein the calculating the average difference value by the preset second calculation method to obtain the adjustment parameter corresponding to the image partition includes:
calculating the average difference value through the following formula to obtain the adjusting parameters corresponding to the image partitions:
a=16*(-(avg_diff/255))
Wherein a is the adjustment parameter, and avg_diff is the average difference value.
9. A display backlight adjustment apparatus, the apparatus comprising:
the partition module is used for partitioning the current display image of the display to obtain a plurality of image partitions;
the first determining module is used for determining an average gray value and a maximum gray value corresponding to each image partition;
the second determining module is used for determining the adjusting parameters corresponding to the image partitions according to the average gray values and the maximum gray values of the image partitions and the plurality of adjacent image partitions for each image partition;
and the adjusting module is used for adjusting the brightness of the backlight corresponding to the image partition based on the adjusting parameters.
10. An electronic device, comprising: a processor and a memory, the processor being configured to execute a display backlight adjustment program stored in the memory to implement the display backlight adjustment method of any one of claims 1 to 8.
11. A storage medium storing one or more programs executable by one or more processors to implement the method of display backlight adjustment of any of claims 1-8.
CN202311361718.9A 2023-10-19 2023-10-19 Display backlight adjusting method and device, electronic equipment and storage medium Pending CN117496900A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311361718.9A CN117496900A (en) 2023-10-19 2023-10-19 Display backlight adjusting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311361718.9A CN117496900A (en) 2023-10-19 2023-10-19 Display backlight adjusting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117496900A true CN117496900A (en) 2024-02-02

Family

ID=89671666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311361718.9A Pending CN117496900A (en) 2023-10-19 2023-10-19 Display backlight adjusting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117496900A (en)

Similar Documents

Publication Publication Date Title
CN109064979B (en) Image display processing method and device, display device and storage medium
CN107610143B (en) Image processing method, image processing apparatus, image processing system, and display apparatus
CN109658877B (en) Display device, driving method thereof and electronic equipment
US20170263198A1 (en) System and method for adjusting luminance of a display screen
CN106448608B (en) Screen brightness adjusting method and device aiming at mura problem and television
CN109979401B (en) Driving method, driving apparatus, display device, and computer readable medium
WO2019100675A1 (en) Partition-based backlight control method and device
US10621902B2 (en) Driving circuit for display screen with adjustable color depth bit value, display method and display device
WO2019127718A1 (en) Method and apparatus for displaying image
CN108009997B (en) Method and device for adjusting image contrast
CN105869579B (en) Backlight brightness regulation method, device and display terminal
CN108364615B (en) Mura compensation method and Mura compensation system
KR20090032385A (en) Apparatus and method of stretching histogram for enhancing contrast of image
WO2023035939A1 (en) Backlight adjustment method and apparatus, device, and storage medium
CN116168652A (en) Image display method, device, electronic equipment and computer readable storage medium
CN115223509A (en) Backlight control method, backlight control device, display equipment and computer readable storage medium
US9886644B2 (en) Image processing method and device
CN113744696A (en) Method and device for adjusting brightness of backlight module and storage medium
CN117496900A (en) Display backlight adjusting method and device, electronic equipment and storage medium
CN116543709A (en) Backlight control device, method and equipment
CN111383604B (en) Method, system and storage medium for improving regional dimming algorithm
CN112992052B (en) Power consumption control method of display panel and display panel
CN112967688B (en) Method and device for improving contrast of liquid crystal display television of multi-partition backlight system
CN114927109A (en) Backlight source control method and device, display equipment and storage medium
CN114927086A (en) Gamma debugging method, device, equipment and storage medium for display panel

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