Sample image processing method and system

By performing cropping and splicing processing in sample image processing, the real-time image processing and memory occupation problems in semiconductor manufacturing are solved, and more efficient data processing and analysis are achieved.

CN118799256APending Publication Date: 2024-10-18SHENZHEN PLANCK SEMICON TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410683646.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the semiconductor manufacturing process, with the improvement of detection accuracy requirements, the real-time data processing and computer memory resource occupation problems in sample defect detection have become more difficult, especially during image splicing and shearing operations.

Method used

By obtaining images of different positions of the sample to be tested, performing cropping and splicing processing, the complete image and partial image of the unit to be tested are separated, reducing the processing of invalid areas, freeing up storage space, and improving the real-time performance of image processing.

Benefits of technology

It improves the real-time and accuracy of image processing, reduces the occupation of computer memory resources, and ensures more efficient data processing and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799256A_ABST
    Figure CN118799256A_ABST
Patent Text Reader

Abstract

The invention relates to an image processing method of a sample, the sample at least comprises a first to-be-detected unit, a second to-be-detected unit and a third to-be-detected unit, and the method comprises the following steps: obtaining a first image of a first to-be-detected position of the sample, the first image comprising a complete image of the first to-be-detected unit and an image of at least part of the third to-be-detected unit; cutting the first image to obtain a first complete image of a first to-be-detected unit and a first partial image of a third to-be-detected unit; acquiring a second image of a second to-be-detected position of the sample, wherein the second image comprises a complete image of a second to-be-detected unit and an image of at least part of a third to-be-detected unit; cutting the second image to obtain a second cut image, and obtaining a second complete image of a second unit to be detected and a second partial image of a third unit to be detected; and after the clipping, splicing the first part image and the second part image to obtain a spliced image. According to the invention, the occupation of computer memory resources can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of sample image processing, and in particular to a sample image processing method and system. Background Art

[0002] Sample defect detection is a crucial part of the semiconductor manufacturing process. Its task is to timely and accurately identify and locate various defects during the sample manufacturing process to ensure the quality and performance of the final chip. With the continuous advancement of semiconductor technology and the increase in integration, the number and types of defects on the samples have become more diverse and smaller, and the requirements for the accuracy of defect detection are getting higher and higher.

[0003] In order to meet the higher detection accuracy requirements, the resolution and sensitivity of the equipment detection system must be improved accordingly. When the size of the detected object is the same, higher resolution will bring more data to be processed. When it comes to operations such as splicing and cutting of raw image data, the real-time data processing will become more and more difficult, and the requirements for computer memory capacity will become higher and higher. Summary of the invention

[0004] The main purpose of the present invention is to provide a sample image processing method, system and equipment, so that when the data processing system needs to obtain the image of the unit to be tested after splicing, cutting and other operations on the image, it provides better real-time performance of sample image processing and effectively reduces the occupancy of computer memory resources.

[0005] To achieve the above object, the present invention provides an image processing method of a sample, wherein the sample at least includes a first unit to be tested, a second unit to be tested, and a third unit to be tested, and the method includes: Acquire a first image of a first position to be tested of the sample, wherein the first image includes a complete image of the first unit to be tested and an image of at least a portion of the third unit to be tested; Cropping the first image to obtain a first complete image of the first unit to be tested and a first partial image of the third unit to be tested; Acquire a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; Cropping the second image to obtain a second cropped image, and obtaining a second complete image of the second unit under test and a second partial image of the third unit under test; After the clipping, the first partial image and the second partial image are spliced ​​to obtain a spliced ​​image.

[0006] Further, the sample also includes a fourth unit and a fifth unit; Acquire a fourth image of a third position to be tested of the sample, wherein the fourth image includes a complete image of the fourth unit to be tested and an image of at least a portion of the third unit to be tested; trimming the fourth image to obtain a fourth complete image of the fourth unit under test and a third partial image of the third unit under test; Acquire a fifth image of a fourth position to be tested of the sample, wherein the first image includes a complete image of the fourth unit to be tested and an image of at least a portion of the third unit to be tested; trimming the fourth image to obtain a fifth complete image of the fourth unit under test and a fourth partial image of the third unit under test; The stitching process is further used to stitch the third partial image and the fourth partial image to obtain the stitched image.

[0007] Furthermore, the first image and the second image are acquired by an imaging system; the imaging system has an imaging coordinate system; before the step of acquiring the first image of the first position to be measured of the sample, the method further includes: Acquire a first position coordinate of each unit to be tested in an imaging coordinate system, wherein each unit to be tested includes at least a first unit to be tested and / or a second unit to be tested; The step of acquiring a first image of a first position to be tested of the sample includes: using the imaging system to image the first position to be tested according to the first position coordinates of the first position to be tested, and acquiring a first image; the step of acquiring a second image of a second position to be tested of the sample includes: using the imaging system to image the second position to be tested according to the first position coordinates of the second position to be tested, and acquiring a second image.

[0008] Further, obtaining the first position coordinates of each unit to be tested in the imaging coordinate system includes: aligning the sample through the alignment system to obtain the second position coordinates of the sample in the alignment coordinate system; obtaining the second position coordinates of each position to be tested on the sample in the alignment system according to the second position coordinates of the sample; According to the second position coordinates of each of the positions to be measured on the sample and a first preset conversion relationship between the alignment coordinate system and the imaging coordinates, the first position coordinates of each of the positions to be measured on the sample are obtained, wherein each of the positions to be measured includes at least the first position to be measured and the second position to be measured.

[0009] Furthermore, the method further comprises: obtaining a clipping position of the image of each unit to be tested in a clipping coordinate system; In the step of cropping the image of each unit under test, the image is cropped according to the first cropping position; each unit under test includes at least the third unit under test, and the first unit under test and / or the second unit under test.

[0010] Further, obtaining the clipping position of the image of each unit under test in the clipping coordinate system includes: obtaining a first clipping position of the image of the unit under test in the clipping coordinate system according to a second preset conversion relationship between the clipping coordinate system and the imaging coordinate system.

[0011] Further, cropping the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test includes: cropping the first image to remove the image portion other than the first unit under test and the third unit under test, and separating the first complete image from the first partial image; The second image is cropped to obtain a second complete image of the second unit under test and a second partial image of the third unit under test, including: cropping the second image to remove the image portion other than the second unit under test and the third unit under test, and separating the second complete image from the second partial image.

[0012] Furthermore, the adjacent partial images of the third unit under test have the same portion, and the adjacent partial images at least include the first partial image and the second partial image. The stitching process includes: moving adjacent partial images relatively, obtaining the similarity of the adjacent partial images during the movement; obtaining the relative position where the similarity is maximum or reaches the maximum value, so as to stitch the adjacent partial images; Alternatively, there are multiple identical identifiable points in adjacent partial images; the stitching process includes: searching for each pixel point of the adjacent partial images respectively, and obtaining the identifiable points in the adjacent partial images respectively; making the identical identifiable points in the adjacent partial images overlap correspondingly, so as to stitch the adjacent partial images.

[0013] Furthermore, the method also includes: performing a first detection process on the first complete image to obtain information to be detected in the first complete image; performing a second detection process on the first complete image to obtain information to be detected in the first complete image; and performing parallel processing of two or more of the first detection process, the second detection process, and the stitching process.

[0014] The present invention also provides a sample image processing system, which is applied to any of the above sample image processing methods, comprising: An acquisition module, the acquisition module is used to acquire a first image of a first position to be tested of the sample, the first image including a complete image of the first unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is also used to acquire a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; A cropping module, wherein the cropping module is used to crop the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test; The cropping module is further used to crop the second image to obtain a second cropped image, and obtain a second complete image of the second unit under test and a second partial image of the third unit under test; A processing module is used for splicing the first partial image and the second partial image to obtain a spliced ​​image after the clipping. Furthermore, it also includes: The acquisition module is used to acquire a fourth image of a third position to be tested of the sample, wherein the fourth image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is further used to acquire a fifth image of a fourth position to be tested of the sample, wherein the first image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The cropping module is used to crop the fourth image to obtain a fourth complete image of the fourth unit under test and a third partial image of the third unit under test; The cropping module is further used to crop the fourth image to obtain a fifth complete image of the fourth unit under test and a fourth partial image of the third unit under test; The processing module is further configured to stitch the third partial image and the fourth partial image together to obtain the stitched image.

[0015] Furthermore, the processing module further includes a separation module, which is used to crop the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test, including: cropping the first image to remove the image portion other than the first unit under test and the third unit under test, and separating the first complete image from the first partial image; The separation module is also used to crop the second image to obtain a second complete image of the second unit under test and a second partial image of the third unit under test, including: cropping the second image to remove the image portion outside the second unit under test and the third unit under test, and separating the second complete image from the second partial image.

[0016] Furthermore, it also includes a detection module, which is used to perform a first detection process on the first complete image to obtain information to be detected in the first complete image; perform a second detection process on the first complete image to obtain information to be detected in the first complete image; and perform two or more of the first detection process, the second detection process, and the stitching process in parallel.

[0017] The present invention provides a sample image processing method, system and device, which have the following beneficial effects: In the technical solution of the present application, before the first partial image and the second partial image are spliced ​​together, the first image and the second image are detected, and the partial image of the third unit to be tested is separated from the complete image. In this way, the pixels of the spliced ​​image can be reduced during the splicing process, thereby improving the running speed.

[0018] Furthermore, the first image is cropped to remove the image portion outside the first unit to be tested and the third unit to be tested, and the second image is cropped to remove the image portion outside the second unit to be tested and the third unit to be tested. This can release the image of the invalid area in the memory and obtain the required partial image of the third unit to be tested. After the partial image of the third unit to be tested is obtained, the valid area is spliced ​​to obtain the required image.

[0019] Furthermore, by obtaining the clipping coordinates of each unit to be tested in the clipping coordinate system, the position of each unit to be tested can be accurately obtained, so that the image of each unit to be tested can be accurately clipped and the image outside the unit to be tested can be removed, which can reduce the processing of invalid images, thereby freeing up storage space and improving speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of an image processing method of a sample of the present invention; Figure 2 is a sample coordinate diagram of an image processing method of a sample of the present invention; Figure 3 It is a sample structure diagram of an image processing method of a sample of the present invention; Figure 4 It is a local imaging schematic diagram of a sample image processing method of the present invention; Figure 5 This is the second local imaging schematic diagram of the image processing method of a sample of the present invention.

[0021] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0023] The present invention is further described below in conjunction with the accompanying drawings and specific implementation methods.

[0024] See attached Figure 1The present invention provides a sample image processing method, comprising: Step S1: Acquire a first image of a first position to be tested of the sample, wherein the first image includes a complete image of the first unit to be tested and an image of at least a portion of the third unit to be tested; Step S2: cropping the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test; Step S3: acquiring a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; Step S4: cropping the second image to obtain a second cropped image, and obtaining a second complete image of the second unit under test and a second partial image of the third unit under test; Step S5: After cropping, the first partial image and the second partial image are spliced ​​to obtain a spliced ​​image.

