WO2017049939A1 - 一种图像显示方法和装置、以及终端 - Google Patents

一种图像显示方法和装置、以及终端 Download PDF

Info

Publication number
WO2017049939A1
WO2017049939A1 PCT/CN2016/083346 CN2016083346W WO2017049939A1 WO 2017049939 A1 WO2017049939 A1 WO 2017049939A1 CN 2016083346 W CN2016083346 W CN 2016083346W WO 2017049939 A1 WO2017049939 A1 WO 2017049939A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness
value
current frame
threshold
preset
Prior art date
Application number
PCT/CN2016/083346
Other languages
English (en)
French (fr)
Inventor
邓现伦
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017049939A1 publication Critical patent/WO2017049939A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/14Picture signal circuitry for video frequency region

Definitions

  • the present application relates to, but is not limited to, the field of image display technology, and more particularly to an image display method and apparatus, and a terminal.
  • the embodiment of the invention provides an image display method and device, and a terminal, which can improve the user experience when the user views the video.
  • An embodiment of the present invention provides an image display method, which includes: acquiring a brightness difference value between a current frame and a previous frame displayed by an image; segmenting the image frame according to the brightness difference value; maintaining the current segment In the case, the brightness value of the current frame is adjusted according to the stored adjustment factor; the adjusted current frame is output.
  • the method further includes: performing corresponding processing on the brightness value of the image frame in the case of entering the next segment, And set or update the adjustment factor.
  • the brightness difference value is a brightness contrast value or a brightness difference value.
  • the segmenting the image frame according to the brightness difference value includes:
  • the method before the adjusting the brightness value of the current frame according to the stored adjustment factor, the method further includes: determining whether an adjustment factor is stored, and when the adjustment factor is stored, performing the adjusting according to the stored adjustment factor The step of the luminance value of the frame; when no adjustment factor is stored, the current frame is output.
  • the method further includes:
  • Performing corresponding processing on the brightness value of the image frame, and setting or updating the adjustment factor includes:
  • the flash point threshold is greater than the inflection threshold.
  • the adjusting the brightness value of the current frame according to the preset softness factor includes:
  • Xnew i luminance value of the current frame adjusted A corresponding to the present time adjustment factor adjustment, R is a preset soft factor
  • X i-1 is the luminance value of the previous frame
  • X i is the current frame Brightness value.
  • the corresponding processing of the brightness value of the image frame, and setting or updating the adjustment factor further includes:
  • the first brightness threshold is greater than the second brightness threshold
  • the image display method After performing the corresponding processing on the brightness value of the image frame and setting or updating the adjustment factor, the image display method further includes:
  • the adjusted current frame is output; if no adjustment is made, the current frame is output.
  • the embodiment of the invention further provides an image display device, the device comprising:
  • the brightness difference value obtaining unit is configured to obtain a brightness difference value between the current frame and the previous frame displayed by the image
  • a segmentation unit configured to segment the image frame according to the brightness difference value
  • the first processing unit is configured to: adjust the brightness value of the current frame according to the stored adjustment factor while maintaining the current segment;
  • the first output unit is configured to output the adjusted current frame.
  • the image display device further includes:
  • a second processing unit configured to: after the segmentation unit segments the image frame according to the brightness difference value, in a case of entering the next segment, performing corresponding processing on the brightness value of the image frame, and Set or update the adjustment factor.
  • the segmentation unit includes:
  • the inflection point judging module is configured to: determine whether the brightness difference value is greater than a preset inflection point threshold; when the brightness difference value is greater than or equal to a preset inflection point threshold, determine to enter the next segment, when the brightness difference value Less than the preset inflection threshold, it is determined to maintain the current segment.
  • the image display device further includes:
  • the adjustment factor judging unit is configured to: determine whether an adjustment factor is stored, and when the storage is adjusted Notifying the first processing unit to adjust a brightness value of the current frame according to the stored adjustment factor;
  • the first output unit is further configured to: when the adjustment factor determination unit determines that the adjustment factor is not stored, output the current frame.
  • the segmentation unit further includes: a flash point judging module, configured to: when the inflection point judging module determines that the brightness difference value is greater than a preset inflection point threshold, determine whether the brightness difference value is greater than a preset flash point Threshold value
  • the second processing unit includes: a first processing module, configured to: when the brightness difference value is greater than or equal to a preset flash point threshold, adjust a brightness value of the current frame according to a preset softness factor, and record the current time Adjust the corresponding adjustment factor;
  • the flash point threshold is greater than the inflection threshold.
  • the first processing module is configured to adjust a brightness value of the current frame according to a preset softness factor by:
  • Xnew i luminance value of the current frame adjusted A corresponding to the present time adjustment factor adjustment, R is a preset soft factor
  • X i-1 is the luminance value of the previous frame
  • X i is the current frame Brightness value.
  • the second processing unit further includes:
  • the second processing module is configured to: when the flash point judging module determines that the brightness difference value is less than a preset flash point threshold,
  • the first brightness threshold is greater than the second brightness threshold
  • the first output unit is further configured to: enter, in the second processing unit, a brightness value of an image frame After the corresponding processing is performed, and the adjustment factor is set or updated, the adjusted current frame is outputted in the case of adjusting the brightness value of the current frame; and the current frame is output without adjustment.
  • the embodiment of the present invention further provides a terminal, where the terminal includes the image display device according to any one of the above.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the technical solution provided by the embodiment of the present invention includes: acquiring a brightness difference value between a current frame and a previous frame displayed by an image; segmenting the image frame according to the brightness difference value; maintaining the current segmentation In the case, the brightness value of the current frame is adjusted according to the stored adjustment factor; the adjusted current frame is output.
  • the brightness difference between two adjacent image frames is too large, the brightness of the current frame is adjusted; for the user, when viewing the image content of the display screen, it is not necessary to manually adjust the brightness. When the brightness is increased too much, the high brightness of the image frame will be automatically reduced.
  • the low brightness of the image frame will be automatically raised; especially in the dark environment, the automatic adjustment of the image frame is avoided.
  • the stimulation of the eyes greatly improves the comfort, reduces the user's fatigue, and improves the user's experience of using the electronic device through the display screen for image output.
  • FIG. 1 is a flowchart of an image display method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another image display method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another image display method 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.
  • FIG. 5 is a schematic structural diagram of another image display device according to an embodiment of the present invention.
  • an embodiment of the present invention provides an image display method, where the method includes the following steps:
  • Step 110 Acquire a brightness difference value between a current frame and a previous frame displayed by the image.
  • the image may be a frame image in the video file, and the image may also be an image output to the display screen when the user uses the electronic device or the electrical device.
  • the current frame refers to the image frame currently being output to the display screen in the video file
  • the previous frame refers to the previous image frame of the current frame.
  • the current frame can also be an image frame that is currently ready to be output to the display.
  • the brightness difference value is a brightness contrast value or a brightness difference value.
  • the brightness difference value is described by taking the brightness comparison value as an example.
  • the brightness contrast value between the current frame and the previous frame is used to measure the ratio of the high-brightness frame to the low-brightness frame in the adjacent two frames, thereby measuring the magnitude of the change in the brightness of the video, and determining whether the video image occurs by the magnitude of the change in the brightness of the video. Switching of scenes.
  • D is the brightness contrast value of the current frame of the video and the previous frame
  • X i is the brightness value of the current frame
  • X i-1 is the brightness value of the previous frame of the current frame.
  • each video frame is composed of pixels, and the brightness value of the frame refers to an average value of the brightness values corresponding to each pixel in the frame.
  • the brightness contrast value of the current frame and the previous frame is 2.
  • Step 120 Segment the image frame according to the brightness difference value.
  • the segmenting the image frame according to the brightness difference value includes:
  • the brightness value of the image frame is adjusted using the same adjustment factor.
  • step 120 when the brightness comparison value of the adjacent two frames is greater than or equal to the preset inflection point threshold, it is determined as the video brightness inflection point. For example, if the inflection point threshold is 2, the current frame video brightness value is 50, the latter frame video brightness value is 100, or the latter frame video brightness value is 25, which can be considered as a video brightness inflection point, indicating that a scene may appear. Switching.
  • Step 130 in the case of maintaining the current segment, adjust the brightness value of the current frame according to the stored adjustment factor.
  • the adjustment factor is set and stored when the brightness difference value is greater than or equal to a preset inflection point threshold.
  • Adjusting the brightness value of the current frame according to the stored adjustment factor multiplying the brightness value of the current frame by an adjustment factor to obtain a brightness value of the adjusted current frame to brighten the brightness; or dividing the brightness value of the current frame With the adjustment factor, the brightness value of the adjusted current frame is obtained to dim the brightness.
  • Step 140 outputting the adjusted current frame.
  • the method further includes: performing corresponding processing on the brightness value of the image frame and setting or updating the adjustment factor in the case of entering the next segment.
  • the corresponding processing is used to perform corresponding processing on the brightness value of the image frame according to the preset adjustment rule.
  • the process includes adjusting the brightness value of the current frame, the size of the adjustment factor is reset according to the adjustment, and the process does not include the pair.
  • the adjustment factor is cleared, so that the next time it is judged whether or not the adjustment factor is stored, it is judged that there is no storage.
  • the preset adjustment rules will be described below in conjunction with specific examples. For example, when segmenting an image frame according to an inflection threshold and a flash point threshold, when the luminance difference value is in a different interval, different adjustments are performed, the adjustment being used to reduce the brightness between the current frame and the previous frame. Difference value.
  • an embodiment of the present invention further provides an image display method, including the following steps:
  • Step 210 Obtain a brightness contrast value between a current frame of the video and a previous frame.
  • Step 220 Determine whether the brightness contrast value is greater than a preset inflection point threshold
  • Step 230 When the brightness contrast value is less than a preset inflection threshold, determine whether an adjustment factor is stored.
  • Step 231 when the adjustment factor is stored, adjusting the brightness value of the current frame according to the stored adjustment factor; wherein the adjustment factor is set and stored when the brightness contrast value is greater than or equal to the preset inflection point threshold;
  • Step 270 outputting the adjusted current frame; outputting the adjusted current frame to the display screen.
  • step 230 the current frame is directly output when no adjustment factor is stored.
  • step 231 the adjusting the brightness value of the current frame according to the stored adjustment factor includes:
  • Xnew i luminance value of the current frame adjusted A is the stored adjustment factor
  • X i the brightness value of the current frame.
  • the method further includes the step of: when the brightness contrast value is greater than a preset inflection threshold,
  • Step 250 Determine whether the brightness value of the current frame is greater than a preset first brightness threshold.
  • Step 251 When the brightness value of the current frame is greater than the preset first brightness threshold, adjust the brightness value of the current frame to the first brightness threshold, and record the adjustment factor corresponding to the current adjustment, and jump to step 270, that is, Output the adjusted current frame;
  • A is the adjustment factor corresponding to the current adjustment of the record
  • X i is the brightness value of the current frame before the adjustment
  • Xnew i is the brightness value of the adjusted current frame
  • the current brightness is the first brightness threshold.
  • Step 260 When the brightness value of the current frame is less than or equal to the preset first brightness threshold, determine Whether the brightness value of the current frame is less than a preset second brightness threshold;
  • Step 261 When the brightness value of the current frame is less than the preset second brightness threshold, adjust the brightness value of the current frame to the second brightness threshold, and record the adjustment factor corresponding to the current adjustment, and jump to step 270, that is, Output the adjusted current frame;
  • A is the adjustment factor corresponding to the current adjustment of the record
  • X i is the brightness value of the current frame before the adjustment
  • Xnew i is the brightness value of the adjusted current frame
  • the second brightness threshold is used in this adjustment.
  • Step 262 directly output the current frame when the brightness value of the current frame is greater than or equal to the preset second brightness threshold.
  • the first brightness threshold is greater than the second brightness threshold.
  • the brightness value of the current frame is greater than a preset first brightness threshold, and then determining whether it is less than a preset second brightness threshold.
  • an embodiment of the present invention further provides an image display method, where the method includes the following steps:
  • Step 310 Obtain a brightness contrast value between a current frame of the video and a previous frame.
  • Step 320 Determine whether the brightness contrast value is greater than a preset inflection point threshold
  • Step 330 When the brightness contrast value is less than a preset inflection point threshold, determine whether an adjustment factor is stored;
  • Step 331 when the adjustment factor is stored, adjusting the brightness value of the current frame according to the stored adjustment factor;
  • Step 370 outputting the adjusted current frame.
  • step 330 the current frame is directly output when no adjustment factor is stored.
  • step 320 the method further includes the following steps:
  • Step 340 When the brightness contrast value is greater than or equal to a preset inflection point threshold, determine whether the brightness contrast value is greater than or equal to a preset flash point threshold.
  • the segmenting the image frame according to the brightness difference value further includes:
  • the video brightness flash point when the contrast value of the adjacent two frames is greater than or equal to the preset flash point threshold, the video brightness flash point is determined.
  • the video brightness flash point contrast is greater than the video brightness inflection point contrast, and the video flash point is the same. It is also the inflection point of the video brightness. When the video brightness flash point appears, it also indicates that the scene has been switched.
  • the flash point threshold is set to 3
  • the current frame video brightness is 50
  • the next frame video brightness is 150
  • Step 341 when the brightness contrast value is greater than or equal to the preset flash point threshold, adjust the brightness value of the current frame according to the preset softness factor, and record the adjustment factor corresponding to the current adjustment;
  • the flash point threshold is greater than the inflection threshold.
  • step 341 the adjusting the brightness value of the current frame according to the preset softness factor includes:
  • Xnew i luminance value of the current frame adjusted A corresponding to the present time adjustment factor adjustment, R is a preset soft factor
  • X i-1 is the luminance value of the previous frame
  • X i is the current frame Brightness value.
  • the brightness difference value between the adjusted current frame and the previous frame is smaller than the brightness difference value between the current frame and the previous frame before the adjustment.
  • the algorithm When the video flash point appears, adjust the brightness contrast value of the current frame and the previous frame as a softness factor to avoid causing a large difference in brightness between the front and rear video frames and causing irritation to the eyes. For example, if the brightness value of the video of the previous frame is 20 and the brightness value of the latter frame is 200, if the maximum brightness value of the set video is 150, the algorithm does not reduce the brightness value of the next frame to 150.
  • the contrast value is still large, still cause glare effect
  • the video segment refers to a video segment composed of a video frame between a first video frame of a brightness inflection point or a flash point of the video to a next video inflection point or a flash point video frame. So a complete video is composed of video clips.
  • the value of the adjustment factor is fixed, that is, the brightness value of the video frame is adjusted using the same adjustment factor.
  • step 350 is performed.
  • Step 350 Determine whether the brightness value of the current frame is greater than a preset first brightness threshold.
  • Step 351 When the brightness value of the current frame is greater than the preset first brightness threshold, adjust the brightness value of the current frame to the first brightness threshold, and record the adjustment factor corresponding to the current adjustment, and jump to step 370, that is, Output the adjusted current frame;
  • Step 360 When the brightness value of the current frame is less than or equal to the preset first brightness threshold, determine whether the brightness value of the current frame is less than a preset second brightness threshold.
  • Step 361 When the brightness value of the current frame is less than the preset second brightness threshold, adjust the brightness value of the current frame to the second brightness threshold, and record the adjustment factor corresponding to the current adjustment, and jump to step 370, that is, Output the adjusted current frame;
  • Step 362 directly output the current frame when the brightness value of the current frame is greater than or equal to the preset second brightness threshold.
  • the first brightness threshold is greater than the second brightness threshold.
  • the brightness value of the current frame is calculated to be 50; the current frame is directly output;
  • Brightness value; adjust the brightness value of the current frame to 280/1.9 147.3684 to dim the brightness;
  • Brightness value; adjust the brightness value of the current frame to 90/1.55555 57.857 to dim the brightness.
  • the luminance value of the current frame is less than the first luminance threshold 100 and greater than the second luminance threshold 10; therefore, the luminance value of the current frame is not adjusted, and the stored adjustment factor is cleared.
  • the embodiment of the present invention further provides an image display device, which can be disposed on a terminal, for example, a multimedia terminal and a terminal having a video output function.
  • an image display apparatus includes:
  • the brightness difference value obtaining unit 10 is configured to acquire a brightness difference value between the current frame and the previous frame displayed by the image;
  • the segmentation unit 20 is configured to segment the image frame according to the brightness difference value
  • the first processing unit 31 is configured to: adjust the brightness value of the current frame according to the stored adjustment factor while maintaining the current segment;
  • the first output unit 50 is configured to output the adjusted current frame.
  • the image display device includes a second processing unit 32, configured to: after the segmentation unit 20 segments the image frame according to the brightness difference value, in the case of entering the next segment, The brightness value of the image frame is processed accordingly, and the adjustment factor is set or updated.
  • the segmentation unit 20 includes:
  • the inflection point judging module 21 is configured to: determine whether the brightness difference value is greater than a preset inflection point threshold; when the brightness difference value is greater than or equal to a preset inflection point threshold, determine that the next segment is entered, and the brightness difference value is less than the preset
  • the inflection threshold is determined to maintain the current segmentation.
  • the image display device further includes:
  • the adjustment factor determining unit 40 is configured to: determine whether an adjustment factor is stored, and when the adjustment factor is stored, notify the first processing unit 31 to perform adjustment of the brightness value of the current frame according to the stored adjustment factor;
  • the first output unit 50 is further configured to: when the adjustment factor determination unit 40 determines that the adjustment factor is not stored, output the current frame.
  • the second processing unit 32 includes:
  • the second processing module 322 is configured to:
  • the first brightness threshold is greater than the second brightness threshold
  • the first output unit 50 is further configured to: after the second processing unit 32 performs corresponding processing on the brightness value of the image frame, and after setting or updating the adjustment factor, in the case of adjusting the brightness value of the current frame, the output is The adjusted current frame; the current frame is output without adjustment.
  • another embodiment of the present invention further provides an image display device, where the image display device includes:
  • the brightness difference value obtaining unit 10 is configured to acquire a brightness difference value between the current frame and the previous frame displayed by the image;
  • the segmentation unit 20 is configured to segment the image frame according to the brightness difference value
  • the first processing unit 31 is configured to: adjust the brightness value of the current frame according to the stored adjustment factor while maintaining the current segment;
  • the first output unit 50 is configured to output the adjusted current frame.
  • the image display device includes a second processing unit 32, configured to: after the segmentation unit 20 segments the image frame according to the brightness difference value, in the case of entering the next segment, The brightness value of the image frame is processed accordingly, and the adjustment factor is set or updated.
  • the segmentation unit 20 includes:
  • the inflection point judging module 21 is configured to: determine whether the brightness difference value is greater than a preset inflection point threshold; when the brightness difference value is greater than or equal to a preset inflection point threshold, determine that the next segment is entered, and the brightness difference value is less than the preset
  • the inflection threshold is determined to maintain the current segmentation.
  • the image display device further includes:
  • the adjustment factor determining unit 40 is configured to: determine whether an adjustment factor is stored, when stored When adjusting the factor, notifying the first processing unit 31 to perform adjusting the brightness value of the current frame according to the stored adjustment factor;
  • the first output unit 50 is further configured to: when the adjustment factor determination unit 40 determines that the adjustment factor is not stored, output the current frame.
  • the segmentation unit 20 further includes:
  • the flash point judging module 22 is configured to: when the inflection point judging module 21 determines that the brightness difference value is greater than a preset inflection point threshold, determine whether the brightness difference value is greater than a preset flash point threshold;
  • the second processing unit 32 includes:
  • the first processing module 321 is configured to: when the brightness difference value is greater than or equal to a preset flash point threshold, adjust a brightness value of the current frame according to a preset softness factor, and record an adjustment factor corresponding to the current adjustment;
  • the flash point threshold is greater than the inflection threshold.
  • the first processing module 321 is configured to adjust the brightness value of the current frame according to a preset softness factor by:
  • Xnew i luminance value of the current frame adjusted A corresponding to the present time adjustment factor adjustment, R is a preset soft factor
  • X i-1 is the luminance value of the previous frame
  • X i is the current frame Brightness value.
  • the second processing unit 32 further includes:
  • the second processing module 322 is configured to: when the flash point determining module 22 determines that the brightness difference value is less than a preset flash point threshold,
  • the first brightness threshold is greater than the second brightness threshold
  • the first output unit 50 is further configured to: after the second processing unit 32 performs corresponding processing on the brightness value of the image frame, and after setting or updating the adjustment factor, in the case of adjusting the brightness value of the current frame, the output is The adjusted current frame; the current frame is output without adjustment.
  • the embodiment of the present invention further provides a terminal, and the terminal includes any image display device provided by the embodiment of the present invention.
  • the above terminal includes a display screen capable of outputting an image frame.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • An embodiment of the present invention provides an image display method and apparatus, which adjusts the brightness of a current frame when the brightness difference between two adjacent image frames is too large; for the user, when viewing the image content of the display screen, There is no need to manually adjust the brightness.
  • the high brightness of the image frame will be automatically reduced.
  • the low brightness of the image frame will be automatically raised; especially in the dark environment, the image frame is Automatic adjustment avoids eye irritation, greatly improves comfort, reduces user fatigue, and improves the user experience of using electronic devices that output images through the display.

Abstract

一种图像显示方法,包括:获取图像显示的当前帧与前一帧的亮度差异值;根据所述亮度差异值对图像帧进行分段;在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;输出调节后的当前帧。在相邻的两个图像帧的亮度差异太大时,对当前帧的亮度进行调节,对于用户来说,在观看显示屏的图像内容时,无需手动调节亮度;尤其在黑暗环境中,对图像帧的自动调节,避免了对眼睛的刺激,大大提高了舒适度,降低了用户的疲劳度,提高了用户使用通过显示屏进行图像输出的电子设备的使用体验。

Description

一种图像显示方法和装置、以及终端 技术领域
本申请涉及但不限于图像显示技术领域,尤指一种图像显示方法和装置、以及终端。
背景技术
随着智能时代的发展,用户可以通过各种终端随时随地(个人电脑(PC,Personal Computer)、笔记本电脑、平板电脑(PAD,Portable Android Device)、手机等)方便地观看视频。在观看视频的时候,有的视频片段可能很暗,用户无法看到更多的细节,有的视频偏亮,用户看起来比较刺眼。尤其用户在夜间黑暗中播放视频,经常会遇到从视频片段亮度较低切换到视频片段很亮的情况(如场景切换、闪光、爆炸场景等),视频亮度的频繁变化会导致用户眼睛容易疲劳,观看视频的体验很差。虽然用户可以通过手动调整亮度来达到较好的观看效果,但是操作不够方便,而且用户频繁地调节视频的亮度也会给用户带来操作繁琐的感觉,同样会造成用户观看视频的体验很差。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出了一种图像显示方法和装置、以及终端,能够提高用户观看视频时的用户体验。
本发明实施例提出了一种图像显示方法,所述方法包括:获取图像显示的当前帧与前一帧的亮度差异值;根据所述亮度差异值对图像帧进行分段;在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;输出调节后的当前帧。
可选地,在所述根据所述亮度差异值对图像帧进行分段之后,所述方法还包括:在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理, 并设置或更新调整因子。
可选地,所述亮度差异值为亮度对比值或亮度差值。
可选地,所述根据所述亮度差异值对图像帧进行分段包括:
判断所述亮度差异值是否大于预设的拐点阈值;当所述亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当所述亮度差异值小于预设的拐点阈值,判断为保持当前分段。
可选地,在所述根据存储的调节因子调节当前帧的亮度值之前,所述方法还包括:判断是否存储有调节因子,当存储有调节因子时,执行所述根据存储的调节因子调节当前帧的亮度值的步骤;在没有存储调节因子时,输出当前帧。
可选地,
在所述判断所述亮度差异值是否大于预设的拐点阈值之后,所述方法还包括:
当所述亮度差异值大于预设的拐点阈值时,判断所述亮度差异值是否大于预设的闪光点阈值;
所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子包括:
当所述亮度差异值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
其中,所述闪光点阈值大于所述拐点阈值。
可选地,所述根据预设的柔和因子调节当前帧的亮度值包括:
当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xi-1*R/Xi
当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xi-1/(R*Xi);
其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
可选地,在所述判断所述亮度差异值是否大于预设的闪光点阈值之后,
所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子还包括:
当所述亮度差异值小于预设的闪光点阈值时,
在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
其中,所述第一亮度阈值大于所述第二亮度阈值;
在所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子之后,所述图像显示方法还包括:
在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
本发明实施例还提出了一种图像显示装置,所述装置包括:
亮度差异值获取单元,设置为获取图像显示的当前帧与前一帧的亮度差异值;
分段单元,设置为根据所述亮度差异值对图像帧进行分段;
第一处理单元,设置为:在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;
第一输出单元,设置为输出调节后的当前帧。
可选地,所述图像显示装置还包括:
第二处理单元,设置为:在所述分段单元根据所述亮度差异值对图像帧进行分段之后,在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
可选地,所述分段单元包括:
拐点判断模块,设置为:判断所述亮度差异值是否大于预设的拐点阈值;当所述亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当所述亮度差异值小于预设的拐点阈值,判断为保持当前分段。
可选地,所述图像显示装置还包括:
调节因子判断单元,设置为:判断是否存储有调节因子,当存储有调节 因子时,通知所述第一处理单元执行根据存储的调节因子调节当前帧的亮度值;
所述第一输出单元还设置为:在所述调节因子判断单元判断出没有存储调节因子时,输出当前帧。
可选地,
所述分段单元还包括:闪光点判断模块,设置为:在所述拐点判断模块判断出所述亮度差异值大于预设的拐点阈值时,判断所述亮度差异值是否大于预设的闪光点阈值;
所述第二处理单元包括:第一处理模块,设置为:当所述亮度差异值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
其中,所述闪光点阈值大于所述拐点阈值。
可选地,所述第一处理模块是设置为通过以下方式根据预设的柔和因子调节当前帧的亮度值:
当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xi-1*R/Xi
当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xi-1/(R*Xi);
其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
可选地,所述第二处理单元还包括:
第二处理模块,设置为:在所述闪光点判断模块判断出所述亮度差异值小于预设的闪光点阈值时,
在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
其中,所述第一亮度阈值大于所述第二亮度阈值;
所述第一输出单元还设置为:在所述第二处理单元对图像帧的亮度值进 行相应的处理,并设置或更新调整因子之后,在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
本发明实施例还提出了一种终端,所述终端包括上述任一项所述的图像显示装置。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的图像显示方法。
与相关技术相比,本发明实施例提供的技术方案包括:获取图像显示的当前帧与前一帧的亮度差异值;根据所述亮度差异值对图像帧进行分段;在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;输出调节后的当前帧。通过本发明实施例的方案,在相邻的两个图像帧的亮度差异太大时,对当前帧的亮度进行调节;对于用户来说,在观看显示屏的图像内容时,无需手动调节亮度,在亮度提高程度过大时,将自动降低图像帧的高亮度,在亮度减小程度过大时,将自动提升图像帧的低亮度;尤其在黑暗环境中,对图像帧的自动调节,避免了对眼睛的刺激,大大提高了舒适度,降低了用户的疲劳度,提高了用户使用通过显示屏进行图像输出的电子设备的使用体验。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
下面对本发明实施例中的附图进行说明,实施例中的附图是用于对本申请的进一步理解,与说明书一起用于解释本申请,并不构成对本申请保护范围的限制。
图1为本发明实施例提供的一种图像显示方法的流程图;
图2为本发明实施例提供的另一种图像显示方法的流程图;
图3为本发明实施例提供的又一种图像显示方法的流程图;
图4为本发明实施例提供的一种图像显示装置的结构组成示意图;
图5为本发明实施例提供的另一种图像显示装置的结构组成示意图。
本发明的实施方式
下面结合附图对本申请作进一步的描述,并不能用来限制本申请的保护范围。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。
参见图1,本发明实施例提出了一种图像显示方法,所述方法包括以下步骤:
步骤110,获取图像显示的当前帧与前一帧的亮度差异值。
其中,图像可以是视频文件中的一帧图像,图像也可以指用户使用电子设备或电器设备时,输出至显示屏的一幅图像。当前帧指视频文件中当前准备输出至显示屏的图像帧,前一帧指当前帧的前一个图像帧。当前帧也可以是当前准备输出至显示屏的一幅图像帧。
本发明实施例中,步骤110中,亮度差异值为亮度对比值或亮度差值。本发明实施例中,亮度差异值以亮度对比值为例进行说明。
当前帧与前一帧的亮度对比值用于衡量相邻两帧图像中高亮度的帧与低亮度的帧的比值,从而衡量视频亮度变化的幅度,通过视频亮度变化的幅度可以判断视频图像是否发生场景的切换。
可以采用如下公式计算视频的当前帧与前一帧的亮度对比值:
D=max{Xi,Xi-1}/min{Xi,Xi-1};
其中,D为视频的当前帧与前一帧的亮度对比值,Xi为当前帧的亮度值,Xi-1为当前帧的前一帧的亮度值。
其中,每一个视频帧是通过像素组成的,帧的亮度值是指帧中每个像素对应的亮度值的平均值。
例如,当前帧和前一帧中的其中一个的亮度值为50,另一个帧的亮度值为100,则当前帧与前一帧的亮度对比值为2。
步骤120,根据所述亮度差异值对图像帧进行分段。
其中,所述根据所述亮度差异值对图像帧进行分段包括:
判断所述亮度差异值是否大于预设的拐点阈值;当亮度差异值大于或等 于预设的拐点阈值,判断为下一个分段,当亮度差异值小于预设的拐点阈值,判断为保持当前分段。
对于同一个分段中的每个图像帧,使用相同调节因子对图像帧的亮度值进行调节。
步骤120中,当相邻两帧亮度对比值大于或等于预设的拐点阈值时,判断为视频亮度拐点。例如:设置拐点阈值为2,当前一帧视频亮度值为50,后一帧视频亮度值为100时,或者后一帧视频亮度值为25,可以认为是一个视频亮度拐点,说明可能出现了场景的切换。
一般来说,不同的场景对应于不同的分段,同一个场景下的图像较为连贯,并且亮度差异较小,因此采用相同的调节因子进行调节,防止画面出现闪烁的情况。
步骤130,在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值。
其中,所述调节因子是在亮度差异值大于或等于预设的拐点阈值时进行设置并存储的。
所述根据存储的调节因子调节当前帧的亮度值为:将当前帧的亮度值乘以调节因子,得到调节后的当前帧的亮度值,以调亮亮度;或者,将当前帧的亮度值除以调节因子,得到调节后的当前帧的亮度值,以调暗亮度。
步骤140,输出调节后的当前帧。
本发明实施例中,在步骤120之后,所述方法还包括:在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
上述相应的处理用于根据预设调整规则,对图像帧的亮度值进行相应的处理,当处理中包括调节当前帧的亮度值时,根据调整重新设置调整因子的大小,当处理中不包括对当前帧的亮度值进行调节时,清除调整因子,这样下次判断是否存储有调整因子时,将判断为没有存储。
下面结合具体例子对预设调整规则进行说明。例如,在根据拐点阈值和闪光点阈值对图像帧进行分段时,当亮度差异值位于不同的区间时,执行不同的调整,所述调整用于减小当前帧与前一帧之间的亮度差异值。
下面结合一个具体示例进行说明。
参见图2,在图1示出的图像显示方法的基础上,本发明实施例还提出了一种图像显示方法,包括以下步骤:
步骤210,获取视频的当前帧与前一帧的亮度对比值;
步骤220,判断所述亮度对比值是否大于预设的拐点阈值;
步骤230,当所述亮度对比值小于预设的拐点阈值时,判断是否存储有调节因子;
步骤231,当存储有调节因子时,根据存储的调节因子调节当前帧的亮度值;其中,所述调节因子是在亮度对比值大于或等于预设的拐点阈值时进行设置并存储的;
步骤270,输出调节后的当前帧;即将调节后的当前帧输出至显示屏幕。
在步骤230之后,在没有存储调节因子时,直接输出当前帧。
本发明实施例中,步骤231中,所述根据存储的调节因子调节当前帧的亮度值包括:
Xnewi=Xi*A;或者,Xnewi=Xi/A;
其中,Xnewi为调节后的当前帧的亮度值,A为存储的调节因子,Xi为当前帧的亮度值。
在步骤220之后,所述方法还包括以下步骤:当所述亮度对比值大于预设的拐点阈值时,
步骤250,判断当前帧的亮度值是否大于预设的第一亮度阈值;
步骤251,在当前帧的亮度值大于预设的第一亮度阈值时,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子,并跳转至步骤270,即输出调节后的当前帧;
其中,A=Xnewi/Xi
其中,A为记录的本次调节对应的调节因子,Xi为调节前的当前帧的亮度值,Xnewi为调节后的当前帧的亮度值,本次调节中为第一亮度阈值。
步骤260,在当前帧的亮度值小于或等于预设的第一亮度阈值时,判断 当前帧的亮度值是否小于预设的第二亮度阈值;
步骤261,在当前帧的亮度值小于预设的第二亮度阈值时,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子,并跳转至步骤270,即输出调节后的当前帧;
其中,A=Xnewi/Xi
其中,A为记录的本次调节对应的调节因子,Xi为调节前的当前帧的亮度值,Xnewi为调节后的当前帧的亮度值,本次调节中为第二亮度阈值。
步骤262,在当前帧的亮度值大于或等于预设的第二亮度阈值时,直接输出当前帧。其中,所述第一亮度阈值大于所述第二亮度阈值。
上述过程中,先判断当前帧的亮度值是否大于预设的第一亮度阈值,再判断是否小于预设的第二亮度阈值,此外,也可以先判断是否小于预设的第二亮度阈值,再判断是否大于预设的第一亮度阈值。
参见图3,在图2示出的图像显示方法的基础上,本发明实施例还提出了一种图像显示方法,所述方法包括以下步骤:
步骤310,获取视频的当前帧与前一帧的亮度对比值;
步骤320,判断所述亮度对比值是否大于预设的拐点阈值;
步骤330,当所述亮度对比值小于预设的拐点阈值时,判断是否存储有调节因子;
步骤331,当存储有调节因子时,根据存储的调节因子调节当前帧的亮度值;
步骤370,输出调节后的当前帧。
在步骤330之后,在没有存储调节因子时,直接输出当前帧。
在步骤320之后,所述方法还包括以下步骤:
步骤340,当所述亮度对比值大于或等于预设的拐点阈值时,判断所述亮度对比值是否大于或等于预设的闪光点阈值。
其中,所述根据所述亮度差异值对图像帧进行分段还包括:
判断所述亮度差异值是否大于或等于预设的闪光点阈值;当亮度差异值 大于或等于预设的闪光点阈值,判断为下一个分段。也就是说,除了亮度差异值大于或等于预设的拐点阈值会导致进入下一个分段,亮度差异值大于或等于预设的闪光点阈值也会导致进入下一个分段。
本发明实施例中,当相邻两帧亮度对比值大于或等于预设的闪光点阈值时,判断为视频亮度闪光点,一般地,视频亮度闪光点对比度大于视频亮度拐点对比度,视频闪光点同样也是视频亮度拐点。当出现视频亮度闪光点,也说明出现了场景的切换。
例如,设置闪光点阈值为3,当前一帧视频亮度为50,后一帧视频亮度为150时,可以认为是一个视频闪光点,例如亮度前后差别很大(爆炸场景等)。
步骤341,当所述亮度对比值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
其中,所述闪光点阈值大于所述拐点阈值。
步骤341中,所述根据预设的柔和因子调节当前帧的亮度值包括:
当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xnewi/Xi=Xi-1*R/Xi
当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xnewi/Xi=Xi-1/(R*Xi);
其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
其中,当Xi-1=Xi时,视频亮度没有变化,可根据前一视频帧的调节方式进行亮度调节。
通过柔和因子的调节,使得调节后的当前帧与前一帧的亮度差异值小于调节前的当前帧与前一帧的亮度差异值。
当出现视频闪光点的时候,调整当前帧与前一帧的亮度对比值为柔和因子,以避免造成前后视频帧亮度差别较大,对眼睛造成的刺激。如,针对前一帧视频的亮度值为20,后一帧的亮度值为200的情况,假如设定的视频最大亮度值为150,此算法并不采用把后一帧视频亮度值减少到150,如果减少到150,此时视频帧亮度对比值为150/20=7.5,对比值仍然较大,仍会造成刺眼的效果,因此引入柔和因子,来限制前后最大的对比度值,假如设 置柔和因子为3,此时后一帧视频亮度值调整为150*20*3/150=60(当前帧亮度值*闪光点前一帧亮度值*柔和因子/闪光点视频帧亮度值),从而达到出现极端情况造成对用户的刺激。
本发明实施例中,视频片段是指从视频的亮度拐点或闪光点的第一视频帧到下一个视频拐点或闪光点视频帧之间的视频帧组成的视频片段。因此一个完整的视频就是一个个视频片段组成的。
在一个视频片段中,调节因子的值是固定的,也就是说,采用相同的调节因子对视频帧的亮度值进行调整。
步骤340之后,当所述亮度对比值小于预设的闪光点阈值时,执行步骤350。
步骤350,判断当前帧的亮度值是否大于预设的第一亮度阈值;
步骤351,在当前帧的亮度值大于预设的第一亮度阈值时,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子,并跳转至步骤370,即输出调节后的当前帧;
步骤360,在当前帧的亮度值小于或等于预设的第一亮度阈值时,判断当前帧的亮度值是否小于预设的第二亮度阈值;
步骤361,在当前帧的亮度值小于预设的第二亮度阈值时,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子,并跳转至步骤370,即输出调节后的当前帧;
步骤362,在当前帧的亮度值大于或等于预设的第二亮度阈值时,直接输出当前帧。其中,所述第一亮度阈值大于所述第二亮度阈值。
下面结合具体的实施场景进行说明。
设置拐点阈值为2,设置闪光点阈值为3,设置第一亮度阈值为100,设置第二亮度阈值为10;在播放视频时:
对于第1帧,计算得到当前帧的亮度值为50;直接输出当前帧;
对于第2帧,计算得到当前帧的亮度值为60;亮度对比值=60/50=1.2,小于预设的拐点阈值,并且没有存储调节因子,直接输出当前帧;
对于第3帧,计算得到当前帧的亮度值为40;亮度对比值=40/60=0.66666667,小于预设的拐点阈值,并且没有存储调节因子,直接输出当前帧;
对于第4帧,计算得到当前帧的亮度值为90;亮度对比值=90/40=2.25,大于预设的拐点阈值且小于预设的闪光点阈值,继续判断,当前帧的亮度值小于第一亮度阈值100,并且大于第二亮度阈值10,因此还是直接输出当前帧;
对于第5帧,计算得到当前帧的亮度值为190;亮度对比值=190/90=2.11111,大于预设的拐点阈值,继续判断,亮度对比值小于预设的闪光点阈值,继续判断,当前帧的亮度值大于第一亮度阈值100,因此将当前帧的亮度值调节为100;并且计算本次调节对应的调节因子A=190/100=1.9。
对于第6帧,计算得到当前帧的亮度值为180;亮度对比值=190/180=1.055556,小于预设的拐点阈值,并且存储有调节因子A=1.9,根据存储的调节因子调节当前帧的亮度值;将当前帧的亮度值调节为180/1.9=94.73684,以调暗亮度;
对于第7帧,计算得到当前帧的亮度值为280;亮度对比值=280/180=1.55556,小于预设的拐点阈值,并且存储有调节因子A=1.9,根据存储的调节因子调节当前帧的亮度值;将当前帧的亮度值调节为280/1.9=147.3684,以调暗亮度;
对于第8帧,计算得到当前帧的亮度值为60;亮度对比值=280/60=4.66667,大于预设的拐点阈值,继续判断,大于预设的闪光点阈值,根据预设的柔和因子(例如为3)调节当前帧的亮度值,并记录本次调节对应的调节因子;将当前帧的亮度值调节为280/3=93.333,并且计算本次调节对应的调节因子A=93.3333/60=1.5555。
对于第9帧,计算得到当前帧的亮度值为90;亮度对比值=90/60=1.5,小于预设的拐点阈值,并且存储有调节因子A=1.5555,根据存储的调节因子调节当前帧的亮度值;将当前帧的亮度值调节为90/1.55555=57.857,以调暗亮度。
对于第10帧,计算得到当前帧的亮度值为40;亮度对比值=90/40=2.25,大于预设的拐点阈值,且小于预设的闪光点阈值,并且存储有调节因子A=1.5555,当前帧的亮度值小于第一亮度阈值100,且大于第二亮度阈值10;因此对当前帧的亮度值不做调节,并且将存储的调节因子清除。
基于与上述实施例相同或相似的构思,本发明实施例还提供一种图像显示装置,该图像显示装置可以设置在终端上,例如,多媒体终端、具有视频输出功能的终端。
参见图4,本发明实施例提出的一种图像显示装置包括:
亮度差异值获取单元10,设置为获取图像显示的当前帧与前一帧的亮度差异值;
分段单元20,设置为根据所述亮度差异值对图像帧进行分段;
第一处理单元31,设置为:在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;
第一输出单元50,设置为输出调节后的当前帧。
本发明实施例中,所述图像显示装置包括第二处理单元32,设置为:在分段单元20根据所述亮度差异值对图像帧进行分段之后,在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
本发明实施例中,所述分段单元20包括:
拐点判断模块21,设置为:判断所述亮度差异值是否大于预设的拐点阈值;当亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当亮度差异值小于预设的拐点阈值,判断为保持当前分段。
本发明实施例中,所述图像显示装置还包括:
调节因子判断单元40,设置为:判断是否存储有调节因子,当存储有调节因子时,通知第一处理单元31执行根据存储的调节因子调节当前帧的亮度值;
所述第一输出单元50还设置为:在调节因子判断单元40判断出没有存储调节因子时,输出当前帧。
本发明实施例中,所述第二处理单元32包括:
第二处理模块322,设置为:
在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
其中,所述第一亮度阈值大于所述第二亮度阈值;
所述第一输出单元50还设置为:在第二处理单元32对图像帧的亮度值进行相应的处理,并设置或更新调整因子之后,在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
参见图5,在图4示出的图像显示装置的基础上,本发明实施例还提出另一种图像显示装置,所述图像显示装置包括:
亮度差异值获取单元10,设置为获取图像显示的当前帧与前一帧的亮度差异值;
分段单元20,设置为根据所述亮度差异值对图像帧进行分段;
第一处理单元31,设置为:在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;
第一输出单元50,设置为输出调节后的当前帧。
本发明实施例中,所述图像显示装置包括第二处理单元32,设置为:在分段单元20根据所述亮度差异值对图像帧进行分段之后,在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
本发明实施例中,所述分段单元20包括:
拐点判断模块21,设置为:判断所述亮度差异值是否大于预设的拐点阈值;当亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当亮度差异值小于预设的拐点阈值,判断为保持当前分段。
本发明实施例中,所述图像显示装置还包括:
调节因子判断单元40,设置为:判断是否存储有调节因子,当存储有 调节因子时,通知第一处理单元31执行根据存储的调节因子调节当前帧的亮度值;
所述第一输出单元50还设置为:在调节因子判断单元40判断出没有存储调节因子时,输出当前帧。
本发明实施例中,所述分段单元20还包括:
闪光点判断模块22,设置为:在拐点判断模块21判断出所述亮度差异值大于预设的拐点阈值时,判断所述亮度差异值是否大于预设的闪光点阈值;
所述第二处理单元32包括:
第一处理模块321,设置为:当所述亮度差异值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
其中,所述闪光点阈值大于所述拐点阈值。
本发明实施例中,所述第一处理模块321是设置为通过以下方式根据预设的柔和因子调节当前帧的亮度值:
当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xi-1*R/Xi
当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xi-1/(R*Xi);
其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
本发明实施例中,所述第二处理单元32还包括:
第二处理模块322,设置为:在闪光点判断模块22判断出所述亮度差异值小于预设的闪光点阈值时,
在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
其中,所述第一亮度阈值大于所述第二亮度阈值;
所述第一输出单元50还设置为:在第二处理单元32对图像帧的亮度值进行相应的处理,并设置或更新调整因子之后,在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
本发明实施例还提出了一种终端,所述终端包括本发明实施例提供的任一种图像显示装置。上述终端包括显示屏,能够输出图像帧。
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的图像显示方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。
需要说明的是,以上所述的实施例仅是为了便于本领域的技术人员理解而已,并不用于限制本申请的保护范围,在不脱离本申请的发明构思的前提下,本领域技术人员对本申请所做出的任何显而易见的替换和改进等均在本申请的保护范围之内。
工业实用性
本申请实施例提供一种图像显示方法及装置,在相邻的两个图像帧的亮度差异太大时,对当前帧的亮度进行调节;对于用户来说,在观看显示屏的图像内容时,无需手动调节亮度,在亮度提高程度过大时,将自动降低图像帧的高亮度,在亮度减小程度过大时,将自动提升图像帧的低亮度;尤其在黑暗环境中,对图像帧的自动调节,避免了对眼睛的刺激,大大提高了舒适度,降低了用户的疲劳度,提高了用户使用通过显示屏进行图像输出的电子设备的使用体验。

Claims (16)

  1. 一种图像显示方法,所述方法包括:
    获取图像显示的当前帧与前一帧的亮度差异值;
    根据所述亮度差异值对图像帧进行分段;
    在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;
    输出调节后的当前帧。
  2. 根据权利要求1所述的图像显示方法,在所述根据所述亮度差异值对图像帧进行分段之后,所述方法还包括:
    在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
  3. 根据权利要求1所述的图像显示方法,其中,所述亮度差异值为亮度对比值或亮度差值。
  4. 根据权利要求2所述的图像显示方法,其中,所述根据所述亮度差异值对图像帧进行分段包括:
    判断所述亮度差异值是否大于预设的拐点阈值;当所述亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当所述亮度差异值小于预设的拐点阈值,判断为保持当前分段。
  5. 根据权利要求1所述的图像显示方法,在所述根据存储的调节因子调节当前帧的亮度值之前,所述方法还包括:
    判断是否存储有调节因子,当存储有调节因子时,执行所述根据存储的调节因子调节当前帧的亮度值的步骤;
    在没有存储调节因子时,输出当前帧。
  6. 根据权利要求4所述的图像显示方法,在所述判断所述亮度差异值是否大于预设的拐点阈值之后,所述方法还包括:
    当所述亮度差异值大于预设的拐点阈值时,判断所述亮度差异值是否大于预设的闪光点阈值;
    所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子包括:
    当所述亮度差异值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
    其中,所述闪光点阈值大于所述拐点阈值。
  7. 根据权利要求6所述的图像显示方法,其中,所述根据预设的柔和因子调节当前帧的亮度值包括:
    当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xi-1*R/Xi
    当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xi-1/(R*Xi);
    其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
  8. 根据权利要求6所述的图像显示方法,其中,在所述判断所述亮度差异值是否大于预设的闪光点阈值之后,
    所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子还包括:
    当所述亮度差异值小于预设的闪光点阈值时,
    在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
    在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
    其中,所述第一亮度阈值大于所述第二亮度阈值;
    在所述对图像帧的亮度值进行相应的处理,并设置或更新调整因子之后,所述图像显示方法还包括:
    在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
  9. 一种图像显示装置,所述装置包括:
    亮度差异值获取单元,设置为获取图像显示的当前帧与前一帧的亮度差异值;
    分段单元,设置为根据所述亮度差异值对图像帧进行分段;
    第一处理单元,设置为:在保持当前分段的情况下,根据存储的调节因子调节当前帧的亮度值;
    第一输出单元,设置为输出调节后的当前帧。
  10. 根据权利要求9所述的图像显示装置,所述图像显示装置还包括:第二处理单元,设置为:在所述分段单元根据所述亮度差异值对图像帧进行分段之后,在进入下一个分段的情况下,对图像帧的亮度值进行相应的处理,并设置或更新调整因子。
  11. 根据权利要求9所述的图像显示装置,其中,所述分段单元包括:
    拐点判断模块,设置为:判断所述亮度差异值是否大于预设的拐点阈值;当所述亮度差异值大于或等于预设的拐点阈值,判断为进入下一个分段,当所述亮度差异值小于预设的拐点阈值,判断为保持当前分段。
  12. 根据权利要求9所述的图像显示装置,所述图像显示装置还包括:
    调节因子判断单元,设置为:判断是否存储有调节因子,当存储有调节因子时,通知所述第一处理单元执行根据存储的调节因子调节当前帧的亮度值;
    所述第一输出单元还设置为:在所述调节因子判断单元判断出没有存储调节因子时,输出当前帧。
  13. 根据权利要求11所述的图像显示装置,其中,
    所述分段单元还包括:
    闪光点判断模块,设置为:在所述拐点判断模块判断出所述亮度差异值大于预设的拐点阈值时,判断所述亮度差异值是否大于预设的闪光点阈值;
    所述第二处理单元包括:
    第一处理模块,设置为:当所述亮度差异值大于或等于预设的闪光点阈值时,根据预设的柔和因子调节当前帧的亮度值,并记录本次调节对应的调节因子;
    其中,所述闪光点阈值大于所述拐点阈值。
  14. 根据权利要求13所述的图像显示装置,其中,所述第一处理模块 是设置为通过以下方式根据预设的柔和因子调节当前帧的亮度值:
    当Xi-1<Xi时,Xnewi=Xi-1*R,A=Xi-1*R/Xi
    当Xi-1>Xi时,Xnewi=Xi-1/R,A=Xi-1/(R*Xi);
    其中,Xnewi为调节后的当前帧的亮度值,A为本次调节对应的调节因子,R为预设的柔和因子,Xi-1为前一帧的亮度值,Xi为当前帧的亮度值。
  15. 根据权利要求13所述的图像显示装置,其中,
    所述第二处理单元还包括:
    第二处理模块,设置为:在所述闪光点判断模块判断出所述亮度差异值小于预设的闪光点阈值时,
    在当前帧的亮度值大于预设的第一亮度阈值的情况下,将当前帧的亮度值调节为第一亮度阈值,并记录本次调节对应的调节因子;
    在当前帧的亮度值小于预设的第二亮度阈值的情况下,将当前帧的亮度值调节为第二亮度阈值,并记录本次调节对应的调节因子;
    其中,所述第一亮度阈值大于所述第二亮度阈值;
    所述第一输出单元还设置为:在所述第二处理单元对图像帧的亮度值进行相应的处理,并设置或更新调整因子之后,在对当前帧的亮度值作出调节的情况下,输出调节后的当前帧;在没有作出调节的情况下,输出当前帧。
  16. 一种终端,包括权利要求9至15中任一项所述的图像显示装置。
PCT/CN2016/083346 2015-09-22 2016-05-25 一种图像显示方法和装置、以及终端 WO2017049939A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510606878.4 2015-09-22
CN201510606878.4A CN106548763B (zh) 2015-09-22 2015-09-22 一种图像显示方法和装置、以及终端

Publications (1)

Publication Number Publication Date
WO2017049939A1 true WO2017049939A1 (zh) 2017-03-30

Family

ID=58365301

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083346 WO2017049939A1 (zh) 2015-09-22 2016-05-25 一种图像显示方法和装置、以及终端

Country Status (2)

Country Link
CN (1) CN106548763B (zh)
WO (1) WO2017049939A1 (zh)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108492769B (zh) * 2018-03-26 2020-08-14 京东方科技集团股份有限公司 亮度调节方法及装置、显示装置
CN109064998A (zh) * 2018-06-28 2018-12-21 努比亚技术有限公司 一种屏幕亮度调节方法、终端及计算机可读存储介质
CN110277163A (zh) * 2019-06-12 2019-09-24 合肥中科奔巴科技有限公司 基于视觉老人及病人床上状态识别与监控预警系统
CN110267044A (zh) * 2019-07-16 2019-09-20 吉林工程技术师范学院 一种电影场景的色度编码方法和系统
CN111462166A (zh) * 2020-03-31 2020-07-28 武汉卓目科技有限公司 一种基于直方图均衡化光流法的视频稳像方法和系统
CN113395599A (zh) * 2020-12-03 2021-09-14 腾讯科技(深圳)有限公司 一种视频处理方法、装置、电子设备及介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070285580A1 (en) * 2006-06-07 2007-12-13 Arthur Mitchell Temporal noise analysis of a video signal
CN101340511A (zh) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 一种基于亮度检测的自适应视频图像增强方法
CN101710985A (zh) * 2009-12-11 2010-05-19 哈尔滨工业大学 一种用于图像编码的图像亮度补偿方法
CN103353982A (zh) * 2013-05-15 2013-10-16 中山大学 一种基于直方图均衡化的色调映射方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100391232C (zh) * 2005-01-07 2008-05-28 智辉研发股份有限公司 数字影像闪光场景检测与消除方法
KR100843090B1 (ko) * 2006-10-25 2008-07-02 삼성전자주식회사 영상의 깜박임을 개선하는 디스플레이 장치 및 방법
CN101546537B (zh) * 2008-03-28 2011-02-16 北京京东方光电科技有限公司 液晶显示装置的驱动方法、补偿处理器及驱动装置
CN102025919B (zh) * 2010-11-17 2012-12-19 无锡中星微电子有限公司 图像闪烁检测方法和装置以及应用此装置的摄像头
KR20120076029A (ko) * 2010-12-29 2012-07-09 삼성전자주식회사 3차원 영상 데이터 처리 방법 및 이를 수행하는 표시 장치
CN104702964B (zh) * 2015-03-30 2018-05-15 北京布卡互动科技有限公司 一种图像处理方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070285580A1 (en) * 2006-06-07 2007-12-13 Arthur Mitchell Temporal noise analysis of a video signal
CN101340511A (zh) * 2008-08-07 2009-01-07 中兴通讯股份有限公司 一种基于亮度检测的自适应视频图像增强方法
CN101710985A (zh) * 2009-12-11 2010-05-19 哈尔滨工业大学 一种用于图像编码的图像亮度补偿方法
CN103353982A (zh) * 2013-05-15 2013-10-16 中山大学 一种基于直方图均衡化的色调映射方法

