A kind of method that condenser type imaging sensor bad point positions in real time
Technical field
The invention belongs to technical field of image processing, and in particular to what a kind of condenser type imaging sensor bad point positioned in real time
Method.
Background technology
Due to production technology deviation and yield issues, cause condenser type imaging sensor when dispatching from the factory, sensor electricity
Hold the abnormal electric capacity that array point has random distribution, it is bad point that now we, which define the abnormal capacitance point,.Bad point is more than a fixed number
Amount, can have a strong impact on picture quality, cause image useless.Simultaneously as the capacitor array silicon of condenser type imaging sensor is not
All silicon materials can be covered as traditional die packing forms so that the exposure for a long time of electric capacity collection array in atmosphere, is held very much
Capacitor cell damage is easily caused, most has influence on picture quality at last.Qualified sensor in use, because various situations are easy
The damage of array point is caused to occur often.
As introduced above to understand, product yield and sensor image quality are directly related with bad point number.How bad point is positioned
Position, while it is present focus on research direction to repair bad point, the condenser type imaging sensor for thereby producing present patent application is bad
Point location algorithm and image repair algorithm.
The method that current existing CCD, CMOS camera, capacitance plate and the capacitive fingerprint sensing device of foreign countries detect bad point
All it is the image that different gray values are sent into by certain mode, bad point and bad point is judged whether according to variation of image grayscale
Position positions.Domestic bad point detection and reparation at present, it is substantially main for capacitance plate, video camera, domestic detection method
By the image for being manually fed into different gray values;And external capacitance type sensor bad point detection, by sensor array list
The mode of finishing coat electrolyte solution (or electrolyte) changes the background gray scale that sensor collects, and is judged according to gray-value variation
With the presence or absence of bad point.Existing implementation complex procedures both at home and abroad are high and existing to electrolyte material and coating required precision
Mode is not easy batch, carries out bad point detection and positioning in real time.
The content of the invention
In order to solve the problems, such as that prior art is present, the present invention proposes fixed in real time for condenser type imaging sensor bad point
The method of position, realizability condition is provided for bad point reparation, and the implementation is realized relative to conventional dead pixel detection method
Simply, it is easy to batch detection and in real time detection.
The principle of bad point detection, which comes from, to be analyzed capacitance type sensor image-forming principle, according to image-forming principle when designing circuit
Addition testing capacitor (if each array point can change sensor background image intensity value by adjusting other parameters in itself, should
Testing capacitor device can be without access).The testing capacitor is mainly used in changing the gray value of sensor background image.Sensor array
Each capacitor cell circuit structure on row is identical, theoretical performance and function should as, due to the production error of chip,
Under identical parameters, when gathering background image, image intensity value is distributed in theoretical value small range nearby, and the tonal range is in normal state point
Cloth, the point not within the scope of normal distribution are labeled as bad point.
The method that the condenser type imaging sensor bad point of the present invention positions in real time, mainly comprises the following steps:
1, adjustment capacitor array parameter (each capacitance point parameter is consistent), the parameter make it that the gray value of background image is main
Intermediate grade of the integrated distribution in sensor tonal range;Start sensor and gather a width background image, and count the Background
The histogram of picture;The capacitor array includes reference capacitance, reference voltage and testing capacitor;The testing capacitor, is mainly used in
Change the gray value of sensor background image;
2, according to the normal distribution characteristic of image intensity value, more than 80% pixel institute is searched on histogram distribution curve
Normal distribution section, and record the section starting gray value and terminate gray value;
3, set with collection identical parameters for the first time, starting sensor and gathering a width background image again, and sentence in real time
Break each capacitance point corresponding grey scale value whether in normal distribution section, if not within the range, labeled as bad point;It is all
After the completion of point judges, by reading marking signal, the position of bad point is determined.
This patent is described in detail by taking capacitive fingerprint sensing device as an example.Capacitance type sensor is by multiple capacitor cells
The condenser type collection array of composition is formed.The capacitance difference of fingerprint ridge, paddy is converted into by each capacitor cell by electric capacity electric discharge
Voltage signal or current signal, and it is sent into ratio according to regular hour cycle T sample voltage value or current value, and by the value
Analog quantity is converted into digital 2 values (0/1) signal compared with device, the value signal bound-time point of numeral 2 is the gray value of the point.
When carrying out bad point detection, finger electric capacity is not accessed, the gray value for influenceing capacitor cell generation mainly has with reference to electricity
Appearance, reference voltage and testing capacitor, the circuit structure of each capacitor cell and the parameter value of influence background imaging are the same, theoretical
The background gray levels of upper all array points should be the same.But due to the little deviation of technique productions, all normal array point ashes
Angle value should be distributed in the gray scale interval of a small range, i.e. normal distribution section, and the array point not in the gray scale interval is determined
Justice is bad point.
According to above-mentioned principle, the present invention carries out bad point detection judgement according to following steps:
(1) reference capacitance, reference voltage and testing capacitor are adjusted, it is gray image (i.e. background to make sensor background image
The main integrated distribution of gray value is in the intermediate region of sensor tonal gradation).Start sensor and gather a width background image, and it is raw
Into histogram information corresponding to the image.
(2) distributed area according to where histogram information searches for more than 80% pixel, the section is in normal distribution shape
Formula, and obtain the starting tonal gradation start in the section and terminate tonal gradation end.
(3) in the case where gathering background image identical parameters with first time, gather Background again, and according to condition start≤
Whether image (m, n)≤end, gray value corresponding to each capacitor cell of real-time judge are distributed in normal distribution section.Such as
Really bar part meets that capacitor cell corresponding to image (m, n) is normal point, is otherwise bad point, and mark the electricity using 1bit signals
Hold location mode (normal point or bad point).Wherein, image (m, n) is m rows, the gray value corresponding to the n-th column capacitance unit.
(4) by reading all marking signals, you can determine bad point position, subsequently carry out bad point according to bad point position
Repair process.
The invention provides a kind of method that condenser type imaging sensor bad point positions in real time, its advantage are as follows:
(1) method that condenser type imaging sensor bad point proposed by the present invention positions in real time realizes simple, shared resource
It is few, it is easy to batch detection and in real time detection.The bad point detection can carry out detection and localization when dispatching from the factory to bad point, while answer
It can be detected in real time by this method in due to carrying out repair process using bad points caused by factor such as bad borders, and to bad point.
(2) method that condenser type imaging sensor bad point proposed by the present invention positions in real time be applied to capacitance type sensor,
Inductance type transducer, resistance sensor etc. and capacitive fingerprint sensing device belong to each imaging unit circuit structure it is identical and
Image-forming principle identical imaging sensor.If other similar sensors, it need to only change the subtest device in circuit design
Part (testing capacitor), you can realize that bad point positions by above-mentioned same method.
Brief description of the drawings
Fig. 1 is a kind of flow chart of condenser type imaging sensor bad point real-time location method embodiment of the present invention;
Fig. 2 is a kind of capacitance type sensor list of condenser type imaging sensor bad point real-time location method embodiment of the present invention
The circuit structure of individual capacitor cell;
Fig. 3 is a kind of background image histogram of condenser type imaging sensor bad point real-time location method embodiment of the present invention
Distribution schematic diagram.
Embodiment
Illustrate the preferred embodiments of the present invention below in conjunction with the accompanying drawings, specific embodiment described herein is only solving
The present invention is released, is not intended to limit the present invention.
This patent is described in detail by taking capacitive fingerprint sensing device as an example.Fig. 2 describes the electricity of one embodiment of the invention
The circuit structure of the single capacitor cell of capacity sensor.Each capacitor cell puts the capacitance difference of fingerprint ridge, paddy by electric capacity
Electricity is converted into voltage signal or current signal, and according to regular hour cycle T sample voltage value or current value, and should
Value is sent into comparator (250) and analog quantity is converted into digital 2 values (0/1) signal, and the value signal bound-time point of numeral 2 is should
The gray value of point.
When carrying out bad point detection, finger electric capacity C is not accessedfinger(210) the gray value master of capacitor cell generation, is influenceed
There is reference capacitance Cref(230), reference voltage VrefAnd testing capacitor C (240)test(220), the circuit knot of each capacitor cell
Structure and the parameter C for influenceing background imagingref(230)、Vref(240)、Ctest(220) value is the same, in theory all array points
Background gray levels should be the same.Due to the little deviation of technique productions, all normal array point gray values should be distributed in one
The gray scale interval of individual small range, i.e. normal distribution section, the array point not in the gray scale interval are defined as bad point.
Reference picture 1, a kind of flow chart of condenser type imaging sensor bad point real-time location method embodiment of the present invention is shown,
Including:
Step 110, C is adjustedref(230)、Vref(240)、Ctest(220) it is gray image, to make sensor background image, i.e.,
Intermediate grade of the main integrated distribution of gray value of background image in sensor tonal range;
Step 120, start sensor and gather a width background image, and histogram information corresponding to generating the image, be designated as
Hist, the number of pixels that gray value is i, the background image histogram distribution schematic diagram of the embodiment of the present invention are represented with hist (i)
As shown in figure 3, wherein abscissa i is tonal gradation;
Step 130, the distributed area according to where histogram information searches for more than 80% pixel, the section is in normal state point
Cloth form, as shown in normal distribution section (330) in Fig. 3, and obtain the starting tonal gradation start (350) and knot in the section
Beam tonal gradation end (360).What it is not within the normal distribution section is bad point a little, and the bad point of the present embodiment is in Nogata
Distribution is as shown in 310,320, the 340 of Fig. 3 on figure;
Step 140, in the case where gathering background image identical parameters with first time, Background is gathered again;
Step 150, according to condition start≤image (m, n)≤end, ash corresponding to each capacitor cell of real-time judge
Whether angle value is distributed in normal distribution section, if image (m, n)<Start or image (m, n)>End, then image (m,
N) capacitor cell corresponding to is bad point, is otherwise normal capacitor cell, and mark the capacitor cell state using 1bit signals
(normal point or bad point).Wherein, image (m, n) is m rows, the gray value corresponding to the n-th column capacitance unit.
By reading all marking signals, you can determine bad point position, subsequently carrying out bad point according to bad point position repaiies
Multiple processing.This programme is replaced using the average value of two pixels of two, left side pixel and the right of bad point unit to bad point
Change processing.If image (m, n) is bad point, then image (m, n)=[image (m-2, n)+image (m-1, n)+image (m+ are made
1,n)+image(m+2,n)]/4。
The detailed description and the accompanying drawings of the embodiment of the present invention are only intended to the explanation present invention, rather than limitation by claim and
The scope of the present invention that its equivalent defines.