CN113870800A - Backlight adjusting method and device, terminal equipment and storage medium - Google Patents

Backlight adjusting method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN113870800A
CN113870800A CN202111108663.1A CN202111108663A CN113870800A CN 113870800 A CN113870800 A CN 113870800A CN 202111108663 A CN202111108663 A CN 202111108663A CN 113870800 A CN113870800 A CN 113870800A
Authority
CN
China
Prior art keywords
backlight
value
target picture
picture
adjusting
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.)
Granted
Application number
CN202111108663.1A
Other languages
Chinese (zh)
Other versions
CN113870800B (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.)
Dongguan Jinruixian Digital Technology Co ltd
Original Assignee
Dongguan Jinruixian 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 Dongguan Jinruixian Digital Technology Co ltd filed Critical Dongguan Jinruixian Digital Technology Co ltd
Priority to CN202111108663.1A priority Critical patent/CN113870800B/en
Publication of CN113870800A publication Critical patent/CN113870800A/en
Application granted granted Critical
Publication of CN113870800B publication Critical patent/CN113870800B/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

Abstract

The application is applicable to the technical field of images and provides a backlight adjusting method, a backlight adjusting device, terminal equipment and a storage medium. Acquiring the gray value of each pixel point of a target picture in the embodiment of the application; respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point; calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture; and adjusting the target picture according to the backlight adjusting value of the target picture, thereby reducing the backlight adjusting cost of the display device.

Description

