An abnormal area screening method, device, equipment, medium and program product
By extracting contour points and comparing grayscales for the selected images, we can accurately determine whether the selected area is an abnormal area, which solves the problem of indistinguishable real defects and noise in the prior art, and improves the accuracy of detection and product yield.
Patent Information
- Application Number
- CN202510570509.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-30
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2045-04-30
AI Technical Summary
The prior art is difficult to accurately distinguish between real defects and noise in image detection, resulting in high error detection rate in abnormal areas and affecting product yield.
By extracting the contour point points of the to-select image, determine the target point pairs corresponding to the contour point, and compare the grayscale differences of the target points, and use the preset difference and the number threshold to determine whether the to-select area is an abnormal area.
It improves the accuracy of abnormal area screening, reduces false detection of false abnormal areas, and improves detection accuracy.
Smart Images

Figure CN120088446B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image detection, and particularly to a method, device, equipment, medium and program product for screening abnormal regions. Background Art
[0002] There are candidate regions in the candidate image. For the candidate regions, it is necessary to accurately determine whether they are abnormal regions, such as whether they are regions where real defects are located. When collecting the candidate image, due to reasons such as the imaging of the optical system, the signal intensity of some real defects is weak and it is difficult to detect.
[0003] In the related art, usually a lower segmentation threshold is used for detection. If the gray value of the candidate region is higher or lower than a certain gray threshold, it means that the candidate region is an abnormal region, such as a region where a real defect is located.
[0004] However, while this method detects real defects, it will also misdetect background noise with weak signal intensity as real defects, that is, misdetect the region where the noise is located as an abnormal region, and it is impossible to accurately determine whether the candidate region is really an abnormal region, resulting in misdetection of abnormal regions and low product yield. Therefore, providing a suitable method for screening abnormal regions has become an urgent technical problem to be solved at present. Summary of the Invention
[0005] In view of this, the purpose of this application is to provide a method, device, equipment, medium and program product for screening abnormal regions, which greatly improves the accuracy of screening abnormal regions. The specific scheme is as follows:
[0006] On the one hand, this application provides a method for screening abnormal regions, including:
[0007] Performing contour point extraction processing on the candidate image to obtain a plurality of contour points; the plurality of contour points are used to identify the contour of the candidate region of the candidate image;
[0008] Determining a target point pair corresponding to the contour point based on the contour point; the target point pair includes a first point and a second point, and the first point and the second point are respectively located on both sides of the partial contour where the contour point is located;
[0009] Performing gray comparison on the first gray value of the first point and the second gray value of the second point to obtain a first comparison result of the target point pair;
[0010] When a preset number of the first comparison results all indicate that the difference between the first gray value and the second gray value reaches a preset difference, determining that the candidate region is an abnormal region.
[0011] Optionally, before determining the target point pair corresponding to the contour point based on the contour point, the method further includes:
[0012] Comparing the size parameter of the candidate area with a preset parameter to obtain a second comparison result;
[0013] When the second comparison result indicates that the size parameter is greater than or equal to the preset parameter, the determining the target point pair corresponding to the contour point based on the contour point includes:
[0014] Determining a point located outside the partial contour where the contour point is located as the first point;
[0015] Determining a point located inside the partial contour where the contour point is located as the second point; the first point, the second point, and the contour point are on the same straight line.
[0016] Optionally, when the second comparison result indicates that the size parameter is less than the preset parameter, the determining the target point pair corresponding to the contour point based on the contour point includes:
[0017] Determining a point located outside the partial contour where the contour point is located as the first point;
[0018] Determining the center point of the candidate area as the second point.
[0019] Optionally, the determining a point located outside the partial contour where the contour point is located as the first point includes:
[0020] Determining a first reference point and a second reference point on the contour based on the contour point; the first reference point and the second reference point are close to the contour point, and the contour point is located between the first reference point and the second reference point;
[0021] Determining a second straight line passing through the contour point and perpendicular to the first straight line where the first reference point and the second reference point are located;
[0022] Determining a point located on the second straight line and outside the contour as the first point.
[0023] Optionally, the determining a point located on the second straight line and outside the contour as the first point includes:
[0024] Performing an expansion process on the contour based on an expansion parameter to obtain an expanded contour of the candidate area; the expanded contour has the same shape as the contour;
[0025] Determining the intersection point closer to the contour point among at least one intersection point of the second straight line and the expanded contour as the first point.
[0026] Optionally, there are multiple other contour points between the first reference point or the second reference point and the contour point.
[0027] Optionally, before determining the candidate area as an abnormal area when the preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, the method further includes:
[0028] Performing a grayscale comparison between the contour point and the target area where the contour point is located to obtain a third comparison result;
[0029] When the third comparison result indicates that the grayscale of the contour point is greater than or equal to the grayscale of the target area, when the preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining the candidate area as an abnormal area includes:
[0030] When the preset number of the first comparison results all indicate that the difference between the second grayscale and the first grayscale is greater than the preset difference, determining the candidate area as the abnormal area; the preset difference is greater than 0.
[0031] When the third comparison result indicates that the grayscale of the contour point is less than the grayscale of the target area, when the preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining the candidate area as an abnormal area includes:
[0032] When the preset number of the first comparison results all indicate that the difference between the second grayscale and the first grayscale is less than the preset difference, determining the candidate area as the abnormal area; the preset difference is less than 0.
[0033] Optionally, when the preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining the candidate area as an abnormal area includes:
[0034] When the ratio of the number of the first comparison results indicating that the difference between the first grayscale and the second grayscale reaches the preset difference to the number of all contour points reaches a first ratio, determining the candidate area as the abnormal area.
[0035] Optionally, when the ratio of the number of the first comparison results indicating that the difference between the first grayscale and the second grayscale reaches the preset difference to the number of all contour points reaches a first ratio, determining the candidate area as the abnormal area includes:
[0036] Determine that the candidate area is located in the edge area of the candidate image;
[0037] When the ratio of the number of the first comparison results indicating that the difference between the first gray level and the second gray level reaches the preset difference to the number of all contour points reaches a second ratio, determine that the candidate area is the abnormal area; the second ratio is less than the first ratio.
[0038] Optionally, before performing the contour point extraction process on the candidate image to obtain multiple contour points, the method further includes:
[0039] Perform defect detection on the semiconductor structure to obtain the candidate image of the semiconductor structure; the candidate image includes the candidate area, and the candidate area is the area where the real defect or the false defect is located;
[0040] The determining that the candidate area is the abnormal area when the difference between the first gray level and the second gray level indicated by the preset number of the first comparison results reaches the preset difference includes:
[0041] When the difference between the first gray level and the second gray level indicated by the preset number of the first comparison results reaches the preset difference, determine that the candidate area is the area where the real defect is located.
[0042] Optionally, the performing the contour point extraction process on the candidate image to obtain multiple contour points includes:
[0043] Perform image enhancement processing on the candidate image to obtain the enhanced image of the candidate image;
[0044] Perform contour point extraction processing on the enhanced image to obtain the multiple contour points; the multiple contour points are used to identify the contour of the candidate area of the enhanced image.
[0045] On the other hand, an embodiment of the present application further provides an abnormal area screening device, including:
[0046] An extraction unit, configured to perform contour point extraction processing on a candidate image to obtain multiple contour points; the multiple contour points are used to identify the contour of the candidate area of the candidate image;
[0047] A first determination unit, configured to determine a target point pair corresponding to the contour point based on the contour point; the target point pair includes a first point and a second point, and the first point and the second point are respectively located on both sides of the partial contour where the contour point is located;
[0048] A comparison unit, configured to perform gray level comparison on the first gray level of the first point and the second gray level of the second point to obtain the first comparison result of the target point pair;
[0049] A second determination unit, configured to determine the candidate area as an abnormal area when the differences between the first gray level and the second gray level indicated by a preset number of the first comparison results all reach a preset difference.
[0050] In another aspect, an embodiment of the present application provides a computer device, which includes a processor and a memory:
[0051] The memory is used to store program codes and transmit the program codes to the processor;
[0052] The processor is configured to execute the method described in the above aspect according to the instructions in the program codes.
[0053] In another aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program, and the computer program is used to execute the method described in the above aspect.
[0054] In another aspect, an embodiment of the present application provides a computer program product including a computer program, which, when running on a computer device, causes the computer device to execute the method described above.
[0055] An embodiment of the present application provides an abnormal area screening method, device, equipment, medium and program product. The contour points of a candidate image are extracted to obtain a plurality of contour points, and the plurality of contour points are used to reflect the contour of the candidate area of the candidate image. In order to accurately determine whether the candidate area is really an abnormal area, target point pairs corresponding to the contour points are determined based on the contour points. The target point pair includes a first point and a second point, and the first point and the second point are respectively located on both sides of the partial contour where the contour point is located, so as to be able to represent the inner and outer sides of the contour respectively. The first gray level of the first point and the second gray level of the second point can represent the gray level distribution inside and outside the contour. The first gray level of the first point and the second gray level of the second point are compared in gray level to obtain the first comparison result of the target point pair, and the first comparison result can reflect the gray level difference between the inner and outer sides of the contour. Since the gray level difference between the real abnormal area and its periphery is larger, while the gray level difference between the false abnormal area and its periphery is smaller, when the differences between the first gray level and the second gray level indicated by a preset number of the first comparison results all reach a preset difference, it means that the gray level differences between the inner and outer sides of most of the contour points are large enough, so as to accurately indicate that the candidate area is an abnormal area, avoid misdetecting the false abnormal area as an abnormal area, and greatly improve the accuracy of abnormal area screening. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0057] Figure 1 FIG. shows a schematic flowchart of an abnormal area screening method provided by an embodiment of the present application;
[0058] Figure 2 FIG. shows a related schematic diagram of a candidate image provided by an embodiment of the present application;
[0059] Figure 3 FIG. shows a schematic diagram of a target point pair provided by an embodiment of the present application;
[0060] Figure 4 FIG. shows another related schematic diagram of a candidate image provided by an embodiment of the present application;
[0061] Figure 5 FIG. shows another related schematic diagram of a candidate image provided by an embodiment of the present application;
[0062] Figure 6 FIG. is a structural block diagram of an abnormal area screening device provided by an embodiment of the present application;
[0063] Figure 7 FIG. is a structural diagram of a computer device provided by an embodiment of the present application. Detailed Embodiments
[0064] To make the above objects, features, and advantages of the present application more obvious and understandable, the following will provide a detailed description of the specific embodiments of the present application in conjunction with the drawings.
[0065] In the following description, many specific details are set forth to fully understand the present application. However, the present application can also be implemented in other ways different from those described herein. Those skilled in the art can make similar generalizations without departing from the connotation of the present application. Therefore, the present application is not limited by the specific embodiments disclosed below.
[0066] As described in the background art, the method of screening abnormal regions using a lower segmentation threshold has low detection accuracy. As an example, in the semiconductor field, it is necessary to accurately detect real defects on a semiconductor structure. Real defects include, for example, particulate matter, scratches, and lattice defects attached to the surface of the semiconductor structure. Due to differences in substrate materials and the processes of various manufacturers, there are certain differences in the imaging characteristics of real defects. Coupled with problems such as the self-stability of the optical system, it will cause uneven illumination of the semiconductor structure, resulting in a situation where the signal intensity of some real defects in the candidate image is weak. If a lower segmentation threshold is used for detection, both real defects and false defects will be detected simultaneously. False defects are caused by, for example, noise interference or overly sensitive defect extraction algorithms, resulting in inaccurate defect detection of the semiconductor structure.
[0067] Based on the above technical problems, the embodiments of the present application provide an abnormal region screening method, device, equipment, medium, and program product. The candidate image is processed to extract contour points, obtaining a plurality of contour points, which are used to represent the contour of the candidate region in the candidate image. To accurately determine whether the candidate region is truly an abnormal region, target point pairs corresponding to the contour points are determined based on the contour points. The target point pair includes a first point and a second point, and the first point and the second point are respectively located on both sides of the partial contour where the contour point is located, so as to be able to represent the inner and outer sides of the contour respectively. The first gray level of the first point and the second gray level of the second point can represent the gray level distribution inside and outside the contour. The first gray level of the first point and the second gray level of the second point are compared in terms of gray level, obtaining a first comparison result of the target point pair. The first comparison result can reflect the gray level difference between the inner and outer sides of the contour. Since the gray level difference between a real abnormal region and its periphery is larger, while the gray level difference between a false abnormal region and its periphery is smaller, when the first comparison results that meet the preset quantity all indicate that the difference between the first gray level and the second gray level reaches the preset difference, it means that the gray level differences between the inner and outer sides of most of the contour points are large enough, thus accurately indicating that the candidate region is an abnormal region, avoiding misdetecting a false abnormal region as an abnormal region, and greatly improving the accuracy of abnormal region screening.
[0068] The abnormal region screening method provided by the embodiments of the present application can be implemented by a computer device. The computer device can be a terminal device or a server. Among them, the server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include, but are not limited to, mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, etc. The terminal device and the server can be directly or indirectly connected through wired or wireless communication methods, and the present application does not make any restrictions on this.
[0069] For ease of understanding, the following provides a detailed description of an abnormal area screening method, apparatus, device, medium, and program product provided by an embodiment of the present application with reference to the accompanying drawings.
[0070] Reference Figure 1 As shown, it is a schematic flowchart of an abnormal area screening method provided by an embodiment of the present application, and this method may include the following steps.
[0071] S101. Perform contour point extraction processing on the candidate image to obtain multiple contour points.
[0072] Specifically, the candidate image is an image for which abnormal area screening needs to be performed. The candidate image may, for example, be an image obtained by photographing a semiconductor structure, or it may be other images. The contour points of the candidate image can be extracted to obtain multiple contour points. The multiple contour points are used to identify the contour of the candidate area of the candidate image. Among them, the candidate area can be understood as the area that needs to be screened in the candidate image, and the contour points are the points located on the contour of the candidate area. The multiple contour points can form the entire contour of the candidate area.
[0073] Reference Figure 2 As shown, it is a related schematic diagram of a candidate image provided by an embodiment of the present application. (a) is a schematic diagram of the candidate image. Figure 2 In (a), the black area is the candidate area, and the contour points are the points located on the edge of the black area. (b) is a schematic diagram of the candidate area in (a). Figure 2 In (b), the white area is the candidate area identified by the contour points, that is, the mask of the extracted candidate area. (c) is a schematic diagram of another candidate image, and (d) is a schematic diagram of the candidate area in (c). Figure 2 In (d), the white area is misidentified as the candidate area, that is, the mask of the extracted candidate area.
[0074] In practical applications, the candidate image may have one or more candidate areas. For each candidate area, contour point extraction processing can be performed to obtain the contour points of each candidate area, so as to perform abnormal identification on each candidate area subsequently.
[0075] In a possible implementation manner, in order to improve the accuracy of the collected contour points, S101 performing contour point extraction processing on the candidate image to obtain multiple contour points may specifically include S1011 - S1012.
[0076] S1011. Perform image enhancement processing on the candidate image to obtain an enhanced image of the candidate image.
[0077] Specifically, image enhancement processing can be performed on the candidate image. The image enhancement processing can improve the contrast between the background area and the candidate area of the candidate image, and general image enhancement methods can be used for processing. The candidate image after image enhancement processing can be denoted as the enhanced image. In short, compared with the candidate image, the enhanced image can enhance the signal of the candidate area. Of course, it may also enhance the noise signal in the background area, but the noise signal can be excluded by other means subsequently.
[0078] S1012. Perform contour point extraction processing on the enhanced image to obtain multiple contour points; the multiple contour points are used to identify the contour of the candidate area of the enhanced image.
[0079] Specifically, the contour points of the enhanced image can be extracted to obtain multiple contour points. At this time, the contour points are the points located on the contour of the candidate area of the enhanced image. The contour points collected from the enhanced image can represent the contour of the candidate area more clearly and accurately compared with the contour points collected from the candidate image, improving the accuracy of the contour points, and further improving the accuracy of subsequent abnormal area screening.
[0080] S102. Determine the target point pairs corresponding to the contour points based on the contour points.
[0081] Specifically, for a single contour point, the target point pair corresponding to the contour point can be determined. The target point pair can include a first point and a second point, that is, the target point pair can be a point pair composed of at least two points. The first point and the second point are respectively located on both sides of the partial contour where the contour point is located. That is to say, for a certain contour point, if its first point is located outside the partial contour where the contour point is located, then its second point is located inside this partial contour. If the first point is located inside the partial contour where the contour point is located, then the second point is located outside this partial contour. Among them, the partial contour where the contour point is located can be understood as a part of the contour near the contour point on the entire contour of the candidate area.
[0082] Reference Figure 2 As shown, in (a), the green points are the set of inner contour points, that is, the set of second points, and the red points are the set of outer contour points, that is, the set of first points. In (c), similarly, the green points are the set of inner contour points, and the red points are the set of outer contour points. Reference Figure 3 As shown, it is a schematic diagram of a target point pair provided by an embodiment of the present application. Figure 3 The closed curve in it is the contour line of the candidate area. For the contour point a located on the contour line, its target point pair includes the first point d located outside the contour and the second point e located inside the contour.
[0083] In a possible implementation, before determining the target point pairs corresponding to the contour points in S102, the method may further include S1021 comparing the size parameter of the candidate region with a preset parameter to obtain a second comparison result. When the second comparison result indicates that the size parameter is greater than or equal to the preset parameter, S102 determining the target point pairs corresponding to the contour points may include S1021 - S1022.
[0084] S1021, determine the point located outside the partial contour where the contour point is located as the first point.
[0085] S1022, determine the point located inside the partial contour where the contour point is located as the second point.
[0086] Since the sizes of the candidate regions are sometimes large and sometimes small, to further improve the detection accuracy, the first point and the second point can be determined according to the size of the candidate region. Among them, the size parameter of the candidate region can be understood as a parameter representing the size of the candidate region. For example, it can be the area of the candidate region, the aspect ratio of the candidate region, etc. The preset parameter is a preset size parameter, and the preset parameter can be a preset area, a preset aspect ratio, etc. For the convenience of comparison, the size parameter of the candidate region and the preset parameter can be the same type of parameter, such as both being the area, or both being the aspect ratio, etc.
[0087] Specifically, comparing the size parameter of the candidate region with the preset parameter can obtain a second comparison result. When the second comparison result indicates that the size parameter of the candidate region is not less than the preset parameter, it means that the size of the candidate region is relatively large. For example, the area of the candidate region is relatively large, which is a large candidate region. Also, for example, the aspect ratio of the candidate region is relatively large, which is a long and narrow candidate region. For such larger candidate regions, due to their large sizes, there may very likely be a situation of local gray - level non - uniformity in the candidate region, that is, the gray - level values at different positions inside the candidate region vary greatly. Therefore, for each contour point, more accurate first and second points need to be determined.
[0088] At this time, for a single contour point, the point located outside the partial contour where the contour point is located can be determined as the first point, and the point located inside this partial contour can be determined as the second point. The first point, the second point, and the contour point are on the same straight line. That is to say, both the first point and the second point are points near the contour point and are located on both sides of the contour.
[0089] As an example, referring to Figure 3 as shown, the area of the candidate region is large. Therefore, for the contour point a, the first point d and the second point e are located on both sides of the contour point a, and these three points are on the same straight line.
[0090] In summary, for a candidate region with a relatively large size, by specifically determining a first point and a second point for each contour point, the contour point and the two points on its two sides are located on the same straight line. Thus, the second point located inside is always near the contour point, which can accurately represent the gray-scale distribution near the contour point, avoiding the inaccurate situation caused by using an internal point far from the contour point as the second point, overcoming the uneven gray-scale distribution in the internal region due to the large size of the candidate region, improving the accuracy of the target point pair, and further improving the detection accuracy of the abnormal region.
[0091] In a possible implementation manner, when the size parameter of the second comparison result is less than the preset parameter, S102 determining the target point pair corresponding to the contour point based on the contour point may include S1023 - S1024.
[0092] S1023, determining the point located outside the part of the contour where the contour point is located as the first point.
[0093] S1024, determining the center point of the candidate region as the second point.
[0094] Specifically, when the second comparison result indicates that the size parameter of the candidate region is less than the preset parameter, it means that the size of the candidate region is relatively small. For example, it is a candidate region with a small area or a candidate region with a regular shape. To ensure the detection accuracy and reduce the calculation amount, there is no need to determine the corresponding second point for each contour point once.
[0095] At this time, for each contour point, the point located outside the contour can be determined as the first point. That is, the first point is still determined based on the position of the contour point, and the first point is located outside the contour point. Since the size of the candidate region is relatively small at this time, there is no need to determine the corresponding second point for each contour point, and the same second point can be used for multiple contour points. That is to say, the center point of the candidate region can be determined and the center point can be determined as the second point. That is, no matter where the contour point is located, its corresponding second point is the center point.
[0096] In this way, for a candidate region with a relatively small size, by using the center point to represent the second point, the center point only needs to be determined once, and there is no need to determine the second point for each contour point once. The number of times of determining points is greatly reduced, and the related calculation amount is greatly reduced. In addition, since the size of the candidate region is relatively small, the center point is relatively close to each contour point, and the center point can still relatively accurately represent the gray-scale distribution inside each contour point. That is, on the premise of ensuring the accuracy of the second point, the calculation amount is greatly reduced.
[0097] In a possible implementation manner, S1021 or S1023 determining the point located outside the part of the contour where the contour point is located as the first point may specifically include S201 - S203.
[0098] S201. Determine a first reference point and a second reference point on the contour based on the contour points.
[0099] Specifically, the first reference point is a point on the contour, and the second reference point is another point on the contour. For each contour point, the corresponding first reference point and second reference point can be determined. The first reference point and the second reference point are close to the contour point, that is, both of these reference points are located near the contour point. In addition, the contour point is located between the first reference point and the second reference point.
[0100] That is to say, for a single contour point, the corresponding first reference point and second reference point can be determined for each contour point. On the contour line of the candidate area, the first reference point can be a point on the left side of the contour point, and the second reference point can be a point on the right side of the contour point.
[0101] S202. Determine a second line that passes through the contour point and is perpendicular to the first line where the first reference point and the second reference point are located.
[0102] Specifically, the line passing through the first reference point and the second reference point is denoted as the first line, and the first line is used as the demarcation line between the inside and the outside of the contour line. Based on the first line, another line that passes through the contour point and is perpendicular to the first line is determined, that is, the second line. The second line is a line used to represent the direction from the inside to the outside of the candidate area.
[0103] Refer to Figure 3 As shown, for the contour point a, the first reference point can be point b, and the second reference point can be point c. Then the first line is L1, and the second line is L2. L2 passes through the inside and the outside of the candidate area.
[0104] S203. Determine the first point that is located on the second line and outside the contour.
[0105] Specifically, a point that is located on the second line and outside the contour can be determined as the first point. In addition, when determining the second point corresponding to each contour point, a point that is located on the second line and inside the contour can be determined as the second point. As an example, as Figure 3 the point d as the first point is not only located on the second line but also outside the contour of the candidate area. The point e as the second point is also located on the second line.
[0106] In practical applications, taking the contour points as a reference, a point can be taken at a position where L = gap in the outer direction of the second straight line as the first point, and a point can be taken at a position where L = gap in the inner direction of the second straight line as the second point. Then, the first point and the second point form a target point pair (that is, an inner and outer point pair). In addition, all contour points can be traversed in sequence to obtain the inner and outer point pairs corresponding to each contour point.
[0107] In summary, by determining the first straight line that represents the approximate orientation of the position where the contour point is located, and then determining the second straight line perpendicular to the first straight line, the direction where the second straight line is located can represent the approximate orientation of the inner and outer sides of the contour. Furthermore, an outer point (i.e., the first point) is determined on the second straight line. The orientation between the first point and the contour point is more consistent, and it can more accurately represent the points on the outer side of the contour, improving the accuracy of the first point.
[0108] In a possible implementation manner, S203 determines the point located on the second straight line and outside the contour as the first point, which may specifically include S2031 - S2032.
[0109] S2031, perform an expansion process on the contour based on the expansion parameter to obtain the expanded contour of the candidate area.
[0110] Specifically, the expansion parameter can be understood as the size parameter for expanding the candidate area. The expansion parameter can be represented by gap. For example, the expansion parameter can be 2 times, etc. Based on the expansion parameter, the contour of the candidate area can be expanded to obtain the expanded contour of the candidate area. The expanded contour is the boundary contour after the candidate area is expanded. The expanded contour is consistent with the shape of the contour, that is, before and after the expansion process, the boundary shape of the candidate area remains unchanged, thus ensuring the consistency of the shape of the candidate area.
[0111] S2032, determine the intersection point closer to the contour point among at least one intersection point of the second straight line and the expanded contour as the first point.
[0112] Specifically, since the second straight line is in the direction from the inside of the candidate area to the outside (or from the outside to the inside), the second straight line will pass through the expanded contour, and there will be at least one intersection point between the second straight line and the expanded contour. For example, if the second straight line completely penetrates the expanded contour, there will be at least two intersection points between the second straight line and the expanded contour.
[0113] The intersection point closer to the contour point can be determined as the first point. This is because the closer the intersection point is to the contour point, the closer the intersection point is to the vicinity of the contour point, and it can best represent the gray - scale distribution situation on the outer side of the contour point. Therefore, it can be used as the first point.
[0114] In practical applications, for each contour point, its corresponding second straight line can be determined, and the intersection points of the second straight line and the enlarged contour are calculated to obtain the first point corresponding to each contour point.
[0115] In summary, by calculating the intersection points of the second straight line and the enlarged contour, the corresponding first point can be quickly and accurately determined for each contour point, thereby improving the detection accuracy of the abnormal area.
[0116] In addition, for the second point, the contour can also be shrunk based on the shrinking parameter to obtain a shrunk contour. Among at least one intersection point where the second straight line intersects the shrunk contour, the intersection point close to the contour point can be used as the second point, so as to determine a more accurate inner point for each contour point.
[0117] In a possible implementation, there are multiple other contour points between the first reference point or the second reference point and the contour point. That is to say, the first reference point and the second reference point can both be contour points, and there is a certain distance between them and the corresponding contour points. As an example, the first reference point b and the second reference point c of the contour point a can be obtained at an interval, for example, b = a + m, c = a - m, where m is the number of adjacent contour points at the interval. This can avoid the situation where the direction of the first straight line is too skewed due to the two reference points being too close to the contour point, and improve the direction accuracy of the first straight line.
[0118] S103. Compare the first gray level of the first point and the second gray level of the second point to obtain the first comparison result of the target point pair.
[0119] Specifically, each point in the candidate image has a gray level value, which can be, for example, within the range of 0 - 255, and the gray level can reflect the brightness and darkness of the position where the point is located. The first gray level can be understood as the gray level value of the first point, and the second gray level can be understood as the gray level value of the second point. The first gray level and the second gray level are compared to obtain the first comparison result of the target point pair. The first comparison result can be used to identify the difference between the first gray level and the second gray level. For example, the first gray level is greater than the second gray level, and the difference between them reaches 50.
[0120] S104. When the first comparison results that meet the preset quantity all indicate that the difference between the first gray level and the second gray level reaches the preset difference, determine the candidate area as an abnormal area.
[0121] Specifically, the preset difference can be understood as a preset grayscale difference value, for example, it can be 100. For a certain contour point, if its first comparison result indicates that the difference between the first grayscale and the second grayscale is greater than or equal to the preset difference, it means that the difference between the two is large enough, indicating that the brightness and darkness difference between the inside and outside of the candidate area is large, then the candidate area is very likely to be an abnormal area. Among them, the abnormal area can be understood as an area different from other areas, and within the abnormal area, the grayscale changes significantly.
[0122] To improve the detection accuracy, a preset quantity can be set. If for the contour points that meet the preset quantity, their first comparison results all indicate that the difference between the first grayscale and the second grayscale is the preset difference, it means that at the positions of these contour points, the grayscale difference between the inside and outside of the contour is large, and the situation where the candidate area is the area where the noise is located is excluded, further increasing the possibility that the candidate area is an abnormal area, so that it can be determined that the candidate area is an abnormal area. As an example, the preset quantity is 200. Then, if the first comparison results corresponding to 200 contour points all indicate that the difference between the first grayscale and the second grayscale is large enough, it means that the candidate area is an abnormal area.
[0123] Reference Figure 2 As shown, in (b), the first comparison results that meet the preset quantity indicate that the grayscale difference reaches the preset difference, then Figure 2 in (b) of Figure 2 the candidate area is an abnormal area, and (d) does not meet the conditions, so
[0124] Reference Figure 4 As shown, this is another schematic diagram of a candidate image provided by an embodiment of the present application. (a) is the candidate image, the white areas in (b) are the masks of each candidate area, where there are misdetections of noise, and (c) is the mask of the abnormal area selected after grayscale difference comparison, where the noise mask has been deleted. Reference Figure 5 As shown, this is another schematic diagram of a candidate image provided by an embodiment of the present application. (a) is another candidate image, the white areas in (b) are the masks of each candidate area, where there are misdetections of noise, and (c) is the mask of the abnormal area selected after grayscale difference comparison, where the noise mask has been deleted.
[0125] In summary, since the gray-scale difference between the real abnormal area and its periphery is larger, while the gray-scale difference between the false abnormal area and its periphery is smaller, when the first comparison results of the preset quantity all indicate that the difference between the first gray-scale and the second gray-scale reaches the preset difference, it means that the gray-scale differences between the inner and outer sides of most contour points are large enough, so as to accurately indicate that the candidate area is an abnormal area, avoiding misdetecting the false abnormal area as an abnormal area, such as the area where noise is located, and greatly improving the accuracy of screening the abnormal area.
[0126] In a possible implementation manner, before performing the contour point extraction process on the candidate image in S101 to obtain multiple contour points, the method may further include S301 performing defect detection on the semiconductor structure to obtain the candidate image of the semiconductor structure. Then, in S104, when the first comparison results of the preset quantity all indicate that the difference between the first gray-scale and the second gray-scale reaches the preset difference, determining that the candidate area is an abnormal area may specifically be that in S1041, when the first comparison results of the preset quantity all indicate that the difference between the first gray-scale and the second gray-scale reaches the preset difference, determining that the candidate area is the area where the real defect is located.
[0127] Specifically, defect detection may be performed on the semiconductor structure to obtain the candidate image of the semiconductor structure. The defect detection method may be dark field detection, bright field detection, photoluminescence detection, etc. Among them, dark field detection is to detect defects such as particles using the scattering principle, bright field detection is mainly used to detect defects on the surface of the wafer, and photoluminescence detection is used to identify lattice defects. Since the emission wavelengths of different defects are different, photoluminescence detection can be further divided into near-ultraviolet photoluminescence (NUVPL) and visible photoluminescence (VISPL) channels.
[0128] The candidate image includes a candidate area, and the candidate area is the area where the real defect or the false defect is located. For the candidate image of the semiconductor structure, the candidate area therein may be the area where the real defect caused by process problems or imaging system optical path problems is located, or may be the area where the false defect caused by some noise is located. In order to accurately distinguish the real defect, when determining that the candidate area is an abnormal area, if the first comparison results of the preset quantity indicate that the gray-scale difference satisfies the preset difference, it may be determined that the candidate area is the area where the real defect is located, rather than the area where the false defect is located. In this way, for the semiconductor detection field, the present application can accurately and quickly identify the real defects in the semiconductor structure, providing an accurate adjustment basis for subsequent process adjustment.
[0129] In a possible implementation manner, before determining that the candidate area is an abnormal area when the first comparison results of the preset quantity all indicate that the difference between the first gray-scale and the second gray-scale reaches the preset difference, it may further include S401 comparing the gray-scale of the contour point with the target area where the contour point is located to obtain a third comparison result;
[0130] When the gray level of the contour point marked by the third comparison result is greater than or equal to the gray level of the target area, and when the differences between the first gray level and the second gray level marked by a preset number of first comparison results all reach a preset difference, it is determined that the candidate area is an abnormal area, which may specifically include that in S1042, when the differences between the second gray level and the first gray level marked by a preset number of first comparison results are all greater than the preset difference, it is determined that the candidate area is an abnormal area; the preset difference is greater than 0.
[0131] When the gray level of the contour point marked by the third comparison result is less than the gray level of the target area, when the differences between the first gray level and the second gray level marked by a preset number of first comparison results all reach a preset difference, S104 determines that the candidate area is an abnormal area, which may specifically include that in S1043, when the differences between the second gray level and the first gray level marked by a preset number of first comparison results are all less than the preset difference, it is determined that the candidate area is an abnormal area; the preset difference is less than 0.
[0132] Specifically, the target area can be understood as the surrounding area of the position where the contour point is located. The gray level value of the target area can be calculated, and this gray level value can reflect the brightness and darkness of the target area. The gray level value of the contour point and the gray level value of the target area can be compared in terms of gray level, so as to obtain the third comparison result. The third comparison result can represent the comparison of the gray level sizes between the contour point and the target area.
[0133] In addition, due to the different ways of obtaining the candidate image, the candidate area in the candidate image may be black or white. As an example, in the candidate image obtained through dark field detection, the candidate area is brighter and more inclined to white, and in the candidate image obtained through bright field detection, the candidate area is darker and more inclined to black.
[0134] Next, the situation where the third comparison result indicates that the gray level value of the contour point is not less than the gray level value of the target area will be described. When the gray level value of the contour point is not less than the gray level value of the target area, it indicates that the position where the contour point is located is brighter than the brightness of its surrounding area. For example, the contour point is a point on the contour of the white candidate area, and it is necessary to accurately identify the white candidate area.
[0135] Since when the candidate area is white, the gray level value inside the candidate area will be greater than the gray level value outside, that is, the second gray level of the second point is greater than the first gray level of the first point. Therefore, it can be set that the preset difference is greater than 0. If the difference between the second gray level and the first gray level marked by the first comparison result is greater than the preset difference, it means that the second gray level is greater than the first gray level, that is, the inner point of the contour point is brighter than the outer point, so as to be able to identify the white candidate area as abnormal.
[0136] As an example, the process of determining that the difference between the first gray level and the second gray level reaches a preset difference can be specifically calculated using the following formula: gray inside -gray outside ≥D, where gray inside is the second gray level of the second point, gray outside is the first gray level of the first point, and D represents the preset difference. If a preset number of contour points all satisfy this formula, it indicates that the candidate area is an abnormal area.
[0137] Next, the case where the gray level value of the contour point represented by the third comparison result is less than the gray level value of the target area will be described. When the gray level value of the contour point is less than the gray level value of the target area, it indicates that the position of the contour point is darker than the surrounding area. For example, for a point on the contour of a candidate area that is black, it is necessary to accurately identify the black candidate area.
[0138] Since when the candidate area is black, the gray level value inside the candidate area will be smaller than the external gray level value, that is, the second gray level of the second point is less than the first gray level of the first point. Therefore, it can be set that the preset difference is less than 0. If the first comparison result indicates that the difference between the second gray level and the first gray level is less than the preset difference, it means that the second gray level is less than the first gray level, that is, the inner point of the contour point is darker than the outer point, so that the black candidate area can be abnormally identified.
[0139] As an example, the process of determining that the difference between the first gray level and the second gray level reaches a preset difference can be specifically calculated using the following formula: gray inside -gray outside ≤D, where gray inside is the second gray level of the second point, gray outside is the first gray level of the first point, and D represents the preset difference. If a preset number of contour points all satisfy this formula, it indicates that the candidate area is an abnormal area.
[0140] In summary, by selecting the corresponding formula based on the light and dark conditions of the candidate area for identifying the abnormal area, the identification accuracy is improved, and false detection caused by incorrect formula selection is avoided.
[0141] In a possible implementation manner, when S104 determines that the candidate area is an abnormal area when a preset number of first comparison results all indicate that the difference between the first gray level and the second gray level reaches the preset difference, specifically, when the ratio of the number of first comparison results indicating that the difference between the first gray level and the second gray level reaches the preset difference to the number of all contour points reaches the first ratio, S104 determines that the candidate area is an abnormal area.
[0142] Specifically, the first ratio can be a preset ratio value, for example, 3 / 4. The number of first comparison results indicating that the difference between the first gray level and the second gray level reaches a preset difference can be counted, and the ratio of this number to the number of all contour points can be calculated. If this ratio is not less than the first ratio, it means that a large number of contour points among all contour points satisfy the condition that the gray level difference reaches the preset difference, and thus the candidate area can be determined as an abnormal area.
[0143] As an example, it can be expressed by the formula count≥M*count edge , where count is the number of first comparison results indicating that the difference between the first gray level and the second gray level reaches a preset difference, count edge is the number of all contour points, and M is the first ratio.
[0144] In summary, by counting the number of gray level differences between the second gray level and the first gray level that satisfy the preset difference and calculating the ratio of this number to the total number of all contour points, it is possible to more accurately determine whether it is an abnormal area, avoiding the situation where the total number of all contour points is large and the number of contour points that meet the difference condition is too small, resulting in inaccurate detection.
[0145] In a possible implementation, when the ratio of the number of first comparison results indicating that the difference between the first gray level and the second gray level reaches a preset difference to the number of all contour points reaches the first ratio, S1044 determines the candidate area as an abnormal area, which can specifically include S10441 - S10442.
[0146] S10441, determining that the candidate area is located in the edge area of the candidate image.
[0147] Specifically, it is determined that the candidate area is located in the edge area of the candidate image. If the candidate area is located in the edge area of the candidate image, then when determining the target point pairs of each contour point, the contour points located on the edge of the candidate image cannot collect target point pairs. Therefore, the corresponding difference satisfaction condition needs to be adjusted during subsequent abnormal detection.
[0148] S10442, when the ratio of the number of first comparison results indicating that the difference between the first gray level and the second gray level reaches a preset difference to the number of all contour points reaches the second ratio, determining the candidate area as an abnormal area.
[0149] Specifically, when the candidate area is located in the edge area, part of the contour of the candidate area is the contour of its own area shape, and the other part of the contour is the boundary contour of the candidate image, such as part of the side length of a rectangular candidate image. Therefore, for the contour points located on the boundary contour of the candidate image, it is impossible to determine its outer point, that is, the first point, and thus it is impossible to determine the corresponding target point pair. Furthermore, subsequent differential comparison based on the gray values of the inner and outer point pairs cannot be performed. Therefore, the number of contour points whose gray differences satisfy the preset difference is also smaller, and its proportion in the total number of all contour points is also lower.
[0150] Therefore, in order to accurately identify such candidate images for anomalies, a lower second ratio can be set, that is, the second ratio is less than the first ratio. For example, the second ratio can be 1 / 2, so that the anomaly area can more easily meet the condition, that is, the number of first comparison results indicating that the difference between the first gray value and the second gray value reaches the preset difference, and its ratio to the total number of all contour points can more easily reach the second ratio, so that it can be more accurately identified whether the candidate area located in the edge area is an anomaly area.
[0151] This application also provides an anomaly area screening device. Refer to Figure 6 As shown in the structural block diagram of an anomaly area screening device provided by an embodiment of this application. The device includes:
[0152] An extraction unit 201, configured to perform contour point extraction processing on a candidate image to obtain a plurality of contour points; the plurality of contour points are used to identify the contour of the candidate area of the candidate image;
[0153] A first determination unit 202, configured to determine a target point pair corresponding to the contour points based on the contour points; the target point pair includes a first point and a second point, and the first point and the second point are respectively located on both sides of the partial contour where the contour point is located;
[0154] A comparison unit 203, configured to perform gray comparison between the first gray value of the first point and the second gray value of the second point to obtain a first comparison result of the target point pair;
[0155] A second determination unit 204, configured to determine that the candidate area is an anomaly area when a preset number of first comparison results all indicate that the difference between the first gray value and the second gray value reaches the preset difference.
[0156] Optionally, the device further includes:
[0157] A comparison unit, configured to compare the size parameter of the candidate area with a preset parameter to obtain a second comparison result;
[0158] When the second comparison result indicates that the size parameter is greater than or equal to the preset parameter, the first determination unit is configured to:
[0159] Determine a point outside the part of the contour where the contour point is located as the first point;
[0160] Determine a point inside the part of the contour where the contour point is located as the second point; the first point, the second point, and the contour point are located on the same straight line.
[0161] Optionally, when the second comparison result indicates that the size parameter is less than the preset parameter, the first determination unit is configured to:
[0162] Determine a point outside the part of the contour where the contour point is located as the first point;
[0163] Determine the center point of the candidate area as the second point.
[0164] Optionally, the first determination unit is configured to:
[0165] Determine a first reference point and a second reference point on the contour based on the contour point; the first reference point and the second reference point are close to the contour point, and the contour point is located between the first reference point and the second reference point;
[0166] Determine a second straight line passing through the contour point and perpendicular to the first straight line where the first reference point and the second reference point are located;
[0167] Determine a point on the second straight line and outside the contour as the first point.
[0168] Optionally, the first determination unit is configured to:
[0169] Enlarge the contour based on an enlargement parameter to obtain an enlarged contour of the candidate area; the enlarged contour has the same shape as the contour;
[0170] Determine the intersection point close to the contour point among at least one intersection point of the second straight line and the enlarged contour as the first point.
[0171] Optionally, there are multiple other contour points between the first reference point or the second reference point and the contour point.
[0172] Optionally, the device further includes:
[0173] A comparison unit, configured to perform a gray-scale comparison between the contour point and the target area where the contour point is located to obtain a third comparison result;
[0174] When the third comparison result indicates that the gray scale of the contour point is greater than or equal to the gray scale of the target area, the second determination unit is configured to:
[0175] When the first comparison results satisfying a preset quantity all indicate that the difference between the second gray level and the first gray level is greater than the preset difference, determining the candidate region as the abnormal region; the preset difference is greater than 0;
[0176] When the third comparison result indicates that the gray level of the contour point is less than the gray level of the target region, the second determination unit is configured to:
[0177] When the first comparison results satisfying a preset quantity all indicate that the difference between the second gray level and the first gray level is less than the preset difference, determining the candidate region as the abnormal region; the preset difference is less than 0.
[0178] Optionally, the second determination unit is configured to:
[0179] When the ratio of the quantity of the first comparison results indicating that the difference between the first gray level and the second gray level reaches the preset difference to the quantity of all contour points reaches a first ratio, determining the candidate region as the abnormal region.
[0180] Optionally, the second determination unit is configured to:
[0181] Determining that the candidate region is located in the edge region of the candidate image;
[0182] When the ratio of the quantity of the first comparison results indicating that the difference between the first gray level and the second gray level reaches the preset difference to the quantity of all contour points reaches a second ratio, determining the candidate region as the abnormal region; the second ratio is less than the first ratio.
[0183] Optionally, the apparatus further includes:
[0184] A detection unit, configured to perform defect detection on a semiconductor structure to obtain the candidate image of the semiconductor structure; the candidate image includes the candidate region, and the candidate region is a region where a real defect or a false defect is located;
[0185] The second determination unit is configured to:
[0186] When the first comparison results satisfying a preset quantity all indicate that the difference between the first gray level and the second gray level reaches the preset difference, determining the candidate region as the region where the real defect is located.
[0187] Optionally, the extraction unit is configured to:
[0188] Perform image enhancement processing on the candidate image to obtain an enhanced image of the candidate image;
[0189] Performing contour point extraction processing on the enhanced image to obtain the multiple contour points; the multiple contour points are used to identify the contour of the candidate region of the enhanced image.
[0190] In another aspect, an embodiment of the present application provides a computer device. Referring to Figure 7 As shown, it is a structural diagram of a computer device provided by an embodiment of the present application. The computer device includes a processor 310 and a memory 320:
[0191] The memory 320 is used to store program codes and transmit the program codes to the processor 310;
[0192] The processor 310 is used to execute the method provided in the above embodiment according to the instructions in the program codes.
[0193] This computer device may include a terminal device or a server, and the aforementioned device may be configured in this computer device.
[0194] In another aspect, an embodiment of the present application further provides a storage medium. The storage medium is used to store a computer program, and the computer program is used to execute the method provided in the above embodiment.
[0195] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiment can be completed by program instructions in hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiment; and the aforementioned storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviation: ROM), RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0196] Each embodiment in this specification is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, it is described relatively simply, and the relevant parts can be referred to the partial description of the method embodiment.
[0197] The above are only the preferred embodiments of the present application. Although the present application has been disclosed above with preferred embodiments, it is not intended to limit the present application. Any person skilled in the art can make many possible changes and modifications to the technical solution of the present application, or modify it into equivalent embodiments with equivalent changes, without departing from the scope of the technical solution of the present application. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present application without departing from the content of the technical solution of the present application still fall within the scope of the protection of the technical solution of the present application.
Claims
1. A method for screening abnormal areas, characterized in that: include: Perform contour point extraction processing on the selected image to obtain multiple contour points; The plurality of contour points are used to identify the contour of the to-be-selected area of the to-be-selected image; Determine a target point pair corresponding to the contour point based on the contour point; the target point pair includes a first point and a second point, the first point and the second point are respectively located on both sides of the contour portion where the contour point is located; Performing a grayscale comparison on the first grayscale of the first point and the second grayscale of the second point to obtain a first comparison result of the target point pair; When a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining that the to-be-selected region is an abnormal region; Before determining the target point pairs corresponding to the contour points based on the contour points, the method further includes: Comparing the size parameter of the to-be-selected area with the preset parameter to obtain a second comparison result; When the second comparison result indicates that the size parameter is greater than or equal to the preset parameter, determining the target point pair corresponding to the contour point based on the contour point includes: Determine a point located outside the portion of the contour where the contour point is located as the first point; A point located inside the portion of the contour where the contour point is located is determined as the second point; and the first point, the second point and the contour point are located on the same straight line.
2. The method according to claim 1, characterized in that When the second comparison result indicates that the size parameter is smaller than the preset parameter, determining the target point pair corresponding to the contour point based on the contour point includes: Determine a point located outside the portion of the contour where the contour point is located as the first point; The center point of the to-be-selected area is determined as the second point.
3. The method according to claim 1 or 2, characterized in that The step of determining a point located outside the portion of the contour where the contour point is located as the first point includes: Determine a first reference point and a second reference point on the contour based on the contour point; the first reference point and the second reference point are close to the contour point, and the contour point is located between the first reference point and the second reference point; Determine a second straight line passing through the contour point and perpendicular to the first straight line where the first reference point and the second reference point are located; A point located on the second straight line and outside the contour is determined as the first point.
4. The method according to claim 3, characterized in that The step of determining a point located on the second straight line and outside the contour as the first point includes: Expanding the outline based on the expansion parameter to obtain an expanded outline of the selected area; the expanded outline is consistent with the shape of the outline; Among at least one intersection point of the second straight line and the expanded outline, an intersection point close to the outline point is determined as the first point.
5. The method according to claim 3, characterized in that There are multiple other contour points between the first reference point or the second reference point and the contour point.
6. The method according to claim 1, wherein Before determining that the candidate region is an abnormal region when a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, the method further includes: Performing a grayscale comparison between the contour point and the target area where the contour point is located to obtain a third comparison result; When the third comparison result indicates that the grayscale of the contour point is greater than or equal to the grayscale of the target area, and when a preset number of the first comparison results indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining that the selected area is an abnormal area includes: When a preset number of the first comparison results all indicate that the difference between the second grayscale and the first grayscale is greater than the preset difference, determining the selected area as the abnormal area; the preset difference is greater than 0; When the third comparison result indicates that the grayscale of the contour point is less than the grayscale of the target area, and when a preset number of the first comparison results indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining that the selected area is an abnormal area includes: When a preset number of the first comparison results all indicate that the difference between the second grayscale and the first grayscale is less than the preset difference, the to-be-selected region is determined to be the abnormal region; and the preset difference is less than 0.
7. The method according to claim 1, characterized in that When a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining that the selected area is an abnormal area includes: When the ratio of the number of first comparison results indicating that the difference between the first grayscale and the second grayscale reaches the preset difference to the number of all contour points reaches a first ratio, the candidate region is determined to be the abnormal region.
8. The method according to claim 7, characterized in that The determining that the selected area is the abnormal area when the ratio of the number of first comparison results indicating that the difference between the first grayscale and the second grayscale reaches the preset difference to the number of all contour points reaches a first ratio includes: Determining that the to-be-selected area is located in an edge area of the to-be-selected image; When the ratio of the number of first comparison results indicating that the difference between the first grayscale and the second grayscale reaches the preset difference to the number of all contour points reaches a second ratio, the selected area is determined to be the abnormal area; and the second ratio is smaller than the first ratio.
9. The method according to claim 1, characterized in that Before performing contour point extraction processing on the image to be selected to obtain a plurality of contour points, the method further includes: Performing defect detection on the semiconductor structure to obtain the candidate image of the semiconductor structure; the candidate image includes the candidate area, and the candidate area is the area where the real defect or the false defect is located; When a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, determining that the selected area is an abnormal area includes: When a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference, the to-be-selected region is determined to be the region where the real defect is located.
10. The method according to claim 1, characterized in that The contour point extraction process is performed on the selected image to obtain multiple contour points, including: Performing image enhancement processing on the image to be selected to obtain an enhanced image of the image to be selected; Contour point extraction is performed on the enhanced image to obtain the plurality of contour points; the plurality of contour points are used to identify the contour of the to-be-selected area of the enhanced image.
11. An abnormal area screening device, characterized in that: include: An extraction unit is used to perform contour point extraction processing on the selected image to obtain multiple contour points; The plurality of contour points are used to identify the contour of the to-be-selected area of the to-be-selected image; A first determining unit is configured to determine, based on the contour point, a target point pair corresponding to the contour point; the target point pair includes a first point and a second point, the first point and the second point being located on both sides of the contour portion where the contour point is located; a comparison unit, configured to perform a grayscale comparison on a first grayscale of the first point and a second grayscale of the second point to obtain a first comparison result of the target point pair; a second determining unit, configured to determine that the to-be-selected region is an abnormal region when a preset number of the first comparison results all indicate that the difference between the first grayscale and the second grayscale reaches a preset difference; The device further comprises: a comparing unit, configured to compare the size parameter of the to-be-selected area with a preset parameter to obtain a second comparison result; When the second comparison result indicates that the size parameter is greater than or equal to the preset parameter, the first determining unit is configured to: Determine a point located outside the portion of the contour where the contour point is located as the first point; A point located inside the portion of the contour where the contour point is located is determined as the second point; and the first point, the second point and the contour point are located on the same straight line.
12. A computer device, characterized in that: The computer device includes a processor and a memory: The memory is used to store program code and transmit the program code to the processor; The processor is configured to execute the method according to any one of claims 1 to 10 according to instructions in the program code.
13. A computer-readable storage medium, characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the method according to any one of claims 1 to 10.
14. A computer program product comprising a computer program, which, when run on a computer device, causes the computer device to perform the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Electronic cigarette production quality detection method based on image processing
CN117455904A
Visual measurement method and system for contour of gear block part of bulldozer
CN119048578A