Embodiment
Below in conjunction with Figure of description the specific embodiment of the present invention is described.
Camera head generally all has automatic exposure function, and described automatic exposure function is promptly adjusted exposure parameter so that the mean flow rate Y of sensed image according to current environment brightness
MEANBe locked in the proper range as far as possible.Described exposure parameter can comprise time for exposure ET (Exposure Time), digital gain DG (Digital Gain) and imageing sensor gain SG (Sensor Gain).Certainly in other embodiments, also time for exposure, digital gain be can only comprise in the described exposure parameter, time for exposure, imageing sensor gain equally also can be only comprised.In the automatic exposure process, under the constant prerequisite of current environment brightness, the time for exposure is long more, and the sensed image mean flow rate is bright more, otherwise the time for exposure is short more, and the sensed image mean flow rate is dark more; Digital gain is big more, and the sensed image mean flow rate is bright more, otherwise digital gain is more little, and the sensed image mean flow rate is dark more; The imageing sensor gain is big more, and the sensed image mean flow rate is bright more, otherwise the imageing sensor gain is more little, and the sensed image mean flow rate is dark more.Like this, under current environment brightness, adjust time for exposure, digital gain and imageing sensor gain by combination and just the mean flow rate of sensed image can be adjusted in the proper range, such as at low brightness threshold Y
LTHDWith high brightness threshold value Y
HTHDBetween.Certainly in the different implementations of automatic exposure function, time for exposure, digital gain and imageing sensor gain the adjustment order of these exposure parameters can be different, such as, in one embodiment when needs increase the sensed image mean flow rate gradually, can increase the time for exposure earlier, every increase one-level time for exposure, beginning increases digital gain up to reaching its maximum from minimum value, after the time for exposure increased to maximum, beginning increased the imageing sensor gain up to reaching its maximum from minimum value.
As can be seen, as long as the adjustment of these exposure parameters order is certain, so every kind of current environment brightness all can be to there being one group of roughly constant exposure parameter values, and corresponding, every group of exposure parameter values all roughly can reflect the brightness of current environment.Please refer to shown in Figure 1, its corresponding relation that shows exposure parameter and ambient brightness roughly.It should be noted that in addition, because described exposure parameter may comprise time for exposure, digital gain and imageing sensor gain in the present invention, and the adjustment order of time for exposure, digital gain and imageing sensor gain may be different, so the value of exposure parameter just may be an array, and there is not strict magnitude relationship between the different array yet.Yet for convenience of description, defining the high exposure parameter values of corresponding ambient brightness in this article is that array is little, and the exposure parameter values that corresponding ambient brightness is low is that array is big.
Generally speaking, in the technical scheme that the present invention proposes, utilized this specific corresponding relation of automatic exposure parameter value and ambient brightness in the camera head just, roughly judge ambient brightness according to exposure parameter values in the camera head, and then reach the purpose that automatic control light filling lamp opens and closes, so just in camera head, saved photo resistance needed in the art.
According to an aspect of the present invention, the invention provides a kind of camera head light filling lamp autocontrol method, it can utilize the automatic exposure parameter to decide opening and closing light filling lamp, thereby has saved photo resistance.
Described camera head light filling lamp has two kinds of operating states of opening and closing, see also Fig. 1 and Fig. 2 is described, camera head light filling lamp autocontrol method so of the present invention can comprise in one embodiment: when the light filling lamp is in closed condition, judge ambient brightness according to the automatic exposure parameter value, after the automatic exposure parameter value is more than or equal to predetermined unlatching thresholding, think that ambient brightness needs compensation, opens the light filling lamp; When the light filling lamp is in opening, judge ambient brightness according to the automatic exposure parameter value, be less than or equal at the automatic exposure parameter value and predeterminedly think that ambient brightness is enough after closing thresholding, then close the light filling lamp; The predetermined unlatching thresholding of wherein said automatic exposure parameter value is greater than the predetermined thresholding of closing.
The maximum that described predetermined unlatching thresholding can be the automatic exposure parameter.
In a further embodiment, can also after equaling the maximum of automatic exposure parameter, continue the automatic exposure parameter value to judge the mean flow rate Y of sensed image
MEANWhether, equal maximum and mean flow rate Y at the automatic exposure parameter value less than a predetermined threshold
MEANDuring less than described predetermined threshold, just open the light filling lamp, wherein said predetermined threshold is less than or equal to mean flow rate Y
MEANThe low brightness threshold Y of lock-in range
LTHD, and can set according to user's needs.The described judgement mean flow rate Y here
MEAN, be whether in order when the automatic exposure parameter value equals maximum, still not open the light filling lamp at once, up to mean picture brightness Y less than the step of described predetermined threshold
MEANThe low lowest limit threshold value that has arrived user's setting has been reserved the sufficient space of freely setting to the user like this.
After the light filling lamp was opened, ambient brightness comprised the brightness (also can be called as external environment brightness) of external light source generation and the brightness that the light filling lamp produces.Please refer to shown in Figure 1, and before the light filling lamp is opened back external environment brightness variation, ambient brightness is owing to the unlatching of light filling lamp brightens, accordingly, the automatic exposure parameter value will be turned down up to being fixed on a certain value from maximum quilt gradually, this value can be called as the compensation adjustment value of automatic exposure parameter, if this compensation adjustment value is less than the described predetermined thresholding of closing, so the light filling lamp will be at once after unlatching because the compensation adjustment value is predeterminedly closed thresholding and is closed the light filling lamp automatically less than described, just begin between the opening and closing two states concussion then back and forth.Therefore, the described predetermined compensation adjustment value that thresholding need be set of closing less than described automatic exposure parameter.Along with external environment brightness brightens, described automatic exposure parameter self compensation adjusted value begins to be turned down up to being less than or equal to described predetermined when closing thresholding, closes the light filling lamp.
It should be noted that, the size of the compensation adjustment value of described automatic exposure parameter is not what fix, when camera head during apart from the nearer shooting of subject, after the light filling lamp was opened, ambient brightness can be brighter, and the compensation adjustment value of described automatic exposure parameter can be smaller, when camera head is far taken apart from subject, after the light filling lamp was opened, ambient brightness was darker, and the compensation adjustment value of described automatic exposure parameter can be bigger.If avoid concussion when the shooting at close range in order to satisfy, described predetermined very little that thresholding can be set of closing, this may cause still can not closing the light filling lamp under the very bright situation of when medium and long distance is taken external environment so, and is very unfavorable to economizing on electricity like this.Therefore, described predetermined selected needs of closing thresholding are taken into account shooting distance and energy-conservation requirement.
In one embodiment, consider the influence of other factors, such as scene that is taken etc., shooting distance far and near general can be not definitely big or small corresponding with the compensation adjustment value of described automatic exposure parameter, the compensation adjustment value of the described automatic exposure parameter after the light filling lamp is opened in the time of generally can taking according to preset distance is set the described predetermined thresholding of closing, can roughly realize so can not producing concussion when the certain distance of light filling lamp outside described preset distance taken, and this preset distance can not be too closely in time closed the light filling lamp when guaranteeing that external environment is brighter in the wide-long shot process.
In another preferred embodiment, see also shown in Figure 3ly, can be that the described thresholding of closing sets two threshold values, i.e. first thresholding and second thresholding, wherein first thresholding is less than second thresholding.When not carrying out the automatic exposure adjustment as yet, judge the mean flow rate Y of sensed image when light filling lamp unlatching back
MEANWhether greater than a predetermined threshold, if then select first thresholding as closing the thresholding of closing of light filling lamp, otherwise select second thresholding as the thresholding of closing of closing the light filling lamp.Judge the mean flow rate Y of sensed image here
MEANBe to be used for judging currently whether being in shooting at close range whether, because the mean flow rate Y of general sensed image during shooting at close range greater than the step of a predetermined threshold
MEANCan be very high.Close thresholding by two of suitable selections, can when very near shooting distance, avoid the switch concussion of light filling lamp, in time close the light filling lamp when ambient lighting is brighter when taking at normalized distance simultaneously.Certainly, if shooting distance is too near, in 0.5m, the still phenomenon that can occur shaking, but for most occasions, can meet the demands fully beyond the 0.5m.The predetermined threshold here is generally all bigger, can be far longer than mean flow rate Y
MEANThe high brightness threshold value Y of lock-in range
DTHDIf, be 0-255 such as the scope of image brightness, the high brightness threshold value Y of lock-in range
DTHDBe 150, low brightness threshold Y
LTHDBe 100, the predetermined threshold so here generally all can be greater than 220.
In order further to set forth camera head light filling lamp autocontrol method of the present invention, provided a more specifically execution mode below, please referring to shown in Figure 4, it shows the schematic flow sheet of another embodiment of camera head light filling lamp autocontrol method of the present invention.In this embodiment, described camera head light filling lamp autocontrol method may further comprise the steps.
Step 100 judges whether the light filling lamp is in closed condition; If, then change step 200 over to, otherwise, change step 700 over to.
Step 200 judges that whether the automatic exposure parameter value is that maximum and bearing member, image mean flow rate are less than predetermined threshold; If then change step 300 over to, otherwise finish this control.
Step 300 is opened the light filling lamp, and is entered step 400.
Step 400 when not carrying out the automatic exposure adjustment as yet, is judged the mean flow rate Y of sensed image
MEANWhether greater than predetermined threshold, if, change step 500 over to, otherwise, change step 600 over to.
Step 500 is closed thresholding with first thresholding as the light filling lamp, and finishes this control.
Step 600 is closed thresholding with second thresholding as the light filling lamp, and finishes this control.
Step 700 judges whether the automatic exposure parameter value has locked and whether less than closing thresholding, if, then change step 800 over to, otherwise, change step 900 over to.
Step 800 is closed the light filling lamp, and finishes this control.
Step 900, it has been minimum value though judge automatic exposure parameter value non-locking, if then change step 800 over to, otherwise finish this control.
In this embodiment step 700, the value that adopts the automatic exposure parameter behind the AE Lock with close thresholding and compare, certainly in other embodiment, also can adopt the instantaneous value of automatic exposure parameter and close thresholding to compare, so just not need step 900.
Wherein, described first thresholding is less than described second thresholding, and the predetermined threshold in the step 200 is less than or equal to mean flow rate Y
MEANThe low brightness threshold Y of lock-in range
LTHD, the predetermined threshold in the step 400 is far longer than mean flow rate Y
MEANThe high brightness threshold value Y of lock-in range
DTHDIf the scope of image brightness is 0-255, the high brightness threshold value Y of lock-in range
DTHDBe 150, low brightness threshold Y
LTHDBe 100, predetermined threshold generally all can be greater than 220 in the step 400 so, and the predetermined threshold in the step 200 is less than or equal to 100.
According to a further aspect in the invention, the invention provides a kind of camera head light filling lamp automatic control equipment, it can utilize the automatic exposure parameter to decide opening and closing light filling lamp, thereby has saved photo resistance.
See also shown in Figure 5ly, it shows the functional structure chart of an embodiment of a kind of camera head light filling of the present invention lamp automatic control equipment, and it comprises imageing sensor 10, automatic exposure control module 20, light filling lamp 30, light filling lamp control module 40.
Described automatic exposure control module 20 is used to adjust exposure parameter and determines that an exposure parameter values is so that the mean flow rate Y of the sensed image of imageing sensor 10
MEANBe locked in the proper range, such as at low brightness threshold Y as far as possible
LTHDWith high brightness threshold value Y
HTHDBetween, if described automatic exposure control module 20 transfers to maximum or the minimum mean flow rate Y that can't make the sensed image of imageing sensor 10 with the value of exposure parameter
MEANBe locked in the proper range, so the maximum of exposure parameter or minimum value exposure parameter values for determining.Described imageing sensor 10 is used for according to the exposure parameter values that described automatic exposure control module 20 is determined scene being exposed to form image.Described light filling lamp 30 has the opening and closing two states, when opening ambient brightness is made compensation.Described light filling lamp control module 40 is used for determining according to the exposure parameter values that exposure control module 20 is determined the state of light filling lamp 30.
Be provided with predetermined thresholding and the predetermined thresholding of closing opened in the described light filling lamp control module 40, the exposure parameter values of determining in exposure control module 20 is more than or equal to predetermined when opening thresholding, guarantee that the light filling lamp is in opening, the exposure parameter values of determining in exposure control module 20 is less than or equal to when being scheduled to close thresholding, guarantees that the light filling lamp is in closed condition.
Described unlatching thresholding is the maximum of exposure parameter, equals to continue to judge after the maximum of automatic exposure parameter the mean flow rate Y of sensed image at the automatic exposure parameter value of determining
MEANWhether, equal maximum and mean flow rate Y at the automatic exposure parameter value less than a predetermined threshold
MEANDuring less than described predetermined threshold, just open the light filling lamp, wherein said predetermined threshold is less than or equal to mean flow rate Y
MEANThe low brightness threshold Y of lock-in range
LTHD, and can set according to user's needs.
Described light filling lamp control module 40 is set two thresholdings for the described thresholding of closing, first thresholding, second thresholding, and first thresholding when not carrying out the automatic exposure adjustment as yet opening the light filling lamp, is judged the mean flow rate Y of sensed image less than second thresholding
MEANWhether greater than a predetermined threshold, if then select first thresholding as closing the thresholding of closing of light filling lamp, otherwise select second thresholding as the thresholding of closing of closing the light filling lamp.The predetermined threshold here is generally all bigger, can be far longer than mean flow rate Y
MEANThe high brightness threshold value Y of lock-in range
DTHDIf, be 0-255 such as the scope of image brightness, the high brightness threshold value Y of lock-in range
DTHDBe 150, low brightness threshold Y
LTHDBe 100, the predetermined threshold so here generally all can be greater than 220.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.