Summary of the invention
(1) technical matters that will solve
The objective of the invention is to design a kind of remote iris image acquisition device, method and recognition system of automatic focusing,, improve the ease for use of iris recognition to increase the field depth of distant range iris image acquisition.
(2) technical scheme
For achieving the above object, the invention provides a kind of remote iris image acquisition device of automatic focusing.This device comprises following structure: iris camera, long focal length lens, focusing gear unit, camera lens converter, focusing electric rotating machine, electric-motor drive unit, calculation processing unit, wherein: iris camera, long focal length lens and camera lens converter are positioned on the same axis, the focusing gear unit with focus that electric rotating machine is coaxial to be connected; The iris camera is connected by the camera lens converter with long focal length lens; The focusing gear unit is connected with focusing ring on the long focal length lens; Focusing electric rotating machine and electric-motor drive unit are electrically connected; Calculation processing unit is connected with the electric-motor drive unit signal, by the rotation of electric-motor drive unit control focusing electric rotating machine; Calculation processing unit is connected with the iris camera, handles the image from the iris camera.
For achieving the above object, the invention provides a kind of distant range iris image acquiring method of automatic focusing, comprise the steps:
Step P1: initialization apparatus, the rotation focusing ring makes the focusing ring focusing position to zero point, i.e. limit switch 11 places;
Step P2: the continuous images acquired of iris camera forms image sequence;
Step P3: the changing value of the sharpness of every two field picture and sharpness in the calculation processing unit sequence of computed images, difference execution in step P4 and step P5 in two threads;
Step P4: according to the sharpness and the sharpness changing value of image, the direction and the speed of the rotation of conversion focusing ring are returned step P2; Described conversion is according to sharpness and sharpness changing value, and the automatic current system state of the remote iris image acquisition device of focusing, is decided by the system state switch condition of the remote iris image acquisition device of automatic focusing;
Step P5: change image over to and select thread, the sharpness of image and sharpness changing value in the sequence of computed images, and judge whether to pick out the image that sharpness meets the demands by the sharpness and the sharpness changing value of image, if the clear picture of selecting, execution in step P6, if that selects is not fogging clear, get back to step P2;
Step P6: from the picture rich in detail of picking out, carry out human eye detection and extract eye image;
Step P7: eye image is carried out quality judge, judge whether to be used for iris recognition, if judge that eye image can be used in iris recognition, iris recognition finishes, if judge that eye image can not be used for iris recognition, then continue images acquired, continue execution in step P5.
For achieving the above object, the invention provides a kind of full automatic distant range iris recognition system based on above apparatus and method, comprise following structure: far distance automatic focusing mechanism, remote infrared light supply, driving governor, light source controller, image pick-up card, computing machine, panel and rack, wherein: the focusing electric rotating machine of far distance automatic focusing mechanism is electrically connected on the computing machine by driving governor; Iris camera on the far distance automatic focusing mechanism is connected on the computing machine by image pick-up card; The high-definition picture of iris camera collection is by on passing to; By the COMPUTER CALCULATION camera collection to the sharpness of realtime graphic, and rotate far distance automatic focusing mechanism automatically, search and the focal position of following the tracks of object according to the variation of sharpness; Remote infrared light supply is connected on the computing machine by controller; Above equipment all is installed in the rack, and far distance automatic focusing mechanism and remote infrared light supply are all installed towards the front, and panel is placed in the rack front.
(3) beneficial effect
The present invention combines technology such as Flame Image Process, Electromechanical Control, computer vision and pattern-recognition, is applied to the iris recognition direction in living things feature recognition field.The present invention is carrying out iris image acquiring at a distance by the method for automatic focusing, improves iris image acquiring scope and picking rate, has improved the ease for use of iris recognition.
The scheme that the present invention adopts, the first, the redesign focusing mechanism makes it take iris image by focusing in bigger scope, farther distance.The second, design is the focusing strategy better, can satisfy large-scale focus search, can satisfy high-precision focusing again, and follows the tracks of fast can work as focal variation the time.
Focusing mechanism has adopted exquisite mechanical hook-up, goes for multiple long focal length lens; Drive focusing ring with stepper motor, focusing range is big, slow-roll stabilization and fast; Adopted strategy, can control focusing mechanism search and tracking focal position fast based on the focusing of state exchange; Adopt image processing techniques to judge the sharpness and the detection human eye of image, obtained iris image.
Embodiment
Describe each related detailed problem in the technical solution of the present invention in detail below in conjunction with accompanying drawing.Be to be noted that described embodiment only is intended to be convenient to the understanding of the present invention, and it is not played any qualification effect.
(1) remote iris image acquisition device of focusing automatically
Structural design of the present invention such as Fig. 1 are made up of following and part: iris camera 1, long focal length lens 2, focusing gear unit 3, camera lens converter 4, focusing electric rotating machine 5, electric-motor drive unit 6, calculation processing unit 7.
Iris camera 1 is connected by camera lens converter 4 with camera lens 2; Focusing ring 21 on focusing gear unit 3 and the camera lens 2 and focusing electric rotating machine 5 are connected; Focusing electric rotating machine 5 and electric-motor drive unit 6 are electrically connected; Calculation processing unit 7 is connected with electric-motor drive unit 6 signals, can be by the rotation of electric-motor drive unit 6 control focusing electric rotating machines 5; Calculation processing unit 7 is connected with iris camera 1, handles the image from camera 1.
The focal length value of long focal length lens 2 is that 100mm is to the arbitrary value between the 500mm.Long focal length lens 2 can be connected with iris camera 1 by camera lens converter 4.
Wherein, focusing gear unit 3 structural drawing such as Fig. 2.One cavity ring 31 and a jig 32 are arranged on the described focusing gear unit 3, have the elasticity three-jaw in that a jig 32, one jigs 32 are installed on the cavity ring 31 and between the focusing ring 21, be used to block in the described cavity ring 31 and the camera lens 2 and the focusing rings 21 of different sizes; Described focusing gear unit 3 also has a belt 33 and a limit switch 34, the be locked rotating shaft of the cavity ring 31 and the focusing electric rotating machine 5 that is locked of a described belt 33, like this when 5 rotations of focusing electric rotating machine, also can drive cavity ring 31 rotations, focus thereby drive 21 pairs of camera lenses 2 of focusing ring; A described limit switch 34 will be run into when focusing ring 21 rotates to a position, and limit switch 34 sends a signal can make stepper motor 5 stop operating, and so just makes focusing gear unit 3 that an initial position has been arranged.
(2) the distant range iris image acquiring method of focusing automatically
Based on the remote iris image acquisition device of above automatic focusing, automatic focusing method flow diagram such as Fig. 3 that we adopt: method has two threads, and first thread is used for focusing, and second thread is used for image and selects journey.The focusing of first thread is made of following step:
Step P1: initialization apparatus, the rotation focusing ring makes focusing ring 21 focusing positions to zero point, i.e. limit switch 11 places;
Step P2: iris camera 1 continuous images acquired forms image sequence;
Step P3: calculation processing unit 7 calculates the sharpness of every two field picture in the image sequence that collects by iris camera 1 and the changing value of sharpness, respectively execution in step P4 and step P5;
Step P4: according to the sharpness and the sharpness changing value of image, the direction and the speed of the rotation of conversion focusing ring are returned step P2; Described conversion is according to sharpness and sharpness changing value, and whose current state, is decided by definition status switch condition.Automatically the state of the remote iris image acquisition device of focusing is divided into four kinds, stationary state, extensive search state, search condition and focus condition among a small circle.
Step P5: change image over to and select thread, image with sharpness and sharpness changing value is selected, constantly from image sequence, judge whether to pick out the image that sharpness meets the demands, if the clear picture of selecting, execution in step P6, if that selects is not fogging clear, get back to step P2;
Step P6: from the picture rich in detail of picking out, carry out human eye detection and extract eye image;
Step P7: eye image is carried out quality judge, judge whether to be used for iris recognition, if judge that eye image can be used in iris recognition, iris recognition finishes, if judge that eye image can not be used for iris recognition, then continue images acquired, continue execution in step P5.
(1) computed image sharpness
In the said method flow process, the method for computed image sharpness is as follows:
Step P31: the image fritter of on the image of gathering, randomly drawing 100 20*20;
Step P32: to the edge energy of each image fritter computed image, the method for edge calculation energy is: asks at image fritter X, and the quadratic sum of the Grad of Y both direction, and, obtain edge energy the edge energy addition of being had a few of image fritter;
Step P33: the edge energy value addition of 100 image fritters, and normalize to a numerical value between 0~1, described numerical value is the changing value of image definition.
Fig. 5 is the synoptic diagram of sharpness along with the variable in distance of focusing.When object fixedly the time, the point of sharpness maximum is at the focus place, and along with the distance of leaving the focal position, sharpness descends gradually, and the sharpness peak value is very sharp-pointed, can be used for judging whether sequence has focus to exist.Wherein, X-axis is a distance, and Y-axis is a sharpness, and Q is a change curve, and P is the focal position, and D is for can discern field depth.
When Fig. 6 changes for object (under the situation that the people moves), the variation synoptic diagram of the focal position of the long focal length lens 2 of iris camera 1.When the people when position A moves to B, the definition values of iris camera 1 different focus distance also is changed to curve QB from curve QA, the focal position becomes PB from PA.So this device can realize that when the people moves device can trace into new focal position PB from original focal position PA fast.
(2) based on the focusing strategy of state exchange
In the said method flow process, according to the sharpness and the sharpness changing value of image, the direction of conversion focusing ring 21 rotation, speed and the current system state of the remote iris image acquisition device of focusing are automatically decided by define system state transition condition.System state is defined as stationary state S1, extensive search state S2, search condition S3 and focus condition S4 among a small circle.Switch condition between them is: C11, C12, C23, C34, C44, C43, C32, C21.System state and state transition condition are shown in the focusing strategy synoptic diagram of Fig. 4, wherein:
Stationary state S1: focusing ring 21 is in neck point position, transfixion.If satisfy state transition condition C11 (being that sharpness is lower than a threshold value T1), then thinking does not have object to enter the visual field of iris camera, does not rotate focusing ring 21, and this moment, focusing ring 21 still remained static; If satisfy state transition condition C12 (being that sharpness is higher than threshold value T1), then thinking has object to come into view, and system enters the extensive search state.
Extensive search state S2 is: rotation focusing ring 21 from 0 in the hunting zone of maximum step number quick rotation: the certain step number of every rotation, then gather a two field picture, and calculate the value of sharpness, and the record current location.If satisfy state transition condition C23 (promptly when definition values greater than a threshold value T2, or definition values is when obvious peak value occurring), think to enter and to search for S3 among a small circle near the focal position; If satisfy state transition condition C21 (if promptly not finding the focal position), then get back to null position S1.
Search condition S3 is among a small circle: near the focal position, rotate so that small step is long near the scope of focusing ring 21 focus: whenever rotate to an angle, then gather a two field picture, and calculate the value of sharpness, and write down current step-length position.If satisfy state transition condition C34 (promptly when definition values greater than a threshold value T3, or definition values is when obvious peak value occurring), think to arrive the focal position, write down this peak value, enter focus mode; If satisfy state transition condition C32 (if promptly not finding the focal position), then proceed extensive search S2.
Focus mode S4: focusing ring 21 stops at the focal position, calculates sharpness changing value successively at set intervals.If satisfy state transition condition C43 (promptly work as sharpness and alter a great deal, or sharpness is less than a half of initial focus peak value), think that variation has taken place focus, the new focus of search S3 among a small circle; Otherwise, if satisfy state transition condition C44 (being that sharpness changes a half that is not less than initial focus peak value), suspend a period of time, continue to calculate the sharpness changing value, state is constant.
Described threshold value T1, T2 and T3 obtain by experiment.When experiment, with the some pairs of camera collection (more than 500 width of cloth) image; Manual image is divided into four classes: do not have object, object is arranged but image blurring, image is more clear, image is very clear; Calculate the value of each width of cloth image definition then; The definition values of four class images is normal distribution respectively, utilizes bayes method to determine cut off value T1, T2 and T3 between three classes to be each above-mentioned threshold value.
(3) image selection method
In above-mentioned method flow, in focusing, select distinct image and be used for carrying out iris recognition, wherein the concrete grammar of step P5 is:
Step P51: every collection 10 two field pictures, then from 10 two field pictures, choose 1 two field picture of sharpness maximum;
Step P52: if the sharpness of image is not then handled less than a threshold value T3;
Step P53: if the sharpness of image more than or equal to threshold value T3, then continues to handle to this image.
Wherein, the concrete grammar of step P6 eye detection is:
At first, utilize by machine learning algorithm (Adaboostting) training generation based on Ha Er small echo (Haar) feature cascade sorter.In system's operational process of the remote iris image acquisition device of focusing automatically, the down-sampled high-definition picture that collects, and utilize feature cascade sorter on different scale, to carry out eye detection.If do not detect eyes, then do not handle; If detect eyes, then go out the image of the eyes part under the original resolution at the high-definition picture up-sampling that collects, proceed to handle.
(4) iris image quality is judged
Above-mentioned distinct image not necessarily can be carried out iris recognition, judges that the method for step P7 is as described in Figure 7 so the present invention need carry out picture quality once more to eye image:
Step P71: the high band component E1 that calculates original eye image; High fdrequency component E1 is obtained by following method: generate the operator of a 8*8, the 4*4 at an operator center point value is-3, and other value is+1; Operator with this 8*8 carries out filtering on image; That then filtered all images point addition is obtained and be defined as E1;
Step P72: down-sampled eye image is that eye image is dwindled one times;
Step P73: calculate the high band component E2 of down-sampled eye image, the computing method that obtain E2 are with step P71;
Step P74: ask for the ENERGY E 1 of high band and than the ratio R of the ENERGY E 2 of low-frequency range;
Step P75: in conjunction with high band ENERGY E 1, the definition values C that obtains iris image quality is: C=α E1+ β R, and α, β are weighted operators, are drawn by experience;
If the definition values C that obtains does not then handle iris image less than a threshold value T4; Otherwise it is right that iris image is carried out pre-service, Iris Location, feature extraction and aspect ratio.
Application Example: full automatic distant range iris recognition system
According to above-mentioned focusing mechanism and focusing method, form a cover iris capturing instance system, as shown in Figure 8, wherein, described full automatic distant range iris recognition system is by forming with the lower part: far distance automatic focusing mechanism D1, remote infrared light supply D2, driving governor D3, light source controller D4, image pick-up card D5, computing machine D6, panel D7 and rack D8, and its connected mode is: the stepper motor of far distance automatic focusing mechanism D1 is electrically connected on the computing machine D6 by driving governor D3; Iris camera 1 on the far distance automatic focusing mechanism D1 is connected on the computing machine D6 by image pick-up card D5, is connected on the computing machine D6 by the USB line apart from the wide visual angle camera 7 of automatic focusing mechanism D1; Remote infrared light supply D2 is connected on the computing machine D6 by controller D4; Above equipment all is installed to D8 in the rack, and far distance automatic focusing mechanism D1 and remote infrared light supply D2 install towards the front.For attractive in appearance, panel D7 is placed in rack D8 front, and panel D7 can also can be the glass of transmitted infrared light, reflect visible light for having the acrylic board in cavity.
As Fig. 9 is the example that full automatic distant range iris recognition system shown in Figure 8 is shown, and this recognition system operation has following steps:
Step F 1: make the face area of iris camera 1 aligning people among the far distance automatic focusing mechanism D1, and start iris camera 1 collection high-definition picture;
Step F 2: the sharpness of the realtime graphic that collects by camera 1 by COMPUTER CALCULATION, and rotate far distance automatic focusing mechanism D1 automatically, search and the focal position of following the tracks of object according to the variation of sharpness;
Step F 3: iris camera 1 is selected the most clearly image in image sequence, detects eye image, extracts the image of people's eye portion;
Step F 4: the eye image quality judges, selects distinct image in the eye image sequence, is used for iris recognition.
In this example, because full automatic distant range iris recognition system of the present invention has adopted apart from automatic focusing mechanism, effective identification range of described full automatic distant range iris recognition system improves greatly.The people goes to the scope of 2.5~3.2 meters of rack precontracts, freezes, and then this recognition system can be adjusted camera D1 position according to people's height automatically, focuses automatically simultaneously and takes people's iris.
The user can feel comfortable nature when using this full automatic distant range iris recognition system of the present invention, and do not worry the position not to and can not finish identification.On the other hand, for the user of the full automatic distant range iris recognition system of first use, can not finish because it does not have experience yet.
The above; only be the embodiment among the present invention; but protection scope of the present invention is not limited thereto; anyly be familiar with the people of this technology in the disclosed technical scope of the present invention; can understand conversion or the replacement expected; all should be encompassed in of the present invention comprising within the scope, therefore, protection scope of the present invention should be as the criterion with the protection domain of claims.