[0025] The present invention obtains complete images of the first and second positions to be tested of the sample. This helps to obtain a full-view image including the unit to be tested and the surrounding environment of the unit to be tested. Through steps S2 and S4, the first image and the second image can be clipped to separate the image of the unit to be tested, and help to extract the unit to be tested from the entire image for subsequent analysis and processing. In addition to the complete image, at least part of the image of the third unit to be tested can also be obtained to help obtain other areas or reference information related to the unit to be tested, providing more context for subsequent image processing and analysis. The first part of the image and the second part of the image are spliced ​​to generate a spliced ​​image, which helps to merge the images of different parts into a complete image and provide more comprehensive and continuous visual information. At the same time, the present invention can provide a better real-time image processing of the sample when the data processing system needs to obtain the image of the unit to be tested after splicing, shearing and other operations on the image, and effectively reduce the occupation of computer memory resources.

[0026] In this embodiment, the sample also includes a fourth unit to be tested and a fifth unit to be tested; in other embodiments, the sample may include only one of the fourth unit to be tested and the fifth unit to be tested, or may not include the fourth unit and the fifth unit, or the number of units to be tested may be greater than 5.

[0027] The image processing method also includes: obtaining a fourth image of the third position to be tested of the sample, the fourth image including a complete image of the fourth unit to be tested and at least a partial image of the third unit to be tested; cropping the fourth image to obtain a fourth complete image of the fourth unit to be tested and a third partial image of the third unit to be tested; obtaining a fifth image of the fourth position to be tested of the sample, the first image including a complete image of the fourth unit to be tested and at least a partial image of the third unit to be tested; cropping the fourth image to obtain a fifth complete image of the fourth unit to be tested and a fourth partial image of the third unit to be tested.

[0028] In this embodiment, the stitched image further includes a third partial image and a fourth partial image. The stitching process is also used to stitch the third partial image and the fourth partial image to obtain a stitched image. Specifically, in this embodiment, the stitching process includes: stitching the first partial image, the second partial image, the third partial image, and the fourth partial image to obtain a stitched image.

[0029] This embodiment can obtain more comprehensive sample information by acquiring images of different positions to be tested of the sample, including complete images and partial images, thereby improving the accuracy of image processing and analysis. By cropping the image, the complete image and partial image of the unit to be tested are extracted, which is helpful for subsequent image processing and analysis. Finally, by splicing the first partial image, the second partial image, the third partial image and the fourth partial image, a spliced ​​image is obtained, which provides more comprehensive information and is helpful for further analysis and identification.

[0030] Refer to the attached Figure 2-3 In this embodiment, the first image and the second image are acquired by an imaging system; the imaging system has an imaging coordinate system; before the step of acquiring the first image of the first test position of the sample, it includes: acquiring the first position coordinates of each test unit in the imaging coordinate system, and each test unit includes at least the first test unit and / or the second test unit.

[0031] Obtaining the first position coordinates of each unit to be tested in an imaging coordinate system, comprising: aligning a sample (Q1) through an alignment system to obtain the second position coordinates of the sample (Q1) in the alignment coordinate system; obtaining the second position coordinates of each position to be tested on the sample (Q1) in the alignment system according to the second position coordinates of the sample (Q1); obtaining the second position coordinates of each position to be tested on the sample (Q1) in the alignment system according to the second position coordinates of the sample (Q1); obtaining the first position coordinates of each position to be tested on the sample (Q1) according to the second position coordinates of each position to be tested on the sample (Q1) and a first preset conversion relationship between the alignment coordinate system and the imaging coordinate system, wherein each position to be tested includes at least the first position to be tested and the second position to be tested.

[0032] The comparison system includes a sample carrier for carrying a sample (Q1). Before the sample (Q1) is aligned by the alignment system to obtain a second position coordinate of the sample (Q1) in the alignment coordinate system, the method further includes: placing the sample (Q1) on the sample carrier.

[0033] The second position coordinates of the sample (Q1) in the alignment coordinate system are the second position coordinates of the center of the sample in the alignment coordinate system.

[0034] It should be noted that, in this embodiment, the first position coordinates of the unit under test are the first position coordinates of a specific point on the unit under test, and the specific point is the center of the unit under test or an identifiable point on the unit under test.

[0035] The sample (Q1) is aligned by the alignment system to obtain the second position coordinate of the sample (Q1) in the alignment coordinate system, including: obtaining the edge coordinate of the edge of the sample (Q1) in the alignment coordinate system by the alignment coordinate system; and obtaining the center coordinate of the center of the sample (Q1) in the alignment coordinate system according to the edge coordinate. The coordinate value of any point to be measured in the alignment coordinate system represents the coordinate value of the relative movement of the sample stage and the alignment system along the coordinate axis when the center of the field of view of the alignment system is aligned with the point to be measured.

[0036] In other embodiments of the present invention, the alignment system is further used to adjust the position of the sample (Q1) according to the center coordinates so that the center of the sample coincides with the center of the carrier platform.

[0037] In this embodiment, the sample (Q1) includes a sample coordinate system, the sample coordinates have the center of the sample (Q1) as the origin, and the surface of the sample to be measured is the coordinate plane. The method also includes: obtaining a sample coordinate conversion relationship between the sample coordinate system and the alignment coordinate system according to the center coordinates of the sample center in the alignment coordinate system and the coordinates of the sample center in the sample coordinate system.

[0038] According to the second position coordinates of the sample (Q1), the second position coordinates of each position to be measured on the sample (Q1) under the alignment system are obtained, including: according to a coordinate conversion relationship, the coordinates of each position to be measured on the sample (Q1) in the sample coordinate system are converted into the second position coordinates of the position to be measured under the alignment system.

[0039] In this embodiment, a first image and a second image are acquired through an imaging system; the imaging system has an imaging coordinate system; before the step of acquiring a first image of a first position to be measured of the sample (Q1), the step also includes: acquiring the first position coordinates of each position to be measured on the sample (Q1) according to the second position coordinates of each position to be measured on the sample (Q1) and a first preset conversion relationship between the alignment coordinate system and the imaging coordinates, wherein each position to be measured includes at least a first position to be measured and a second position to be measured.

[0040] In this embodiment, the method further includes: calibrating the imaging coordinate system through a calibration plate so that the imaging coordinate system and the alignment coordinate system have a first preset conversion relationship.

[0041] The imaging coordinate system takes the center of the sample stage as the center point, and the two vertical lines passing through the center of the sample stage as the coordinate axes. That is, the coordinate value of any point to be measured in the imaging coordinate system represents the coordinate value of the relative movement of the sample stage and the imaging coordinate system along the coordinate axis when the center of the imaging system's field of view is aligned with the point to be measured.

[0042] In this embodiment, the preset conversion relationship is a vector representing the relative displacement between the alignment system and the imaging system. In other embodiments, the center of the field of view of the alignment system and the imaging system coincides, and the preset conversion relationship is a unit matrix.

[0043] Specifically, in this embodiment, the positions of the imaging system and the alignment system are fixed, and the imaging system is used to image multiple positions to be tested by moving the carrier. In other embodiments, the position of the carrier is fixed, and multiple positions to be tested are imaged by moving the imaging system, and the sample (Q1) is detected by moving the alignment system. In this embodiment, the step of obtaining a first image of the first position to be tested of the sample (Q1) includes using the imaging system to image the first position to be tested according to the first position coordinates of the first position to be tested, and obtaining the first image; the step of obtaining a second image of the second position to be tested of the sample (Q1) includes: using the imaging system to image the second position to be tested according to the first position coordinates of the second position to be tested, and obtaining the second image.

[0044] It should be noted that, in this embodiment, the first image is acquired according to the first position coordinates of the first position to be measured, and the second image is acquired according to the first position coordinates of the second position to be measured, so that the imaging system can accurately locate the first position to be measured and the second position to be measured, thereby obtaining a complete image of the first unit to be measured and a complete image of the second unit to be measured.

[0045] In other embodiments of the present invention, the step of acquiring an image of a position to be measured of a sample (Q1) comprises: relative movement between an imaging system and the sample (Q1) so that the field of view of the imaging system scans the surface of the sample (Q1), and acquiring an image of the surface of the sample (Q1) through the imaging system at each preset step during the scanning process; acquiring an image of the first position to be measured according to the first position coordinates of the first position to be measured and the relative movement distance between the imaging system and the sample (Q1) to obtain a first image; acquiring an image of the second position to be measured according to the first position coordinates of the second position to be measured and the relative movement distance between the imaging system and the sample (Q1) to obtain a second image.

[0046] This embodiment obtains the first position coordinates of each unit to be tested in the imaging coordinate system to accurately determine the position information of the position to be tested, improve the positioning accuracy of the imaging system, and ensure accurate imaging of the position to be tested. By imaging the position to be tested according to the first position coordinates of the position to be tested, the consistency of imaging at different positions is ensured, the imaging difference caused by position deviation is eliminated, and the stability and reliability of the imaging system are improved. By obtaining the first image and the second image and associating them with the corresponding position to be tested, the correlation relationship between the position to be tested and the imaging data can be established, thereby better analyzing and comparing the imaging data of different positions, and improving the correlation of the data and the accuracy of the analysis.

[0047] Reference Figure 2-4 In this embodiment, the first position coordinates of each position to be measured on the sample (Q1) are obtained according to the second position coordinates of each position to be measured on the sample (Q1) and the first preset conversion relationship between the alignment coordinate system and the imaging coordinates, wherein each position to be measured includes at least a first position to be measured and a second position to be measured.

[0048] Among them, since the pattern of the sample (Q1) is generally arranged repeatedly, after knowing the second position coordinates of the sample, specifically, the second position of the sample can be the second position coordinates of a certain unit to be tested, and the second position information of the sample can be converted into the first position coordinates according to the first preset conversion relationship; and then the second position coordinates of all units to be tested are calculated according to the distance between adjacent units x, y. For example: the first position coordinates of a vertex of the unit to be tested D1 are (X1, Y1), and the intervals between adjacent units x, y are dx, dy respectively. Then the first position coordinates of the corresponding vertex of the unit to be tested D2 can be calculated to be (X1 + dx, Y1 + dy), and the first position coordinates of the sample (Q1) in the sample coordinate system are known.

[0049] Alternatively, in another embodiment, the second position coordinates of the unit to be tested are converted into corresponding first position coordinates, and the first position coordinates of all the units to be tested are calculated through the distances between adjacent units x and y.

[0050] After the first position coordinates of each unit under test (Q2) are obtained, each unit under test (Q2) is aligned according to the first position coordinates of each unit under test (Q2) and images are captured in sequence. Specifically, in this embodiment, each unit under test includes a first unit under test obj1, a second unit under test obj2, a fourth unit under test obj3 and a fifth unit under test obj5. The camera captures images in sequence according to the four image coordinates. The camera first locates according to the first position coordinates of the first unit under test and captures an image at this position to obtain a first image. Since the field of view of the imaging system is larger than the size of the unit under test, the first image includes a first complete image of the first unit under test and a first partial image of the third unit under test. Then the camera locates the coordinates of the second unit under test, the fourth unit under test and the fifth unit under test in sequence and captures images at these positions to obtain a second image, a third image and a fourth image.

[0051] By acquiring the first position coordinates of the position to be measured, this embodiment can improve the positioning accuracy of the imaging system and ensure accurate imaging of the position to be measured. By imaging according to the first position coordinates of the position to be measured, the imaging difference caused by position deviation can be eliminated, thereby improving the stability and consistency of the imaging system. By acquiring the first position coordinates of multiple positions to be measured and imaging, different positions of the sample (Q1) can be fully detected, improving the comprehensiveness and accuracy of the detection. Finally, by associating the imaging data of the position to be measured, the correlation relationship between the position and the data can be established, improving the correlation of the data and the accuracy of the analysis.

[0052] See attached Figure 3-5 In this embodiment, the image processing method further includes: Obtain the clipping position of the image of each unit to be tested in the clipping coordinate system; In the step of cropping the image of each unit under test, the image is cropped according to the first cropping position; each unit under test includes at least the third unit under test, and the first unit under test and / or the second unit under test, This embodiment obtains the clipping position of the unit to be tested and performs image clipping based on it, ensuring accurate position information and consistent clipping processing, making image processing more stable and reliable. At the same time, the enhancement of multi-unit clipping capabilities and data correlation provides comprehensiveness and accuracy, providing a more reliable basis for subsequent analysis and judgment. Thereby improving the accuracy and reliability of image processing, and bringing better results and application potential to related application fields. By obtaining the clipping position of each unit to be tested in the clipping coordinate system, the position of each unit to be tested can be accurately obtained, so that the image of each unit to be tested can be accurately clipped, and the image outside the unit to be tested can be removed, which can reduce the processing of invalid images, thereby freeing up storage space and increasing speed.

[0053] In this embodiment, obtaining the clipping position of the image of each unit under test in the clipping coordinate system includes: obtaining a first clipping position of the image of the unit under test in the clipping coordinate system according to a second preset conversion relationship between the clipping coordinate system and the imaging coordinate system.

[0054] This embodiment obtains the cropping position of the unit to be tested and converts the cropping position according to a preset conversion relationship, which can improve the accuracy of the cropping position and the consistency of image processing, realize the automation of the cropping process, and enhance the correlation of data. At the same time, it can also improve the accuracy and reliability of image processing, providing a more reliable basis for subsequent analysis and judgment.

[0055] The clipping coordinate system is a coordinate system established with the center of the image to be clipped as the origin. The clipping position in the clipping coordinate system is determined according to the position of each point on the image to be clipped and the origin. Each image to be clipped has its own clipping coordinate system.

[0056] Acquiring the clipping position of the image of each unit to be tested in the clipping coordinate system also includes: acquiring a second preset conversion relationship between the clipping coordinate system and the imaging coordinate system; acquiring a second preset conversion relationship between the clipping coordinate system and the imaging coordinate system, including: matching multiple points of the image to be clipped with the position to be tested of the sample (Q1), the points of the image to be clipped are the images of the matching positions to be tested; the coordinates of the first position of the position to be tested in the imaging coordinate system after being converted by the second preset conversion relationship are the same as the coordinates of the matching points in the clipping coordinate system.

[0057] Wherein, the first cropping includes: obtaining the first cropping position of the image of the first unit to be tested in the cropping coordinate system according to the second preset conversion relationship between the cropping coordinate system and the imaging coordinate system, including: obtaining the first position coordinates of the unit to be tested in the imaging coordinate system; converting the first position coordinates of the unit to be tested into the first cropping position in the cropping coordinate system through the second preset conversion relationship. The first cropping position includes: the cropping coordinates of the image edge of the first unit to be tested in the cropping coordinate system; the cropping coordinates of the partial image edge of the third unit to be tested in the cropping coordinate system.

[0058] The second cropping includes: obtaining the second cropping position of the image of the second unit to be tested in the cropping coordinate system according to the second preset conversion relationship between the cropping coordinate system and the imaging coordinate system, including: obtaining the first position coordinates of the second unit to be tested in the imaging coordinate system; converting the first position coordinates of the second unit to be tested into the second cropping position in the cropping coordinate system through the second preset conversion relationship. The second cropping position includes: the cropping coordinates of the image edge of the second unit to be tested in the cropping coordinate system; the cropping coordinates of the partial image edge of the third unit to be tested in the cropping coordinate system.

[0059] In other embodiments of the present invention, the first position coordinates of the third unit under test and the fourth unit under test in the imaging coordinate system are respectively obtained; and the first position coordinates of the third unit under test and the fourth unit under test are respectively converted into the third cropping position and the fourth cropping position in the cropping coordinate system through the second preset conversion relationship.

[0060] Refer to the attached Figure 4 and 5 In this embodiment, the first image is cropped to obtain a first complete image of the first unit to be tested and a first partial image of the third unit to be tested, including: cropping the first image, removing the image portion other than the first unit to be tested and the third unit to be tested, and separating the first complete image and the first partial image, wherein the premise of cropping in this embodiment is based on any one of the above embodiments, and the cropping coordinates can be obtained according to any one of the above embodiments. At the same time, in other embodiments, template matching can be performed on the first image to obtain the cropping coordinates.

[0061] The second image is trimmed to obtain a second complete image of the second unit under test and a second partial image of the third unit under test, including: trimming the second image to remove the image portion other than the second unit under test and the third unit under test, and separating the second complete image from the second partial image, When the imaging system acquires the first image through the first position coordinates of the image to which the first unit under test Obj1 belongs, the first image is cut through the cropping coordinates to acquire the complete image of the first unit under test Obj1 and the partial image of the third unit under test Obj3, and the remaining invalid images that do not contain the first unit under test Obj1 and the third unit under test Obj3 are deleted. For example, when the camera captures the first image 1 through the first position coordinates of the image to which the first unit under test Obj1 belongs, and cuts the acquired first image 1, a complete image of the first unit under test Obj1 and a first partial image of the third unit under test Obj3 are acquired through the cropping coordinates of the first unit under test Obj1 and the cropping coordinates of the third unit under test Obj3, and the other images that do not contain the first unit under test Obj1 and the third unit under test Obj3 are deleted, and only the images containing the first unit under test Obj1 and the third unit under test Obj3 are retained; Specific examples include: After the imaging device obtains the first frame of image, the imaging device sequentially acquires the second image 2, the third image 3 and the fourth image 4, and sequentially cuts the acquired second image 2, the third image 3 and the fourth image 4, respectively, and sequentially obtains the images of the second unit under test Obj2, the fourth unit under test Obj4 and the fifth unit under test Obj5 and three additional partial images of the third unit under test Obj3, and deletes the remaining invalid images cut out. For example, after the camera obtains the first image 1, the camera sequentially captures the second image 2, the third image 3 and the fourth image 4 according to the image coordinates T2 of the image belonging to the second unit under test Obj2, the image coordinates T3 of the image belonging to the fourth unit under test Obj4 and the image coordinates T4 of the image belonging to the fifth unit under test Obj5, and simultaneously cuts the captured images in sequence according to the clipping coordinates of each unit under test, and sequentially obtains the complete image of the second unit under test Obj2, the complete image of the fourth unit under test Obj4 and the complete image of the fifth unit under test Obj5, and additionally obtains three partial images of the third unit under test Obj3 cut out from the three images, and simultaneously deletes other irrelevant cut images, and only retains images related to the units under test.

[0062] This embodiment obtains the complete images of the first unit to be tested and the second unit to be tested by clipping the first image and the second image, removing the image parts irrelevant to the unit to be tested, ensuring that the acquired images completely correspond to the unit to be tested, and improving the accurate clipping of the unit images. After clipping the first image and the second image, the clipped first and second partial images are separated from the complete image, thereby facilitating subsequent processing and analysis, making the processing of different partial images more flexible and precise. By separating the complete image of the first unit to be tested and the first partial image and the complete image and the second partial image of the second unit to be tested, the image of the invalid area can be released in the memory, and the required partial image of the third unit to be tested can be obtained. After the partial image of the third unit to be tested is obtained, the effective area is spliced ​​to obtain the required image, and the image data of different units to be tested can be better distinguished and associated, and the relevance of the data and the accuracy of the analysis can be improved, providing a more reliable basis for subsequent processing and judgment.

[0063] Continue to refer Figures 1 to 5 After the clipping, the first partial image and the second partial image are spliced ​​to obtain a spliced ​​image. In other embodiments, the adjacent partial images of the third unit under test have the same part, and the adjacent partial images at least include the first partial image and the second partial image. The stitching process includes: moving adjacent partial images relatively, obtaining the similarity of the adjacent partial images during the movement; obtaining the relative position where the similarity is maximum or reaches the maximum value, so as to stitch the adjacent partial images; Alternatively, there are multiple identical identifiable points in the adjacent partial images; the stitching process includes: searching for pixels of the adjacent partial images respectively, obtaining identifiable points in the adjacent partial images respectively; making the identical identifiable points in the adjacent partial images overlap correspondingly, so as to stitch the adjacent partial images, The specific process is, for example, after acquiring four partial images of the third unit under test, the four partial images are spliced ​​to obtain a complete image of the third unit under test. For example, after acquiring four partial images of the third unit under test Obj3, the four partial images of the third unit under test Obj3 are spliced ​​to obtain a complete image of the third unit under test Obj3, and the acquired complete image of the first unit under test Obj1, the complete image of the second unit under test Obj2, the complete image of the fourth unit under test Obj4, and the complete image of the fifth unit under test Obj5 are added, so that the images of the five units under test are obtained through the first position coordinates of the five units under test.

[0064] In this embodiment, by moving adjacent partial images relatively and obtaining their similarity to determine their optimal splicing positions, the accuracy of splicing is ensured by finding the relative position where the similarity is the largest or reaches the maximum value, so that the connection between adjacent partial images is smoother and more seamless. When there are multiple identical identifiable points in adjacent partial images, these points are used for alignment and splicing. By searching the pixel points of adjacent partial images respectively and obtaining identifiable points in the adjacent partial images, alignment of these points is achieved, thereby ensuring that the identical identification points overlap after splicing, and improving the accuracy and quality of image splicing. Through the process of calculating similarity, searching for identifiable points and relative movement, the automation of image splicing can be achieved. Thereby reducing the subjectivity and errors of manual operation, improving processing efficiency and consistency. By splicing adjacent partial images, the continuity of the image can be enhanced, the integrity of the image content can be maintained, the phenomenon of image interruption or breakage can be avoided, and the perception and readability of the image can be improved.

[0065] Similarities include: negative correlation parameters of variance or standard deviation, or correlation.

[0066] Negatively related parameters of variance or standard deviation include: the inverse of the variance or standard deviation.

[0067] In this embodiment, the method also includes: performing a first detection process on the first complete image to obtain information to be detected in the first complete image; performing a second detection process on the first complete image to obtain information to be detected in the first complete image; and performing parallel processing of two or more of the first detection process, the second detection process, and the stitching process.

[0068] This embodiment performs the first and second detection processing on the first complete image and adopts a parallel processing method, which can achieve comprehensive acquisition of detection information, improved processing efficiency, multi-level analysis and judgment, and flexibility of the processing process, and can improve the accuracy and efficiency of image processing, providing more reliable and comprehensive image analysis results for subsequent applications and decisions.

[0069] The first detection process includes: performing template matching on the first complete image to obtain position information of the target to be detected. The target to be detected includes: defects, KV holes or solder balls.

[0070] The first inspection process also includes: obtaining size information of the object to be measured according to the position of the object to be measured.

[0071] This embodiment uses parallel processing in the first and second detection processes to achieve comprehensive acquisition of detection information, improved processing efficiency, multi-level analysis and judgment, and flexibility in the processing process, thereby improving the accuracy and efficiency of image processing and providing more reliable and comprehensive image analysis results for subsequent applications and decision-making. The present invention also provides a system for sample image processing, comprising: An acquisition module, the acquisition module is used to acquire a first image of a first position to be tested of the sample, the first image including a complete image of the first unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is also used to acquire a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; A cropping module, the cropping module is used to crop the first image to obtain a first complete image of the first unit to be tested and a first partial image of the third unit to be tested; The cropping module is also used to crop the second image to obtain a second cropped image, and obtain a second complete image of the second unit to be tested and a second partial image of the third unit to be tested; The processing module is used to stitch the first partial image and the second partial image to obtain a stitched image after cutting. In this embodiment, it also includes: The acquisition module is used to acquire a fourth image of a third position to be tested of the sample, wherein the fourth image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is also used to acquire a fifth image of a fourth position to be tested of the sample, wherein the first image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The cropping module is used to crop the fourth image to obtain a fourth complete image of the fourth unit under test and a third partial image of the third unit under test; The cropping module is further used to crop the fourth image to obtain a fifth complete image of the fourth unit under test and a fourth partial image of the third unit under test; The processing module is further used to stitch the third partial image and the fourth partial image to obtain a stitched image.

[0072] In this embodiment, the processing module also includes a separation module, and the separation module is used to crop the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test, including: cropping the first image to remove the image portion other than the first unit under test and the third unit under test, and separating the first complete image from the first partial image; The separation module is also used to crop the second image to obtain a second complete image of the second unit to be tested and a second partial image of the third unit to be tested, including: cropping the second image, removing the image portion outside the second unit to be tested and the third unit to be tested, and separating the second complete image from the second partial image.

[0073] In this embodiment, a detection module is also included. The detection module is used to perform a first detection process on the first complete image to obtain information to be detected in the first complete image; perform a second detection process on the first complete image to obtain information to be detected in the first complete image; and perform two or more of the first detection process, the second detection process, and the stitching process in parallel.

[0074] The system for image processing of a sample provided by the present invention can maintain a consistent processing order, while clearing images of invalid areas and retaining only images of valid areas, which can reduce the processing of invalid images, release memory more promptly, reduce the burden of data storage and processing, improve the real-time and efficiency of data processing, and effectively reduce the occupancy of computer memory resources, and collect the corresponding image through the first position coordinates of the image to which it belongs, thereby improving the acquisition of accurate images of each unit to be tested.

[0075] It should be noted that the image processing system in this embodiment is used to perform Figures 1 to 5 The method of one embodiment of the image processing method shown, the content of one embodiment of the image processing method can be quoted here, and will not be elaborated here.

[0076] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention. It should be noted that those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system and each module described above can refer to the corresponding process in the aforementioned embodiment of the elastic wave and folded ring vibration control method, and will not be repeated here.

Claims

1. A method for image processing of a sample, wherein the sample comprises at least a first unit to be tested, a second unit to be tested and a third unit to be tested, the method comprising: Acquire a first image of a first position to be tested of the sample, wherein the first image includes a complete image of the first unit to be tested and an image of at least a portion of the third unit to be tested; Cropping the first image to obtain a first complete image of the first unit to be tested and a first partial image of the third unit to be tested; Acquire a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; Cropping the second image to obtain a second cropped image, and obtaining a second complete image of the second unit under test and a second partial image of the third unit under test; After the clipping, the first partial image and the second partial image are spliced ​​to obtain a spliced ​​image.

2. The sample image processing method according to claim 1, characterized in that: The sample also includes a fourth unit and a fifth unit; Acquire a fourth image of a third position to be tested of the sample, wherein the fourth image includes a complete image of the fourth unit to be tested and an image of at least a portion of the third unit to be tested; trimming the fourth image to obtain a fourth complete image of the fourth unit under test and a third partial image of the third unit under test; Acquire a fifth image of a fourth position to be tested of the sample, wherein the first image includes a complete image of the fourth unit to be tested and an image of at least a portion of the third unit to be tested; trimming the fourth image to obtain a fifth complete image of the fourth unit under test and a fourth partial image of the third unit under test; The stitching process is further used to stitch the third partial image and the fourth partial image to obtain the stitched image.

3. The sample image processing method according to claim 1, characterized in that: The first image and the second image are acquired by an imaging system; the imaging system has an imaging coordinate system; before the step of acquiring the first image of the first position to be measured of the sample, the step further includes: Acquire a first position coordinate of each unit to be tested in an imaging coordinate system, wherein each unit to be tested includes at least a first unit to be tested and / or a second unit to be tested; The step of acquiring a first image of a first position to be tested of the sample includes: using the imaging system to image the first position to be tested according to the first position coordinates of the first position to be tested, and acquiring a first image; the step of acquiring a second image of a second position to be tested of the sample includes: using the imaging system to image the second position to be tested according to the first position coordinates of the second position to be tested, and acquiring a second image.

4. The sample image processing method according to claim 3, characterized in that: Obtaining the first position coordinates of each unit to be tested in the imaging coordinate system, including: aligning the sample through an alignment system to obtain the second position coordinates of the sample in the alignment coordinate system; obtaining the second position coordinates of each position to be tested on the sample in the alignment system according to the second position coordinates of the sample; According to the second position coordinates of each of the positions to be measured on the sample and a first preset conversion relationship between the alignment coordinate system and the imaging coordinates, the first position coordinates of each of the positions to be measured on the sample are obtained, wherein each of the positions to be measured includes at least the first position to be measured and the second position to be measured.

5. The sample image processing method according to claim 1 or 3, characterized in that: The method further comprises: obtaining a clipping position of the image of each unit to be tested in a clipping coordinate system; In the step of cropping the image of each unit under test, the image is cropped according to the first cropping position; each unit under test includes at least the third unit under test, and the first unit under test and / or the second unit under test.

6. The sample image processing method according to claim 5, characterized in that: Acquiring the clipping position of the image of each unit under test in the clipping coordinate system includes: acquiring a first clipping position of the image of the unit under test in the clipping coordinate system according to a second preset conversion relationship between the clipping coordinate system and the imaging coordinate system.

7. The image processing method for a sample according to any one of claims 1 to 6, wherein the first image is cropped to obtain a first complete image of a first unit under test and a first partial image of a third unit under test, comprising: trimming the first image, removing the image portion other than the first unit to be tested and the third unit to be tested, and separating the first complete image from the first partial image; The second image is cropped to obtain a second complete image of the second unit under test and a second partial image of the third unit under test, including: cropping the second image to remove the image portion other than the second unit under test and the third unit under test, and separating the second complete image from the second partial image.

8. The sample image processing method according to claim 1, characterized in that: The adjacent partial images of the third unit under test have the same part, and the adjacent partial images at least include the first partial image and the second partial image. The stitching process includes: moving adjacent partial images relatively, obtaining the similarity of the adjacent partial images during the movement; obtaining the relative position where the similarity is maximum or reaches the maximum value, so as to stitch the adjacent partial images; Alternatively, there are multiple identical identifiable points in adjacent partial images; the stitching process includes: searching for each pixel point of the adjacent partial images respectively, and obtaining the identifiable points in the adjacent partial images respectively; making the identical identifiable points in the adjacent partial images overlap correspondingly, so as to stitch the adjacent partial images.

9. The sample image processing method according to claim 1, characterized in that: The method also includes: performing a first detection process on the first complete image to obtain information to be detected in the first complete image; performing a second detection process on the first complete image to obtain information to be detected in the first complete image; and performing parallel processing of two or more of the first detection process, the second detection process, and the stitching process.

10. A sample image processing system, applied to the sample image processing method according to any one of claims 1 to 9, characterized in that: include: An acquisition module, the acquisition module is used to acquire a first image of a first position to be tested of the sample, the first image including a complete image of the first unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is also used to acquire a second image of a second position to be tested of the sample, wherein the second image includes a complete image of the second unit to be tested and an image of at least a portion of the third unit to be tested; A cropping module, wherein the cropping module is used to crop the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test; The cropping module is further used to crop the second image to obtain a second cropped image, and obtain a second complete image of the second unit under test and a second partial image of the third unit under test; A processing module is used for splicing the first partial image and the second partial image to obtain a spliced ​​image after the clipping.

11. The system for sample image processing according to claim 10, characterized in that: Also includes: The acquisition module is used to acquire a fourth image of a third position to be tested of the sample, wherein the fourth image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The acquisition module is further used to acquire a fifth image of a fourth position to be tested of the sample, wherein the first image includes a complete image of the fourth unit to be tested and an image of at least part of the third unit to be tested; The cropping module is used to crop the fourth image to obtain a fourth complete image of the fourth unit under test and a third partial image of the third unit under test; The cropping module is further used to crop the fourth image to obtain a fifth complete image of the fourth unit under test and a fourth partial image of the third unit under test; The processing module is further configured to stitch the third partial image and the fourth partial image together to obtain the stitched image.

12. The system for image processing of a sample according to claims 10-11, characterized in that: The processing module further includes a separation module, which is used to clip the first image to obtain a first complete image of the first unit under test and a first partial image of the third unit under test, including: clipping the first image to remove the image portion other than the first unit under test and the third unit under test, and separating the first complete image from the first partial image; The separation module is also used to crop the second image to obtain a second complete image of the second unit under test and a second partial image of the third unit under test, including: cropping the second image to remove the image portion outside the second unit under test and the third unit under test, and separating the second complete image from the second partial image.

13. The system for sample image processing according to claim 10, characterized in that: It also includes a detection module, which is used to perform a first detection process on the first complete image to obtain information to be detected in the first complete image; perform a second detection process on the first complete image to obtain information to be detected in the first complete image; and perform two or more of the first detection process, the second detection process, and the stitching process in parallel.