The technical field generally relates to a bevel-axial auto-focusing microscopic system and method thereof and, in particular, more related to a method able to calibrate to in-focus position in a single pass, which is combined with an estimation approach and robust to the external image noise interference in the environment, applicable to a microscopic optical system.
Auto-focusing is an important technology for the automatic optical inspection application, and is mainly to use image processing to perform inspection to a target object. At present, auto-focusing technology is widely used in semiconductor element inspection, such as, semiconductor waffle, LCD panel, solar cells, circuit board inspection, and so on. Prior to applying image technology to feature determination, feature matching, and target positioning, an auto-focusing process must be executed.
In the development of electronic products, the yield rate depends heavily on the manufacturing process. High precision inspection technologies are required to improve the problems of defect parameters and product performance, and auto-focusing technology is the core to the inspection technologies.
Take TFT-LCD panel industry as an example. The color filter and the electrode array at the lower module end are prone to defects in a manufacturing process. To improve the yield rate, the auto-focusing technology is used in inspection to detect and position the defect, and then a laser micro-processing machine with auto-focusing capability to eliminate the defect. As such, the defect can be rectified to transform a defected product into a good product.
TFT-LCD panel inspection, for example, demands rapid auto-focusing, which plays the key role for the related equipments to obtain highly distinguishable inspection image for rectification. In general, the amplification factor of the object lens used in the TFT-LCD panel inspection process is 2-5 times (2-5×), and the depth of field (DOF) is from 0.5 um to 91 um. Therefore, to achieve auto-focusing is very difficult.
The auto-focusing methods can be categorized as passive focusing and active focusing. The active focusing mainly uses laser triangulation. In other words, a laser spot, a camera and a laser form the triangle. The angle of a charge-coupled device (CCD) in the triangle can be determined by the position of the laser spot in the CCD screen. These conditions determine a triangle and the distance to the target object can be computed. This approach is fast in focusing, but the result of focusing is restricted by the surface characteristics of the target object. For example, the reflection characteristic of a metal surface can affect the focusing effect. On the other hand, the passive focusing method often uses two consecutive images to determine the focus planar position. Although this approach is less demanding on the equipment, the time to focus is longer because a large amount of images data must be processed. Currently, the requirement for repetitive focusing is less than 0.5 second each time. As such, the passive focusing method performs poorly in auto-focusing tracking operation.
The conventional auto-focusing systems are divided into two types. The first type is to utilize the Fourier transform in the filter theory to find the high frequency object in the image and define as a focus evaluation function, and then to search for the maximum focus value in the focus range. The theoretic base is that the focus area shows high frequency characteristics and the focus range is related to horizontal focus area. At present, there is a plurality of ways to define focus evaluation functions, such as, Tenengrad criterion, sum-modified-Laplacian (SML), sum-modulus-difference (SMD), frequency selective weighted median (FSWM) filter, and so on. In addition, quasi condition reasoning search is also applied to defining the focus evaluation function. These known methods all point to the two main factors in auto-focusing: high frequency characteristics and search rule.
The second type of conventional auto-focusing system is to utilize speckle characteristic inspection. By adding a set of laser source to the main optical path and shielding half speckle, a specially designed optical loop reflects the laser beam to a CCD sensor and the off-in-focus position can be determined by the position and the shape of the speckle.
The primary object of the present invention is to shorten the focusing time of the microscopic auto-focusing system. Through bevel-axial structure, the present invention disposes the image-capturing CCD at a proper tilt angle to a vertical plane so as to directly determine the optimal in-focus position on the object surface by different in-focus positions.
An embodiment of the present invention discloses a bevel-axial microscopic auto-focusing system, including an optical microscopic system, a charge-coupled device (CCD), an image-capturing card, a controller and a motor driver; wherein the optical microscopic system further including a light source, a first lens, a spectroscope, a second lens and a microscope objective, disposed in sequence from top down for observing an object; the microscope objective being for magnifying an image of the object; the light source emitting light, the emitted light travelling through the first lens, the spectroscope, the second lens and the microscope objective to reach and be reflected by the object; the reflected light travelling through the microscope objective, the second lens and the spectroscope; the reflected light being rotated 90° by the spectroscope and travelling to the CCD disposed laterally to a side of the spectroscope; the CCD being disposed in a bevel-axial manner of forming a tilt angle 0 between the surface of the CCD and a vertical axis; the controller using the image-capturing card to capture a microscopic image of the object through the bevel-axial CCD and controlling the motor driver to drive the microscope objective to provide focusing along the vertical axis to achieve auto-focusing.
Another embodiment of the present invention discloses a bevel-axial microscopic auto-focusing method, including: using a camera to capture a full-frame bevel-axial input image; using an image analysis technique to read information of the captured image and providing resulted grayscale strength information to a statistic analysis module to extract image statistic features, and performing probability function fitting; and performing estimation based on the feature parameters after fitting.
Below, exemplary embodiments will be described in detail with reference to accompanying drawings so as to be easily realized by a person having ordinary knowledge in the art. The inventive concept may be embodied in various forms without being limited to the exemplary embodiments set forth herein. Descriptions of well-known parts are omitted for clarity, and like reference numerals refer to like elements throughout.
It should be noted that the CCD 106 is preferably disposed in a manner to form a tilt angle θ between the surface of the CCD 106 and a vertical axis; and the preferred angle range is 10°-45°, such as, 20°. The CCD 106 provides information on different in-focus positions of the source image through the tilt angle θ between the surface and a vertical axis so as to adjust the distance along the vertical axis to determine the optimal in-focus position on the object surface.
In the instant embodiment, the statistic analysis module 220 further includes a statistic computing unit 221, an image evaluation function computing unit 222 and a probability function fitting unit 223. The statistic computing unit 221 performs statistic computation for the image strength of the blocks extracted in segments, such as, computing the mean, variance and maximum of the strength. Then, the image evaluation function computing unit 222 computes the image evaluation function of each segment block and substitutes the mean, variance and maximum of the strength into a designated image evaluation function, such as, FV=w1Im+w2Is+w3Imax, wherein Im is the statistic mean, Is is the variance, Imax is the maximum, and parameters w1, w2, w3 must be adjusted according to the use. Ideally, the FV curve is a Gaussian probability distribution curve, and the extreme values of the Gaussian curve are the in-focus position (IFP) of the image. Finally, FV curve is normalized and the probability function fitting unit 223 fits the curve.
Similarly, in the instant embodiment, the in-focus position estimation module 230 further includes a Kalman filter estimation unit 231 and an optimal in-focus position computing unit 232. The Kalman filter estimation unit 231 can eliminate the interference on the image characteristics caused by the external noise, and then the extreme positions of the mean ûm and variance ûs of Gaussian curve obtained in the Gaussian curve fitting are used and the optimal in-focus position computing unit 232 uses actual measurement residual to estimate the optimal in-focus position.
As such, the statistics, such as, the mean um and the variance us of the image evaluation function can be estimated. It should be noted that because the actual image-capturing may include considerable amount of noises, the in-focus position may be shifted. Therefore, the present invention combines the Kalman filter and uses the Gaussian curve fitting residual data res1, res2 to estimate ûm and ûs in-focus position.
The following uses an actual exemplar to describe the intermediate image and related computation in the bevel-axial microscopic auto-focusing method.
Then, according to the gradient changes in the horizontal direction, the statistics of the aforementioned mean Im, variance Is, maximum Imax of the gradient changes in an image area is computed. For example, an image area can be defined as a block of 80×480 pixels. Then, a proper weight is assigned respectively to the mean Im, variance Is, maximum Imax, and the FV estimation value is computed, such as, FV=0.5Im+0.4Is+0.1Imax. It should be noted that the weights can be used in the weight adjustment parameters of the panel focusing inspection.
In an ideal situation, the curve should be close to the FV curve theoretic values. Therefore, assume the FV is a Gaussian distribution. Based on the assumption, the center of the Gaussian curve is the in-focus position of the image. Therefore, the FV curve is first normalized and then fitting is performed.
Assume that the curve is a Gaussian function:
The goal is let the function y(x) and the observed value ŷ(x) have the minimum of δ, where
δ=minΣ[y−ŷ]2 (2)
To obtain y(x), the least square method is used to compute the residual u, and e. First, a partial derivation is performed on the equation of u, σ to obtain a matrix Z0 having fu, fσ.
Assume that the initial value of u is the center of mass of the image horizontal gradient and σ is the 1-e−1 search block (such as, 50 pixels), a matrix D can be determined as:
Modification matrix AA can be determined by equations (4), (5) to obtain the new values for u and σ as ũ and {tilde over (σ)}:
Repeat computing equations (4)-(7) until modification matrix ΔA is sufficiently small to obtain the closest fitting value y(x), i.e., to obtain the image in-focus position u. The result is shown in
As aforementioned, assume that FV curve is a Gaussian distribution and the in-focus position is estimated through Gaussian fitting. Therefore, the mean Im and the variance Is can be computed, and um and us can be obtained through Gaussian curve fitting to estimate the two estimated image in-focus positions:
û
m
=u
m, residual res1 (8)
û
s
=u
s, residual res2 (9)
The present invention must use the relation of ûm, ûs to obtain the IFP Kalman filter value. In the I of the present invention, ûm, ûs , are the peak value and the measured value, z ∈ R, and:
z=IIu+w (10)
wherein the system noise is:
The least square method is then applied to obtain the error function ε:
The differential on ε is 0,
As a result, the û is obtained as 0:
The final result is as shown in
In summary, the bevel-axial auto-focusing system disclosed in the embodiment of the present invention is a high-performance, high-precision and low-cost auto-focusing system, combining with image analysis, statistic analysis and estimation method as well the software/hardware interface control. The bevel-axial auto-focusing system of the present invention provides the following advantages: (1) using CCD camera as sensor input to avoid image ghosting interference with the captured image caused by the conventional laser speckle; (2) simple in design, directly applicable to existent inspection machines and low in cost compared to conventional speckle-based design; (3) providing full-frame image feature information and complete characteristic analysis; and (4) combining estimation method to increase correct in-focus positioning probability, minimizing image noise interference and more robust. Furthermore, the bevel-axial auto-focusing method of the present invention can further dispose multi-band laser source and introducing co-axial optical path for laser repair, laser welding, or performing fast precise alignment in semiconductor equipment.
An embodiment of the present invention discloses a bevel-axial microscopic auto-focusing system, including an optical microscopic system, a charge-coupled device (CCD), an image-capturing card, a controller and a motor driver; wherein the optical microscopic system further including a light source, a first lens, a spectroscope, a second lens and a microscope objective, disposed in sequence from top down for observing an object; the microscope objective being for magnifying an image of the object; the light source emitting light, the emitted light travelling through the first lens, the spectroscope, the second lens and the microscope objective to reach and be reflected by the object; the reflected light travelling through the microscope objective, the second lens and the spectroscope; the reflected light being rotated 90° by the spectroscope and travelling to the CCD disposed laterally to a side of the spectroscope; the CCD being disposed in a bevel-axial manner of forming a tilt angle θ between the surface of the CCD and a vertical axis; the controller using the image-capturing card to capture a microscopic image of the object through the bevel-axial CCD and controlling the motor driver to drive the microscope objective to provide focusing along the vertical axis to achieve auto-focusing.
Another embodiment of the present invention discloses a bevel-axial microscopic auto-focusing method, including: using a camera to capture a full-frame bevel-axial input image; using an image analysis technique to read information of the captured image and providing resulted grayscale strength information to a statistic analysis module to extract image statistic features, and performing probability function fitting; and performing estimation based on the feature parameters after fitting.
It will be apparent to those skilled in the art that various modifications and variations can be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.