Backlight adjusting method and device, terminal equipment and storage medium
Technical Field
The present application belongs to the field of image technologies, and in particular, to a backlight adjustment method, an apparatus, a terminal device, and a storage medium.
Background
With the development of society, display devices such as televisions, computers, mobile phones and the like are more and more common in life of people, at present, backlight adjustment is carried out on a plurality of display devices in the display process, backlight LED lamps are generally refined, the number and the partitions are increased, and then the backlight is controlled by combining the bright and dark parts of the actual picture displayed by the display devices.
Disclosure of Invention
The embodiment of the application provides a backlight adjusting method and device, terminal equipment and a storage medium, and can solve the problem that the backlight adjusting cost of a display device is high.
In a first aspect, an embodiment of the present application provides a backlight adjusting method, including:
acquiring the gray value of each pixel point of a target picture;
respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point;
calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture;
and adjusting the target picture according to the backlight adjusting value of the target picture.
In a second aspect, an embodiment of the present application provides a backlight adjusting apparatus, including:
the acquisition module is used for acquiring the gray value of each pixel point of the target picture;
the image determining module is used for respectively determining the image mean value and the standard deviation of the target image according to the gray value of each pixel point;
the adjusting value determining module is used for calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm and determining the backlight adjusting value of the target picture;
and the first adjusting module is used for adjusting the target picture according to the backlight adjusting value of the target picture.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements any of the steps of the backlight adjusting method when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the backlight adjusting methods.
In a fifth aspect, embodiments of the present application provide a computer program product, which, when run on a terminal device, causes the terminal device to perform any one of the backlight adjusting methods of the first aspect.
Acquiring the gray value of each pixel point of a target picture in the embodiment of the application; respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point; calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture; according to the embodiment, the backlight adjustment value is obtained by performing variable analysis on the picture so as to perform backlight adjustment, so that the display effect of the display device after backlight adjustment is improved, and hardware is not required to be modified conveniently, so that the backlight adjustment cost of the display device is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart of a backlight adjusting method provided in an embodiment of the present application;
fig. 2 is a second flowchart of a backlight adjusting method according to an embodiment of the present application;
fig. 3 is a third flowchart of a backlight adjusting method provided in the embodiment of the present application;
FIG. 4 is a graph of fitted data provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a backlight adjusting apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Fig. 1 is a schematic flowchart illustrating a backlight adjusting method according to an embodiment of the present application, where an execution subject of the method may be a terminal device, for example, a device including a display apparatus, as shown in fig. 1, where the backlight adjusting method may include the following steps:
step S101, obtaining the gray value of each pixel point of the target picture.
In this embodiment, the target picture is an unprocessed picture to be currently displayed, and by obtaining the gray value of each pixel point of the target picture, a corresponding parameter representing the property of the target picture can be determined according to the gray value, so that the backlight of the target picture can be adjusted according to the determined parameter, thereby improving the display effect of the target picture as a whole, and hardware does not need to be changed for backlight adjustment, thereby reducing the cost of backlight adjustment.
And S102, respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point.
In this embodiment, the terminal device determines the property of the target picture by determining a picture mean value and a standard deviation of the target picture, so as to adjust the backlight of the target picture, wherein the picture mean value is an Average Product Length (APL). It can be understood that the property of the target frame may be determined by the frame mean and the standard deviation, for example, a first threshold and a second threshold may be set, and the first threshold is smaller than the second threshold, and the property of the target frame is determined, when the frame mean is smaller than or equal to the first threshold, it indicates that the target frame belongs to a low-brightness frame, and if the standard deviation is larger, it indicates that the dark-field frame is more concentrated, and the corresponding backlight is lower; when the image mean value is larger than a first threshold value and smaller than or equal to a second threshold value, the target image belongs to a medium bright image, if the standard deviation is larger, the medium amount of dark field images is larger, the corresponding dark field is smaller, and the corresponding backlight is higher; when the average value of the images is larger than the second threshold value, the target image belongs to a high-brightness image, and the overall brightness of the target image is high at this time, so that the backlight can not be adjusted.
In one embodiment, as shown in fig. 2, step S102 may include:
step S201, determining a gray level histogram according to the gray level value of each pixel point.
In this embodiment, the terminal device obtains each pixel point in the target picture through software, and counts each pixel point, thereby establishing a gray-scale histogram, so as to calculate the relevant parameters of the target picture according to the gray-scale histogram, and the terminal device may increase the release of the scale factor along the way in the process of establishing the gray-scale histogram, that is, release the scale factor from small to large according to the width, thereby determining the order corresponding to the factor, for example, if the currently established histogram is 255 th order histogram or 32 th order histogram, the gray value of a certain pixel point is detected to be 1.7, and the pixel point may be classified into 2 nd order in the gray-scale histogram through the above means.
Step S202, determining the picture mean value and the standard deviation of the target picture according to the number of the pixel points corresponding to each gray scale in the gray scale histogram and the total number of the pixel points of the target picture.
Specifically, the determining the picture mean of the target picture in step S202 may include: the terminal equipment can directly call the corresponding formula through the mean value interface, and calculate the ratio between the number of points of the pixel points corresponding to each gray scale and the total number of the pixel points, namely the ratio of the pixel points under each gray scale. And calculating the product between the ratio corresponding to each gray scale and the gray scale value, namely the product between the ratio of the pixel points under each gray scale and the gray scale value corresponding to the gray scale. And finally, determining the sum of the products respectively corresponding to the gray scales as the picture mean value of the target picture. For example, when the grayscale histogram is a 255-level histogram, the determination formula of the frame mean value is as follows:
Figure BDA0003273315370000051
wherein, the x (i) is the number of points of the pixel point under the i gray scale; as described above
Figure BDA0003273315370000052
The total number of pixel points of the target picture.
Specifically, the determining the standard deviation of the target screen in step S202 may include: the terminal equipment can directly call a corresponding formula through a histogram data interface, calculate the difference between the number of the pixel points corresponding to each gray scale and the average value of the total number of the pixel points, calculate the sum of the squares of the difference values corresponding to each gray scale, calculate the ratio of the sum of the squares of the difference values to the gray scale number of the gray scale histogram minus 1, and determine the value of the ratio after the root sign is opened as the standard deviation of the target picture. It can be understood that the standard deviation is a feature value of the image, and can well reflect fluctuation of pixel features of each line of the image, and is main information of the image. In order to reduce the amount of calculation, the number of gray levels into which the gray level histogram is divided may be reduced, for example, the 255 th order histogram is divided into the 31 th order histogram, and when the gray level histogram is the 31 th order histogram, the above-mentioned formula for determining the standard deviation is:
Figure BDA0003273315370000053
wherein, the x (i) is the number of points of the pixel point under the i gray scale; as described above
Figure BDA0003273315370000061
The total number of pixel points of the target picture.
Step S103, calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjustment value of the target picture.
And step S104, adjusting the target picture according to the backlight adjusting value of the target picture.
In this embodiment, the terminal device may determine the backlight adjustment value of the target picture by substituting the determined average value and standard deviation of the target into a preset backlight algorithm for calculation, so as to determine the value to be adjusted for backlight according to the characteristics of the target picture, and adjust the target picture according to the backlight adjustment value of the target picture, so as to accurately improve the display effect of the target picture.
In one embodiment, as shown in fig. 3, before step S103, the method may further include:
step S301, acquiring a preset number of to-be-processed pictures.
Step S302, backlight adjustment is respectively carried out on the preset number of the pictures to be processed, and data sets respectively corresponding to the preset number of the pictures to be processed are obtained.
And step S303, fitting the preset number of data sets to obtain a backlight algorithm.
In this embodiment, the terminal device adjusts the to-be-processed pictures with different brightness to the optimal display effect by respectively performing backlight adjustment on the to-be-processed pictures with different brightness, so as to obtain data sets corresponding to the to-be-processed pictures with different brightness, that is, the data sets with the preset number, where the data sets include backlight adjustment values for adjusting the to-be-processed pictures with different brightness to the optimal display effect. And finally, fitting the preset number of data sets to obtain a backlight algorithm.
In one embodiment, step S302 may include: determining a picture mean value and a standard deviation of a picture to be processed, and adjusting a backlight value of the picture to be processed according to the standard deviation by a preset rule, for example, adjusting the backlight value to be larger or smaller according to the preset rule, so as to obtain a backlight adjustment value of the picture to be processed when the display effect of the picture to be processed is adjusted to be optimal, wherein the preset rule is obtained according to the picture mean value of the picture to be processed, that is, the properties of the picture to be processed corresponding to the picture mean values in different ranges are different, so that the rules for controlling backlight adjustment are also different. After the backlight adjustment value is obtained, determining the picture mean value, the standard deviation and the backlight adjustment value of the picture to be processed as a data set of the picture to be processed, so as to perform fitting of the backlight algorithm according to the data set, thereby causing the obtained backlight algorithm to include three parameters of the picture mean value, the standard deviation and the backlight adjustment value, as shown in fig. 4, fig. 4 is a data distribution diagram after fitting, an x axis in fig. 4 is the picture mean value, a y axis is the standard deviation and a Z axis is the backlight adjustment value. For example, when a preset number of data sets are obtained by the method of this embodiment, the preset number of data sets are subjected to fitting processing, so as to obtain a fitted backlight algorithm:
Z=p1+p2*x+p3*x2+p4*x3+p5*x4+p6*x5+p7*ln y+p8
*(ln y)2+p9*(ln y)3+p10*(ln y)4
wherein Z is a backlight adjustment value; the x is the average value of the picture; y is a standard deviation; the above coefficient p1 is-5318.10712432028; the above coefficient p2 is 8.40569093220721; the above coefficient p3 is-2.11296434015195; the above coefficient p4 is 0.2607102567513; the above coefficient p5 is-0.0145735780664272; the above coefficient p6 is-0.000295483338126203; the above coefficient p7 is 9951.08286774111; the above coefficient p8 is-4196.68046601678; the above coefficient p9 is 541.640525460448; the above coefficient p10 is-22.8561931846513.
Optionally, the preset rule may be a rule determined by setting the first threshold and the second threshold, that is, when it is determined that the average value of the pictures is less than or equal to the first threshold, it indicates that the target picture belongs to a low-brightness picture, and the preset rule indicates that if the standard deviation is larger, the dark-field picture is more concentrated, and the corresponding backlight is lower, so that the backlight value is adjusted to be higher; when the image mean value is greater than the first threshold value and less than or equal to the second threshold value, it is determined that the target image belongs to a medium bright image, and the preset rule is that if the standard deviation is larger, the medium amount of dark field images is larger, the corresponding dark fields are smaller, the corresponding backlight is higher, and therefore the backlight value is adjusted to be lower.
In one embodiment, after a preset number of data sets are subjected to fitting processing to obtain a backlight algorithm, a preset inspection mode is used to obtain a preset number of standard deviation limit value combinations under different mean values, the limit combination values are the maximum value and the minimum value of the standard deviation, the standard deviation limit value combinations are substituted into a finally fitted formula to complete the limitation of backlight adjustment values corresponding to the standard deviation limit value combinations, so that a corresponding data range is determined, namely if it is determined that coordinates within a certain range obtained by the standard deviation limit value combinations are in the fitted formula (fig. 4), the backlight algorithm is qualified. When at least two backlight algorithms exist, the at least two backlight algorithms can also be checked through the preset checking mode to obtain the difference of the fitting degree, a formula with the minimum difference is selected from the obtained difference, and the formula with the minimum difference is used as the optimal backlight algorithm, for example, the backlight adjusting value 1 fitted by the formula 1 is 0.9, the backlight adjusting value 1 fitted by the formula 2 is 0.99, the difference of the formula 2 is minimum, and the formula 2 is selected as the optimal backlight algorithm. The preset test mode may include a sequential maximum inheritance method, a minimum difference method, and a hill climbing method, for example, the minimum standard deviation value under different mean values is continuously calculated by the sequential maximum inheritance method, the minimum difference method, and the hill climbing method.
Specifically, a 31-step parameter may be set, and since the 0-step is equal to 0 when any number is multiplied or divided in the operation, only the 31-step parameter is set, i.e. the range of x (1), x (2), …, x (31), and the 31-step parameter is [ 0, R ], and the formula is expressed as:
Parameters x(0:31)=R/31
the R is the total number of pixel points of a picture, the Parameters x (0: 31) is a preset initial value, the pictures under a fixed picture mean value have various kinds, and the number of the pixel points from x (1) to x (31) of different pictures is different, so that the x (1) to x (31) are changed randomly, the initial value is required to be given when the limit range is calculated, and then calculation is performed in a mode of sequentially decreasing or increasing according to a certain rule, so that a standard difference limit value combination under a certain mean value is obtained. The calculation formula for calculating the minimum standard deviation MinFunction in the standard deviation limit value combination is as follows:
Figure BDA0003273315370000081
the constraint equation in the calculation of the standard deviation limit value combination is:
Figure BDA0003273315370000082
Figure BDA0003273315370000083
where a is a constant value, and a is 256/31.
In an embodiment, after step S103, the property of the target picture may be determined according to the median of each pixel point, so as to further improve the accuracy of adjusting the backlight value of the target picture, thereby improving the display effect of the target picture, and specifically includes: the terminal equipment sorts according to the gray value of each pixel point and the numerical value, so that the median of each pixel point is determined, then a first backlight addition coefficient corresponding to the median is determined according to a first preset coefficient algorithm, and the product of the backlight adjustment value and the first backlight addition coefficient is used as the compensated backlight adjustment value. Accordingly, the step S104 may include: and adjusting the target picture according to the compensated backlight adjusting value. It can be understood that the gray values of the pixel points of the target picture are sorted according to the magnitude values, the median, which is the median of the brightness components of the target picture, is used to determine the centralized position of the current brightness, and if the median of the sorted pixel points is lower, the fewer backlight addition is required.
In an embodiment, in the process of fitting the backlight algorithm, a median of each pixel point of each to-be-processed picture with different brightness may be further added and fitted to determine the first preset coefficient algorithm, for example, the first preset coefficient algorithm obtained by fitting is that, when the median is less than or equal to 72, the first backlight addition coefficient is B; when the median is greater than 72 and less than 200, the first backlight addition coefficient is C; when the median is greater than or equal to 200, the first backlight addition coefficient is D.
In an embodiment, after step S103, the property of the target picture corresponding to the current time may be determined according to the time variable, so as to further improve the accuracy of adjusting the backlight value of the target picture, thereby improving the display effect of the target picture, specifically including: the terminal device obtains the current time, when the average value of the picture is in a preset range, a second backlight addition coefficient corresponding to the current time is determined according to a second preset coefficient algorithm, the product of the backlight adjustment value and the second backlight addition coefficient is used as a compensated backlight adjustment value, and if the average value of the picture is not in the preset range, the target picture does not need to be subjected to backlight adjustment according to the current time. Wherein, the current time can be obtained through a network. Accordingly, the step S104 may include: and adjusting the target picture according to the compensated backlight adjusting value. It can be understood that, when the target picture is displayed in the daytime, the user cannot see the target picture clearly if the backlight value of the target picture is greatly reduced due to the high brightness of the external environment; when a target picture is displayed at night, human eyes are more sensitive to a black field due to low brightness of the external environment, and if the backlight value of the target picture is reduced a little, a part of the picture seen by a user is whitened.
In an embodiment, in the process of fitting the backlight algorithm, time parameters of each to-be-processed picture with different brightness may be further added, and fitting is performed, so as to determine the first preset coefficient algorithm, for example, when 0 is smaller than the picture mean value and is smaller than 80, backlight adjustment needs to be performed at the current moment, and the first preset coefficient algorithm obtained through fitting is:
j=r1+r2*t0.5+r3*t+r4*t1.5+r5*t2+r6*t2.5+r7*t3+r8*t3.5+r9
*t4+r10*t4.5+r11*t5
wherein j is a second backlight addition coefficient; t is the current time; the coefficient r1 is 1.05999879704981; the above coefficient r2 is-4.56684287356221; the coefficient r3 is 19.1525172627876; the above coefficient r4 is-34.0809620631392; the coefficient r5 is 33.6264278929486; coefficient of abover6 is-20.2906267911058; the coefficient r7 is 7.77383096515939; coefficient of abover8 is-1.89601628431339; the coefficient r9 is 0.285011152686634; the above coefficient r10 is-0.0240707747741463; the coefficient r11 is 0.000874164922954261.
In one embodiment, the backlight adjustment value may be processed by the first backlight addition coefficient and the second backlight addition coefficient at the same time to obtain a compensated backlight adjustment value, that is, a product of the first backlight addition coefficient, the second backlight addition coefficient and the backlight adjustment value is determined as the compensated backlight adjustment value. Accordingly, the step S104 may include: and adjusting the target picture according to the compensated backlight adjusting value.
Acquiring the gray value of each pixel point of a target picture in the embodiment of the application; respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point; calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture; according to the embodiment, the backlight adjustment value is obtained by performing variable analysis on the picture so as to perform backlight adjustment, so that the display effect of the display device after backlight adjustment is improved, and hardware is not required to be modified conveniently, so that the backlight adjustment cost of the display device is reduced.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Corresponding to the backlight adjusting method described above, fig. 5 is a schematic structural diagram of a backlight adjusting apparatus in an embodiment of the present application, and as shown in fig. 5, the backlight adjusting apparatus may include:
the obtaining module 501 is configured to obtain a gray value of each pixel of the target picture.
The picture determining module 502 is configured to determine a picture mean and a standard deviation of the target picture according to the gray values of the pixels.
The adjustment value determining module 503 is configured to calculate an average value of the target picture and a standard deviation of the target picture according to a preset backlight algorithm, and determine a backlight adjustment value of the target picture.
The first adjusting module 504 is configured to adjust the target picture according to the backlight adjustment value of the target picture.
In one embodiment, the screen determining module 502 may include:
and the histogram determining unit is used for determining a gray level histogram according to the gray level value of each pixel point.
And the first picture determining unit is used for respectively determining the picture mean value and the standard deviation of the target picture according to the number of the pixel points corresponding to each gray scale in the gray scale histogram and the total number of the pixel points of the target picture.
In one embodiment, the picture determination unit may include:
and the calculation subunit is used for calculating the ratio of the number of the pixel points corresponding to each gray scale to the total number of the pixel points.
And the average value determining subunit is used for calculating products of the ratio and the gray scale value respectively corresponding to each gray scale, and determining the sum of the products respectively corresponding to the gray scales as the picture average value of the target picture.
In one embodiment, the backlight adjusting apparatus may further include:
and the picture acquisition module is used for acquiring the preset number of pictures to be processed.
And the backlight adjusting module is used for respectively performing backlight adjustment on the preset number of the pictures to be processed to obtain data sets respectively corresponding to the preset number of the pictures to be processed.
And the fitting processing module is used for fitting the preset number of data sets to obtain a backlight algorithm.
In one embodiment, the backlight adjusting module may include:
and the second picture determining unit is used for determining the picture mean value and the standard deviation of the picture to be processed.
The adjusting unit is used for adjusting the backlight value of the picture to be processed according to the standard deviation and a preset rule to obtain the backlight adjusting value of the picture to be processed; the preset rule is obtained according to the picture mean value of the picture to be processed.
And the data set determining unit is used for determining the picture mean value, the standard deviation and the backlight adjusting value of the picture to be processed as the data set of the picture to be processed.
In one embodiment, the backlight adjusting apparatus may further include:
and the median determining module is used for determining the median of each pixel point according to the gray value of each pixel point.
And the first coefficient determining module is used for determining a first backlight addition coefficient corresponding to the median according to a first preset coefficient algorithm.
And the first compensation module is used for taking the product of the backlight adjusting value and the first backlight addition coefficient as the compensated backlight adjusting value.
And the second adjusting module is used for adjusting the target picture according to the compensated backlight adjusting value.
In one embodiment, the backlight adjusting apparatus may further include:
and the moment acquisition module is used for acquiring the current moment.
And the second coefficient determining module is used for determining a second backlight addition coefficient corresponding to the current moment according to a second preset coefficient algorithm when the picture mean value is in a preset range.
And the second compensation module is used for taking the product of the backlight adjusting value and the second backlight addition coefficient as the compensated backlight adjusting value.
And the third adjusting module is used for adjusting the target picture according to the compensated backlight adjusting value.
Acquiring the gray value of each pixel point of a target picture in the embodiment of the application; respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point; calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture; according to the embodiment, the backlight adjustment value is obtained by performing variable analysis on the picture so as to perform backlight adjustment, so that the display effect of the display device after backlight adjustment is improved, and hardware is not required to be modified conveniently, so that the backlight adjustment cost of the display device is reduced.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and the module described above may refer to corresponding processes in the foregoing system embodiments and method embodiments, and are not described herein again.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. For convenience of explanation, only portions related to the embodiments of the present application are shown.
As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 600 (only one shown in fig. 6), a memory 601 connected to the processor 600, and a computer program 602, such as a backlight adjustment program, stored in the memory 601 and executable on the at least one processor 600. The processor 600 executes the computer program 602 to implement the steps in the backlight adjusting method embodiments, such as the steps S101 to S104 shown in fig. 1. Alternatively, the processor 600 executes the computer program 602 to implement the functions of the modules in the device embodiments, such as the modules 501 to 504 shown in fig. 5.
Illustratively, the computer program 602 may be divided into one or more modules, and the one or more modules are stored in the memory 601 and executed by the processor 600 to complete the present application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 602 in the terminal device 6. For example, the computer program 602 may be divided into an acquisition module 501, a screen determination module 502, an adjustment value determination module 503, and a first adjustment module 504, and the specific functions of each module are as follows:
an obtaining module 501, configured to obtain a gray value of each pixel of a target picture;
the picture determining module 502 is configured to determine a picture mean and a standard deviation of the target picture according to the gray values of the respective pixel points;
an adjustment value determining module 503, configured to calculate an average value of the target picture and a standard deviation of the target picture according to a preset backlight algorithm, and determine a backlight adjustment value of the target picture;
the first adjusting module 504 is configured to adjust the target picture according to the backlight adjustment value of the target picture.
The terminal device 6 may include, but is not limited to, a processor 600 and a memory 601. Those skilled in the art will appreciate that fig. 6 is merely an example of the terminal device 6, and does not constitute a limitation to the terminal device 6, and may include more or less components than those shown, or combine some components, or different components, such as an input-output device, a network access device, a bus, etc.
The Processor 600 may be a Central Processing Unit (CPU), and the Processor 600 may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 601 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6 in some embodiments. In other embodiments, the memory 601 may also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal device 6. Further, the memory 601 may include both an internal storage unit and an external storage device of the terminal device 6. The memory 601 is used for storing an operating system, an application program, a Boot Loader (Boot Loader), data, and other programs, such as program codes of the computer programs. The memory 601 described above may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other division manners in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A backlight adjustment method, comprising:
acquiring the gray value of each pixel point of a target picture;
respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point;
calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, and determining the backlight adjusting value of the target picture;
and adjusting the target picture according to the backlight adjusting value of the target picture.
2. The backlight adjustment method of claim 1, wherein the determining the picture mean and the standard deviation of the target picture according to the gray-level values of the respective pixel points respectively comprises:
determining a gray level histogram according to the gray level value of each pixel point;
and respectively determining the picture mean value and the standard deviation of the target picture according to the number of pixel points corresponding to each gray scale in the gray scale histogram and the total number of the pixel points of the target picture.
3. The backlight adjustment method of claim 2, wherein the determining the frame mean and the standard deviation of the target frame according to the number of pixels corresponding to each gray scale in the gray scale histogram and the total number of pixels of the target frame respectively comprises:
calculating the ratio of the number of the pixel points corresponding to each gray scale to the total number of the pixel points;
and calculating products of the ratio and the gray scale value respectively corresponding to each gray scale, and determining the sum of the products respectively corresponding to the gray scales as the picture mean value of the target picture.
4. The backlight adjusting method according to claim 1, before calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm, comprising:
acquiring a preset number of to-be-processed pictures;
respectively carrying out backlight adjustment on the preset number of pictures to be processed to obtain data sets respectively corresponding to the preset number of pictures to be processed;
and fitting the preset number of data sets to obtain the backlight algorithm.
5. The backlight adjustment method according to claim 4, wherein the performing backlight adjustment on the preset number of to-be-processed pictures respectively to obtain data sets corresponding to the preset number of to-be-processed pictures respectively comprises:
determining the picture mean value and the standard deviation of the picture to be processed;
adjusting the backlight value of the picture to be processed according to the standard deviation and a preset rule to obtain the backlight adjustment value of the picture to be processed; the preset rule is obtained according to the picture mean value of the picture to be processed;
and determining the picture mean value, the standard deviation and the backlight adjustment value of the picture to be processed as the data set of the picture to be processed.
6. The backlight adjustment method of any of claims 1 to 5, further comprising, after determining the backlight adjustment value for the target picture:
determining the median of each pixel point according to the gray value of each pixel point;
determining a first backlight addition coefficient corresponding to the median according to a first preset coefficient algorithm;
taking the product of the backlight adjusting value and the first backlight addition coefficient as a compensated backlight adjusting value;
correspondingly, the adjusting the target picture according to the backlight adjustment value of the target picture includes:
and adjusting the target picture according to the compensated backlight adjusting value.
7. The backlight adjustment method of any of claims 1 to 5, further comprising, after determining the backlight adjustment value for the target picture:
acquiring the current moment;
when the picture mean value is in a preset range, determining a second backlight addition coefficient corresponding to the current moment according to a second preset coefficient algorithm;
taking the product of the backlight adjusting value and the second backlight addition coefficient as a compensated backlight adjusting value;
correspondingly, adjusting the target picture according to the backlight adjusting value comprises the following steps:
and adjusting the target picture according to the compensated backlight adjusting value.
8. A backlight adjustment apparatus, comprising:
the acquisition module is used for acquiring the gray value of each pixel point of the target picture;
the picture determining module is used for respectively determining the picture mean value and the standard deviation of the target picture according to the gray value of each pixel point;
the adjusting value determining module is used for calculating the average value of the target picture and the standard deviation of the target picture according to a preset backlight algorithm and determining the backlight adjusting value of the target picture;
and the first adjusting module is used for adjusting the target picture according to the backlight adjusting value of the target picture.
9. A terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of a backlight adjustment method according to any of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a method for backlight adjustment according to any one of claims 1 to 7.
CN202111108663.1A 2021-09-22 2021-09-22 Backlight adjusting method and device, terminal equipment and storage medium Active CN113870800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111108663.1A CN113870800B (en) 2021-09-22 2021-09-22 Backlight adjusting method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111108663.1A CN113870800B (en) 2021-09-22 2021-09-22 Backlight adjusting method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113870800A true CN113870800A (en) 2021-12-31
CN113870800B CN113870800B (en) 2022-12-02

