CN106768311A - A kind of environment light detection method, device and terminal - Google Patents
A kind of environment light detection method, device and terminal Download PDFInfo
- Publication number
- CN106768311A CN106768311A CN201611105247.5A CN201611105247A CN106768311A CN 106768311 A CN106768311 A CN 106768311A CN 201611105247 A CN201611105247 A CN 201611105247A CN 106768311 A CN106768311 A CN 106768311A
- Authority
- CN
- China
- Prior art keywords
- ambient light
- intensity level
- light
- full spectrum
- intensity
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 25
- 238000001228 spectrum Methods 0.000 claims abstract description 92
- 238000000034 method Methods 0.000 claims abstract description 11
- 230000015654 memory Effects 0.000 claims description 15
- 230000008859 change Effects 0.000 abstract description 5
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000002093 peripheral effect Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 238000007689 inspection Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000052 comparative effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 238000002834 transmittance Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01J—MEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
- G01J1/00—Photometry, e.g. photographic exposure meter
- G01J1/10—Photometry, e.g. photographic exposure meter by comparison with reference light or electric value provisionally void
Abstract
The embodiment of the invention discloses a kind of environment light detection method, device and terminal, it is related to field of terminal technology, wherein, the method includes:Ambient light is acquired;The intensity level of the ambient light for collecting is obtained based on set algorithm;When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light redefines the intensity level of the ambient light.The embodiment of the present invention can accurately detect the intensity of ambient light under low light environment, it is to avoid luminous intensity and the unmatched problem of screen intensity, or luminous intensity change the problem of the screen flicker for causing near zero.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to a kind of environment light detection method, device and terminal.
Background technology
With the development of the communication technology, the use of terminal is more and more universal, and terminal has become people's life cannot be lacked
Few instrument.
At present, the function of terminal is a lot, and people can watch video, browse webpage etc. using terminal.When people are to terminal
When being operated, if under low light environment, terminal adjusts the brightness of screen with to human eye according to the intensity of the ambient light for detecting
Protected.
But, inventor has found that prior art has following defect during execution is of the invention:When terminal is in
When under low light environment, it is impossible to accurately detect the intensity of ambient light, the intensity for detecting is caused to be mismatched with screen intensity;Or
Under low light environment, because the intensity of the ambient light for detecting is inaccurate, it is easy to change near zero, cause screen flicker.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of environment light detection method, device and terminal, under low light environment,
The intensity of ambient light can accurately be detected, it is to avoid luminous intensity is mismatched with screen intensity, or luminous intensity changes near zero
The problem of the screen flicker for causing.
In a first aspect, a kind of environment light detection method is the embodiment of the invention provides, including:
Ambient light is acquired;
The intensity level of the ambient light for collecting is obtained based on set algorithm;
When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light is again true
The intensity level of the fixed ambient light.
Second aspect, the embodiment of the present invention additionally provides a kind of ambient light detection device, including:
Acquisition module, for being acquired to ambient light;
Intensity level acquisition module, the intensity level for obtaining the ambient light for collecting based on set algorithm;
Intensity level redefines module, for when the intensity level of the ambient light for getting is less than setting value, being based on
The full spectrum of the ambient light redefines the intensity level of the ambient light.
The third aspect, the embodiment of the invention provides a kind of terminal, including:Processor and memory;
The memory, for storing executable program code;
The processor is run executable with described by reading the executable program code stored in the memory
The corresponding program of program code, for performing:
Ambient light is acquired;
The intensity level of the ambient light for collecting is obtained based on set algorithm;
When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light is again true
The intensity level of the fixed ambient light.
Technical scheme provided in an embodiment of the present invention, when the intensity level of the ambient light for obtaining is less than setting value, based on ring
The full spectrum of border light redefines the intensity level of light, under low light environment, can accurately detect the intensity of ambient light, it is to avoid light
Intensity is mismatched with screen intensity, or luminous intensity changes the problem of the screen flicker for causing near zero.
Brief description of the drawings
By the detailed description made to non-limiting example made with reference to the following drawings of reading, it is of the invention other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of environment light detection method flow chart provided in an embodiment of the present invention;
Fig. 2 is another environment light detection method flow chart provided in an embodiment of the present invention;
Fig. 3 is another environment light detection method flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of ambient light detection device structured flowchart provided in an embodiment of the present invention;
Fig. 5 is a kind of terminal structure schematic diagram provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just
Part rather than full content related to the present invention is illustrate only in description, accompanying drawing.
Fig. 1 is a kind of environment light detection method flow chart provided in an embodiment of the present invention, and methods described is detected by ambient light
Device is performed, and described device is performed by software and/or hardware, and described device is configured in the terminals such as mobile phone.Such as Fig. 1
Shown, the technical scheme that the present embodiment is provided is specific as follows:
S110:Ambient light is acquired.
In the present embodiment, ambient light includes the visible ray and non-visible light of terminal surrounding, and non-visible light includes infrared
Light and ultraviolet light etc..Collection to ambient light can be acquired by ambient light sensor, or by other in terminal
Equipment can also be acquired to ambient light.
S120:The intensity level of the ambient light for collecting is obtained based on set algorithm.
In the present embodiment, it is exemplary, the intensity level that the ambient light for collecting is obtained based on set algorithm, bag
Include:The intensity level of the ambient light for collecting is obtained based on formula below:
Lux=ray × a-ir × b
Wherein, lux is the intensity level of the ambient light for obtaining, and ray is the intensity that the full spectrum based on ambient light is calculated
Value;Ir is the intensity level of the spectrum calculating of the visible ray based on non-visible light in ambient light and setting wave-length coverage, and a, b are
Setting coefficient, the attribute to terminal current touch screen is related.
Wherein, the light transmittance of the attribute of touch-screen including touch-screen, and ink etc., can also include other of touch-screen
Attribute.The full spectrum of ambient light includes the spectrum of all light waves of ambient light for detecting, including the spectrum of visible ray and non-
The spectrum of visible ray.Ray is the intensity level that the full spectrum based on ambient light is calculated, if the scope of the full spectrum of the ambient light for obtaining
It is 400nm-1200nm, then the spectrum based on the 400-1200nm for getting is determined the value of ray.Ir is based in ambient light
The intensity level that the spectrum of the visible ray of non-visible light and setting wave-length coverage is calculated.Non-visible light can also be all detecting
Non-visible light, or preset wavelength scope non-visible light, such as 1000nm-1200nm.For example, the full spectrum of ambient light
Scope is 400nm-1200nm, and the visible wavelength range for setting wavelength is 700nm-790nm, or can also be other models
Enclose.
It should be noted that being also based on other public affairs based on the intensity level that set algorithm obtains the ambient light for collecting
Formula is calculated.For example, lux=ray × a-ir × b-c, wherein, c is the corrected parameter of ambient light intensity, or corrected parameter
Can also be other forms.
S130:When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light
Redefine the intensity level of the ambient light.
In the present embodiment, setting value is set as needed.It is exemplary, it is strong when the ambient light for getting
When angle value is less than setting value, the intensity level that the full spectrum based on the ambient light redefines the ambient light includes:Work as acquisition
When the intensity level of the ambient light for arriving is 0, the full spectrum based on the ambient light redefines the intensity level of the ambient light,
Luminous intensity can be avoided easily to be zeroed the partially dark problem of the screen for causing.
When the intensity level of the ambient light for obtaining is less than setting value, the full spectrum based on ambient light redefines ambient light
Intensity level can include:Intensity level of the intensity level that full spectrum based on ambient light is calculated as the ambient light for redefining.
Or can also include:The dim light threshold value of full spectrum and setting based on ambient light redefines the intensity level of ambient light.
Or including:The spectrum of the visible ray of full spectrum and setting wave-length coverage based on ambient light is redefined (modification ir
Value).Or redefined including the full spectrum based on ambient light and the non-spectrum that can see light.Or can also wrap
The intensity level that full spectrum and other specification based on ambient light redefine ambient light is included, can be realized to ambient light again
It is determined that so that the intensity level of the ambient light for obtaining is accurate.
In the present embodiment, when the intensity level of the ambient light for getting is more than setting value, to the intensity level of ambient light not
Redefined.
In the present embodiment, when being less than setting value by the intensity level of the ambient light when acquisition, the full spectrum based on ambient light
The intensity level of light is redefined, the intensity of ambient light under low light environment, can be accurately detected, it is to avoid luminous intensity is bright with screen
Degree is mismatched, or luminous intensity changes the problem of the screen flicker for causing near zero.
Fig. 2 is a kind of environment light detection method flow chart provided in an embodiment of the present invention, on the basis of above-described embodiment,
Also perform following operation:
Based on the intensity level of the ambient light for redefining, the brightness of terminal screen is adjusted.
Thus, the intensity level of the ambient light by redefining, adjusts the brightness of terminal screen, can be under low light environment
Luminous intensity is avoided to be mismatched with screen intensity, or luminous intensity changes the problem of the screen flicker for causing near zero.
Based on above-mentioned optimization, as shown in Fig. 2 the technical scheme that the present embodiment is provided is specific as follows:
S210:Ambient light is acquired.
S220:The intensity level of the ambient light for collecting is obtained based on set algorithm.
S230:When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light
Redefine the intensity level of the ambient light.
S240:Based on the intensity level of the ambient light for redefining, the brightness of terminal screen is adjusted.
In the present embodiment, when under low light environment, especially in the environment of light intensity value is less than 10, based on formula
The intensity level of the ambient light that lux=ray × a-ir × b is calculated is often smaller, or is 0, easily causes terminal screen
Brightness and the unmatched problem of the intensity level (e.g., screen intensity is dark) of ambient light.Accordingly, it would be desirable to be based on the full spectrum of ambient light
The intensity level of ambient light is redefined, according to the intensity level of the ambient light for redefining, the brightness of terminal screen is adjusted.
For example, when the intensity level of the ambient light for obtaining is less than by the intensity level that formula lux=ray × a-ir × b is calculated
During setting value, the intensity level of the ambient light that will can be calculated by the full spectrum of ambient light is used as the strong of the ambient light for redefining
Angle value.If under low light environment, a is that 1, b is 2, by calculating the value of ray for the value of 10, ir is 5, by formula lux=ray
The intensity level of the ambient light that × a-ir × b is calculated is 0, and by the intensity level (0) of ambient light, the brightness value that can control screen is
50。
Due to the presence of a small amount of light, the intensity level of ambient light is not actually for 0 to the intensity level of ambient light, it is necessary to carry out
Redefine, using the value of ray as the ambient light for redefining intensity level, therefore the intensity level of the ambient light for redefining is
10, the brightness value of intensity level (10) the adjustment terminal screen according to the ambient light for redefining is 60, to avoid low light environment screen
The partially dark problem of curtain brightness.Wherein, the brightness of screen is adjusted according to the intensity level of ambient light, when ambient light intensity level compared with
Big value, the brightness value of terminal screen is also larger.When the intensity level of ambient light is 0, the brightness value of terminal screen is minimum.
And under low light environment, due to the intensity level of ambient light calculated by formula lux=ray × a-ir × b
Easily change near zero, cause the flicker of terminal screen, by redefining the intensity level of ambient light, improve environment
The accuracy of the calculating of the intensity level of light, it is to avoid screen flicker problem.
It should be noted that the exemplary intensity level using the light calculated based on the full spectrum of ambient light of the present embodiment is used as again
The intensity level of the ambient light of determination, but a kind of only example of the present embodiment, redefine for the intensity level of ambient light
Method can also be other forms, to realize accurately calculating the intensity level of the light under low light environment.
In the present embodiment, the intensity level of the ambient light by redefining adjusts the brightness of terminal screen, can be in dim light
Luminous intensity is avoided to be mismatched with screen intensity under environment, or luminous intensity changes the problem of the screen flicker for causing near zero.
Fig. 3 is a kind of environment light detection method flow chart provided in an embodiment of the present invention, on the basis of above-described embodiment,
Optionally, the full spectrum based on the ambient light redefines the intensity level of the ambient light, including:
The dim light threshold value of full spectrum and setting based on the ambient light redefines the intensity level of the ambient light.
Thus, the intensity level of ambient light, Neng Goujian are redefined by the full spectrum of ambient light and setting dim light threshold value
The intensity level of the light under low light environment is measured, the light under low light environment is effectively caught, the inspection of luminous intensity under low light environment is improved
Survey precision.
Based on above-mentioned optimization, as shown in figure 3, the technical scheme that the present embodiment is provided is specific as follows:
S310:Ambient light is acquired.
S320:The intensity level of the ambient light for collecting is obtained based on set algorithm.
S330:When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light
And the dim light threshold value of setting redefines the intensity level of the ambient light.
In the present embodiment, it is exemplary, the dim light door of the full spectrum and setting based on the ambient light for detecting
Limit value redefines the intensity level of ambient light, including:Full spectrum based on the ambient light determines the corresponding light of the full spectrum
Intensity level;If the dim light threshold value of the intensity level more than setting of the corresponding light of the full spectrum, the dim light threshold value is made
It is the intensity level of the ambient light for redefining.If the intensity level of the corresponding light of the full spectrum is less than setting dim light thresholding
Value, using the intensity level of the corresponding light of the full spectrum as the ambient light for redefining intensity level.
Specifically, dim light threshold value be low light condition under, the limiting value of luminous intensity.When ambient light intensity level be less than or
During equal to dim light threshold value, current environment belongs to low light environment.In the present embodiment, optionally, dim light threshold value is 10.Dim light door
Limit value is adjusted also dependent on the self performance of needs or terminal.
In the present embodiment, when the intensity level of the ambient light for obtaining is less than setting value (or being 0), will be based on ambient light
Full spectrum determine the intensity level of the corresponding light of full spectrum, and by the intensity level of the corresponding light of full spectrum and setting dim light threshold value
It is compared, the intensity level of the ambient light redefined based on comparative result.
Specifically, when the intensity level of the corresponding light of full spectrum is more than the dim light threshold value for setting, dim light threshold value is made
It is the intensity level of ambient light for redefining, makes light intensity value of the intensity level of the ambient light for redefining under low light environment
Within the scope of, improve the accuracy that ambient light intensity is calculated.In the present embodiment, the full spectrum calculated using the full spectrum of ambient light
Intensity level (ray) value of corresponding light is stored in the register in terminal, and weight is set using the original value stored in register
The intensity level of the new ambient light for determining, when ray values are more than dim light threshold value, dim light threshold value is equal to by ray values.
When the intensity level of the corresponding light of full spectrum is less than the dim light threshold value for setting, by the intensity of the corresponding light of full spectrum
As the intensity level of the ambient light for redefining, the intensity level of the light under low light environment can be effectively monitored, improve environmental light intensity
Spend the accuracy for calculating, it is to avoid the situation that ambient light intensity is easily zeroed.When the intensity level of the corresponding light of full spectrum is less than dim light
During threshold value, ray values do not change in register, using the original value of ray values as the ambient light for redefining intensity level.
In the present embodiment, for example, when the intensity level of ambient light for obtaining is less than setting value (or being 0),
If the intensity level of the light of the calculating based on full spectrum is 14, the dim light threshold value for setting is 10, because 14 more than 10, so will be weak
Light threshold value 10 is revised as 10, modification using by the value in ray registers as the intensity level of the ambient light for redefining by 14
The value of ray afterwards as the ambient light for redefining intensity level.If the intensity level of the light calculated based on full spectrum is 5, due to 5
Less than 10, the intensity level 5 of the light that full spectrum is calculated as the intensity level of the light for redefining will be based on, the value (5) of ray is not repaiied
Change.Thus, when obtain ambient light intensity level be less than setting value when, the intensity level of the ambient light for redefining be consistently less than or
Person is equal to dim light threshold value, terminal is accurately judged that current environment is low light environment, realizes to the luminous intensity under low light environment
Accurate detection.
It should be noted that full spectrum and the dim light threshold value of setting by ambient light exemplary in the present embodiment
The intensity level of ambient light is redefined, but this is only an example of the present embodiment, in other embodiments of the present invention, can root
The intensity of ambient light is determined by the full spectrum of ambient light, the dim light threshold value of setting and other specification according to actual conditions
Value.
It should be noted that exemplary one example that constitutes S310-S330 of the present embodiment performs a kind of ambient light inspection
Survey method, but this implementation is only a kind of example, in other embodiments of the present invention, can also be with S240 groups by S310-S330
Into an example, a kind of environment light detection method is performed.
In the present embodiment, the intensity level of ambient light is redefined by the full spectrum of ambient light and setting dim light threshold value,
The intensity level of the light being able to detect that under low light environment, effectively catches the light under low light environment, improves light intensity under low light environment
The accuracy of detection of degree.
Fig. 4 is a kind of ambient light detection device provided in an embodiment of the present invention, and described device is detected for performing environment light
Method, described device redefines module 430 including acquisition module 410, intensity level acquisition module 420 and intensity level.
Wherein, acquisition module 410, for being acquired to ambient light;
Intensity level acquisition module 420, the intensity level for obtaining the ambient light for collecting based on set algorithm;
Intensity level redefines module 430, for when the ambient light for getting intensity level be less than setting value when, base
The intensity level of the ambient light is redefined in the full spectrum of the ambient light.
Further, intensity level redefines module 430, specifically for:
When the intensity level of the ambient light for getting is 0, the full spectrum based on the ambient light redefines described
The intensity level of ambient light.
Further, the intensity level acquisition module 420, specifically for:
The intensity level of the ambient light for collecting is obtained based on formula below:
Lux=ray × a-ir × b
Wherein, lux is the intensity level of the ambient light for obtaining, and ray is the intensity that the full spectrum based on ambient light is calculated
Value;Ir is that the spectrum of the visible ray based on non-visible light in ambient light and setting wave-length coverage calculates intensity level, and a, b are and set
Determine coefficient, the attribute to terminal current touch screen is related.
Further, described device also includes:Screen intensity adjusting module 440, for based on the ring for redefining
The intensity level of border light, adjusts the brightness of terminal screen.
Further, the intensity level redefines module 430, specifically for:
The dim light threshold value of full spectrum and setting based on the ambient light redefines the intensity level of the ambient light.
Further, the intensity level redefines module 430 and redefines unit 431 and including the first intensity level
Two intensity levels redefine unit 432,
First intensity level redefines unit 431, and the full light is determined for the full spectrum based on the ambient light
Compose the intensity level of corresponding light;
If the dim light threshold value of the intensity level more than setting of the corresponding light of the full spectrum, using the dim light threshold value as
The intensity level of the ambient light for redefining.
Second intensity level redefines unit 432, if for the corresponding light of the full spectrum intensity level less than setting
Determine dim light threshold value, using the intensity level of the corresponding light of the full spectrum as the ambient light for redefining intensity level.
A kind of ambient light detection device that the present embodiment is provided, when the intensity level of the ambient light for obtaining is less than setting value 0,
Full spectrum based on ambient light redefines the intensity level of light, under low light environment, can accurately detect the intensity of ambient light,
Avoid luminous intensity and the unmatched problem of screen intensity, or luminous intensity is beated the problem of the screen flicker for causing near zero.
A kind of terminal is the embodiment of the invention provides, can integrated ambient light detection provided in an embodiment of the present invention in the terminal
Device.Fig. 5 is a kind of structural representation of terminal provided in an embodiment of the present invention.As shown in figure 5, the terminal can include:Shell
Body (not shown), memory 501, central processing unit (Central Processing Unit, CPU) 502 are (also known as treatment
Device, hereinafter referred to as CPU), circuit board (not shown), touch-screen 512 and power circuit (not shown).The touch-screen
512, it is input into the processor for user's operation to be converted into electric signal, and show visual output signal;The circuit board
It is placed in the interior volume that the touch-screen 512 is surrounded with the housing;The CPU502 and the memory 501 are arranged on institute
State on circuit board;The power circuit, powers for each circuit or device for the terminal;The memory 501, is used for
Storage executable program code;The CPU502 is transported by reading the executable program code stored in the memory 501
Row program corresponding with the executable program code, for performing:Ambient light is acquired;Obtained based on set algorithm
The intensity level of the ambient light for collecting;When the intensity level of the ambient light for getting is less than setting value, based on the environment
The full spectrum of light redefines the intensity level of the ambient light.
The terminal also includes:Peripheral Interface 503, RF (Radio Frequency, radio frequency) circuit 505, voicefrequency circuit
506th, loudspeaker 511, power management chip 508, input/output (I/O) subsystem 509, other input/control devicess 510 with
And outside port 504, these parts are communicated by one or more communication bus or holding wire 507.
It should be understood that graphic terminal 500 is only an example of terminal, and terminal 500 can have than figure
Shown in more or less parts, two or more parts can be combined, or can have different portions
Part is configured.Various parts shown in figure can be including including one or more signal transactings and/or application specific integrated circuit
Hardware, software or hardware and software combination in realize.
The terminal of ambient light detection device of being integrated with that the present embodiment is provided is described in detail below, the terminal with
As a example by mobile phone.
Memory 501, the memory 501 can be accessed by CPU502, Peripheral Interface 503 etc., and the memory 501 can
With including high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memories,
Flush memory device or other volatile solid-state parts.
The input of equipment and output peripheral hardware can be connected to CPU502 and deposited by Peripheral Interface 503, the Peripheral Interface 503
Reservoir 501.
I/O subsystems 509, the I/O subsystems 509 can be by the input/output peripheral in equipment, such as touch-screen 512
With other input/control devicess 510, Peripheral Interface 503 is connected to.I/O subsystems 509 can include the He of display controller 5091
One or more input controllers 5092 for controlling other input/control devicess 510.Wherein, one or more input controls
Device processed 5092 receives electric signal or sends electric signal to other input/control devicess 510 from other input/control devicess 510,
Other input/control devicess 510 can be including physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour
Vertical pole, click roller.What deserves to be explained is, input controller 5092 can with it is following any one be connected:Keyboard, infrared port,
The instruction equipment of USB interface and such as mouse.
Touch-screen 512, the touch-screen 512 is the input interface and output interface between user terminal and user, can
Depending on output display to user, visual output can be including figure, text, icon, video etc..
Display controller 5091 in I/O subsystems 509 receives electric signal or is sent out to touch-screen 512 from touch-screen 512
Electric signals.Contact on the detection touch-screen of touch-screen 512, the contact that display controller 5091 will be detected is converted to and display
The interaction of the user interface object on touch-screen 512, that is, realize man-machine interaction, is displayed in the user interface on touch-screen 512
Object can be the icon of running game, the icon etc. that is networked to corresponding network.What deserves to be explained is, equipment can also include light
Mouse, light mouse is the extension for not showing the visual touch sensitive surface for exporting, or the touch sensitive surface formed by touch-screen.
RF circuits 505, are mainly used in setting up the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network
The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 505 are received and send RF letters
Number, RF signals are also referred to as electromagnetic signal, and RF circuits 505 convert electrical signals to electromagnetic signal or electromagnetic signal is converted into telecommunications
Number, and communicated with communication network and other equipment by the electromagnetic signal.RF circuits 505 can be included for performing
The known circuit of these functions, it includes but is not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one
Individual or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, ID mould
Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 506, is mainly used in receiving voice data from Peripheral Interface 503, and the voice data is converted into telecommunications
Number, and the electric signal is sent to loudspeaker 511.
Loudspeaker 511, for the voice signal for receiving mobile phone from wireless network by RF circuits 505, is reduced to sound
And play the sound to user.
Power management chip 508, for being powered by the hardware that CPU502, I/O subsystem and Peripheral Interface are connected
And power management.
The terminal that the present embodiment is provided is used to perform the environment light detection method described in the various embodiments described above, its know-why
It is similar with the technique effect for producing, repeat no more here.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (13)
1. a kind of environment light detection method, it is characterised in that including:
Ambient light is acquired;
The intensity level of the ambient light for collecting is obtained based on set algorithm;
When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light redefines institute
State the intensity level of ambient light.
2. method according to claim 1, it is characterised in that
When the intensity level when the ambient light for getting is less than setting value, the full spectrum based on the ambient light is again true
The intensity level of the fixed ambient light, including:
When the intensity level of the ambient light for getting is 0, the full spectrum based on the ambient light redefines the environment
The intensity level of light.
3. method according to claim 1, it is characterised in that the algorithm based on setting obtains the ambient light for collecting
Intensity level include:
The intensity level of the ambient light for collecting is obtained based on formula below:
Lux=ray × a-ir × b
Wherein, lux is the intensity level of the ambient light for obtaining, and ray is the intensity that the full spectrum based on the ambient light is calculated
Value;Ir is that the spectrum of the visible ray based on non-visible light in the ambient light and setting wave-length coverage calculates intensity level, and a, b are equal
It is setting coefficient, the attribute to terminal current touch screen is related.
4. method according to claim 3, it is characterised in that also include:Based on the strong of the ambient light for redefining
Angle value, adjusts the brightness of terminal screen.
5. method according to claim 3, it is characterised in that the full spectrum based on the ambient light redefines institute
The intensity level of ambient light is stated, including:
The dim light threshold value of full spectrum and setting based on the ambient light redefines the intensity level of the ambient light.
6. method according to claim 5, it is characterised in that the full spectrum based on the ambient light for detecting and set
Fixed dim light threshold value redefines the intensity level of ambient light, including:
Full spectrum based on the ambient light determines the intensity level of the corresponding light of the full spectrum;
If the intensity level of the corresponding light of the full spectrum is more than the dim light threshold value, using the dim light threshold value as again true
The intensity level of the fixed ambient light;
If the intensity level of the corresponding light of the full spectrum is less than the dim light threshold value, by the intensity of the corresponding light of the full spectrum
Value as the ambient light for redefining intensity level.
7. a kind of ambient light detection device, it is characterised in that including:
Acquisition module, for being acquired to ambient light;
Intensity level acquisition module, the intensity level for obtaining the ambient light for collecting based on set algorithm;
Intensity level redefines module, for when the intensity level of the ambient light for getting is less than setting value, based on described
The full spectrum of ambient light redefines the intensity level of the ambient light.
8. device according to claim 7, it is characterised in that
The intensity level redefines module, specifically for:
When the intensity level of the ambient light for getting is 0, the full spectrum based on the ambient light redefines the environment
The intensity level of light.
9. device according to claim 7, it is characterised in that the intensity level acquisition module, specifically for:
The intensity level of the ambient light for collecting is obtained based on formula below:
Lux=ray × a-ir × b
Wherein, lux is the intensity level of the ambient light for obtaining, and ray is the intensity that the full spectrum based on the ambient light is calculated
Value;Ir is that the spectrum of the visible ray based on non-visible light in the ambient light and setting wave-length coverage calculates intensity level, and a, b are equal
It is setting coefficient, the attribute to terminal current touch screen is related.
10. device according to claim 9, it is characterised in that also include:Screen intensity adjusting module, for based on weight
The intensity level of the new ambient light for determining, adjusts the brightness of terminal screen.
11. devices according to claim 9, it is characterised in that the intensity level redefine module specifically for:
The dim light threshold value of full spectrum and setting based on the ambient light redefines the intensity level of the ambient light.
12. devices according to claim 11, it is characterised in that the intensity level redefines module includes the first intensity
Value redefines unit and the second intensity level redefines unit,
First intensity level redefines unit, determines that the full spectrum is corresponding for the full spectrum based on the ambient light
The intensity level of light;
If the intensity level of the corresponding light of the full spectrum is more than the dim light threshold value, using the dim light threshold value as again true
The intensity level of the fixed ambient light;
Second intensity level redefines unit, if for the corresponding light of the full spectrum intensity level less than dim light door
Limit value, using the intensity level of the corresponding light of the full spectrum as the ambient light for redefining intensity level.
A kind of 13. terminals, it is characterised in that including:Processor and memory;
The memory, for storing executable program code;
The processor is run and the executable program by reading the executable program code stored in the memory
The corresponding program of code, for performing:
Ambient light is acquired;
The intensity level of the ambient light for collecting is obtained based on set algorithm;
When the intensity level of the ambient light for getting is less than setting value, the full spectrum based on the ambient light redefines institute
State the intensity level of ambient light.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611105247.5A CN106768311B (en) | 2016-12-05 | 2016-12-05 | A kind of environment light detection method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611105247.5A CN106768311B (en) | 2016-12-05 | 2016-12-05 | A kind of environment light detection method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106768311A true CN106768311A (en) | 2017-05-31 |
CN106768311B CN106768311B (en) | 2018-06-01 |
Family
ID=58874263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611105247.5A Active CN106768311B (en) | 2016-12-05 | 2016-12-05 | A kind of environment light detection method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106768311B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107665698A (en) * | 2017-11-13 | 2018-02-06 | 维沃移动通信有限公司 | Ambient light intensity compensation method and device |
CN110285852A (en) * | 2019-06-13 | 2019-09-27 | 牛利松 | A kind of outdoor environment automation multi-parameter real-time detecting system and detection method |
CN112229507A (en) * | 2020-10-15 | 2021-01-15 | Tcl通讯(宁波)有限公司 | Ambient light detection method and device, storage medium and mobile terminal |
CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079913A (en) * | 2006-05-26 | 2007-11-28 | 上海晨兴电子科技有限公司 | Mobile phone part with sensitization function |
CN104835811A (en) * | 2015-04-15 | 2015-08-12 | 绍兴联同电子科技有限公司 | Full-spectrum distance-sensing three-in-one light sensing module packaging assembly and preparation technology |
CN105282334A (en) * | 2015-10-10 | 2016-01-27 | 上海斐讯数据通信技术有限公司 | Mobile terminal and method for adjusting screen brightness of mobile terminal |
CN106060285A (en) * | 2016-08-15 | 2016-10-26 | 广东欧珀移动通信有限公司 | Backlight control method and device, and mobile terminal |
-
2016
- 2016-12-05 CN CN201611105247.5A patent/CN106768311B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101079913A (en) * | 2006-05-26 | 2007-11-28 | 上海晨兴电子科技有限公司 | Mobile phone part with sensitization function |
CN104835811A (en) * | 2015-04-15 | 2015-08-12 | 绍兴联同电子科技有限公司 | Full-spectrum distance-sensing three-in-one light sensing module packaging assembly and preparation technology |
CN105282334A (en) * | 2015-10-10 | 2016-01-27 | 上海斐讯数据通信技术有限公司 | Mobile terminal and method for adjusting screen brightness of mobile terminal |
CN106060285A (en) * | 2016-08-15 | 2016-10-26 | 广东欧珀移动通信有限公司 | Backlight control method and device, and mobile terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107665698A (en) * | 2017-11-13 | 2018-02-06 | 维沃移动通信有限公司 | Ambient light intensity compensation method and device |
CN110285852A (en) * | 2019-06-13 | 2019-09-27 | 牛利松 | A kind of outdoor environment automation multi-parameter real-time detecting system and detection method |
CN112865862A (en) * | 2019-11-12 | 2021-05-28 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
CN112865862B (en) * | 2019-11-12 | 2022-05-13 | Oppo广东移动通信有限公司 | Ambient light detection method and apparatus for optical communication between electronic devices |
CN112229507A (en) * | 2020-10-15 | 2021-01-15 | Tcl通讯(宁波)有限公司 | Ambient light detection method and device, storage medium and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106768311B (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943345B (en) | Method and device for calibrating proximity sensor, storage medium and electronic equipment | |
US11011131B2 (en) | Off-screen control method determining signal intensity calibration value for filmed display screen | |
CN107945769B (en) | Ambient light intensity detection method and device, storage medium and electronic equipment | |
CN107942306B (en) | Method and device for calibrating proximity sensor, storage medium and electronic equipment | |
CN106782431A (en) | A kind of screen backlight brightness adjusting method, device and mobile terminal | |
CN107422915B (en) | Response control mehtod, device, storage medium and the terminal of touch screen | |
CN106060285A (en) | Backlight control method and device, and mobile terminal | |
CN106768311B (en) | A kind of environment light detection method, device and terminal | |
US20190034022A1 (en) | Method, mobile terminal and non-transitory computer-readable storage medium for adjusting scanning frequency of touch screen | |
CN106225806B (en) | Calibrate the method, device and mobile terminal of Magnetic Sensor | |
CN106060284B (en) | The method, device and mobile terminal of backlight control | |
CN106790978A (en) | The control method of mobile terminal screen state, device and mobile terminal | |
CN110784915B (en) | Power consumption control method of electronic equipment and electronic equipment | |
CN108512615B (en) | Signal intensity display method and mobile terminal | |
CN106097984B (en) | The method, device and mobile terminal of proximity sensor are opened in backlight adjustment | |
CN106506825A (en) | A kind of control method of touch-screen, device and mobile terminal | |
CN108108137A (en) | Display control method and related product | |
CN107782250B (en) | Depth information measuring method and device and mobile terminal | |
CN108170310B (en) | Touch screen control method and mobile terminal | |
CN106708332B (en) | threshold setting method and device of proximity sensor and terminal | |
CN109947345B (en) | Fingerprint identification method and terminal equipment | |
CN106933684A (en) | A kind of control method of broadcast recipients, device and mobile terminal | |
CN109478237B (en) | Light source identification method and device | |
CN106293006B (en) | Run the method, device and mobile terminal in Magnetic Sensor calibration algorithm library | |
CN106791108A (en) | A kind of threshold value update method of proximity transducer, device and terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |