CN104934016B - Screen display method and device - Google Patents

Screen display method and device Download PDF

Info

Publication number
CN104934016B
CN104934016B CN201510233167.7A CN201510233167A CN104934016B CN 104934016 B CN104934016 B CN 104934016B CN 201510233167 A CN201510233167 A CN 201510233167A CN 104934016 B CN104934016 B CN 104934016B
Authority
CN
China
Prior art keywords
value
brightness
color channel
pixel
regulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510233167.7A
Other languages
Chinese (zh)
Other versions
CN104934016A (en
Inventor
左景龙
范金松
李远洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510233167.7A priority Critical patent/CN104934016B/en
Publication of CN104934016A publication Critical patent/CN104934016A/en
Application granted granted Critical
Publication of CN104934016B publication Critical patent/CN104934016B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure is directed to a kind of screen display method and device, belong to field of terminal technology.Method includes:Obtain the brightness value of three Color Channels of each pixel on display screen;For any pixel point, if the luminance difference in three Color Channels of pixel between any two Color Channel is more than the first default value, the brightness value of each Color Channel of pixel is adjusted using the first preset algorithm;If the luminance difference in three Color Channels of pixel between any two Color Channel is less than the first default value, the brightness value of each Color Channel of pixel is adjusted using the second preset algorithm;Screen display is carried out based on the brightness value after regulation.Brightness value of the disclosure for three Color Channels of each pixel; it is adjusted in different ways; so that the display screen after regulation can keep original color effect, it is unlikely to excessive with the contrast of surrounding environment again, so as to be effectively protected the eyesight of user.

Description

Screen display method and device
Technical field
This disclosure relates to field of terminal technology, more particularly to a kind of screen display method and device.
Background technology
In the modern life, the terminal with display screen has turned into part essential in people's life.For Alleviate the intense strain of work one day, after light of many users in bedroom is closed, be accustomed to browsing in terminal webpage, Read electronic books, viewing video, chat etc..However, due to now indoor dark, and the light on terminal display Line is brighter, strong luminance contrast, can aggravate the regulation burden of eyes, and then causes deteriorating vision.In order to solve the above problems, The brightness of terminal display can be suitably adjusted, to reduce the difference of the brightness of terminal display and indoor environment brightness, is entered And carry out screen display according to the brightness value after regulation.
The content of the invention
To overcome problem present in correlation technique, the disclosure provides a kind of screen display method and device.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of screen display method, methods described include:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, judge bright between any two Color Channel in three Color Channels of the pixel Whether degree difference is more than the first default value;
If luminance difference in three Color Channels of the pixel between any two Color Channel is more than described the One default value, the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithm, obtains institute State the brightness value after pixel regulation;
If luminance difference in three Color Channels of the pixel between any two Color Channel is less than described the One default value, the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithm, obtains institute State the brightness value after pixel regulation;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
Alternatively, it is described to obtain on display screen before the brightness value of three Color Channels of each pixel, in addition to:
Monitor whether the luminance difference between the display screen and current environment is more than the second default value;
When the luminance difference between the display screen and current environment is more than second default value, generation brightness is adjusted Section instruction;
Instructed based on the brightness regulation, perform three Color Channels of each pixel on the acquisition display screen The step of brightness value.
Alternatively, it is described that the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithm Section, the brightness value after the pixel regulation is obtained, including:
Using the first preset algorithm, the brightness value of each Color Channel of the pixel is reduced into identical multiple, obtained The brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.
Alternatively, it is described that the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithm Section, the brightness value after the pixel regulation is obtained, including:
Using second preset algorithm, the brightness regulation value regulation of each Color Channel of the pixel is arrived and specified Brightness range, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is described The minimum value of given luminance scope, b are the maximum of the given luminance scope.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of screen display device, described device include:
Acquisition module, for obtaining the brightness value of three Color Channels of each pixel on display screen;
Judge module, for for any pixel point, judging any two face in three Color Channels of the pixel Whether the luminance difference between chrominance channel is more than the first default value;
First adjustment module, for when bright between any two Color Channel in three Color Channels of the pixel When degree difference is more than first default value, the brightness value using the first preset algorithm to each Color Channel of the pixel It is adjusted, obtains the brightness value after the pixel regulation;
Second adjustment module, for when bright between any two Color Channel in three Color Channels of the pixel When degree difference is less than first default value, the brightness value using the second preset algorithm to each Color Channel of the pixel It is adjusted, obtains the brightness value after the pixel regulation;
Display module, for when all pixels point is through overregulating, screen display to be carried out based on the brightness value after regulation.
Alternatively, described device also includes:
Monitoring modular, for monitoring whether the luminance difference between the display screen and current environment is more than the second present count Value;
Directive generation module, for being preset when the luminance difference between the display screen and current environment is more than described second During numerical value, generation brightness regulation instruction;
The acquisition module, for being instructed based on the brightness regulation, perform each pixel on the acquisition display screen The step of brightness value of three Color Channels of point.
Alternatively, first adjustment module, specifically for using the first preset algorithm, by each face of the pixel The brightness value of chrominance channel reduces identical multiple, obtains the brightness regulation value of each Color Channel;Based on the bright of each Color Channel Regulated value is spent, obtains the brightness value after the pixel regulation.
Alternatively, first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.
Alternatively, second adjustment module, specifically for using second preset algorithm, by the every of the pixel Given luminance scope is arrived in the brightness regulation value regulation of individual Color Channel, obtains the brightness regulation value of each Color Channel;Based on every The brightness regulation value of individual Color Channel, obtain the brightness value after the pixel regulation.
Alternatively, second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is described The minimum value of given luminance scope, b are the maximum of the given luminance scope.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of screen display device, described device include:
Processor;
The instruction executable for storing processor;
Wherein, the processor is configured as:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, judge bright between any two Color Channel in three Color Channels of the pixel Whether degree difference is more than the first default value;
If luminance difference in three Color Channels of the pixel between any two Color Channel is more than described the One default value, the brightness value of each Color Channel of the pixel is adjusted using the first preset algorithm, obtains institute State the brightness value after pixel regulation;
If luminance difference in three Color Channels of the pixel between any two Color Channel is less than described the One default value, the brightness value of each Color Channel of the pixel is adjusted using the second preset algorithm, obtains institute State the brightness value after pixel regulation;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
The technical scheme provided by this disclosed embodiment can include the following benefits:
For the brightness value of three Color Channels of each pixel, it is adjusted in different ways so that regulation Display screen afterwards can keep original color effect, be unlikely to excessive with the contrast of surrounding environment again, so as to effectively Protect the eyesight of user.
It should be appreciated that the general description and following detailed description of the above are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and forms the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is a kind of flow chart of screen display method according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of screen display method according to an exemplary embodiment.
Fig. 3 is a kind of structural representation of screen display device according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of screen display device according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of screen display method according to an exemplary embodiment, as shown in figure 1, screen Display methods is used in terminal, comprises the following steps.
In a step 101, the brightness value of three Color Channels of each pixel on display screen is obtained.
In a step 102, for any pixel point, any two Color Channel in three Color Channels of pixel is judged Between luminance difference whether be more than the first default value.
In step 103, if the luminance difference in three Color Channels of pixel between any two Color Channel is big In the first default value, the brightness value of each Color Channel of pixel is adjusted using the first preset algorithm, obtains picture Brightness value after vegetarian refreshments regulation.
At step 104, if the luminance difference in three Color Channels of pixel between any two Color Channel is small In the first default value, the brightness value of each Color Channel of pixel is adjusted using the second preset algorithm, obtains picture Brightness value after vegetarian refreshments regulation.
In step 105, when all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
The method that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using difference Mode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environment Contrast it is excessive, so as to be effectively protected the eyesight of user.
In another embodiment of the disclosure, the brightness of three Color Channels of each pixel on display screen is obtained Before value, in addition to:
Whether the luminance difference between monitoring display screen and current environment is more than the second default value;
When the luminance difference between display screen and current environment is more than the second default value, generation brightness regulation instruction;
Instructed based on brightness regulation, perform and obtain the brightness value of three Color Channels of each pixel on display screen Step.
In another embodiment of the disclosure, using brightness of first preset algorithm to each Color Channel of pixel Value is adjusted, and obtains the brightness value after pixel regulation, including:
Using the first preset algorithm, the brightness value of each Color Channel of pixel is reduced into identical multiple, obtained each The brightness regulation value of Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.
In another embodiment of the disclosure, using brightness of second preset algorithm to each Color Channel of pixel Value is adjusted, and obtains the brightness value after pixel regulation, including:
Using the second preset algorithm, given luminance model is arrived into the brightness regulation value regulation of each Color Channel of pixel Enclose, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specified The minimum value of brightness range, b are the maximum of given luminance scope.
Above-mentioned all optional technical schemes, any combination can be used to form the alternative embodiment of the disclosure, herein no longer Repeat one by one.
Fig. 2 is a kind of flow chart of screen display method according to an exemplary embodiment, as shown in Fig. 2 screen Display methods is used in terminal, comprises the following steps.
In step 201, whether the luminance difference between terminal monitoring display screen and current environment is more than the second present count Value, if it is, step 202 is performed, if not, continuing to monitor.
Wherein, terminal is the equipment with display screen, e.g., smart mobile phone, tablet personal computer, TV, game machine etc., this reality Apply example and specific limit is not made to the type of terminal.Current environment refers generally to the environment residing for terminal, if user is closed in light The indoor using terminal closed, then current environment is indoor environment;If user's night is in outdoor application mobile phone, current environment Outdoor environment.Current environment can be the dark environment of brightness or the dark environment of brightness, and the present embodiment is to work as front ring Border is to illustrate exemplified by the dark environment of brightness.
When whether luminance difference of the terminal between monitoring display screen and current environment is more than the second default value, can first it obtain Take the brightness value that display screen is current, and obtain the brightness value of current environment, and by the brightness value of the display screen got with The brightness value of current environment is compared, and according to comparative result, determines whether is luminance difference between display screen and current environment More than the second default value.Wherein, the second default value can be 3cd/m2(candela/square metre), 5cd/m2、8cd/m2Deng, The present embodiment does not make specific limit to the size of the second default value.
In step 202, terminal generation brightness regulation instruction.
When monitoring that the luminance difference between the brightness of display screen and current environment is more than the second default value, illustrate now The display screen of terminal is excessively bright, it is necessary to the brightness of screen is dimmed, and to mitigate the regulation burden of eyes, avoids the eyes to user Damage.Therefore, terminal will generate a brightness regulation instruction, brightness regulation instruction can be used for terminal display Brightness dims.
In step 203, instructed based on brightness regulation, three colors that terminal obtains each pixel on display screen are led to The brightness value in road.
Based on brightness regulation instruction is got, under the triggering of brightness regulation instruction, terminal will be obtained on display screen The brightness value of three Color Channels of each pixel.Wherein, three Color Channels are that red (R) Color Channel, green (G) color are led to Road, indigo plant (B) Color Channel.R, each Color Channel of G, B is divided into 255 rank brightness values, and 0 rank brightness is most dark, and 255 rank brightness are most It is bright.When the brightness value of tri- Color Channels of R, G, B is identical, gray color is shown as, the gray color can be white, black or ash Color, specifically, if the brightness value of tri- Color Channels of R, G, B is 0 rank, black is shown as, if tri- colors of R, G, B When the brightness value of passage is 255 rank, white is shown as;When the brightness value difference of tri- Color Channels of R, G, B, coloured silk is shown as Color.
In step 204, for any pixel point, terminal judges any two face in three Color Channels of the pixel Whether the luminance difference between chrominance channel is more than the first default value, if it is, step 205 is performed, if it is not, then performing step 206。
In practical application, contrast of the contrast of white background, black background and gray background with respect to color background Degree is big, when indoor using terminal of the user in dark, white background, black background and gray background be more easy to The eyesight at family damages, and adopts and the pixel on display screen is handled in a like fashion, corresponding to color background The color that pixel is showed is more easy to distortion.Suffered damage in order to avoid the eyesight of user, while keep webpage, video, electronics The color effect of the background colours such as book, the present embodiment, which provides method, can be directed to each pixel, using different brightness adjustment approach Brightness to each pixel is adjusted.
Before being adjusted using brightness of the different brightness adjustment approach to each pixel, terminal is needed according to each The brightness value of three Color Channels of pixel carries out brightness judgement to each pixel, so as to according to judging that brightness results are Each pixel chooses corresponding regulative mode.Any pixel point being directed on display screen, when specifically judging, terminal needs First obtain the luminance difference between any two Color Channel in three Color Channels of the pixel, and then the luminance difference that will be obtained Compared with the first default value, according to comparative result, any two color in three Color Channels of the pixel is judged Whether the luminance difference between passage is more than the first default value.Wherein, when the first default value is that pixel shows as colour, three The minimum value of luminance difference in individual Color Channel between any two Color Channel, first default value can be 8cd/m2、 10cd/m2、16cd/m2Deng the present embodiment not specific restriction of size work to the first default value.
It should be noted that for any pixel point, any two in three Color Channels for calculating the pixel During brightness value between individual Color Channel, three luminance differences are can obtain, in three Color Channels for judge the pixel arbitrarily When whether the luminance difference between two Color Channels is more than the first default value, and if only if, and three luminance differences are simultaneously greater than first During default value, step 205 is performed;When any one in three luminance differences is less than the first default value, step 206 is performed.
In step 205, terminal is adjusted using the first preset algorithm to the brightness value of each Color Channel of pixel Section, obtain the brightness value after pixel regulation.
When the luminance difference between any two Color Channel in three Color Channels for judge the pixel is more than first During default value, illustrate that the color that the pixel is showed is colored and three Color Channels of the pixel brightness value difference It is larger, the brightness value of each Color Channel of the pixel can be now adjusted using the first preset algorithm.
When it is implemented, terminal can use the first preset algorithm, the brightness value of each Color Channel of pixel is reduced Identical multiple, obtain the brightness regulation value of each Color Channel, and then the brightness regulation value based on each Color Channel, pass through by The brightness regulation value of three Color Channels is overlapped, and obtains the brightness value after pixel regulation.Wherein, the first preset algorithm is such as Shown in following formula (1):
Yi=Xi/n (1);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.Certainly, the first preset algorithm can also have other forms, and the present embodiment no longer illustrates one by one.
It is adjusted by using the first preset algorithm, the brightness value after pixel regulation can be obtained.If for example, picture The brightness value X of the beauty chrominance channel of vegetarian refreshments1For 160cd/m2, green color passage brightness value X2For 240cd/m2, blue Color Channel Brightness value X3For 120cd/m2, the multiple of diminution is 4 times, then using the formula in above-mentioned (1), can obtain:
Y1=X1/ n=160/4=40cd/m2
Y2=X2/ n=240/4=60cd/m2
Y3=X3/ n=120/4=30cd/m2
By by the brightness regulation value of beauty chrominance channel obtained above, the brightness regulation value of green color passage and blue face The brightness regulation value of chrominance channel is overlapped, and can obtain the brightness value after pixel regulation.
In step 206, terminal is adjusted using the second preset algorithm to the brightness value of each Color Channel of pixel Section, obtain the brightness value after pixel regulation.
When the luminance difference between any two Color Channel in three Color Channels for judge the pixel is less than first During default value, illustrate that the brightness value difference of three Color Channels of the pixel is smaller, can now use the second preset algorithm The brightness value of each Color Channel of the pixel is adjusted.
When it is implemented, terminal can use the second preset algorithm, by the brightness regulation value of each Color Channel of pixel Given luminance scope is adjusted, obtains the brightness regulation value of each Color Channel, and then the brightness based on each Color Channel is adjusted Section value, by the way that the brightness regulation value of three Color Channels is overlapped, obtain the brightness value after pixel regulation.Wherein, refer to It is terminal brightness range according to determined by the brightness value of current environment to determine brightness range, and the given luminance may range from 0cd/ m2~32cd/m2、40cd/m2~60cd/m2Deng.Shown in for example following formula (2) of second preset algorithm:
Yi=a+Xi/255*(b-a) (2);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specified The minimum value of brightness range, b are the maximum of given luminance scope.Certainly, the second preset algorithm can also have other forms, this Embodiment no longer illustrates one by one.
It is adjusted by using the first preset algorithm, the brightness value after pixel regulation can be obtained.If for example, picture The brightness value X of the beauty chrominance channel of vegetarian refreshments1For 233cd/m2, green color passage brightness value X2For 235cd/m2, blue Color Channel Brightness value X3For 230cd/m2, given luminance may range from 0cd/m2~32cd/m2, i.e. a=0cd/m2, b=32cd/m2, The formula in above-mentioned (2) is then used, can obtain:
Y1=a+Xi/ 255* (b-a)=0+233* (32-0)/255=29.2;
Y2=a+X2/ 255* (b-a)=0+235* (32-0)/255=29.5;
Y3=a+X3/ 255* (b-a)=0+230* (32-0)/255=28.9;
By by the brightness regulation value of beauty chrominance channel obtained above, the brightness regulation value of green color passage and blue face The brightness regulation value of chrominance channel is overlapped, and can obtain the brightness value after pixel regulation.
In step 207, when all pixels point is through overregulating, terminal carries out screen based on the brightness value after regulation and shown Show.
After all pixels on display screen are adjusted using above-mentioned brightness method for turning down sound, terminal root Brightness value after being adjusted according to each pixel, you can carry out screen display.Now the background colour on screen not only will not distortion, and And screen intensity will not also damage to the eyes of user.
So far, realized by above-mentioned steps 201 to 207 under the dark environment of brightness, to the tune of terminal display Dark operation.On this basis, if the brightness of the environment residing for terminal becomes strong suddenly, e.g., user opens the light of interior, this When excessively dark display screen the eyesight of user can also be damaged, therefore, the method that the present embodiment provides is detecting display When luminance difference between screen and current environment is more than the second default value, execution is lightened to the operation of display screen.
During specific execution, terminal will generate a brightness regulation instruction, and brightness regulation instruction can be used for showing terminal Display screen curtain lightens, and afterwards, under the triggering of brightness regulation instruction, terminal can obtain three of each pixel on display screen The brightness value of Color Channel.Any pixel point being directed on display screen, if it is determined that in three Color Channels of pixel Luminance difference between any two Color Channel is more than the first default value, and terminal can use the 3rd preset algorithm to the pixel In the brightness value of each Color Channel be adjusted.3rd preset algorithm can be Zi=Xi/ n, wherein, ZiFor each face The brightness regulation value of chrominance channel, XiFor the brightness value of each Color Channel, i=1,2,3, Z1For the brightness regulation of beauty chrominance channel Value, X1For the brightness value of beauty chrominance channel, Z2For the brightness regulation value of green color passage, X2For the brightness value of green color passage, Z3 For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is the multiple of amplification.If it is determined that pixel Three Color Channels in luminance difference between any two Color Channel be less than the first default value, terminal can be according to working as front ring The brightness value in border, a brightness range is determined, and then the brightness is arrived into the brightness value regulation of each Color Channel of the pixel Scope.When using above-mentioned brightness heighten method to each pixel is adjusted on display screen after, terminal can be carried out Screen display.
The method that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using difference Mode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environment Contrast it is excessive, so as to be effectively protected the eyesight of user.
Fig. 3 is a kind of schematic diagram of screen display device according to an exemplary embodiment.Reference picture 3, the device Including:Acquisition module 301, judge module 302, the first adjustment module 303, the second adjustment module 304 and display module 305.
The acquisition module 301 is configured as obtaining the brightness value of three Color Channels of each pixel on display screen;
The judge module 302 is configured as any pixel point, is judged any two in three Color Channels of pixel Whether the luminance difference between individual Color Channel is more than the first default value;
First adjustment module 303 is configured as in three Color Channels of pixel between any two Color Channel Luminance difference when being more than the first default value, the brightness value of each Color Channel of pixel is carried out using the first preset algorithm Regulation, obtain the brightness value after pixel regulation;
Second adjustment module 304 is configured as in three Color Channels of pixel between any two Color Channel Luminance difference when being less than the first default value, the brightness value of each Color Channel of pixel is carried out using the second preset algorithm Regulation, obtain the brightness value after pixel regulation;
The display module 305 is configured as all pixels point through overregulating, and is shielded based on the brightness value after regulation Curtain display.
In another embodiment of the disclosure, the device also includes:Monitoring modular and directive generation module.
It is default whether the luminance difference that the monitoring modular is configured as monitoring between display screen and current environment is more than second Numerical value;
The luminance difference that the directive generation module is configured as between display screen and current environment is more than the second present count During value, generation brightness regulation instruction;
The acquisition module 301 is configured as instructing based on brightness regulation, performs and obtains each pixel on display screen The step of brightness value of three Color Channels.
In another embodiment of the disclosure, first adjustment module 303 is configured as using the first preset algorithm, will The brightness value of each Color Channel of pixel reduces identical multiple, obtains the brightness regulation value of each Color Channel;Based on every The brightness regulation value of individual Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.
In another embodiment of the disclosure, second adjustment module 304 is configured as using the second preset algorithm, will Given luminance scope is arrived in the brightness regulation value regulation of each Color Channel of pixel, obtains the brightness regulation of each Color Channel Value;Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specified The minimum value of brightness range, b are the maximum of given luminance scope.
The device that the embodiment of the present disclosure provides, for the brightness value of three Color Channels of each pixel, using difference Mode be adjusted so that the display screen after regulation can keep original color effect, be unlikely to again and surrounding environment Contrast it is excessive, so as to be effectively protected the eyesight of user.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 4 is a kind of block diagram for screen display device 400 according to an exemplary embodiment.For example, device 400 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
Reference picture 4, device 400 can include following one or more assemblies:Processing component 402, memory 404, power supply Component 406, multimedia groupware 408, audio-frequency assembly 410, input/output (I/O) interface 412, sensor cluster 414, Yi Jitong Believe component 416.
The integrated operation of the usual control device 400 of processing component 402, such as communicated with display, call, data, phase The operation that machine operates and record operation is associated.Processing component 402 can refer to including one or more processors 420 to perform Order, to complete all or part of step of above-mentioned method.In addition, processing component 402 can include one or more modules, just Interaction between processing component 402 and other assemblies.For example, processing component 402 can include multi-media module, it is more to facilitate Interaction between media component 408 and processing component 402.
Memory 404 is configured as storing various types of data to support the operation in device 400.These data are shown Example includes the instruction of any application program or method for being operated on device 400, contact data, telephone book data, disappears Breath, picture, video etc..Memory 404 can be by any kind of volatibility or non-volatile memory device or their group Close and realize, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable to compile Journey read-only storage (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 406 provides electric power for the various assemblies of device 400.Power supply module 406 can include power management system System, one or more power supplys, and other components associated with generating, managing and distributing electric power for device 400.
Multimedia groupware 408 is included in the screen of one output interface of offer between described device 400 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.The touch sensor can not only sensing touch or sliding action Border, but also detect and touched or the related duration and pressure of slide with described.In certain embodiments, more matchmakers Body component 408 includes a front camera and/or rear camera.When device 400 is in operator scheme, such as screening-mode or During video mode, front camera and/or rear camera can receive outside multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 410 is configured as output and/or input audio signal.For example, audio-frequency assembly 410 includes a Mike Wind (MIC), when device 400 is in operator scheme, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The audio signal received can be further stored in memory 404 or via communication set Part 416 is sent.In certain embodiments, audio-frequency assembly 410 also includes a loudspeaker, for exports audio signal.
I/O interfaces 412 provide interface between processing component 402 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 414 includes one or more sensors, and the state for providing various aspects for device 400 is commented Estimate.For example, sensor cluster 414 can detect opening/closed mode of device 400, and the relative positioning of component, for example, it is described Component is the display and keypad of device 400, and sensor cluster 414 can be with 400 1 components of detection means 400 or device Position change, the existence or non-existence that user contacts with device 400, the orientation of device 400 or acceleration/deceleration and device 400 Temperature change.Sensor cluster 414 can include proximity transducer, be configured to detect in no any physical contact The presence of neighbouring object.Sensor cluster 414 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In certain embodiments, the sensor cluster 414 can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 416 is configured to facilitate the communication of wired or wireless way between device 400 and other equipment.Device 400 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or combinations thereof.In an exemplary implementation In example, communication component 416 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 416 also includes near-field communication (NFC) module, to promote junction service.Example Such as, in NFC module radio frequency identification (RFID) technology can be based on, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 400 can (ASIC, numeral be believed by one or more application specific integrated circuits Number processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 404 of instruction, above-mentioned instruction can be performed to complete the above method by the processor 420 of device 400.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of mobile terminal When device performs so that mobile terminal is able to carry out a kind of screen display method, and methods described includes:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, the luminance difference between any two Color Channel in three Color Channels of pixel is judged Whether the first default value is more than;
If the luminance difference in three Color Channels of pixel between any two Color Channel is more than the first present count Value, the brightness value of each Color Channel of pixel is adjusted using the first preset algorithm, after obtaining pixel regulation Brightness value;
If the luminance difference in three Color Channels of pixel between any two Color Channel is less than the first present count Value, the brightness value of each Color Channel of pixel is adjusted using the second preset algorithm, after obtaining pixel regulation Brightness value;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
In another embodiment of the disclosure, the brightness of three Color Channels of each pixel on display screen is obtained Before value, in addition to:
Whether the luminance difference between monitoring display screen and current environment is more than the second default value;
When the luminance difference between display screen and current environment is more than the second default value, generation brightness regulation instruction;
Instructed based on brightness regulation, perform and obtain the brightness value of three Color Channels of each pixel on display screen Step.
In another embodiment of the disclosure, using brightness of first preset algorithm to each Color Channel of pixel Value is adjusted, and obtains the brightness value after pixel regulation, including:
Using the first preset algorithm, the brightness value of each Color Channel of pixel is reduced into identical multiple, obtained each The brightness regulation value of Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is diminution Multiple.
In another embodiment of the disclosure, using brightness of second preset algorithm to each Color Channel of pixel Value is adjusted, and obtains the brightness value after pixel regulation, including:
Using the second preset algorithm, given luminance model is arrived into the brightness regulation value regulation of each Color Channel of pixel Enclose, obtain the brightness regulation value of each Color Channel;
Brightness regulation value based on each Color Channel, obtain the brightness value after pixel regulation.
In another embodiment of the disclosure, the second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1 For the brightness regulation value of beauty chrominance channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2 For the brightness value of green color passage, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a is specified The minimum value of brightness range, b are the maximum of given luminance scope.
The non-transitorycomputer readable storage medium that the embodiment of the present disclosure provides, for three colors of each pixel The brightness value of passage, is adjusted in different ways so that the display screen after regulation can keep original colored effect Fruit, it is unlikely to excessive with the contrast of surrounding environment again, so as to be effectively protected the eyesight of user.
Those skilled in the art will readily occur to the disclosure its after considering specification and putting into practice disclosure disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledges in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claim is pointed out.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (8)

1. a kind of screen display method, it is characterised in that methods described includes:
Obtain the brightness value of three Color Channels of each pixel on display screen;
For any pixel point, the luminance difference between any two Color Channel in three Color Channels of the pixel is judged Whether the first default value is more than;
If the luminance difference in three Color Channels of the pixel between any two Color Channel is both greater than described first Default value, using the first preset algorithm, the brightness value of each Color Channel of the pixel is reduced into identical multiple, obtained The brightness regulation value of each Color Channel;Brightness regulation value based on each Color Channel, after obtaining the pixel regulation Brightness value;
Otherwise, it is using the second preset algorithm, the brightness regulation value regulation of each Color Channel of the pixel is bright to specifying Scope is spent, obtains the brightness regulation value of each Color Channel;Brightness regulation value based on each Color Channel, obtains the pixel Brightness value after point regulation;
When all pixels point is through overregulating, screen display is carried out based on the brightness value after regulation.
2. according to the method for claim 1, it is characterised in that three face for obtaining each pixel on display screen Before the brightness value of chrominance channel, in addition to:
Monitor whether the luminance difference between the display screen and current environment is more than the second default value;
When the luminance difference between the display screen and current environment is more than second default value, generation brightness regulation refers to Order;
Instructed based on the brightness regulation, perform the brightness for obtaining three Color Channels of each pixel on display screen The step of value.
3. according to the method for claim 1, it is characterised in that first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1To be red The brightness regulation value of Color Channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2To be green The brightness value of Color Channel, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is times reduced Number.
4. according to the method for claim 1, it is characterised in that second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1To be red The brightness regulation value of Color Channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2To be green The brightness value of Color Channel, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a specifies to be described The minimum value of brightness range, b are the maximum of the given luminance scope.
5. a kind of screen display device, it is characterised in that described device includes:
Acquisition module, for obtaining the brightness value of three Color Channels of each pixel on display screen;
Judge module, for for any pixel point, judging that any two color is led in three Color Channels of the pixel Whether the luminance difference between road is more than the first default value;
First adjustment module, for when the luminance difference between any two Color Channel in three Color Channels of the pixel Both greater than first default value when, using the first preset algorithm, by the brightness value of each Color Channel of the pixel Identical multiple is reduced, obtains the brightness regulation value of each Color Channel;Brightness regulation value based on each Color Channel, obtains institute State the brightness value after pixel regulation;
Second adjustment module, for when the luminance difference between any two Color Channel in three Color Channels of the pixel When not being both greater than first default value, using the second preset algorithm, by the brightness of each Color Channel of the pixel Given luminance scope is arrived in regulated value regulation, obtains the brightness regulation value of each Color Channel;Brightness based on each Color Channel Regulated value, obtain the brightness value after the pixel regulation;
Display module, for when all pixels point is through overregulating, screen display to be carried out based on the brightness value after regulation.
6. device according to claim 5, it is characterised in that described device also includes:
Monitoring modular, for monitoring whether the luminance difference between the display screen and current environment is more than the second default value;
Directive generation module, for being more than second default value when the luminance difference between the display screen and current environment When, generation brightness regulation instruction;
The acquisition module, for being instructed based on the brightness regulation, perform each pixel on the acquisition display screen The step of brightness value of three Color Channels.
7. device according to claim 5, it is characterised in that first preset algorithm is:
Yi=Xi/n;
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1To be red The brightness regulation value of Color Channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2To be green The brightness value of Color Channel, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, n is times reduced Number.
8. device according to claim 5, it is characterised in that second preset algorithm is:
Yi=a+Xi/255*(b-a);
Wherein, YiFor the brightness regulation value of each Color Channel, XiFor the brightness value of each Color Channel, i=1,2,3, Y1To be red The brightness regulation value of Color Channel, X1For the brightness value of beauty chrominance channel, Y2For the brightness regulation value of green color passage, X2To be green The brightness value of Color Channel, Y3For the brightness regulation value of blue Color Channel, X3For the brightness value of blue Color Channel, a specifies to be described The minimum value of brightness range, b are the maximum of the given luminance scope.
CN201510233167.7A 2015-05-08 2015-05-08 Screen display method and device Active CN104934016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510233167.7A CN104934016B (en) 2015-05-08 2015-05-08 Screen display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510233167.7A CN104934016B (en) 2015-05-08 2015-05-08 Screen display method and device

Publications (2)

Publication Number Publication Date
CN104934016A CN104934016A (en) 2015-09-23
CN104934016B true CN104934016B (en) 2018-02-23

Family

ID=54121160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510233167.7A Active CN104934016B (en) 2015-05-08 2015-05-08 Screen display method and device

Country Status (1)

Country Link
CN (1) CN104934016B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105979400A (en) * 2016-06-28 2016-09-28 乐视控股(北京)有限公司 Screen brightness adjusting method, device and terminal
CN106775548B (en) 2016-11-25 2018-02-23 北京小米移动软件有限公司 page processing method and device
CN108510927B (en) * 2017-02-28 2021-09-28 上海顺久电子科技有限公司 Method and device for enhancing image contrast in curved surface display screen
CN107992182B (en) 2017-12-05 2021-06-29 北京小米移动软件有限公司 Method and device for displaying interface image
CN109413232B (en) * 2018-10-19 2021-01-01 北京小米移动软件有限公司 Screen display method and device
CN109686342B (en) * 2018-12-25 2021-04-06 海信视像科技股份有限公司 Image processing method and device
CN111508397B (en) * 2020-04-23 2023-03-24 云谷(固安)科技有限公司 Display panel detection method and display panel detection device
KR20220140369A (en) * 2021-04-09 2022-10-18 에스케이하이닉스 주식회사 Image sensing device and operating method thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089683B (en) * 2006-06-14 2013-04-17 奇美电子股份有限公司 Display and display method thereof
JP2008271248A (en) * 2007-04-20 2008-11-06 Toshiba Corp Color signal converter, video display device having the same, and color signal conversion method
TWI386910B (en) * 2009-02-23 2013-02-21 Wistron Corp Display device and method for adjusting the luminance thereof
CN101702304A (en) * 2009-09-10 2010-05-05 福建华映显示科技有限公司 Device for converting three-color grayscale value into four-color grayscale value and method thereof
KR20130050612A (en) * 2011-11-08 2013-05-16 삼성전자주식회사 Display apparatus and control method thereof

Also Published As

Publication number Publication date
CN104934016A (en) 2015-09-23

Similar Documents

Publication Publication Date Title
CN104934016B (en) Screen display method and device
EP3392867B1 (en) Display control method and device
RU2642911C2 (en) Colour correction method and device, liquid crystalline display
CN105070252B (en) Reduce the method and device of display brightness
CN104700786B (en) Display brightness method of adjustment and device
CN106128385A (en) Liquid crystal display control method and device
KR20170067674A (en) Liquid crystal display method and device
CN106713696A (en) Image processing method and device
CN105611264B (en) A kind of auto white balance method and device
CN106954321A (en) Adjust the method and device of light
CN106484356A (en) Adjust the method and device of brightness of image
CN112463275A (en) Data processing method, terminal and storage medium
CN104010129A (en) Image processing method, device and terminal
CN108470552A (en) Display methods, device and storage medium
CN107391073A (en) Display module and electronic equipment
CN106557294A (en) Color adjustment method and device
US10438377B2 (en) Method and device for processing a page
CN112905141B (en) Screen display method and device and computer storage medium
CN108184103A (en) The method and apparatus for showing image
CN107809545A (en) Control method, device and the storage medium of smart machine
CN111383582B (en) Display control method, display control device, electronic equipment and computer-readable storage medium
CN107026985A (en) flash lamp control method, device, electronic equipment and storage medium
US10068151B2 (en) Method, device and computer-readable medium for enhancing readability
EP3866155A1 (en) Method and device for adjusting display brightness
CN107580117A (en) Control method of electronic device and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant