CN108775958A - Brightness measurement, calibration method, device based on light sensor and electronic equipment - Google Patents
Brightness measurement, calibration method, device based on light sensor and electronic equipment Download PDFInfo
- Publication number
- CN108775958A CN108775958A CN201810531261.4A CN201810531261A CN108775958A CN 108775958 A CN108775958 A CN 108775958A CN 201810531261 A CN201810531261 A CN 201810531261A CN 108775958 A CN108775958 A CN 108775958A
- Authority
- CN
- China
- Prior art keywords
- brightness
- light sensor
- calibration
- illumination section
- illumination
- 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
- 238000005259 measurement Methods 0.000 title claims abstract description 93
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000005286 illumination Methods 0.000 claims abstract description 224
- 238000000691 measurement method Methods 0.000 claims description 15
- 230000002159 abnormal effect Effects 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 description 10
- 230000006870 function Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000001174 ascending effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 210000003733 optic disk Anatomy 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001902 propagating 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
-
- 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
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G3/00—Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Spectroscopy & Molecular Physics (AREA)
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Photometry And Measurement Of Optical Pulse Characteristics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The present invention proposes a kind of brightness measurement based on light sensor, calibration method, device, wherein method includes:Obtain the brightness measurements of light sensor;According to the corresponding illumination section of brightness measurements, the correspondence between illumination section and calibration factor is inquired, determines applicable calibration factor;Using applicable calibration factor, brightness measurements are calibrated, obtain the calibration value of ambient brightness;According to the multiple illumination sections for obtaining ambient brightness;Light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;Wherein, calibration factor obtains the calibration value of ambient brightness for being calibrated to the brightness measurements of light sensor.This method carries out calibration according to different brightness values and obtains different calibration factors, more accurately backlight illumination is adjusted, user experience is promoted, solution can only be calibrated in the prior art using single light source, the technical problem for causing light sensor calibration deviation larger.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of brightness measurement based on light sensor, calibration method,
Device and electronic equipment.
Background technology
Currently, electronic equipment is used widely in people's lives, for example, smart mobile phone, tablet computer etc., user couple
The performance requirement of electronic equipment is also higher and higher.In actual use, the screen intensity of electronic equipment also becomes user couple
The performance requirement of electronic equipment.
The front end of electronic equipment is equipped with light sensor, and screen is adjusted by the light illumination around light sensor detection
Curtain brightness, still, there are errors for measurement of the light sensor to light illumination, it is therefore desirable to light sensor calibrated,
To improve the accuracy that light sensor measures light illumination.In the prior art, the calibration method of light sensor is used
Single light source, since light sensor is different to the responses of different brightness value light sources, cause the calibration of light sensor have compared with
Big deviation.
Invention content
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the present invention proposes a kind of brightness measurement based on light sensor, calibration method, it is more accurately right to realize
Light sensor is calibrated, and solution is calibrated using single light source in the prior art, does not account for light sensor pair
The response of different brightness value light sources is different, causes to there is technical issues that the calibration of light sensor.
The present invention proposes a kind of brightness measuring device for camera based on light sensor.
The present invention proposes a kind of brightness calibration device based on light sensor.
The present invention proposes a kind of electronic equipment.
The present invention proposes a kind of computer readable storage medium.
First aspect present invention embodiment proposes a kind of brightness measurement method based on light sensor, including:
Obtain the brightness measurements of light sensor;
According to the corresponding illumination section of the brightness measurements, inquire corresponding between illumination section and calibration factor
Relationship determines applicable calibration factor;Wherein, the correspondence between the illumination section and calibration factor is to obtain environment
Behind multiple illumination sections of brightness, the light sensor is tested for each illumination section, obtains each illumination area
Between corresponding calibration factor;
Using the applicable calibration factor, the brightness measurements are calibrated, obtain the calibration value of ambient brightness.
The brightness measurement method based on light sensor of the embodiment of the present invention, obtains the brightness measurement of light sensor
Value;According to the corresponding illumination section of the brightness measurements, the correspondence between illumination section and calibration factor is inquired,
Determine applicable calibration factor;Wherein, the correspondence between the illumination section and calibration factor is to obtain ambient brightness
Behind multiple illumination sections, the light sensor is tested for each illumination section, obtains each illumination section and correspond to
Calibration factor;Using the applicable calibration factor, the brightness measurements are calibrated, obtain the calibration of ambient brightness
Value.This method carries out calibration to light sensor according to different brightness values and obtains different calibration factors, more accurately to the back of the body
Brightness is adjusted, and promotes user experience, and solution is calibrated using single light source in the prior art, does not account for light
Sensor is different to the responses of different brightness value light sources, and there are the technologies of larger deviation to ask for the calibration for causing to light sensor
Topic.
Second aspect of the present invention embodiment proposes another brightness calibration method based on light sensor, including:
Obtain multiple illumination sections of ambient brightness;
Light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;
Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.
The brightness calibration method based on light sensor of the embodiment of the present invention, by the multiple illumination for obtaining ambient brightness
Section;Light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;Its
In, the calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.It should
Method tests light sensor by multiple illumination sections, has obtained more accurate calibration factor, solves the prior art
Middle to be calibrated using single light source, it is different to the response of different brightness value light sources not account for light sensor, causes pair
The calibration of light sensor there is technical issues that.
Third aspect present invention embodiment proposes a kind of brightness measuring device for camera based on light sensor, including:
Acquisition module, the brightness measurements for obtaining light sensor;
Enquiry module, for according to the corresponding illumination section of the brightness measurements, inquiry illumination section and calibration
Correspondence between coefficient determines applicable calibration factor;Wherein, the corresponding pass between the illumination section and calibration factor
System is tested for each illumination section the light sensor behind the multiple illumination sections for obtaining ambient brightness,
Obtain the corresponding calibration factor in each illumination section;
Calibration module calibrates the brightness measurements, obtains environment for using the applicable calibration factor
The calibration value of brightness.
The brightness measuring device for camera based on light sensor of the embodiment of the present invention, obtains the brightness measurement of light sensor
Value;According to the corresponding illumination section of the brightness measurements, the correspondence between illumination section and calibration factor is inquired,
Determine applicable calibration factor;Wherein, the correspondence between the illumination section and calibration factor is to obtain ambient brightness
Behind multiple illumination sections, the light sensor is tested for each illumination section, obtains each illumination section and correspond to
Calibration factor;Using the applicable calibration factor, the brightness measurements are calibrated, obtain the calibration of ambient brightness
Value.This method carries out calibration to light sensor according to different brightness values and obtains different calibration factors, more accurately to the back of the body
Brightness is adjusted, and promotes user experience, and solution is calibrated using single light source in the prior art, does not account for light
Sensor is different to the responses of different brightness value light sources, and there are the technologies of relatively large deviation to ask for the calibration for causing to light sensor
Topic.
Fourth aspect present invention embodiment proposes another brightness calibration device based on light sensor, including:
Acquisition module, multiple illumination sections for obtaining ambient brightness;
Test module obtains each illumination section pair for being tested for each illumination section light sensor
The calibration factor answered;Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains environment
The calibration value of brightness.
The brightness calibration device based on light sensor of the embodiment of the present invention, by the multiple illumination for obtaining ambient brightness
Section;Light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;Its
In, the calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.It should
Method tests light sensor by multiple illumination sections, has obtained more accurate calibration factor, solves the prior art
Middle to be calibrated using single light source, it is different to the response of different brightness value light sources not account for light sensor, causes pair
The calibration of light sensor there is technical issues that.
Fifth aspect present invention embodiment proposes a kind of electronic equipment, including:Light sensor, memory, processor
And the computer program that can be run on a memory and on a processor is stored, when the processor executes described program, realize
The brightness measurement method based on light sensor described in first aspect embodiment, alternatively, realizing described in second aspect embodiment
The brightness calibration method based on light sensor.
Sixth aspect present invention embodiment proposes a kind of computer readable storage medium, the instruction in the storage medium
It is performed by processor, for executing the brightness calibration method based on light sensor described in second aspect embodiment.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, wherein:
A kind of flow for brightness measurement method based on light sensor that Fig. 1 is provided by the embodiment of the present invention is illustrated
Figure;
A kind of flow for brightness calibration method based on light sensor that Fig. 2 is provided by the embodiment of the present invention is illustrated
Figure;
A kind of structural representation for brightness measuring device for camera based on light sensor that Fig. 3 is provided by the embodiment of the present invention
Figure;
A kind of structural representation for brightness calibration device based on light sensor that Fig. 4 is provided by the embodiment of the present invention
Figure;And
Fig. 5 is the internal structure schematic diagram of electronic equipment in one embodiment.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the brightness calibration method and apparatus based on light sensor of the embodiment of the present invention are described.
The front end of electronic equipment is equipped with light sensor, is adjusted by the light illumination around light sensor detection
Screen intensity, still, there are errors for measurement of the light sensor to light illumination, it is therefore desirable to carry out school to light sensor
Standard, to improve the accuracy that light sensor measures light illumination.In the prior art, the calibration method of light sensor is used
Be single light source, since light sensor is different to the responses of different brightness value light sources, the calibration of light sensor is caused to have
Larger deviation.
Light sensor is calibrated using single light source in for the above-mentioned prior art, leads to the school of light sensor
Standard has the technical issues of larger deviation.The brightness measurements that the present embodiment passes through acquisition light sensor;According to brightness measurement
It is worth corresponding illumination section, inquires the correspondence between illumination section and calibration factor, determines applicable calibration factor;Using
Applicable calibration factor, calibrates brightness measurements, obtains the calibration value of ambient brightness;According to the more of acquisition ambient brightness
A illumination section;Light sensor is tested for each illumination section, obtains the corresponding calibration system in each illumination section
Number;Wherein, calibration factor obtains the calibration value of ambient brightness for being calibrated to the brightness measurements of light sensor.It should
Method carries out calibration according to different brightness values and obtains different calibration factors, is more accurately adjusted, carries to backlight illumination
Rise user experience.
A kind of flow for brightness measurement method based on light sensor that Fig. 1 is provided by the embodiment of the present invention is illustrated
Figure.
The embodiment of the present invention is come with the electronic equipment configured with light sensor for example, should be based on light sensor
Brightness measurement method can be applied in the electronic equipment configured with light sensor, wherein the electronic equipment can be intelligence
Mobile phone, tablet computer, personal digital assistant, wearable device etc. have light sensor, various operating systems and touch
The hardware device of screen and/or display screen.
As shown in Figure 1, the brightness measurement method based on photosensitive sensors of being somebody's turn to do includes the following steps:
Step 101, the brightness measurements of light sensor are obtained.
It should be noted that light sensor, also referred to as luminance sensor, function is the brightness pair by perceiving environment
The screen backlight brightness of electronic equipment is adjusted.
Specifically, the light intensity of ambient enviroment is detected by light sensor, and obtains light sensor ambient enviroment
Brightness measurements.
Step 102, it according to the corresponding illumination section of brightness measurements, inquires corresponding between illumination section and calibration factor
Relationship determines applicable calibration factor;Wherein, the correspondence between illumination section and calibration factor is to obtain ambient brightness
Multiple illumination sections after, light sensor is tested for each illumination section, it is corresponding to obtain each illumination section
Calibration factor.
It should be noted that calibrating light sensor using reference white light source, due to reference white light source packet
Containing multiple color, therefore light sensor is different to the response of the reference white light source of different light illuminations.According to intensity of illumination
Range ascending be divided into different sections to get to multiple illumination sections of varying environment brightness.
Specifically, behind the multiple illumination sections for obtaining ambient brightness, for each illumination section, using meeting each illumination
The light source of the brightness value in section, irradiation light sensor obtain corresponding brightness measurements;According to the brightness value in each illumination section
With corresponding brightness measurements, the ratio of the brightness value and corresponding brightness measurements in each illumination section is calculated, you can determine each
The corresponding calibration factor in illumination section, obtains the correspondence between illumination section and calibration factor.
Optionally, using the light source irradiation light sensor for meeting different illumination sections, when the minimal illumination in illumination section
When being worth corresponding light source irradiation light sensor, the minimum value in corresponding brightness measurements section is obtained;When illumination section most
When the corresponding light source irradiation light sensor of big brightness value, the maximum value in corresponding brightness measurements section is obtained;Then it obtains
Corresponding brightness measurements section, further obtains the correspondence between measured value section and illumination section.Further,
According to the brightness measurements of the light sensor obtained in step 101, the measured value section residing for it is judged.It is measured by inquiring
The correspondence being worth between section and illumination section, determines the corresponding illumination section of brightness measurements.
Further instruction, according to the corresponding illumination section of brightness measurements that light sensor obtains, inquiry illumination area
Between correspondence between calibration factor, determine applicable calibration factor.
Step 103, using applicable calibration factor, brightness measurements are calibrated, obtain the calibration value of ambient brightness.
Specifically, according to the bright of the light sensor obtained in the calibration factor and step 101 determined in step 102
Measured value is spent, the brightness value of actual environment brightness, the i.e. calibration value of ambient brightness is calculated, and then to the screen of electronic equipment
Backlight illumination is adjusted.
The brightness measurement method based on light sensor of the embodiment of the present invention, the brightness by obtaining light sensor are surveyed
Magnitude;According to the corresponding illumination section of the brightness measurements, the correspondence between illumination section and calibration factor is inquired, really
Surely applicable calibration factor;Wherein, the correspondence between illumination section and calibration factor is the multiple photographs for obtaining ambient brightness
After spending section, light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;
Using applicable calibration factor, brightness measurements are calibrated, obtain the calibration value of ambient brightness.This method is according to different
Brightness value carries out calibration to line sensor and obtains different calibration factors, and more accurately backlight illumination is adjusted, and is promoted
User experience, solution can only be calibrated in the prior art using single light source, cause light sensor calibration deviation larger
Technical problem.
In the above-described embodiments, the calibration value of ambient brightness is obtained by the brightness measurement method based on light sensor,
And then the brightness of light sensor is calibrated.In order to clearly illustrate how to calibrate to the brightness of light sensor, this
Embodiment provides a kind of brightness calibration method based on light sensor, executes the light of the electronic equipment configuration of the present embodiment
Sensor has same or analogous performance and structure with the light sensor that electronic equipment in embodiment one configures.Fig. 2 is this
A kind of flow diagram for brightness calibration method based on light sensor that inventive embodiments are provided.
As shown in Fig. 2, the brightness calibration method based on light sensor of being somebody's turn to do may comprise steps of:
Step 201, multiple illumination sections of ambient brightness are obtained.
Specifically, light sensor is calibrated using reference white light source, since reference white light source includes a variety of
Color, therefore light sensor is different to the response of the reference white light source of different light illuminations.According to the range of intensity of illumination
It is ascending to be divided into different sections to get to multiple illumination sections of varying environment brightness.
Step 202, light sensor is tested for each illumination section, obtains the corresponding school in each illumination section
Quasi- coefficient;Wherein, calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration of ambient brightness
Value.
Specifically, for multiple illumination sections of the ambient brightness of acquisition, at least one is chosen out of each illumination section
A brightness value TXLight sensor is irradiated, wherein x sorts for illumination section, and x value ranges are 1≤x≤n, and n is to shine
Spend the sum in section;Using the brightness value T for meeting each illumination sectionXLight source, irradiation light sensor obtains corresponding brightness
Measured value Ax。
It should be noted that choosing at least one brightness value T out of each illumination sectionXInclude the upper limit in illumination section
At least one of value, the median in illumination section and the upper limit value in illumination section or multiple combinations.
It should be noted that using the light source irradiation light sensor for meeting different illumination sections, when illumination section most
When the corresponding light source irradiation light sensor of small brightness value, the minimum value in corresponding brightness measurements section is obtained;When illumination area
Between maximal illumination be worth corresponding light source irradiation light sensor when, obtain the maximum value in corresponding brightness measurements section;So
After obtain corresponding brightness measurements section.
After obtaining the corresponding brightness measurements in each illumination section, according to the brightness value T in each illumination sectionXWith it is corresponding bright
Spend measured value Ax, calculate the brightness value T in each illumination sectionXWith corresponding brightness measurements AxRatio, you can obtain each illumination area
Between corresponding calibration factor Lx.For example, when using reference white light source irradiation light sensor, when the brightness value of light source is
When 10Lux, the brightness value that light sensor tests out is 12Lux, then corresponding calibration factor Lx=(12-10)/10*100%
=20%.
Further instruction tests light sensor for each illumination section, obtains each illumination section pair
The calibration factor answered and then according to the corresponding calibration factor in each illumination section, identification light sensor is with the presence or absence of abnormal.
As a kind of possible realization method, for each illumination section, according to light sensor in corresponding illumination area
Between calibration factor, inquire corresponding calibration factor distribution map, determine light sensor quantity accounting.It is looked into according to each illumination section
The light sensor quantity accounting ask, identification light sensor is with the presence or absence of abnormal.For example, being inquired in some illumination section
The light sensor accounting arrived is less than certain ratio, then illustrates the light sensor using the calibration factor in corresponding illumination section
Quantity is fewer, it is possible to determine that the light sensor deviates central value in the illumination section, there is a possibility that abnormal larger.
It should be noted that calibration factor distribution map, is for each illumination section, according to light sensor in correspondence
The calibration factor in illumination section obtains the quantity acquisition of the light sensor of different calibration factors.Wherein, calibration factor is distributed
The abscissa of figure is each illumination section, and ordinate is to meet the light sensor number of different calibration factors in corresponding illumination section
Amount.The distribution map is used to indicate in corresponding illumination section, meets the light sensor quantity accounting of different calibration factors.
As a kind of possible realization method, whether predetermined coefficient model is according to the corresponding calibration factor in each illumination section
In enclosing, identification light sensor is with the presence or absence of abnormal.Wherein, predetermined coefficient range is the corresponding calibration factor pair in illumination section
After the brightness measurement value calibration of light sensor, judge that light sensor does not have abnormal coefficient range.For example, at some
The accounting of the light sensor inquired in illumination section, if the illumination section for being more than predetermined number has calibration factor and do not locate
In the situation within the scope of predetermined coefficient, then it is abnormal to can be determined that the light sensor exists.
The brightness calibration method based on light sensor of the embodiment of the present invention, by the multiple illumination for obtaining ambient brightness
Behind section, then light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;
Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.
This method tests light sensor by multiple illumination sections, has obtained more accurate calibration factor, solves existing skill
It can only be calibrated using single light source in art, the technical problem for causing light sensor calibration deviation larger.
In order to realize that above-described embodiment, the present invention also propose a kind of brightness measuring device for camera based on light sensor.
A kind of structural representation for brightness measuring device for camera based on light sensor that Fig. 3 is provided by the embodiment of the present invention
Figure.
As shown in figure 3, the brightness measuring device for camera based on light sensor includes:Acquisition module 310, enquiry module 320,
Calibration module 330.
Acquisition module 310, the brightness measurements for obtaining light sensor.
Specifically, light sensor detects the light intensity of ambient enviroment by acquisition module 310, obtains light level
The brightness measurements of device.
Enquiry module 320, for according to the corresponding illumination section of brightness measurements, inquiry illumination section and calibration factor it
Between correspondence, determine applicable calibration factor;Wherein, the correspondence between illumination section and calibration factor is to obtain
Behind multiple illumination sections of ambient brightness, light sensor is tested for each illumination section, obtains each illumination area
Between corresponding calibration factor.
Specifically, behind the multiple illumination sections for obtaining ambient brightness, for each illumination section, using meeting each illumination
The light source of the brightness value in section, irradiation light sensor obtain corresponding brightness measurements;According to the brightness value in each illumination section
With corresponding brightness measurements, the ratio of the brightness value and corresponding brightness measurements in each illumination section is calculated, you can determine each
The corresponding calibration factor in illumination section, obtains the correspondence between illumination section and calibration factor.
Specifically, using the light source irradiation light sensor for meeting different illumination sections, when the minimal illumination in illumination section
When being worth corresponding light source irradiation light sensor, the minimum value in corresponding brightness measurements section is obtained;When illumination section most
When the corresponding light source irradiation light sensor of big brightness value, the maximum value in corresponding brightness measurements section is obtained;Then it obtains
Corresponding brightness measurements section, further obtains the correspondence between measured value section and illumination section.According to acquisition
Light sensor brightness measurements, judge the measured value section residing for it, inquire between measured value section and illumination section
Correspondence, determine the corresponding illumination section of brightness measurements.
Further instruction, according to the corresponding illumination section of brightness measurements that light sensor obtains, by inquiring mould
Block 320 inquires the correspondence between illumination section and calibration factor, determines applicable calibration factor.
Calibration module 330, for using applicable calibration factor, being calibrated to brightness measurements, obtaining ambient brightness
Calibration value.
Specifically, the correspondence between inquiry illumination section and calibration factor is inquired by enquiry module 320, determined suitable
Calibration factor.Calibration module 330 calibrates brightness measurements using applicable calibration factor, obtains ambient brightness
Calibration value, and then the screen backlight brightness of electronic equipment is adjusted.
The brightness measuring device for camera based on light sensor of the embodiment of the present invention, the brightness by obtaining light sensor are surveyed
Magnitude;According to the corresponding illumination section of the brightness measurements, the correspondence between illumination section and calibration factor is inquired, really
Surely applicable calibration factor;Wherein, the correspondence between illumination section and calibration factor is the multiple photographs for obtaining ambient brightness
After spending section, light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;
Using applicable calibration factor, brightness measurements are calibrated, obtain the calibration value of ambient brightness.This method is according to different
Brightness value carries out calibration to line sensor and obtains different calibration factors, and more accurately backlight illumination is adjusted, and is promoted
User experience, solution can only be calibrated in the prior art using single light source, cause light sensor calibration deviation larger
Technical problem.
It should be noted that the aforementioned explanation to the brightness measurement embodiment of the method based on light sensor is also suitable
In the brightness measuring device for camera based on light sensor of the embodiment, details are not described herein again.
In order to realize that above-described embodiment, the present invention also propose a kind of brightness calibration device based on light sensor.Fig. 4 is
A kind of structural schematic diagram for brightness calibration device based on light sensor that the embodiment of the present invention is provided.
As shown in figure 4, the brightness calibration device based on light sensor includes:Acquisition module 410, test module 420.
Acquisition module 410, multiple illumination sections for obtaining ambient brightness.
Specifically, light sensor is calibrated using reference white light source, since reference white light source includes a variety of
Color, therefore light sensor is different to the response of the reference white light source of different light illuminations.According to the range of intensity of illumination
Ascending to be divided into different sections, acquisition module 410 obtains multiple illumination sections of varying environment brightness.
Test module 420 obtains each illumination section for being tested for each illumination section light sensor
Corresponding calibration factor;Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains ring
The calibration value of border brightness.
Specifically, for multiple illumination sections of the ambient brightness of acquisition, test module 420 is out of each illumination section
Choose at least one brightness value T for meeting each illumination sectionXLight source, irradiation light sensor obtains corresponding brightness measurement
Value Ax.Calculate the brightness value T in each illumination sectionXWith corresponding brightness measurements AxRatio, you can obtain each illumination section and correspond to
Calibration factor Lx.Wherein, calibration factor is calibrated for the brightness measurements to light sensor, obtains ambient brightness
Calibration value.
The brightness calibration device based on light sensor of the embodiment of the present invention, by the multiple illumination for obtaining ambient brightness
Behind section, then light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;
Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.
This method tests light sensor by multiple illumination sections, has obtained more accurate calibration factor, solves existing skill
It can only be calibrated using single light source in art, the technical problem for causing light sensor calibration deviation larger.
It should be noted that the aforementioned explanation to the brightness calibration embodiment of the method based on light sensor is also suitable
In the brightness calibration device based on light sensor of the embodiment, details are not described herein again.
In order to realize above-described embodiment, the invention also provides a kind of electronic equipment 500, such as Fig. 5 are in one embodiment
The internal structure schematic diagram of electronic equipment 500, the electronic equipment 500 include:Light sensor 510, memory 520, processor
530 and it is stored in the computer program that can be run on memory 520 and on processor 530, the processor 530 executes described
When program, the brightness measurement method based on light sensor described in first aspect embodiment is realized, alternatively, realizing second aspect
The brightness calibration method based on light sensor described in embodiment.
In order to realize that above-described embodiment, the present invention also propose a kind of computer readable storage medium, when the storage medium
In instruction be performed by processor, for executing the brightness measurement based on light sensor described in first aspect embodiment
Method is alternatively, execute the brightness calibration method based on light sensor described in second aspect embodiment.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for description purposes only, it is not understood to indicate or imply relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable
Sequence, include according to involved function by it is basic simultaneously in the way of or in the opposite order, to execute function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (system of such as computer based system including processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicating, propagating or passing
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or when necessary with it
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned
In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be executed with storage
Or firmware is realized.Such as, if realized in another embodiment with hardware, following skill well known in the art can be used
Any one of art or their combination are realized:With for data-signal realize logic function logic gates from
Logic circuit is dissipated, the application-specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile
Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries
Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium
In matter, which includes the steps that one or a combination set of embodiment of the method when being executed.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also
That each unit physically exists alone, can also two or more units be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be used in block is realized, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized in the form of software function module and when sold or used as an independent product, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the present invention
System, those skilled in the art can be changed above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (13)
1. a kind of brightness measurement method based on light sensor, which is characterized in that the described method comprises the following steps:
Obtain the brightness measurements of light sensor;
According to the corresponding illumination section of the brightness measurements, the corresponding pass between illumination section and calibration factor is inquired
System determines applicable calibration factor;Wherein, the correspondence between the illumination section and calibration factor is that acquisition environment is bright
Behind multiple illumination sections of degree, the light sensor is tested for each illumination section, obtains each illumination section
Corresponding calibration factor;
Using the applicable calibration factor, the brightness measurements are calibrated, obtain the calibration value of ambient brightness.
2. brightness measurement method according to claim 1, which is characterized in that described corresponding according to the brightness measurements
The correspondence between illumination section and calibration factor is inquired in the illumination section, determines applicable calibration factor, including:
Measured value section where the brightness measurements;
The correspondence between measured value section and illumination section is inquired, determines the corresponding illumination area of the brightness measurements
Between;Wherein, the correspondence between the measured value section and illumination section is using the light source irradiation institute for meeting illumination section
Light sensor is stated, corresponding measured value section is obtained.
3. brightness measurement method according to claim 1 or 2, which is characterized in that described using the applicable calibration system
Number, calibrates the brightness measurements, after obtaining the calibration value of ambient brightness, further includes:
According to the calibration value of the ambient brightness, backlight illumination is adjusted.
4. a kind of brightness calibration method based on light sensor, which is characterized in that the described method comprises the following steps:
Obtain multiple illumination sections of ambient brightness;
Light sensor is tested for each illumination section, obtains the corresponding calibration factor in each illumination section;Wherein,
The calibration factor is calibrated for the brightness measurements to light sensor, obtains the calibration value of ambient brightness.
5. brightness calibration method according to claim 4, which is characterized in that described to be shone for each light sensor
Degree section is tested, and the corresponding calibration factor in each illumination section is obtained, including:
At least one brightness value T is taken out of each illumination sectionX;Wherein, x sorts for illumination section, and x value ranges are 1≤x
≤ n, n are the sum in illumination section;
Using the brightness value T for meeting each illumination sectionXLight source, irradiate the light sensor, obtain corresponding brightness measurements
Ax;
According to the brightness value T in each illumination sectionXWith corresponding brightness measurements Ax, determine the corresponding calibration factor in each illumination section
Lx。
6. brightness calibration method according to claim 4, which is characterized in that at least one brightness value TXIncluding illumination
At least one of upper limit value of the upper limit value in section, the median in illumination section and illumination section or multiple combinations;It is described to adopt
With the brightness value T for meeting each illumination sectionXLight source, irradiate the light sensor, obtain corresponding brightness measurements AxIt
Afterwards, further include:
For each illumination section, according to the corresponding brightness measurements of upper limit value, and according to the corresponding brightness detected value of lower limiting value,
Determine the corresponding measured value section in each illumination section;Wherein, the measured value interval limit is the corresponding brightness of the lower limiting value
Detected value, the measured value section upper limit are the corresponding brightness detected value of the upper limit value.
7. brightness calibration method according to claim 4, which is characterized in that described to be shone for each light sensor
Degree section is tested, and after obtaining the corresponding calibration factor in each illumination section, further includes:
According to the corresponding calibration factor in each illumination section, identify the light sensor with the presence or absence of abnormal.
8. brightness calibration method according to claim 7, which is characterized in that described according to the corresponding calibration in each illumination section
Coefficient identifies the light sensor with the presence or absence of exception, including:
Obtain the calibration factor distribution map in each illumination section;The calibration factor distribution map is used to indicate in corresponding illumination
In section, meet the light sensor quantity accounting of different calibration factors;
For each illumination section, the calibration factor according to the light sensor in corresponding illumination section, inquiry is corresponding
Calibration factor distribution map determines light sensor quantity accounting;
The light sensor quantity accounting arrived according to each illumination interval query identifies the light sensor with the presence or absence of abnormal.
9. brightness calibration method according to claim 7, which is characterized in that described according to the corresponding calibration in each illumination section
Coefficient identifies the light sensor with the presence or absence of exception, including:
According to the corresponding calibration factor in each illumination section whether within the scope of predetermined coefficient, whether the light sensor is identified
There are exceptions.
10. a kind of brightness measuring device for camera based on light sensor, which is characterized in that described device includes:
Acquisition module, the brightness measurements for obtaining light sensor;
Enquiry module, for according to the corresponding illumination section of the brightness measurements, inquiring illumination section and calibration factor
Between correspondence, determine applicable calibration factor;Wherein, the correspondence between the illumination section and calibration factor,
It is to be tested for each illumination section the light sensor, obtained behind the multiple illumination sections for obtaining ambient brightness
To the corresponding calibration factor in each illumination section;
Calibration module calibrates the brightness measurements, obtains ambient brightness for using the applicable calibration factor
Calibration value.
11. a kind of brightness calibration device based on light sensor, which is characterized in that described device includes:
Acquisition module, multiple illumination sections for obtaining ambient brightness;
It is corresponding to obtain each illumination section for being tested for each illumination section light sensor for test module
Calibration factor;Wherein, the calibration factor is calibrated for the brightness measurements to light sensor, obtains ambient brightness
Calibration value.
12. a kind of electronic equipment, which is characterized in that including:Light sensor, memory, processor and storage are on a memory
And the computer program that can be run on a processor, when the processor executes described program, realize as appointed in claim 1-3
The brightness measurement method based on light sensor described in one, alternatively, realize as described in any in claim 4-9 based on light
The brightness calibration method of line sensor.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The brightness measurement method based on light sensor as described in any in claim 1-3 is realized when execution, alternatively, realizing as weighed
Profit requires any brightness calibration method based on light sensor in 4-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810531261.4A CN108775958B (en) | 2018-05-29 | 2018-05-29 | Brightness measuring and calibrating method and device based on light sensor and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810531261.4A CN108775958B (en) | 2018-05-29 | 2018-05-29 | Brightness measuring and calibrating method and device based on light sensor and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108775958A true CN108775958A (en) | 2018-11-09 |
CN108775958B CN108775958B (en) | 2020-12-29 |
Family
ID=64027968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810531261.4A Expired - Fee Related CN108775958B (en) | 2018-05-29 | 2018-05-29 | Brightness measuring and calibrating method and device based on light sensor and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108775958B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109283192A (en) * | 2018-11-20 | 2019-01-29 | 苏州精濑光电有限公司 | Illumination auto-correction method, apparatus and system |
CN110660087A (en) * | 2019-08-16 | 2020-01-07 | 深圳市万普拉斯科技有限公司 | Light sensation correction method and device, electronic equipment and storage medium |
CN111207825A (en) * | 2020-01-10 | 2020-05-29 | Oppo(重庆)智能科技有限公司 | Electronic equipment testing device capable of automatically calibrating and testing device calibration method |
CN112577599A (en) * | 2020-12-23 | 2021-03-30 | 昆山龙腾光电股份有限公司 | Calibration method and calibration device for optical sensor and display module |
CN112710383A (en) * | 2019-10-24 | 2021-04-27 | 北京小米移动软件有限公司 | Light sensor calibration method and device and storage medium |
CN113091890A (en) * | 2021-03-22 | 2021-07-09 | 北京小米移动软件有限公司 | Calibration method of optical sensor, optical sensor and electronic device with optical sensor |
CN114136588A (en) * | 2021-10-29 | 2022-03-04 | 中国家用电器研究院 | System and method for testing light brightness of household appliance operation interface |
WO2023000407A1 (en) * | 2021-07-22 | 2023-01-26 | 武汉华星光电技术有限公司 | Ambient light detection method and device, and display device |
CN116075019A (en) * | 2023-03-27 | 2023-05-05 | 厦门普为光电科技有限公司 | Illuminance calibration device and method thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862334A (en) * | 2005-05-11 | 2006-11-15 | 英华达(上海)电子有限公司 | Hand-held automatic apparatus for regulating backlight brightness and effect and method thereof |
CN104296864A (en) * | 2014-09-05 | 2015-01-21 | 湖北开特汽车电子电器系统股份有限公司 | Ambient light sensor based on LIN bus and online proving, calibrating and transmitting method |
CN104575448A (en) * | 2015-02-12 | 2015-04-29 | 广东欧珀移动通信有限公司 | Backlight adjustment method and backlight adjustment device for display device |
CN106484354A (en) * | 2016-10-31 | 2017-03-08 | 维沃移动通信有限公司 | A kind of display brightness method of adjustment and mobile terminal |
-
2018
- 2018-05-29 CN CN201810531261.4A patent/CN108775958B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1862334A (en) * | 2005-05-11 | 2006-11-15 | 英华达(上海)电子有限公司 | Hand-held automatic apparatus for regulating backlight brightness and effect and method thereof |
CN104296864A (en) * | 2014-09-05 | 2015-01-21 | 湖北开特汽车电子电器系统股份有限公司 | Ambient light sensor based on LIN bus and online proving, calibrating and transmitting method |
CN104575448A (en) * | 2015-02-12 | 2015-04-29 | 广东欧珀移动通信有限公司 | Backlight adjustment method and backlight adjustment device for display device |
CN106484354A (en) * | 2016-10-31 | 2017-03-08 | 维沃移动通信有限公司 | A kind of display brightness method of adjustment and mobile terminal |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109283192A (en) * | 2018-11-20 | 2019-01-29 | 苏州精濑光电有限公司 | Illumination auto-correction method, apparatus and system |
CN110660087A (en) * | 2019-08-16 | 2020-01-07 | 深圳市万普拉斯科技有限公司 | Light sensation correction method and device, electronic equipment and storage medium |
WO2021032034A1 (en) * | 2019-08-16 | 2021-02-25 | 深圳市万普拉斯科技有限公司 | Light sensing calibration method, device, electronic apparatus, and storage medium |
CN110660087B (en) * | 2019-08-16 | 2022-05-13 | 深圳市万普拉斯科技有限公司 | Light sensation correction method and device, electronic equipment and storage medium |
CN112710383A (en) * | 2019-10-24 | 2021-04-27 | 北京小米移动软件有限公司 | Light sensor calibration method and device and storage medium |
CN111207825A (en) * | 2020-01-10 | 2020-05-29 | Oppo(重庆)智能科技有限公司 | Electronic equipment testing device capable of automatically calibrating and testing device calibration method |
CN112577599A (en) * | 2020-12-23 | 2021-03-30 | 昆山龙腾光电股份有限公司 | Calibration method and calibration device for optical sensor and display module |
CN113091890A (en) * | 2021-03-22 | 2021-07-09 | 北京小米移动软件有限公司 | Calibration method of optical sensor, optical sensor and electronic device with optical sensor |
WO2023000407A1 (en) * | 2021-07-22 | 2023-01-26 | 武汉华星光电技术有限公司 | Ambient light detection method and device, and display device |
CN114136588A (en) * | 2021-10-29 | 2022-03-04 | 中国家用电器研究院 | System and method for testing light brightness of household appliance operation interface |
CN116075019A (en) * | 2023-03-27 | 2023-05-05 | 厦门普为光电科技有限公司 | Illuminance calibration device and method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN108775958B (en) | 2020-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108775958A (en) | Brightness measurement, calibration method, device based on light sensor and electronic equipment | |
DePalma et al. | Sine-wave response of the visual system. II. Sine-wave and square-wave contrast sensitivity | |
Munoz et al. | Interpretation of Kappa and B statistics measures of agreement | |
CN103134546B (en) | A kind of semi-automatic method of calibration for special vehicle pointer instrument | |
CN112333898A (en) | Lamp brightness adjusting method and device, lamp and storage medium | |
CN109059987A (en) | A kind of method, device and mobile terminal for calibrating optical sensor | |
CN109297587A (en) | The calibration method and device of optical sensor | |
CN106226033B (en) | Detect the method and device of transparent substrates transmitance | |
CN108717847A (en) | The method of DICOM calibrations, medical display device and computer storage media | |
CN106131311A (en) | Adjust the method for screen backlight brightness, device and the mobile terminal of mobile terminal | |
CN102998026A (en) | Automatic detection device for liquid glass thermometers | |
CN110335219A (en) | A kind of bearing calibration, means for correcting and the terminal of pixel distortion | |
CN108362650B (en) | Liquid chromaticity detection method and device | |
TWI635268B (en) | Color detection device and method thereof | |
CN116412907A (en) | Calibration method and device for ambient light sensor and storage medium | |
Krüger et al. | Critical considerations for characterizing and standardizing ILMDs | |
CN109388286A (en) | Proximity state judgment method and device | |
CN109254656A (en) | Proximity test method and apparatus | |
Silosky et al. | Constancy of built‐in luminance meter measurements in diagnostic displays | |
Choi et al. | A thought on uncertainty evaluation using ANOVA | |
Silosky et al. | Performance characteristics and quality assurance considerations for displays used in interventional radiology and cardiac catheterization facilities | |
Amouroux et al. | Image quality assessment for teledermatology: from consumer devices to a dedicated medical device | |
CN108413881A (en) | Thickness detecting method and device and thickness imaging sensor | |
CN106164631A (en) | For the method detecting defect optical sensor | |
CN110186560A (en) | Ultraviolet light value revision method and system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20201229 |