Summary of the invention
It is an object of the invention to solve the problems, such as illegal fingerprint caused by the above-mentioned prior art is left there are fingerprint, mention
A kind of Fingerprint Identification Unit that the adjust automatically suitable for small volume is handled has been supplied to have higher resolution, very fast recognition speed, together
When, the fingerprint imaging method of the gain adjustment processing of illegal fingerprint caused by fingerprint is left can be removed.
The technical solution adopted by the present invention to solve the technical problems is: a kind of fingerprint imaging side of gain adjustment processing
Method is suitable for fingerprint identification device, and the fingerprint identification device includes sensitive surface, processor and memory, the sensitive surface
Inside fill out be equipped with uniformly arranged as sensor element made of sensor array, the sensitive surface and memory with the processing
Device electrical connection, comprising the following steps:
Step 1: restarting fingerprint identification device all initializes every time, and fingerprint is known in the case where vacant
Other device carries out original vacant Image Acquisition;
Step 2: ambient noise calculating is carried out according to original vacant image;
Step 3: acquisition original fingerprint image;
Step 4: tentatively being judged according to original fingerprint image, if original fingerprint image meets the threshold value of setting, by
Processor judges whether to gain adjustment, and step 5 is directly executed if without gain adjustment, if desired carries out increasing adjusting
It then selects brightness regulation gain and hardware adjustments gain and executes step 5, if original fingerprint image does not meet the threshold value of setting,
Then it re-execute the steps three;
Step 5: the ambient noise in original fingerprint image is removed according to ambient noise calculated result;
Step 6: entire gain adjusting is carried out to the image after noise reduction;
Step 7: it obtains image adjusted and terminates, execution step 3 is jumped in next fingerprint recognition.
Luminance gain adjusting is used in the present invention and hardware gain adjusts dual regulation, increases ambient noise calculating,
By eliminating ambient noise to the adjusting that ambient noise calculates, is adjusted by luminance gain and hardware gain adjusts dual regulation
The acquisition and identification for reaching preferable fingerprint image, there is faster acquisition speed and preferable picture quality, adapt to various differences
Occasion, while the application can be adapted for piezoelectric type fingerprint identification device, can mobile phone or other to fingerprint identification device
Have on the device of volume requirement, there are preferable market prospects.
Preferably, in the step 3, in order to which anti-left fingerprints include following sub-step:
Sub-step one: the last image obtained in five, step 6 or step 7 the step of when calling in last time image recognition
As the first contrast images;
Sub-step two: original fingerprint image is acquired in fingerprint recognition as the second contrast images;
Three: the first contrast images of sub-step and the second contrast images compare;
Sub-step four: if the linear dependence between the first contrast images and the second contrast images is more than or equal to given threshold
Then it is decreased to setting value by the brightness regulation gain of image and carries out gain to the second contrast images then execute sub-step five, if
Linear dependence between first contrast images and the second contrast images is less than the threshold value of setting and executes sub-step five;
Sub-step five: original fingerprint image of the second contrast images of storage as this fingerprint recognition when is used.
Left fingerprints are a kind of very intractable situations, firstly, left fingerprints are all deposited in nearly all Fingerprint Identification Unit
, left fingerprints are close with dry finger identification situation when identification, it is difficult to directly remove, meanwhile, as long as using
Person blows hot gas, it is easy to reveal fingerprint.In the present invention, identification image (the second contrast images) and previous figure have been used
The step of carrying out linear dependence comparison as (the first contrast images), it is preferable by obtaining one after linear dependence comparison
Comparing result, if being greater than threshold value after linear dependence comparison twice, threshold value here is generally set at 70%, can recognize
Fixed second contrast images are left fingerprints of first contrast images in sensitive surface, because even being the same person if it is again
Fingerprint is pressed, finger can be also moved, finger position and angle can also change, if the second contrast images and the first comparison diagram
It is exactly left fingerprints that the case where being greater than 70% as threshold value, which only has a kind of situation, and after judging in this way, the second contrast images are with brightness
Gain is decreased to setting value and carries out gain to the second contrast images, and setting value here is to be also possible to connect close to 0 numerical value
Nearly 255 numerical value can cover the second contrast images in this way, although it is also feasible for directly issuing bad command in the processor
, still, it is many times that may require that display fingerprint after fingerprint, in this case, shows overexposure or exposure
Insufficient figure more tallies with the actual situation.
Preferably, sub-step one executes following movement if step 3 is to execute for the first time:
Original fingerprint image is acquired in fingerprint recognition as the first contrast images, judges that finger is after postponing a period of time
It is no to be removed from sensitive surface, after finger is not removed from sensitive surface if continue repeated acquisition original fingerprint image replacement existing the
One contrast images;Current first contrast images are stored if after finger is removed from sensitive surface.
Preferably, in the step 4: being carried out according to the intensity value ranges of original fingerprint image and average gray value
Preliminary judgement, if the intensity value ranges and average gray value of original fingerprint image meet the threshold value of setting, by processor according to
Average gray value or the average gray value of original fingerprint image selected location judge whether to gain adjustment, if being not necessarily to gain tune
Section then directly executes step 5, if desired carries out increasing adjusting and then selects brightness regulation gain to be adjusted first, if by bright
The intensity value ranges of rear original fingerprint image are adjusted for degree adjusting gain and average gray value reaches target value and thens follow the steps
Five, if target is not achieved in the intensity value ranges of original fingerprint image and average gray value after brightness regulation gain is adjusted
Value then executes hardware adjustments gain and then executes step 5, if original fingerprint image does not meet the threshold value of setting, re-executes
Step 3.In this way, the mode that luminance gain is adjusted and hardware gain is adjusted has been determined, by software gain adjustment, that is, reachable
Hardware can be reduced when to corresponding effect to change, is prolonged the service life, otherwise by adjusting hardware gain, so that detection range expands
Greatly, the fingerprint of various situations is adapted to.
Preferably, executing hardware adjustments gain in the step 4 includes for the hard of capacitance type fingerprint identification device
Part adjusts gain step and the hardware adjustments gain step for photo-electric fingerprint identification device,
When executing the hardware adjustments gain step for being directed to capacitance type fingerprint identification device, processor is passed according to preset value is selected
Sensor component address adjusts discharge voltage and the discharge time of sensor element;
When executing the hardware adjustments gain step for being directed to photo-electric fingerprint identification device, processor is passed according to preset value is selected
The time for exposure of sensor component address adjustment sensor element.In this way, different hardware adjustments, adaptive optics can be directed to
The Fingerprint Identification Unit of formula also adapts to capacitive fingerprint identification device.
Preferably, in step 2, according to processor when original vacant image progress ambient noise calculating according to record
Noise address, noise address is adjusted and exports several ambient noise images, it is all in an ambient noise image to make an uproar
Point gray scale corresponds to a gray value, selects a background noise graph according to the distribution of all noise gray values in step 5
Picture carries out noise remove using subtractive way.
Preferably, in step 2, according to processor when original vacant image progress ambient noise calculating according to record
Noise address, noise address is adjusted and exports several ambient noise images, is at least protected in an ambient noise image
There is a noise, each noise saves in the ambient noise image of at least two different gray scales.The generation maximum of noise can
Can cause some sensing element that can not work and generate because of sensing element aging, denoise that mode cannot be simple at this time with
Subtraction form carries out, and several ambient noise images is stored, according to the intensity value ranges and average gray value of original fingerprint image more
Selecting corresponding ambient noise image to carry out denoising can achieve preferable graphical quality similar in gray value after denoising.
Preferably, in step 2, according to processor when original vacant image progress ambient noise calculating according to record
Noise address, sensor array is divided into several identical regions by processor, and noise is in a background in each region
Gray scale in noise image is all the same, when the memory area for storing ambient noise image is full, calculates the ambient noise of selection
The average gray of image deletes the ambient noise image with the average gray disparity for the ambient noise image selected.
Preferably, when the memory area for storing ambient noise image is full, ambient noise image is pressed in step 2
The quantity of noise successively sorts from less to more, and new noise adds on the ambient noise image of minimum number, added noise
Gray value is equal to the average gray value for three noises that distance is nearest on the ambient noise image added.In this way, mainly
In order to which the quantity of ambient noise image cannot increase without limitation, calculating speed otherwise will affect, so reasonably arranging ambient noise
Image reaches preferable effect.
Preferably, each ambient noise image belongs to a gray scale by average gray value in the step 5
Value segmentation, calculates the average gray value of original vacant image, processor is according to the average gray value of original vacant image in gray scale
Ownership in value segmentation determines that the ambient noise image selected, processor select ambient noise image to be denoised.
Substantial effect of the invention is: luminance gain is used in the present invention to be adjusted and hardware gain adjusting Double regulating
Section increases ambient noise calculating, by eliminating ambient noise to the adjusting that ambient noise calculates, is adjusted by luminance gain
Dual regulation is adjusted with hardware gain and reaches the acquisition and identification of preferable fingerprint image, there is faster acquisition speed and preferable
Picture quality adapts to a variety of different occasions, while the application can be adapted for capacitance type fingerprint identification device, can be in mobile phone
Or other have on the device of volume requirement fingerprint identification device, there is preferable market prospects.Left fingerprints are very intractable
A kind of situation, firstly, left fingerprints be it is all existing in nearly all Fingerprint Identification Unit, left fingerprints when identification with it is dry
Dry finger identification situation is close, it is difficult to directly removes, meanwhile, as long as user blows hot gas, it is easy to manifest fingerprint
Come.In the present invention, identification image (the second contrast images) and previous image (the first contrast images) have been used to carry out linearly related
Property comparison the step of, by linear dependence comparison after obtain a preferable comparing result, if linear dependence twice
It is greater than threshold value after comparison, threshold value here is generally set at 70%, it can be assumed that the second contrast images are the first comparison diagrams
As the left fingerprints in sensitive surface can also move finger, finger because even being the same person if it is fingerprint is pressed again
Position and angle can also change, if the second contrast images and the first contrast images threshold value only have one the case where being greater than 70%
Kind of situation is exactly left fingerprints, and in this way after judgement, the second contrast images with luminance gain are decreased to setting value and to second pair
Gain is carried out than image, and setting value here is to be also possible to numerical value close to 255 close to 0 numerical value, in this way can be by second
Contrast images cover, although directly in the processor issue bad command be also it is feasible, be many times by fingerprint it
After may require that display fingerprint, in this case, show overexposure or under-exposure figure more tally with the actual situation.
Embodiment 1:
A kind of fingerprint imaging method of gain adjustment processing, is suitable for fingerprint identification device, the fingerprint identification device packet
Sensitive surface, processor and memory are included, the inside of the sensitive surface is filled out equipped with sensing made of uniformly being arranged as sensor element
Device array, the sensitive surface and memory are electrically connected with the processor, it is characterised in that: the following steps are included:
Step 1: restarting fingerprint identification device all initializes every time, and fingerprint is known in the case where vacant
Other device carries out original vacant Image Acquisition;
Step 2: ambient noise calculating is carried out according to original vacant image;
Step 3: acquisition original fingerprint image;
Step 4: tentatively being judged according to original fingerprint image, if original fingerprint image meets the threshold value of setting, by
Processor judges whether to gain adjustment, and step 5 is directly executed if without gain adjustment, if desired carries out increasing adjusting
It then selects brightness regulation gain and hardware adjustments gain and executes step 5, if original fingerprint image does not meet the threshold value of setting,
Then it re-execute the steps three;
Step 5: the ambient noise in original fingerprint image is removed according to ambient noise calculated result;
Step 6: entire gain adjusting is carried out to the image after noise reduction;
Step 7: it obtains image adjusted and terminates, execution step 3 is jumped in next fingerprint recognition.
In the step 3, in order to which anti-left fingerprints include following sub-step:
Sub-step one: the last image obtained in five, step 6 or step 7 the step of when calling in last time image recognition
As the first contrast images;If step 3 is to execute for the first time, sub-step one executes following movement:
Original fingerprint image is acquired in fingerprint recognition as the first contrast images, judges that finger is after postponing a period of time
It is no to be removed from sensitive surface, after finger is not removed from sensitive surface if continue repeated acquisition original fingerprint image replacement existing the
One contrast images;Current first contrast images are stored if after finger is removed from sensitive surface.
Sub-step two: original fingerprint image is acquired in fingerprint recognition as the second contrast images;
Three: the first contrast images of sub-step and the second contrast images compare;
Sub-step four: if the linear dependence between the first contrast images and the second contrast images is more than or equal to given threshold
Then it is decreased to setting value by the brightness regulation gain of image and carries out gain to the second contrast images then execute sub-step five, if
Linear dependence between first contrast images and the second contrast images is less than the threshold value of setting and executes sub-step five;
Sub-step five: original fingerprint image of the second contrast images of storage as this fingerprint recognition when is used.
Processor is according to the noise of record in step 2, when carrying out ambient noise calculating according to original vacant image
Location is adjusted noise address and exports several ambient noise images, and all noise gray scales are equal in an ambient noise image
A corresponding gray value selects an ambient noise image according to the distribution of all noise gray values in step 5, using subtracting
Method mode carries out noise remove.
Processor is according to the noise of record in step 2, when carrying out ambient noise calculating according to original vacant image
Location is adjusted noise address and exports several ambient noise images, at least preserves one in an ambient noise image
Noise, each noise save in the ambient noise image of at least two different gray scales.
Processor is according to the noise of record in step 2, when carrying out ambient noise calculating according to original vacant image
Sensor array is divided into several identical regions by location, processor, and noise is in an ambient noise image in each region
In gray scale it is all the same, when the memory area for storing ambient noise image is full, calculate the ash of the ambient noise image of selection
Average value is spent, the ambient noise image with the average gray disparity for the ambient noise image selected is deleted.
In step 2, when the memory area for storing ambient noise image is full, ambient noise image presses the number of noise
Amount successively sorts from less to more, and new noise adds on the ambient noise image of minimum number, the gray value etc. of added noise
In the average gray value of three nearest noises of distance on the ambient noise image added.
In the step 5, each ambient noise image belongs to a gray value by average gray value and is segmented, meter
The average gray value of original vacant image is calculated, processor is according to the average gray value of original vacant image in gray value segmentation
Ownership determines that the ambient noise image selected, processor select ambient noise image to be denoised.
In the step 4: tentatively judged according to the intensity value ranges of original fingerprint image and average gray value,
If the intensity value ranges and average gray value of original fingerprint image meet the threshold value of setting, by processor according to average gray value
Or the average gray value of original fingerprint image selected location judges whether to gain adjustment, directly holds if without gain adjustment
If desired row step 5 carries out increasing adjusting and then selects brightness regulation gain to be adjusted first, if by brightness regulation gain
The intensity value ranges and average gray value that rear original fingerprint image is adjusted reach target value and then follow the steps five, if by bright
The intensity value ranges of rear original fingerprint image are adjusted for degree adjusting gain and average gray value is not achieved target value and then executes firmly
Part adjusts gain and then executes step 5, if original fingerprint image does not meet the threshold value of setting, re-execute the steps three.
It includes the hardware adjustments increasing for capacitance type fingerprint identification device that hardware adjustments gain is executed in the step 4
Beneficial step and hardware adjustments gain step for photo-electric fingerprint identification device,
When executing the hardware adjustments gain step for being directed to capacitance type fingerprint identification device, processor is passed according to preset value is selected
Sensor component address adjusts discharge voltage and the discharge time of sensor element;
When executing the hardware adjustments gain step for being directed to photo-electric fingerprint identification device, processor is passed according to preset value is selected
The time for exposure of sensor component address adjustment sensor element.
Luminance gain adjusting is used in the present embodiment and hardware gain adjusts dual regulation, increases ambient noise meter
It calculates, by eliminating ambient noise to the adjusting that ambient noise calculates, is adjusted by luminance gain and hardware gain adjusting is dual
The acquisition and identification for reaching preferable fingerprint image are adjusted, there is faster acquisition speed and preferable picture quality, is adapted to various
Different occasion, while the application can be adapted for capacitance type fingerprint identification device, can mobile phone or other to fingerprint recognition
Equipment has on the device of volume requirement, there is preferable market prospects.Left fingerprints are a kind of very intractable situations, firstly, losing
Stay fingerprint be it is all existing in nearly all Fingerprint Identification Unit, left fingerprints identify situation with dry finger when identification
It is close, it is difficult to directly remove, meanwhile, as long as user blows hot gas, it is easy to reveal fingerprint.In the present invention, use
The step of identification image (the second contrast images) and previous image (the first contrast images) carry out linear dependence comparison, passes through
A preferable comparing result is obtained after linear dependence comparison, if being greater than threshold value after linear dependence comparison twice,
Here threshold value is generally set at 70%, it can be assumed that the second contrast images are the first contrast images leaving in sensitive surface
Fingerprint can also move finger because even being the same person if it is fingerprint is pressed again, and finger position and angle can also occur
Variation, if it is exactly to leave finger that the second contrast images and the first contrast images threshold value, which only have a kind of situation the case where being greater than 70%,
Line, after judging in this way, the second contrast images are decreased to setting value with luminance gain and carry out gain to the second contrast images, this
In setting value be to be also possible to numerical value close to 255 close to 0 numerical value, the second contrast images can be covered in this way, although
It is also feasible for directly issuing bad command in the processor, is many times that may require that display fingerprint after fingerprint still,
In this case, show that overexposure or the figure of under-exposure more tally with the actual situation.The present embodiment has determined bright
The mode for spending gain adjustment and hardware gain adjusting, can reduce hardware when can reach corresponding effect by software gain adjustment
It changes, prolongs the service life, otherwise by adjusting hardware gain, so that detection range expands, adapt to the fingerprint of various situations.This
The generation maximum possible of noise is generated because sensing element aging causes some sensing element that can not work in embodiment,
What denoising mode cannot be simple at this time is carried out in the form of subtraction, several ambient noise images is stored, according to original fingerprint image more
Intensity value ranges and average gray value select corresponding ambient noise image to carry out denoising to can achieve gray value phase after denoising
Close preferable graphical quality.In order to which the quantity of ambient noise image cannot increase without limitation, calculating speed otherwise will affect, so
It is reasonable to arrange ambient noise image, reach preferable effect.
Above-mentioned embodiment is only a preferred solution of the present invention, not the present invention is made in any form
Limitation, there are also other variations and modifications on the premise of not exceeding the technical scheme recorded in the claims.