Wafer imaging out-of-focus repairing method
By moving the standard sample and fitting the defocus radius relationship during wafer image inspection, the Wiener filter algorithm is used to repair the wafer image, which solves the blur problem caused by defocus during wafer inspection, improves detection accuracy and imaging quality, and reduces cost.
Patent Information
- Application Number
- CN202410910419.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-09
AI Technical Summary
In wafer image inspection, due to factors such as wafer stage tilt, wafer tilt, and uneven thickness, the imaging image is prone to defocus blur, affecting detection accuracy.
By moving the standard in the X-Y plane, taking multiple images and recording the distance between the camera and the standard in the Z direction, find the clearest image and the corresponding distance, calculate the defocus radius, and fit the relationship to repair the wafer image. , using Wiener filtering algorithm for defocused image repair.
It achieves defocus recovery of wafer imaging, improves imaging quality and detection accuracy, reduces resource waste, and does not require additional camera displacement components, resulting in low cost.
Abstract
Description
Technical Field
[0001] The invention belongs to the field of wafer detection technology, relates to wafer imaging repair, and specifically relates to a wafer imaging defocus repair method. Background Art
[0002] Wafer image inspection is a key link in semiconductor manufacturing and can be used to identify various defects that may occur in the wafer manufacturing process, such as particles, scratches, lattice dislocations, etc. Image inspection technology allows these tiny defects to be detected without contacting the wafer, thereby improving the overall quality and performance of the product.
[0003] Since the size of the features to be inspected on the wafer is extremely small, in wafer image inspection, it is usually necessary to use an imaging system with a large magnification to get close to the wafer for imaging in order to observe the details of the microstructure. Due to the short shooting distance and the small depth of field range of the imaging system with a large magnification, the position of the wafer surface to be photographed needs to be within a small range.
[0004] In the corresponding wafer image inspection equipment, due to factors such as the tilt of the wafer stage, the tilt of the wafer, the uneven thickness of the wafer itself, and slight deformation of the wafer caused by being fixed, the photographed surface of the wafer is often at least partially outside the depth of field of the imaging system, while the position of the camera itself is usually fixed, which will cause the imaging image to be out of focus and blur, interfering with wafer inspection.
[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the invention and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Summary of the invention
[0006] In view of the defect of the prior art that the image is easily blurred due to defocus, the present invention provides a wafer imaging defocus repair method, which comprises: moving the standard sample in the XY plane, taking n images of the standard sample at different positions, and obtaining the images Image n And record the distance Dis between the corresponding camera and the standard sample in the Z direction n ; Find the clearest image Image a And the corresponding Dis a ; For each image Image n , calculate the clarity of the defocused image after restoration is closest to Image a The defocus radius R n , calculate ΔDis n =Dis a -Dis n , fitting R n and ΔDisn To obtain a first mapping relationship; move the wafer to a preset position and take an image of the wafer Image b And record the corresponding distance Dis b , calculate ΔDis b =Dis a -Dis b , according to ΔDis b , the first mapping relationship obtains the corresponding defocus radius R b , using R b Image b Restoration is performed to obtain the wafer imaging image after the defocused image is repaired.
[0007] According to another aspect of the embodiment of the present application, feature points are set on the standard sample, and each image Image n Contains at least 3 feature points.
[0008] According to another aspect of the embodiment of the present application, each image Image n There are at least three non-collinear feature points.
[0009] According to another aspect of the embodiment of the present application, the defocus radius R is obtained by the following method: n : Estimated defocus radius R nrec , using R nrec Perform defocused image repair to obtain the repaired image Image nrec , compared with Image nrec With Image a When the difference between the two sharpnesses meets the preset conditions, the corresponding defocus radius R nrec As the defocus radius R n .
[0010] According to another aspect of the embodiment of the present application, the image is compared in the following manner: nrec With Image a Clarity: Image nrec 、Image a Perform edge detection and calculate the mean gradient of the image in turn to obtain Image nrec 、Image a The corresponding gradient mean G nrec , G a , calculate G nrec With G a When the square error value is less than the preset threshold, it is considered that the clarity difference meets the preset conditions.
[0011] According to another aspect of the embodiment of the present application, a fixed step size is used to traverse within a preset range to obtain an estimated defocus radius Rnrec .
[0012] According to another aspect of an embodiment of the present application, a Wiener filtering algorithm is used to perform defocused image restoration.
[0013] According to another aspect of the embodiment of the present application, the method further includes: moving the wafer to a plurality of preset positions and taking a plurality of wafer images Image b , respectively calculate and obtain the wafer imaging image after the defocused image is repaired.
[0014] According to another aspect of the embodiment of the present application, when shooting an image Image n When the image is taken, an angle is formed between the photographed surface of the standard sample and the XY plane.
[0015] According to another aspect of the embodiment of the present application, the angle between the photographed surface of the standard sample and the XY plane is not less than the angle between the photographed surface of the wafer and the XY plane.
[0016] The present invention has at least the following beneficial effects: the relationship between the defocus radius parameter involved in image repair and the distance between the camera and the object can be obtained through one detection, and when the wafer is subsequently imaged, a better defocus repair effect can be obtained only according to the distance relationship between the camera and the object, thereby realizing defocus restoration of wafer imaging; there is no need to additionally set up a displacement component of the camera, and the implementation is convenient and low-cost; there is no need to traverse and analyze each wafer again, which not only improves the utilization rate of the image and reduces the waste of resources caused by re-shooting, but also can significantly improve the imaging quality and detection accuracy. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0018] The present invention provides a defocus repair method for a defocused wafer image, aiming to restore the image clarity of the wafer through precise control and calculation, and to optimize the imaging quality of the image by effectively determining and applying the defocus radius.
[0019] First, the relationship between the defocus radius and the distance between the camera and the subject is obtained to find the optimal defocus radius parameter and perform image restoration on the image. Specifically, the standard sample is moved in the XY plane, and n images of the standard sample are taken at different positions to obtain the images Image n And record the distance Dis between the corresponding camera and the standard sample in the Z direction n During this process, the position of the camera remains unchanged, especially the Z-axis position of the camera remains unchanged.
[0020] The standard sample can be a specific object used to obtain the relationship between the defocus radius and the distance between the camera and the subject, or it can be a wafer. More specifically, an object with a specific pattern drawn on the subject surface can be used, and the camera can capture the specific pattern for further image analysis; the specific pattern can be a point, a straight line at an angle, or a specific pattern. Specifically, when feature points are set on the standard sample, the density of the feature points can be set so that each image Image n contains at least 3 feature points. In some cases, in order to further clarify the image Image n The actual clarity of each image can be n There are at least three non-collinear feature points.
[0021] When a wafer is used as a standard sample, there needs to be observable features on the wafer, such as the separation line of the grains, the structure of the grains themselves, etc. When a non-wafer object is used as a standard sample, in order to make the application scope of the method of the present invention wider, the size of the standard sample can be matched with the size of the wafer, for example, the size of the standard sample can be the same as some commonly used wafer sizes, such as 2 inches, 3 inches, 4 inches, ..., 18 inches, etc.; the size of the standard sample can also be larger than the size of the wafer, for example, when performing image detection on an 18-inch wafer, the size of the standard sample can be slightly larger than 18 inches; other shapes of standard samples can also be used, for example, square, round or other shapes of standard samples.
[0022] For the distance Dis between the camera and the standard in the Z direction n , can be measured by a distance measuring device. Specifically, a distance measuring device can be set near the camera, and the distance between the standard sample or wafer and the distance measuring device can be detected by the distance measuring device, and then the distance between the standard sample or wafer and the camera can be calculated based on the positional relationship between the distance measuring device and the camera.
[0023] After getting multiple images Image n And the corresponding Dis n Then, find the clearest image Image a And the corresponding Dis a The image clarity can be judged by edge detection, frequency domain analysis, statistical methods, or even subjective evaluation. As a better quantifiable implementation method, edge detection can be used for analysis. More specifically, the clarity can be quantified by gradient analysis. As a more convenient implementation method, images with better clarity can be selected by manual subjective evaluation.
[0024] Select the clearest image a Then, for a single image Image n , use multiple defocus radii as input parameters of the defocus repair model to perform defocus repair. When the image with the sharpness closest to the aforementioned Image is obtained a Then, the corresponding defocus radius parameter R is obtained. n , as the optimal parameter for defocus restoration of the image. Perform this step on multiple images to obtain each image Image n The corresponding defocus radius R n . Combine each image Image n The corresponding Dis n , calculate the distance Dis between each image and the clearest image n The difference between the two, that is, can be calculated by ΔDis n =Dis a -Dis n to quantify the difference. Then, fitting R n and ΔDis n To obtain the first mapping relationship.
[0025] The first mapping relationship mainly refers to the mapping between the change in the distance between the photographed surface and the camera and the parameters required for the optimal defocus repair model. For the defocus repair model, the defocus radius is the core parameter, and the defocus radius can be used to construct the corresponding defocus repair model. Specifically, the defocus repair model can usually use Wiener filtering, and accordingly, the point spread function can be constructed using the defocus radius to control the defocus repair effect of the Wiener filtering algorithm, so as to use the Wiener filtering algorithm for defocus repair.
[0026] Then, the wafer is photographed and the defocus of the image is repaired using the aforementioned model. Specifically, the wafer is moved to a preset position and an image of the wafer is photographed. b And record the corresponding distance Dis b The preset position can be the same as the position when the standard sample is photographed, or it can be a preset position set according to the detection needs. Usually, there is at least one preset position. When there are multiple preset positions, the setting of the preset position does not need to refer to the position when the image of the standard sample is photographed. b And the corresponding Dis b Then, calculate ΔDis b =Dis a -Dis b , according to ΔDis b , the first mapping relationship obtains the corresponding defocus radius R b , using R bImage b Restoration is performed to obtain the wafer imaging image after the defocused image is repaired.
[0027] Similarly, in the Image b When performing defocus repair, the defocus repair model can usually use Wiener filtering. Accordingly, the point spread function can be constructed using the defocus radius to control the defocus repair effect of the Wiener filtering algorithm, so as to use the Wiener filtering algorithm for defocus repair.
[0028] In the above process, the relationship between the defocus radius parameter involved in image repair and the distance between the camera and the subject can be obtained through a single detection. When the wafer is subsequently imaged, a better defocus repair effect can be obtained based on the distance relationship between the camera and the subject, thereby realizing the defocus restoration of wafer imaging; there is no need to set up additional camera displacement components, and a better imaging effect can be achieved by directly using existing wafer imaging equipment, which is easy to implement and low-cost; there is no need to traverse and analyze each wafer again, which not only improves the utilization rate of the image and reduces the waste of resources caused by re-shooting, but also can significantly improve the imaging quality and detection accuracy.
[0029] For a single image Image n Calculate the optimal defocus radius parameter R n Specifically, the defocus radius R can be obtained by the following method: n :For a single image Image n , first estimate a defocus radius R nrec1 , using R nrec1 Image n Perform defocused image repair to obtain the repaired image Image nrec1 ;CompareImage nrec1 With Image a When the difference between the two sharpnesses is large, that is, the image restoration effect is not good enough, adjust the defocus radius to R nrec2 , using R nrec2 Image n Perform defocused image repair to obtain the repaired image Image nrec2 ; Again the repaired image Image nrec2 With Image a Compare clarity; repeat several times until the restored image is consistent with Image a When the clarity difference meets the preset conditions, the corresponding defocus radius R nrec As the defocus radius R n .
[0030] In estimating the defocus radius R nrecUnder some conditions, it can be estimated based on experience; in addition, certain rules can be set to estimate the defocus radius R nrec The feasible range of values is traversed. For the traversal method, when traversing discrete points in a continuous range, at least the traversal step size can be set according to the time required for the operation or the operation efficiency; when the set of possible values to be traversed is pre-set, it can be traversed in sequence. During the traversal process, when the difference in clarity after restoration meets the preset conditions, the traversal can be terminated directly, or the traversal can be continued to find a better defocus radius.
[0031] In contrast Image nrec With Image a When evaluating the clarity of an image, it can be judged by manual evaluation or by quantitative analysis. When evaluating by quantitative analysis, the same image clarity analysis algorithm can be used to analyze the image clarity. nrec 、Image a The clarity value of the two images can be compared to obtain the clarity difference between the two images. As a feasible implementation, the image nrec 、Image a Perform edge detection and calculate the mean gradient of the image to obtain Image nrec 、Image a The corresponding gradient mean G nrec , G a , compared with the mean gradient G nrec , G a When the difference is within the preset range, the clarity of the two images is considered to be close and meets the corresponding conditions. Specifically, G nrec With G a When the square error value is less than a preset threshold, it is considered that the clarity difference meets the preset condition. The preset threshold can be set as needed. For example, when the clarity difference of the image after image restoration needs to be smaller, a smaller preset threshold is set; when a faster operation speed is required, a relatively larger preset threshold can be set.
[0032] In addition, it is also possible to further capture images of multiple positions of the wafer, and then form a larger range of images of the wafer by combining multiple images. Specifically, the wafer can be moved to multiple preset positions and multiple wafer images can be captured. b , respectively calculate and obtain wafer imaging images after defocus image repair, and then these images can be used for further combination and calculation.
[0033] According to the above content, one of the key points of the present invention is to obtain the first mapping relationship. n , so that the first mapping relationship can be kept valid in a larger range. n When the object is photographed, make the angle between the photographed surface of the standard sample and the XY plane to increase Dis n range of change.
[0034] Accordingly, in order to ensure the validity of the first mapping relationship, the angle between the photographed surface of the standard sample and the XY plane is not less than the angle between the photographed surface of the wafer and the XY plane, so that the Dis b The range is within the Dis corresponding to the photographed surface of the standard sample. n Within the range.
[0035] The content of the present invention is further explained below through a feasible implementation process.
[0036] S0: A calibration plate with a size and shape close to that of the wafer to be photographed is placed on a translation stage as a standard sample, and the standard sample is slightly tilted to form an angle between its photographed surface and the XY plane; feature points are arranged on the calibration plate, and the feature points have a certain density, so that there are at least 3 non-collinear feature points in each photographed area of the camera; the translation stage can drive the calibration plate to move roughly along the XY plane; the distance sensor and the camera are fixedly arranged, and the distance sensor detects the distance between the imaging area of the camera and the distance sensor, and then calculates the distance between the imaging areas of the cameras according to the positional relationship between the distance sensor and the camera, so as to ensure that the distance between the camera and the standard sample in the Z direction can be obtained.
[0037] S1: Referring to the shape of the standard sample, at least 9 preset positions to be photographed are arranged in an array within the projection area of the photographed surface of the standard sample; the standard sample is driven to move by the translation stage so that the imaging area of the camera is located at the aforementioned preset positions, and images Image1 to Image9 are photographed respectively, and the corresponding distances Dis1 to Dis9 between the camera and the standard sample in the Z direction are recorded.
[0038] S2: Use Sobel operator to image n Perform edge detection and then calculate Image n The mean gradient G n ; Select the gradient mean G n The largest image is used as the image with the best clarity, thus obtaining the clearest image Image a And the corresponding Dis a , G a .
[0039] S3: For images Image1 to Image9, set a preset threshold A and perform the following operations respectively to obtain R1 to R9: S301: Estimating the defocus radius R nrec ; S302: Using the defocus radius R nrec Construct a point spread function and use it to control the Wiener filter function on the image Image n Perform defocus repair to get the image Image nrec ; S303: Use Sobel operator to image nrec Perform edge detection and then calculate Image nrec The mean gradient G nrec ; S304: Calculate G nrec With G a The square error value is the square of the difference; when the square error value is less than the preset threshold A, the error is calculated by R nrec As R n ; When the square error value is not less than the preset threshold A, adjust the defocus radius R nrec , perform S302-S304 again.
[0040] S4: Based on Dis1 to Dis9, and Dis a , calculate ΔDis respectively n =Dis a -Dis n , get ΔDis1 to ΔDis9, use R1 to R9, ΔDis1 to ΔDis9, and obtain R by the least squares estimation algorithm n and ΔDis n The mapping relationship is taken as the first mapping relationship.
[0041] S5: Replace the standard sample with the wafer to be photographed.
[0042] S6: Drive the wafer to move by the translation stage so that an area of the wafer to be photographed is located within the imaging area of the camera, and use the camera to capture the image Image b , record the distance Dis between the corresponding camera and the wafer in the Z direction b .
[0043] S7: Calculation of ΔDis b =Dis a -Dis b , ΔDis b Input the first mapping relationship, and the first mapping relationship outputs the corresponding defocus radius R b, using the defocus radius R b Construct a point spread function and use it to control the Wiener filter function on the image Image b Perform defocus repair to obtain the repaired image Image b .
[0044] Through the above process, the defocus repair of the wafer imaging image is completed.
[0045] In addition, when the first mapping relationship already exists, S5-S7 can be performed separately to further save steps and improve efficiency.
[0046] In addition, you can further set S8: perform S6-S7 on this and use multiple images b Stitch together an image of a larger wafer area.
[0047] The above shows and describes the basic principles, main features and advantages of the present invention, so the above is only an embodiment of the present invention. It should be understood by those skilled in the art that the present invention is not limited by the above embodiments, and the above embodiments and descriptions only describe the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention also includes various equivalent changes and improvements, which will fall within the scope of the present invention to be protected.
Claims
1. A wafer imaging defocus repair method, characterized in that: include: Move the standard sample in the XY plane, take n images of the standard sample at different positions, and obtain the images Image n And record the distance Dis between the corresponding camera and the standard sample in the Z direction n ; Find the clearest image a And the corresponding Dis a ; For each image Image n , calculate the clarity of the defocused image after restoration is closest to Image a The defocus radius R n , calculate ΔDis n =Dis a -Dis n , fitting R n and ΔDis n To obtain a first mapping relationship; Move the wafer to the preset position and take an image of the wafer. b And record the corresponding distance Dis b , calculate ΔDis b =Dis a -Dis b , according to ΔDis b , the first mapping relationship obtains the corresponding defocus radius R b , using R b Image b Restoration is performed to obtain the wafer imaging image after the defocused image is repaired.
2. A wafer imaging defocus repair method as claimed in claim 1, characterized in that: There are feature points on the standard sample, and each image n Contains at least 3 feature points.
3. A wafer imaging defocus repair method as claimed in claim 2, characterized in that: Each image n There are at least three non-collinear feature points.
4. A wafer imaging defocus repair method as claimed in claim 1, characterized in that: The defocus radius R is obtained by n : Estimated defocus radius R nrec , using R nrec Perform defocused image repair to obtain the repaired image Image nrec , compared with Image nrec With Image a When the difference between the two sharpnesses meets the preset conditions, the corresponding defocus radius R nrec As the defocus radius R n .
5. A wafer imaging defocus repair method as claimed in claim 4, characterized in that: Compare Images by nrec With Image a Clarity: Image nrec 、Image a Perform edge detection and calculate the mean gradient of the image in turn to obtain Image nrec 、Image a The corresponding gradient mean G nrec , G a , calculate G nrec With G a When the square error value is less than the preset threshold, it is considered that the clarity difference meets the preset conditions.
6. A wafer imaging defocus repair method as claimed in claim 4, characterized in that: Traverse the preset range with a fixed step size to obtain the estimated defocus radius R nrec .
7. A wafer imaging defocus repair method according to any one of claims 1 or 4, characterized in that: Defocused image restoration using Wiener filtering algorithm.
8. A wafer imaging defocus repair method as claimed in claim 1, characterized in that: The method further includes: moving the wafer to a plurality of preset positions and taking a plurality of wafer images Image b , respectively calculate and obtain the wafer imaging image after the defocused image is repaired.
9. A wafer imaging defocus repair method as claimed in claim 1, characterized in that: In the image capture n When the image is taken, an angle is formed between the photographed surface of the standard sample and the XY plane.
10. A wafer imaging defocus repair method as claimed in claim 9, characterized in that: The angle between the photographed surface of the standard sample and the XY plane is not less than the angle between the photographed surface of the wafer and the XY plane.
Citation Information
Patent Citations
Method for repairing defocusing of imaging blocks on edge of wafer
CN102129174A
Image de-blurring method and image de-blurring device
CN104331871A
Automatic focusing microscope based on eccentric beam method and focusing method thereof
CN104932092A
Fuzzy image integrated processing method and system
CN108305230A
Blind recovery method of defocused QR code image
CN108765305A
Cited By
Image processing method, optical inspection system, and electronic device
WO2026194276A1
