CN110418067A - Light filling lamp control method, device, picture pick-up device and storage medium - Google Patents
Light filling lamp control method, device, picture pick-up device and storage medium Download PDFInfo
- Publication number
- CN110418067A CN110418067A CN201910526564.1A CN201910526564A CN110418067A CN 110418067 A CN110418067 A CN 110418067A CN 201910526564 A CN201910526564 A CN 201910526564A CN 110418067 A CN110418067 A CN 110418067A
- Authority
- CN
- China
- Prior art keywords
- brightness
- picture
- current
- light compensating
- compensating lamp
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/74—Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
Abstract
This application involves a kind of light filling lamp control method, device, picture pick-up device and storage mediums.The described method includes: obtaining current gain and the current picture brightness of picture pick-up device, according to current gain and current picture brightness, determine current gain brightness ratio, inquire the corresponding picture target brightness of current gain, according to picture target brightness, it determines the unlocking condition of light compensating lamp, if current gain brightness ratio meets unlocking condition, opens light compensating lamp.It can be improved the light compensating lamp control accuracy of picture pick-up device using this method.
Description
Technical field
This application involves technical field of image processing, more particularly to a kind of light filling lamp control method, device, picture pick-up device
And storage medium.
Background technique
Picture pick-up device has a wide range of applications in the every aspect that people live, such as people are recorded by picture pick-up device and given birth to
It lives, public sphere is monitored by picture pick-up device.
Currently, the imaging sensor that picture pick-up device uses, can not capture clearly image in the environment of dark.
Therefore light compensating lamp can be all had on video camera, when dark, light compensating lamp can be automatically turned on, when light is brighter light compensating lamp from
It is dynamic to close.Light compensating lamp includes the multiple types such as infrared lamp, white light.It is only mostly when controlling the opening and closing of light compensating lamp
Judged according to the scene brightness of picture pick-up device or only in accordance with the brightness of image of picture pick-up device acquisition, leads to light compensating lamp control
The accuracy of system is insufficient.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of light filling that can be improved light compensating lamp control accuracy
Lamp control method, device, picture pick-up device and storage medium.
A kind of light filling lamp control method, which comprises
Obtain current gain and the current picture brightness of picture pick-up device;
According to the current gain and the current picture brightness, current gain brightness ratio is determined;
It inquires the current gain corresponding picture target brightness and the light filling is determined according to the picture target brightness
The unlocking condition of lamp;
If the current gain brightness ratio meets the unlocking condition, the light compensating lamp is opened.
The step of unlocking condition of the determination light compensating lamp in one of the embodiments, comprising:
Gain threshold and the current gain are opened according to the default maxgain value of the picture pick-up device, preset light compensating lamp
Corresponding picture target brightness calculates the unlatching threshold value in the unlocking condition.
If the current gain brightness ratio meets the unlocking condition in one of the embodiments, open
The step of opening the light compensating lamp, comprising:
If the current gain brightness ratio is more than the unlatching threshold value, the light compensating lamp is opened.
In one of the embodiments, the method also includes:
According to the current gain brightness ratio and the unlatching threshold value, the current adjusting step of the light compensating lamp is determined;
The brightness of the light compensating lamp is adjusted according to the current adjustment.
The step of current adjusting step of the determination light compensating lamp in one of the embodiments, comprising:
According to preset tolerance threshold value and the unlatching threshold value, determine the upper limit value of the current gain brightness ratio under
Limit value;
If the current gain brightness ratio is more than the upper limit value, in preset adjusting step set, inquiry
The corresponding adjusting step of difference between the current gain brightness ratio and the upper limit value;
If the current gain brightness ratio is lower than the lower limit value, in the adjusting step set, institute is inquired
State the corresponding adjusting step of difference between current gain brightness ratio and the lower limit value.
The step of current adjusting step of the determination light compensating lamp in one of the embodiments, further includes:
If the current gain brightness ratio is between the upper limit value and the lower limit value, by the current tune
Synchronizing length is set as zero, to keep the light compensating lamp brightness constant.
In one of the embodiments, the method also includes:
The corresponding picture target brightness of the current gain is inquired, it is bright according to the corresponding picture target of the current gain
Degree, determines the first closedown condition of the light compensating lamp;
The ambient brightness in the acquired preset quantity frame scenic picture of the picture pick-up device is obtained, according to the ambient brightness
Determine the second closedown condition of the light compensating lamp;
If detecting that the current gain brightness ratio of the picture pick-up device meets first closedown condition and described takes the photograph
As the ambient brightness in current the acquired scenic picture of equipment meets second closedown condition, then the light compensating lamp is closed.
The step of first closedown condition of the determination light compensating lamp in one of the embodiments, comprising:
Gain threshold is closed according to the default maxgain value of the picture pick-up device, preset light compensating lamp and the camera shooting is set
The closing threshold value in first closedown condition is calculated in picture target brightness corresponding to standby current gain.
The step of second closedown condition of the determination light compensating lamp in one of the embodiments, comprising:
When the picture pick-up device acquires the preset quantity frame scenic picture, obtains the exposure of the picture pick-up device, increases
Benefit and picture brightness;
According to the exposure, gain and picture brightness of the picture pick-up device, the preset quantity frame scenic picture is calculated separately
In ambient brightness;
According to the ambient brightness in the preset quantity frame scenic picture, the closing threshold in second closedown condition is determined
Value.
In one of the embodiments, the method also includes:
Obtain initial picture brightness and initial environment brightness, the initial picture brightness and initial environment brightness difference
The picture brightness and ambient brightness of the picture pick-up device when being opened for the light compensating lamp;
If the current environment brightness of the picture pick-up device is more than the initial environment brightness, the picture pick-up device is calculated
Current picture brightness and the initial picture brightness histogram difference information;
If the histogram difference information meets preset closing threshold value update condition, to first closedown condition
In closing threshold value and second closedown condition in closing threshold value be updated.
A kind of light filling lamp control device, described device include:
Device data obtains module, for obtaining current gain and the current picture brightness of picture pick-up device;
Incremental brightness is than computing module, for determining current increase according to the current gain and the current picture brightness
Beneficial brightness ratio;
Unlocking condition determining module, for inquiring the corresponding picture target brightness of the current gain, according to the picture
Object brightness determines the unlocking condition of the light compensating lamp;And
Light compensating lamp opening module opens institute if meeting the unlocking condition for the current gain brightness ratio
State light compensating lamp.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Obtain current gain and the current picture brightness of picture pick-up device;
According to the current gain and the current picture brightness, current gain brightness ratio is determined;
It inquires the current gain corresponding picture target brightness and the light filling is determined according to the picture target brightness
The unlocking condition of lamp;
If the current gain brightness ratio meets the unlocking condition, the light compensating lamp is opened.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Obtain current gain and the current picture brightness of picture pick-up device;
According to the current gain and the current picture brightness, current gain brightness ratio is determined;
It inquires the current gain corresponding picture target brightness and the light filling is determined according to the picture target brightness
The unlocking condition of lamp;
If the current gain brightness ratio meets the unlocking condition, the light compensating lamp is opened.
Above-mentioned light filling lamp control method, device, picture pick-up device and storage medium, according to the current gain of picture pick-up device and work as
Preceding picture brightness determines the current gain brightness ratio of picture pick-up device, according to the corresponding picture target brightness of current gain, determines
The unlocking condition of light compensating lamp opens the light compensating lamp on picture pick-up device when current gain brightness ratio meets unlocking condition, thus
In the current gain variation of picture pick-up device, the change of adaptability also occurs therewith for the unlocking condition of light compensating lamp, in conjunction with open strip
The current gain brightness ratio that part and current gain, picture brightness according to picture pick-up device obtain carries out the unlatching of light compensating lamp
Control, effectively improves light compensating lamp control accuracy of the picture pick-up device under varying environment and distinct device state.
Detailed description of the invention
Fig. 1 is the applied environment figure of light filling lamp control method in one embodiment;
Fig. 2 is the flow diagram of light filling lamp control method in one embodiment;
Fig. 3 is the flow diagram of light filling lamp control method in one embodiment;
Fig. 4 is the flow diagram of light filling lamp control method in one embodiment;And
Fig. 5 is the structural block diagram of light filling lamp control device in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Light filling lamp control method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, it images
Equipment 102 is equipped with light compensating lamp, picture pick-up device 102 can control the opening and closing of light compensating lamp, also adjustable light compensating lamp
Brightness, to improve the quality of shooting video or image.Wherein, picture pick-up device 102 can be, but not limited to be gun-shaped video camera, spherical shape
Video camera and dome type camera.
In one embodiment, as shown in Fig. 2, providing a kind of light filling lamp control method, it is applied in Fig. 1 in this way
Picture pick-up device for be illustrated, comprising the following steps:
Step 202, current gain and the current picture brightness of picture pick-up device are obtained.
Wherein, picture pick-up device is equipped with the amplifier amplified to vision signal, the gain of the video camera i.e. amplifier
Gain (i.e. the amplification quantity of amplifier), the adjustment process of gain be by automatic gain control circuit (abbreviation agc circuit) detect
The average level of vision signal and realize automatically.When ambient brightness is lower, the gain of picture pick-up device is larger, and picture pick-up device is adopted
The sensitivity for collecting photosignal increases, and image sharpness increases, but picture noise can increase.The current picture brightness of picture pick-up device
By the average brightness of pixel on video camera currently acquisition picture.The current gain of picture pick-up device and current picture brightness can be with
It is directly read from the register of picture pick-up device.
Step 204, according to current gain and current picture brightness, current gain brightness ratio is determined.
Specifically, after the current gain and current picture brightness for obtaining picture pick-up device, by calculating current gain and working as
The ratio of preceding picture brightness determines current gain brightness ratio.
Step 206, the corresponding picture target brightness of inquiry current gain determines light compensating lamp according to picture target brightness
Unlocking condition.
Specifically, the corresponding picture target brightness of different gains of setting picture pick-up device, the corresponding picture of different gains are preset
Area Objects brightness, i.e., under the different gains of amplifier on the acquired picture of camera pixel ideal average brightness.Pre-
If the corresponding picture target brightness of different gains in, the corresponding picture target brightness of inquiry current gain.According to what is inquired
The unlatching threshold value of picture target brightness calculation light compensating lamp by current gain brightness ratio and opens the numerical values recited pass between threshold value
System is set as the unlocking condition of light compensating lamp.
Specifically, since the size of current gain is related with the current environment ambient brightness in place where camera, foundation
The corresponding picture target brightness of current gain determines the unlocking condition of light compensating lamp, rather than in different environments, different cameras
Changeless unlocking condition is all used in equipment, can effectively improve the accuracy of light compensating lamp control.
Step 208, if current gain brightness ratio meets unlocking condition, light compensating lamp is opened.
Specifically, if current gain brightness ratio meets unlocking condition, it is believed that currently need to open light compensating lamp, to increase
Picture pick-up device picture brightness collected improves image quality, therefore opens light compensating lamp, the ring in place where increasing picture pick-up device
Border illumination.To combine gain, picture brightness and the current unlocking condition of camera, the standard that light compensating lamp opens control is improved
Exactness.
In above-mentioned light filling lamp control method, according to current gain and current picture brightness, current gain brightness ratio is determined,
According to the corresponding picture target brightness of current gain, the unlocking condition of light compensating lamp is determined, if current gain brightness ratio meets
Unlocking condition then opens light compensating lamp, to improve and mend in conjunction with the gain of camera, picture brightness and current unlocking condition
Light lamp opens the accuracy of control.
In one embodiment, the calculation formula of current gain brightness ratio indicates are as follows:
Cur_bright=cur_gain/cur_ev, wherein cur_bright is current gain brightness ratio, cur_
Gain is current gain, cur_ev is current picture brightness, to obtain combining working as current gain and current picture brightness
Preceding gain brightness ratio.
In one embodiment, when inquiring the corresponding picture target brightness of current gain, according to the pre- of picture pick-up device
If maxgain value, default light compensating lamp open gain threshold, the corresponding picture target brightness of current gain, calculate in unlocking condition
Unlatching threshold value.To combine the default maxgain value of picture pick-up device, default light compensating lamp to open gain threshold, current gain pair
The picture target brightness answered, improves the accuracy of unlocking condition.Wherein, the maximum gain that maxgain value is camera is preset,
The adjustable maximum gain arrived of amplifier i.e. on camera, default light compensating lamp, which opens gain threshold, indicates that gain reaches the threshold value
When camera where scene ambient brightness it is lower.
In one embodiment, gain threshold, the corresponding picture mesh of current gain are opened according to maxgain value, light compensating lamp
Brightness is marked, when calculating the unlatching threshold value in unlocking condition, obtains the minimum in maxgain value and light compensating lamp unlatching gain threshold
Value, calculates the ratio of the minimum value and picture target brightness, which indicates the picture pick-up device under the ambient brightness in current place
Acquired picture reaches picture target brightness and the gain adjustment of picture pick-up device opens gain threshold to maxgain value or light compensating lamp
Gain brightness ratio when value.The ratio is set on to the unlatching threshold value of condition, if current gain brightness ratio is more than to open
Threshold value is opened, illustrates that current picture brightness is inadequate, picture noise can be obviously increased by increasing yield value by force, and picture target is not achieved
Brightness needs to open light compensating lamp.
In one embodiment, gain threshold, the corresponding picture mesh of current gain are opened according to maxgain value, light compensating lamp
Brightness is marked, the formula expression for opening threshold value is calculated are as follows:
IR_thresh=Min (max_gain, thresh_gain_on)/defualt_ev, wherein IR_thresh is to open
Threshold value is opened, max_gain is maxgain value, and thresh_gain_on is that light compensating lamp opens gain threshold, and defualt_ev is to work as
The corresponding picture target brightness of preceding gain.
In one embodiment, as shown in figure 3, providing a kind of light filling lamp control method, it is applied in Fig. 1 in this way
Picture pick-up device for be illustrated, comprising the following steps:
Step 302, current gain and the current picture brightness of picture pick-up device are obtained.
Step 304, according to current gain and current picture brightness, current gain brightness ratio is determined.
Step 306, the corresponding picture target brightness of inquiry current gain determines light compensating lamp according to picture target brightness
Unlatching threshold value in unlocking condition.
Specifically, it after light compensating lamp unlatching, needs to be adjusted the brightness of light compensating lamp, be acquired with adjusting picture pick-up device
The picture brightness of picture improves image quality.When light compensating lamp is opened, the current gain of picture pick-up device and current picture brightness all can
It has greatly changed, current gain and the current picture brightness of picture pick-up device need to be reacquired.According to current gain and currently
Picture brightness determines current gain brightness ratio.The corresponding picture target brightness of current gain is inquired, it is bright according to picture target
Degree, determines the unlatching threshold value in the unlocking condition of light compensating lamp.Wherein, the calculating process of current gain brightness ratio and unlatching threshold value
It can refer to foregoing description, repeat no more.
Step 308, according to the unlatching threshold value in current gain brightness ratio and unlocking condition, the current tune of light compensating lamp is determined
Synchronizing is long.
Step 310, the brightness of light compensating lamp is adjusted according to current adjusting step.
Specifically, under light compensating lamp open state, the illumination brightness where picture pick-up device is improved, so that current gain
Brightness ratio, which can exceed that, to be opened threshold value, may also be less than and open threshold value, in order to improve the stability of light compensating lamp control and accurate
Property, current gain brightness is not less than unlatching threshold value and is set off condition.Current gain after obtaining light compensating lamp and opening
After brightness and on threshold value, according to current gain brightness ratio and the numerical values recited relationship between threshold value can be opened, determine light filling
The current adjusting step of lamp is adjusted the brightness of light compensating lamp according to current adjusting step, thus bright according to current gain
The adjusting step of light compensating lamp brightness is adjusted flexibly in degree ratio and unlatching threshold value, improves the adjustment effect of light compensating lamp brightness.
In one embodiment, in the current adjusting step for determining light compensating lamp, according to unlatching threshold value and preset tolerance
Threshold value determines the upper limit value and lower limit value of current gain brightness ratio.If current gain brightness ratio is more than upper limit value,
In preset adjusting step set, the corresponding adjusting step of difference between current gain brightness ratio and upper limit value is inquired, it should
The i.e. current adjusting step of the step-length inquired.If current gain brightness ratio is lower than lower limit value, in adjusting step set,
The corresponding adjusting step of difference between current gain brightness ratio and lower limit value is inquired, which currently adjusts
Suitable adjusting step is arranged to be directed to current gain brightness ratio and current unlatching threshold value in step-length, rather than uses single
One adjusting step effectively improves the adjustment effect of light compensating lamp brightness.
In one embodiment, the upper limit value of current gain brightness ratio is IR_thresh+t, current gain brightness ratio
Lower limit value be IR_thresh-t, t be tolerance threshold value.If current gain brightness ratio is more than upper limit value, i.e. cur_bright
> IR_thresh+t then calculates the difference of current gain brightness and upper limit value, difference evdiff1=cur_bright- (IR_
thresh+t).If current gain brightness ratio is lower than lower limit value, i.e. cur_bright < IR_thresh-t is then calculated current
The difference of gain brightness and lower limit value, difference evdiff2=cur_bright- (IR_thresh-t).Preset difference threshold
Value set { t0,t1,...,tk, preset adjusting step set { step0,step1,...,stepm, when | evdiff1| (or
Person | evdiff2|) it is located at t0~t1、t1~t2……、tk-1~tkWhen, corresponding adjusting step is respectively step0、
step1、……、stepm.To in the case where considering range of tolerable variance that tolerance threshold value is constituted, it is determining with current gain brightness ratio with open
The adjusting step that the gap between threshold value is adapted is opened, the adjustment effect of light compensating lamp brightness is effectively improved.
In one embodiment, if current gain brightness ratio is between upper limit value and lower limit value, i.e. IR_
Thresh-t < cur_bright < IR_thresh+t then sets zero for current adjusting step, thus in current gain brightness ratio
When gap between value and unlatching threshold value is located between the range of tolerable variance of tolerance threshold value composition, light compensating lamp brightness stability is kept, is mentioned
The control effect of high light compensating lamp.
In one embodiment, as shown in figure 4, providing a kind of light filling lamp control method, it is applied in Fig. 1 in this way
Picture pick-up device for be illustrated, comprising the following steps:
Step 402, current gain and the current picture brightness of picture pick-up device are obtained.
Step 404, according to current gain and current picture brightness, current gain brightness ratio is determined.
Specifically, when light compensating lamp is opened, larger change can occur for the ambient brightness in place where picture pick-up device, cause to take the photograph
Larger change also occurs therewith for the current gain of camera and current picture brightness.Therefore, it is necessary to be obtained again when light compensating lamp is opened
Current gain and the current picture brightness of picture pick-up device are taken, and calculates the current gain brightness ratio of picture pick-up device.Current gain
The calculating process of brightness ratio has been described in the above-described embodiments, repeats no more.
Step 406, the corresponding picture target brightness of inquiry current gain, it is bright according to the corresponding picture target of current gain
Degree, determines the first closedown condition of light compensating lamp.
Specifically, the corresponding picture target brightness of different gains of setting picture pick-up device is preset.In preset different gains
In corresponding picture target brightness, the corresponding picture target brightness of inquiry current gain.According to the picture target brightness inquired
The closing threshold value in the first closedown condition of light compensating lamp is calculated, by the numerical value between current gain brightness ratio and the closing threshold value
Size relation is set as the first closedown condition of light compensating lamp.
Step 408, the ambient brightness in the acquired preset quantity frame scenic picture of picture pick-up device is obtained, according to ambient brightness
Determine the second closedown condition of light compensating lamp.
Specifically, the ambient brightness in the acquired preset quantity frame scenic picture of picture pick-up device is obtained, it is default according to these
Ambient brightness in number of frames scenic picture, the ambient brightness of scene, determining ambient brightness is set where determining picture pick-up device
Set the closing threshold value in the second closedown condition of light compensating lamp, by picture pick-up device in real time the ambient brightness in acquired scenic picture and
Numerical values recited relationship between the closing threshold value is set as the second closedown condition of light compensating lamp.
According to the ambient brightness in these preset quantity frame scenic pictures, the environment of scene is bright where determining picture pick-up device
When spending, the ring of scene where the median of the ambient brightness in these preset quantity frame scenic pictures being set to picture pick-up device
The average value of ambient brightness in these preset quantity frame scenic pictures or weighted average can also be set as taking the photograph by border brightness
The ambient brightness of scene as where equipment.
Step 410, if detecting that the current gain brightness ratio of picture pick-up device meets the first closedown condition and camera shooting is set
Ambient brightness in standby current acquired scenic picture meets the second closedown condition, then closes light compensating lamp.
Specifically, the ambient brightness in current the acquired scenic picture of picture pick-up device is obtained in real time, by working as picture pick-up device
Preceding gain brightness ratio is compared with the closing threshold value in the first closedown condition, by current the acquired scenic picture of picture pick-up device
In ambient brightness be compared with the closing threshold value in the second closedown condition.If the current gain brightness ratio of picture pick-up device
Meet the first closedown condition and picture pick-up device continuously the ambient brightness in the acquired scenic picture of several frames meets second and closes item
When part, the ambient brightness of environment is higher where illustrating picture pick-up device, closes light compensating lamp.
In one embodiment, in the first closedown condition according to the picture target brightness calculation light compensating lamp inquired
When closing threshold value, according to the default maxgain value of picture pick-up device, preset light compensating lamp closing gain threshold and picture pick-up device
The closing threshold value in the first closedown condition is calculated in picture target brightness corresponding to current gain.To be set in conjunction with camera shooting
Standby default maxgain value, default light compensating lamp close gain threshold, the corresponding picture target brightness of current gain, improve and close
The accuracy of condition.Wherein, it presets light compensating lamp and closes scene where camera when gain threshold expression gain reaches the threshold value
Ambient brightness is higher.
In one embodiment, gain threshold, the corresponding picture mesh of current gain are closed according to maxgain value, light compensating lamp
Brightness is marked, when calculating the closing threshold value in the first closedown condition, maxgain value is obtained and light compensating lamp is closed in gain threshold
Minimum value calculates the ratio of the minimum value and picture target brightness, and ratio expression images under the ambient brightness in current place
The acquired picture of equipment reaches picture target brightness and the gain adjustment of picture pick-up device closes increasing to maxgain value or light compensating lamp
Gain brightness ratio when beneficial threshold value.The ratio is set to the closing threshold value of the first closedown condition, by current gain brightness ratio
Value is less than the closing threshold value and is set as the first closedown condition.
In one embodiment, the calculation formula that threshold value is closed in the first closedown condition indicates are as follows:
IR_thresh_off_1=Min (max_gain, thresh_gain_off)/defualt_ev, wherein IR_
Thresh_off_1 is the closing threshold value in the first closedown condition, and thresh_gain_off is that light compensating lamp closes gain threshold,
Defualt_ev is the corresponding picture target brightness of current gain.
In one embodiment, picture pick-up device acquire preset quantity frame scenic picture when, obtain picture pick-up device exposure,
Gain and picture brightness calculate separately these preset quantity frame scenes picture according to the exposure, gain and picture brightness of picture pick-up device
Ambient brightness in face.The calculation formula of ambient brightness indicates are as follows:
Cur_luma=(cur_gain*cur_shurtter* α)/cur_ev, wherein cur_luma is that picture pick-up device is pre-
If the ambient brightness in number of frames scenic picture, cur_shutter is the exposure of picture pick-up device, and α is preset regulation coefficient.Root
According to the ambient brightness cur_luma in these preset quantity frame scenic pictures, the ambient brightness of scene where determining picture pick-up device,
Ambient brightness is set to the closing threshold value IR_thresh_off_2 of the second closedown condition, by real-time the acquired field of picture pick-up device
Ambient brightness in scape picture is less than the closing threshold value and is set as the second closedown condition.
In one embodiment, it when light compensating lamp is opened, carries out closing threshold value and the second closing item in the first closedown condition
In part close threshold value calculating, and judge picture pick-up device in real time acquire scenic picture whether and meanwhile satisfaction the first closedown condition with
Second condition.When the environment in place where the picture pick-up device varies widely, closing threshold value in the first closedown condition and the
The closing threshold value of two closedown conditions is also required to update therewith, is just effective to ensure that light compensating lamp closes the accuracy of control.
In one embodiment, it when whether the environment in place where judging picture pick-up device varies widely, obtains just
Beginning picture brightness and initial environment brightness, initial picture brightness are the picture brightness of picture pick-up device when light compensating lamp is just opened, initially
Ambient brightness is the ambient brightness in place where picture pick-up device when light compensating lamp is just opened.Scene is current where obtaining picture pick-up device
Ambient brightness calculates current picture brightness and initial picture brightness if current environment brightness is more than initial environment brightness
Histogram difference information, if the histogram difference information being calculated meets preset closing threshold value update condition, according to
The calculating process that threshold value is closed in above-mentioned first closedown condition, is updated the closing threshold value in the first closedown condition, and press
According to the calculating process for closing threshold value in above-mentioned second closedown condition, the closing threshold value in the second closedown condition is updated, with
Improve the accuracy of light compensating lamp control.
In one embodiment, the brightness value that each gray component in current picture is indicated by histogram obtains current
The histogram information of picture brightness is indicated the brightness value of each gray component in initial picture by histogram, is initially drawn
The histogram information of face brightness, calculate the brightness value of each gray component in the histogram information of initial picture brightness, with it is current
These mean square deviations are added up, are obtained by the mean square deviation in the histogram information of picture brightness between the brightness value of each gray component
The mean square deviation aggregate-value of the histogram information of the histogram information and current picture brightness of initial picture brightness.Meanwhile it calculating just
The ratio of the histogram information of the histogram information of beginning picture brightness and preceding picture brightness.The histogram information of initial picture brightness
With the mean square deviation aggregate-value and ratio of the histogram information of current picture brightness, as histogram difference information.
In one embodiment, when the histogram information of initial picture brightness and the histogram information of current picture brightness
Mean square deviation aggregate-value be located in preset interval range and the histogram information of initial picture brightness and current picture brightness it is straight
When the ratio of square figure information is more than preset update threshold value, the histogram difference of current picture brightness Yu initial picture brightness is determined
Information meets preset closing threshold value update condition.
In one embodiment, the histogram information of initial picture brightness and the histogram information of current picture brightness is equal
The calculation formula of accumulative total of variance value indicates are as follows:
Wherein, sum_hist is first
The mean square deviation aggregate-value of the histogram information of the histogram information and current picture brightness of beginning picture brightness, base_hist [i] are
The brightness value of i-th of gray component in the histogram information of initial picture brightness, curr_hist [i] are current picture brightness
The brightness value of i-th of gray component in histogram information.Max, min are the sequence of gray component in initial picture and current picture
Number.
In one embodiment, the ratio of the histogram information of initial picture brightness and the histogram information of current picture brightness
The calculation formula of value indicates are as follows:
Ratio_bist=base_hist/curr_hist, wherein ratio_bist is the histogram of initial picture brightness
The ratio of information and the histogram information of current picture brightness, base_hist are the histogram information of initial picture brightness,
Curr_hist is the histogram information of current picture brightness.
It should be understood that although each step in the flow chart of Fig. 1-4 is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-4
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively
It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately
It executes.
In one embodiment, as shown in figure 5, providing a kind of light filling lamp control device 500, comprising: device data obtains
Modulus block 502, gain brightness ratio computing module 504, unlocking condition determining module 506 and light compensating lamp opening module 508, in which:
Device data obtains module 502, for obtaining current gain and the current picture brightness of picture pick-up device;
Incremental brightness is than computing module 504, for determining current gain brightness according to current gain and current picture brightness
Ratio;
Unlocking condition determining module 506, it is bright according to picture target for inquiring the corresponding picture target brightness of current gain
Degree, determines the unlocking condition of light compensating lamp;And
Light compensating lamp opening module 508 opens light compensating lamp if meeting unlocking condition for current gain brightness ratio.
Specifically, device data obtains module 502, gain brightness ratio computing module 504, unlocking condition determining module 506
The description that can refer to corresponding steps in above method embodiment with light compensating lamp opening module 508, repeats no more again.
In one embodiment, unlocking condition determining module 506 includes:
Threshold calculation module is opened, is increased for being opened according to the default maxgain value of picture pick-up device, preset light compensating lamp
Beneficial threshold value and the corresponding picture target brightness of current gain calculate the unlatching threshold value in unlocking condition.
In one embodiment, light compensating lamp opening module 508 includes:
Light compensating lamp opening module opens light compensating lamp if being more than to open threshold value for current gain brightness ratio.
In one embodiment, light filling lamp control device 500 further include:
Adjusting step determining module, for determining the current of light compensating lamp according to current gain brightness ratio and unlatching threshold value
Adjusting step;And
Light compensating lamp brightness adjusting section, for being adjusted according to current adjusting step to the brightness of light compensating lamp.
In one embodiment, light compensating lamp brightness adjusting section includes:
Bound determining module, for determining current gain brightness ratio according to preset tolerance threshold value and unlatching threshold value
Upper limit value and lower limit value;
First step-length determining module walks if being more than upper limit value for current gain brightness ratio in preset adjustment
In long set, the corresponding adjusting step of difference between current gain brightness ratio and upper limit value is inquired;And
Second step-length determining module, if being lower than lower limit value for current gain brightness ratio, in adjusting step set
In, inquire the corresponding adjusting step of difference between current gain brightness ratio and lower limit value.
In one embodiment, light compensating lamp brightness adjusting section further include:
Third step-length determining module, if for current gain brightness ratio between upper limit value and lower limit value, it will
Current adjusting step is set as zero, to keep light compensating lamp brightness constant.
In one embodiment, light filling lamp control device 500 further include:
First closedown condition determining module, for inquiring the corresponding picture target brightness of current gain, according to current gain
Corresponding picture target brightness determines the first closedown condition of light compensating lamp;
Second closedown condition determining module, for obtaining the environment in the acquired preset quantity frame scenic picture of picture pick-up device
Brightness determines the second closedown condition of light compensating lamp according to ambient brightness;
Light compensating lamp closedown module, if closing item for detecting that the current gain brightness ratio of picture pick-up device meets first
Ambient brightness in part and current the acquired scenic picture of picture pick-up device meets the second closedown condition, then closes light compensating lamp.
In one embodiment, the first closedown condition determining module includes:
First closes threshold determination module, for being closed according to the default maxgain value of picture pick-up device, preset light compensating lamp
Picture target brightness corresponding to the current gain of gain threshold and picture pick-up device is closed, the pass in the first closedown condition is calculated
Close threshold value.
In one embodiment, the second closedown condition determining module includes:
Camera data obtains module, for obtaining picture pick-up device when picture pick-up device acquires preset quantity frame scenic picture
Exposure, gain and picture brightness;
Ambient brightness computing module calculates separately present count for the exposure, gain and picture brightness according to picture pick-up device
Measure the ambient brightness in frame scenic picture;
Second closes threshold determination module, for determining second according to the ambient brightness in preset quantity frame scenic picture
Closing threshold value in closedown condition.
In one embodiment, light filling lamp control device 500 further include:
Primary data obtains module, for obtaining initial picture brightness and initial environment brightness, initial picture brightness and just
Beginning ambient brightness is respectively the picture brightness and ambient brightness of picture pick-up device when light compensating lamp is opened;
Difference information computing module is counted if the current environment brightness for picture pick-up device is more than initial environment brightness
Calculate the histogram difference information of current picture brightness Yu the initial picture brightness of picture pick-up device;And
Threshold value update module is closed, if meeting preset closing threshold value update condition for histogram difference information,
Closing threshold value in closing threshold value and the second closedown condition in first closedown condition is updated.
Specific about light filling lamp control device limits the restriction that may refer to above for light filling lamp control method, In
This is repeated no more.Modules in above-mentioned light filling lamp control device can come fully or partially through software, hardware and combinations thereof
It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software
Form is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of picture pick-up device, including memory and processor are provided, is stored with meter in memory
Calculation machine program realizes a kind of light filling lamp control method provided in the various embodiments described above when the processor executes computer program
Step.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
The step of a kind of light filling lamp control method provided in the various embodiments described above is provided when machine program is executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (13)
1. a kind of light filling lamp control method, which is characterized in that the described method includes:
Obtain current gain and the current picture brightness of picture pick-up device;
According to the current gain and the current picture brightness, current gain brightness ratio is determined;
It inquires the current gain corresponding picture target brightness and the light compensating lamp is determined according to the picture target brightness
Unlocking condition;
If the current gain brightness ratio meets the unlocking condition, the light compensating lamp is opened.
2. the method according to claim 1, wherein the step of unlocking condition of the determination light compensating lamp,
Include:
Gain threshold and the current gain pair are opened according to the default maxgain value of the picture pick-up device, preset light compensating lamp
The picture target brightness answered calculates the unlatching threshold value in the unlocking condition.
3. if according to the method described in claim 2, it is characterized in that, described in current gain brightness ratio satisfaction
Unlocking condition, then the step of opening the light compensating lamp, comprising:
If the current gain brightness ratio is more than the unlatching threshold value, the light compensating lamp is opened.
4. according to the method described in claim 2, it is characterized in that, the method also includes:
According to the current gain brightness ratio and the unlatching threshold value, the current adjusting step of the light compensating lamp is determined;
The brightness of the light compensating lamp is adjusted according to the current adjusting step.
5. according to the method described in claim 4, it is characterized in that, the step of the current adjusting step of the determination light compensating lamp
Suddenly, comprising:
According to preset tolerance threshold value and the unlatching threshold value, the upper limit value and lower limit of the current gain brightness ratio are determined
Value;
If the current gain brightness ratio is more than the upper limit value, in preset adjusting step set, described in inquiry
The corresponding adjusting step of difference between current gain brightness ratio and the upper limit value;
If the current gain brightness ratio is worked as described in inquiry in the adjusting step set lower than the lower limit value
The corresponding adjusting step of difference between preceding gain brightness ratio and the lower limit value.
6. according to the method described in claim 5, it is characterized in that, the step of the current adjusting step of the determination light compensating lamp
Suddenly, further includes:
If between the upper limit value and the lower limit value, the current adjustment is walked for the current gain brightness ratio
Length is set as zero, to keep the light compensating lamp brightness constant.
7. the method according to claim 1, wherein the method also includes:
The corresponding picture target brightness of the current gain is inquired, according to the corresponding picture target brightness of the current gain, really
First closedown condition of the fixed light compensating lamp;
The ambient brightness in the acquired preset quantity frame scenic picture of the picture pick-up device is obtained, is determined according to the ambient brightness
Second closedown condition of the light compensating lamp;
If detecting that the current gain brightness ratio of the picture pick-up device meets first closedown condition and the camera shooting is set
Ambient brightness in standby current acquired scenic picture meets second closedown condition, then closes the light compensating lamp.
8. the method according to the description of claim 7 is characterized in that the step of the first closedown condition of the determination light compensating lamp
Suddenly, comprising:
According to the default maxgain value of the picture pick-up device, preset light compensating lamp closing gain threshold and the picture pick-up device
The closing threshold value in first closedown condition is calculated in picture target brightness corresponding to current gain.
9. the method according to the description of claim 7 is characterized in that the step of the second closedown condition of the determination light compensating lamp
Suddenly, comprising:
When the picture pick-up device acquires the preset quantity frame scenic picture, obtain the exposure of the picture pick-up device, gain and
Picture brightness;
According to the exposure, gain and picture brightness of the picture pick-up device, calculate separately in the preset quantity frame scenic picture
Ambient brightness;
According to the ambient brightness in the preset quantity frame scenic picture, the closing threshold value in second closedown condition is determined.
10. the method according to the description of claim 7 is characterized in that the method also includes:
Initial picture brightness and initial environment brightness are obtained, the initial picture brightness and the initial environment brightness are respectively institute
State the picture brightness and ambient brightness of picture pick-up device when light compensating lamp is opened;
If the current environment brightness of the picture pick-up device is more than the initial environment brightness, working as the picture pick-up device is calculated
The histogram difference information of preceding picture brightness and the initial picture brightness;
If the histogram difference information meets preset closing threshold value update condition, in first closedown condition
The closing threshold value closed in threshold value and second closedown condition is updated.
11. a kind of light filling lamp control device, which is characterized in that described device includes:
Device data obtains module, for obtaining current gain and the current picture brightness of picture pick-up device;
Incremental brightness is than computing module, for determining that current gain is bright according to the current gain and the current picture brightness
Spend ratio;
Unlocking condition determining module, for inquiring the corresponding picture target brightness of the current gain, according to the picture target
Brightness determines the unlocking condition of the light compensating lamp;And
Light compensating lamp opening module opens the benefit if meeting the unlocking condition for the current gain brightness ratio
Light lamp.
12. a kind of picture pick-up device, including memory and processor, the memory are stored with computer program, which is characterized in that
The step of processor realizes any one of claims 1 to 10 the method when executing the computer program.
13. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 10 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526564.1A CN110418067B (en) | 2019-06-18 | 2019-06-18 | Light supplement lamp control method and device, camera equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910526564.1A CN110418067B (en) | 2019-06-18 | 2019-06-18 | Light supplement lamp control method and device, camera equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110418067A true CN110418067A (en) | 2019-11-05 |
CN110418067B CN110418067B (en) | 2021-07-27 |
Family
ID=68359284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910526564.1A Active CN110418067B (en) | 2019-06-18 | 2019-06-18 | Light supplement lamp control method and device, camera equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110418067B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935415A (en) * | 2020-08-18 | 2020-11-13 | 浙江大华技术股份有限公司 | Brightness adjusting method and device, storage medium and electronic device |
CN112351214A (en) * | 2020-09-22 | 2021-02-09 | 智博汽车科技(上海)有限公司 | Method and device for assisting face image acquisition, readable storage medium and vehicle |
CN113840095A (en) * | 2021-09-06 | 2021-12-24 | 浙江大华技术股份有限公司 | Light supplement lamp control method and related device |
CN114554105A (en) * | 2022-04-27 | 2022-05-27 | 深圳比特微电子科技有限公司 | Method and device for controlling light supplement lamp, camera and storage medium |
CN115225824A (en) * | 2022-06-14 | 2022-10-21 | 深圳英飞拓智能技术有限公司 | Automatic exposure method and shooting device |
CN115225824B (en) * | 2022-06-14 | 2024-04-26 | 深圳英飞拓仁用信息有限公司 | Automatic exposure method and shooting device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130250168A1 (en) * | 2012-03-23 | 2013-09-26 | Lockheed Martin Corporation | System, method and computer software product for exposure control of an imaging device using flash lamp pulses |
CN107995437A (en) * | 2017-12-22 | 2018-05-04 | 努比亚技术有限公司 | Photograph taking method for polishing and mobile terminal |
CN108289173A (en) * | 2018-01-23 | 2018-07-17 | 杭州矩视科技有限公司 | A kind of camera shooting control method, device, terminal device and storage medium |
CN108551553A (en) * | 2018-03-16 | 2018-09-18 | 浙江大华技术股份有限公司 | A kind of light compensating lamp control method and device |
-
2019
- 2019-06-18 CN CN201910526564.1A patent/CN110418067B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130250168A1 (en) * | 2012-03-23 | 2013-09-26 | Lockheed Martin Corporation | System, method and computer software product for exposure control of an imaging device using flash lamp pulses |
CN107995437A (en) * | 2017-12-22 | 2018-05-04 | 努比亚技术有限公司 | Photograph taking method for polishing and mobile terminal |
CN108289173A (en) * | 2018-01-23 | 2018-07-17 | 杭州矩视科技有限公司 | A kind of camera shooting control method, device, terminal device and storage medium |
CN108551553A (en) * | 2018-03-16 | 2018-09-18 | 浙江大华技术股份有限公司 | A kind of light compensating lamp control method and device |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111935415A (en) * | 2020-08-18 | 2020-11-13 | 浙江大华技术股份有限公司 | Brightness adjusting method and device, storage medium and electronic device |
CN111935415B (en) * | 2020-08-18 | 2022-02-08 | 浙江大华技术股份有限公司 | Brightness adjusting method and device, storage medium and electronic device |
CN112351214A (en) * | 2020-09-22 | 2021-02-09 | 智博汽车科技(上海)有限公司 | Method and device for assisting face image acquisition, readable storage medium and vehicle |
CN112351214B (en) * | 2020-09-22 | 2022-05-06 | 智博汽车科技(上海)有限公司 | Method and device for assisting face image acquisition, readable storage medium and vehicle |
CN113840095A (en) * | 2021-09-06 | 2021-12-24 | 浙江大华技术股份有限公司 | Light supplement lamp control method and related device |
CN114554105A (en) * | 2022-04-27 | 2022-05-27 | 深圳比特微电子科技有限公司 | Method and device for controlling light supplement lamp, camera and storage medium |
CN114554105B (en) * | 2022-04-27 | 2022-08-02 | 深圳比特微电子科技有限公司 | Method and device for controlling light supplement lamp, camera and storage medium |
CN115225824A (en) * | 2022-06-14 | 2022-10-21 | 深圳英飞拓智能技术有限公司 | Automatic exposure method and shooting device |
CN115225824B (en) * | 2022-06-14 | 2024-04-26 | 深圳英飞拓仁用信息有限公司 | Automatic exposure method and shooting device |
Also Published As
Publication number | Publication date |
---|---|
CN110418067B (en) | 2021-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110418067A (en) | Light filling lamp control method, device, picture pick-up device and storage medium | |
CN108419023B (en) | Method for generating high dynamic range image and related equipment | |
CN110445988B (en) | Image processing method, image processing device, storage medium and electronic equipment | |
CN109194882B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
KR101341095B1 (en) | Apparatus and method for capturing images having optimized quality under night scene conditions | |
US8106965B2 (en) | Image capturing device which corrects a target luminance, based on which an exposure condition is determined | |
KR100733096B1 (en) | Camera device and photographing method | |
JP4622629B2 (en) | Imaging device | |
JP4482037B2 (en) | Digital imaging exposure | |
CN110225248A (en) | Image-pickup method and device, electronic equipment, computer readable storage medium | |
JP4600684B2 (en) | Imaging apparatus and imaging method | |
TW201704836A (en) | Exposure control system and method thereof | |
JP2007067907A (en) | Image pickup apparatus, image pickup method, and image pickup program; and image processor, image processing method, and image processing program | |
US8106966B2 (en) | Digital image capture device and brightness correction method thereof | |
JPH08340542A (en) | Electronic still camera | |
JPH03179879A (en) | Method and apparatus for exposure control of video camera | |
US7486884B2 (en) | Imaging device and imaging method | |
KR20140032318A (en) | Image pickup apparatus that periodically changes exposure condition, a method of controlling image pickup apparatus, and storage medium | |
CN109510949B (en) | Camera automatic exposure method based on effective brightness of image feature points | |
JP2004236300A (en) | Digital camera | |
JP2010157925A (en) | Imaging apparatus, control method thereof and program | |
JP5371719B2 (en) | Imaging apparatus and control method thereof | |
CN114449175A (en) | Automatic exposure adjusting method, automatic exposure adjusting device, image acquisition method, medium and equipment | |
CN116132781B (en) | Micro-distance light supplementing method, micro-distance light supplementing device, computer equipment and storage medium | |
CN108337448B (en) | High dynamic range image acquisition method and device, terminal equipment and storage medium |
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 |