CN103196653A - Method and device of light source detection - Google Patents

Method and device of light source detection Download PDF

Info

Publication number
CN103196653A
CN103196653A CN2013100756014A CN201310075601A CN103196653A CN 103196653 A CN103196653 A CN 103196653A CN 2013100756014 A CN2013100756014 A CN 2013100756014A CN 201310075601 A CN201310075601 A CN 201310075601A CN 103196653 A CN103196653 A CN 103196653A
Authority
CN
China
Prior art keywords
value
light source
module
detection light
current detection
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
Application number
CN2013100756014A
Other languages
Chinese (zh)
Other versions
CN103196653B (en
Inventor
张博
张粦钢
李建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TRULY SEMICONDUCTORS (SHANWEI) CO Ltd
Original Assignee
TRULY SEMICONDUCTORS (SHANWEI) CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by TRULY SEMICONDUCTORS (SHANWEI) CO Ltd filed Critical TRULY SEMICONDUCTORS (SHANWEI) CO Ltd
Priority to CN201310075601.4A priority Critical patent/CN103196653B/en
Publication of CN103196653A publication Critical patent/CN103196653A/en
Application granted granted Critical
Publication of CN103196653B publication Critical patent/CN103196653B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method and a device of light source detection. The method is applied to the device. The method comprises the steps of acquiring a current color temperature value and a current brightness value of a current detection light source, if the deviation of the current color temperature value and a color temperature preset value does not exceed a first set value and/or the deviation of the current brightness value and a brightness preset value does not exceed a second set value, calculating the characteristic value of the current detection light source, comparing the characteristic value of the current detection light source with a preset standard value, obtaining a comparative result, judging whether the comparative result accords with a preset condition or not, and if yes, determining that the current detection light source is not suitable for being burnt. In the method, the preset standard value of the current detection light source is determined, the characteristic value of the current detection light source and the preset standard value which is determined in advance are compared, and whether the obtained comparative result accords with the preset condition or not is judged. Thus, the small change of the light source can be detected, and the precision and the stability of burnt data are effectively guaranteed.

Description

A kind of light source detection method and device
Technical field
The present invention relates to the mobile phone cam field, particularly a kind of light source detection method and device.
Background technology
Because the color consistency problem of cmos image sensor (CMOS Sensor), only depend on the fixing parameter of a cover to be difficult to make all modules all to reach good effect, therefore need proofread and correct single module, and parameters such as color, white balance are burnt to the inside, One Time Programmable write memory (OTP) space of module.
The parameter of burning is to be come out by the data computation of obtaining under specific light source, so light source has determined directly whether the parameter of burning is correct.
And the difference of light source is mainly reflected in colour temperature and the brightness.Because the colour temperature of Different Light is not necessarily identical with brightness, same light source is also not necessarily identical with brightness in difference colour temperature constantly, so need at set intervals light source to be carried out spot check.
Detection method for light source generally is to use illuminometer at present, but in the use of reality, find to use illuminometer to test the burning parameter that colour temperature, brightness are all obtained under identical two light sources, difference is still very big, therefore need a kind of new detection method to come the subtle change of detection light source, guarantee accuracy and the stability of burning data with this.
Summary of the invention
The invention provides a kind of light source detection method and device, use prior art not have a kind of method effectively to come the subtle change of detection light source to solve, guarantee accuracy and the stability of burning data with this.
Concrete technical scheme is as follows:
A kind of light source detection method, described method comprises:
Obtain current color temperature value and the current brightness value of current detection light source;
The deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
The characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
Preferably, the process of the characteristic value of described calculating current detection light source comprises:
Under described current detection light source, use default standard module to obtain picture;
Calculate R, G, the B mean value of picture central area, obtain corresponding r_avg, g_avg, b_avg;
Calculate the characteristic value of described current detection light source.
Preferably, described characteristic value with described current detection light source compares with the standard value of presetting, and the process that obtains comparative result comprises:
Use formula variation_rg=(current_rg-typical_rg)/typical_rg*100% to obtain the comparison result of rg, wherein, variation_rg is the comparison result of rg, and current_rg is the rg characteristic value of described current detection light source, and typical_rg is the preset standard value of rg;
Use formula variation_bg=(current_bg-typical_bg)/typical_bg*100% to obtain the comparison result of bg, wherein, variation_bg is the comparison result of bg, and current_bg is the bg characteristic value of described current detection light source, and typical_bg is the preset standard value of bg.
Preferably, the process of described preset standard value comprises:
Obtain color temperature value and the brightness value of described current detection light source, as the colour temperature preset value and and the brightness preset value;
Choose one group of module, calculate R/G and the B/G value of each module;
Selecting a module in described one group of module is the standard module;
Determine the standard value of described current detection light source.
Preferably, the process of the R/G of described each module of calculating and B/G value comprises:
Under described current detection light source, obtain picture with each module in described one group of module;
Calculate R, G, the B mean value of picture central area, obtain corresponding r_avg, g_avg, b_avg;
Calculate R/G value and the B/G value of described each module.
Preferably, a module in the described one group of module of described selection is the standard module process comprises:
Calculate R/G mean value and B/G mean value in described one group of module;
Select R/G value and the R/G mean value in B/G value and the described one group of module and the module of B/G mean deviation minimum of a module in described one group of module, determine that the module of described R/G value and B/G value and R/G mean value and B/G mean deviation minimum is the standard module.
Preferably, the process of the standard value of described definite described current detection light source comprises:
With the R/G value of described standard module and the B/G value standard value as described current detection light source.
A kind of light source detection device, described device comprises: acquisition module, computing module and judge module;
Wherein, described acquisition module is used for, and obtains current color temperature value and the current brightness value of current detection light source;
Described computing module is used for, and the deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
Described judge module is used for, and the characteristic value of described current detection light source and default standard value are compared, and obtains comparative result, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
Preferably, described computing module comprises: first judging unit, acquiring unit, first computing unit and second computing unit;
Wherein, described first judging unit is used for, whether the deviation whether deviation of judging described current color temperature value and colour temperature preset value surpasses first setting value and/or described current brightness value and brightness preset value has surpassed second preset value, if trigger described acquiring unit work;
Described acquiring unit is used for, and under described current detection light source, uses default standard module to obtain picture;
Described first computing unit is used for, and calculates R, G, the B mean value of picture central area, obtains corresponding r_avg, g_avg, b_avg;
Described second computing unit is used for, and calculates the characteristic value of described current detection light source.
Preferably, described judge module comprises: comparing unit, second acquisition unit, choose computing unit, selected cell, determining unit and second judging unit;
Described comparing unit is used for, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, wherein, described default standard value by described second acquisition unit, choose computing unit, selected cell and determining unit and obtain and determine to obtain;
Described second acquisition unit is used for, and obtains color temperature value and the brightness value of described current detection light source, as the colour temperature preset value and and the brightness preset value;
The described computing unit of choosing is used for, and chooses one group of module, and calculates R/G and the B/G value of each module;
Described selected cell is used for, and selecting a module in described one group of module is the standard module;
Described determining unit is used for, and determines the standard value of described current detection light source;
Described second judging unit is used for, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
As can be seen from the above technical solutions, a kind of light source detection method and device are provided among the present invention, described method is applied in the described device, comprise: the current color temperature value and the current brightness value that obtain the current detection light source, when the deviation of described current color temperature value and colour temperature preset value does not have to surpass the deviation of first setting value and/or described current brightness value and brightness preset value not above second setting value, then calculate the characteristic value of described current detection light source, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, it is pre-conditioned to judge whether described comparative result meets, if, then described current detection light source is not suitable for carrying out burning, determined the preset standard value of described current detection light source in the described method, characteristic value and the predetermined preset standard value of described current detection light source are compared, and judge whether the comparative result that obtains meets pre-conditioned, so just can detect the subtle change of light source, effectively guarantee accuracy and the stability of burning data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in invention or the description of the Prior Art below, apparently, the accompanying drawing that describes below only is some embodiment that put down in writing among the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the embodiment of the invention one disclosed a kind of light source detection method flow synoptic diagram;
Fig. 2 is the embodiment of the invention two disclosed a kind of light source detection method flow synoptic diagram;
Fig. 3 is the method flow synoptic diagram of the embodiment of the invention two disclosed preset standard value processes;
Fig. 4 is the method flow synoptic diagram of the process of the R/G of the embodiment of the invention two disclosed each module of calculating and B/G value;
The process approach schematic flow sheet that Fig. 5 is the standard module for a module in the described one group of module of the embodiment of the invention two disclosed selections;
Fig. 6 is the embodiment of the invention three disclosed a kind of light source detection method flow synoptic diagram;
Fig. 7 is the embodiment of the invention four disclosed a kind of light source detection apparatus structure synoptic diagram;
Fig. 8 is the embodiment of the invention five disclosed a kind of light source detection apparatus structure synoptic diagram;
Fig. 9 is the embodiment of the invention six disclosed a kind of light source detection apparatus structure synoptic diagram.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to protection scope of the present invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention one discloses a kind of light source detection method, and referring to shown in Figure 1, described method comprises:
Step S101: the current color temperature value and the current brightness value that obtain the current detection light source;
Need to prove, can use illuminometer to obtain current color temperature value and the current brightness value of current detection light source;
Step S102: the deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
Wherein, the deviation that the deviation of described current color temperature value and colour temperature preset value does not have to surpass first setting value and/or described current brightness value and brightness preset value does not surpass second setting value, can not surpass first setting value for the deviation of described current color temperature value and colour temperature preset value, then calculate the characteristic value of described current detection light source, or the deviation of described current brightness value and brightness preset value does not surpass second setting value, then calculate the characteristic value of described current detection light source, the deviation that yet can not have for the deviation when described current color temperature value and colour temperature preset value to surpass first setting value and described current brightness value and brightness preset value does not surpass second setting value, then calculate the characteristic value of described current detection light source, when above-mentioned two conditions all satisfy, just can calculate the characteristic value of described current detection light source, further improve the precision of judging that can described current detection light source burning;
Need to prove that described first setting value can be set according to actual conditions, such as ± 200K, described second setting value also can be set according to actual conditions, such as ± 300LUX;
Step S103: characteristic value and the preset standard value of described current detection light source are compared, obtain comparative result;
Step S104: it is pre-conditioned to judge whether described comparative result meets, if, execution in step S105 then;
Wherein, judge whether described comparative result meets pre-conditioned in pre-conditioned and can set and surpass ± 2% and also can be set at and surpass ± 5% etc.;
Step S105: described current detection light source is not suitable for carrying out burning.
Present embodiment discloses a kind of light source detection method, described method comprises: the current color temperature value and the current brightness value that obtain the current detection light source, when surpassing colour temperature preset value and/or described current brightness value, described current color temperature value do not surpass the brightness preset value, then calculate the characteristic value of described current detection light source, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, it is pre-conditioned to judge whether described comparative result meets, if, then described current detection light source is not suitable for carrying out burning, determined the preset standard value of described current detection light source in the described method, characteristic value and the predetermined preset standard value of described current detection light source are compared, and judge whether the comparative result that obtains meets pre-conditioned, so just can detect the subtle change of light source, effectively guarantee accuracy and the stability of burning data.
Disclose a kind of light source detection method in the embodiment of the invention two, referring to shown in Figure 2, described method comprises:
Step S201: the current color temperature value and the current brightness value that obtain the current detection light source;
Need to prove, can use illuminometer to obtain current color temperature value and the current brightness value of current detection light source;
Step S202: when the deviation of described current color temperature value and colour temperature preset value does not have to surpass the deviation of first setting value and/or described current brightness value and brightness preset value not above second setting value, then execution in step S203;
Need to prove that described first setting value can be set according to actual conditions, such as ± 200K, described second setting value also can be set according to actual conditions, such as ± 300LUX;
Step S203: under described current detection light source, use default standard module to obtain picture;
Step S204: calculate the picture central area R, G, B mean value, obtain corresponding r_avg, g_avg, b_avg;
Need to prove, picture conversion be become rgb format, the mean value of the R passage of (for example 1/5Width*1/5Height) all pixels, G passage, B passage in computing center's zone setting range;
N pixel for example arranged, the value of each pixel be (Ri, Gi, Bi),
r_avg=(R0+R1+…+Rn)/n,
g_avg=(G0+G1+…+Gn)/n,
b_avg=(B0+B1+…+Bn)/n
Step S205: the characteristic value that calculates described current detection light source;
Wherein, the characteristic value of described current detection light source is
current_rg=r_avg/g_avg
current_bg=b_avg/g_avg;
Step S206: characteristic value and the preset standard value of described current detection light source are compared, obtain comparative result,
Wherein, described preset standard value process, referring to shown in Figure 3, described process approach comprises:
Step S301: obtain color temperature value and the brightness value of described current detection light source, as the colour temperature preset value and and the brightness preset value;
Step S302: choose one group of module, calculate R/G and the B/G value of each module;
Need to prove that one group of module choosing can be to set according to actual conditions, now can set 30-50;
Wherein, for the R/G that calculates each module and the process of B/G value, referring to shown in Figure 4, described method comprises:
Step S401: under described current detection light source, obtain picture with each module in described one group of module;
Step S402: calculate R, G, the B mean value of picture central area, obtain corresponding r_avg, g_avg, b_avg;
Need to prove that convert described picture format to rgb format this moment, the mean value of the R passage of (for example 1/5Width*1/5Height) all pixels, G passage, B passage in computing center's zone setting range;
N pixel for example arranged, the value of each pixel be (Ri, Gi, Bi),
r_avg=(R0+R1+…+Rn)/n,
g_avg=(G0+G1+…+Gn)/n,
b_avg=(B0+B1+…+Bn)/n;
Step S403: R/G value and the B/G value of calculating described each module;
Wherein, namely calculate each module
rg=r_avg/g_avg
bg=b_avg/g_avg;
Step S303: selecting a module in described one group of module is the standard module;
Wherein, for a process that module is the standard module of selecting in described one group of module, referring to shown in Figure 5, described method comprises:
Step S501: calculate R/G mean value and B/G mean value in described one group of module;
Step S502: select R/G value and the R/G mean value in B/G value and the described one group of module and the module of B/G mean deviation minimum of a module in described one group of module, determine that the module of described R/G value and B/G value and R/G mean value and B/G mean deviation minimum is the standard module;
Need to prove, R/G value and the R/G mean value in B/G value and the described one group of module and the module of B/G mean deviation minimum of a module in described one group of module of selecting this moment, that is to say, when the R/G mean value in described one group of module is 5 and B/G mean value when being 6, this moment by a module in the one group of module that calculates R/G value and the B/G value more close to R/G mean value be 5 and B/G mean value be 6, will determine that a described module is the standard module at this moment;
Step S304: the standard value of determining described current detection light source;
Need to prove, with the R/G value of the described standard module determined among the step S502 and the B/G value standard value as described current detection light source;
Step S207: it is pre-conditioned to judge whether described comparative result meets, if, execution in step S208 then;
Step S208: described current detection light source is not suitable for carrying out burning.
Present embodiment discloses a kind of light source detection method, specialized the method for the characteristic value that calculates described current detection light source in the described method, namely under described current detection light source, use default standard module to obtain picture, calculate the R of picture central area, G, B mean value, obtain corresponding r_avg, g_avg, b_avg, calculate the characteristic value of described current detection light source, characteristic value and the preset standard value of described current detection light source are compared, wherein, the process of described preset standard value comprises: color temperature value and the brightness value of choosing described current detection light source, as the colour temperature preset value and and the brightness preset value, choose one group of module, calculate R/G and the B/G value of each module, and to select a module in described one group of module be the standard module, determine the standard value of described current detection light source, and comprise for the R/G that calculates each module and the process of B/G value: under described current detection light source, obtain picture with each module in described one group of module, calculate the R of picture central area, G, B mean value, obtain corresponding r_avg, g_avg, b_avg, calculate R/G value and the B/G value of described each module, the process that is the standard module for a module of selecting in described one group of module is, calculate R/G mean value and B/G mean value in described one group of module, select R/G value and the R/G mean value in B/G value and the described one group of module and the module of B/G mean deviation minimum of a module in described one group of module, the module of determining described R/G value and B/G value and R/G mean value and B/G mean deviation minimum is the standard module, and be about to the R/G value of described standard module and B/G value as the standard value of described current detection light source for the standard value of determining described current detection light source, in the described method refinement below the content of several aspects, it is the process of preset standard value, calculate the R/G of each module and the process of B/G value, the process that to select a module in described one group of module be the standard module and the process of determining the standard value of described current detection light source, come the subtle change of detection light source in the mode of more optimizing, with effective accuracy and stability that has guaranteed burning data.
The embodiment of the invention three discloses a kind of light source detection method, and referring to shown in Figure 6, described method comprises:
Step S601: the current color temperature value and the current brightness value that obtain the current detection light source;
Need to prove, can use illuminometer to obtain current color temperature value and the current brightness value of current detection light source;
Step S602: when the deviation of described current color temperature value and colour temperature preset value does not have to surpass the deviation of first setting value and/or described current brightness value and brightness preset value not above second setting value, then execution in step S603;
Need to prove that described colour temperature preset value can be set according to actual conditions, such as ± 200K, described brightness value also can be set according to actual conditions, such as ± 300LUX;
Step S603: under described current detection light source, use default standard module to obtain picture;
Step S604: calculate the picture central area R, G, B mean value, obtain corresponding r_avg, g_avg, b_avg;
Need to prove, picture conversion be become rgb format, the mean value of the R passage of (for example 1/5Width*1/5Height) all pixels, G passage, B passage in computing center's zone setting range;
N pixel for example arranged, the value of each pixel be (Ri, Gi, Bi), r_avg=(R0+R1+ ... + Rn)/and n, g_avg=(G0+G1+ ... + Gn)/and n, b_avg=(B0+B1+ ... + Bn)/n
Step S605: the characteristic value that calculates described current detection light source;
Wherein, the characteristic value of described current detection light source is
current_rg=r_avg/g_avg
current_bg=b_avg/g_avg;
Step S606: use formula variation_rg=(current_rg-typical_rg)/typical_rg*100% to obtain the comparison result of rg, wherein, variation_rg is the comparison result of rg, current_rg is the rg characteristic value of described current detection light source, and typical_rg is the preset standard value of rg;
Use formula variation_bg=(current_bg-typical_bg)/typical_bg*100% to obtain the comparison result of bg, wherein, variation_bg is the comparison result of bg, and current_bg is the bg characteristic value of described current detection light source, and typical_bg is the preset standard value of bg;
Step S607: it is pre-conditioned to judge whether described comparison result variation_rg and variation_bg meet, if, execution in step S608;
Wherein, judge whether described comparative result meets pre-conditioned in pre-conditioned and can set and surpass ± 2% and also can be set at and surpass ± 5% etc.;
Step S608: described current detection light source is not suitable for carrying out burning.
A kind of light source detection method is disclosed in the present embodiment, in the described method refinement characteristic value and the preset standard value of described current detection light source compared, obtain comparative result, judge whether described comparative result meets pre-conditioned process, namely use the comparative result that arrives that disclosed formula comes among the embodiment three, judge described comparative result and pre-conditioned relation, be that described comparative result can not surpass predetermined scope, if surpassed, illustrate that then described current detection light source is not suitable for carrying out burning, described default scope can be chosen according to actual conditions, having guaranteed has small variation when described current detection light source, also can be detected, guarantee the accurately fixed and stable of burning data.
Present embodiment four discloses a kind of light source detection device, and referring to shown in Figure 7, described device comprises: acquisition module 101, computing module 102 and judge module 103;
Wherein, described acquisition module 101 is used for, and obtains current color temperature value and the current brightness value of current detection light source;
Need to prove, can use illuminometer to obtain current color temperature value and the current brightness value of current detection light source;
Described computing module 102 is used for, the deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
Wherein, the deviation that the deviation of described current color temperature value and colour temperature preset value does not have to surpass first setting value and/or described current brightness value and brightness preset value does not surpass second setting value, can not surpass first setting value for the deviation of described current color temperature value and colour temperature preset value, then calculate the characteristic value of described current detection light source, or the deviation of described current brightness value and brightness preset value does not surpass second setting value, then calculate the characteristic value of described current detection light source, the deviation that yet can not have for the deviation when described current color temperature value and colour temperature preset value to surpass first setting value and described current brightness value and brightness preset value does not surpass second setting value, then calculate the characteristic value of described current detection light source, when above-mentioned two conditions all satisfy, just can calculate the characteristic value of described current detection light source, further improve the precision of judging that can described current detection light source burning;
Need to prove that described first setting value can be set according to actual conditions, such as ± 200K, described second setting value also can be set according to actual conditions, such as ± 300LUX;
Described judge module 103 is used for, and the characteristic value of described current detection light source and default standard value are compared, and obtains comparative result, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning;
Wherein, judge whether described comparative result meets pre-conditioned in pre-conditioned and can set and surpass ± 2% and also can be set at and surpass ± 5% etc.
A kind of light source detection device is disclosed in the present embodiment, described device comprises: acquisition module, computing module and judge module, described acquisition module is used for, obtain current color temperature value and the current brightness value of current detection light source, described computing module is used for, when the deviation of described current color temperature value and colour temperature preset value does not have to surpass the deviation of first setting value and/or described current brightness value and brightness preset value not above second setting value, then calculate the characteristic value of described current detection light source, described judge module is used for, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, it is pre-conditioned to judge whether described comparative result meets, if, then described current detection light source is not suitable for carrying out burning, do not adopt traditional illuminometer to come detection light source, used a kind of light source detection device to come the subtle change of described detection light source is detected, effectively guaranteed accuracy and the stability of burning data.
Present embodiment five discloses a kind of light source detection device, and referring to shown in Figure 8, described device comprises: acquisition module 101, computing module 102 and judge module 103;
Wherein, described acquisition module 101, computing module 102 and judge module 103 are consistent with embodiment four disclosed described acquisition modules 101, computing module 102 and judge module 103;
Described computing module 102 comprises: first judging unit 201, acquiring unit 202, first computing unit 203 and second computing unit 204;
Wherein, described first judging unit 201 is used for, whether the deviation whether deviation of judging described current color temperature value and colour temperature preset value surpasses first setting value and/or described current brightness value and brightness preset value has surpassed second preset value, if trigger described acquiring unit work;
Described acquiring unit 202 is used for, and under described current detection light source, uses default standard module to obtain picture;
Described first computing unit 203 is used for, and calculates R, G, the B mean value of picture central area, obtains corresponding r_avg, g_avg, b_avg;
Need to prove, picture conversion be become rgb format, the mean value of the R passage of (for example 1/5Width*1/5Height) all pixels, G passage, B passage in computing center's zone setting range;
N pixel for example arranged, the value of each pixel be (Ri, Gi, Bi),
r_avg=(R0+R1+…+Rn)/n,
g_avg=(G0+G1+…+Gn)/n,
b_avg=(B0+B1+…+Bn)/n
Described second computing unit 204 is used for, and calculates the characteristic value of described current detection light source.
Wherein, the characteristic value of described current detection light source is
current_rg=r_avg/g_avg
current_bg=b_avg/g_avg;
A kind of light source detection device is disclosed in the present embodiment, refinement described computing module, computing module comprises in the described device: first judging unit, acquiring unit, first computing unit and second computing unit, whether the deviation of using the deviation of the described current color temperature value of described first judgment unit judges and colour temperature preset value whether to surpass first setting value and/or described current brightness value and brightness preset value has surpassed second preset value, if, trigger described acquiring unit work, described acquiring unit is used for, under described current detection light source, use default standard module to obtain picture, described first computing unit is used for, calculate the R of picture central area, G, B mean value, obtain corresponding r_avg, g_avg, b_avg, described second computing unit is used for, calculate the characteristic value of described current detection light source, optimized the device that calculates described current detection light source characteristic value, come the subtle change of detection light source with this.
Present embodiment six discloses a kind of light source detection device, and referring to shown in Figure 9, described device comprises: acquisition module 101, computing module 102 and judge module 103;
Wherein, described acquisition module 101, computing module 102 and judge module 103 are consistent with embodiment four disclosed described acquisition modules 101, computing module 102 and judge module 103;
Described judge module 103 comprises: comparing unit 301, second acquisition unit 302, choose computing unit 303, selected cell 304, determining unit 305 and second judging unit 306;
Described comparing unit 301 is used for, and the characteristic value of described current detection light source and default standard value are compared, and obtains comparative result, and wherein, described default standard value is by described second acquisition unit.Choosing computing unit, selected cell and determining unit obtains and determines to obtain;
Described second acquisition unit 302 is used for, and obtains color temperature value and the brightness value of described current detection light source;
The described computing unit 303 of choosing is used for, and chooses one group of module, and calculates R/G and the B/G value of each module;
Need to prove that one group of module choosing can be to set according to actual conditions, now can set 30-50;
Described selected cell 304 is used for, and selecting a module in described one group of module is the standard module;
Described determining unit 305 is used for, and determines the standard value of described current detection light source;
Need to prove that the standard value of determining described current detection light source is about to the R/G value of described standard module and B/G value as the standard value of described current detection light source;
Described second judging unit 306 is used for, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning;
Wherein, judge whether described comparative result meets pre-conditioned in pre-conditioned and can set and surpass ± 2% and also can be set at and surpass ± 5% etc.
A kind of light source detection device is disclosed in the present embodiment, described device refinement judge module, described judge module comprises: comparing unit, second acquisition unit, choose computing unit, selected cell, determining unit and second judging unit, wherein, described comparing unit is used for, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, and be by described second acquisition unit for wherein default standard value, choose computing unit, selected cell, determining unit and second judging unit are determined to obtain, namely, described second acquisition unit is used for, obtain color temperature value and the brightness value of described current detection light source, the described computing unit of choosing is used for, choose one group of module, and calculate R/G and the B/G value of each module, described selected cell is used for, selecting a module in described one group of module is the standard module, described determining unit is used for, determine the standard value of described current detection light source, described second judging unit is used for, it is pre-conditioned to judge whether described comparative result meets, if, then described current detection light source is not suitable for carrying out burning, described device can solve in the prior art and to use illuminometer to come detection light source, though testing conditions is the same, difference is very big problem still, can detect the subtle change of light source, effectively guarantee accuracy and the stability of burning data.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment is apparent to those skilled in the art, and defined General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments herein.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet the wide region consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a light source detection method is characterized in that, described method comprises:
Obtain current color temperature value and the current brightness value of current detection light source;
The deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
The characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
2. method according to claim 1 is characterized in that, the process of the characteristic value of described calculating current detection light source comprises:
Under described current detection light source, use default standard module to obtain picture;
Calculate R, G, the B mean value of picture central area, obtain corresponding r_avg, g_avg, b_avg;
Calculate the characteristic value of described current detection light source.
3. method according to claim 1 is characterized in that, described characteristic value with described current detection light source compares with the standard value of presetting, and the process that obtains comparative result comprises:
Use formula variation_rg=(current_rg-typical_rg)/typical_rg*100% to obtain the comparison result of rg, wherein, variation_rg is the comparison result of rg, and current_rg is the rg characteristic value of described current detection light source, and typical_rg is the preset standard value of rg;
Use formula variation_bg=(current_bg-typical_bg)/typical_bg*100% to obtain the comparison result of bg, wherein, variation_bg is the comparison result of bg, and current_bg is the bg characteristic value of described current detection light source, and typical_bg is the preset standard value of bg.
4. method according to claim 3 is characterized in that, the process of described preset standard value comprises:
Obtain color temperature value and the brightness value of described current detection light source, as the colour temperature preset value and and the brightness preset value;
Choose one group of module, calculate R/G and the B/G value of each module;
Selecting a module in described one group of module is the standard module;
Determine the standard value of described current detection light source.
5. method according to claim 4 is characterized in that, the process of the R/G of described each module of calculating and B/G value comprises:
Under described current detection light source, obtain picture with each module in described one group of module;
Calculate R, G, the B mean value of picture central area, obtain corresponding r_avg, g_avg, b_avg;
Calculate R/G value and the B/G value of described each module.
6. method according to claim 5 is characterized in that, the process that a module in the described one group of module of described selection is the standard module comprises:
Calculate R/G mean value and B/G mean value in described one group of module;
Select R/G value and the R/G mean value in B/G value and the described one group of module and the module of B/G mean deviation minimum of a module in described one group of module, determine that the module of described R/G value and B/G value and R/G mean value and B/G mean deviation minimum is the standard module.
7. method according to claim 6 is characterized in that, the process of the standard value of described definite described current detection light source comprises:
With the R/G value of described standard module and the B/G value standard value as described current detection light source.
8. a light source detection device is characterized in that, described device comprises: acquisition module, computing module and judge module;
Wherein, described acquisition module is used for, and obtains current color temperature value and the current brightness value of current detection light source;
Described computing module is used for, and the deviation that does not have to surpass first setting value and/or described current brightness value and brightness preset value when the deviation of described current color temperature value and colour temperature preset value is then calculated the characteristic value of described current detection light source not above second setting value;
Described judge module is used for, and the characteristic value of described current detection light source and default standard value are compared, and obtains comparative result, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
9. device according to claim 8 is characterized in that, described computing module comprises: first judging unit, acquiring unit, first computing unit and second computing unit;
Wherein, described first judging unit is used for, whether the deviation whether deviation of judging described current color temperature value and colour temperature preset value surpasses first setting value and/or described current brightness value and brightness preset value has surpassed second preset value, if trigger described acquiring unit work;
Described acquiring unit is used for, and under described current detection light source, uses default standard module to obtain picture;
Described first computing unit is used for, and calculates R, G, the B mean value of picture central area, obtains corresponding r_avg, g_avg, b_avg;
Described second computing unit is used for, and calculates the characteristic value of described current detection light source.
10. device according to claim 8 is characterized in that, described judge module comprises: comparing unit, second acquisition unit, choose computing unit, selected cell, determining unit and second judging unit;
Described comparing unit is used for, the characteristic value of described current detection light source is compared with the standard value of presetting, obtain comparative result, wherein, described default standard value by described second acquisition unit, choose computing unit, selected cell and determining unit and obtain and determine to obtain;
Described second acquisition unit is used for, and obtains color temperature value and the brightness value of described current detection light source, as the colour temperature preset value and and the brightness preset value;
The described computing unit of choosing is used for, and chooses one group of module, and calculates R/G and the B/G value of each module;
Described selected cell is used for, and selecting a module in described one group of module is the standard module;
Described determining unit is used for, and determines the standard value of described current detection light source;
Described second judging unit is used for, and it is pre-conditioned to judge whether described comparative result meets, if then described current detection light source is not suitable for carrying out burning.
CN201310075601.4A 2013-03-08 2013-03-08 Method and device of light source detection Active CN103196653B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310075601.4A CN103196653B (en) 2013-03-08 2013-03-08 Method and device of light source detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310075601.4A CN103196653B (en) 2013-03-08 2013-03-08 Method and device of light source detection

Publications (2)

Publication Number Publication Date
CN103196653A true CN103196653A (en) 2013-07-10
CN103196653B CN103196653B (en) 2015-04-08

Family

ID=48719347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310075601.4A Active CN103196653B (en) 2013-03-08 2013-03-08 Method and device of light source detection

Country Status (1)

Country Link
CN (1) CN103196653B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702930A (en) * 2013-12-06 2015-06-10 青岛海信移动通信技术股份有限公司 Method and device for determining white balance light source
CN106973242A (en) * 2017-05-16 2017-07-21 信利光电股份有限公司 A kind of light source compensating method of camera module
CN109302566A (en) * 2018-11-22 2019-02-01 深圳市景阳科技股份有限公司 A kind of method, apparatus and terminal device of determining screening-mode
CN110933399A (en) * 2019-11-12 2020-03-27 信利光电股份有限公司 Detection method and device of light source equipment
CN111595438A (en) * 2020-04-07 2020-08-28 昆山丘钛微电子科技有限公司 Method and device for detecting stability of burning light source of module AWB
CN113759192A (en) * 2021-07-29 2021-12-07 江铃汽车股份有限公司 EMC test method and device, readable storage medium and vehicle
CN116539285A (en) * 2023-07-06 2023-08-04 深圳市海塞姆科技有限公司 Light source detection method, device, equipment and storage medium based on artificial intelligence
CN113759192B (en) * 2021-07-29 2024-04-30 江铃汽车股份有限公司 EMC test method and device, readable storage medium and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000121497A (en) * 1998-10-14 2000-04-28 Stanley Electric Co Ltd Apparatus and method for inspecting luminance
CN101187684A (en) * 2006-11-15 2008-05-28 鸿富锦精密工业(深圳)有限公司 Main board light-emitting diode detection device and method
CN101996585A (en) * 2010-11-03 2011-03-30 中航华东光电有限公司 RGB three primary colours LED backlight based automatic white balance adjustment system and method thereof
CN201803794U (en) * 2010-07-14 2011-04-20 中国计量学院 Mesopic vision illuminometer
CN202024875U (en) * 2011-01-06 2011-11-02 海洋王照明科技股份有限公司 Detection device use for planar light source performance detection
CN202041284U (en) * 2011-04-14 2011-11-16 吴超青 Portable color temperature and brightness meter with RGB (red, green and blue) analysis function

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000121497A (en) * 1998-10-14 2000-04-28 Stanley Electric Co Ltd Apparatus and method for inspecting luminance
CN101187684A (en) * 2006-11-15 2008-05-28 鸿富锦精密工业(深圳)有限公司 Main board light-emitting diode detection device and method
CN201803794U (en) * 2010-07-14 2011-04-20 中国计量学院 Mesopic vision illuminometer
CN101996585A (en) * 2010-11-03 2011-03-30 中航华东光电有限公司 RGB three primary colours LED backlight based automatic white balance adjustment system and method thereof
CN202024875U (en) * 2011-01-06 2011-11-02 海洋王照明科技股份有限公司 Detection device use for planar light source performance detection
CN202041284U (en) * 2011-04-14 2011-11-16 吴超青 Portable color temperature and brightness meter with RGB (red, green and blue) analysis function

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104702930A (en) * 2013-12-06 2015-06-10 青岛海信移动通信技术股份有限公司 Method and device for determining white balance light source
CN104702930B (en) * 2013-12-06 2016-12-07 青岛海信移动通信技术股份有限公司 A kind of method and device determining white balance light source
CN106973242A (en) * 2017-05-16 2017-07-21 信利光电股份有限公司 A kind of light source compensating method of camera module
CN109302566A (en) * 2018-11-22 2019-02-01 深圳市景阳科技股份有限公司 A kind of method, apparatus and terminal device of determining screening-mode
CN110933399A (en) * 2019-11-12 2020-03-27 信利光电股份有限公司 Detection method and device of light source equipment
CN111595438A (en) * 2020-04-07 2020-08-28 昆山丘钛微电子科技有限公司 Method and device for detecting stability of burning light source of module AWB
CN111595438B (en) * 2020-04-07 2023-03-31 昆山丘钛微电子科技股份有限公司 Method and device for detecting stability of burning light source of module AWB
CN113759192A (en) * 2021-07-29 2021-12-07 江铃汽车股份有限公司 EMC test method and device, readable storage medium and vehicle
CN113759192B (en) * 2021-07-29 2024-04-30 江铃汽车股份有限公司 EMC test method and device, readable storage medium and vehicle
CN116539285A (en) * 2023-07-06 2023-08-04 深圳市海塞姆科技有限公司 Light source detection method, device, equipment and storage medium based on artificial intelligence
CN116539285B (en) * 2023-07-06 2023-09-01 深圳市海塞姆科技有限公司 Light source detection method, device, equipment and storage medium based on artificial intelligence

Also Published As

Publication number Publication date
CN103196653B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
CN103196653A (en) Method and device of light source detection
KR101092539B1 (en) Image apparatus for controlling white-balance automatically and method for controlling white-balance thereof
CN101621705B (en) Method and apparatus for automatic white balance
CN105336286A (en) Spliced screen color adjusting method and device
CN103824544A (en) LED display screen correction method, device and system
CN109471276B (en) Method and device for detecting color cast defect of liquid crystal display
US11100627B2 (en) Detecting method and device for display panel
US10194126B2 (en) Image processing method, imaging apparatus, and method performed thereby
CN101163253B (en) Method and device for searching new color temperature point
CN103167292A (en) Auto white balance adjustment system, auto white balance adjustment method, and camera module
US9286859B2 (en) Brightness measurement method and brightness adjustment device for display elements
CN102158727A (en) Method and system for detecting color reducibility of camera of mobile phone
CN103369265A (en) Pixel information management apparatus and image capture apparatus using the same
CN104104946A (en) Method and electronic equipment for consistence correction of camera
CN104702941A (en) White-dot area indicating and judging method
CN104637425A (en) Assembly-line LED (light emitting diode) display unit uniformity detection method, system and device
CN105306930A (en) Brightness measurement method, brightness measurement device and image quality regulation technology employing the device and the method
JP5901390B2 (en) Light emitting device and calibration method thereof
CN104167174A (en) LED display screen white balance adjustment method and device
CN102982785A (en) Color tuning system used for television wall
CN104795048B (en) Mosaic display screen color calibration method and system
US10096128B2 (en) Change degree deriving device, change degree deriving system, and non-transitory computer readable medium
CN105049841B (en) The method for improving color camera coloration ability using the pre- optical filter of single channel
CN105227942A (en) A kind of projector's colour temperature method to set up and colour temperature arrange system
WO2022183807A1 (en) Method and apparatus for determining target parameter of polarizer, and polarizer and debugging system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 516600 Guangdong Industrial Zone, Shanwei City Road, Lee Lee Industrial City, a district of the building fifteenth

Applicant after: Truly Opto-Electronics Ltd.

Address before: 516600, Fifteenth Industrial Zone, Xinli Industrial Road, downtown industrial district, Guangdong, Shanwei

Applicant before: Truly Semiconductors (Shanwei) Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: TRULY OPTO-ELECTRONICS LIMITED TO: TRULY OPTO-ELECTRONICS LTD.

C14 Grant of patent or utility model
GR01 Patent grant