Also Published As

Publication number Publication date
CN106548763B (zh) 2020-09-15
CN106548763A (zh) 2017-03-29

Similar Documents

Publication Publication Date Title
WO2017049939A1 (zh) 一种图像显示方法和装置、以及终端
US11375128B2 (en) Method for obtaining exposure compensation values of high dynamic range image, terminal device and non-transitory computer-readable storage medium
US9407831B2 (en) Intelligent auto-exposure bracketing
US8629830B2 (en) Synchronizing dynamic backlight adaptation
US8957899B2 (en) Image processing apparatus and method for controlling the same
KR20150122768A (ko) 전자 기기의 촬영 방법 및 장치, 그리고 전자 기기
WO2017084255A1 (zh) 实时视频增强方法、终端和非易失性计算机可读存储介质
CN110619860B (zh) 屏幕刷新率的调整方法、装置、存储介质及电子设备
US9165510B2 (en) Temporal control of illumination scaling in a display device
JP2006146178A (ja) 適応コントラスト向上のための伝達曲線の発生方法
JP2013123223A (ja) 電子装置の表示パネルの輝度調節システム及びその方法
EP3306913A1 (en) Photographing method and apparatus
US10872557B2 (en) Display control apparatus and display control method
TWI345418B (en) Brightness adjusting methods for video frames of video sequence and brightness adjusting devices thereof
US10382671B2 (en) Image processing apparatus, image processing method, and recording medium
CN108206018B (zh) 自适应画面刷新率调整方法及其装置
WO2022127174A1 (zh) 图像处理方法及电子设备
TWI567707B (zh) 影像調整方法及其顯示器
US9578250B2 (en) Display control apparatus
US9473716B2 (en) Image processing method and image processing device
CN107578753B (zh) 移动终端及显示屏亮度调节处理方法、及存储介质
WO2015107880A1 (ja) 画像処理装置、画像処理方法及びプログラムを記録した記録媒体
CN107564451B (zh) 显示面板及显示方法
JP2009271401A (ja) 画像表示装置
JP2012151669A (ja) テレビ受像機

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16847821

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16847821

Country of ref document: EP

Kind code of ref document: A1