Family

ID=78993107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111108663.1A Active CN113870800B (en) 2021-09-22 2021-09-22 Backlight adjusting method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113870800B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207275A1 (en) * 2022-04-29 2023-11-02 京东方科技集团股份有限公司 Display control method and apparatus, display device, electronic device and medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038715A (en) * 2007-04-26 2007-09-19 海尔集团公司 Process for startup and closing backlight lamp of liquid crystal screen and control system thereof
CN101364384A (en) * 2007-08-06 2009-02-11 深圳Tcl工业研究院有限公司 Method and apparatus for liquid crystal image processing
CN101673520A (en) * 2009-08-18 2010-03-17 北京巨数数字技术开发有限公司 Liquid crystal display (LCD) device and image signal processing method
CN102376082A (en) * 2010-08-06 2012-03-14 株式会社理光 Image processing method and device based on gamma correction
CN103117045A (en) * 2013-01-31 2013-05-22 青岛海信信芯科技有限公司 Backlight display control device and backlight display control method
CN103841337A (en) * 2012-11-23 2014-06-04 北京百度网讯科技有限公司 Backlight compensation method and device
CN104376832A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Color temperature regulating method and electronic device
CN105185328A (en) * 2015-09-01 2015-12-23 青岛海信电器股份有限公司 Liquid crystal display brightness control method and device and liquid crystal display device
CN105489170A (en) * 2014-09-16 2016-04-13 青岛海信电器股份有限公司 Backlight source drive method and device, and display equipment
CN107018230A (en) * 2017-03-10 2017-08-04 深圳市金立通信设备有限公司 A kind of back light brightness regulating method and terminal
CN107665681A (en) * 2017-09-26 2018-02-06 武汉华星光电技术有限公司 Liquid crystal display driving method, system and computer-readable medium
CN107680542A (en) * 2017-11-21 2018-02-09 武汉华星光电技术有限公司 A kind of subregion method for controlling backlight thereof and its device
CN109427306A (en) * 2017-08-21 2019-03-05 联咏科技股份有限公司 Luminance compensation method and circuit
CN111357043A (en) * 2017-08-31 2020-06-30 深圳传音通讯有限公司 Intelligent terminal, backlight control system thereof and backlight automatic control method

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038715A (en) * 2007-04-26 2007-09-19 海尔集团公司 Process for startup and closing backlight lamp of liquid crystal screen and control system thereof
CN101364384A (en) * 2007-08-06 2009-02-11 深圳Tcl工业研究院有限公司 Method and apparatus for liquid crystal image processing
CN101673520A (en) * 2009-08-18 2010-03-17 北京巨数数字技术开发有限公司 Liquid crystal display (LCD) device and image signal processing method
CN102376082A (en) * 2010-08-06 2012-03-14 株式会社理光 Image processing method and device based on gamma correction
CN103841337A (en) * 2012-11-23 2014-06-04 北京百度网讯科技有限公司 Backlight compensation method and device
CN103117045A (en) * 2013-01-31 2013-05-22 青岛海信信芯科技有限公司 Backlight display control device and backlight display control method
CN104376832A (en) * 2013-08-12 2015-02-25 联想(北京)有限公司 Color temperature regulating method and electronic device
CN105489170A (en) * 2014-09-16 2016-04-13 青岛海信电器股份有限公司 Backlight source drive method and device, and display equipment
CN105185328A (en) * 2015-09-01 2015-12-23 青岛海信电器股份有限公司 Liquid crystal display brightness control method and device and liquid crystal display device
CN107018230A (en) * 2017-03-10 2017-08-04 深圳市金立通信设备有限公司 A kind of back light brightness regulating method and terminal
CN109427306A (en) * 2017-08-21 2019-03-05 联咏科技股份有限公司 Luminance compensation method and circuit
CN111357043A (en) * 2017-08-31 2020-06-30 深圳传音通讯有限公司 Intelligent terminal, backlight control system thereof and backlight automatic control method
CN107665681A (en) * 2017-09-26 2018-02-06 武汉华星光电技术有限公司 Liquid crystal display driving method, system and computer-readable medium
CN107680542A (en) * 2017-11-21 2018-02-09 武汉华星光电技术有限公司 A kind of subregion method for controlling backlight thereof and its device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023207275A1 (en) * 2022-04-29 2023-11-02 京东方科技集团股份有限公司 Display control method and apparatus, display device, electronic device and medium

Also Published As

Publication number Publication date
CN113870800B (en) 2022-12-02

Similar Documents

Publication Publication Date Title
CN107408367B (en) Method, device and system for correcting unevenness of display screen
CN107403421B (en) Image defogging method, storage medium and terminal equipment
US10783837B2 (en) Driving method and driving device of display device, and related device
CN109257507B (en) Method for adjusting screen brightness, mobile terminal and storage medium
US20220005393A1 (en) Method and device for determining pixel compensation value, electronic device and storage medium
CN109309826B (en) Image color balancing method and device, terminal equipment and readable storage medium
WO2022227379A1 (en) Display screen brightness compensation method and apparatus, electronic device
CN110021271B (en) Optical compensation method, optical compensation system, display method and display device
CN113920022A (en) Image optimization method and device, terminal equipment and readable storage medium
CN112672069B (en) Exposure method and apparatus
CN113096035A (en) High dynamic range image generation method and device, intelligent terminal and storage medium
CN111368587A (en) Scene detection method and device, terminal equipment and computer readable storage medium
CN105304066A (en) Method and device for generating DICOM characteristic curve look-up table
CN113870800B (en) Backlight adjusting method and device, terminal equipment and storage medium
CN115496668A (en) Image processing method, image processing device, electronic equipment and storage medium
CN115552506A (en) Display screen brightness adjusting method and device
CN107257443A (en) The method and its device, terminal device of a kind of anti-vignetting of stitching image
CN111340722B (en) Image processing method, processing device, terminal equipment and readable storage medium
CN109257506B (en) Method for adjusting screen brightness, mobile terminal and storage medium
CN112783460A (en) Display control method and device, electronic equipment and readable storage medium
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN109493830B (en) Adjusting method and adjusting system of display panel and display device
CN112381073A (en) IQ (in-phase/quadrature) adjustment method and adjustment module based on AI (Artificial Intelligence) face detection
CN109308690B (en) Image brightness balancing method and terminal
CN115760653A (en) Image correction method, device, equipment and readable storage medium

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