Blue light adjustment method, apparatus, and terminal

A terminal provided in the present disclosure, acquires values of one or more monitoring parameters. The terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on a screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel. The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value such that the terminal can set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a U.S. national stage of International Patent Application No. PCT/CN2014/086129 filed on Sep. 9, 2014, which is hereby incorporated by reference in its entirety.

TECHNICAL FIELD

The present disclosure relates to mobile communications technologies, and in particular, to a blue light adjustment method, apparatus, and terminal.

BACKGROUND

A macula of a human eye is located in a center area of a retina and has a close relationship with vision. After the macula degenerates, a problem such as blurred vision occurs on the human eye, or even a loss of vision is caused in a severe case. A yellow pigment in the macula absorbs blue light and causes a photochemical oxidation reaction. Therefore, when the human eye receives irradiation of the blue light for a long time, the retina of the human eye will be injured.

As electronic devices gain popularity, people spend increasing time in using the electronic devices. Therefore, damage to a human eye brought by the electronic devices becomes increasingly unignorable. Therefore, application software for reducing blue light output emerges. However, such application software requires a user to manually start a corresponding application program to enable an eye protection function, and all pixels on a display screen of an electronic device are adjusted only according to a defined manner.

An optical light filter and an optical lens that reduce blue light output are also available on the market. The optical light filter or the optical lens is attached to a display screen of an apparatus or attached to eyeglasses of a user. However, such a light filter also has the foregoing problem, that is, an objective of eye protection can be achieved only using the light filter or the optical lens, and all light irradiating at a human eye can be controlled only according to a defined manner.

In conclusion, how the terminal intelligently adjusts blue light is a problem that needs to be urgently resolved.

SUMMARY

In view of this, embodiments of the present disclosure provide a blue light adjustment method, apparatus, and terminal such that blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

According to a first aspect, an embodiment of the present disclosure provides a blue light adjustment method, including acquiring, by a terminal, values of one or more monitoring parameters, setting, by the terminal according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on a screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel, and displaying, by the screen of the terminal, the to-be-adjusted pixel according to the blue light output value.

In a first possible implementation manner of the first aspect, the method further includes monitoring an application program currently running on a foreground of the terminal, and setting the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program is in a preset application program list or when none of the values of the one or more monitoring parameters meets the preset rule corresponding to the monitoring parameter.

With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, setting, by the terminal according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on a screen of the terminal includes determining, by the terminal, a first adjustment parameter according to the monitoring parameter, and setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

According to the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter further includes setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x), where A indicates the first adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, and 0<A<1.

According to the second possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, after determining, by the terminal, a first adjustment parameter according to the monitoring parameter, the method further includes determining, by the terminal, a second adjustment parameter according to the first adjustment parameter, and setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter includes setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller.

According to the fourth implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter further includes setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x)+A*Pin(x)*(1−Pin(x)1/G), where A indicates the first adjustment parameter, G indicates the second adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, 0<A<1, and 1<G<10.

With reference to the first aspect or the first possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, setting, by the terminal according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on a screen of the terminal further includes setting, by the terminal, the blue light output value of the to-be-adjusted pixel according to a preset third adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

With reference to the first aspect and the foregoing possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the to-be-adjusted pixel displayed on the screen of the terminal further includes all pixels displayed on the screen of the terminal, or some pixels displayed on the screen of the terminal.

With reference to the first aspect and the foregoing possible implementation manners, in an eighth possible implementation manner of the first aspect, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as duration (where the duration indicates a time length of a continuous awake state of the screen of the terminal), ambient light luminance of the terminal, a distance between an eye of a user and the screen of the terminal, system time of the terminal, a quantity of times the eye of the user closes per unit time, a motion status of the terminal, or the original blue light output value of the to-be-adjusted pixel.

According to a second aspect, a blue light adjustment apparatus is provided, where the apparatus includes a monitoring parameter acquiring module, a blue light setting module, a display module, and a storage module, where the monitoring parameter acquiring module is configured to acquire values of one or more monitoring parameters. The blue light setting module is configured for the apparatus to set, when a value, of at least one of the monitoring parameters, acquired by the monitoring parameter acquiring module meets a preset rule that corresponds to the monitoring parameter and that is stored in the storage module, a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel. The display module is configured to display the to-be-adjusted pixel according to the blue light output value set by the blue light setting module, and the storage module is configured to store the preset rule corresponding to the monitoring parameter.

According to the second aspect, in a first possible implementation manner of the second aspect, the apparatus further includes an application program monitoring module configured to monitor an application program currently running on a foreground of the apparatus. The storage module is further configured to store a preset application program list, and the blue light setting module is further configured to set the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program acquired by the application program monitoring module is in the preset application program list stored in the storage module or when none of the values, of the one or more monitoring parameters, acquired by the monitoring parameter acquiring module meets the preset rule that corresponds to the monitoring parameter and that is stored in the storage module.

With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the blue light setting module further includes a first adjustment parameter determining unit configured to determine a first adjustment parameter according to the monitoring parameter acquired by the monitoring parameter acquiring module, and a blue light setting unit configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter determined by the first adjustment parameter determining unit such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

According to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the blue light setting unit is further configured to set the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x), where A indicates the first adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, and 0<A<1.

According to the second possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the blue light setting module further includes a second adjustment parameter determining unit configured to determine a second adjustment parameter according to the first adjustment parameter determined by the first adjustment parameter determining unit, and the blue light setting unit is further configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter determined by the first adjustment parameter determining unit and the second adjustment parameter determined by the second adjustment parameter determining unit such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller.

According to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the blue light setting unit is further configured to set the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x)+A*Pin(x)*(1−Pin(x)1/G), where A indicates the first adjustment parameter, G indicates the second adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, 0<A<1, and 1<G<10.

With reference to the second aspect and the first possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, the storage module is further configured to store a preset third adjustment parameter, and the blue light setting module is further configured to set the blue light output value of the to-be-adjusted pixel according to the preset third adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

With reference to the second aspect and the foregoing possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the to-be-adjusted pixel displayed on the display module further includes all pixels displayed on the display module, or some pixels displayed on the display module.

With reference to the second aspect and the foregoing possible implementation manners of the second aspect, in an eighth possible implementation manner of the second aspect, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as duration (where the duration indicates a time length of a continuous awake state of the display module), ambient light luminance, a distance between an eye of a user and the display module, system time of the apparatus, a quantity of times the eye of the user closes per unit time, a motion status of the apparatus, or the original blue light output value of the to-be-adjusted pixel.

According to a third aspect, a blue light adjustment terminal is provided, including a monitoring parameter acquiring apparatus configured to acquire values of one or more monitoring parameters, a processor configured to set, when a value, of at least one of the monitoring parameters, acquired by the monitoring parameter acquiring apparatus meets a preset rule corresponding to the monitoring parameter, a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel, a display apparatus configured to display the to-be-adjusted pixel according to the blue light output value, and a memory configured to store the preset rule corresponding to the monitoring parameter.

According to the third aspect, in a first possible implementation manner of the third aspect, the memory is further configured to store a preset application program list, and the processor is further configured to monitor an application program currently running on a foreground of the terminal, and set the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program is in the preset application program list stored in the memory or when none of the values, of the one or more monitoring parameters, acquired by the monitoring parameter acquiring apparatus meets the preset rule corresponding to the monitoring parameter.

With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the processor is further configured to determine a first adjustment parameter according to the monitoring parameter, and set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

According to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the processor is further configured to set the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x), where A indicates the first adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, and 0<A<1.

According to the second possible implementation manner of the third aspect, in a fourth possible implementation manner of the third aspect, the processor is further configured to determine a second adjustment parameter according to the first adjustment parameter, and the processor is further configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller.

According to the third possible implementation manner of the third aspect, in a fifth possible implementation manner of the third aspect, the processor is further configured to set the blue light output value of the to-be-adjusted pixel according to Pout(x)=A*Pin(x)+A*Pin(x)*(1−Pin(x)1/G), where A indicates the first adjustment parameter, G indicates the second adjustment parameter, Pin(x) indicates the original blue light output value of the to-be-adjusted pixel, Pout(x) indicates the blue light output value of the to-be-adjusted pixel, 0<A<1, and 1<G<10.

With reference to the third aspect or the first possible implementation manner of the third aspect, in a sixth possible implementation manner of the third aspect, the processor is further configured to set the blue light output value of the to-be-adjusted pixel according to a preset third adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

According to the third aspect and the foregoing possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the to-be-adjusted pixel displayed on the display apparatus of the terminal further includes all pixels displayed on the display apparatus of the terminal, or some pixels displayed on the display apparatus of the terminal.

According to the third aspect and the foregoing possible implementation manners of the third aspect, in an eighth possible implementation manner of the third aspect, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as duration (where the duration indicates a time length of a continuous awake state of a screen of the terminal), ambient light luminance of the terminal, a distance between an eye of a user and the screen of the terminal, system time of the terminal, a quantity of times the eye of the user closes per unit time, a motion status of the terminal, or the original blue light output value of the to-be-adjusted pixel.

According to the blue light adjustment method, apparatus, and terminal provided in the embodiments of the present disclosure, the values of the one or more monitoring parameters are acquired, the terminal sets, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel, the screen of the terminal displays the to-be-adjusted pixel according to the blue light output value such that the terminal can determine, according to the value of the monitoring parameter, whether to adjust blue light of the screen of the terminal, and set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

DESCRIPTION OF EMBODIMENTS

The embodiments of the present disclosure are executed by a terminal. The terminal may be a fixed terminal, for example, a desktop computer or a television, or may be a mobile terminal, for example, a tablet computer or a mobile phone, or may even be a projector or a wearable device, for example, a GOOGLE GLASS.

Step 001: A terminal acquires values of one or more monitoring parameters.

The terminal acquires the one or more monitoring parameters to determine whether to start a blue light adjustment step, provided that the monitoring parameters can be used as a basis for determining blue light adjustment.

Optionally, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as duration (where the duration indicates a time length of a continuous awake state of a screen of the terminal), ambient light luminance of the terminal, a distance between an eye of a user and the screen of the terminal, system time of the terminal, a quantity of times the eye of the user closes per unit time, a motion status of the terminal, or an original blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal. For example, the one or more monitoring parameters may include the duration, or the ambient light luminance of the terminal, or the distance between the eye of the user and the screen of the terminal, or the system time of the terminal, or the quantity of times the eye of the user closes per unit time, or the motion status of the terminal, or the original blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal, or the one or more monitoring parameters may include the duration and the ambient light luminance of the terminal, or the one or more monitoring parameters may include the duration and the distance between the eye of the user and the screen of the terminal, or the one or more monitoring parameters may include the duration and the system time of the terminal, or the one or more monitoring parameters may include the duration and the quantity of times the eye of the user closes per unit time, or the one or more monitoring parameters may include the duration and the motion status of the terminal, or the one or more monitoring parameters may include the duration and the original blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal. No more examples are provided herein.

Step 002: The terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on a screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel.

Step 003: The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value.

According to the blue light adjustment method provided in this embodiment of the present disclosure, the terminal acquires the values of the one or more monitoring parameters, the terminal sets, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value such that the terminal can determine, according to the value of the monitoring parameter, whether to adjust blue light of the screen of the terminal, and set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

FIG. 1is a flowchart of a blue light adjustment method according to an embodiment of the present disclosure. As shown inFIG. 1, the method in this embodiment of the present disclosure includes the following steps.

Step101: A terminal acquires values of one or more monitoring parameters, where the one or more monitoring parameters include duration, and the duration indicates a time length of a continuous awake state of a screen of the terminal.

It should be noted that the terminal may acquire, after start-up, the values of the monitoring parameters in real time or periodically, or may acquire, after an application program related to this embodiment of the present disclosure is executed, the values of the monitoring parameters in real time or periodically.

It should be noted that the terminal may acquire the values of the monitoring parameters using hardware of the terminal or software, or the terminal may acquire the values of the monitoring parameters using a device, except hardware of the terminal or software, for example, by receiving a value, of a monitoring parameter, acquired by a wearable device.

The terminal acquires the one or more monitoring parameters to determine whether to start a blue light adjustment step, provided that the monitoring parameters can be used as a basis for determining whether to start blue light adjustment.

It should be noted that the continuous awake state refers to that the screen of the terminal is in a continuous lighted-up state, that is, the screen of the terminal is not lighted out during a period in which the screen of the terminal is in a lighted-up state. In specific implementation, a timer may be provided on the terminal. The timer starts timing when the screen of the terminal is wakened, and the timer stops timing when the screen of the terminal is lighted out. A duration value obtained by the timer by performing timing in a period from starting timing to stopping timing is set as a value of the duration. The duration value is cleared after the screen of the terminal is lighted out, and the timer re-calculates a time length of continuous operation of the screen of the terminal, or may calculate a value of the duration in another manner when the screen of the terminal is wakened again. This embodiment of the present disclosure does not impose a specific limitation.

Optionally, the one or more monitoring parameters further include one or a combination of more than one of the following parameters ambient light luminance, a distance between an eye of a user and the screen of the terminal, system time of the terminal, a quantity of times the eye of the user closes per unit time, a motion status of the terminal, or an original blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal. For example, the one or more monitoring parameters may include the duration and the ambient light luminance of the terminal, or the one or more monitoring parameters may include the duration and the distance between the eye of the user and the screen of the terminal, or the one or more monitoring parameters may include the duration and the system time of the terminal, or the one or more monitoring parameters may include the duration and the quantity of times the eye of the user closes per unit time, or the one or more monitoring parameters may include the duration and the motion status of the terminal, or the one or more monitoring parameters may include the duration and the original blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal. No more examples are provided herein.

Step102: When a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, the terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal, where the blue light output value is less than an original blue light output value of the to-be-adjusted pixel, and a preset rule corresponding to the duration includes that a value of the duration is greater than a preset duration threshold.

It should be noted that the preset duration threshold is a duration value preset on the terminal, and the preset duration threshold may be set to a preferred duration value obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset duration threshold may be provided on the terminal such that a user can set or modify the preset duration threshold on the editing interface. A specific implementation manner to be used may be further defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

It should be noted that, if the screen of the terminal uses hardware with adjustable backlight, blue light output of a to-be-adjusted pixel may be adjusted by adjusting a backlight source. In this way, adjustment may be performed on a light source that emits light, which may reduce power consumption of the terminal. Certainly, a filter of the terminal may be enabled to adjust blue light output of a to-be-adjusted pixel, and this manner is more flexible, more careful, and easy to implement, and an adjustment result may be accurate to a specific pixel.

Optionally, the to-be-adjusted pixel displayed on the screen of the terminal further includes all pixels displayed on the screen of the terminal, or some pixels displayed on the screen of the terminal.

The terminal may adjust all pixels displayed on the screen of the terminal, or may identify some to-be-adjusted pixels displayed on the screen of the terminal, adjust the to-be-adjusted pixels, and display another pixel according to an original value. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. For example, the terminal identifies, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the screen of the terminal.

Optionally, when the one or more monitoring parameters include the ambient light luminance, a preset rule corresponding to the ambient light luminance includes that an acquired value of the ambient light luminance is less than a preset ambient light threshold. The preset ambient light threshold is an ambient light luminance value preset on the terminal, and the preset ambient light threshold may be set to a preferred ambient light luminance value obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset ambient light threshold may be provided on the terminal such that the user can set or modify the preset ambient light threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the distance between the eye of the user and the screen of the terminal, a preset rule corresponding to the distance between the eye of the user and the screen of the terminal includes that an acquired value of the distance between the eye of the user and the screen of the terminal is less than a preset distance threshold. The terminal may use a camera, a sensor, or the like to monitor a value of the distance between the eye of the user and the screen of the terminal. In specific implementation, a distance between the camera and the eye of the user may be monitored, or a vertical distance between the screen of the terminal and the eye of the user may be monitored. This embodiment of the present disclosure does not impose a specific limitation on a specific manner to be used. The preset distance threshold is a distance value preset on the terminal, and the preset distance threshold may be set to a preferred distance value obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset distance threshold may be provided on the terminal such that the user can set or modify the preset distance threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the system time, a preset rule corresponding to the system time includes that the acquired system time is within the preset time period. The preset time period includes a time period preset by the user or a sunset time period acquired by the terminal from a network. That is, the preset time period may be a time period preset by the user on the terminal, and the preset time period may be set to a preferred time period obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset time period may be provided on the terminal such that the user can set or modify the preset time period on the editing interface, or the preset time period may be the sunset time period acquired by the terminal from the network, and the terminal periodically connects to the network to acquire an updated sunset time period. A specific implementation manner to be used may be further defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the quantity of times the eye of the user closes per unit time, a preset rule corresponding to the quantity of times the eye of the user closes per unit time includes that an acquired value of the quantity of times the eye of the user closes per unit time is greater than a preset threshold of eye closing times. The preset threshold of eye closing times is a value of eye closing times preset on the terminal, and the preset threshold of eye closing times may be set to a preferred value of eye closing times obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset threshold of eye closing times may be provided on the terminal such that the user can set or modify the preset threshold of eye closing times on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, a preset rule corresponding to the motion status of the terminal includes that an acquired motion status of the terminal is a moving state when the one or more monitoring parameters include the motion status of the terminal. The terminal may monitor the motion status of the terminal using a sensor.

Optionally, a preset rule corresponding to the original blue light output value includes that the acquired original blue light output value is greater than a preset blue light threshold when the one or more monitoring parameters include the original blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal. The preset blue light threshold is a blue light value preset on the terminal, and the preset blue light threshold may be set to a preferred blue light value obtained by performing an experimental test and may be set before the terminal is delivered, or an interface for editing the preset blue light threshold may be provided on the terminal such that the user can set or modify the preset blue light threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

It should be noted that, when the one or more monitoring parameters include two or more monitoring parameters, after acquiring values of the two or more monitoring parameters, the terminal needs to determine whether the values of the two or more monitoring parameters meet preset rules corresponding to the monitoring parameters, and when one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter (it is not required that the values of all the monitoring parameters meet the preset rules corresponding to the monitoring parameters), the terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal. There may be multiple specific implementation manners. For example, the terminal may first acquire the values of all the monitoring parameters, and then compare the acquired values with the preset rules one by one, that is, first acquire the values of all the monitoring parameters, and then perform a comparison operation between an acquired value of a monitoring parameter and a preset rule, and provided that one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, the terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal, or the terminal may perform a comparison operation after acquiring a value of one monitoring parameter, that is, acquire the values of the monitoring parameters according to a priority order, and after acquiring a value of one monitoring parameter, perform a comparison operation between the acquired value of the monitoring parameter and a preset rule, and when the acquired value of the monitoring parameter meets the preset rule, stop acquiring and performing a comparison operation on a value of a remaining monitoring parameter, and the terminal sets, according to the monitoring parameter, a blue light output value of a to-be-adjusted pixel displayed on the screen of the terminal. In this way, the blue light output value of the to-be-adjusted pixel is set provided that a value of one monitoring parameter meets a preset rule, without a need to acquire all the monitoring parameters, and also without a need to complete comparison operations between all the monitoring parameters and the preset rules, and therefore the terminal can quickly adjust blue light of a to-be-adjusted pixel, which effectively reduces resource consumption of the terminal and improves operation experience of a terminal user.

Step103: The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value.

It should be noted that when the screen of the terminal displays a pixel, not only blue light is included, but also light in another color is included. The light in another color is irrelevant to this embodiment of the present disclosure, and therefore only blue light is mentioned when a specific solution is described and description of the light in another color is ignored.

According to the blue light adjustment method provided in this embodiment of the present disclosure, the terminal acquires the values of the one or more monitoring parameters, where the one or more monitoring parameters include the duration, and the duration indicates a time length of a continuous awake state of the screen of the terminal. The terminal sets, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel, and the preset rule corresponding to the duration includes that the value of the duration is greater than the preset duration threshold. The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value such that the terminal can determine, according to the value of the monitoring parameter, whether to adjust blue light of the screen of the terminal, and set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the screen of the terminal, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

FIG. 2is a flowchart of a blue light adjustment method according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiment shown inFIG. 1. As shown inFIG. 2, the method further includes the following steps.

Step201: The terminal detects an application program currently running on a foreground of the terminal.

Step202: Set the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program is in a preset application program list or when none of the values of the one or more monitoring parameters meets the preset rule corresponding to the monitoring parameter.

It should be noted that the preset application program list is stored in the terminal, and an application program that has a relatively high pixel output quality requirement is stored in this preset application program list, for example, a video player or a photo player.

The blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped when the application program is in the preset application program list.

The blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped when none of the values of the monitoring parameters meets the preset rule corresponding to the monitoring parameter.

According to the blue light adjustment method provided in this embodiment of the present disclosure, a condition for stopping blue light adjustment is set, and the terminal automatically determines whether blue light adjustment needs to be stopped such that the terminal can intelligently stop blue light adjustment when blue light adjustment is unsuitable or blue light adjustment is not required, and an objective of vision protection without affecting user experience is achieved.

FIG. 3is a flowchart of a blue light adjustment method according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiment shown inFIG. 2. As shown inFIG. 3, step102further includes the following steps.

Step1021: The terminal determines a first adjustment parameter according to the monitoring parameter.

Step1023: The terminal sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel, and a preset rule corresponding to the duration includes that a value of the duration is greater than a preset duration threshold.

It should be noted that the terminal may determine the first adjustment parameter according to one or more monitoring parameters, that is, the terminal may determine the first adjustment parameter according to one monitoring parameter or may determine the first adjustment parameter according to multiple monitoring parameters. A specific quantity of monitoring parameters used as a basis for determining the first adjustment parameter may be set according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. The following describes how to determine the first adjustment parameter using duration as an example.

For ease of description, A is used to represent the first adjustment parameter, and a value range of A is 0<A<1. Pin(x) represents the original blue light output value of the to-be-adjusted pixel, and Pout(x) represents the blue light output value of the to-be-adjusted pixel.

Optionally, Table 1 lists a correspondence between the duration and A. The correspondence is merely an example. In an actual product design process, another correspondence may be set according to an actual requirement.

In this case, the terminal may set the blue light output value of the to-be-adjusted pixel using a formula 1, that is, Pout(x)=A*Pin(x) such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. It should be noted that the formula 1 is merely an example. In an actual product design process, a formula 1 in another form may be set according to an actual requirement, provided that the formula 1 can enable the blue light output value to be less than the original blue light output value of the to-be-adjusted pixel.

According to the blue light adjustment method provided in this embodiment of the present disclosure, the terminal determines the first adjustment parameter according to the monitoring parameter, and then the terminal sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. Therefore, the terminal can intelligently perform blue light adjustment on the screen of the terminal according to the monitoring parameter, and an objective of vision protection without affecting user experience is achieved.

FIG. 4is a flowchart of a blue light adjustment method according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiments shown inFIG. 1,FIG. 2, andFIG. 3. As shown inFIG. 4, a flowchart implemented based on the embodiment inFIG. 3is provided. After step1021, the method further includes the following step.

Step1022: The terminal determines a second adjustment parameter according to the first adjustment parameter.

Correspondingly, step1023is replaced with step1024. Step1024includes that the terminal sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

For ease of description, G is used to represent the second adjustment parameter, and a value range of G is 1<G<10.

Optionally, Table 2 lists a correspondence between G and A. The correspondence is merely an example. In an actual product design process, another correspondence may be set according to an actual requirement.

In this case, the terminal may set the blue light output value of the to-be-adjusted pixel using a formula 2, that is, Pout(x)=A*Pin(x)+A*Pin(x)*(1−Pin(x)1/G) such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel and in addition, the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller. It should be noted that the formula 2 is merely an example, for example, a formula in a form of an ellipse, an exponent, or a hyperbola may also be used. In an actual product design process, a formula in another form may be set according to an actual requirement, provided that the formula 2 can enable the blue light output value to be less than the original blue light output value of the to-be-adjusted pixel and in addition, the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller. Because the screen of the terminal is less harmful to the eye of the user when the original blue light output value of the to-be-adjusted pixel is smaller, in this case, the blue light output value of the to-be-adjusted pixel does not need to be adjusted too much, but a display effect of the to-be-adjusted pixel needs to be ensured.

Referring toFIG. 5,FIG. 5is a schematic diagram of three types of blue light output values of a pixel when A=0.7 and G=4.2. The three types of output values are an original blue light output value of the pixel, a blue light output value obtained after adjustment is performed according to a formula 1, and a blue light output value obtained after adjustment is performed according to a formula 2.FIG. 5can visually depict a display effect of a to-be-adjusted pixel on a screen of a terminal after the terminal performs adjustment according to the first adjustment parameter and the second adjustment parameter, that is, the terminal may enable a blue light output value to be closer to an original blue light output value of the pixel when the screen of the terminal is in low light such that a display effect of the pixel is first ensured when less harm is caused to vision, and a user's user experience with the terminal is effectively improved.

According to the blue light adjustment method provided in this embodiment of the present disclosure, the terminal determines the first adjustment parameter according to the monitoring parameter, and then the terminal determines the second adjustment parameter according to the first adjustment parameter, and finally the terminal sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller, a display effect of the pixel is first ensured when less harm is caused to vision, and a user's user experience with the terminal is effectively improved.

FIG. 6is a flowchart of a blue light adjustment method according to yet another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiments shown inFIG. 1andFIG. 2. As shown inFIG. 6, a flowchart implemented based on the embodiment inFIG. 2is provided. Step102is replaced with step1026, and step1026includes that when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, the terminal sets the blue light output value of the to-be-adjusted pixel according to a preset third adjustment parameter, so that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

For example, when identifying, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the screen of the terminal, the terminal may directly set a blue light output value of the to-be-adjusted pixel to a fixed value, for example, set the blue light output value of the to-be-adjusted pixel to 128.

According to the blue light adjustment method provided in this embodiment of the present disclosure, after identifying the to-be-adjusted pixel, the terminal directly sets the blue light output value of the to-be-adjusted pixel using the preset third adjustment parameter. Therefore a calculation step is not required, blue light adjustment of the to-be-adjusted pixel can be quickly completed, and an objective of vision protection without affecting user experience is achieved.

The following method shown inFIG. 7AandFIG. 7Buses the duration and the ambient light luminance as an example and provides a detailed flowchart of a blue light adjustment method according to an embodiment of the present disclosure.

Step701: A screen of a terminal is wakened.

Step702: The terminal acquires a value of ambient light luminance.

Step703: Determine whether the acquired value of the ambient light luminance is less than a preset ambient light threshold, and if a result of the determining is yes, perform step704, or if a result of the determining is no, skip subsequent adjustment steps and directly perform step712, in which the screen of the terminal displays the to-be-adjusted pixel according to the blue light output value.

Step704: Acquire a value of duration when the screen of the terminal is awake.

Step705: Determine whether the acquired value of the duration is greater than a preset duration threshold, if a result of the determining is yes, perform step706, or if a result of the determining is no, skip subsequent adjustment steps and directly perform step712, in which the screen of the terminal displays the to-be-adjusted pixel according to the blue light output value.

Step706: Determine a first adjustment parameter according to the value of the duration.

Step707: Determine a second adjustment parameter according to the first adjustment parameter.

Step708: The terminal sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter.

Step709: Monitor an application program currently running on a foreground of the terminal.

Step710: Determine whether the application program is in a preset application program list, if a result of the determining is yes, perform step711, or if a result of the determining is no, perform step712.

Step711: Set the blue light output value to an original blue light output value of the to-be-adjusted pixel.

Step712: The screen of the terminal displays the to-be-adjusted pixel according to the blue light output value.

It should be noted that the blue light output value herein may be the original blue light output value, or may be an adjusted blue light output value. If step711is performed in this method, the blue light output value herein is the adjusted blue light output value, or if step711is not performed in this method, the blue light output value herein is the original blue light output value.

Step713: Determine whether the screen of the terminal is lighted out, if a result of the determining is yes, perform step714, or if a result of the determining is no, perform step702.

It should be noted that a detailed procedure shown inFIG. 7AandFIG. 7Bis merely an example, and in specific implementation, some steps may be added or omitted according to an actual requirement, or a sequence for executing the steps may be changed, and this embodiment of the present disclosure does not impose a specific limitation.

FIG. 8is a schematic structural diagram of a blue light adjustment apparatus according to an embodiment of the present disclosure. As shown inFIG. 8, the blue light adjustment apparatus includes a monitoring parameter acquiring module81, a blue light setting module82, a display module83, and a storage module84.

The monitoring parameter acquiring module81is configured to acquire values of one or more monitoring parameters.

Optionally, the one or more monitoring parameters include duration, and the duration indicates a time length of a continuous awake state of the display module83. The continuous awake state refers to that the display module83is in a continuous lighted-up state, that is, the display module83is not lighted out during a period in which the display module83is in a lighted-up state. In specific implementation, a timer may be provided on the apparatus. The timer starts timing when the display module83is wakened, and the timer stops timing when the display module83is lighted out. A duration value obtained by the timer by performing timing in a period from starting timing to stopping timing is set as a value of the duration. After the display module83is lighted out, the duration value is cleared, and when the display module83is wakened again, the timer re-calculates a time length of continuous operation of the display module83, or may calculate a value of the duration in another manner. This embodiment of the present disclosure does not impose a specific limitation.

Optionally, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as ambient light luminance, a distance between an eye of a user and the display module83, system time of the apparatus, a quantity of times the eye of the user closes per unit time, a motion status of the apparatus, or an original blue light output value of a to-be-adjusted pixel displayed on the display module83.

For example, the one or more monitoring parameters may include the duration, or the ambient light luminance, or the distance between the eye of the user and the display module83, or the system time of the apparatus, or the quantity of times the eye of the user closes per unit time, or the motion status of the apparatus, or the original blue light output value of the to-be-adjusted pixel displayed on the display module83, or the one or more monitoring parameters may include the duration and the ambient light luminance, or the one or more monitoring parameters may include the duration and the distance between the eye of the user and the display module83, or the one or more monitoring parameters may include the duration and the system time of the apparatus, or the one or more monitoring parameters may include the duration and the quantity of times the eye of the user closes per unit time, or the one or more monitoring parameters may include the duration and the motion status of the apparatus, or the one or more monitoring parameters may include the duration and the original blue light output value of the to-be-adjusted pixel displayed on the display module83. No more examples are provided herein.

The blue light setting module82is configured for the apparatus to set, when a value, of at least one of the monitoring parameters, acquired by the monitoring parameter acquiring module81meets a preset rule that corresponds to the monitoring parameter and stored in the storage module84, a blue light output value of the to-be-adjusted pixel according to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

Optionally, when the one or more monitoring parameters include the duration, a preset rule corresponding to the duration includes that a value of the duration is greater than a preset duration threshold. The preset duration threshold is a duration value preset on the apparatus, and the preset duration threshold may be set to a preferred duration value obtained by performing an experimental test, or an interface for editing the preset duration threshold may be provided on the apparatus such that the user can set or modify the preset duration threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the ambient light luminance, a preset rule corresponding to the ambient light luminance includes that an acquired value of the ambient light luminance is less than a preset ambient light threshold. The preset ambient light threshold is an ambient light luminance value preset on the apparatus, and the preset ambient light threshold may be set to a preferred ambient light luminance value obtained by performing an experimental test, or an interface for editing the preset ambient light threshold may be provided on the apparatus such that the user can set or modify the preset ambient light threshold on the editing interface. A specific implementation manner to be used may be further defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the distance between the eye of the user and the display module83, a preset rule corresponding to the distance between the eye of the user and the display module83includes that an acquired value of the distance between the eye of the user and the display module83is less than a preset distance threshold. The preset distance threshold is a distance value preset on the apparatus, and the preset distance threshold may be set to a preferred distance value obtained by performing an experimental test, or an interface for editing the preset distance threshold may be provided on the apparatus such that the user can set or modify the preset distance threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the system time, a preset rule corresponding to the system time includes that the acquired system time is within the preset time period. The preset time period includes a time period preset by the user or a sunset time period acquired by the apparatus from a network. That is, the preset time period may be the time period preset by the user on the apparatus, and the preset time period may be set to a preferred time period obtained by performing an experimental test, or an interface for editing the preset time period may be provided on the terminal such that the user can set or modify the preset time period on the editing interface, or the preset time period may be the sunset time period acquired by the apparatus from the network, and the apparatus periodically connects to the network to acquire an updated sunset time period. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the quantity of times the eye of the user closes per unit time, a preset rule corresponding to the quantity of times the eye of the user closes per unit time includes that an acquired value of the quantity of times the eye of the user closes per unit time is greater than a preset threshold of eye closing times. The preset threshold of eye closing times is a value of eye closing times preset on the apparatus, and the preset threshold of eye closing times may be set to a preferred value of eye closing times obtained by performing an experimental test, or an interface for editing the preset threshold of eye closing times may be provided on the apparatus such that the user can set or modify the preset threshold of eye closing times on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the motion status of the apparatus, a preset rule corresponding to the motion status of the apparatus includes that an acquired motion status of the apparatus is a moving state. The apparatus may monitor the motion status of the apparatus using a sensor.

Optionally, when the one or more monitoring parameters include the original blue light output value of the to-be-adjusted pixel displayed on the display module83, a preset rule corresponding to the original blue light output value includes that the acquired original blue light output value is greater than a preset blue light threshold. The preset blue light threshold is a blue light value preset on the apparatus, and the preset blue light threshold may be set to a preferred blue light value obtained by performing an experimental test, or an interface for editing the preset blue light threshold may be provided on the apparatus such that the user can set or modify the preset blue light threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

It should be noted that, when the one or more monitoring parameters include two or more monitoring parameters, after acquiring values of the two or more monitoring parameters, the apparatus needs to determine whether the values of the two or more monitoring parameters meet preset rules corresponding to the monitoring parameters, and when one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter (it is not required that the values of all the monitoring parameters meet the preset rules corresponding to the monitoring parameters), the apparatus sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter. There may be multiple specific implementation manners. For example, the apparatus may first acquire the values of all the monitoring parameters, and then compare the acquired values with the preset rules one by one, that is, first acquire the values of all the monitoring parameters, and then perform a comparison operation between an acquired value of a monitoring parameter and a preset rule, and provided that one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, the apparatus sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, or the terminal may perform a comparison operation after acquiring a value of one monitoring parameter, that is, acquire the values of the monitoring parameters according to a priority order, and after acquiring a value of one monitoring parameter, perform a comparison operation between the acquired value of the monitoring parameter and a preset rule, and when the acquired value of the monitoring parameter meets the preset rule, stop acquiring and performing a comparison operation on a value of a remaining monitoring parameter, and the apparatus sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, and in this way, the blue light output value of the to-be-adjusted pixel is set provided that a value of one monitoring parameter meets a preset rule, without a need to acquire all the monitoring parameters, and also without a need to complete comparison operations between all the monitoring parameters and the preset rules, and therefore the apparatus can quickly adjust blue light of a to-be-adjusted pixel, which effectively reduces resource consumption of the apparatus.

The display module83is configured to display the to-be-adjusted pixel according to the blue light output value set by the blue light setting module82.

It should be noted that when the display module83displays a pixel, not only blue light is included, but also light in another color is included. The light in another color is irrelevant to this embodiment of the present disclosure, and therefore only blue light is mentioned when a specific solution is described and description of the light in another color is ignored.

Optionally, the to-be-adjusted pixel displayed on the display module83further includes all pixels displayed on the display module83, or some pixels displayed on the display module83.

The apparatus may adjust all pixels displayed on the display module83, or may identify some to-be-adjusted pixels displayed on the display module83, adjust the to-be-adjusted pixels, and display another pixel according to an original value. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. For example, the apparatus identifies, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the display module83.

The storage module84is configured to store the preset rule corresponding to the monitoring parameter.

According to the blue light adjustment apparatus provided in this embodiment of the present disclosure, the apparatus acquires the values of the one or more monitoring parameters, the apparatus sets, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the display module when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. The display module displays the to-be-adjusted pixel according to the blue light output value such that the apparatus can determine, according to the value of the monitoring parameter, whether to adjust blue light of the display module, and set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the display module, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

FIG. 9is a schematic structural diagram of a blue light adjustment apparatus according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiment shown inFIG. 8. As shown inFIG. 9, the apparatus further includes an application program monitoring module91configured to monitor an application program currently running on a foreground of the apparatus.

The storage module84is further configured to store a preset application program list.

The blue light setting module82is further configured to set the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program acquired by the application program monitoring module91is in the preset application program list stored in the storage module84or when none of the values, of the one or more monitoring parameters, acquired by the monitoring parameter acquiring module81meets the preset rule that corresponds to the monitoring parameter and that is stored in the storage module84.

It should be noted that the preset application program list is stored in the storage module84of the apparatus, and an application program that has a relatively high pixel output quality requirement is stored in this preset application program list, for example, a video player or a photo player.

The blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped when the application program is in the preset application program list stored in the storage module84.

When none of the values of the monitoring parameters meets the preset rule that corresponds to the monitoring parameter and that is stored in the storage module84, the blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped.

According to the blue light adjustment apparatus provided in this embodiment of the present disclosure, a condition for stopping blue light adjustment is set, and the apparatus automatically determines whether blue light adjustment needs to be stopped such that the apparatus can intelligently stop blue light adjustment when blue light adjustment is unsuitable or blue light adjustment is not required, and an objective of vision protection without affecting user experience is achieved.

FIG. 10is a schematic structural diagram of a blue light adjustment apparatus according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiment shown inFIG. 9. As shown inFIG. 10, the blue light setting module includes a first adjustment parameter determining unit821configured to determine a first adjustment parameter according to the monitoring parameter acquired by the monitoring parameter acquiring module81, and a blue light setting unit823configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter determined by the first adjustment parameter determining unit821such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

It should be noted that the apparatus may determine the first adjustment parameter according to one or more monitoring parameters, that is, the apparatus may determine the first adjustment parameter according to one monitoring parameter or may determine the first adjustment parameter according to multiple monitoring parameters. A specific quantity of monitoring parameters used as a basis for determining the first adjustment parameter may be set according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. Duration is used as an example to describe a detailed procedure for setting the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter. For details, reference may be made to the method embodiments, and details are not described herein.

According to the blue light adjustment apparatus provided in this embodiment of the present disclosure, the apparatus determines the first adjustment parameter according to the monitoring parameter and then the apparatus sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. Therefore, the apparatus can intelligently perform blue light adjustment on the display module according to the monitoring parameter, and an objective of vision protection without affecting user experience is achieved.

FIG. 11is a schematic structural diagram of a blue light adjustment apparatus according to another embodiment of the present disclosure. This embodiment of the present disclosure is implemented based on the embodiments shown inFIG. 8,FIG. 9, andFIG. 10. As shown inFIG. 11, a flowchart implemented based on the embodiment inFIG. 10is provided. The blue light setting module further includes a second adjustment parameter determining unit822configured to determine a second adjustment parameter according to the first adjustment parameter determined by the first adjustment parameter determining unit821.

The blue light setting unit823is further configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter determined by the first adjustment parameter determining unit821and the second adjustment parameter determined by the second adjustment parameter determining unit822such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller. Duration is used as an example to describe a detailed procedure for setting the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter. For details, reference may be made to the method embodiments, and details are not described herein.

According to the blue light adjustment apparatus provided in this embodiment of the present disclosure, the apparatus determines the first adjustment parameter according to the monitoring parameter, and then the apparatus determines the second adjustment parameter according to the first adjustment parameter, and finally the apparatus sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller, and a display effect of the pixel is first ensured when less harm is caused to vision.

Referring to the schematic structural diagram of the blue light adjustment apparatus implemented in the embodiment ofFIG. 8, the storage module84is further configured to store a preset third adjustment parameter, and the blue light setting module82is further configured to set the blue light output value of the to-be-adjusted pixel according to the preset third adjustment parameter stored in the storage module84such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

It should be noted that, when identifying, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the display module83, the apparatus may directly set a blue light output value of the to-be-adjusted pixel to a fixed value, for example, set the blue light output value of the to-be-adjusted pixel to 128.

According to the blue light adjustment apparatus provided in this embodiment of the present disclosure, after identifying the to-be-adjusted pixel, the apparatus directly sets the blue light output value of the to-be-adjusted pixel using the preset third adjustment parameter. Therefore a calculation step is not required, blue light adjustment of the to-be-adjusted pixel can be quickly completed, and an objective of vision protection without affecting user experience is achieved.

The apparatus provided in this embodiment of the present disclosure may be configured to perform the procedure of the blue light adjustment method shown inFIG. 7AandFIG. 7B, and details of a specific operation procedure of the apparatus are not described herein. For details, reference may be made to description of the method embodiment.

FIG. 12is a schematic structural diagram of a blue light adjustment terminal according to an embodiment of the present disclosure.

The blue light adjustment terminal provided in this embodiment of the present disclosure may be a fixed terminal, for example, a desktop computer or a television, or may be a mobile terminal, for example, a tablet computer or a mobile phone, or may even be a projector or a wearable device, for example, a GOOGLE GLASS.

The terminal120includes a display apparatus121, a monitoring parameter acquiring apparatus122, a memory123, a processor124, and a bus system125.

The display apparatus121may be an appropriate apparatus such as a cathode ray tube (CRT) display screen, a liquid crystal display (LCD) screen, or a touch display screen, and receives an instruction using the bus system125in order to present a graphical user interface on a screen of the display screen.

In addition, the memory123may include a random access memory (RAM), a read-only memory (ROM), any fixed storage medium, or a mobile storage medium, and is configured to store a program that can execute this embodiment of the present disclosure or store data of this embodiment of the present disclosure.

The processor124is configured to execute the program for this embodiment of the present disclosure that is stored in the memory123and perform two-way communication with another apparatus using the bus system125.

The memory123and the processor124may be integrated into a physical module in which this embodiment of the present disclosure is applied, where the program for implementing this embodiment of the present disclosure is stored and operates on the physical module.

All components of the terminal120are coupled together using the bus system125, where the bus system125may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for clarity of description, all types of buses are marked as the bus system125inFIG. 12.

In this embodiment of the present disclosure, the monitoring parameter acquiring apparatus122is configured to acquire values of one or more monitoring parameters.

Optionally, the one or more monitoring parameters include duration, and the duration indicates a time length of a continuous awake state of the display apparatus121. The continuous awake state refers to that the display apparatus121is in a continuous lighted-up state, that is, the display apparatus121is not lighted out during a period in which the display apparatus121is in a lighted-up state. In specific implementation, a timer may be provided on the apparatus. The timer starts timing when the display apparatus121is wakened, and the timer stops timing when the display apparatus121is lighted out. A duration value obtained by the timer by performing timing in a period from starting timing to stopping timing is set as a value of the duration. After the display apparatus121is lighted out, the duration value is cleared, and when the display apparatus121is wakened again, the timer re-calculates a time length of continuous operation of the display apparatus121, or may calculate a value of the duration in another manner. This embodiment of the present disclosure does not impose a specific limitation.

Optionally, the one or more monitoring parameters include one or a combination of more than one of the following parameters, such as ambient light luminance, a distance between an eye of a user and the display apparatus121, system time of the terminal120, a quantity of times the eye of the user closes per unit time, a motion status of the terminal120, or an original blue light output value of a to-be-adjusted pixel displayed on the display apparatus121.

For example, the one or more monitoring parameters may include the duration, or the ambient light luminance, or the distance between the eye of the user and the display apparatus121, or the system time of the terminal120, or the quantity of times the eye of the user closes per unit time, or the motion status of the terminal120, or the original blue light output value of the to-be-adjusted pixel displayed on the display apparatus121, or the one or more monitoring parameters may include the duration and the ambient light luminance of the terminal120, or the one or more monitoring parameters may include the duration and the distance between the eye of the user and the display apparatus121, or the one or more monitoring parameters may include the duration and the system time of the terminal120, or the one or more monitoring parameters may include the duration and the quantity of times the eye of the user closes per unit time, or the one or more monitoring parameters may include the duration and the motion status of the terminal120, or the one or more monitoring parameters may include the duration and the original blue light output value of the to-be-adjusted pixel displayed on the display apparatus121. No more examples are provided herein.

The processor124is configured to set, when a value, of at least one of the monitoring parameters, acquired by the monitoring parameter acquiring apparatus122meets a preset rule corresponding to the monitoring parameter, a blue light output value of the to-be-adjusted pixel according to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel, and a preset rule corresponding to the duration includes that a value of the duration is greater than a preset duration threshold.

It should be noted that, if a screen of the terminal120uses hardware with adjustable backlight, blue light output of a to-be-adjusted pixel may be adjusted by adjusting a backlight source. In this way, adjustment may be performed on a light source that emits light, which may reduce power consumption of the terminal120. Certainly, a filter of the terminal120may be enabled to adjust blue light output of a to-be-adjusted pixel, and this manner is more flexible, more careful, and easy to implement, and an adjustment result may be accurate to a specific pixel.

Optionally, the to-be-adjusted pixel displayed on the display apparatus121of the terminal120further includes all pixels displayed on the display apparatus121of the terminal120, or some pixels displayed on the display apparatus121of the terminal120.

The terminal120may adjust all pixels displayed on the display apparatus121, or may identify some to-be-adjusted pixels displayed on the display apparatus121, adjust the to-be-adjusted pixels, and display another pixel according to an original value. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. For example, the terminal120identifies, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the screen of the terminal120.

Optionally, when the one or more monitoring parameters include the duration, a preset rule corresponding to the duration includes that a value of the duration is greater than a preset duration threshold. The preset duration threshold is a duration value preset on the terminal120, and the preset duration threshold may be set to a preferred duration value obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset duration threshold may be provided on the terminal120such that the user can set or modify the preset duration threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the ambient light luminance, a preset rule corresponding to the ambient light luminance includes that an acquired value of the ambient light luminance is less than a preset ambient light threshold. The preset ambient light threshold is an ambient light luminance value preset on the apparatus, and the preset ambient light threshold may be set to a preferred ambient light luminance value obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset ambient light threshold may be provided on the terminal120such that the user can set or modify the preset ambient light threshold on the editing interface. A specific implementation manner to be used may be further defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the distance between the eye of the user and the display apparatus121, a preset rule corresponding to the distance between the eye of the user and the display apparatus121includes that an acquired value of the distance between the eye of the user and the display apparatus121is less than a preset distance threshold. The preset distance threshold is a distance value preset on the terminal120, and the preset distance threshold may be set to a preferred distance value obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset distance threshold may be provided on the terminal120such that the user can set or modify the preset distance threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the system time, a preset rule corresponding to the system time includes that the acquired system time is within the preset time period. The preset time period includes a time period preset by the user or a sunset time period acquired by the terminal120from a network. That is, the preset time period may be the time period preset by the user on the terminal120, and the preset time period may be set to a preferred time period obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset time period may be provided on the terminal120such that the user can set or modify the preset time period on the editing interface, or the preset time period may be the sunset time period acquired by the terminal120from the network, and the terminal120periodically connects to the network to acquire an updated sunset time period. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the quantity of times the eye of the user closes per unit time, a preset rule corresponding to the quantity of times the eye of the user closes per unit time includes that an acquired value of the quantity of times the eye of the user closes per unit time is greater than a preset threshold of eye closing times. The preset threshold of eye closing times is a value of eye closing times preset on the terminal120, and the preset threshold of eye closing times may be set to a preferred value of eye closing times obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset threshold of eye closing times may be provided on the terminal120such that the user can set or modify the preset threshold of eye closing times on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

Optionally, when the one or more monitoring parameters include the motion status of the terminal120, a preset rule corresponding to the motion status of the terminal120includes that an acquired motion status of the terminal120is a moving state. The terminal120may monitor the motion status of the terminal120using a sensor.

Optionally, when the one or more monitoring parameters include the original blue light output value of the to-be-adjusted pixel displayed on the display apparatus121, a preset rule corresponding to the original blue light output value includes that the acquired original blue light output value is greater than a preset blue light threshold. The preset blue light threshold is a blue light value preset on the terminal120, and the preset blue light threshold may be set to a preferred blue light value obtained by performing an experimental test and may be set before the terminal120is delivered, or an interface for editing the preset blue light threshold may be provided on the apparatus such that the user can set or modify the preset blue light threshold on the editing interface. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation.

It should be noted that, when the one or more monitoring parameters include two or more monitoring parameters, after acquiring values of the two or more monitoring parameters, the terminal120needs to determine whether the values of the two or more monitoring parameters meet preset rules corresponding to the monitoring parameters, and when one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter (it is not required that the values of all the monitoring parameters meet the preset rules corresponding to the monitoring parameters), the terminal120sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter. There may be multiple specific implementation manners. For example, the terminal120may first acquire the values of all the monitoring parameters, and then compare the acquired values with the preset rules one by one, that is, first acquire the values of all the monitoring parameters, and then perform a comparison operation between an acquired value of a monitoring parameter and a preset rule, and provided that one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, the apparatus sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, or the terminal120may perform a comparison operation after acquiring a value of one monitoring parameter, that is, acquire the values of the monitoring parameters according to a priority order, and after acquiring a value of one monitoring parameter, perform a comparison operation between the acquired value of the monitoring parameter and a preset rule, and when the acquired value of the monitoring parameter meets the preset rule, stop acquiring and performing a comparison operation on a value of a remaining monitoring parameter, and the terminal120sets a blue light output value of a to-be-adjusted pixel according to the monitoring parameter, and in this way, the blue light output value of the to-be-adjusted pixel is set provided that a value of one monitoring parameter meets a preset rule, without a need to acquire all the monitoring parameters, and also without a need to complete comparison operations between all the monitoring parameters and the preset rules, and therefore the terminal120can quickly adjust blue light of a to-be-adjusted pixel, which effectively reduces resource consumption of the terminal120.

The display apparatus121is configured to display the to-be-adjusted pixel according to the blue light output value set by the processor124.

It should be noted that when the display apparatus121displays a pixel, not only blue light is included, but also light in another color is included. The light in another color is irrelevant to this embodiment of the present disclosure, and therefore only blue light is mentioned when a specific solution is described and description of the light in another color is ignored.

Optionally, the to-be-adjusted pixel displayed on the display apparatus121further includes all pixels displayed on the display apparatus121, or some pixels displayed on the display apparatus121.

The apparatus may adjust all pixels displayed on the display apparatus121, or may identify some to-be-adjusted pixels displayed on the display apparatus121, adjust the to-be-adjusted pixels, and display another pixel according to an original value. A specific implementation manner to be used may be defined according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. For example, the terminal120identifies, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the display apparatus121.

The memory123is configured to store the preset rule corresponding to the monitoring parameter.

According to the blue light adjustment terminal120provided in this embodiment of the present disclosure, the terminal120acquires the values of the one or more monitoring parameters, and the terminal120sets, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the display apparatus121when a value of at least one of the monitoring parameters meets a preset rule corresponding to the monitoring parameter, where the blue light output value is less than the original blue light output value of the to-be-adjusted pixel, the display apparatus121displays the to-be-adjusted pixel according to the blue light output value such that the terminal120can determine, according to the value of the monitoring parameter, whether to adjust blue light of the display apparatus121, and set, according to the monitoring parameter, the blue light output value of the to-be-adjusted pixel displayed on the display apparatus121, and therefore the blue light can be adjusted intelligently, and an objective of vision protection without affecting user experience is achieved.

Optionally, the memory123is further configured to store a preset application program list, and the processor124is further configured to monitor an application program currently running on a foreground of the terminal120, and set the blue light output value to the original blue light output value of the to-be-adjusted pixel when the application program is in the preset application program list stored in the memory123or when none of the values, of the one or more monitoring parameters, acquired by the monitoring parameter acquiring apparatus122meets the preset rule corresponding to the monitoring parameter.

It should be noted that the preset application program list is stored in the memory123, and an application program that has a relatively high pixel output quality requirement is stored in this preset application program list, for example, a video player or a photo player.

When the application program is in the preset application program list stored in the memory123, the blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped.

When none of the values of the monitoring parameters meets the preset rule that corresponds to the monitoring parameter and that is stored in the memory123, the blue light output value is set to the original blue light output value of the to-be-adjusted pixel, that is, adjustment on blue light of the to-be-adjusted pixel is stopped.

According to the blue light adjustment terminal120provided in this embodiment of the present disclosure, a condition for stopping blue light adjustment is set, and the terminal120automatically determines whether blue light adjustment needs to be stopped such that the terminal120can intelligently stop blue light adjustment when blue light adjustment is unsuitable or blue light adjustment is not required, and an objective of vision protection without affecting user experience is achieved.

Optionally, the processor124is configured to determine a first adjustment parameter according to the monitoring parameter, and set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

It should be noted that the terminal120may determine the first adjustment parameter according to one or more monitoring parameters, that is, the terminal120may determine the first adjustment parameter according to one monitoring parameter or may determine the first adjustment parameter according to multiple monitoring parameters. A specific quantity of monitoring parameters used as a basis for determining the first adjustment parameter may be set according to an actual requirement, and this embodiment of the present disclosure does not impose a specific limitation. Duration is used as an example to describe a detailed procedure for setting the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter. For details, reference may be made to the method embodiments, and details are not described herein.

According to the blue light adjustment terminal120provided in this embodiment of the present disclosure, the terminal120determines the first adjustment parameter according to the monitoring parameter, and then the terminal120sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel. Therefore, the terminal120can intelligently perform blue light adjustment on the screen of the terminal120according to the monitoring parameter, and an objective of vision protection without affecting user experience is achieved.

Optionally, the processor124is further configured to determine a second adjustment parameter according to the first adjustment parameter, and the processor124is further configured to set the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller. Duration is used as an example to describe a detailed procedure for setting the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter. For details, reference may be made to the method embodiments, and details are not described herein.

According to the blue light adjustment terminal120provided in this embodiment of the present disclosure, the terminal120determines the first adjustment parameter according to the monitoring parameter, and then the terminal120determines the second adjustment parameter according to the first adjustment parameter, and finally the terminal120sets the blue light output value of the to-be-adjusted pixel according to the first adjustment parameter and the second adjustment parameter such that the blue light output value of the to-be-adjusted pixel is closer to the original blue light output value of the to-be-adjusted pixel when the original blue light output value of the to-be-adjusted pixel is smaller, and a display effect of the pixel is first ensured when less harm is caused to vision.

Optionally, the memory123is further configured to store a preset third adjustment parameter, and the processor124is further configured to set the blue light output value of the to-be-adjusted pixel according to the preset third adjustment parameter such that the blue light output value is less than the original blue light output value of the to-be-adjusted pixel.

It should be noted that, when identifying, as a to-be-adjusted pixel, a pixel in a text (a black text on a white background, or a white text on a black background) area displayed on the display apparatus121, the terminal120may directly set a blue light output value of the to-be-adjusted pixel to a fixed value, for example, set the blue light output value of the to-be-adjusted pixel to 128.

According to the blue light adjustment terminal120provided in this embodiment of the present disclosure, after identifying the to-be-adjusted pixel, the terminal120directly sets the blue light output value of the to-be-adjusted pixel using the preset third adjustment parameter. Therefore a calculation step is not required, blue light adjustment of the to-be-adjusted pixel can be quickly completed, and an objective of vision protection without affecting user experience is achieved.

Hardware of the terminal120in this embodiment of the present disclosure may be configured to perform the procedure of the blue light adjustment method shown inFIG. 7AandFIG. 7B, and details of a specific operation procedure of the terminal120are not described herein. For details, reference may be made to description of the method embodiment.

Persons of ordinary skill in the art may understand that all or some of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The program may be stored in a computer-readable storage medium. The steps of the method embodiments are performed when the program runs. The foregoing storage medium includes any medium that can store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.