CN107941330A - Ambient light intensity detection method, device, storage medium and electronic equipment - Google Patents
Ambient light intensity detection method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN107941330A CN107941330A CN201711174645.7A CN201711174645A CN107941330A CN 107941330 A CN107941330 A CN 107941330A CN 201711174645 A CN201711174645 A CN 201711174645A CN 107941330 A CN107941330 A CN 107941330A
- Authority
- CN
- China
- Prior art keywords
- light intensity
- value
- ambient light
- rgb
- spectrum informations
- 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 47
- 238000001228 spectrum Methods 0.000 claims abstract description 102
- 230000007613 environmental effect Effects 0.000 claims abstract description 45
- 238000004590 computer program Methods 0.000 claims description 17
- 238000000926 separation method Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 claims description 10
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 9
- 239000003086 colorant Substances 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000011521 glass Substances 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 239000004033 plastic Substances 0.000 description 1
- 229920003023 plastic Polymers 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000003595 spectral effect Effects 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/42—Photometry, e.g. photographic exposure meter using electric radiation detectors
- G01J1/4204—Photometry, e.g. photographic exposure meter using electric radiation detectors with determination of ambient light
Abstract
The embodiment of the present application provides a kind of ambient light intensity detection method, device, storage medium and electronic equipment.The ambient light intensity detection method, including:Obtain ambient light intensity detected value;Determine the RGB spectrum informations of detected light;The target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations is obtained, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen;Ambient light intensity detected value is adjusted according to target light intensity value, to obtain environmental light intensity angle value.In the program, electronic equipment can get corresponding data according to the RGB spectrum informations of display screen, it is adjusted with the detected value to ambient light sensor, so as to reduce influence of the light to electronic equipment detection ambient light intensity caused by display on-screen-display message, the accuracy of detection ambient light intensity is improved.
Description
Technical field
This application involves technical field of electronic equipment, more particularly to a kind of ambient light intensity detection method, device, storage are situated between
Matter and electronic equipment.
Background technology
With the fast development of electronic technology, the electronic equipment such as smart mobile phone, tablet computer is increasingly popularized.
Wherein, the electronic equipment such as smart mobile phone, tablet computer all has display screen.
In general, the non-display area in portion is provided with ambient light sensor on a display screen.Electronic equipment is passed according to ambient light
The ambient light intensity that sensor detects carrys out the brightness of adjust automatically display screen, so that the brightness of display screen is mutually fitted with environment
Should.
The content of the invention
The embodiment of the present application provides a kind of ambient light intensity detection method, device, storage medium and electronic equipment, Ke Yiti
The accuracy of high detection ambient light intensity.
The embodiment of the present application provides a kind of ambient light intensity detection method, including:
Obtain ambient light intensity detected value;
Determine the RGB spectrum informations of detected light;
The target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations is obtained, wherein, sample
This RGB spectrum informations are the RGB spectrum informations of display screen;
The ambient light intensity detected value is adjusted according to the target light intensity value, to obtain ambient light intensity
Value.
The embodiment of the present application also provides a kind of ambient light intensity measurer, including:
First acquisition module, for obtaining ambient light intensity detected value;
Determining module, for determining the RGB spectrum informations of detected light;
Second acquisition module, for obtaining the target of RGB spectrum informations and the matched target light of sample RGB spectrum informations
Light intensity value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen;
Module is adjusted, for being adjusted according to the target light intensity value to the ambient light intensity detected value, with
To environmental light intensity angle value.
The embodiment of the present application also provides a kind of storage medium, computer program is stored with the storage medium, when described
When computer program is run on computers so that the computer performs above-mentioned ambient light intensity detection method.
The embodiment of the present application also provides a kind of electronic equipment, including processor and memory, is stored with the memory
Computer program, the processor is by calling the computer program stored in the memory, for performing above-mentioned ring
Border luminous intensity detection method.
Ambient light intensity detection method provided by the embodiments of the present application, including:Obtain ambient light intensity detected value;Determine institute
Detect the RGB spectrum informations of light;Obtain the target of RGB spectrum informations and the matched target light of sample RGB spectrum informations
Light intensity value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen;According to target light intensity value to environmental light intensity
Degree detected value is adjusted, to obtain environmental light intensity angle value.In the program, electronic equipment can be according to the RGB frequency spectrums of display screen
Acquisition of information is adjusted, so as to reduce display on-screen-display message institute to corresponding data with the detected value to ambient light sensor
Influence of the light of generation to electronic equipment detection ambient light intensity, improves the accuracy of detection ambient light intensity.
Brief description of the drawings
In order to illustrate more clearly of the technical solution in the embodiment of the present application, make required in being described below to embodiment
Attached drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present application, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is the structure diagram of electronic equipment provided by the embodiments of the present application.
Fig. 2 is the flow diagram of ambient light intensity detection method provided by the embodiments of the present application.
Fig. 3 is the application scenarios schematic diagram of ambient light intensity detection method provided by the embodiments of the present application.
Fig. 4 is another flow diagram of ambient light intensity detection method provided by the embodiments of the present application.
Fig. 5 is the first structure diagram of ambient light intensity measurer provided by the embodiments of the present application.
Fig. 6 is second of structure diagram of ambient light intensity measurer provided by the embodiments of the present application.
Fig. 7 is the third structure diagram of ambient light intensity measurer provided by the embodiments of the present application.
Fig. 8 is the 4th kind of structure diagram of ambient light intensity measurer provided by the embodiments of the present application.
Fig. 9 is another structure diagram of electronic equipment provided by the embodiments of the present application.
Figure 10 is the another structure diagram of electronic equipment provided by the embodiments of the present application.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, the technical solution in the embodiment of the present application is carried out clear, complete
Site preparation describes.Obviously, described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, the every other implementation that those skilled in the art are obtained under the premise of not making the creative labor
Example, belongs to the protection domain of the application.
Term " first ", " second ", " the 3rd " in the description and claims of this application and above-mentioned attached drawing etc.
(if present) is for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that this
The object of sample description can exchange in the appropriate case.In addition, term " comprising " and " having " and their any deformation, meaning
Figure is to cover non-exclusive include.For example, contain the process of series of steps, method or contain a series of modules or list
The device of member, electronic equipment, system are not necessarily limited to those steps or module or the unit clearly listed, and can also include not having
The step of clearly listing or module or unit, can also include for these processes, method, apparatus, electronic equipment or system
Intrinsic other steps or module or unit.
With reference to figure 1, Fig. 1 is the structure diagram of electronic equipment provided by the embodiments of the present application.Wherein, electronic equipment 100
Including cover board 10, display screen 20, circuit board 30, housing 40 and the ambient light sensor 50 inside the housing 40.
Cover board 10 is installed on display screen 20, to cover display screen 20.Cover board 10 can be transparent glass cover plate.At some
In embodiment, cover board 10 can be with glass cover-plates made of material such as sapphires.
Display screen 20 is installed on housing 40, to form the display surface of electronic equipment 100.In certain embodiments, show
Screen 20 includes display area and non-display area.Wherein, display area is used to show the information such as image, text.Non-display area
Do not show information.Non-display area can be used for setting some functional units, such as the function group such as camera, fingerprint recognition module
Part.
In certain embodiments, display screen 20 can be displayed in full screen.That is, display screen 20 only includes display area, without
Including non-display area.
In certain embodiments, display screen 20 can be liquid crystal display (Liquid Crystal Display, LCD) or
Person's organic light-emitting diode (OLED) display screen (Organic Light-Emitting Diode, OLED).
Circuit board 30 is installed on inside housing 40.Circuit board 30 can be the mainboard of electronic equipment 100.Can on circuit board 30
To be integrated with the functional units such as camera and processor.Meanwhile display screen 20 can be electrically connected to circuit board 30.
In certain embodiments, it is provided with display control circuit on circuit board 30.The display control circuit is to display screen
20 output electric signals, information is shown with control display screen 20.
Housing 40 is used for the exterior contour for forming electronic equipment 100.The material of housing 40 can be plastics or metal.Housing
40 can be integrally formed.
Ambient light sensor 50 is installed on inside housing 40.Meanwhile ambient light sensor 50 is electrically connected to circuit board 30.Example
Such as, ambient light sensor 50 can be integrated on circuit board 30.Ambient light sensor 50 is used to detect ambient light intensity, so that electric
Sub- equipment 100 can adjust the brightness of display screen 20 according to the ambient light intensity that the ambient light sensor 50 detects, so that
The brightness for obtaining display screen 20 is adapted with surrounding environment.For example, in dark environment, electronic equipment 100 can reduce display
The brightness of screen 20;In brighter environment, electronic equipment 100 can improve the brightness of display screen 20.
In the embodiment of the present application, ambient light sensor 50 can be located at below the display area of display screen 20.That is, environment
Orthographic projection of the optical sensor 50 on display screen 20 is located at the display area of the display screen 20.It should be understood that environment at this time
Optical sensor 50 is through the display screen 20 collection external environment condition light, to realize detection ambient light intensity.That is, external environment condition
Light is entered in the ambient light sensor 50 through the display area of the display screen 20.
In one embodiment, there is provided a kind of ambient light intensity detection method, the ambient light intensity detection method can be applied
In electronic equipment.The electronic equipment can include the equipment such as smart mobile phone, tablet computer.As shown in Fig. 2, the ambient light intensity
Detection method, can include below scheme:
101st, ambient light intensity detected value is obtained.
Wherein, it is provided with ambient light sensor in electronic equipment.Ambient light sensor is located under the display screen of electronic equipment
Side.Ambient light is entered in the ambient light sensor by the display screen.So as to which ambient light sensor can pass through aobvious
Display screen detects ambient light intensity.Electronic equipment can obtain the ambient light intensity detection that the ambient light sensor detects
Value.
It should be noted that since ambient light is visible ray, what ambient light sensor detected is also the strong of visible ray
Degree.And display screen can shine in itself, the light that display screen is sent is also visible ray.Therefore, the light that display screen is sent can be right
The detection data of ambient light sensor can impact so that the ambient light intensity detected by ambient light sensor is relative to reality
It is bigger than normal for the ambient light intensity on border.Therefore, the ambient light intensity detected value that electronic equipment is got is not actual environment yet
Light intensity value.
102nd, the RGB spectrum informations of detected light are determined.
In specific implementation process, color sensor (colorsensor) can be installed in electronic equipment internal, pass through
The color reaction function of colorsensor, can identify the RGB spectrum informations of detected light.
103rd, the target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations is obtained, its
In, sample RGB spectrum informations are the RGB spectrum informations of display screen.
Which kind of light source tube display screen is not, is all made of the mixing of RGB three primary colours, simply three primary colours ratio is different.
Therefore, after the RGB spectrum informations of detected light are determined, RGB spectrum informations and sample that electronic equipment will can be determined
This RGB spectrum informations are compared, and target light is determined from detected light, and obtain RGB tri- in target light
The light intensity value of primary colours, to be used as target light intensity value.
In certain embodiments, can be installed in electronic equipment internal matched with the RGB spectrum informations of the display screen
Color sensor, then measure rgb light intensity level using the color sensor.Assuming that the spectral wavelength model of the R of display screen
It is 615+/- 2.5nm to enclose, and the spectra wavelength range of G is 535+/- 2.5nm, and the spectra wavelength range of B is 465+/- 2.5nm, then
The colorsensor installed can only detect the light of shown spectra wavelength range, and other wavelength detectings are less than such as 550nm.
104th, ambient light intensity detected value is adjusted according to target light intensity value, to obtain environmental light intensity angle value.
Wherein, after electronic equipment gets target light intensity value, you can ambient light intensity is examined according to target light intensity value
Measured value is adjusted, to obtain environmental light intensity angle value.After electronic equipment is adjusted ambient light intensity detected value, it can reduce
Even eliminate influence of the light for showing and being sent during on-screen-display message to the environmental light intensity angle value finally obtained so that finally obtain
Environmental light intensity angle value match with actual environment luminous intensity.So as to which electronic equipment adjusts display according to environmental light intensity angle value
When shielding brightness, the adjusting of brightness of display screen can be made more accurate so that the brightness of display screen is preferably adapted with surrounding environment.
For example, as shown in figure 3, after electronic equipment obtains environmental light intensity angle value, it is adjusted according to brightness of the actual conditions to display screen,
To reduce the brightness of (or raising) display screen.
From the foregoing, it will be observed that ambient light intensity detection method provided by the embodiments of the present application, is detected by obtaining ambient light intensity
Value, it is then determined that the RGB spectrum informations of detected light, then obtain RGB spectrum informations and matched with sample RGB spectrum informations
Target light target light intensity value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen, and according to target
Light intensity value is adjusted ambient light intensity detected value, to obtain environmental light intensity angle value.In the program, electronic equipment can root
Corresponding data is got according to the RGB spectrum informations of display screen, is adjusted with the detected value to ambient light sensor, so as to reduce
Show influence of the light caused by on-screen-display message to electronic equipment detection ambient light intensity, improve the standard of detection ambient light intensity
True property.
In certain embodiments, another ambient light intensity detection method is also provided, applied to electronic equipment.The electronics is set
It is standby to include the equipment such as smart mobile phone, tablet computer.As shown in figure 4, the ambient light intensity detection method, can include following
Flow:
201st, ambient light intensity detected value is obtained.
Wherein, it is provided with ambient light sensor in electronic equipment.Ambient light sensor is located under the display screen of electronic equipment
Side.Ambient light is entered in the ambient light sensor by the display screen.So as to which ambient light sensor can pass through aobvious
Display screen detects ambient light intensity.Electronic equipment can obtain the ambient light intensity detection that the ambient light sensor detects
Value.
It should be noted that since ambient light is visible ray, what ambient light sensor detected is also the strong of visible ray
Degree.And display screen can shine in itself, the light that display screen is sent is also visible ray.Therefore, the light that display screen is sent can be right
The detection data of ambient light sensor can impact so that the ambient light intensity detected by ambient light sensor is relative to reality
It is bigger than normal for the ambient light intensity on border.Therefore, the ambient light intensity detected value that electronic equipment is got is not actual environment yet
Light intensity value.
202nd, the RGB spectrum informations of detected light are determined, which includes RGB frequency values.
In specific implementation process, colorsensor can be installed in electronic equipment internal, pass through colorsensor's
Color reaction function, can identify the RGB spectrum informations of detected light, for example can detect that the frequency of light, ripple
It is long etc..
203rd, the RGB spectrum informations of display screen are obtained, wherein, sample RGB spectrum informations include sample RGB frequency zones
Between.
Which kind of light source tube display screen is not, is all made of the mixing of RGB three primary colours, simply three primary colours ratio is different.
Under normal circumstances, the RGB spectrum informations of display screen are changeless that it can exhale the RGB in specific frequency or wavelength
Light, if the spectra wavelength range of the R of display screen can be 615+/- 2.5nm, the spectra wavelength range of G can be 535+/-
The spectra wavelength range of 2.5nm, B can be 465+/- 2.5nm etc..
And in nature, it is seen that the spectrum information of light may be referred to table 1:
Table 1
Title | Wavelength (nm) | Frequency (MHZ) |
Purple light | 400~435 | 680~790 |
Blue light | 450~480 | 620~680 |
Green light | 480~490 | 600~620 |
Green light | 500~560 | 530~600 |
Yellow light | 580~595 | 510~520 |
Orange light | 595~605 | 480~510 |
Feux rouges | 605~700 | 405~480 |
Therefore, can electronic equipment internal install with the matched color sensor of RGB spectrum informations of the display screen,
Then the rgb light intensity level of light detected by color sensor measurements is utilized.
204th, judge RGB frequency values whether in sample RGB frequency separations;If so, step 205 is performed, if it is not, terminating
Flow.
Specifically, by the RGB frequency values of acquisition compared with the sample RGB frequency separations of display screen, RGB frequencies are determined
Whether rate value is in sample RGB frequency separations.
205th, the light intensity value of the target light corresponding to RGB frequency values is obtained, to obtain target light intensity value.
Assuming that there are sample RGB frequency separations:R [412.5,417.5], G [562.5,567.5], B [632.5,637.5],
Unit is MHZ.Frequency in detected light can then be obtained and be in the light intensity in RGB in any frequency separation, and will
The light intensity superposition of acquisition, to obtain target light intensity value.
206th, ambient light intensity detected value is adjusted based on target light intensity value, to obtain environmental light intensity angle value.
In the embodiment of the present application, can be had to the mode that ambient light intensity detected value is adjusted based on target light intensity value
It is a variety of.Such as:
In certain embodiments, step " is adjusted ambient light intensity detected value based on target light intensity value, to obtain
Environmental light intensity angle value " can include below scheme:
Computing environment luminous intensity detected value and the difference of target light intensity value;
Environmental light intensity angle value is determined according to the difference.
In some embodiments, can be directly using the difference as environmental light intensity angle value.
In practical application, since external environmental light may also have the RGB light identical with the spectrum information of display screen,
Also can be sensed by the color sensor in the special rgb light source for only receiving display screen.Therefore, directly using above-mentioned difference as
The ambient light intensity finally obtained, it is less than normal than actual environmental light intensity angle value to may result in it.Therefore, in certain embodiments,
Step " determining environmental light intensity angle value according to the difference " can include below scheme:
Obtain default first regulation coefficient;
According to the first regulation coefficient and the difference, environmental light intensity angle value is calculated.
In practical application, it is certain that the identical RGB of display screen frequency spectrum, which typically constitutes from whole ambient light ratio, is a definite value,
Specifically it may be set in 5% or so.Assuming that difference is S, the first regulation coefficient is X, then the calculation formula of environmental light intensity angle value can
Think:S*(1+X).
In certain embodiments, step " is adjusted ambient light intensity detected value based on target light intensity value, to obtain
Environmental light intensity angle value " can include below scheme:
Obtain default second adjustment coefficient;
Second adjustment coefficient and the product of target light intensity value are calculated, to obtain luminous intensity adjusted value;
Ambient light intensity detected value is adjusted according to luminous intensity adjusted value, to obtain environmental light intensity angle value.
Likewise, the light intensity value by including display screen institute isolychn in ambient light intensity detected value, and color
The light intensity value of the component environment light in external environmental light can be included in target light intensity value detected by sensor again, because
This, need to optimize detected target light intensity value, to obtain more accurate ambient light intensity adjusted value.
Specifically, it is assumed that ambient light intensity detected value is D, and second adjustment coefficient is Y, and target light intensity value is Z, then environment
The calculation formula of light intensity value can be:D-(Y*Z).Wherein, the value of Y is depending on the ratio of Z and D.
When it is implemented, the application is not producing conflict from the limitation of the execution sequence of described each step
In the case of, some steps can also use other orders to carry out or be carried out at the same time.
From the foregoing, it will be observed that ambient light intensity detection method provided by the embodiments of the present application, is detected by obtaining ambient light intensity
Value, it is then determined that the RGB spectrum informations of detected light, then obtain RGB spectrum informations and matched with sample RGB spectrum informations
Target light target light intensity value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen, and according to target
Light intensity value is adjusted ambient light intensity detected value, to obtain environmental light intensity angle value.In the program, electronic equipment can root
Corresponding data is got according to the RGB spectrum informations of display screen, is adjusted with the detected value to ambient light sensor, so as to reduce
Show influence of the light caused by on-screen-display message to electronic equipment detection ambient light intensity, improve the standard of detection ambient light intensity
True property.
The embodiment of the present application also provides a kind of ambient light intensity measurer, and the ambient light intensity measurer can collect
Into in the electronic device, the electronic equipment can be the equipment such as smart mobile phone, tablet computer.
As shown in figure 5, ambient light intensity measurer 300 can include:First acquisition module 31, determining module 32,
Two acquisition modules 33 and adjustment module 34, wherein:
First acquisition module 31, for obtaining ambient light intensity detected value;
Determining module 32, for determining the RGB spectrum informations of detected light;
Second acquisition module 33, for obtaining the mesh of RGB spectrum informations and the matched target light of sample RGB spectrum informations
Light intensity value is marked, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen;
Module 34 is adjusted, for being adjusted according to target light intensity value to ambient light intensity detected value, to obtain environment
Light intensity value.
In certain embodiments, RGB spectrum informations include RGB frequency values, and sample RGB spectrum informations include sample RGB frequencies
Rate section;With reference to figure 6, the second acquisition module 33 can include:
Judging submodule 331, for judging RGB frequency values whether in sample RGB frequency separations;
First acquisition submodule 332, is if being determined as judging submodule, obtains the mesh corresponding to RGB frequency values
The light intensity value of light is marked, to obtain target light intensity value.
In certain embodiments, with reference to figure 7, adjustment, 34 can block include:
First calculating sub module 341, for computing environment luminous intensity detected value and the difference of target light intensity value;
Determination sub-module 342, for determining environmental light intensity angle value according to the difference.
In certain embodiments, determination sub-module 342 further can be used for:
Obtain default first regulation coefficient;
According to the first regulation coefficient and the difference, environmental light intensity angle value is calculated.
In certain embodiments, can include with reference to figure 8, adjustment module 34:
Second acquisition submodule 343, for obtaining default second adjustment coefficient;
Second calculating sub module 344, for calculating the product of second adjustment coefficient and target light intensity value, to obtain light intensity
Spend adjusted value;
Submodule 345 is adjusted, for being adjusted according to luminous intensity adjusted value to ambient light intensity detected value, to obtain ring
Border light intensity value.
From the foregoing, it will be observed that ambient light intensity measurer provided by the embodiments of the present application, is detected by obtaining ambient light intensity
Value, it is then determined that the RGB spectrum informations of detected light, then obtain RGB spectrum informations and matched with sample RGB spectrum informations
Target light target light intensity value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen, and according to target
Light intensity value is adjusted ambient light intensity detected value, to obtain environmental light intensity angle value.In the program, electronic equipment can root
Corresponding data is got according to the RGB spectrum informations of display screen, is adjusted with the detected value to ambient light sensor, so as to reduce
Show influence of the light caused by on-screen-display message to electronic equipment detection ambient light intensity, improve the standard of detection ambient light intensity
True property.
The embodiment of the present application also provides a kind of electronic equipment.The electronic equipment can be that smart mobile phone, tablet computer etc. are set
It is standby.As shown in figure 9, electronic equipment 400 includes processor 401 and memory 402.Wherein, processor 401 and the electricity of memory 402
Property connection.
Processor 401 is the control centre of electronic equipment 400, utilizes various interfaces and the whole electronic equipment of connection
Various pieces, by running or calling the computer program being stored in memory 402, and call and are stored in memory 402
Interior data, perform the various functions and processing data of electronic equipment, so as to carry out integral monitoring to electronic equipment.
In the present embodiment, processor 401 in electronic equipment 400 can according to the steps, by one or one with
On the corresponding instruction of process of computer program be loaded into memory 402, and be stored in storage by processor 401 to run
Computer program in device 402, so as to fulfill various functions:
Obtain ambient light intensity detected value;
Determine the RGB spectrum informations of detected light;
The target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations is obtained, wherein, sample
This RGB spectrum informations are the RGB spectrum informations of display screen;
The ambient light intensity detected value is adjusted according to the target light intensity value, to obtain environmental light intensity angle value.
In certain embodiments, which includes RGB frequency values, and sample RGB spectrum informations include sample
RGB frequency separations;When obtaining the target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations, place
Manage device 401 and perform following steps:
Judge the RGB frequency values whether in sample RGB frequency separations;
If so, the light intensity value of the target light corresponding to the RGB frequency values is then obtained, to obtain target light intensity value.
In certain embodiments, the ambient light intensity detected value is adjusted according to the target light intensity value, to obtain
During environmental light intensity angle value, processor 401 can be used for performing following steps:
Calculate the difference of the ambient light intensity detected value and the target light intensity value;
Environmental light intensity angle value is determined according to the difference.
In certain embodiments, when determining environmental light intensity angle value according to the difference, processor 401 can be used for performing following step
Suddenly:
Obtain default first regulation coefficient;
According to first regulation coefficient and the difference, the environmental light intensity angle value is calculated.
In certain embodiments, the ambient light intensity detected value is adjusted according to the target light intensity value, to obtain
During environmental light intensity angle value, processor 401 can be used for performing following steps:
Obtain default second adjustment coefficient;
The product of the second adjustment coefficient and the target light intensity value is calculated, to obtain luminous intensity adjusted value;
The ambient light intensity detected value is adjusted according to the luminous intensity adjusted value, to obtain environmental light intensity angle value.
Memory 402 can be used for storage computer program and data.Include in the computer program that memory 402 stores
The instruction that can be performed within a processor.Computer program can form various functions module.Processor 401 is stored in by calling
The computer program of memory 402, so as to perform various functions application and data processing.
In certain embodiments, as shown in Figure 10, electronic equipment 400 further includes:Radio circuit 403, display screen 404, control
Circuit 405, input unit 406, voicefrequency circuit 407, sensor 408 and power supply 409 processed.Wherein, processor 401 is respectively with penetrating
Frequency circuit 403, display screen 404, control circuit 405, input unit 406, voicefrequency circuit 407, sensor 408 and power supply 409
It is electrically connected.
Radio circuit 403 is used for transceiving radio frequency signal, with by wireless communication and the network equipment or other electronic equipments into
Row communication.
Display screen 404 is each available for the information and electronic equipment for showing by information input by user or being supplied to user
Kind graphical user interface, these graphical user interface can be made of image, text, icon, video and its any combination.
Control circuit 405 is electrically connected with display screen 404, and information is shown for control display screen 404.
Input unit 406 can be used for numeral, character information or the user's characteristic information (such as fingerprint) for receiving input, and
Produce the keyboard related with user setting and function control, mouse, operation lever, optics or the input of trace ball signal.Wherein,
Input unit 406 can include fingerprint recognition module.
Voicefrequency circuit 407 can provide the audio interface between user and electronic equipment by loudspeaker, microphone.
Sensor 408 is used to gather external environmental information.Sensor 408 can include ambient light sensor, acceleration
One or more in the sensors such as sensor, gyroscope.
The all parts that power supply 409 is used for electron equipment 400 are powered.In certain embodiments, power supply 409 can pass through
Power-supply management system and processor 401 are logically contiguous, so as to realize management charging, electric discharge, Yi Jigong by power-supply management system
The functions such as consumption management.
Although not shown in Figure 10, electronic equipment 400 can also include camera, bluetooth module etc., and details are not described herein.
From the foregoing, it will be observed that the embodiment of the present application provides a kind of electronic equipment, by obtaining ambient light intensity detected value, then
Determine the RGB spectrum informations of detected light, then obtain RGB spectrum informations and the matched target of sample RGB spectrum informations
The target light intensity value of light, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen, and according to target luminous intensity
Value is adjusted ambient light intensity detected value, to obtain environmental light intensity angle value.In the program, electronic equipment can be according to display
The RGB spectrum informations of screen get corresponding data, are adjusted with the detected value to ambient light sensor, so as to reduce display screen
Show influence of the light caused by information to electronic equipment detection ambient light intensity, improve the accuracy of detection ambient light intensity.
The embodiment of the present application also provides a kind of storage medium, and computer program is stored with the storage medium, when the calculating
When machine program is run on computers, which performs the ambient light intensity detection method described in any of the above-described embodiment.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by computer program, and the computer program can be stored in meter
In calculation machine readable storage medium storing program for executing, the storage medium can include but is not limited to:Read-only storage (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Ambient light intensity detection method, device, storage medium and the electronic equipment provided above the embodiment of the present application
It is described in detail, specific case used herein is set forth the principle and embodiment of the application, and the above is real
The explanation for applying example is only intended to help and understands the present processes and its core concept;Meanwhile for those skilled in the art,
According to the thought of the application, there will be changes in specific embodiments and applications, in conclusion in this specification
Hold the limitation that should not be construed as to the application.
Claims (12)
- A kind of 1. ambient light intensity detection method, applied to electronic equipment, it is characterised in that including:Obtain ambient light intensity detected value;Determine the RGB spectrum informations of detected light;The target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations is obtained, wherein, sample RGB Spectrum information is the RGB spectrum informations of display screen;The ambient light intensity detected value is adjusted according to the target light intensity value, to obtain environmental light intensity angle value.
- 2. ambient light intensity detection method according to claim 1, it is characterised in that the RGB spectrum informations include RGB Frequency values, the sample RGB spectrum informations include sample RGB frequency separations;The step of obtaining the target light intensity value of RGB spectrum informations and the matched target light of sample RGB spectrum informations, including:Judge the RGB frequency values whether in sample RGB frequency separations;If so, the light intensity value of the target light corresponding to the RGB frequency values is then obtained, to obtain target light intensity value.
- 3. ambient light intensity detection method as claimed in claim 1 or 2, it is characterised in that according to the target light intensity value The ambient light intensity detected value is adjusted, the step of to obtain environmental light intensity angle value, including:Calculate the difference of the ambient light intensity detected value and the target light intensity value;Environmental light intensity angle value is determined according to the difference.
- 4. ambient light intensity detection method according to claim 3, it is characterised in that ambient light is determined according to the difference The step of intensity level, including:Obtain default first regulation coefficient;According to first regulation coefficient and the difference, the environmental light intensity angle value is calculated.
- 5. ambient light intensity detection method according to claim 1 or 2, it is characterised in that according to the target luminous intensity Value is adjusted the ambient light intensity detected value, the step of to obtain environmental light intensity angle value, including:Obtain default second adjustment coefficient;The product of the second adjustment coefficient and the target light intensity value is calculated, to obtain luminous intensity adjusted value;The ambient light intensity detected value is adjusted according to the luminous intensity adjusted value, to obtain environmental light intensity angle value.
- A kind of 6. ambient light intensity measurer, it is characterised in that including:First acquisition module, for obtaining ambient light intensity detected value;Determining module, for determining the RGB spectrum informations of detected light;Second acquisition module, for obtaining the target light intensity of RGB spectrum informations and the matched target light of sample RGB spectrum informations Angle value, wherein, sample RGB spectrum informations are the RGB spectrum informations of display screen;Module is adjusted, for being adjusted according to the target light intensity value to the ambient light intensity detected value, to obtain ring Border light intensity value.
- 7. ambient light intensity measurer according to claim 6, it is characterised in that the RGB spectrum informations include RGB Frequency values, the sample RGB spectrum informations include sample RGB frequency separations;Second acquisition module includes:Judging submodule, for judging the RGB frequency values whether in sample RGB frequency separations;First acquisition submodule, is the target light obtained corresponding to the RGB frequency values if being determined as judging submodule The light intensity value of line, to obtain target light intensity value.
- 8. the ambient light intensity measurer according to claim 6 or 7, it is characterised in that the adjustment module includes:First calculating sub module, for calculating the difference of the ambient light intensity detected value and the target light intensity value;Determination sub-module, for determining environmental light intensity angle value according to the difference.
- 9. ambient light intensity measurer according to claim 8, it is characterised in that the determination sub-module is used for:Obtain default first regulation coefficient;According to first regulation coefficient and the difference, the environmental light intensity angle value is calculated.
- 10. the ambient light intensity measurer according to claim 6 or 7, it is characterised in that the adjustment module includes:Second acquisition submodule, for obtaining default second adjustment coefficient;Second calculating sub module, for calculating the product of the second adjustment coefficient and the target light intensity value, to obtain light Intensity adjusted value;Submodule is adjusted, for being adjusted according to the luminous intensity adjusted value to the ambient light intensity detected value, to obtain Environmental light intensity angle value.
- 11. a kind of storage medium, it is characterised in that computer program is stored with the storage medium, when the computer journey When sequence is run on computers so that the computer perform claim requires 1-5 any one of them ambient light intensities detection side Method.
- 12. a kind of electronic equipment, it is characterised in that the electronic equipment includes processor and memory, is deposited in the memory Computer program is contained, the processor is by calling the computer program stored in the memory, for right of execution Profit requires 1-5 any one of them ambient light intensity detection methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174645.7A CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711174645.7A CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107941330A true CN107941330A (en) | 2018-04-20 |
CN107941330B CN107941330B (en) | 2020-09-08 |
Family
ID=61930719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711174645.7A Active CN107941330B (en) | 2017-11-22 | 2017-11-22 | Ambient light intensity detection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107941330B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109740519A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, ambient light detection device, electronic apparatus, and storage medium |
CN112033527A (en) * | 2020-08-26 | 2020-12-04 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
CN113865703A (en) * | 2021-09-30 | 2021-12-31 | 维沃移动通信有限公司 | Ambient light detection method, detection device, light detection module, and electronic apparatus |
WO2022042085A1 (en) * | 2020-08-28 | 2022-03-03 | Oppo广东移动通信有限公司 | Device testing method and apparatus, and storage medium and electronic device |
CN114220381A (en) * | 2022-02-22 | 2022-03-22 | 深圳灏鹏科技有限公司 | Display brightness control method, device, equipment and storage medium |
CN114283743A (en) * | 2021-12-27 | 2022-04-05 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
CN115706750A (en) * | 2021-08-09 | 2023-02-17 | 北京小米移动软件有限公司 | Color temperature calibration method, color temperature calibration device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604516A (en) * | 2008-06-10 | 2009-12-16 | 台达电子工业股份有限公司 | Display device, the Control Component that is used for this display device and control method |
CN102682738A (en) * | 2012-05-11 | 2012-09-19 | Tcl集团股份有限公司 | Color temperature regulation method and system for display device |
CN103940505A (en) * | 2013-01-23 | 2014-07-23 | 华为终端有限公司 | Ambient light sensor, adjusting method thereof and electronic product |
US20140375669A1 (en) * | 2013-06-19 | 2014-12-25 | Lenovo (Beijing) Limited | Information processing methods and electronic devices |
US20170084250A1 (en) * | 2015-09-17 | 2017-03-23 | Apple Inc. | Methods for Color Sensing Ambient Light Sensor Calibration |
-
2017
- 2017-11-22 CN CN201711174645.7A patent/CN107941330B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604516A (en) * | 2008-06-10 | 2009-12-16 | 台达电子工业股份有限公司 | Display device, the Control Component that is used for this display device and control method |
CN102682738A (en) * | 2012-05-11 | 2012-09-19 | Tcl集团股份有限公司 | Color temperature regulation method and system for display device |
CN103940505A (en) * | 2013-01-23 | 2014-07-23 | 华为终端有限公司 | Ambient light sensor, adjusting method thereof and electronic product |
US20140375669A1 (en) * | 2013-06-19 | 2014-12-25 | Lenovo (Beijing) Limited | Information processing methods and electronic devices |
US20170084250A1 (en) * | 2015-09-17 | 2017-03-23 | Apple Inc. | Methods for Color Sensing Ambient Light Sensor Calibration |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108917921A (en) * | 2018-06-15 | 2018-11-30 | 江西合力泰科技有限公司 | A kind of ambient light intensity detection method |
CN109740519A (en) * | 2018-12-29 | 2019-05-10 | 联想(北京)有限公司 | Control method and electronic equipment |
CN111486950A (en) * | 2020-04-20 | 2020-08-04 | Oppo广东移动通信有限公司 | Ambient light detection method, ambient light detection device, electronic apparatus, and storage medium |
WO2021213016A1 (en) * | 2020-04-20 | 2021-10-28 | Oppo广东移动通信有限公司 | Ambient light detection method and device, electronic apparatus, and storage medium |
CN112033527A (en) * | 2020-08-26 | 2020-12-04 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
CN112033527B (en) * | 2020-08-26 | 2023-10-03 | 北京小米移动软件有限公司 | Ambient brightness detection method, device, equipment and storage medium |
WO2022042085A1 (en) * | 2020-08-28 | 2022-03-03 | Oppo广东移动通信有限公司 | Device testing method and apparatus, and storage medium and electronic device |
CN115706750A (en) * | 2021-08-09 | 2023-02-17 | 北京小米移动软件有限公司 | Color temperature calibration method, color temperature calibration device and storage medium |
CN113865703A (en) * | 2021-09-30 | 2021-12-31 | 维沃移动通信有限公司 | Ambient light detection method, detection device, light detection module, and electronic apparatus |
CN114283743A (en) * | 2021-12-27 | 2022-04-05 | 深圳市汇顶科技股份有限公司 | Method and device for detecting ambient light under display screen and electronic equipment |
CN114220381A (en) * | 2022-02-22 | 2022-03-22 | 深圳灏鹏科技有限公司 | Display brightness control method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107941330B (en) | 2020-09-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107941330A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN107945769A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN107957294A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN108021161A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN107945770A (en) | Ambient light intensity detection method, device, storage medium and electronic equipment | |
CN107223203B (en) | Light-intensity test method, apparatus and intelligent terminal | |
CN107818753A (en) | Screen brightness regulation method, device, storage medium and electronic equipment | |
CN107966209A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN111754954A (en) | Screen brightness adjusting method and device, storage medium and electronic equipment | |
CN107968883A (en) | Distance state detection method, device, storage medium and electronic equipment | |
CN107038681A (en) | Image weakening method, device, computer-readable recording medium and computer equipment | |
EP3775810B1 (en) | Calibrated brightness estimation using ambient color sensors | |
CN107945733B (en) | Brightness of display screen method of adjustment, device, storage medium and electronic equipment | |
CN108737652A (en) | Luminance control method for display screen, device, storage medium and electronic equipment | |
CN107609439A (en) | Processing method, device, storage medium and the terminal of Radio frequency interference | |
CN112229507B (en) | Ambient light detection method and device, storage medium and mobile terminal | |
CN107945747A (en) | Environment light detection method, device, storage medium and electronic equipment | |
CN109238460A (en) | A kind of method and terminal device obtaining ambient light intensity | |
CN108172199A (en) | Display methods, display device, electronic equipment and computer readable storage medium | |
KR102634812B1 (en) | Method, apparatus and electronic device for estimating screen light leakage amount | |
US10345151B1 (en) | Use of multiple calibrated ambient color sensor measurements to generate a single colorimetric value | |
CN110139088A (en) | Color temperature compensating method, electronic equipment and computer readable storage medium | |
CN106598444A (en) | Mobile terminal control method and mobile terminal | |
CN104978946A (en) | Display device backlight self-adaptive adjusting method and apparatus | |
CN109032488A (en) | Processing method, storage medium and the electronic equipment of blank screen gesture |
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 | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |