Content of the invention
Embodiments provide a kind of screen luminance adjustment method, device and a kind of intelligent terminal, it can be avoided that screen
The brightness of curtain is too high and cause the stimulation to eyes of user and injury.
A kind of screen luminance adjustment method provided in an embodiment of the present invention, including:
It is under open mode in the mike of intelligent terminal, it is pre- whether the distance of detection user and described mike meets
If close condition;
If user meets default close condition with the distance of described mike, the screen turning down described intelligent terminal is bright
Degree, so that the present intensity value of described screen is less than default first brightness value.
Alternatively, whether the distance of described detection user and described mike meets default close condition and includes:
Detect whether the current measurement value of the upper range sensor of described intelligent terminal is less than default first distance threshold;
If the current measurement value of the upper range sensor of described intelligent terminal is less than default first distance threshold it is determined that using
Family meets default close condition with the distance of described mike.
Alternatively, whether the distance of described detection user and described mike meets default close condition and includes:
Detect whether the current measurement value of the upper range sensor of described intelligent terminal is more than default second distance threshold value;
If the current measurement value of the upper range sensor of described intelligent terminal is more than default second distance threshold value, obtain institute
That states intelligent terminal currently holds attitude;
Detection is described currently to hold whether attitude meets default attitude condition;
If described attitude of currently holding meets default attitude condition it is determined that user is met with the distance of described mike
Default close condition.
Alternatively, after turning down the screen intensity of described intelligent terminal, also include:
Detect whether the upper default screen trigger event of described intelligent terminal is triggered;
If the upper default screen trigger event of described intelligent terminal is triggered, the screen heightening described intelligent terminal is bright
Degree.
Alternatively, the described screen intensity heightening described intelligent terminal includes:
Obtain a front brightness value of described screen, a described front brightness value is in the screen turning down described intelligent terminal
The brightness value of brightness as described before screen;
The present intensity value of described screen is adjusted to a described front brightness value;
Or
Obtain the current environment brightness value of described intelligent terminal;
The screen intensity of intelligent terminal according to described current environment brightness value Automatic adjusument.
A kind of screen brightness regulating device provided in an embodiment of the present invention, including:
Near detection module, it is under open mode for the mike in intelligent terminal, detect user and described Mike
Whether the distance of wind meets default close condition;
Module is turned down in brightness, if the distance for user and described mike meets default close condition, turns down institute
State the screen intensity of intelligent terminal, so that the present intensity value of described screen is less than default first brightness value.
Alternatively, described close detection module includes:
Whether first be less than apart from detector unit, the current measurement value for detecting the upper range sensor of described intelligent terminal
Default first distance threshold;
First determining unit, if for described first apart from detector unit testing result for being it is determined that user and institute
The distance stating mike meets default close condition.
Alternatively, described close detection module includes:
Second distance detector unit, whether the current measurement value for detecting the upper range sensor of described intelligent terminal is more than
Default second distance threshold value;
Hold attitude acquiring unit, if the testing result for described second distance detector unit is yes, obtain described
Intelligent terminal currently holds attitude;
Hold posture detecting unit, described currently hold whether attitude meets default attitude condition for detecting;
Second determining unit, if for the described testing result holding posture detecting unit for being it is determined that user and institute
The distance stating mike meets default close condition.
Alternatively, described screen brightness regulating device also includes:
Trigger event detection module, for detecting whether the upper default screen trigger event of described intelligent terminal is triggered;
Module is heightened in brightness, if the testing result for described trigger event detection module is yes, heightens described intelligence
The screen intensity of terminal;
Described brightness is heightened module and is included:
A front luminance obtaining unit, for obtaining a front brightness value of described screen, a described front brightness value is
Brightness value in the screen intensity as described before screen turning down described intelligent terminal;
First adjustment unit, for being adjusted to a described front brightness value by the present intensity value of described screen;
Or
Ambient brightness acquiring unit, for obtaining the current environment brightness value of described intelligent terminal;
Second adjustment unit, the screen for intelligent terminal according to described current environment brightness value Automatic adjusument is bright
Degree.
A kind of intelligent terminal provided in an embodiment of the present invention, including above-mentioned screen brightness regulating device.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In the embodiment of the present invention, it is under open mode in the mike of intelligent terminal, detect user and described mike
Distance whether meet default near condition;If user meets default close condition with the distance of described mike, adjust
The screen intensity of low described intelligent terminal, so that the present intensity value of described screen is less than default first brightness value.At this
In bright embodiment, when determine user and Mike divide near when, the screen intensity of intelligent terminal is turned down so that its present intensity value
Less than default first brightness value, thus avoid screen brightness too high and cause the stimulation to eyes of user and injury.
Specific embodiment
Embodiments provide a kind of screen luminance adjustment method, device and a kind of intelligent terminal, for solving to use
Family near mike when screen send high intensity light easily the eyes of user are caused stimulate and injure problem.
For enabling the goal of the invention of the present invention, feature, advantage more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, is clearly and completely described it is clear that disclosed below to the technical scheme in the embodiment of the present invention
Embodiment be only a part of embodiment of the present invention, and not all embodiment.Based on the embodiment in the present invention, this area
All other embodiment that those of ordinary skill is obtained under the premise of not making creative work, broadly falls into present invention protection
Scope.
Refer to Fig. 1, in the embodiment of the present invention, a kind of first embodiment of screen luminance adjustment method includes:
101st, the mike in intelligent terminal is under open mode, and whether detection user is full with the distance of described mike
The default close condition of foot;
If 102 users meet default close condition with the distance of described mike, turn down the screen of described intelligent terminal
Curtain brightness, so that the present intensity value of described screen is less than default first brightness value.
It is understood that when the distance of detection discovery user and described mike meets default close condition, can
To think that user sufficiently closed to mike, now, in order to avoid causing to the eyes of user to stimulate and injuring, intelligence can be turned down
The screen intensity of energy terminal.When turning down screen intensity, so that screen intensity does not cause to the eyes of user to pierce after adjusting
Swash, can be standard according to default first brightness value, screen intensity is adjusted to less than till this first brightness value.In addition,
If before turning down screen intensity, the present intensity value of screen, then can be to screen already less than this first brightness value
Brightness is adjusted.
It should be noted that in the present embodiment, when turning down screen intensity, screen intensity can be adjusted to minimum, or even will
Screen is closed, it is believed that the present intensity value of screen is adjusted to 0 when screen is closed.
For above-mentioned steps 101, above-mentioned " distance of detection user and mike ", can be specifically the face of detection user
The distance between with mike, or the distance between the face of detection user and mike.
Further, in the present embodiment, described first brightness value can be previously obtained by following steps:Obtain described intelligence
The current environment brightness value of energy terminal, then determines described first brightness value according to described current environment brightness value.It is appreciated that
, in different environments, eyes of user can be caused the luminance threshold stimulating and injuring also to differ.For example, dim
In the environment of, general brightness can cause the stimulation to human eye;And under bright environment, such as under high noon burning sun, even if handle
Screen intensity is adjusted to highest, does not also result in stimulation and the injury of human eye.Therefore, this first brightness value can be according to current environment
Brightness value is determined.Can be specifically that this first brightness value is multiplied by default percent coefficient equal to current environment brightness value,
Such as first brightness value is equal to the 30% of current environment brightness value.
Further, as shown in Fig. 2 above-mentioned steps 101 can include:
201st, detect whether the current measurement value of the upper range sensor of described intelligent terminal is less than default first apart from threshold
Value;
If the current measurement value of the upper range sensor of 202 described intelligent terminal is less than default first distance threshold, really
The distance determining user with described mike meets default close condition.
For above-mentioned steps 201 and 202 it is to be understood that for intelligent terminal such as smart mobile phone, panel computers, its
On be typically arranged with range sensor, this range sensor can be arranged on one end of mike it is also possible to be positioned close to raise
One end of sound device.When current detection value range sensor is detected is less than default first distance threshold it is believed that using
Family has sufficiently closed to the screen of intelligent terminal.Especially, this first distance threshold can slightly be distal to intelligent terminal's call breath screen
Distance, in order to this programme reduction screen intensity and call breath screen function distinguishing come.
Further, as shown in figure 3, above-mentioned steps 101 can also include:
301st, detect whether the current measurement value of the upper range sensor of described intelligent terminal is more than default second distance threshold
Value;
If the current measurement value of the upper range sensor of 302 described intelligent terminal is more than default second distance threshold value, obtain
Take described intelligent terminal's currently to hold attitude;
303rd, detection is described currently holds whether attitude meets default attitude condition;
If 304 described attitudes of currently holding meet default attitude condition it is determined that the distance of user and described mike
Meet default close condition.
For above-mentioned steps 301~304 it is to be understood that the range sensor on intelligent terminal is arranged on intelligence mostly
Near the front of one end of speaker on the front of energy terminal, such as smart mobile phone.And work as user using as social in wechat, QQ etc. soft
When part carries out phonetic entry, the conventional posture holding mobile phone of user is to keep flat mobile phone front or back upward, then face
Speak near mike.Now although the eyes of user are also close to screen, but because the face of user is not in range sensor
Anterior position, therefore range sensor cannot measure the distance between user and intelligent terminal's screen, also just cannot learn
Whether the distance between user and mike sufficiently close to.Now, (use because the current measurement value of range sensor is generally large
Family is away from range sensor), therefore can detect whether its current measurement value is more than default second distance threshold by step 301
Value come to judge intelligent terminal currently whether be in above-mentioned in the case of.
For above-mentioned steps 302 and 303, when judge to learn intelligent terminal be currently at above-mentioned in the case of when, can obtain
Take described intelligent terminal's currently to hold attitude, then detect and described currently hold whether attitude meets default attitude condition.
Specifically, judgement can then be passed through current by obtaining the current gravity value of gravity sensor on intelligent terminal for the configuration
Gravity value whether in the range of in the range of default first (screen is face-up) or second (screen face down) determining this
Intelligent terminal currently holds whether attitude is to keep flat.Especially, for the ease of the personal settings of user, user can basis
The use habit of oneself, changes above-mentioned the first scope or the second scope, holds attitude to adapt to user in phonetic entry.
For example, smart mobile phone is tilted 45° angle by certain user custom and mike one end inputs voice upward, then this user is adapted to
Ground modification the first scope or the second scope, so that when the gravity decision content of this first scope or the second scope and inclination 45° angle
Gravity value matches, thus when user carries out phonetic entry using this smart mobile phone it may be determined that described intelligent terminal's works as
Before hold attitude and meet default attitude condition.
For above-mentioned steps 302, further, this intelligent terminal can be configured with gyroscope, acceleration transducer,
The parts such as earth inductor, what the parameter being measured by these parts can get intelligent terminal currently holds attitude.
For above-mentioned steps 304 it is to be understood that when described currently hold attitude and meet default attitude condition when,
It is considered that this intelligent terminal be in above-mentioned in the case of, and user or is ready for carrying out phonetic entry, now can be true
The distance determining user with described mike meets default close condition.
Further, after above-mentioned steps 102, the upper default screen trigger event of described intelligent terminal can also be detected
Whether it is triggered;If the upper default screen trigger event of described intelligent terminal is triggered, heighten the screen of described intelligent terminal
Brightness.
Wherein, the described screen intensity heightening described intelligent terminal specifically can include:Obtain described screen front once
Then the present intensity value of described screen is adjusted to a described front brightness value by brightness value.An above-mentioned front brightness value is
Brightness value in the screen intensity as described before screen turning down described intelligent terminal.It is understood that in the present embodiment, in order to
Avoid stimulating eyes of user, when user is near microphone input voice, turns down screen intensity, and work as user and complete phonetic entry
Afterwards, usual user can view in the upper screen of intelligent terminal away from mike and screen, now again for the ease of user
Hold, screen intensity can be heightened as a front brightness value, namely recover the screen intensity before turning down.
In addition, the described screen intensity heightening described intelligent terminal specifically can also include:Obtain described intelligent terminal's
Current environment brightness value, then, the screen intensity of intelligent terminal according to described current environment brightness value Automatic adjusument.Can
To be understood by, if user is while inputting voice, user carries intelligent terminal and is in mobile status, then when user completes language
Sound input after, user possibly into in another dim environment, now, if screen intensity is recovered bright to before turn down
Degree, then substantially can cause to the eyes of user to stimulate and injure.Therefore, it can first obtain the current environment brightness of intelligent terminal
Value, then according to current environment brightness value Automatic adjusument intelligent terminal screen intensity.Above-mentioned described self adaptation is adjusted
Section can be specifically the light sensation backlight adaptation function opening intelligent terminal.
In the present embodiment, above-mentioned screen trigger event may refer to the screen taps event of intelligent terminal, such as user
Clicking on screen to be operated then it is assumed that be there is screen trigger event, now heightening the screen intensity of described intelligent terminal.
Further, due in the case of being in open mode in mike find user near mike when just can recognize
Not it is to look at screen content for user needs to input voice, just need to turn down screen intensity, therefore, if mike cuts out,
The screen intensity of this intelligent terminal then need not be turned down, now can also execute the step of the screen intensity heightening described intelligent terminal
Suddenly.
It should be noted that in above-mentioned steps, before needing using range sensor or gravity sensor, Ke Yijian
Surveying whether intelligent terminal has already turned on range sensor or gravity sensor, if being not switched on, controlling intelligent terminal to open distance
Sensor or gravity sensor, if opening, need not comprehend.In addition, without using range sensor or gravity sensor
When, need to recover this range sensor or gravity sensor to original state.Such as, before the use, range sensor or
Gravity sensor is closed, then after usage, this range sensor or gravity sensor are closed;And using it
Before, range sensor or gravity sensor are in open mode, then after usage, continue to keep its open mode.
In the present embodiment, be under open mode in the mike of intelligent terminal, detection user and described mike away from
From whether meet default near condition;If user meets default close condition with the distance of described mike, turn down institute
State the screen intensity of intelligent terminal, so that the present intensity value of described screen is less than default first brightness value.In the present embodiment
In, when determining that user and Mike divide close, the screen intensity of intelligent terminal is turned down so that its present intensity value is less than default
The first brightness value, thus avoid screen brightness too high and cause the stimulation to eyes of user and injury.In addition, reduction screen
Brightness also helps protects privacy of user in public under environment, reduces the probability being stolen user data by lawless person.
Essentially describe a kind of screen luminance adjustment method above, a kind of screen brightness regulating device will be carried out in detail below
Thin description.
Fig. 4 shows a kind of one example structure figure of screen brightness regulating device in the embodiment of the present invention.
In the present embodiment, a kind of screen brightness regulating device includes:
Near detection module 401, it is under open mode for the mike in intelligent terminal, detect user and described wheat
The distance of gram wind whether meet default near condition;
Module 402 is turned down in brightness, if the distance for user and described mike meets default close condition, turns down
The screen intensity of described intelligent terminal, so that the present intensity value of described screen is less than default first brightness value.
Further, described close detection module can include:
Whether first be less than apart from detector unit, the current measurement value for detecting the upper range sensor of described intelligent terminal
Default first distance threshold;
First determining unit, if for described first apart from detector unit testing result for being it is determined that user and institute
The distance stating mike meets default close condition.
Further, described close detection module can include:
Second distance detector unit, whether the current measurement value for detecting the upper range sensor of described intelligent terminal is more than
Default second distance threshold value;
Hold attitude acquiring unit, if the testing result for described second distance detector unit is yes, obtain described
Intelligent terminal currently holds attitude;
Hold posture detecting unit, described currently hold whether attitude meets default attitude condition for detecting;
Second determining unit, if for the described testing result holding posture detecting unit for being it is determined that user and institute
The distance stating mike meets default close condition.
Further, described first brightness value can be by being previously obtained with lower module:
Current environment brightness acquisition module, for obtaining the current environment brightness value of described intelligent terminal;
First brightness value determining module, for determining described first brightness value according to described current environment brightness value.
Further, described screen brightness regulating device can also include:
Trigger event detection module, for detecting whether the upper default screen trigger event of described intelligent terminal is triggered;
Module is heightened in brightness, if the testing result for described trigger event detection module is yes, heightens described intelligence
The screen intensity of terminal;
Described brightness is heightened module and can be included:
A front luminance obtaining unit, for obtaining a front brightness value of described screen, a described front brightness value is
Brightness value in the screen intensity as described before screen turning down described intelligent terminal;
First adjustment unit, for being adjusted to a described front brightness value by the present intensity value of described screen;
Or
Ambient brightness acquiring unit, for obtaining the current environment brightness value of described intelligent terminal;
Second adjustment unit, the screen for intelligent terminal according to described current environment brightness value Automatic adjusument is bright
Degree.
The embodiment of the invention also discloses a kind of intelligent terminal, this intelligent terminal includes appointing of Fig. 4 corresponding embodiment description
Anticipate a kind of screen brightness regulating device.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description,
Device and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
It should be understood that disclosed system in several embodiments provided herein, apparatus and method are permissible
Realize by another way.For example, device embodiment described above is only schematically, for example, described unit
Divide, only a kind of division of logic function, actual can have other dividing mode when realizing, for example multiple units or assembly
Can in conjunction with or be desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or
The coupling each other discussing or direct-coupling or communication connection can be by some interfaces, the indirect coupling of device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The described unit illustrating as separating component can be or may not be physically separate, show as unit
The part showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.The mesh to realize this embodiment scheme for some or all of unit therein can be selected according to the actual needs
's.
In addition, can be integrated in a processing unit in each functional unit in each embodiment of the present invention it is also possible to
It is that unit is individually physically present it is also possible to two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be to be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If described integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art being contributed or all or part of this technical scheme can be in the form of software products
Embody, this computer software product is stored in a storage medium, including some instructions with so that a computer
Equipment (can be personal computer, server, or network equipment etc.) executes the complete of each embodiment methods described of the present invention
Portion or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
The above, above example only in order to technical scheme to be described, is not intended to limit;Although with reference to front
State embodiment the present invention has been described in detail, it will be understood by those within the art that:It still can be to front
State the technical scheme described in each embodiment to modify, or equivalent is carried out to wherein some technical characteristics;And these
Modification or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.