[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN104460995B - A kind of display processing method, display processing unit and terminal - Google Patents

A kind of display processing method, display processing unit and terminal Download PDF

Info

Publication number
CN104460995B
CN104460995B CN201410708539.2A CN201410708539A CN104460995B CN 104460995 B CN104460995 B CN 104460995B CN 201410708539 A CN201410708539 A CN 201410708539A CN 104460995 B CN104460995 B CN 104460995B
Authority
CN
China
Prior art keywords
gamma parameter
preset
display screen
parameter values
parameter value
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.)
Expired - Fee Related
Application number
CN201410708539.2A
Other languages
Chinese (zh)
Other versions
CN104460995A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201410708539.2A priority Critical patent/CN104460995B/en
Priority to CN201710992331.1A priority patent/CN107832029B/en
Publication of CN104460995A publication Critical patent/CN104460995A/en
Application granted granted Critical
Publication of CN104460995B publication Critical patent/CN104460995B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/02Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed
    • G09G5/024Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the way in which colour is displayed using colour registers, e.g. to control background, foreground, surface filling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a kind of display processing method, display processing unit and terminal, wherein, a kind of display processing method includes:Determine that terminal is in read state;Preset from M groups and one group of default gamma parameter value is chosen in gamma parameter value, wherein, the blue component in display screen transmitting light corresponding to the default gamma parameter value of difference group is different;The default gamma parameter value that the gamma parameter value of the display screen of the terminal is arranged to choose, to adjust the blue component in the display screen transmitting light.Technical scheme provided by the invention can be in injury of the display screen to human eye for effectively reducing terminal.

Description

一种显示处理方法、显示处理装置及终端A display processing method, a display processing device, and a terminal

技术领域technical field

本发明涉及显示技术领域,具体涉及一种显示处理方法、显示处理装置及终端。The present invention relates to the field of display technology, in particular to a display processing method, a display processing device and a terminal.

背景技术Background technique

随着科学技术的发展,终端(例如智能手机、笔记本和平板电脑等)获得了广泛的使用,也逐渐成为了大多数人生活当中不可缺少的一部分。目前,大多数终端均能够满足人们即时通讯、玩游戏、看电影、看电子书以及网上冲浪等需求。With the development of science and technology, terminals (such as smart phones, notebooks, and tablet computers, etc.) have been widely used, and have gradually become an indispensable part of most people's lives. At present, most terminals can meet people's needs for instant messaging, playing games, watching movies, reading e-books, and surfing the Internet.

虽然,功能丰富的终端能够提高人们的生活品质,但是,终端也对人体健康造成了一定影响。例如,医学研究表明,过多的光辐射会对眼睛的视网膜造成伤害,因此,若长时间使用终端,则终端显示屏幕发出的光线会对人眼造成不小的伤害,从而影响人眼的健康。Although a terminal with rich functions can improve people's quality of life, the terminal also has a certain impact on human health. For example, medical research shows that too much light radiation can cause damage to the retina of the eye. Therefore, if the terminal is used for a long time, the light emitted by the terminal display screen will cause considerable damage to the human eye, thereby affecting the health of the human eye .

如何在人们使用终端的同时,减小终端的显示屏幕对人眼的伤害这一问题逐渐成为业界探讨的热点,目前并没有相关的解决方案能够有效解决上述问题。How to reduce the damage to human eyes caused by the display screen of the terminal while people are using the terminal has gradually become a hot topic in the industry. At present, there is no relevant solution that can effectively solve the above problem.

发明内容Contents of the invention

本发明提供一种应用于显示处理方法、显示处理装置及终端,用于减小显示屏幕对人眼的伤害。The invention provides a display processing method, a display processing device and a terminal for reducing the damage of a display screen to human eyes.

本发明第一方面提供一种显示处理方法,包括:A first aspect of the present invention provides a display processing method, including:

确定终端处于阅读状态;Make sure the terminal is in the reading state;

从M组预设伽马参数值中选取一组预设伽马参数值,其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同;Selecting a set of preset gamma parameter values from M sets of preset gamma parameter values, wherein different sets of preset gamma parameter values correspond to different blue components in light emitted from the display screen;

将所述终端的显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,以调整所述显示屏幕发射光线中的蓝色分量。Setting the gamma parameter value of the display screen of the terminal to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

基于本发明第一方面,在第一种可能实现方式中,所述确定终端处于阅读状态,包括:Based on the first aspect of the present invention, in a first possible implementation manner, the determining that the terminal is in the reading state includes:

在满足以下条件中的至少一种时,确定所述终端处于阅读状态:When at least one of the following conditions is met, it is determined that the terminal is in a reading state:

在所述显示屏幕前识别到人脸;recognizing a human face in front of said display screen;

所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长大于或等于预设的最小时长。The display screen is in a lighting state and the duration of the lighting state is greater than or equal to a preset minimum duration.

基于本发明第一方面的第一种可能的实现方式,在第二种可能实现方式中,在所述显示屏幕前识别到人脸时,所述从所述M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the first possible implementation of the first aspect of the present invention, in the second possible implementation, when a human face is recognized in front of the display screen, the M set of preset gamma parameter values Choose from a set of preset gamma parameter values, including:

根据所述人脸中的人眼与所述显示屏幕之间的距离、所述人脸中的人眼在预设时长内的眨眼次数以及与所述人脸匹配的年龄中的至少一种,从所述M组预设伽马参数值中选取一组预设伽马参数值。According to at least one of the distance between the human eyes in the human face and the display screen, the number of blinks of the human eyes in the human face within a preset time period, and the age matched with the human face, Select a set of preset gamma parameter values from the M sets of preset gamma parameter values.

基于本发明第一方面的第二种可能的实现方式,在第三种可能实现方式中,所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the second possible implementation of the first aspect of the present invention, in the third possible implementation, the selection of a set of preset gamma parameter values from M sets of preset gamma parameter values includes:

检测所述人脸中的人眼与所述显示屏幕之间的距离;Detecting the distance between the human eyes in the human face and the display screen;

根据所述人脸中的人眼与所述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。According to the distance between the human eyes in the human face and the display screen, and the preset distance-gamma parameter value correspondence, select a set of preset gamma parameter values from the M sets of preset gamma parameter values The horse parameter value, wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance.

基于本发明第一方面的第二种可能的实现方式,在第四种可能实现方式中,所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the second possible implementation of the first aspect of the present invention, in the fourth possible implementation, the selection of a set of preset gamma parameter values from M sets of preset gamma parameter values includes:

检测所述人脸中的人眼在预设时长内的眨眼次数;Detecting the number of blinks of the human eyes in the human face within a preset duration;

当所述眨眼次数不小于预设的最小次数时,根据所述人脸中的人眼在预设时长内的眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。When the number of blinks is not less than the preset minimum number of times, according to the number of blinks of the human eyes in the face within the preset time length, and the preset corresponding relationship between the number of blinks and the gamma parameter value, from the M A set of preset gamma parameter values is selected from a set of preset gamma parameter values, wherein, in the preset corresponding relationship between the number of blinks and the gamma parameter value, the blue component corresponding to the gamma parameter value is negatively correlated with the number of blinks .

基于本发明第一方面的第二种可能的实现方式,在第五种可能实现方式中,所述从所述M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the second possible implementation of the first aspect of the present invention, in the fifth possible implementation, selecting a set of preset gamma parameter values from the M sets of preset gamma parameter values includes:

估计与所述人脸匹配的年龄;Estimate the age of the matching face;

根据估计的与所述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。According to the estimated age matched with the human face and the preset age-gamma parameter value correspondence, a set of preset gamma parameter values is selected from the M sets of preset gamma parameter values, wherein, in In the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age.

基于本发明第一方面的第一种可能实现方式,在第六种可能的实现方式中,在所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长大于或等于预设的最小时长时,所述从所述M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the first possible implementation of the first aspect of the present invention, in a sixth possible implementation, when the display screen is in the on state and the duration of the on state is greater than or equal to the preset At the minimum hour length, the selection of a set of preset gamma parameter values from the M sets of preset gamma parameter values includes:

当所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长在所述最小时长和预设的最大时长组成的区间内时,从所述M组预设伽马参数值中选取第i组预设伽马参数值,其中,所属区间包括M段时长,所述i为所述保持时长在所述区间内所属的段的序号;When the display screen is in the lighting state and the duration of the lighting state is within the interval formed by the minimum duration and the preset maximum duration, select from the M sets of preset gamma parameter values The i-th group of preset gamma parameter values, wherein the interval includes M segments of duration, and the i is the sequence number of the segment to which the retention duration belongs in the interval;

其中,所述M组预设伽马参数值满足如下条件:Sj>Sj+1>Sj+2,Sj表示第j组预设伽马参数值对应的蓝色分量,0<j≤M-2;且所述M段时长满足如下条件:Mg<Mg+1<Mg+2,0<g≤M-2,Mg表示第g段时长的范围,0<g≤M-2。Wherein, the M sets of preset gamma parameter values satisfy the following conditions: S j >S j+1 >S j+2 , S j represents the blue component corresponding to the jth set of preset gamma parameter values, 0<j ≤M-2; and the duration of the M segment satisfies the following conditions: M g <M g+1 <M g+2 , 0<g≤M-2, M g represents the range of the g-th segment duration, 0<g≤ M-2.

基于本发明第一方面的第六种可能实现方式,在第七种可能的实现方式中,所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:Based on the sixth possible implementation of the first aspect of the present invention, in the seventh possible implementation, the selection of a set of preset gamma parameter values from M sets of preset gamma parameter values includes:

当所述显示屏幕处于点亮状态且所述显示屏幕在所述点亮状态下的保持时长大于所述最大时长时,从所述M组预设伽马参数值中选取第M组预设伽马参数值。When the display screen is in the lighting state and the duration of the display screen in the lighting state is longer than the maximum duration, select the Mth group of preset gamma parameters from the M groups of preset gamma parameter values. Horse parameter values.

本发明第二方面提供一种显示处理装置,包括:A second aspect of the present invention provides a display processing device, including:

确定单元,用于确定终端处于阅读状态;a determining unit, configured to determine that the terminal is in a reading state;

选取单元,用当所述确定单元确定所述终端处于阅读状态时,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同;The selecting unit is used to select a set of preset gamma parameter values from the M sets of preset gamma parameter values when the determining unit determines that the terminal is in a reading state, wherein different sets of preset gamma parameter values The blue component in the light emitted by the corresponding display screen is different;

设置单元,用于将所述终端的显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,以调整所述显示屏幕发射光线中的蓝色分量。A setting unit, configured to set the gamma parameter value of the display screen of the terminal to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

基于本发明第二方面,在第一种可能的实现方式中,所述确定单元具体用于:在满足以下条件中的至少一种时,确定所述终端处于阅读状态:Based on the second aspect of the present invention, in a first possible implementation manner, the determining unit is specifically configured to: determine that the terminal is in a reading state when at least one of the following conditions is met:

在所述显示屏幕前识别到人脸;recognizing a human face in front of said display screen;

所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长大于或等于预设的最小时长。The display screen is in a lighting state and the duration of the lighting state is greater than or equal to a preset minimum duration.

基于本发明第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述显示处理装置还包括:Based on the first possible implementation of the second aspect of the present invention, in a second possible implementation, the display processing device further includes:

人脸识别单元,用于对终端的显示屏幕前的环境进行人脸识别;The face recognition unit is used to perform face recognition on the environment in front of the display screen of the terminal;

所述选取单元具体用于:当所述人脸识别单元在所述显示屏幕前识别到人脸时,根据所述人脸中的人眼与所述显示屏幕之间的距离、所述人脸中的人眼在预设时长内的眨眼次数以及与所述人脸匹配的年龄中的至少一种,从所述M组预设伽马参数值中选取一组预设伽马参数值。The selecting unit is specifically configured to: when the face recognition unit recognizes a face in front of the display screen, according to the distance between the eyes of the face and the display screen, the face At least one of the number of blinks of the human eye within the preset duration and the age matching the face, and select a set of preset gamma parameter values from the M sets of preset gamma parameter values.

基于本发明第二方面的第二种可能的实现方式,在第三种可能的实现方式中,所述选取单元包括:Based on the second possible implementation of the second aspect of the present invention, in a third possible implementation, the selecting unit includes:

距离检测单元,用于检测所述人脸中的人眼与所述显示屏幕之间的距离;a distance detection unit, configured to detect the distance between the human eyes in the human face and the display screen;

子选取单元,用于根据所述距离检测单元检测出的所述人脸中的人眼与所述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。A sub-selection unit, configured to select from the M A set of preset gamma parameter values is selected from the set of preset gamma parameter values, wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance.

基于本发明第二方面的第二种可能的实现方式,在第四种可能的实现方式中,,所述人脸识别单元还用于:当在所述显示屏幕前识别到人脸时,检测所述人脸中的人眼在预设时长内的眨眼次数;Based on the second possible implementation manner of the second aspect of the present invention, in a fourth possible implementation manner, the face recognition unit is further configured to: when a human face is recognized in front of the display screen, detect The number of blinks of the human eyes in the human face within the preset duration;

所述选取单元具体用于:当所述眨眼次数不小于预设的最小次数时,根据所述眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。The selection unit is specifically configured to: when the number of blinks is not less than a preset minimum number, according to the number of blinks and the preset corresponding relationship between the number of blinks and the gamma parameter value, preset gamma from the M group A set of preset gamma parameter values is selected from the horse parameter value, wherein, in the preset corresponding relationship between the number of blinks and the gamma parameter value, the blue component corresponding to the gamma parameter value is negatively correlated with the number of blinks.

基于本发明第二方面的第二种可能的实现方式,在第五种可能的实现方式中,所述人脸识别单元还用于:当在所述显示屏幕前识别到人脸时,估计与所述人脸匹配的年龄;Based on the second possible implementation of the second aspect of the present invention, in a fifth possible implementation, the face recognition unit is further configured to: when a human face is recognized in front of the display screen, estimate and the age of the face match;

所述选取单元具体用于:根据所述人脸识别单元估计的与所述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。The selection unit is specifically configured to: according to the age estimated by the face recognition unit matching the face, and the preset age-gamma parameter value correspondence relationship, from the M groups of preset gamma parameter values Select a set of preset gamma parameter values, wherein, in the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age.

基于本发明第二方面的第一种可能的实现方式,在第六种可能的实现方式,所述显示处理装置还包括:Based on the first possible implementation of the second aspect of the present invention, in a sixth possible implementation, the display processing device further includes:

检测单元,用于检测显示屏幕的状态;A detection unit is used to detect the state of the display screen;

计时单元,用于在所述显示屏幕进入点亮状态时,对所述显示屏幕在点亮状态下的保持时长进行计时;A timing unit, configured to time the duration of the display screen in the on state when the display screen enters the on state;

所述选取单元具体用于:当所述检测单元检测到所述显示屏幕处于点亮状态,且在所述点亮状态下的保持时长在所述最小时长和预设的最大时长组成的区间内时,从所述M组预设伽马参数值中选取第i组预设伽马参数值,其中,所属区间包括M段时长,所述i为所述保持时长在所述区间内所属的段的序号;The selection unit is specifically used for: when the detection unit detects that the display screen is in a lighted state, and the duration of the lighted state is within the interval formed by the minimum duration and the preset maximum duration , select the i-th set of preset gamma parameter values from the M sets of preset gamma parameter values, wherein the interval includes M segment durations, and the i is the segment to which the holding duration belongs in the interval serial number;

其中,所述M组预设伽马参数值满足如下条件:Sj>Sj+1>Sj+2,Sj表示第j组预设伽马参数值对应的蓝色分量,0<j≤M-2;且所述M段时长满足如下条件:Mg<Mg+1<Mg+2,0<g≤M-2,Mg表示第g段时长的范围,0<g≤M-2。Wherein, the M sets of preset gamma parameter values satisfy the following conditions: S j >S j+1 >S j+2 , S j represents the blue component corresponding to the jth set of preset gamma parameter values, 0<j ≤M-2; and the duration of the M segment satisfies the following conditions: M g <M g+1 <M g+2 , 0<g≤M-2, M g represents the range of the g-th segment duration, 0<g≤ M-2.

基于本发明第二方面的第六种可能的实现方式,在第七种可能的实现方式中,所述选取单元还用于:Based on the sixth possible implementation of the second aspect of the present invention, in a seventh possible implementation, the selecting unit is further configured to:

当所述显示屏幕处于点亮状态且所述显示屏幕在所述点亮状态下的保持时长大于所述最大时长时,从所述M组预设伽马参数值中选取第M组预设伽马参数值。When the display screen is in the lighting state and the duration of the display screen in the lighting state is longer than the maximum duration, select the Mth group of preset gamma parameters from the M groups of preset gamma parameter values. Horse parameter values.

本发明第三方面提供一种终端,包括:第二方面中的任一种显示处理装置。A third aspect of the present invention provides a terminal, including: any display processing device in the second aspect.

基于本发明第三方面,在第一种可能的实现方式中,所述终端为智能手机或平板电脑。Based on the third aspect of the present invention, in a first possible implementation manner, the terminal is a smart phone or a tablet computer.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明提供的一种显示处理方法一个实施例流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a display processing method provided by the present invention;

图2为本发明提供的一种显示处理方法另一个实施例流程示意图;FIG. 2 is a schematic flowchart of another embodiment of a display processing method provided by the present invention;

图3为本发明提供的一种显示处理方法再一个实施例流程示意图;FIG. 3 is a schematic flowchart of another embodiment of a display processing method provided by the present invention;

图4为本发明提供的一种显示处理方法再一个实施例流程示意图;FIG. 4 is a schematic flowchart of another embodiment of a display processing method provided by the present invention;

图5为本发明提供的一显示处理方法再一个实施例流程示意图;FIG. 5 is a schematic flowchart of another embodiment of a display processing method provided by the present invention;

图6为本发明提供的一种显示处理方法再一个实施例流程示意图;FIG. 6 is a schematic flowchart of another embodiment of a display processing method provided by the present invention;

图7为本发明提供的一种显示处理装置一个实施例结构示意图;FIG. 7 is a schematic structural diagram of an embodiment of a display processing device provided by the present invention;

图8为本发明提供的一种显示处理装置另一个实施例结构示意图。FIG. 8 is a schematic structural diagram of another embodiment of a display processing device provided by the present invention.

具体实施方式detailed description

为使得本发明的发明目的、特征、优点能够更加的明显和易懂,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

首先对显示屏幕发射光线中的蓝光进行说明。可见光作用于人眼表现为光辐射和产生的热两方面,不同波长的光线对人眼所造成的影响程度也不一样。研究表明,与其它颜色(波长)相比,波长介于400纳米到500纳米的蓝光区间对人眼的危害最大,容易会引起比其它长波的绿光、红光更明显的不舒适和失能眩光。人类的眼睛透镜系统并不能对蓝色光线进行敏锐的聚焦,和红色光线和绿色光线能够精确地在视网膜上聚焦不同,蓝色光线的聚焦位置会稍微前于视网膜,而且,蓝色比其它颜色在穿过眼球的时候散布的范围更广。First, the blue light in the light emitted from the display screen will be described. Visible light acts on the human eye in two aspects: light radiation and heat generation, and different wavelengths of light have different effects on the human eye. Studies have shown that compared with other colors (wavelengths), blue light with a wavelength between 400nm and 500nm is the most harmful to the human eye, and it is likely to cause more obvious discomfort and disability than other long-wave green and red lights. glare. The human eye lens system does not sharply focus on blue light. Unlike red and green light that can be precisely focused on the retina, blue light is focused slightly in front of the retina. Moreover, blue is more focused than other colors. The spread is wider as it passes through the eyeball.

研究进一步表明,过多的光辐射会对视网膜造成伤害,损害程度取决于光的波长、强度和照射时间长度。蓝光属于可见光中的高能量光,容易穿过角膜和晶状体并且接触到视网膜,加速视网膜黄斑区的细胞氧化,过量照射甚至会损伤视觉细胞。如果黄斑区长期接触蓝光,会增加年老时眼睛出现黄斑病变的风险,甚至有可能造成视力永久受损,因此,蓝光较容易对视网膜产生影响。另外,在较暗的环境下,人眼对蓝光会更加敏感,即普尔金耶(Purkinje)位移。夜晚观看电视或使用电脑,周边的光照很低时,人眼进入中间视觉的状态,敏感度光谱响应曲线往短波便宜,对蓝光更敏感,过强的蓝光不仅会影响到人眼的健康,还会刺激褪黑激素的形成。Studies have further shown that too much light radiation can cause damage to the retina, depending on the wavelength, intensity and length of exposure of the light. Blue light belongs to high-energy light in visible light. It easily passes through the cornea and lens and touches the retina, accelerating the oxidation of cells in the macular area of the retina. Excessive exposure can even damage visual cells. If the macular area is exposed to blue light for a long time, it will increase the risk of macular degeneration in the eyes in old age, and may even cause permanent vision damage. Therefore, blue light is more likely to affect the retina. In addition, in a darker environment, the human eye will be more sensitive to blue light, that is, the Purkinje shift. When watching TV or using a computer at night, when the surrounding light is very low, the human eye enters the state of intermediate vision, and the sensitivity spectral response curve is cheaper to the short wave, and is more sensitive to blue light. Excessive blue light will not only affect the health of the human eye, but also Stimulates the formation of melatonin.

基于上述情况,本发明实施例提供一种应用于终端的显示处理方法及终端,用于减小终端的显示屏幕对人眼的伤害。Based on the foregoing, an embodiment of the present invention provides a display processing method applied to a terminal and the terminal, so as to reduce damage to human eyes caused by a display screen of the terminal.

下面对本发明实施例提供的一种应用于终端的显示处理方法进行描述,请参阅图1,本发明实施例中的显示处理方法,包括:The following describes a display processing method applied to a terminal provided by an embodiment of the present invention. Please refer to FIG. 1. The display processing method in the embodiment of the present invention includes:

101、确定终端处于阅读状态;101. Determine that the terminal is in the reading state;

可选的,本发明实施例中的显示处理装置提供类似于开关的护眼控件,用户可以自行选择是否开启该护眼控件,当该护眼控件为开启状态时,显示处理装置确定终端处于阅读状态,当该护眼控件为关闭状态时,显示处理装置确定终端不处于阅读状态。Optionally, the display processing device in the embodiment of the present invention provides an eye protection control similar to a switch, and the user can choose whether to turn on the eye protection control. When the eye protection control is turned on, the display processing device determines that the terminal is in the reading mode. state, when the eye protection control is in the closed state, the display processing device determines that the terminal is not in the reading state.

可选的,在满足以下条件中的至少一种时,显示处理装置确定终端处于阅读状态:在终端的显示屏幕前识别到人脸;终端的显示屏幕处于点亮状态且在该点亮状态下的保持时长大于或等于预设的最小时长。Optionally, the display processing device determines that the terminal is in the reading state when at least one of the following conditions is met: a human face is recognized in front of the display screen of the terminal; The hold time of is greater than or equal to the preset minimum time.

可选的,利用显示处理装置或终端上配置的摄像头(例如前置摄像头或者可旋转的摄像头)对终端的显示屏幕前的环境进行人脸识别,具体地,本发明实施例中对终端的显示屏幕前的环境进行人脸识别可以参照已有技术实现,此处不再赘述。Optionally, use a display processing device or a camera configured on the terminal (such as a front-facing camera or a rotatable camera) to perform face recognition on the environment in front of the display screen of the terminal. Specifically, in the embodiment of the present invention, the terminal display Face recognition in the environment in front of the screen can be implemented with reference to existing technologies, and will not be repeated here.

可选的,将上述两种方式进行结合,即显示处理装置提供类似于开关的护眼控件,用户可以自行选择是否开启该护眼控件,当该护眼控件为开启状态时,且在满足以下条件中的至少一种时,显示处理装置确定终端处于阅读状态:在终端的显示屏幕前识别到人脸;终端的显示屏幕处于点亮状态且在该点亮状态下的保持时长大于或等于预设的最小时长。Optionally, the above two methods are combined, that is, the display processing device provides an eye protection control similar to a switch, and the user can choose whether to enable the eye protection control. When the eye protection control is turned on, and the following conditions are met: When there is at least one of the conditions, the display processing device determines that the terminal is in the reading state: a human face is recognized in front of the display screen of the terminal; The minimum hour length set.

当然,本发明实施例中也可以通过其它方式确定终端处于阅读状态,此处不作限定。Of course, in this embodiment of the present invention, it may also be determined in other ways that the terminal is in the reading state, which is not limited here.

当确定终端处于阅读状态时,执行步骤102。When it is determined that the terminal is in the reading state, step 102 is executed.

102、从M组预设伽马参数值中选取一组预设伽马参数值;102. Select a set of preset gamma parameter values from M sets of preset gamma parameter values;

其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。Wherein, the blue components in the light emitted by the display screen corresponding to different sets of preset gamma parameter values are different.

可选的,在显示处理装置中预先存储M组预设伽马参数值,其中,每组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同,上述M不小于1。举例说明,上述M组预设伽马参数值可以设置为0.1到2.2之间的取值,其中,伽马参数值越小,伽马参数值对应的蓝色分量越小。当然,上述M组预设伽马参数值也可以存储在云端服务器或外部终端上,则步骤102中,显示处理装置实时从该云端服务器或外部终端上获取上述M组预设伽马参数值,并从上述M组预设伽马参数值中选取一组预设伽马参数值。Optionally, M sets of preset gamma parameter values are pre-stored in the display processing device, wherein each set of preset gamma parameter values corresponds to a different blue component in the light emitted by the display screen, and the above M is not less than 1. For example, the above M sets of preset gamma parameter values may be set to a value between 0.1 and 2.2, wherein the smaller the gamma parameter value, the smaller the blue component corresponding to the gamma parameter value. Of course, the above M sets of preset gamma parameter values may also be stored on the cloud server or external terminal, then in step 102, the display processing device acquires the above M sets of preset gamma parameter values from the cloud server or external terminal in real time, And select a set of preset gamma parameter values from the M sets of preset gamma parameter values.

本发明实施例中,显示处理装置可以从M组预设伽马参数值中随机选取一组预设伽马参数值;或者,也可以在终端的显示屏幕前识别到人脸时,根据检测到的人脸中的人眼与该显示屏幕之间的距离、该人脸中的人眼在预设时长内的眨眼次数以及与该人脸匹配的年龄中的至少一种,从上述M组预设伽马参数值中选取一组预设伽马参数值;或者,也可以在显示屏幕处于点亮状态且在点亮状态下的保持时长大于或等于预设的最小时长时,根据保时时长从上述M组预设伽马参数值选取一组预设伽马参数值,并使得保时时长越大,选取的预设伽马参数值对应的蓝色分量越小,此处不作限定。In the embodiment of the present invention, the display processing device may randomly select a set of preset gamma parameter values from M sets of preset gamma parameter values; or, when a face is recognized in front of the display screen of the terminal, according to the detected At least one of the distance between the human eyes in the human face and the display screen, the number of blinks of the human eyes in the human face within the preset duration, and the age matched with the human face, from the above M group preset Select a set of preset gamma parameter values from the set gamma parameter value; or, when the display screen is on and the hold time in the on state is greater than or equal to the preset minimum hour length, according to the hold time A set of preset gamma parameter values is selected from the above M groups of preset gamma parameter values, and the longer the time-keeping period is, the smaller the blue component corresponding to the selected preset gamma parameter values is, which is not limited here.

103、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。103. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过移动产业处理器接口(MIPI,Mobile IndustryProcessor Interface)将上述显示屏幕的伽马参数值设置为步骤102选取的一组预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤102选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the above-mentioned display screen as a set of preset gamma parameter values selected in step 102 through a mobile industry processor interface (MIPI, Mobile Industry Processor Interface). Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Certainly, in the embodiment of the present invention, the gamma parameter value of the above-mentioned display screen may also be set as a set of preset gamma parameter values selected in step 102 in other ways, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

下面在图1所示实施例的基础上,以一具体应用例对本发明实施例中的显示处理方法进行描述,在本发明实施例中通过人脸识别触发蓝光调整,如图2所示,本发明实施例中的显示处理方法,包括:On the basis of the embodiment shown in Figure 1, the display processing method in the embodiment of the present invention will be described with a specific application example. In the embodiment of the present invention, blue light adjustment is triggered by face recognition, as shown in Figure 2. The display processing method in the embodiment of the invention includes:

201、对终端的显示屏幕前的环境进行人脸识别;201. Perform face recognition on the environment in front of the display screen of the terminal;

本发明实施例中,利用显示处理装置或终端上配置的摄像头(例如前置摄像头或者可旋转的摄像头)对终端的显示屏幕前的环境进行人脸识别,具体地,本发明实施例中对终端的显示屏幕前的环境进行人脸识别可以参照已有技术实现,此处不再赘述。In the embodiment of the present invention, the display processing device or the camera configured on the terminal (such as a front camera or a rotatable camera) is used to perform face recognition on the environment in front of the display screen of the terminal. Specifically, in the embodiment of the present invention, the terminal The face recognition in the environment in front of the display screen can be implemented with reference to the existing technology, and will not be repeated here.

可选的,本发明实施中的人脸识别的动作为事件性触发,例如,在终端的显示屏幕点亮时,执行对终端的显示屏幕前的环境进行人脸识别的步骤,并且在终端熄屏之前,保持对终端的显示屏幕前的环境进行人脸识别的动作。或者,本发明实施例中显示处理装置也可以通过周期性触发对终端的显示屏幕前的环境进行人脸识别的步骤,或者,用户可以输入某一时间段,使得显示处理装置在该时间段内执行对终端的显示屏幕前的环境进行人脸识别的步骤,或者,显示处理装置为用户提供类似于开关的控件,用户通过该控件可以启动或关闭步骤201的执行。当然,本发明实施例也可以通过其它方式触发步骤201,此处不作限定。Optionally, the action of face recognition in the implementation of the present invention is triggered by an event, for example, when the display screen of the terminal is on, the step of performing face recognition on the environment in front of the display screen of the terminal is performed, and when the terminal is off In front of the screen, keep performing face recognition on the environment in front of the display screen of the terminal. Alternatively, in the embodiment of the present invention, the display processing device may also periodically trigger the step of performing face recognition on the environment in front of the display screen of the terminal, or the user may input a certain time period, so that the display processing device can perform face recognition within the time period. Execute the step of performing face recognition on the environment in front of the display screen of the terminal, or, the display processing device provides the user with a control similar to a switch, through which the user can enable or disable the execution of step 201 . Of course, in this embodiment of the present invention, step 201 may also be triggered in other ways, which is not limited here.

202、当在上述显示屏幕前识别到人脸时,确定终端处于阅读状态。202. When a human face is recognized in front of the display screen, determine that the terminal is in a reading state.

203、从M组预设伽马参数值中选取一组预设伽马参数值;203. Select a set of preset gamma parameter values from M sets of preset gamma parameter values;

本发明实施例中,显示处理装置可以从M组预设伽马参数值中随机选取一组预设伽马参数值;或者,也可以根据检测到的人脸中的人眼与该显示屏幕之间的距离、该人脸中的人眼在预设时长内的眨眼次数以及与该人脸匹配的年龄中的至少一种,从上述M组预设伽马参数值中选取一组预设伽马参数值;此处不作限定。In the embodiment of the present invention, the display processing device may randomly select a set of preset gamma parameter values from M sets of preset gamma parameter values; At least one of the distance between the eyes, the number of blinks of the human eyes in the face within the preset duration, and the age matching the face, select a set of preset gamma parameters from the above M sets of preset gamma parameter values Horse parameter value; not limited here.

可选的,上述M组预设伽马参数值分别存储在不同的寄存器中,并使用寄存器的寄存器值对存储在该寄存器中的预设伽马参数值进行标识,以便显示处理装置根据寄存器值选取和调用相应的预设伽马参数值。Optionally, the above M groups of preset gamma parameter values are respectively stored in different registers, and the register values of the registers are used to identify the preset gamma parameter values stored in the registers, so that the display processing device can Choose and recall the corresponding preset gamma parameter value.

204、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。204. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过MIPI接口将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤203选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the display screen as the selected preset gamma parameter value through the MIPI interface. Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Certainly, in the embodiment of the present invention, the gamma parameter value of the above-mentioned display screen may also be set as a set of preset gamma parameter values selected in step 203 by other means, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

下面在图2所示实施例的基础上,以一具体应用例对本发明实施例中的显示处理方法进行描述,在本发明实施例中,根据人脸中的人眼与显示屏幕之间的距离选取预设伽马参数值,如图3所示,本发明实施例中的显示处理方法,包括:On the basis of the embodiment shown in Figure 2, a specific application example is used to describe the display processing method in the embodiment of the present invention. In the embodiment of the present invention, according to the distance between the human eyes in the face and the display screen Select the preset gamma parameter value, as shown in Figure 3, the display processing method in the embodiment of the present invention includes:

301、对终端的显示屏幕前的环境进行人脸识别;301. Perform face recognition on the environment in front of the display screen of the terminal;

本发明实施例中,利用显示处理装置或终端上配置的摄像头(例如前置摄像头或者可旋转的摄像头)对终端的显示屏幕前的环境进行人脸识别,具体地,本发明实施例中对终端的显示屏幕前的环境进行人脸识别可以参照已有技术实现,此处不再赘述。In the embodiment of the present invention, the display processing device or the camera configured on the terminal (such as a front camera or a rotatable camera) is used to perform face recognition on the environment in front of the display screen of the terminal. Specifically, in the embodiment of the present invention, the terminal The face recognition in the environment in front of the display screen can be implemented with reference to the existing technology, and will not be repeated here.

可选的,本发明实施中的人脸识别的动作为事件性触发,例如,在终端的显示屏幕点亮时,执行对终端的显示屏幕前的环境进行人脸识别的步骤,并且在终端熄屏之前,保持对终端的显示屏幕前的环境进行人脸识别的动作。或者,本发明实施例中显示处理装置也可以通过周期性触发对终端的显示屏幕前的环境进行人脸识别的步骤,或者,用户可以输入某一时间段,使得显示处理装置在该时间段内执行对终端的显示屏幕前的环境进行人脸识别的步骤,或者,显示处理装置为用户提供类似于开关的控件,用户通过该控件可以启动或关闭步骤301的执行。当然,本发明实施例也可以通过其它方式触发步骤301,此处不作限定。Optionally, the action of face recognition in the implementation of the present invention is triggered by an event, for example, when the display screen of the terminal is on, the step of performing face recognition on the environment in front of the display screen of the terminal is performed, and when the terminal is off In front of the screen, keep performing face recognition on the environment in front of the display screen of the terminal. Alternatively, in the embodiment of the present invention, the display processing device may also periodically trigger the step of performing face recognition on the environment in front of the display screen of the terminal, or the user may input a certain time period, so that the display processing device can perform face recognition within the time period. Execute the step of performing face recognition on the environment in front of the display screen of the terminal, or, the display processing device provides the user with a control similar to a switch, through which the user can enable or disable the execution of step 301 . Of course, in this embodiment of the present invention, step 301 may also be triggered in other ways, which is not limited here.

302、当在上述显示屏幕前识别到人脸时,确定终端处于阅读状态。302. When a human face is recognized in front of the display screen, determine that the terminal is in a reading state.

303、检测上述人脸中的人眼与上述显示屏幕之间的距离;303. Detect the distance between the human eyes in the above-mentioned face and the above-mentioned display screen;

可选的,本发明实施例中为终端配置接近传感器,显示处理装置利用该接近传感器并结合人脸识别技术中的眼睛定位算法(例如区域分割法、边缘提取法、灰度投影法、神经网络法和模板匹配法等)检测人脸中的人眼与上述显示屏幕之间的距离。Optionally, in the embodiment of the present invention, a proximity sensor is configured for the terminal, and the display processing device uses the proximity sensor in combination with eye positioning algorithms in face recognition technology (such as region segmentation method, edge extraction method, grayscale projection method, neural network method and template matching method, etc.) to detect the distance between the human eyes in the face and the above-mentioned display screen.

304、根据上述人脸中的人眼与上述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从上述M组预设伽马参数值中选取一组预设伽马参数值;304. According to the distance between the human eyes in the above human face and the above display screen, and the preset distance-gamma parameter value correspondence, select a set of preset gamma values from the above M sets of preset gamma parameter values parameter value;

其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。Wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance.

具体地,预设一距离-伽马参数值对应关系,在该距离-伽马参数值对应关系中,建立M组预设伽马参数值与距离的关系,并且距离越小时,该距离对应的预设伽马参数值所对应的蓝色分量越小,当然,该距离-伽马参数值对应关系也可以表现为距离区间与预设伽马参数值的对应关系,即同一距离区间内对应于同一预设伽马参数值,不同距离区间对应不同的预设伽马参数值,且,在不同距离区间中,距离越小,该距离对应的预设伽马参数值所对应的蓝色分量越小。Specifically, a distance-gamma parameter value correspondence relationship is preset, and in the distance-gamma parameter value correspondence relationship, the relationship between M sets of preset gamma parameter values and distances is established, and the smaller the distance, the corresponding The blue component corresponding to the preset gamma parameter value is smaller. Of course, the distance-gamma parameter value correspondence relationship can also be expressed as the correspondence relationship between the distance interval and the preset gamma parameter value, that is, the same distance interval corresponds to For the same preset gamma parameter value, different distance intervals correspond to different preset gamma parameter values, and, in different distance intervals, the smaller the distance is, the bluer the blue component corresponding to the preset gamma parameter value corresponding to the distance is. small.

305、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。305. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过MIPI接口将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤304选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the display screen as the selected preset gamma parameter value through the MIPI interface. Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Of course, in the embodiment of the present invention, the gamma parameter value of the above display screen may also be set to a set of preset gamma parameter values selected in step 304 by other means, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

下面在图2所示实施例的基础上,以一具体应用例对本发明实施例中的显示处理方法进行描述,在本发明实施例中,根据人脸中的人眼在预设时长内的眨眼次数选取预设伽马参数值,如图4所示,本发明实施例中的显示处理方法,包括:On the basis of the embodiment shown in Figure 2, the display processing method in the embodiment of the present invention will be described with a specific application example. The number of times selects the preset gamma parameter value, as shown in Figure 4, the display processing method in the embodiment of the present invention includes:

401、对终端的显示屏幕前的环境进行人脸识别;401. Perform face recognition on the environment in front of the display screen of the terminal;

本发明实施例中,利用显示处理装置或终端上配置的摄像头(例如前置摄像头或者可旋转的摄像头)对终端的显示屏幕前的环境进行人脸识别,具体地,本发明实施例中对终端的显示屏幕前的环境进行人脸识别可以参照已有技术实现,此处不再赘述。In the embodiment of the present invention, the display processing device or the camera configured on the terminal (such as a front camera or a rotatable camera) is used to perform face recognition on the environment in front of the display screen of the terminal. Specifically, in the embodiment of the present invention, the terminal The face recognition in the environment in front of the display screen can be implemented with reference to the existing technology, and will not be repeated here.

可选的,本发明实施中的人脸识别的动作为事件性触发,例如,在终端的显示屏幕点亮时,执行对终端的显示屏幕前的环境进行人脸识别的步骤,并且在终端熄屏之前,保持对终端的显示屏幕前的环境进行人脸识别的动作。或者,本发明实施例中显示处理装置也可以通过周期性触发对终端的显示屏幕前的环境进行人脸识别的步骤,或者,用户可以输入某一时间段,使得显示处理装置在该时间段内执行对终端的显示屏幕前的环境进行人脸识别的步骤,或者,显示处理装置为用户提供类似于开关的控件,用户通过该控件可以启动或关闭步骤401的执行。当然,本发明实施例也可以通过其它方式触发步骤401,此处不作限定。Optionally, the action of face recognition in the implementation of the present invention is triggered by an event, for example, when the display screen of the terminal is on, the step of performing face recognition on the environment in front of the display screen of the terminal is performed, and when the terminal is off In front of the screen, keep performing face recognition on the environment in front of the display screen of the terminal. Alternatively, in the embodiment of the present invention, the display processing device may also periodically trigger the step of performing face recognition on the environment in front of the display screen of the terminal, or the user may input a certain time period, so that the display processing device can perform face recognition within the time period. Execute the step of performing face recognition on the environment in front of the display screen of the terminal, or the display processing device provides the user with a control similar to a switch, through which the user can enable or disable the execution of step 401 . Of course, this embodiment of the present invention can also trigger step 401 in other ways, which is not limited here.

402、当在上述显示屏幕前识别到人脸时,确定终端处于阅读状态。402. When a human face is recognized in front of the display screen, determine that the terminal is in a reading state.

403、检测上述人脸中的人眼在预设时长内的眨眼次数;403. Detect the number of blinks of the human eyes in the aforementioned human face within a preset duration;

本发明实施例中,显示处理装置检测上述人脸中的人眼在预设时长内的眨眼次数。具体的,上述时长可以根据实际需求进行设定。本发明实施例中检测上述人脸中的人眼是否眨眼可以参考已有的眨眼检测算法来实现,此处不再赘述。In the embodiment of the present invention, the display processing device detects the number of blinks of the human eyes in the above-mentioned human face within a preset time period. Specifically, the above duration may be set according to actual needs. In the embodiment of the present invention, the detection of whether the human eyes in the above human faces blink can be realized by referring to the existing blink detection algorithm, which will not be repeated here.

404、当上述眨眼次数不小于预设的最小次数时,根据上述眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从上述M组预设伽马参数值中选取一组预设伽马参数值;404. When the above-mentioned number of blinks is not less than the preset minimum number of times, according to the above-mentioned number of blinks and the preset corresponding relationship between the number of blinks and the gamma parameter value, select a set of preset gamma parameter values from the above M groups of preset gamma parameters gamma parameter value;

其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。Wherein, in the preset correspondence relationship between the number of blinks and the gamma parameter value, the blue component corresponding to the gamma parameter value is negatively correlated with the number of blinks.

本发明实施例中,预设一眨眼次数-伽马参数值对应关系,在该眨眼次数-伽马参数值对应关系中,建立M组预设伽马参数值与眨眼次数的关系,并且眨眼次数越多时,该眨眼次数对应的预设伽马参数值对应的蓝色分量越小,当然,该眨眼次数-伽马参数值对应关系也可以表现为眨眼次数区间与预设伽马参数值的对应关系,即同一眨眼次数区间内对应于同一预设伽马参数值,不同眨眼次数区间对应不同的预设伽马参数值,且,在不同眨眼次数区间中,眨眼次数越多,该眨眼次数对应的预设伽马参数值对应的蓝色分量越小。In the embodiment of the present invention, a corresponding relationship between the number of blinks and the gamma parameter value is preset. In the corresponding relationship between the number of blinks and the gamma parameter value, the relationship between M sets of preset gamma parameter values and the number of blinks is established, and the number of blinks The greater the number of blinks, the smaller the blue component corresponding to the preset gamma parameter value corresponding to the number of blinks. Of course, the corresponding relationship between the number of blinks and the gamma parameter value can also be expressed as the correspondence between the number of blinks interval and the preset gamma parameter value relationship, that is, the same interval of blink times corresponds to the same preset gamma parameter value, different blink times intervals correspond to different preset gamma parameter values, and, in different blink times intervals, the more blink times, the blink times correspond to The blue component corresponding to the preset gamma parameter value of is smaller.

可选的,设置眨眼次数的最小次数和最大次数分别为n1和n2,当步骤403检测到人脸中的人眼在预设时长内的眨眼次数位于上述区间内时,根据上述人脸中的人眼在预设时长内的眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从上述M组预设伽马参数值选取一组预设伽马参数值,当步骤403检测到人脸中的人眼在预设时长内的眨眼次数大于上述最大次数时,从上述M组预设伽马参数值选取对应的蓝色分量最小的一组预设伽马参数值。Optionally, the minimum and maximum times of the number of blinks are set to be n1 and n2 respectively. When step 403 detects that the number of blinks of the human eyes in the face within the preset duration is within the above-mentioned range, according to the above-mentioned people's face The number of blinks of the human eye within the preset duration, and the corresponding relationship between the preset number of blinks and the gamma parameter value, select a set of preset gamma parameter values from the above M groups of preset gamma parameter values, when step 403 detects When the number of blinks of the human eyes in the face within the preset duration is greater than the above-mentioned maximum number of times, select a set of preset gamma parameter values corresponding to the smallest blue component from the above-mentioned M sets of preset gamma parameter values.

405、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。405. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过MIPI接口将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤404选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the display screen as the selected preset gamma parameter value through the MIPI interface. Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Of course, in the embodiment of the present invention, the gamma parameter value of the above display screen may also be set to a set of preset gamma parameter values selected in step 404 by other means, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

下面在图2所示实施例的基础上,以一具体应用例对本发明实施例中的显示处理方法进行描述,在本发明实施例中,根据由人脸估计的年龄选取预设伽马参数值,如图5所示,本发明实施例中的显示处理方法,包括:On the basis of the embodiment shown in Figure 2, the display processing method in the embodiment of the present invention will be described with a specific application example. In the embodiment of the present invention, the preset gamma parameter value is selected according to the age estimated by the face , as shown in FIG. 5, the display processing method in the embodiment of the present invention includes:

501、对终端的显示屏幕前的环境进行人脸识别;501. Perform face recognition on the environment in front of the display screen of the terminal;

本发明实施例中,利用显示处理装置或终端上配置的摄像头(例如前置摄像头或者可旋转的摄像头)对终端的显示屏幕前的环境进行人脸识别,具体地,本发明实施例中对终端的显示屏幕前的环境进行人脸识别可以参照已有技术实现,此处不再赘述。In the embodiment of the present invention, the display processing device or the camera configured on the terminal (such as a front camera or a rotatable camera) is used to perform face recognition on the environment in front of the display screen of the terminal. Specifically, in the embodiment of the present invention, the terminal The face recognition in the environment in front of the display screen can be implemented with reference to the existing technology, and will not be repeated here.

可选的,本发明实施中的人脸识别的动作为事件性触发,例如,在终端的显示屏幕点亮时,执行对终端的显示屏幕前的环境进行人脸识别的步骤,并且在终端熄屏之前,保持对终端的显示屏幕前的环境进行人脸识别的动作。或者,本发明实施例中显示处理装置也可以通过周期性触发对终端的显示屏幕前的环境进行人脸识别的步骤,或者,用户可以输入某一时间段,使得显示处理装置在该时间段内执行对终端的显示屏幕前的环境进行人脸识别的步骤,或者,显示处理装置为用户提供类似于开关的控件,用户通过该控件可以启动或关闭步骤501的执行。当然,本发明实施例也可以通过其它方式触发步骤501,此处不作限定。Optionally, the action of face recognition in the implementation of the present invention is triggered by an event, for example, when the display screen of the terminal is on, the step of performing face recognition on the environment in front of the display screen of the terminal is performed, and when the terminal is off In front of the screen, keep performing face recognition on the environment in front of the display screen of the terminal. Alternatively, in the embodiment of the present invention, the display processing device may also periodically trigger the step of performing face recognition on the environment in front of the display screen of the terminal, or the user may input a certain time period, so that the display processing device can perform face recognition within the time period. Execute the step of performing face recognition on the environment in front of the display screen of the terminal, or, the display processing device provides the user with a control similar to a switch, through which the user can enable or disable the execution of step 501 . Of course, in this embodiment of the present invention, step 501 may also be triggered in other ways, which is not limited here.

502、当在上述显示屏幕前识别到人脸时,确定终端处于阅读状态。502. When a human face is recognized in front of the display screen, determine that the terminal is in a reading state.

503、当在上述显示屏幕前识别到人脸时,估计与上述人脸匹配的年龄;503. When a face is recognized in front of the display screen, estimate the age matching the face;

本发明实施例中,显示处理装置估计与上述人脸匹配的年龄。其中,上述年龄可以是指具体的某一年龄(如35岁),也可以是某一个年龄段(如31~39岁)。In the embodiment of the present invention, the display processing device estimates the age matched with the aforementioned human face. Wherein, the above-mentioned age may refer to a specific age (such as 35 years old), or may be a certain age group (such as 31-39 years old).

本发明实施例中,可以预先构建多组不同年龄的人脸图像,显示处理装置根据这些人脸图像训练获得年龄函数,当显示处理装置在步骤501检测到人脸时,根据识别到的人脸与上述年龄函数估计与该人脸匹配的年龄。具体的,估计方法有以下几种:1、构建全局年龄函数:通过大量的人脸图像训练构建一个全局年龄函数,当显示处理装置在步骤501检测到人脸时,通过直接使用该全局年龄函数计算出于该人脸匹配的年龄;2、外观特定的年龄函数:这种年龄函数以面部特征划分输入,当显示处理装置在步骤501检测到人脸时,寻找与该人脸有着相似特征的人脸图像计算出的年龄函数,然后计算与该人脸匹配的年龄;3、加权年龄函数:与外观特定的年龄函数所使用的方法类似,当显示处理装置在步骤501检测到人脸时,寻找与该人脸有着相似特征的年龄函数,在找不到与该人脸有着相似特征的人脸图像计算出的年龄函数时,使用所有年龄函数对该人脸的年龄进行估计,然后对其进行加权,从而得到估计结果。In the embodiment of the present invention, multiple groups of face images of different ages can be pre-constructed, and the display processing device obtains the age function according to training of these face images. Estimates the age that matches that face with the above age function. Concrete, estimation method has following several kinds: 1, construct global age function: construct a global age function through a large amount of face image training, when display processing device detects face in step 501, by directly using this global age function 2. Appearance-specific age function: this age function divides the input with facial features, and when the display processing device detects a human face in step 501, it searches for people with similar features to the human face The age function calculated by the face image, and then calculate the age matched with the face; 3. Weighted age function: similar to the method used by the appearance-specific age function, when the display processing device detects a face in step 501, Find an age function that has similar characteristics to the face, and when the age function calculated by a face image that has similar characteristics to the face cannot be found, use all age functions to estimate the age of the face, and then Weighted to get the estimated results.

当然,本发明实施例也可以采用其它方式对识别到人脸的年龄进行估计,此处不作限定。Of course, in this embodiment of the present invention, other methods may also be used to estimate the age of the recognized face, which is not limited here.

504、根据估计的与上述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从上述M组预设伽马参数值中选取一组预设伽马参数值;504. Select a set of preset gamma parameter values from the M groups of preset gamma parameter values according to the estimated age matched with the aforementioned face and the preset age-gamma parameter value correspondence;

其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。Wherein, in the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age.

本发明实施例中,预设一年龄-伽马参数值对应关系信息,在该年龄-伽马参数值对应关系中,建立M组预设伽马参数值与年龄的关系,并且年龄越大时,该距离对应的预设伽马参数值所对应的蓝色分量越小,当然,该年龄-伽马参数值对应关系也可以表现为年龄区间与预设伽马参数值的对应关系,即同一年龄区间内对应于同一预设伽马参数值,不同年龄区间对应不同的预设伽马参数值,且,在不同年龄区间中,年龄越大,该年龄对应的预设伽马参数值对应的蓝色分量越小。In the embodiment of the present invention, a piece of age-gamma parameter value correspondence information is preset. In the age-gamma parameter value correspondence relationship, M groups of preset gamma parameter values and age relationships are established, and the older the age , the blue component corresponding to the preset gamma parameter value corresponding to the distance is smaller. Of course, the age-gamma parameter value correspondence relationship can also be expressed as the correspondence relationship between the age interval and the preset gamma parameter value, that is, the same The age interval corresponds to the same preset gamma parameter value, and different age intervals correspond to different preset gamma parameter values, and, in different age intervals, the older the age, the corresponding preset gamma parameter value of the age corresponds to The blue component is smaller.

