CN107644606A - Terminal display screen control method and device - Google Patents
Terminal display screen control method and device Download PDFInfo
- Publication number
- CN107644606A CN107644606A CN201610584175.0A CN201610584175A CN107644606A CN 107644606 A CN107644606 A CN 107644606A CN 201610584175 A CN201610584175 A CN 201610584175A CN 107644606 A CN107644606 A CN 107644606A
- Authority
- CN
- China
- Prior art keywords
- pixel
- threshold value
- display screen
- ultraviolet index
- terminal
- 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.)
- Pending
Links
Abstract
The invention discloses a kind of terminal display screen control method, UV sensor is provided with terminal, the method comprising the steps of:Using the ultraviolet index of UV sensor detection terminal local environment;Compare the size of the ultraviolet index and default ultraviolet index threshold value;When the ultraviolet index is more than the default ultraviolet index threshold value, increase the contrast of the terminal display screen.The invention also discloses a kind of terminal display screen control device.Invention enhances the visuality of the terminal display screen under strong light.
Description
Technical field
The present invention relates to terminal control technical field, more particularly to terminal display screen control method and device.
Background technology
With the development of science and technology, the application of the terminal such as smart mobile phone, PAD (tablet personal computer) is more and more extensive, have become
People work and life in requirement, for example, by smart phone user can carry out web page browsing, take pictures, wechat chat etc..
Under normal light intensity, user can typically see the content that terminal display screen is currently shown, but sometimes in strong light
Under, for example in outdoor environment at noon, light intensity is likely to very strong, and now, user can not just see that terminal is shown
Shield the content that currently shows, namely under strong light terminal display screen it is visual low.
The content of the invention
It is a primary object of the present invention to propose a kind of terminal display screen control method and device, it is intended to solve prior art
In under strong light the visual low technical problem of terminal display screen.
To achieve the above object, the present invention provides a kind of terminal display screen control method, the terminal display screen controlling party
Method comprises the following steps:
Using the ultraviolet index of UV sensor detection terminal local environment;
Compare the size of the ultraviolet index and default ultraviolet index threshold value;
When the ultraviolet index is more than the default ultraviolet index threshold value, increase the contrast of the terminal display screen
Degree.
Preferably, before the step of ultraviolet index using UV sensor detection terminal local environment, also
Including:
The light intensity of detection terminal local environment;
When the light intensity is more than default light intensity threshold value, perform described using UV sensor detection terminal
The step of ultraviolet index of local environment.
Preferably, after the step of size of the ultraviolet index and default ultraviolet index threshold value, also
Including:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the terminal display screen
Brightness.
Preferably, it is described when the ultraviolet index is more than the default ultraviolet index threshold value, increase the terminal
The step of contrast of display screen, includes:
When the ultraviolet index is more than the default ultraviolet index threshold value, the terminal is calculated using brightness algorithm
The present intensity of each pixel of display screen;
It is more than the pixel of predetermined luminance threshold value to present intensity, strengthens the present intensity of the pixel;
It is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, weakens the current bright of the pixel
Degree.
Preferably, the pixel that predetermined luminance threshold value is more than to present intensity, strengthens the current bright of the pixel
The step of spending includes:
It is more than the pixel of predetermined luminance threshold value to present intensity, the picture is calculated using formula Y1=Y+ (255-Y) * T
First degree to be lightened of vegetarian refreshments, wherein, Y1 is the first degree to be lightened of the pixel, and Y is the present intensity of the pixel,
T is default contrast rating;
The present intensity of the pixel is adjusted to the described first degree to be lightened;
The pixel for being less than or equal to the predetermined luminance threshold value to present intensity, weakens the current of the pixel
The step of brightness, includes:
It is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, institute is calculated using formula Y2=Y-Y*T
The second degree to be lightened of pixel is stated, wherein, Y2 is the second degree to be lightened of the pixel;
The present intensity of the pixel is adjusted to the described second degree to be lightened.
In addition, to achieve the above object, the present invention also proposes a kind of terminal display screen control device, the terminal display screen
Control device includes:
Detection module, for the ultraviolet index using UV sensor detection terminal local environment;
Comparison module, for the ultraviolet index and the size of default ultraviolet index threshold value;
Processing module, for when the ultraviolet index is more than the default ultraviolet index threshold value, increasing the end
Hold the contrast of display screen.
Preferably, the detection module is additionally operable to:
The light intensity of detection terminal local environment;And when the light intensity is more than default light intensity threshold value,
Using the ultraviolet index of UV sensor detection terminal local environment.
Preferably, the processing module is additionally operable to:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the terminal display screen
Brightness.
Preferably, the processing module includes:
Computing unit, for when the ultraviolet index is more than the default ultraviolet index threshold value, being calculated using brightness
Method calculates the present intensity of each pixel of terminal display screen;
Processing unit, for being more than the pixel of predetermined luminance threshold value to present intensity, strengthen the current of the pixel
Brightness;And it is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, weaken the current bright of the pixel
Degree.
Preferably, the processing unit is used for:
It is more than the pixel of predetermined luminance threshold value to present intensity, the picture is calculated using formula Y1=Y+ (255-Y) * T
First degree to be lightened of vegetarian refreshments, and the present intensity of the pixel is adjusted to the described first degree to be lightened;Wherein, Y1 is institute
The first degree to be lightened of pixel is stated, Y is the present intensity of the pixel, and T is default contrast rating;
And it is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, counted using formula Y2=Y-Y*T
The second degree to be lightened of the pixel is calculated, and the present intensity of the pixel is adjusted to the described second degree to be lightened;Its
In, Y2 is the second degree to be lightened of the pixel.
Terminal display screen control method and device proposed by the present invention, terminal is using residing for UV sensor detection terminal
The ultraviolet index of environment, when the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, namely in ring
When environmental light is stronger, increase the contrast of terminal display screen, by the increase of contrast, so as to enhance the visual of display screen
Property.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of terminal display screen control method first embodiment of the present invention;
Fig. 2 is the schematic flow sheet of terminal display screen control method second embodiment of the present invention;
Fig. 3 is the high-level schematic functional block diagram of terminal display screen control device first embodiment of the present invention;
Fig. 4 is the refinement functional module signal of processing module in terminal display screen control device second embodiment of the present invention
Figure.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present invention provides a kind of terminal display screen control method, and reference picture 1, Fig. 1 is terminal display screen controlling party of the present invention
The schematic flow sheet of method first embodiment.
In the present embodiment, the terminal display screen control method comprises the following steps:
Step S10, using the ultraviolet index of UV sensor detection terminal local environment;
When user carries out the operation such as web page browsing, communication chat using terminals such as smart mobile phone, PAD (tablet personal computer),
If the light of current environment is too strong, user can not just see the content of terminal display screen clearly, and the use to user is made troubles.In order to
Solve this problem, in the present embodiment, UV sensor is pre-set in terminal, such as flat where terminal display screen
Face sets UV sensor, and UV sensor can measure the ultraviolet index of current environment.Therefore, in the present embodiment,
When user's using terminal, by using the ultraviolet index of UV sensor detection terminal local environment, terminal obtains purple
The ultraviolet index for the terminal local environment that outside line sensor detects.
Step S20, the size of the ultraviolet index and default ultraviolet index threshold value;
Step S30, when the ultraviolet index is more than the default ultraviolet index threshold value, increases the terminal and show
The contrast of screen.
In the present embodiment, in order to there is a differentiation to the power of ultraviolet, a default ultraviolet index is also previously provided with
Threshold value, after the ultraviolet index of terminal local environment is detected, terminal compares the ultraviolet index and default ultraviolet index
The size of threshold value.When the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, namely explanation terminal institute
The ultraviolet of locating environment is relatively strong, light is brighter, and now, user does not see the content shown by terminal display screen probably, is
It can be easy to the user to see the content that display screen is shown clearly, the contrast of terminal display screen is adjusted, increase terminal is shown
The contrast of screen.After increase regulation is carried out to the contrast of terminal display screen, user can more clearly see display screen institute clearly
The content of display.When the ultraviolet index of terminal local environment is less than or equal to default ultraviolet index threshold value, namely explanation
The ultraviolet of terminal local environment is not strong, and light is suitable, and user can see the content that display screen is shown clearly, and now, terminal is not entered
The corresponding response processing of row.
The scheme that the present embodiment provides, terminal use the ultraviolet index of UV sensor detection terminal local environment,
Then the size of the ultraviolet index of comparison terminal local environment and default ultraviolet index threshold value, in the purple of terminal local environment
When outer linear index is more than default ultraviolet index threshold value, namely when ambient light is stronger, increase the contrast of terminal display screen,
So as to enhance the visuality of display screen so that user can more clearly see the content shown by display screen clearly, improve use
Experience at family.
Further, as shown in Fig. 2 proposing that terminal display screen control method second of the present invention is implemented based on first embodiment
Example, in the present embodiment, before the step S10, in addition to step:
Step S40, the light intensity of detection terminal local environment;
Step S50, when the light intensity is more than default light intensity threshold value, perform the step S10.
, can not absolute guarantee's purple although ultraviolet index reflects the light intensity of current environment to a certain extent
Outer linear index is higher, and light intensity is stronger, therefore, in the present embodiment, in order to more accurately be carried out to terminal display screen
Regulation, terminal go back the light intensity of detection terminal local environment first.For example, optical sensor is also provided with terminal,
For example optical sensor is set in the close position of seated position set by UV sensor, optical sensor can measure current environment
Light intensity.When user's using terminal, by using the light intensity of optical sensor detection terminal local environment, terminal obtains
The light intensity for the terminal local environment that optical sensor detects.
In order to there is a differentiation to the power of light, a default light intensity threshold value is also previously provided with, when detecting end
After the light intensity for holding local environment, terminal compares the size of the light intensity and default light intensity threshold value.When residing for terminal
When the light intensity of environment is more than default light intensity threshold value, namely the light of explanation terminal local environment is stronger, now, terminal
The further ultraviolet index of detection terminal local environment.It is more than default ultraviolet in the ultraviolet index of terminal local environment
During index threshold, increase the contrast of terminal display screen.When the light intensity of terminal local environment is less than or equal to default light
During intensity threshold, namely the light of explanation terminal local environment is weaker, and user can see the content shown by terminal display screen clearly,
Now, terminal is handled without corresponding response.
Further, in order that the visuality for obtaining terminal display screen further enhances, in the ultraviolet of terminal local environment
When index is more than default ultraviolet index threshold value, contrast and the brightness of terminal display screen can be strengthened simultaneously.
Further, in the present embodiment, after the step S20, in addition to step:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the terminal display screen
Brightness.
In the present embodiment, to the ultraviolet index of terminal local environment compared with default ultraviolet index threshold value
Afterwards, when the ultraviolet index of terminal local environment is less than or equal to the default ultraviolet index threshold value, namely the current light of explanation
Line is stronger, but ultraviolet index is not high, and now, in order to be easy to user to see the content that display screen is shown clearly, terminal is shown
The brightness of screen is adjusted, and strengthens the brightness of terminal display screen.After the brightness to terminal display screen carries out enhancing regulation, user
The content shown by display screen can more clearly be seen clearly.
Further, the step S30 includes:
Step a, when the ultraviolet index is more than the default ultraviolet index threshold value, institute is calculated using brightness algorithm
State the present intensity of each pixel of terminal display screen;
Step b, the pixel of predetermined luminance threshold value is more than to present intensity, strengthens the present intensity of the pixel;
Step c, the pixel of the predetermined luminance threshold value is less than or equal to present intensity, weakens working as the pixel
Preceding brightness.
It is more than default ultraviolet index threshold value in the ultraviolet index of the terminal local environment detected, performs increase terminal
In the operation of the contrast of display screen, first using the present intensity of each pixel of brightness algorithm computing terminal display screen.Example
Such as, it is assumed that the corresponding form of terminal display screen displayed content is rgb format, and terminal reads the rgb value of current cache, and passes through
Formula Y=0.299*R+0.587*G+0.114*B calculates the present intensity of each pixel of display screen, wherein, Y represents pixel
The present intensity of point.
In order to which the brightness to pixel makes a distinction, in the present embodiment, a predetermined luminance threshold value is also previously provided with.Work as meter
After the present intensity for calculating each pixel, respectively by the present intensity of each pixel compared with predetermined luminance threshold value,
Either the present intensity of each pixel is greater than predetermined luminance threshold value, or it is less than or equal to predetermined luminance threshold value.For
The present intensity of pixel is more than the pixel of predetermined luminance threshold value, further enhances the present intensity of these pixels;It is and right
It is less than or equal to the pixel of predetermined luminance threshold value in the present intensity of pixel, further weakens the current bright of these pixels
Degree, so that the contrast increase of terminal display screen.
Specifically, the step b includes:
Step b1, the pixel of predetermined luminance threshold value is more than to present intensity, is calculated using formula Y1=Y+ (255-Y) * T
First degree to be lightened of the pixel, wherein, Y1 is the first degree to be lightened of the pixel, and Y is working as the pixel
Preceding brightness, T are default contrast rating;
Step b2, the present intensity of the pixel is adjusted to the described first degree to be lightened;
The step c includes:
Step c1, the pixel of the predetermined luminance threshold value is less than or equal to present intensity, using formula Y2=Y-Y*T
The second degree to be lightened of the pixel is calculated, wherein, Y2 is the second degree to be lightened of the pixel;
Step c2, the present intensity of the pixel is adjusted to the described second degree to be lightened.
In the present embodiment, a default contrast rating T is previously provided with, for each pixel of terminal display screen
Present intensity is adjusted.Specifically, after the present intensity Y of each pixel is calculated, it is more than for present intensity Y default
The pixel of luminance threshold, the first degree Y1 to be lightened of these pixels is calculated using formula Y1=Y+ (255-Y) * T, then
The present intensity of these pixels is adjusted to the first degree Y1 to be lightened.For example, counted according to the calculate first degree Y1 to be lightened
Rgb value corresponding to calculation, and rgb value is preserved into (for example being saved in LCD cachings), and phase is carried out according to the rgb value of preservation
It should show.It is less than or equal to the pixel of predetermined luminance threshold value for present intensity Y, these is calculated using formula Y2=Y-Y*T
Second degree Y2 to be lightened of pixel, then the present intensity of these pixels is adjusted to the second degree Y2 to be lightened.
Wherein, for contrast rating T occurrence size, can be calculated according to formula T=[(M-L)/(15-L)] * N
The contrast rating T values come are configured, wherein, M is the ultraviolet index of terminal local environment, and L is default ultraviolet index
Threshold value, N are the adjustment factor pre-set, and adjustment factor N occurrence can flexibly be set according to the characteristic of terminal display screen
Put.
It will be appreciated by persons skilled in the art that by above-mentioned algorithm calculate pixel the first degree Y1 to be lightened or
The degree Y2 to be lightened of person second is a kind of mode for increasing terminal display screen contrast, in addition to this mode, can also be adopted
Increase the contrast of terminal display screen with other modes, this is not restricted.
The light intensity of scheme, first detection terminal local environment that the present embodiment provides, in the light of terminal local environment
When line strength is more than default light intensity threshold value, just using the ultraviolet index of UV sensor detection terminal local environment,
And when the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, increase the contrast of terminal display screen,
Avoid when the light intensity of terminal local environment is less than or equal to default light intensity threshold value also to pair of terminal display screen
It is adjusted than degree, namely avoids the unnecessary regulation when light is not strong to terminal display screen contrast, so as to reduces
Power consumption.
The present invention further provides a kind of terminal display screen control device, is shown as shown in figure 3, Fig. 3 is terminal of the present invention
Shield the high-level schematic functional block diagram of control device first embodiment.
It is emphasized that it will be apparent to those skilled in the art that functional block diagram shown in Fig. 3 is only one preferably real
The exemplary plot of example is applied, those skilled in the art, can be easily around the functional module of the terminal display screen control device shown in Fig. 3
Carry out the supplement of new functional module;The title of each functional module is self-defined title, is only used for auxiliary and understands that the terminal is shown
To shield each program function block of control device, be not used in restriction technical scheme, the core of technical solution of the present invention is,
The function to be reached of the functional module of each self-defined title.
In the present embodiment, the terminal display screen control device includes:
Detection module 10, for the ultraviolet index using UV sensor detection terminal local environment;
When user carries out the operation such as web page browsing, communication chat using terminals such as smart mobile phone, PAD (tablet personal computer),
If the light of current environment is too strong, user can not just see the content of terminal display screen clearly, and the use to user is made troubles.In order to
Solve this problem, in the present embodiment, UV sensor is pre-set in terminal, such as flat where terminal display screen
Face sets UV sensor, and UV sensor can measure the ultraviolet index of current environment.Therefore, in the present embodiment,
When user's using terminal, detection module 10 by using UV sensor detection terminal local environment ultraviolet index,
Obtain the ultraviolet index for the terminal local environment that UV sensor detects.
Comparison module 20, for the ultraviolet index and the size of default ultraviolet index threshold value;
Processing module 30, for when the ultraviolet index is more than the default ultraviolet index threshold value, described in increase
The contrast of terminal display screen.
In the present embodiment, in order to there is a differentiation to the power of ultraviolet, a default ultraviolet index is also previously provided with
Threshold value, after detection module 10 detects the ultraviolet index of terminal local environment, comparison module 20 compares the ultraviolet index
With the size of default ultraviolet index threshold value.When the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value
When, namely the ultraviolet of explanation terminal local environment is relatively strong, light is brighter, now, user does not see terminal probably and shown
The shown content of screen, in order to be easy to user to see the content that display screen is shown clearly, processing module 30 is to terminal display screen
Contrast is adjusted, and increases the contrast of terminal display screen.After increase regulation is carried out to the contrast of terminal display screen, use
Family can more clearly see the content shown by display screen clearly.Preset when the ultraviolet index of terminal local environment is less than or equal to
During ultraviolet index threshold value, namely the ultraviolet of explanation terminal local environment is not strong, and light is suitable, and user can see display screen clearly
The content of display, now, processing module 30 are handled without corresponding response.
The scheme that the present embodiment provides, detection module 10 use the ultraviolet of UV sensor detection terminal local environment
The size of index, the then ultraviolet index of the comparison terminal local environment of comparison module 20 and default ultraviolet index threshold value,
When the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, namely when ambient light is stronger, mould is handled
Block 30 increases the contrast of terminal display screen, so as to enhance the visuality of display screen so that user can more clearly see clearly
Content shown by display screen, improves Consumer's Experience.
Further, terminal display screen control device second embodiment of the present invention is proposed based on first embodiment, in this reality
Apply in example, the detection module 10 is additionally operable to:
The light intensity of detection terminal local environment;And when the light intensity is more than default light intensity threshold value,
Using the ultraviolet index of UV sensor detection terminal local environment.
, can not absolute guarantee's purple although ultraviolet index reflects the light intensity of current environment to a certain extent
Outer linear index is higher, and light intensity is stronger, therefore, in the present embodiment, in order to more accurately be carried out to terminal display screen
Regulation, the light intensity of the detection terminal local environment first of detection module 10.For example, light sensing is also provided with terminal
Device, for example optical sensor is set in the close position of seated position set by UV sensor, optical sensor, which can measure, works as front ring
The light intensity in border.When user's using terminal, detection module 10 by using optical sensor detection terminal local environment light
Line strength, obtain the light intensity for the terminal local environment that optical sensor detects.
In order to there is a differentiation to the power of light, a default light intensity threshold value is also previously provided with, works as detection module
After 10 detect the light intensity of terminal local environment, comparison module 20 compares the light intensity and default light intensity threshold value
Size.When the light intensity of terminal local environment is more than default light intensity threshold value, namely the light of explanation terminal local environment
Line is stronger, now, the ultraviolet index of the further detection terminal local environment of detection module 10.In the purple of terminal local environment
When outer linear index is more than default ultraviolet index threshold value, processing module 30 increases the contrast of terminal display screen.When residing for terminal
When the light intensity of environment is less than or equal to default light intensity threshold value, namely the light of explanation terminal local environment is weaker, uses
Family can see the content shown by terminal display screen clearly, and now, processing module 30 is handled without corresponding response.
Further, in order that the visuality for obtaining terminal display screen further enhances, in the ultraviolet of terminal local environment
When index is more than default ultraviolet index threshold value, processing module 30 can strengthen contrast and the brightness of terminal display screen simultaneously.
Further, in the present embodiment, the processing module 30 is additionally operable to:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the terminal display screen
Brightness.
In the present embodiment, in ultraviolet index of the comparison module 20 to terminal local environment and default ultraviolet index threshold value
After being compared, when the ultraviolet index of terminal local environment is less than or equal to the default ultraviolet index threshold value, namely say
Bright current light is stronger, but ultraviolet index is not high, now, in order to be easy to user to see the content that display screen is shown clearly, place
Manage brightness of the module 30 to terminal display screen to be adjusted, strengthen the brightness of terminal display screen.In the brightness to terminal display screen
After carrying out enhancing regulation, user can more clearly see the content shown by display screen clearly.
Further, as shown in figure 4, the processing module 30 includes:
Computing unit 31, for when the ultraviolet index is more than the default ultraviolet index threshold value, using brightness
Algorithm calculates the present intensity of each pixel of terminal display screen;
Processing unit 32, for being more than the pixel of predetermined luminance threshold value to present intensity, strengthen working as the pixel
Preceding brightness;It is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, weakens the present intensity of the pixel.
When the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, computing unit 31 is first using bright
Spend the present intensity of each pixel of algorithm computing terminal display screen.For example, it is assumed that the correspondence of terminal display screen displayed content
Form is rgb format, and computing unit 31 reads the rgb value of current cache, and passes through formula Y=0.299*R+0.587*G+
0.114*B calculates the present intensity of each pixel of display screen, wherein, Y represents the present intensity of pixel.
In order to which the brightness to pixel makes a distinction, in the present embodiment, a predetermined luminance threshold value is also previously provided with.Work as meter
After calculation unit 31 calculates the present intensity of each pixel, respectively by the present intensity of each pixel and predetermined luminance threshold value
It is compared, otherwise the present intensity of each pixel is greater than predetermined luminance threshold value, otherwise it is less than or equal to predetermined luminance
Threshold value.It is more than the pixel of predetermined luminance threshold value for the present intensity of pixel, processing unit 32 strengthens these pixels
Present intensity;And it is less than or equal to the pixel of predetermined luminance threshold value for the present intensity of pixel, processing unit 32 weakens
The present intensity of these pixels, so that the contrast increase of terminal display screen.
Specifically, the processing unit 32 is used for:
It is more than the pixel of predetermined luminance threshold value to present intensity, the picture is calculated using formula Y1=Y+ (255-Y) * T
First degree to be lightened of vegetarian refreshments, and the present intensity of the pixel is adjusted to the described first degree to be lightened;Wherein, Y1 is institute
The first degree to be lightened of pixel is stated, Y is the present intensity of the pixel, and T is default contrast rating;
And it is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, counted using formula Y2=Y-Y*T
The second degree to be lightened of the pixel is calculated, and the present intensity of the pixel is adjusted to the described second degree to be lightened;Its
In, Y2 is the second degree to be lightened of the pixel.
In the present embodiment, a default contrast rating T is previously provided with, for each pixel of terminal display screen
Present intensity is adjusted.Specifically, after computing unit 31 calculates the present intensity Y of each pixel, for current bright
The pixel that Y is more than predetermined luminance threshold value is spent, processing unit 32 calculates these pixels using formula Y1=Y+ (255-Y) * T
The first degree Y1 to be lightened, then the present intensity of these pixels is adjusted to the first degree Y1 to be lightened.For example, according to calculating
Rgb value corresponding to the first degree Y1 calculating to be lightened gone out, and rgb value is preserved (for example being saved in LCD cachings), and root
Accordingly shown according to the rgb value of preservation.It is less than or equal to the pixel of predetermined luminance threshold value for present intensity Y, processing is single
Member 32 calculates the second degree Y2 to be lightened of these pixels using formula Y2=Y-Y*T, then by the current bright of these pixels
Degree is adjusted to the second degree Y2 to be lightened.
Wherein, for contrast rating T occurrence size, can be calculated according to formula T=[(M-L)/(15-L)] * N
The contrast rating T values come are configured, wherein, M is the ultraviolet index of terminal local environment, and L is default ultraviolet index
Threshold value, N are the adjustment factor pre-set, and adjustment factor N occurrence can flexibly be set according to the characteristic of terminal display screen
Put.
It will be appreciated by persons skilled in the art that by above-mentioned algorithm calculate pixel the first degree Y1 to be lightened or
The degree Y2 to be lightened of person second is a kind of mode for increasing terminal display screen contrast, in addition to this mode, can also be adopted
Increase the contrast of terminal display screen with other modes, this is not restricted.
The scheme that the present embodiment provides, the light intensity of the detection terminal local environment first of detection module 10, in terminal institute
When locating the light intensity of environment more than default light intensity threshold value, just using the purple of UV sensor detection terminal local environment
Outer linear index, and when the ultraviolet index of terminal local environment is more than default ultraviolet index threshold value, processing module 30 increases
The contrast of terminal display screen, avoid when the light intensity of terminal local environment is less than or equal to default light intensity threshold value
Also the contrast of terminal display screen is adjusted, namely avoid when light is not strong to terminal display screen contrast need not
Adjust, so as to reduce power consumption.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of terminal display screen control method, it is characterised in that UV sensor is provided with terminal, the terminal is shown
Screen control method comprises the following steps:
Using the ultraviolet index of UV sensor detection terminal local environment;
Compare the size of the ultraviolet index and default ultraviolet index threshold value;
When the ultraviolet index is more than the default ultraviolet index threshold value, increase the contrast of the terminal display screen.
2. terminal display screen control method as claimed in claim 1, it is characterised in that described to be detected using UV sensor
Before the step of ultraviolet index of terminal local environment, in addition to:
The light intensity of detection terminal local environment;
When the light intensity is more than default light intensity threshold value, perform described using residing for UV sensor detection terminal
The step of ultraviolet index of environment.
3. terminal display screen control method as claimed in claim 2, it is characterised in that the ultraviolet index with
After the step of size of default ultraviolet index threshold value, in addition to:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the bright of the terminal display screen
Degree.
4. the terminal display screen control method as described in claim any one of 1-3, it is characterised in that described in the ultraviolet
Include when index is more than the default ultraviolet index threshold value, the step of the contrast for increasing the terminal display screen:
When the ultraviolet index is more than the default ultraviolet index threshold value, the terminal is calculated using brightness algorithm and shown
Shield the present intensity of each pixel;
It is more than the pixel of predetermined luminance threshold value to present intensity, strengthens the present intensity of the pixel;
It is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, weakens the present intensity of the pixel.
5. terminal display screen control method as claimed in claim 4, it is characterised in that described bright more than default to present intensity
The pixel of threshold value is spent, is included the step of the present intensity for strengthening the pixel:
It is more than the pixel of predetermined luminance threshold value to present intensity, the pixel is calculated using formula Y1=Y+ (255-Y) * T
The first degree to be lightened, wherein, Y1 is the first degree to be lightened of the pixel, and Y is the present intensity of the pixel, and T is
Default contrast rating;
The present intensity of the pixel is adjusted to the described first degree to be lightened;
The pixel for being less than or equal to the predetermined luminance threshold value to present intensity, weaken the present intensity of the pixel
The step of include:
It is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, the picture is calculated using formula Y2=Y-Y*T
Second degree to be lightened of vegetarian refreshments, wherein, Y2 is the second degree to be lightened of the pixel;
The present intensity of the pixel is adjusted to the described second degree to be lightened.
6. a kind of terminal display screen control device, it is characterised in that the terminal display screen control device includes:
Detection module, for the ultraviolet index using UV sensor detection terminal local environment;
Comparison module, for the ultraviolet index and the size of default ultraviolet index threshold value;
Processing module, for when the ultraviolet index is more than the default ultraviolet index threshold value, increasing the terminal and showing
The contrast of display screen.
7. terminal display screen control device as claimed in claim 6, it is characterised in that the detection module is additionally operable to:
The light intensity of detection terminal local environment;And when the light intensity is more than default light intensity threshold value, use
The ultraviolet index of UV sensor detection terminal local environment.
8. terminal display screen control device as claimed in claim 7, it is characterised in that the processing module is additionally operable to:
When the ultraviolet index is less than or equal to the default ultraviolet index threshold value, strengthen the bright of the terminal display screen
Degree.
9. the terminal display screen control device as described in claim any one of 6-8, it is characterised in that the processing module bag
Include:
Computing unit, for when the ultraviolet index is more than the default ultraviolet index threshold value, using brightness algorithm meter
Calculate the present intensity of each pixel of the terminal display screen;
Processing unit, for being more than the pixel of predetermined luminance threshold value to present intensity, strengthen the present intensity of the pixel;
And it is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, weaken the present intensity of the pixel.
10. terminal display screen control device as claimed in claim 9, it is characterised in that the processing unit is used for:
It is more than the pixel of predetermined luminance threshold value to present intensity, the pixel is calculated using formula Y1=Y+ (255-Y) * T
The first degree to be lightened, and the present intensity of the pixel is adjusted to the described first degree to be lightened;Wherein, Y1 is the picture
First degree to be lightened of vegetarian refreshments, Y are the present intensity of the pixel, and T is default contrast rating;
And it is less than or equal to the pixel of the predetermined luminance threshold value to present intensity, institute is calculated using formula Y2=Y-Y*T
The second degree to be lightened of pixel is stated, and the present intensity of the pixel is adjusted to the described second degree to be lightened;Wherein, Y2
For the second degree to be lightened of the pixel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610584175.0A CN107644606A (en) | 2016-07-21 | 2016-07-21 | Terminal display screen control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610584175.0A CN107644606A (en) | 2016-07-21 | 2016-07-21 | Terminal display screen control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107644606A true CN107644606A (en) | 2018-01-30 |
Family
ID=61109470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610584175.0A Pending CN107644606A (en) | 2016-07-21 | 2016-07-21 | Terminal display screen control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107644606A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947228A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | A kind of display panel control method, device and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0683287A (en) * | 1992-09-04 | 1994-03-25 | Sharp Corp | Display control device for liquid crystal display |
US20020158883A1 (en) * | 2001-04-25 | 2002-10-31 | Palm, Inc. | Control of brightness and contrast by averaging |
CN101169930A (en) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | Image processing method, medium and system |
CN105118433A (en) * | 2015-09-07 | 2015-12-02 | 西安诺瓦电子科技有限公司 | Display screen display optimization method |
-
2016
- 2016-07-21 CN CN201610584175.0A patent/CN107644606A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0683287A (en) * | 1992-09-04 | 1994-03-25 | Sharp Corp | Display control device for liquid crystal display |
US20020158883A1 (en) * | 2001-04-25 | 2002-10-31 | Palm, Inc. | Control of brightness and contrast by averaging |
CN101169930A (en) * | 2006-10-25 | 2008-04-30 | 三星电子株式会社 | Image processing method, medium and system |
CN105118433A (en) * | 2015-09-07 | 2015-12-02 | 西安诺瓦电子科技有限公司 | Display screen display optimization method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109947228A (en) * | 2019-03-27 | 2019-06-28 | 努比亚技术有限公司 | A kind of display panel control method, device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101958870B1 (en) | Display control method and apparatus for power saving | |
KR101651430B1 (en) | Apparatus and method for controlling size of display data in portable terminal | |
CN103617792B (en) | A kind of regulate display terminal picture to show method and display terminal | |
CN108538265B (en) | Display brightness adjusting method and device of liquid crystal display screen | |
CN103325355B (en) | A kind of method of image content-based dynamic adjustments backlight illumination | |
CN102810306B (en) | Method for automatically controlling brightness of display screen wallpaper | |
US20110069089A1 (en) | Power management for organic light-emitting diode (oled) displays | |
CN104468912A (en) | Method for controlling luminance of screen of mobile terminal and display terminal | |
CN106023904A (en) | Display control method and device based on electronic ink screen | |
CN109257484A (en) | A kind of brightness of display screen processing method and terminal device | |
TWI386910B (en) | Display device and method for adjusting the luminance thereof | |
TW201423714A (en) | Display method for sunlight readable and electronic device using the same | |
CN110113534A (en) | A kind of image processing method, image processing apparatus and mobile terminal | |
WO2006049058A1 (en) | Video signal transformation device, and video display device | |
CN107742510A (en) | A kind of eyeshield intensity adjustment method, apparatus, electric terminal and storage medium | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN105929951A (en) | Screen display method and device | |
CN112229507A (en) | Ambient light detection method and device, storage medium and mobile terminal | |
CN103903593B (en) | Adjustment method of display background of page, and terminal | |
CN112463275A (en) | Data processing method, terminal and storage medium | |
US20130278643A1 (en) | Information processing apparatus and display control method | |
CN107527374A (en) | A kind of method and apparatus of text importing | |
CN107644606A (en) | Terminal display screen control method and device | |
CN112969088A (en) | Screen projection control method and device, electronic equipment and readable storage medium | |
CN111901519B (en) | Screen light supplement method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180130 |
|
WD01 | Invention patent application deemed withdrawn after publication |