CN112967690B - Image display method and device, storage medium and terminal - Google Patents

Image display method and device, storage medium and terminal Download PDF

Info

Publication number
CN112967690B
CN112967690B CN202110315869.5A CN202110315869A CN112967690B CN 112967690 B CN112967690 B CN 112967690B CN 202110315869 A CN202110315869 A CN 202110315869A CN 112967690 B CN112967690 B CN 112967690B
Authority
CN
China
Prior art keywords
value
frame image
current frame
backlight
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110315869.5A
Other languages
Chinese (zh)
Other versions
CN112967690A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202110315869.5A priority Critical patent/CN112967690B/en
Publication of CN112967690A publication Critical patent/CN112967690A/en
Application granted granted Critical
Publication of CN112967690B publication Critical patent/CN112967690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0613The adjustment depending on the type of the information to be displayed
    • G09G2320/062Adjustment of illumination source parameters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving

Abstract

An image display method and device, a storage medium and a terminal are provided, and the method comprises the following steps: acquiring a current frame image, and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image; calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image; if so, determining a backlight adjustment stepping value of the current frame image according to the brightness statistic value of the current frame image, and determining a backlight value of the current frame image; and carrying out backlight compensation on the current frame image according to the backlight value of the current frame image. By adopting the scheme of the invention, the condition of screen flashing can be avoided while the backlight power consumption is reduced, so that the display efficiency is improved.

Description

Image display method and device, storage medium and terminal
Technical Field
The present invention relates to the field of computer vision, and in particular, to an image display method and apparatus, a storage medium, and a terminal.
Background
Power consumption is an important aspect that affects the standby duration of a terminal (e.g., a mobile phone, a tablet, a computer, etc.), and is also an important factor that affects user experience. With the development of society and the advancement of technology, watching videos on terminals has become a main entertainment mode for the public. The backlight power consumption of the terminal during playing the video accounts for about 50% of the power consumption of the whole terminal, so saving the backlight power consumption of the terminal is an effective way to save the power consumption.
In the prior art, the backlight power consumption is generally reduced by adjusting the backlight value of each frame of image. Specifically, the backlight value of each frame image is determined solely from the luminance value of the frame image. By adopting the scheme, the screen flashing phenomena such as sudden over-bright, sudden over-dark, bright-dark flicker and the like easily occur in the video playing process, and the display effect is poor.
Therefore, there is a need for an image display method that can reduce backlight power consumption and avoid the situation of screen flashing, thereby improving display effect.
Disclosure of Invention
The technical problem solved by the invention is how to reduce the backlight power consumption, avoid the condition of screen flashing and improve the display effect.
To solve the above technical problem, an embodiment of the present invention provides an image display method, where the method includes: acquiring a current frame image, and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image; calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image; if so, determining a backlight adjustment stepping value of the current frame image according to the brightness statistic value of the current frame image, and determining a backlight value of the current frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment stepping value and the backlight value of the previous frame image; and carrying out backlight compensation on the current frame image according to the backlight value of the current frame image.
Optionally, the method further includes: and if the judgment result is negative, determining the backlight estimation value of the current frame image as the backlight value of the current frame image, and performing backlight compensation on the current frame image according to the backlight value of the current frame image.
Optionally, determining the backlight estimation value of the current frame image according to the brightness value of the pixel point in the current frame image includes: calculating the number of pixel points of which the brightness values belong to a preset jth brightness range in the current frame image according to the brightness values of the pixel points in the current frame image, and recording the number as the number of the pixel points corresponding to the jth brightness range, wherein j is a positive integer, the minimum brightness value in the jth brightness range is greater than the maximum brightness value in the jth-1 brightness range, and each brightness range has a corresponding backlight estimation value; starting from j to 1, sequentially judging whether the number of pixel points corresponding to the jth brightness range is greater than a first preset threshold, if so, taking the backlight estimation value corresponding to the jth brightness range as the backlight estimation value of the current frame image, and stopping judging; the first preset threshold is a product of the total number of pixel points in the current frame image and a preset proportion.
Optionally, calculating the luminance statistic of the current frame image according to the luminance values of the pixels in the current frame image and the luminance values of the pixels in the previous frame image includes: calculating the brightness statistic value of the current frame image by adopting the following formula:
Figure BDA0002991145640000021
h (N-1, N) is a luminance statistic value of the current frame image, N is a maximum value of the luminance values, N is a positive integer, i is an integer, i is more than or equal to 0 and less than or equal to N, Hn(i) The number h of the pixel points with the brightness value of i in the current frame image isn-1(i) And n is a positive integer, wherein the number of the pixel points with the brightness value of i in the previous frame of image is shown as n.
Optionally, the determining whether the current frame image is a gradual-change scene frame according to the luminance statistic of the current frame image includes: and comparing the brightness statistic value with a second preset threshold value, wherein if the brightness statistic value does not exceed the second preset threshold value, the judgment result is yes.
Optionally, determining the backlight adjustment step value of the current frame image according to the luminance statistic of the current frame image includes: determining an interval to which the brightness statistic value belongs according to the brightness statistic value of the current frame image, wherein the interval corresponds to the backlight adjustment stepping value one to one; and taking the backlight adjustment stepping value corresponding to the interval as the backlight adjustment stepping value of the current frame image.
Optionally, the determining, according to the luminance statistic of the current frame image, a section to which the luminance statistic belongs includes: if the brightness statistic value is larger than a third preset threshold value, the interval is a first interval, and the backlight adjustment stepping value corresponding to the first interval is a first stepping value; if the brightness statistic value is larger than a fourth preset threshold value and does not exceed the third preset threshold value, the interval is a second interval, and the backlight adjustment stepping value corresponding to the second interval is a second stepping value; if the brightness statistic value does not exceed the fourth preset threshold value, the interval is a third interval, and the backlight adjustment stepping value corresponding to the third interval is a third stepping value; wherein the third preset threshold is greater than the fourth preset threshold, the first step value is greater than the second step value, and the second step value is greater than the third step value.
Optionally, determining the backlight value of the current frame image according to the magnitude relationship between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment step value, and the backlight value of the previous frame image includes: if the backlight estimated value of the current frame image is larger than the backlight estimated value of the previous frame image, calculating the sum of the backlight value of the previous frame image and the backlight adjustment stepping value, and taking the sum as the backlight value of the current frame image; if the backlight estimated value of the current frame image is smaller than the backlight estimated value of the previous frame image, calculating the difference between the backlight value of the previous frame image and the backlight adjustment stepping value, and taking the difference as the backlight value of the current frame image; and if the backlight estimated value of the current frame image is equal to the backlight estimated value of the previous frame image, taking the backlight estimated value of the current frame image as the backlight value of the current frame image.
Optionally, before performing the backlight compensation on the current frame image according to the backlight value of the current frame image, the method further includes: if the judgment result is negative, calculating the difference value between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, and if the absolute value of the difference value does not exceed a fifth preset threshold value, correcting the judgment result to be positive.
Optionally, performing backlight compensation on the current frame image according to the backlight value of the current frame image includes: for a low-brightness area in the current frame image, multiplying the brightness value of a pixel point in the low-brightness area by a first compensation coefficient to obtain the brightness value of the pixel point in the compensated low-brightness area, wherein the low-brightness area refers to an area in which the brightness value of the pixel point does not exceed the segmented brightness value; and for a high-brightness area in the current frame image, multiplying the brightness value of a pixel point in the high-brightness area by a second compensation coefficient to obtain the brightness value of the pixel point in the compensated high-brightness area, wherein the high-brightness area refers to an area in which the brightness value of the pixel point is greater than the segmented brightness value, and the second compensation coefficient is smaller than the first compensation coefficient.
Optionally, before the luminance value of the pixel point in the high luminance region is multiplied by the second compensation coefficient, the method further includes: and calculating and determining the second compensation coefficient by adopting the following formula:
k2=(N-k1×P)/(max-P);
wherein k1 is the first compensation coefficient, k2 is the second compensation coefficient, N is the maximum value of the brightness value, P is the segment brightness value, and max is the maximum brightness value of the pixel point in the current frame image.
In order to solve the above technical problem, an embodiment of the present invention further provides an image display apparatus, including: the backlight estimation module is used for acquiring a current frame image and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image; the scene judging module is used for calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image; the backlight adjusting module is used for determining a backlight adjusting stepping value of the current frame image according to the brightness statistic value of the current frame image if the judgment result is yes, and determining the backlight value of the current frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjusting stepping value and the backlight value of the previous frame image; and the backlight compensation module is used for performing backlight compensation on the current frame image according to the backlight value of the current frame image.
Embodiments of the present invention further provide a storage medium having a computer program stored thereon, where the computer program is executed by a processor to perform the steps of the image display method.
An embodiment of the present invention further provides a terminal, including a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the steps of the image display method according to the claims when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
in the scheme of the embodiment of the invention, when the terminal displays the image, the luminance statistic value of the current frame image is obtained by calculating according to the luminance value of the pixel point in the current frame image and the luminance value of the pixel point in the previous frame image, and therefore the luminance statistic value can reflect the luminance difference between the current frame image and the previous frame image. And further judging whether the current frame image is a gradual change scene frame or not according to the brightness statistic value of the current frame image, if so, adjusting the backlight value of the previous frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image and the backlight adjustment stepping value so as to obtain the backlight value of the current frame image. The backlight adjustment stepping value is determined according to the luminance statistic value of the current frame image, and the luminance statistic value is obtained according to the luminance values of the pixel points in the current frame image and the previous frame image, so that the backlight value of the current frame image is obtained by adjusting the backlight value of the previous frame image according to the luminance difference between the current frame image and the previous frame image, and sudden brightness change (such as screen flashing and the like) can be avoided when the backlight is adjusted, and the display effect is improved.
Further, the number of pixel points belonging to the jth brightness range is calculated according to the brightness values of the pixel points in the current frame image, whether the number of the pixel points corresponding to the jth brightness range is larger than a preset threshold value is sequentially judged from j to 1, and if yes, the backlight estimation value corresponding to the brightness range is directly used as the backlight estimation value of the current frame image. Because the minimum brightness value in the jth brightness range is larger than the maximum brightness value in the jth +1 th brightness range, and the image backlight adjustment is an enhancement process, and more attention is paid to the region with higher brightness value in the image, the backlight estimation value of the current frame image can be determined efficiently and simply by adopting the scheme, and the calculation amount is small.
Further, in the scheme of the embodiment of the present invention, for a low luminance region in a current frame image, the luminance value of a pixel point in the low luminance region is multiplied by a first compensation coefficient to obtain the luminance value of a pixel point in the compensated low luminance region, and for a high luminance region in the current frame image, the luminance value of a pixel point in the high luminance region is multiplied by a second compensation coefficient to obtain the luminance value of a pixel point in the compensated high luminance region, where the second compensation coefficient is smaller than the first compensation coefficient.
Drawings
Fig. 1 is a flowchart illustrating an image display method according to an embodiment of the present invention.
Fig. 2 is a partial schematic flow chart of an embodiment of step S103 in fig. 1.
FIG. 3 is a diagram illustrating a backlight compensation curve according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an image display device according to an embodiment of the present invention.
Detailed Description
As described in the background art, it is desirable to provide an image display method capable of reducing backlight power consumption and avoiding a screen flicker, thereby improving a display effect.
The inventor of the present invention has found through research that in the prior art, the backlight power consumption is reduced by adjusting the backlight for each frame of image. Specifically, the backlight value of each frame image is determined solely from the luminance value of the frame image. By adopting the prior art, the phenomena of sudden over-brightness, sudden over-darkness, bright-dark flicker and the like can easily occur in the video playing process, and the display effect is poor.
In order to solve the above-mentioned problems, embodiments of the present invention provide a method for making the above-mentioned objects, features and advantages of the present invention more comprehensible, and specific embodiments thereof will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating an image display method according to an embodiment of the present invention. The method may be executed by a terminal, and the terminal may be any terminal with a display function, for example, but not limited to, a mobile phone, a computer, a tablet computer, and an internet of things device. When the terminal executes the image display method in the embodiment of the invention, the backlight brightness of the terminal can be always kept at a lower value, and the display quality and the display effect of the image are ensured by adjusting the brightness value of the current frame image. The image display method shown in fig. 1 may include the steps of:
step S101: acquiring a current frame image, and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image;
step S102: calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image;
step S103: if so, determining a backlight adjustment stepping value of the current frame image according to the brightness statistic value of the current frame image, and determining a backlight value of the current frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment stepping value and the backlight value of the previous frame image;
step S104: and carrying out backlight compensation on the current frame image according to the backlight value of the current frame image.
In the specific implementation of step S101, when displaying a video, a current frame image is obtained, where the current frame image is an image that needs to be displayed currently by the terminal.
Further, the backlight estimation value of the current frame image can be determined according to the brightness value of the pixel point in the current frame image.
Specifically, the number of pixel points of which the brightness values belong to a preset jth brightness range in the current frame image is calculated and recorded as the number of pixel points corresponding to the jth brightness range. The plurality of brightness ranges can be preset, j is a positive integer, the minimum brightness value in the jth brightness range is greater than the maximum brightness value in the jth +1 th brightness range, and each brightness range has a corresponding backlight estimation value.
In a non-limiting embodiment of the present invention, the value range of the brightness value of the pixel point is 0 to 255, and the value range of the brightness value of the pixel point is divided into 32 brightness ranges, that is, j is greater than or equal to 1 and less than or equal to 32. Wherein the brightness value in the 1 st brightness range is 248-255, and the brightness value in the 2 nd brightness range is 240-247 … …
Further, starting from j being 1, sequentially judging whether the number of pixel points corresponding to the jth brightness range is larger than a first preset threshold, if so, taking the backlight estimation value corresponding to the jth brightness range as the backlight estimation value of the current frame image, and stopping the judgment. That is, when the number of the pixel points corresponding to the jth brightness range is greater than the first preset threshold, it is no longer determined whether the number of the pixel points corresponding to the jth +1 th brightness range is greater than the first preset threshold. The first preset threshold is a product of a total number of pixels in the current frame image and a preset proportion, and the preset proportion can be configured in advance.
It should be noted that the backlight estimation value corresponding to the jth luminance range may be preset or calculated.
In one non-limiting embodiment of the present invention, the backlight estimate corresponding to the jth luminance range may be calculated. Specifically, the backlight estimation value corresponding to the jth luminance range may be calculated using the following formula:
Figure BDA0002991145640000071
wherein Brightness (j) is the backlight estimation value corresponding to the jth brightness range, k (j) is the adjustment coefficient corresponding to the jth brightness range, k (j) is the maximum value of the brightness value and the jth brightnessThe quotient of the maximum brightness values in the range, for example, the brightness value in the 2 nd brightness range is 240 to 247, and k (2) is 255/247. Gamma is the gamma value of the display of the terminal, for example, the value of gamma is 2.2. BLfullIs a preset fixed value, BLfullMay be determined according to the display parameters of the terminal (e.g., may be the maximum value of the backlight value that can be displayed, e.g., may be 255).
In the specific implementation of step S102, it is determined whether the current frame image is a gradual change scene frame according to the luminance statistic of the current frame image, if so, the current frame image is a gradual change scene frame, otherwise, the current frame image is a sudden change scene frame. The luminance statistic may be used to describe a luminance difference between a current frame image and a previous frame image. That is, if the luminance difference between the current frame image and the previous frame image is small (e.g., smaller than a preset threshold), the current frame image is the gradual-change scene frame, whereas if the luminance difference between the current frame image and the previous frame image is large (e.g., greater than or equal to the preset threshold), the current frame image is the abrupt-change scene frame.
Further, the luminance statistic of the current frame image may be calculated according to the luminance value of the pixel point in the current frame image and the luminance value of the pixel point in the previous frame image. And if the brightness statistic value does not exceed a second preset threshold value, judging that the current frame image is a gradual change scene frame, otherwise, judging that the current frame image is a sudden change scene frame. Wherein the second preset threshold may be preconfigured.
More specifically, the luminance statistic of the current frame image may be calculated according to the luminance value of the pixel point on the edge in the current frame image and the luminance value of the pixel point on the edge in the previous frame image, or the luminance statistic of the current frame image may be calculated according to the luminance value of the feature point in the current frame image and the luminance value of the feature point in the previous frame image, but the present invention is not limited thereto.
In one non-limiting embodiment of the present invention, the following formula is used to calculate the luminance statistic of the current frame image:
Figure BDA0002991145640000081
h (N-1, N) is a luminance statistic value of the current frame image, N is a maximum value of the luminance values, N is a positive integer, i is an integer, and i is greater than or equal to 0 and less than or equal to N. For example, N may be 255. h isn(i) The number h of the pixel points with the brightness value of i in the current frame image isn-1(i) And n is a positive integer, wherein the number of the pixel points with the brightness value of i in the previous frame of image is shown as n.
In consideration of the fact that it is determined whether the current frame image is a gradual change scene frame or a sudden change scene frame according to the luminance statistics, there may be a case where a judgment is erroneous. Therefore, in a non-limiting embodiment of the present invention, after determining whether the current frame image is a gradual change scene frame according to the luminance statistics of the current frame image, the scene correction may be performed on the determination result.
Specifically, if the judgment result of the current scene frame is negative, that is, if the current scene frame is a sudden change scene frame, calculating a difference value between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image.
Further, the absolute value of the difference is compared with a fifth preset threshold, and if the absolute value of the difference does not exceed the fifth preset threshold, the judgment result of the current frame image is modified to be yes, in other words, the current frame image is judged to be a gradual change scene frame. And if the absolute value of the difference value is larger than a fifth preset threshold value, still judging that the current frame image is a sudden change scene frame. Wherein the fifth preset threshold may be preconfigured.
It should be noted that, if the current frame image is determined to be the gradual change scene frame according to the luminance statistic, the determination result does not need to be corrected. In other words, it is not necessary to calculate a difference between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, and it is also not necessary to compare the absolute value of the difference with the fifth preset threshold.
In the specific implementation of step S103, the backlight value of the current frame image is determined according to the backlight estimation value. Specifically, if the current frame image is a gradual change scene frame, the backlight value of the current frame image may be determined according to a magnitude relationship between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment step value, and the backlight value of the previous frame image.
Further, if the backlight estimation value of the current frame image is greater than the backlight estimation value of the previous frame image, calculating the sum of the backlight value of the previous frame image and the backlight adjustment step value, and taking the sum as the backlight value of the current frame image. And if the backlight estimated value of the current frame image is smaller than the backlight estimated value of the previous frame image, calculating the difference between the backlight value of the previous frame image and the backlight adjustment stepping value, and taking the difference as the backlight value of the current frame image. And if the backlight estimated value of the current frame image is equal to the backlight estimated value of the previous frame image, taking the backlight estimated value of the current frame image as the backlight value of the current frame image.
In other words, when the backlight estimation value of the current frame image is larger than the backlight estimation value of the previous frame image, the backlight estimation value is increased according to the backlight adjustment stepping value to obtain the backlight value of the current frame image; and when the backlight estimated value of the current frame image is smaller than that of the previous frame image, reducing the backlight estimated value according to the backlight adjustment stepping value to obtain the backlight value of the current frame image. Therefore, the backlight estimation value can be smoothed according to the backlight adjustment stepping value, so that the display effect is improved. Wherein the backlight adjustment evaluation value may be preset.
In one non-limiting embodiment of the present invention, the backlight adjustment estimation value may also be determined based on luminance statistics of the current frame image.
Specifically, the section to which the luminance statistic value belongs may be determined according to the luminance statistic value of the current frame image, and the backlight adjustment step value corresponding to the section may be used as the backlight adjustment step value of the current frame image. It should be noted that the larger the statistical value of the luminance is, the larger the backlight adjustment step value is.
Specifically, the interval may include a first interval, a second interval, and a third interval, where if the luminance statistic is greater than a third preset threshold, the interval is the first interval, and if the backlight adjustment step value corresponding to the first interval is a first step value, the backlight adjustment step value of the current frame image is the first step value; if the brightness statistic value is larger than a fourth preset threshold value and does not exceed the third preset threshold value, the interval is a second interval, the backlight adjustment stepping value corresponding to the second interval is a second stepping value, and the backlight adjustment stepping value of the current frame image is the second stepping value; if the brightness statistic value does not exceed the fourth preset threshold value, the interval is a third interval, the backlight adjustment stepping value corresponding to the third interval is a third stepping value, and the backlight adjustment stepping value of the current frame image is the third stepping value; wherein the third preset threshold is greater than the fourth preset threshold, the first step value is greater than the second step value, and the second step value is greater than the third step value. The third preset threshold and the fourth preset threshold may be related to a total number of pixel points of the current frame image, and further, the third preset threshold may be a product of the total number of pixel points of the current frame image and a preset first ratio, the fourth preset threshold may be a product of the total number of pixel points of the current frame image and a preset second ratio, and the preset first ratio and the preset second ratio may be configured in advance. For example, the first ratio is 0.6, the second ratio is 0.4, the first step value is 8, the second step value is 6, and the third step value is 4.
In one non-limiting embodiment of the present invention, the backlight adjustment step value of the current frame image may also be determined according to an absolute value of a difference between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image.
Specifically, a difference interval to which the absolute value of the difference belongs is determined, and the backlight adjustment step value corresponding to the difference interval is used as the backlight adjustment step value of the current frame image.
In another non-limiting embodiment of the present invention, the backlight adjustment step value calculated according to the luminance statistic is recorded as a first backlight adjustment step value, the backlight adjustment step value calculated according to the backlight estimation value is recorded as a second backlight adjustment step value, and a difference between the first backlight adjustment step value and the second backlight adjustment step value is calculated and recorded as a step value difference.
And if the absolute value of the step value difference does not exceed a preset difference threshold, taking the step value as the backlight adjustment step value of the current frame image according to a first backlight adjustment step value, otherwise, taking the step value threshold as the backlight adjustment step value of the current frame image, wherein the step value threshold can be preset, and the step value threshold is the maximum allowable backlight difference value of the front frame image and the rear frame image which do not flicker. Therefore, in the embodiment of the invention, the backlight adjustment stepping value of the current frame image is corrected according to the backlight estimation values of the front frame and the rear frame, so that the conditions of screen flashing and the like are avoided when the current frame image is displayed, and the display effect is further improved.
Further, if the current frame image is a sudden change scene frame, the backlight estimation value of the current frame image can be directly used as the backlight value of the current frame image.
In the specific implementation of step S104, the backlight compensation is performed on the current frame image according to the backlight value of the current frame image.
Step S201: determining a first compensation coefficient according to the backlight value of the current frame image;
step S202: determining a second compensation coefficient according to the first compensation coefficient;
step S203: and carrying out backlight compensation on the low-brightness area in the current frame image according to the first compensation coefficient, and carrying out backlight compensation on the high-brightness area in the current frame image according to the second compensation coefficient.
In a specific implementation of step S401, the following formula may be used to calculate the first compensation factor:
Figure BDA0002991145640000111
where k1 is the first compensation coefficient, BLreduceIs the backlight value of the current frame image, is BLfullIs presetFixed value, BLfullThe value of (a) can be determined according to the display parameters of the terminal (for example, the maximum value of the backlight value that can be displayed can be obtained), and γ is the display gamma value of the terminal.
In a specific implementation of step S402, the following formula may be used to calculate the second compensation factor:
k2=(N-k1×P)/(max-P);
wherein k1 is the first compensation coefficient, k2 is the second compensation coefficient, N is a maximum value of the brightness values, for example, N is 255, P is the segment brightness value, max is a maximum brightness value of a pixel point in the current frame image, and max is less than or equal to N. The segmented luminance value is used to distinguish a high luminance area from a low luminance area in the current frame image, and the segmented luminance value may be preset, or may be calculated according to a luminance statistic of the current frame image and/or a backlight estimation value of the current frame image, but is not limited thereto.
In a non-limiting embodiment of the present invention, a ratio of the number of pixels in the current frame image whose brightness values do not exceed the segmented brightness values to the total number of pixels in the current frame image is a preset ratio, where the preset ratio may be preset, for example, 98%. More specifically, the segment luminance value may be determined from a histogram of the current frame image.
In the specific implementation of step S203, the low-luminance region and the high-luminance region in the current frame image are divided according to the segmented luminance values. Specifically, a region in which the brightness value of the pixel point in the current frame image does not exceed the segment brightness value is recorded as a low-brightness region, and a region in which the brightness value of the pixel point in the current frame image is greater than the segment brightness value is recorded as a high-brightness region.
Referring to fig. 3, fig. 3 is a diagram illustrating a curve of backlight compensation according to an embodiment of the present invention.
Specifically, for each pixel point in the low-brightness region, that is, a pixel point whose brightness value does not exceed the segment brightness value P, the current brightness value is multiplied by the first compensation coefficient k1 to obtain a brightness value compensated by the pixel point. For each pixel point in the high-brightness region, that is, the pixel point whose brightness value is greater than the segment brightness value P, the current brightness value is multiplied by the second compensation coefficient k2 to obtain a compensated brightness value, so that the backlight-compensated current frame image can be obtained.
It should be noted that the second compensation coefficient is smaller than the first compensation coefficient, so that the compensation degree in the high luminance region is smaller than that in the low luminance region, and the overexposure of the high luminance region can be avoided.
Referring to fig. 4, fig. 4 is an image display device according to an embodiment of the present invention, and the image display device according to an embodiment of the present invention may include: a backlight estimation module 41, a scene judgment module 42, a backlight adjustment module 43, and a backlight compensation module 44.
The backlight estimation module 41 may be configured to obtain a current frame image, and determine a backlight estimation value of the current frame image according to a brightness value of a pixel point in the current frame image; the scene determining module 42 may be configured to calculate a luminance statistic of the current frame image according to the luminance values of the pixel points in the current frame image and the luminance values of the pixel points in the previous frame image, and determine whether the current frame image is a gradual-change scene frame according to the luminance statistic of the current frame image; the backlight adjusting module 43 may be configured to, if the determination result is yes, determine a backlight adjusting step value of the current frame image according to the luminance statistic of the current frame image, and determine a backlight value of the current frame image according to a magnitude relationship between a backlight estimation value of the current frame image and a backlight estimation value of the previous frame image, the backlight adjusting step value, and the backlight value of the previous frame image; the backlight compensation module 44 may be configured to perform backlight compensation on the current frame image according to the backlight value of the current frame image.
Those skilled in the art will understand that the image display apparatus according to the embodiment of the present invention is used to perform the image display method shown in fig. 1 and 2. For more contents of the operation principle, the operation mode, and the beneficial effects of the image display apparatus in the embodiment of the present invention, reference may be made to the description of fig. 1 and fig. 2, and details are not repeated here.
Embodiments of the present invention also provide a storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the image display method shown in fig. 1 and 2. Preferably, the storage medium may include a computer-readable storage medium such as a non-volatile (non-volatile) memory or a non-transitory (non-transient) memory. The storage medium may include, but is not limited to, ROM, RAM, magnetic or optical disks, and the like.
An embodiment of the present invention further provides a terminal, which includes a memory and a processor, where the memory stores computer instructions executable on the processor, and the processor executes the steps of the image display method shown in fig. 1 and 2 when executing the computer instructions. The terminal may be a computer, a tablet computer, a mobile phone, and other terminal devices, but is not limited thereto.
Specifically, in the embodiment of the present invention, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example and not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (enhanced SDRAM), SDRAM (SLDRAM), synchlink DRAM (SLDRAM), and direct bus RAM (DR RAM).
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the 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.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus and system may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative; for example, the division of the unit is only a logic function division, and there may be another division manner in actual implementation; for example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. 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 invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more.
The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application. The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (13)

1. An image display method, characterized in that the method comprises:
acquiring a current frame image, and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image;
calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image;
if so, determining a backlight adjustment stepping value of the current frame image according to the brightness statistic value of the current frame image, and determining a backlight value of the current frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment stepping value and the backlight value of the previous frame image;
performing backlight compensation on the current frame image according to the backlight value of the current frame image;
wherein, determining the backlight estimation value of the current frame image according to the brightness value of the pixel point in the current frame image comprises:
calculating the number of pixel points of which the brightness values belong to a preset jth brightness range in the current frame image according to the brightness values of the pixel points in the current frame image, and recording the number as the number of the pixel points corresponding to the jth brightness range, wherein j is a positive integer, the minimum brightness value in the jth brightness range is greater than the maximum brightness value in the (j + 1) th brightness range, and each brightness range has a corresponding backlight estimation value;
starting from j to 1, sequentially judging whether the number of pixel points corresponding to the jth brightness range is greater than a first preset threshold, if so, taking the backlight estimation value corresponding to the jth brightness range as the backlight estimation value of the current frame image, and stopping judging;
the first preset threshold is a product of the total number of pixel points in the current frame image and a preset proportion.
2. The image display method according to claim 1, characterized in that the method further comprises:
and if the judgment result is negative, determining the backlight estimation value of the current frame image as the backlight value of the current frame image, and performing backlight compensation on the current frame image according to the backlight value of the current frame image.
3. The image display method of claim 1, wherein calculating the luminance statistic of the current frame image according to the luminance values of the pixels in the current frame image and the luminance values of the pixels in the previous frame image comprises:
calculating the brightness statistic value of the current frame image by adopting the following formula:
Figure FDA0003490683240000021
h (N-1, N) is a luminance statistic value of the current frame image, N is a maximum value of the luminance values, N is a positive integer, i is an integer, i is more than or equal to 0 and less than or equal to N, Hn(i) The number h of the pixel points with the brightness value of i in the current frame image isn-1(i) And n is a positive integer, wherein the number of the pixel points with the brightness value of i in the previous frame of image is shown as n.
4. The image display method according to claim 1, wherein determining whether the current frame image is a gradual change scene frame according to the luminance statistics of the current frame image comprises:
and comparing the brightness statistic value with a second preset threshold value, wherein if the brightness statistic value does not exceed the second preset threshold value, the judgment result is yes.
5. The image display method of claim 1, wherein determining the backlight adjustment step value of the current frame image according to the luminance statistic of the current frame image comprises:
determining an interval to which the brightness statistic value belongs according to the brightness statistic value of the current frame image, wherein the interval corresponds to the backlight adjustment stepping value one to one;
and taking the backlight adjustment stepping value corresponding to the interval as the backlight adjustment stepping value of the current frame image.
6. The image display method according to claim 5, wherein the section includes a first section, a second section, and a third section, and the determining the section to which the luminance statistic belongs based on the luminance statistic of the current frame image includes:
if the brightness statistic value is larger than a third preset threshold value, the interval is a first interval, and the backlight adjustment stepping value corresponding to the first interval is a first stepping value;
if the brightness statistic value is larger than a fourth preset threshold value and does not exceed the third preset threshold value, the interval is a second interval, and the backlight adjustment stepping value corresponding to the second interval is a second stepping value;
if the brightness statistic value does not exceed the fourth preset threshold value, the interval is a third interval, and the backlight adjustment stepping value corresponding to the third interval is a third stepping value;
wherein the third preset threshold is greater than the fourth preset threshold, the first step value is greater than the second step value, and the second step value is greater than the third step value.
7. The image display method according to claim 1, wherein determining the backlight value of the current frame image according to the magnitude relationship between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjustment step value, and the backlight value of the previous frame image comprises:
if the backlight estimated value of the current frame image is larger than the backlight estimated value of the previous frame image, calculating the sum of the backlight value of the previous frame image and the backlight adjustment stepping value, and taking the sum as the backlight value of the current frame image;
if the backlight estimated value of the current frame image is smaller than the backlight estimated value of the previous frame image, calculating the difference between the backlight value of the previous frame image and the backlight adjustment stepping value, and taking the difference as the backlight value of the current frame image;
and if the backlight estimated value of the current frame image is equal to the backlight estimated value of the previous frame image, taking the backlight estimated value of the current frame image as the backlight value of the current frame image.
8. The image display method according to claim 1, wherein before the backlight compensation of the current frame image according to the backlight value of the current frame image, the method further comprises:
if the judgment result is negative, calculating the difference value between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, and if the absolute value of the difference value does not exceed a fifth preset threshold value, correcting the judgment result to be positive.
9. The image display method according to claim 1, wherein the performing backlight compensation on the current frame image according to the backlight value of the current frame image comprises:
for a low-brightness area in the current frame image, multiplying the brightness value of a pixel point in the low-brightness area by a first compensation coefficient to obtain the brightness value of the pixel point in the compensated low-brightness area, wherein the low-brightness area refers to an area in which the brightness value of the pixel point does not exceed a segmented brightness value;
and for a high-brightness area in the current frame image, multiplying the brightness value of a pixel point in the high-brightness area by a second compensation coefficient to obtain the brightness value of the pixel point in the compensated high-brightness area, wherein the high-brightness area refers to an area in which the brightness value of the pixel point is greater than the segmented brightness value, and the second compensation coefficient is smaller than the first compensation coefficient.
10. The image display method according to claim 9, wherein before the step of multiplying the luminance value of the pixel in the high luminance region by the second compensation coefficient, the method further comprises:
and calculating and determining the second compensation coefficient by adopting the following formula:
k2=(N-k1×P)/(max-P);
wherein k1 is the first compensation coefficient, k2 is the second compensation coefficient, N is the maximum value of the brightness value, P is the segment brightness value, and max is the maximum brightness value of the pixel point in the current frame image.
11. An image display apparatus, characterized in that the apparatus comprises:
the backlight estimation module is used for acquiring a current frame image and determining a backlight estimation value of the current frame image according to the brightness value of a pixel point in the current frame image;
the scene judging module is used for calculating a brightness statistic value of the current frame image according to the brightness value of the pixel point in the current frame image and the brightness value of the pixel point in the previous frame image, and judging whether the current frame image is a gradual change scene frame according to the brightness statistic value of the current frame image;
the backlight adjusting module is used for determining a backlight adjusting stepping value of the current frame image according to the brightness statistic value of the current frame image if the judgment result is yes, and determining the backlight value of the current frame image according to the magnitude relation between the backlight estimation value of the current frame image and the backlight estimation value of the previous frame image, the backlight adjusting stepping value and the backlight value of the previous frame image;
the backlight compensation module is used for carrying out backlight compensation on the current frame image according to the backlight value of the current frame image;
wherein the backlight estimation module comprises:
the pixel number determining submodule is used for calculating the number of pixels, of which the brightness value belongs to a preset jth brightness range, in the current frame image according to the brightness values of the pixels in the current frame image, and recording the number of the pixels as the number of pixels corresponding to the jth brightness range, wherein j is a positive integer, the minimum brightness value in the jth brightness range is greater than the maximum brightness value in the (j + 1) th brightness range, and each brightness range has a corresponding backlight estimation value;
the backlight estimation value determining submodule is used for sequentially judging whether the number of pixel points corresponding to the jth brightness range is larger than a first preset threshold value from j to 1, if so, taking the backlight estimation value corresponding to the jth brightness range as the backlight estimation value of the current frame image, and stopping judging;
the first preset threshold is a product of the total number of pixel points in the current frame image and a preset proportion.
12. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the image display method according to any one of claims 1 to 10.
13. A terminal comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor executes the computer program to perform the steps of the image display method of any of claims 1 to 10.
CN202110315869.5A 2021-03-24 2021-03-24 Image display method and device, storage medium and terminal Active CN112967690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110315869.5A CN112967690B (en) 2021-03-24 2021-03-24 Image display method and device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110315869.5A CN112967690B (en) 2021-03-24 2021-03-24 Image display method and device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN112967690A CN112967690A (en) 2021-06-15
CN112967690B true CN112967690B (en) 2022-04-12

Family

ID=76278823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110315869.5A Active CN112967690B (en) 2021-03-24 2021-03-24 Image display method and device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN112967690B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113870805B (en) * 2021-10-18 2022-10-14 北京显芯科技有限公司 Backlight control method, device, system and storage medium
CN114639355B (en) * 2022-02-25 2023-07-25 展讯通信(上海)有限公司 Image display method and device, storage medium and terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102930831B (en) * 2012-11-06 2015-05-20 青岛海信信芯科技有限公司 Liquid crystal display screen image displaying method, device and liquid crystal display television
CN103632352B (en) * 2013-11-01 2017-04-26 华为技术有限公司 Method for time domain noise reduction of noise image and related device
JP6466488B2 (en) * 2017-02-09 2019-02-06 シャープ株式会社 Display device, television receiver, video processing method, control program, and recording medium
CN107808642B (en) * 2017-11-14 2020-07-03 武汉华星光电技术有限公司 Backlight driving method and related product
CN107993616B (en) * 2017-12-27 2020-01-03 武汉华星光电技术有限公司 Image display method and device
CN110364123B (en) * 2019-08-20 2021-01-22 京东方科技集团股份有限公司 Backlight control method and device, electronic equipment and computer readable storage medium
CN111028792B (en) * 2019-12-30 2021-05-25 紫光展讯通信(惠州)有限公司 Display control method and device

Also Published As

Publication number Publication date
CN112967690A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN112967690B (en) Image display method and device, storage medium and terminal
US9741305B2 (en) Devices and methods of adaptive dimming using local tone mapping
US10467734B2 (en) Group management method, terminal, and storage medium
TWI455085B (en) Backlight control method for high dynamic range lcd
US9165510B2 (en) Temporal control of illumination scaling in a display device
EP2141655B1 (en) Color enhancement for graphic images
US9165210B1 (en) Systems and methods for localized contrast enhancement
CN108009997B (en) Method and device for adjusting image contrast
WO2019101005A1 (en) Pixel compensation method and apparatus, and terminal device
US11393416B2 (en) Method and device for backlight control, electronic device, and computer readable storage medium
US10346960B2 (en) Apparatus and method for correcting a flicker in a video, and video device
CN107665681B (en) Liquid crystal display driving method, system and computer readable medium
WO2021218603A1 (en) Image processing method and projection system
WO2019179512A1 (en) Display method, display device, and display
WO2017049939A1 (en) Picture display method, device, and terminal
US20100119153A1 (en) Shadow Remover
CN111601048B (en) Image processing method and device
CN116825039B (en) Backlight brightness calculating method, display device and computer readable storage medium
WO2023035939A1 (en) Backlight adjustment method and apparatus, device, and storage medium
JP5585494B2 (en) Image processing apparatus, image processing program, and image processing method
WO2014038572A1 (en) Image display device, control method for image display device, control program for image display device and recording medium on which control program is recorded
US9571744B2 (en) Video processing method and apparatus
US20220351701A1 (en) Method and device for adjusting image quality, and readable storage medium
CN114639355B (en) Image display method and device, storage medium and terminal
WO2019061655A1 (en) Driving method and system for liquid crystal display, and computer-readable 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