505、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。505. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过MIPI接口将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤504选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the display screen as the selected preset gamma parameter value through the MIPI interface. Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Certainly, in the embodiment of the present invention, the gamma parameter value of the above display screen may also be set as a set of preset gamma parameter values selected in step 504 by other means, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

下面在图1所示实施例的基础上,对本发明实施例中的显示处理方法进行描述,本发明实施例中根据显示屏幕点亮时长触发蓝光调整,如图6所示,本发明实施例中的显示处理方法,包括:The following describes the display processing method in the embodiment of the present invention on the basis of the embodiment shown in FIG. 1. In the embodiment of the present invention, blue light adjustment is triggered according to the lighting time of the display screen. display processing methods, including:

601、检测显示屏幕的状态;601. Detect the state of the display screen;

本发明实施例中,显示处理装置检测终端的显示屏幕的状态,以确定显示屏幕是否处于点亮状态。In the embodiment of the present invention, the display processing device detects the state of the display screen of the terminal to determine whether the display screen is in a lighted state.

602、当上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长大于或等于预设的最小时长时,确定终端处于阅读状态;602. Determine that the terminal is in a reading state when the display screen is in a lighting state and the duration of the display screen in the lighting state is greater than or equal to a preset minimum duration;

本发明实施例中,当显示处理装置检测到终端的显示屏幕从熄灭状态进入点亮状态时启动计时,当上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长大于或等于预设的最小时长时,确定终端处于阅读状态。In the embodiment of the present invention, when the display processing device detects that the display screen of the terminal enters the lighting state from the off state, the timing is started; When the minimum hour length of , it is determined that the terminal is in the reading state.

其中,上述最小时长可以根据具体需要进行设定。Wherein, the aforementioned minimum duration may be set according to specific needs.

603、从上述M组预设伽马参数值中选取一组预设伽马参数值;603. Select a set of preset gamma parameter values from the M sets of preset gamma parameter values;

可选的,预设一最大时长,当上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长大于该最大时长时,从上述M组预设伽马参数值中选取对应的蓝光分量最小的一组预设伽马参数值。Optionally, a maximum duration is preset, and when the above-mentioned display screen is in a lighting state and the duration of the above-mentioned lighting state is longer than the maximum duration, select the corresponding blue light component from the above-mentioned M sets of preset gamma parameter values The smallest set of preset gamma parameter values.

可选的,当上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长在上述最小时长和上述最大时长组成的区间内时,从上述M组预设伽马参数值中选取第i组预设伽马参数值,其中,上述区间包括M段时长,上述i为上述保持时长在上述区间内所属的段的序号。其中,上述M组预设伽马参数值满足如下条件:Sj>Sj+1>Sj+2,Sj表示第j组预设伽马参数值对应的蓝色分量,0<j≤M-2;且所述M段时长满足如下条件:Mg<Mg+1<Mg+2,0<g≤M-2,Mg表示第g段时长的范围,0<g≤M-2。Optionally, when the above-mentioned display screen is in the lighted state and the holding time in the above-mentioned lighted state is within the interval formed by the above-mentioned minimum time length and the above-mentioned maximum time length, the ith is selected from the above-mentioned M sets of preset gamma parameter values A set of preset gamma parameter values, wherein the interval includes M segments, and the i is the sequence number of the segment to which the retention duration belongs in the interval. Among them, the above M sets of preset gamma parameter values satisfy the following conditions: S j >S j+1 >S j+2 , S j represents the blue component corresponding to the jth set of preset gamma parameter values, 0<j≤ M-2; and the duration of segment M satisfies the following conditions: M g <M g+1 <M g+2 , 0<g≤M-2, M g represents the range of duration of segment g, 0<g≤M -2.

604、将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。604. Set the gamma parameter value of the display screen to the selected preset gamma parameter value, so as to adjust the blue component in the light emitted by the display screen.

可选的,显示处理装置通过MIPI接口将上述显示屏幕的伽马参数值设置为选取的上述预设伽马参数值。其中,MIPI是由MIPI接口联盟定义的一套接口标准,其将终端内部的接口如摄像头、显示屏等标准化,增加了设计灵活性。当然,本发明实施例中也可以通过其它方式将上述显示屏幕的伽马参数值设置为步骤603选取的一组预设伽马参数值,此处不作限定。Optionally, the display processing device sets the gamma parameter value of the display screen as the selected preset gamma parameter value through the MIPI interface. Among them, MIPI is a set of interface standards defined by the MIPI Interface Alliance, which standardizes the internal interfaces of the terminal, such as cameras and displays, and increases design flexibility. Of course, in the embodiment of the present invention, the gamma parameter value of the above display screen may also be set to a set of preset gamma parameter values selected in step 603 by other means, which is not limited here.

需要说明的是,由于在终端的显示屏幕中,红、绿和蓝(即RGB)是三个基色,信号的传输以及变换都是按照这三种颜色进行的,而伽马参数是显示屏幕的物理属性,用于对显示屏幕的色彩进行控制,因此,本发明实施例中可以通过设置M组伽马参数值,并使得M组伽马参数值对应的显示屏幕发射光线中的蓝色分量不同。It should be noted that since red, green and blue (i.e. RGB) are the three primary colors on the display screen of the terminal, the transmission and transformation of the signal are carried out according to these three colors, and the gamma parameter is the color of the display screen. Physical properties are used to control the color of the display screen. Therefore, in the embodiment of the present invention, M groups of gamma parameter values can be set, and the blue components in the light emitted by the display screen corresponding to the M groups of gamma parameter values are different. .

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

应理解,对于前述的方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其它顺序或者同时进行。It should be understood that for the aforementioned method embodiments, for the sake of simplicity of description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to this According to the invention, certain steps may be performed in other order or simultaneously.

本发明实施例提供一种显示处理装置,如图7所示,本发明实施例中的显示处理装置700包括:An embodiment of the present invention provides a display processing device. As shown in FIG. 7 , the display processing device 700 in the embodiment of the present invention includes:

确定单元701,用于确定终端处于阅读状态;A determining unit 701, configured to determine that the terminal is in a reading state;

选取单元702,用于当确定单元701确定上述终端处于阅读状态时,从上述M组预设伽马参数值中选取一组预设伽马参数值,其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同;The selecting unit 702 is configured to select a set of preset gamma parameter values from the above M sets of preset gamma parameter values when the determining unit 701 determines that the terminal is in the reading state, wherein different sets of preset gamma parameter values correspond to The blue component in the light emitted by the display screen is different;

设置单元703,用于将上述终端的显示屏幕的伽马参数值设置为选取单元702选取的预设伽马参数值,以调整上述显示屏幕发射光线中的蓝色分量。The setting unit 703 is configured to set the gamma parameter value of the display screen of the terminal to the preset gamma parameter value selected by the selection unit 702, so as to adjust the blue component in the light emitted by the display screen.

可选的,确定单元701具体用于:在满足以下条件中的至少一种时,确定所述终端处于阅读状态:在上述显示屏幕前识别到人脸;上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长大于或等于预设的最小时长。Optionally, the determining unit 701 is specifically configured to: determine that the terminal is in a reading state when at least one of the following conditions is met: a human face is recognized in front of the above-mentioned display screen; The hold time in the on state is greater than or equal to the preset minimum time.

可选的,在图7所示实施例的基础上,如图8所示的显示处理装置800,还包括:人脸识别单元704,用于对终端的显示屏幕前的环境进行人脸识别;选取单元702具体用于:当人脸识别单元704在上述显示屏幕前识别到人脸时,根据上述人脸中的人眼与上述显示屏幕之间的距离、上述人脸中的人眼在预设时长内的眨眼次数以及与上述人脸匹配的年龄中的至少一种,从上述M组预设伽马参数值中选取一组预设伽马参数值。Optionally, on the basis of the embodiment shown in FIG. 7, the display processing device 800 shown in FIG. 8 further includes: a face recognition unit 704, configured to perform face recognition on the environment in front of the display screen of the terminal; The selecting unit 702 is specifically configured to: when the face recognition unit 704 recognizes a human face in front of the above-mentioned display screen, according to the distance between the human eyes in the above-mentioned human faces and the above-mentioned display screen, the distance between the human eyes in the above-mentioned human faces At least one of the number of blinks within the duration and the age matching the above-mentioned face is set, and a set of preset gamma parameter values is selected from the above-mentioned M sets of preset gamma parameter values.

可选的,在图8所示实施例的基础上,选取单元702包括:距离检测单元,用于检测上述人脸中的人眼与上述显示屏幕之间的距离;子选取单元,用于根据上述距离检测单元检测出的上述人脸中的人眼与上述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从上述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。Optionally, on the basis of the embodiment shown in FIG. 8 , the selection unit 702 includes: a distance detection unit, configured to detect the distance between the human eyes in the above-mentioned human face and the above-mentioned display screen; The distance between the human eyes in the above-mentioned face and the above-mentioned display screen detected by the above-mentioned distance detection unit, and the preset distance-gamma parameter value correspondence relationship, select a group from the above-mentioned M groups of preset gamma parameter values The gamma parameter value is preset, wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance.

可选的,在图8所示实施例的基础上,人脸识别单元704还用于:当在上述显示屏幕前识别到人脸时,检测上述人脸中的人眼在预设时长内的眨眼次数;选取单元702具体用于:当人脸识别单元704检测到的上述人脸中的人眼在预设时长内的眨眼次数不小于预设的最小次数时,根据上述眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从上述M组预设伽马参数值选取一组预设伽马参数值,其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。Optionally, on the basis of the embodiment shown in FIG. 8 , the face recognition unit 704 is also configured to: when a human face is recognized in front of the above-mentioned display screen, detect whether the human eyes in the above-mentioned face are within a preset time length The number of blinks; the selection unit 702 is specifically used for: when the number of blinks of the human eyes in the above-mentioned faces detected by the face recognition unit 704 within the preset time length is not less than the preset minimum number of times, according to the above-mentioned number of blinks, and the preset The predetermined number of blinks-gamma parameter value correspondence, select a set of preset gamma parameter values from the above M groups of preset gamma parameter values, wherein, in the preset blink number-gamma parameter value correspondence, gamma The blue component corresponding to the horse parameter value is negatively correlated with the number of blinks.

可选的,在图8所示实施例的基础上,人脸识别单元704还用于:当在上述显示屏幕前识别到人脸时,估计与上述人脸匹配的年龄;选取单元702具体用于:根据人脸识别单元704估计的与上述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从上述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。Optionally, on the basis of the embodiment shown in FIG. 8 , the face recognition unit 704 is also configured to: when a face is recognized in front of the display screen, estimate the age matching the face; the selection unit 702 specifically uses In: according to the age estimated by the face recognition unit 704 that matches the above-mentioned face, and the preset age-gamma parameter value correspondence, select a set of preset gamma parameters from the above-mentioned M sets of preset gamma parameter values value, wherein, in the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age.

可选的,在图7所示实施例的基础上,显示处理装置还包括:检测单元,用于检测显示屏幕的状态;计时单元,用于在上述显示屏幕进入点亮状态时,对上述显示屏幕在点亮状态下的保持时长进行计时;选取单元702具体用于:当上述检测单元检测到上述显示屏幕处于点亮状态且在上述点亮状态下的保持时长在上述最小时长和预设的最大时长组成的区间内时,从上述M组预设伽马参数值选取第i组预设伽马参数值,其中,上述区间包括M段时长,上述i为上述保持时长在上述区间内所属的段的序号,其中,上述M组预设伽马参数值满足如下条件:Sj>Sj+1>Sj+2,Sj表示第j组预设伽马参数值对应的蓝色分量,0<j≤M-2;且上述M段时长满足如下条件:Mg<Mg+1<Mg+2,0<g≤M-2,Mg表示第g段时长的范围,0<g≤M-2。进一步,选取单元702还用于:当上述显示屏幕处于点亮状态且上述显示屏幕在上述点亮状态下的保持时长大于上述最大时长时,从上述M组预设伽马参数值中选取第M组预设伽马参数值。Optionally, on the basis of the embodiment shown in FIG. 7 , the display processing device further includes: a detection unit for detecting the state of the display screen; The duration of keeping the screen in the lit state is timed; the selection unit 702 is specifically used for: when the detection unit detects that the display screen is in the lit state and the duration of the screen in the lit state is within the above-mentioned minimum hours and the preset When within the interval composed of the maximum duration, select the i-th set of preset gamma parameter values from the above-mentioned M groups of preset gamma parameter values, wherein the above-mentioned interval includes the duration of M segments, and the above-mentioned i is the period to which the above-mentioned hold duration belongs within the above-mentioned interval. The serial number of the segment, wherein, the above M groups of preset gamma parameter values meet the following conditions: S j >S j+1 >S j+2 , and S j represents the blue component corresponding to the jth group of preset gamma parameter values, 0<j≤M-2; and the duration of the above segment M satisfies the following conditions: M g <M g+1 <M g+2 , 0<g≤M-2, M g represents the range of the g segment duration, 0< g≤M-2. Further, the selecting unit 702 is also used for: when the above-mentioned display screen is in the light-on state and the duration of the above-mentioned display screen in the above-mentioned light-on state is longer than the above-mentioned maximum time length, select the Mth from the above-mentioned M groups of preset gamma parameter values Group preset gamma parameter values.

需要说明的是,本发明实施例中的显示处理装置可以是集成在终端中的装置,或者,也可以是独立于终端并且能够与终端实现通讯的装置,本发明实施例中的终端包括但不限于智能手机、平板电脑、笔记本或者其它配置有显示屏幕的终端,此处不作限定。本发明实施例中的显示处理装置可以如上述方法实施例中提及的显示处理装置,可以用于实现上述方法实施例中的全部技术方案,其各个功能模块的功能可以根据上述方法实施例中的方法具体实现,其具体实现过程可参照上述实施例中的相关描述,此处不再赘述。It should be noted that the display processing device in the embodiment of the present invention may be a device integrated in the terminal, or may be a device independent of the terminal and capable of communicating with the terminal. The terminal in the embodiment of the present invention includes but does not It is limited to smart phones, tablet computers, notebooks or other terminals equipped with display screens, and is not limited here. The display processing device in the embodiment of the present invention can be like the display processing device mentioned in the above-mentioned method embodiment, and can be used to realize all the technical solutions in the above-mentioned method embodiment, and the functions of each functional module can be based on the above-mentioned method embodiment. The specific implementation of the method, the specific implementation process can refer to the relevant description in the above embodiment, and will not be repeated here.

在本发明实施例中,在确定终端处于阅读状态时,从M组预设伽马参数值中选取一组预设伽马参数值,并将显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,可以避免现有技术中显示屏幕的伽马参数值只能是默认的伽马参数值,并可以使得在终端处于阅读状态时,通过调整伽马参数值实现对显示屏幕发射光线中的蓝色分量的控制,从而可以减少终端的屏幕对人眼的伤害,而对人眼的健康起到一定的保护作用。In the embodiment of the present invention, when it is determined that the terminal is in the reading state, a set of preset gamma parameter values is selected from M sets of preset gamma parameter values, and the gamma parameter value of the display screen is set to the selected Presetting the gamma parameter value can avoid that the gamma parameter value of the display screen in the prior art can only be the default gamma parameter value, and can realize the adjustment of the display screen by adjusting the gamma parameter value when the terminal is in the reading state. The control of the blue component in the emitted light can reduce the damage of the terminal screen to human eyes, and play a certain role in protecting the health of human eyes.

本发明实施例还提供一种终端,包括:上述装置实施例中描述的任一显示处理装置。An embodiment of the present invention also provides a terminal, including: any display processing device described in the above device embodiments.

可选的,本发明实施例中的终端为经无线接入网(RAN,Residential AccessNetwork)与一个或多个核心网进行通信的用户设备,该用户设备具体可以是移动电话(或称为“蜂窝”电话,例如智能手机)、配备移动终端的计算机等,具体的,上述用户设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与RAN交换语音和/或数据。或者,本发明实施例中的终端也可以包括个人数字助理(PDA,Personal DigitalAssistant)、平板电脑、销售终端(POS,point of sale)或车载电脑等。Optionally, the terminal in the embodiment of the present invention is a user equipment that communicates with one or more core networks via a radio access network (RAN, Residential Access Network). The user equipment may specifically be a mobile phone (or called a "cellular "telephone, such as a smart phone), a computer equipped with a mobile terminal, etc. Specifically, the above-mentioned user equipment can also be a portable, pocket-sized, handheld, computer built-in or vehicle-mounted mobile device, which exchanges voice and/or data with the RAN . Alternatively, the terminal in the embodiment of the present invention may also include a personal digital assistant (PDA, Personal Digital Assistant), a tablet computer, a sales terminal (POS, point of sale) or a vehicle-mounted computer.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or can be Integrate into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例上述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本发明所必须的。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments. Those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

以上为对本发明所提供的一种显示处理方法、显示处理装置及终端的描述,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本发明的限制。The above is a description of a display processing method, display processing device, and terminal provided by the present invention. For those of ordinary skill in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the contents of this specification should not be construed as limiting the present invention.

Claims (11)

1.一种显示处理方法,其特征在于,包括:1. A display processing method, characterized in that, comprising: 确定终端处于阅读状态;Make sure the terminal is in the reading state; 从M组预设伽马参数值中选取一组预设伽马参数值,其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同;Selecting a set of preset gamma parameter values from M sets of preset gamma parameter values, wherein different sets of preset gamma parameter values correspond to different blue components in light emitted from the display screen; 将所述终端的显示屏幕的伽马参数值设置为选取的所述预设伽马参数值,以调整所述显示屏幕发射光线中的蓝色分量;Setting the gamma parameter value of the display screen of the terminal to the selected preset gamma parameter value to adjust the blue component in the light emitted by the display screen; 所述确定终端处于阅读状态,包括:The determining that the terminal is in a reading state includes: 在满足以下条件时,确定所述终端处于阅读状态:When the following conditions are met, it is determined that the terminal is in the reading state: 在所述显示屏幕前识别到人脸;或a human face is recognized in front of said display screen; or 在所述显示屏幕前识别到人脸及所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长大于或等于预设的最小时长;A human face is recognized in front of the display screen and the display screen is in a lighting state and the duration of the lighting state is greater than or equal to a preset minimum duration; 所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:The selection of a set of preset gamma parameter values from M groups of preset gamma parameter values includes: 根据所述人脸中的人眼与所述显示屏幕之间的距离、所述人脸中的人眼在预设时长内的眨眼次数以及与所述人脸匹配的年龄中的至少一种,从M组预设伽马参数值中选取一组预设伽马参数值。According to at least one of the distance between the human eyes in the human face and the display screen, the number of blinks of the human eyes in the human face within a preset time period, and the age matched with the human face, A set of preset gamma parameter values is selected from M sets of preset gamma parameter values. 2.根据权利要求1所述的方法,其特征在于,所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:2. The method according to claim 1, wherein said selecting a set of preset gamma parameter values from M groups of preset gamma parameter values comprises: 检测所述人脸中的人眼与所述显示屏幕之间的距离;Detecting the distance between the human eyes in the human face and the display screen; 根据所述人脸中的人眼与所述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。According to the distance between the human eyes in the human face and the display screen, and the preset distance-gamma parameter value correspondence, select a set of preset gamma parameter values from the M sets of preset gamma parameter values The horse parameter value, wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance. 3.根据权利要求1所述的方法,其特征在于,所述从M组预设伽马参数值中选取一组预设伽马参数值,包括:3. The method according to claim 1, wherein said selecting a set of preset gamma parameter values from M groups of preset gamma parameter values includes: 检测所述人脸中的人眼在预设时长内的眨眼次数;Detecting the number of blinks of the human eyes in the human face within a preset duration; 当所述眨眼次数不小于预设的最小次数时,根据所述人脸中的人眼在预设时长内的眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。When the number of blinks is not less than the preset minimum number of times, according to the number of blinks of the human eyes in the face within the preset time length, and the preset corresponding relationship between the number of blinks and the gamma parameter value, from the M A set of preset gamma parameter values is selected from a set of preset gamma parameter values, wherein, in the preset corresponding relationship between the number of blinks and the gamma parameter value, the blue component corresponding to the gamma parameter value is negatively correlated with the number of blinks . 4.根据权利要求1所述的方法,其特征在于,所述从所述M组预设伽马参数值中选取一组预设伽马参数值,包括:4. The method according to claim 1, wherein said selecting a set of preset gamma parameter values from said M groups of preset gamma parameter values comprises: 估计与所述人脸匹配的年龄;Estimate the age of the matching face; 根据估计的与所述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。According to the estimated age matched with the human face and the preset age-gamma parameter value correspondence, a set of preset gamma parameter values is selected from the M sets of preset gamma parameter values, wherein, in In the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age. 5.一种显示处理装置,其特征在于,包括:5. A display processing device, characterized in that it comprises: 确定单元,用于在显示屏幕前识别到人脸时,或在显示屏幕前识别到人脸及所述显示屏幕处于点亮状态且在所述点亮状态下的保持时长大于或等于预设的最小时长时,确定终端处于阅读状态;A determining unit, configured to recognize a human face in front of the display screen, or recognize a human face in front of the display screen and the display screen is in a lighting state and the duration of the lighting state is greater than or equal to a preset When the minimum hour length is reached, it is determined that the terminal is in the reading state; 选取单元,用当所述确定单元确定所述终端处于阅读状态时,根据所述人脸中的人眼与所述显示屏幕之间的距离、所述人脸中的人眼在预设时长内的眨眼次数以及与所述人脸匹配的年龄中的至少一种,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,不同组预设伽马参数值对应的显示屏幕发射光线中的蓝色分量不同;The selecting unit is configured to, when the determination unit determines that the terminal is in the reading state, according to the distance between the human eyes in the human face and the display screen, the human eyes in the human face are within a preset time period At least one of the number of blinks and the age matched with the face, a set of preset gamma parameter values is selected from the M sets of preset gamma parameter values, wherein different sets of preset gamma parameter values The blue component in the light emitted by the corresponding display screen is different; 设置单元,用于将所述终端的显示屏幕的伽马参数值设置为所述选取单元选取的预设伽马参数值,以调整所述显示屏幕发射光线中的蓝色分量。The setting unit is configured to set the gamma parameter value of the display screen of the terminal to the preset gamma parameter value selected by the selection unit, so as to adjust the blue component in the light emitted by the display screen. 6.根据权利要求5所述的显示处理装置,其特征在于,所述显示处理装置还包括:6. The display processing device according to claim 5, wherein the display processing device further comprises: 人脸识别单元,用于对终端的显示屏幕前的环境进行人脸识别。The face recognition unit is configured to perform face recognition on the environment in front of the display screen of the terminal. 7.根据权利要求6所述的显示处理装置,其特征在于,所述选取单元包括:7. The display processing device according to claim 6, wherein the selecting unit comprises: 距离检测单元,用于检测所述人脸中的人眼与所述显示屏幕之间的距离;a distance detection unit, configured to detect the distance between the human eyes in the human face and the display screen; 子选取单元,用于根据所述距离检测单元检测出的所述人脸中的人眼与所述显示屏幕之间的距离,以及预设的距离-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的距离-伽马参数值对应关系中,伽马参数值对应的蓝色分量与距离成正相关。A sub-selection unit, configured to select from the M A set of preset gamma parameter values is selected from the set of preset gamma parameter values, wherein, in the preset distance-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is positively correlated with the distance. 8.根据权利要求6所述的显示处理装置,其特征在于,所述人脸识别单元还用于:当在所述显示屏幕前识别到人脸时,检测所述人脸中的人眼在预设时长内的眨眼次数;8. The display processing device according to claim 6, wherein the face recognition unit is further configured to: when a face is recognized in front of the display screen, detect whether the human eyes in the face are The number of blinks within a preset duration; 所述选取单元具体用于:当所述眨眼次数不小于预设的最小次数时,根据所述眨眼次数,以及预设的眨眼次数-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的眨眼次数-伽马参数值对应关系中,伽马参数值对应的蓝色分量与眨眼次数成负相关。The selection unit is specifically configured to: when the number of blinks is not less than a preset minimum number, according to the number of blinks and the preset corresponding relationship between the number of blinks and the gamma parameter value, preset gamma from the M group A set of preset gamma parameter values is selected from the horse parameter value, wherein, in the preset corresponding relationship between the number of blinks and the gamma parameter value, the blue component corresponding to the gamma parameter value is negatively correlated with the number of blinks. 9.根据权利要求6所述的显示处理装置,其特征在于,所述人脸识别单元还用于:当在所述显示屏幕前识别到人脸时,估计与所述人脸匹配的年龄;9. The display processing device according to claim 6, wherein the face recognition unit is further configured to: when a face is recognized in front of the display screen, estimate the age matching the face; 所述选取单元具体用于:根据所述人脸识别单元估计的与所述人脸匹配的年龄,以及预设的年龄-伽马参数值对应关系,从所述M组预设伽马参数值中选取一组预设伽马参数值,其中,在预设的年龄-伽马参数值对应关系中,伽马参数值对应的蓝色分量与年龄成负相关。The selection unit is specifically configured to: according to the age estimated by the face recognition unit matching the face, and the preset age-gamma parameter value correspondence relationship, from the M groups of preset gamma parameter values Select a set of preset gamma parameter values, wherein, in the preset age-gamma parameter value correspondence relationship, the blue component corresponding to the gamma parameter value is negatively correlated with age. 10.一种终端,其特征在于,包括如权利要求5至9中任一项所述的显示处理装置。10. A terminal, characterized by comprising the display processing device according to any one of claims 5 to 9. 11.如权利要求10所述的终端,其特征在于,所述终端为智能手机或平板电脑。11. The terminal according to claim 10, wherein the terminal is a smart phone or a tablet computer.
CN201410708539.2A 2014-11-28 2014-11-28 A kind of display processing method, display processing unit and terminal Expired - Fee Related CN104460995B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410708539.2A CN104460995B (en) 2014-11-28 2014-11-28 A kind of display processing method, display processing unit and terminal
CN201710992331.1A CN107832029B (en) 2014-11-28 2014-11-28 Display processing method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410708539.2A CN104460995B (en) 2014-11-28 2014-11-28 A kind of display processing method, display processing unit and terminal

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201710992331.1A Division CN107832029B (en) 2014-11-28 2014-11-28 Display processing method and device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN104460995A CN104460995A (en) 2015-03-25
CN104460995B true CN104460995B (en) 2017-11-21

Family

ID=52907187

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410708539.2A Expired - Fee Related CN104460995B (en) 2014-11-28 2014-11-28 A kind of display processing method, display processing unit and terminal
CN201710992331.1A Expired - Fee Related CN107832029B (en) 2014-11-28 2014-11-28 Display processing method and device, terminal and computer readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201710992331.1A Expired - Fee Related CN107832029B (en) 2014-11-28 2014-11-28 Display processing method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (2) CN104460995B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354001B (en) * 2015-10-23 2018-09-14 广东欧珀移动通信有限公司 Eye protection method and system for intelligent device
CN106020481B (en) * 2016-05-26 2019-03-12 福建捷联电子有限公司 A kind of implementation method of the hand-held device with the anti-blue light of eyeshield
CN106534836A (en) * 2016-11-30 2017-03-22 珠海市魅族科技有限公司 Image adjusting method and apparatus
CN108962140B (en) * 2018-07-10 2020-04-10 深圳清华大学研究院 Display driving circuit, display driving method and display device
CN111258414B (en) * 2018-11-30 2023-08-04 百度在线网络技术(北京)有限公司 Method and device for adjusting screen
WO2021201855A1 (en) * 2020-04-01 2021-10-07 Hewlett-Packard Development Company, L.P. Display intensity reductions

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1261920C (en) * 2002-01-17 2006-06-28 奇景光电股份有限公司 Gamma correcting device and method for LCD
KR100646996B1 (en) * 2004-06-16 2006-11-23 삼성에스디아이 주식회사 OLED display and control method thereof
KR101440773B1 (en) * 2010-12-13 2014-09-18 엘지디스플레이 주식회사 Apparatus and method for driving of organic light emitting display device
JP6051605B2 (en) * 2012-06-13 2016-12-27 ソニー株式会社 Display device, display control method, and program
US20140218411A1 (en) * 2013-02-05 2014-08-07 Shenzhen China Star Optoelectronics Technology Co. Ltd. Method and System for Improving a Color Shift of Viewing Angle of Skin Color of an LCD Screen
CN103295485B (en) * 2013-05-06 2015-07-29 深圳市宏啟光电有限公司 A kind of display packing of LED display and system
CN103793052B (en) * 2013-11-21 2017-01-11 广州视源电子科技股份有限公司 Eyesight protection control method of mobile terminal
CN103810973A (en) * 2014-03-13 2014-05-21 友达光电股份有限公司 Liquid crystal display with high transmittance and control method thereof
CN103957345B (en) * 2014-04-08 2017-05-24 京东方科技集团股份有限公司 Method and system for processing image signals and displayer

Also Published As

Publication number Publication date
CN107832029A (en) 2018-03-23
CN107832029B (en) 2020-08-25
CN104460995A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104460995B (en) A kind of display processing method, display processing unit and terminal
CN104331167B (en) Display processing method and display processing unit
US11311195B2 (en) Electronic device, and method for analyzing face information in electronic device
JP6878572B2 (en) Authentication based on face recognition
CN104934014B (en) Sight protectio method and device
US20140223548A1 (en) Adapting content and monitoring user behavior based on facial recognition
CN106960147A (en) Privacy information protection method and device and user equipment
CN104216117A (en) Display device
CN105827943B (en) Selfie method and electronic device for human eye
CN108646907A (en) Backlight brightness adjusting method and related product
WO2015120677A1 (en) Method and apparatus for protecting privacy-sensitive information by automatically identifying scene
CN109993115A (en) Image processing method, device and wearable device
US11138429B2 (en) Iris recognition using eye-tracking system
CN104767888A (en) Method and device for adjusting screen brightness
CN106161962B (en) Image processing method and terminal
CN111601373B (en) Backlight brightness control method, device, mobile terminal and storage medium
US20170277258A1 (en) Method for adjusting screen luminance and electronic device
CN113010126B (en) Display control method, device, electronic equipment and medium
EP3312717A1 (en) User device and computer program stored in computer-readable medium for controlling display
KR20160052309A (en) Electronic device and method for analysis of face information in electronic device
CN107948399A (en) Eye protection method and device for mobile terminal, mobile terminal and storage medium
CN107273071A (en) Electronic installation, screen adjustment system and method
CN107463823A (en) Mobile terminal, application control method and computer-readable storage medium
CN107835404A (en) Method for displaying image, equipment and system based on wear-type virtual reality device
CN107577340B (en) Eyesight protection method, terminal and storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171121