Background technology
In field of video monitoring, in order that the image for obtaining camera acquisition produces overexposure or excessively dark under various scenes, not
Phenomenon, generally using automatic diaphragm lens.Automatic diaphragm lens are by adjusting the size in its aperture so that camera lens is in various fields
Under scape, demand can be met.
Automatic diaphragm lens have a damping coil and a driving coil, when the torque of driving coil is equal to damping coil
Torque when, the aperture of auto iris is fixed, and luminous flux keeps stable;When the torque of driving coil is more than the torque of damping coil
When, the aperture of auto iris is opened, luminous flux increase;When the torque of driving coil is less than the torque of damping coil, automatic light
The aperture of circle is closed, and luminous flux reduces.The torque of driving coil is by magnitude of voltage control, and magnitude of voltage is turned by digital control value
Change, magnitude of voltage is bigger, torque is bigger.
When controlling automatic diaphragm lens, it usually needs obtain causing the torque of driving coil to be equal to damping coil torque
Magnitude of voltage.If can not obtain relatively accurate so that the magnitude of voltage that the torque of driving coil is equal to damping coil torque goes control
Auto iris, the control of automatic diaphragm lens just loses benchmark, in control process, and automatic diaphragm lens aperture, which is beaten, to be opened or closed
The speed closed can be too fast;After control terminates, can not stabilized automatic diaphragm lens pore size well so that the company of causing
The bright dark gap of frame of video of continuous collection substantially, frequently flicker, and convergence time it is long the problem of.
The difficult point of automatic diaphragm lens control is, for the irregular automatic diaphragm lens not risen of numerous qualities so that drive
The magnitude of voltage that the torque of moving winding is equal to the torque of damping coil is not consistent.Therefore common practice is to use automatic light
Before circle, the magnitude of voltage of this benchmark is obtained by way of manual correction, automatic diaphragm lens are then just used.If in life
In producing line, to each automatic diaphragm lens manual correction, this is very huge workload.Current industry tends to realize
The adaptive of automatic diaphragm lens uses, without manually correcting.
The content of the invention
It can make being adjusted based on fast prediction for automatic diaphragm lens plug and play it is an object of the invention to provide a kind of
Auto iris control system, to solve the problems mentioned in the above background technology.
To achieve the above object, the present invention provides following technical scheme:
A kind of auto iris control system adjusted based on fast prediction, including camera lens, fast prediction unit, mesh
Computing unit, dynamic adjustment unit, reset detection unit and control unit are marked, camera lens connect fast prediction unit respectively
Input and reset detection unit input, reset detection unit output end connect fast prediction unit input and target respectively
Computing unit input, the dynamic adjustment unit input of target computing unit output end connection, fast prediction unit output end point
Lian Jie not control unit and dynamic adjustment unit input, dynamic adjustment unit output end connection control unit;The video camera
Camera lens is used to gather mean picture brightness AveLum and CMOS light exposure Exposure;The fast prediction unit is to video camera mirror
Every two field picture mean flow rate AveLum and CMOS light exposure Exposure of head collection carries out the target that Treatment Analysis is predicted
Digital control value HoldValue, and analysis result is transferred to control unit;The target computing unit is used for calculating certainly
The luminous flux Flux of dynamic aperture camera lens desired value, automatic diaphragm lens luminous flux Flux desired value=mean picture brightness
AveLum desired value/CMOS light exposures Exposure;The dynamic adjustment unit is according to automatic diaphragm lens luminous flux Flux
Desired value and prediction target number control signal value HoldValue, adjust final digital control value PwmValue,
And the target number control signal value HoldValue of prediction is corrected in real time, while analysis result is transferred into control unit;Reset
Detection unit is approximately zero detecting mean picture brightness AveLum, and when being still approximately zero after a time-out time
System is restPosed;Control unit is converted to analysis result the control signal to auto iris.
It is used as further scheme of the invention:PDM keyer, pulsewidth modulation are installed in the camera lens
Digital control value PwmValue is converted to square wave analog signal by controller, then square wave analog signal is converted into direct current
Signal is pressed, the driving coil of automatic diaphragm lens is driven with d. c. voltage signal, so as to drive beating for automatic diaphragm lens aperture
Open or close and close.
It is used as further scheme of the invention:During the fast prediction cell operation, first by automatic diaphragm lens aperture
Maximum is reached, then attempts each digital control value PwmValue successively, first is found and closes automatic diaphragm lens aperture
The digital control value PwmValue closed, and this digital control value PwmValue is set to the target number control of prediction
Signal value HoldValue processed.
Compared with prior art, the beneficial effects of the invention are as follows:
Of the invention this keeps the stable target number control signal value of automatic diaphragm lens pore size using fast prediction
HoldValue, and the value is constantly corrected, finally cause automatic diaphragm lens to keep an appropriate pore size, realize certainly
The plug and play of dynamic aperture camera lens, solving needs the problem of manpower manual is corrected on production line.
Embodiment
The technical scheme of this patent is described in more detail with reference to embodiment.
Referring to Fig. 1, a kind of auto iris control system adjusted based on fast prediction, including it is camera lens, quick
Predicting unit, target computing unit, dynamic adjustment unit, reset detection unit and control unit, camera lens are connected respectively
Fast prediction unit input and reset detection unit input, reset detection unit output end connect fast prediction unit respectively
Input and target computing unit input, the dynamic adjustment unit input of target computing unit output end connection, fast prediction
Unit output end connects control unit and dynamic adjustment unit input respectively, and dynamic adjustment unit output end connection control is single
Member.
PDM keyer is installed, PDM keyer is by digital control value in camera lens
PwmValue is converted to square wave analog signal, then square wave analog signal is converted into d. c. voltage signal, uses d. c. voltage signal
The driving coil of automatic diaphragm lens is driven, so as to drive opening or closing for automatic diaphragm lens aperture;Each DC voltage
Signal correspondence one digital control value PwmValue, digital control value PwmValue span from 0 to 100,
During when driving voltage value so that the torque of driving coil is equal to the torque of damping coil, it can exactly stablize automatic diaphragm lens, make
Obtain aperture no longer to change, this digital control value PwmValue is target number control signal value HoldValue.Work as numeral
Control signal value PwmValue deviates target number control signal value HoldValueHoldValue, and the aperture of auto iris starts
Open or close, the difference of deviation is bigger, the torque difference of driving coil and damping coil is bigger, the speed opened or closed is got over
It hurry up.
Camera lens are used to gather mean picture brightness AveLum and CMOS light exposure Exposure, mean picture brightness
AveLum=automatic diaphragm lens luminous flux Flux × CMOS light exposures Exposure, CMOS exposure Exposure=time for exposure ×
Gain, therefore automatic diaphragm lens luminous flux Flux=mean picture brightness AveLum/CMOS light exposures Exposure, automatic light
Circle camera lens luminous flux Flux is determined by ambient brightness and automatic diaphragm lens pore size, if being kept not in ambient brightness short-term
Become, automatic diaphragm lens luminous flux Flux will be used to weigh automatic diaphragm lens pore size, even if CMOS light exposures are because of other
The control of algorithm and be continually changing.
Every two field picture mean flow rate AveLum and CMOS light exposure that fast prediction unit is gathered to camera lens
Exposure carries out Treatment Analysis and analysis result is transferred into control unit, and fast prediction unit is first by automatic diaphragm lens hole
Maximum is reached in footpath, then attempts each digital control value PwmValue successively, finds first by automatic diaphragm lens aperture
The digital control value PwmValue of closing, and this digital control value PwmValue is fixed tentatively as target number control
Signal value HoldValue.
The target number control signal value HoldValue of such as one automatic diaphragm lens is 43, then digital control letter
During number value PwmValue=0, automatic diaphragm lens aperture is opened at full speed, and during digital control value PwmValue=43, aperture is protected
Hold original size, during digital control value PwmValue=44, aperture is closed with smaller speed, digital control value
During PwmValue=100, aperture is closed at full speed, and digital control value PwmValue correspondences apertures opens or closes speed, soon
During fast predicting unit setting digital control value PwmValue=0, automatic diaphragm lens aperture is opened at full speed, when front and rear frame
When automatic diaphragm lens luminous flux Flux is identical, then it is assumed that aperture reaches maximum;Each digital control value is tested successively
PwmValue, finds out first digital control value PwmValue that can close automatic diaphragm lens aperture.Each numeral
The control signal value PwmValue testing times are 0.5s, i.e. N/2 frames, and whether test automatic diaphragm lens luminous flux Flux is reduced,
If automatic diaphragm lens luminous flux Flux is reduced, show that automatic diaphragm lens aperture is closed, then the digital control value
PwmValue again more tests 1s, and 100 PwmValue are had in theory needs test, but for different automatic diaphragm lens,
Target number control signal value HoldValue is concentrated in the digital control value PwmValue of centre 1/3, therefore generally
At most test (100/3) * 0.5s=16s.In actual scene, because possible ambient brightness has disturbance, for example personage walks about,
It is not accurate target number control signal value HoldValue to test the digital control value PwmValue drawn, but can
To be considered substantially accurate target number control signal value HoldValue.
Target computing unit is used for calculating the luminous flux Flux of automatic diaphragm lens desired value, and automatic diaphragm lens light leads to
Measure Flux desired value=mean picture brightness AveLum desired value/CMOS light exposures Exposure.
If spectrum assignment is full-automatic or semiautomatic control, automatic diaphragm lens luminous flux Flux desired value=image is put down
Equal brightness AveLum time domain average value/expectation light exposure.When spectrum assignment adjusts obtained light exposure more than expectation light exposure
When, actual automatic diaphragm lens luminous flux Flux is less than automatic diaphragm lens luminous flux Flux desired value, auto iris mirror
Head bore footpath can be opened;When ambient brightness is very bright so that when the light exposure that spectrum assignment adjustment is obtained is less than expectation light exposure, from
Dynamic aperture lens opening can be closed, it is to avoid image overexposure.
If spectrum assignment is manual control, light exposure is fixed value, and mean picture brightness depends entirely on ambient brightness
With automatic diaphragm lens pore size, automatic diaphragm lens luminous flux Flux desired value=mean picture brightness AveLum phase
The light exposure of prestige value/fixation.
Dynamic adjustment unit controls to believe according to automatic diaphragm lens luminous flux Flux desired value and the target number of prediction
Number value HoldValue, adjusts final digital control value PwmValue, and correct the target number control letter of prediction in real time
Number value HoldValue.
The state of automatic diaphragm lens is according to digital control value PwmValue and target number control signal value
HoldValue magnitude relationship, is divided into opening/three kinds of holding/closing state.When automatic diaphragm lens state is just from hold mode
It is switched to when opening or closing state, digital control value PwmValue is also from target number control signal value HoldValue
Target number control signal value HoldValue+1 or target number control signal value HoldValue-1 value are switched to, works as numeral
When control signal value PwmValue attempts a new value, the change of automatic diaphragm lens luminous flux Flux in the time of N/10 frames is tested
Change value Δ Flux.If between current automatic diaphragm lens luminous flux Flux and automatic diaphragm lens luminous flux Flux desired value
Difference and Δ Flux large percentage, by digital control value PwmValue to away from target number control signal value
HoldValue direction regulation, that is, accelerate to open or close the speed in automatic diaphragm lens aperture;If current automatic diaphragm lens
The ratio of difference and Δ Flux between luminous flux Flux and automatic diaphragm lens luminous flux Flux desired value is smaller, Δ Flux
Current automatic diaphragm lens luminous flux Flux can be caused to reach automatic diaphragm lens luminous flux Flux phase within a short period of time
Prestige value, then adjusted digital control value PwmValue to the direction close to target number control signal value HoldValue, i.e.,
Reduction opens or closes the speed in automatic diaphragm lens aperture, so reaches the mesh in quick and stable regulation automatic diaphragm lens aperture
's;When automatic diaphragm lens state from closed mode be switched to hold mode and then and be switched to closed mode, or from opening
State is switched to hold mode and then is switched to open mode again, and current goal digital control value HoldValue is inaccurate,
Amendment is needed, the amplitude of amendment is related to hold mode duration length, and hold mode duration is longer, amendment
Amplitude is smaller;When then automatic diaphragm lens state is switched to hold mode from closed mode and open mode is switched to, or
Hold mode is switched to from open mode and then closed mode is switched to again, and this is due to that automatic diaphragm lens are being opened or closed
When excessive velocities inertia action cause, can correct target number control signal value PwmValue to away from target number control
Signal value HoldValue direction governing speed and amplitude.
Reset detection unit is approximately zero detecting mean picture brightness AveLum, and after a time-out time still
When being approximately so zero, reset detection unit restPoses system.Camera lens is for example covered with the pushing time or is changed certainly
Dynamic aperture camera lens etc..
Control unit is converted to analysis result the control signal to auto iris.
Of the invention this keeps the stable target number control signal value of automatic diaphragm lens pore size using fast prediction
HoldValue, and the value is constantly corrected, finally cause automatic diaphragm lens to keep an appropriate pore size, realize certainly
The plug and play of dynamic aperture camera lens, solving needs the problem of manpower manual is corrected on production line.
The better embodiment to this patent is explained in detail above, but this patent is not limited to above-mentioned embodiment party
, can also be on the premise of this patent objective not be departed from formula, the knowledge that one skilled in the relevant art possesses
Various changes can be made.