A defect detection method and system
Through binary segmentation and deep learning network processing of the original image of the compound semiconductor surface, a target detection image is generated, which solves the problem of defect edges disappearing in the existing technology and achieves efficient and accurate defect detection.
Patent Information
- Application Number
- CN202410875510.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-07-02
AI Technical Summary
When the existing technology detects surface defects of compound semiconductors, the edges of the defects disappear or become weaker, which cannot meet the detection requirements and reduces the detection efficiency.
By collecting the original image of the compound semiconductor surface in real time, performing binary segmentation processing and generating a binary image, combined with the deep learning network and semantic segmentation algorithm, the first and second detection images are generated, and channel splicing is performed to fuse them into a target detection image. to accurately detect defects.
The detection accuracy and efficiency are improved, and the shape, size and location of surface defects of compound semiconductors can be clearly displayed to meet detection requirements.
Smart Images

Figure CN118425167B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of semiconductor technology, and in particular to a defect detection method and system. Background Art
[0002] With the advancement of science and technology and the rapid development of productivity, people have developed various types of compound semiconductors. In the existing compound semiconductor production process, some macroscopic defects often appear on the surface of the compound semiconductor, such as triangular defects. Based on this, it is necessary to perform corresponding tests before each compound semiconductor leaves the factory to complete the corresponding screening.
[0003] Among them, most of the existing technologies will use deep learning-based detection algorithms to determine whether the surface of an object has defects. Specifically, the existing technologies will scale the input images to different sizes for corresponding detection, so that larger targets can be reduced to a detectable size to complete subsequent detection.
[0004] However, when the existing technology is applied to the field of compound semiconductor technology, the edges of surface defects of the compound semiconductor will disappear or weaken, making it impossible to present a complete defect shape on the surface of the compound semiconductor, resulting in failure to meet the detection requirements of the compound semiconductor, thereby correspondingly reducing the detection efficiency of the compound semiconductor. Summary of the invention
[0005] Based on this, the purpose of the present invention is to provide a defect detection method and system to solve the problem that in the prior art, the edges of surface defects of compound semiconductors disappear or weaken during the detection process, resulting in the inability to meet the compound semiconductor detection requirements.
[0006] The first aspect of the embodiment of the present invention proposes:
[0007] A defect detection method, wherein the method comprises:
[0008] Collecting an original image of the surface of a compound semiconductor in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image;
[0009] Scaling the binary image to generate a corresponding first detection image, and scaling the original image to generate a corresponding second detection image;
[0010] The first detection image and the second detection image are subjected to channel stitching processing to fuse a corresponding target detection image, and defects existing on the surface of the compound semiconductor are detected in real time according to the target detection image.
[0011] The beneficial effects of the present invention are as follows: by performing binary segmentation processing on the collected original image, a binary image that highlights the defect edge can be generated accordingly. Furthermore, the required first detection image and second detection image can be generated in real time, and corresponding channel stitching processing can be performed, so as to finally fuse the required target detection image, and finally the shape, size and position of the current compound semiconductor surface defect can be judged according to the target detection image, thereby correspondingly improving the detection accuracy, meeting the detection requirements, and improving the detection efficiency.
[0012] Furthermore, the step of performing binary segmentation processing on the original image to generate a corresponding binary image includes:
[0013] When the original image is acquired in real time, a semantic segmentation algorithm adapted to the original image is called out in real time from a preset database;
[0014] According to the preset deep learning network and the semantic segmentation algorithm, a corresponding semantic segmentation model is trained in real time;
[0015] The original image is subjected to binary segmentation processing by means of the semantic segmentation model to generate the binary image accordingly.
[0016] Furthermore, the step of performing binary segmentation processing on the original image through the semantic segmentation model to generate the binary image accordingly includes:
[0017] When the semantic segmentation model is acquired in real time, the input layer, the segmentation layer, and the output layer respectively included in the semantic segmentation model are detected one by one;
[0018] The original image is input into the segmentation layer through the input layer, and the original image is subjected to binarization segmentation processing through the segmentation layer to generate the binary image;
[0019] The binary image is output in real time through the output layer.
[0020] Furthermore, the step of performing binarization segmentation processing on the original image through the segmentation layer to generate the binary image includes:
[0021] When it is detected in real time that the original image is input into the interior of the segmentation layer, a plurality of original pixel values contained in the original image are detected one by one;
[0022] Adding a corresponding target identifier to each of the original pixel values in turn, and constructing a corresponding segmentation sequence table according to a number of the original pixel values based on the target identifier;
[0023] Based on the segmentation sequence table, each of the original pixel values is subjected to binarization segmentation processing by a segmentation algorithm in the segmentation layer to generate the binary image accordingly.
[0024] Furthermore, the step of performing channel stitching processing on the first detection image and the second detection image to fuse a corresponding target detection image includes:
[0025] When the first detection image and the second detection image are respectively acquired, first image information corresponding to the first detection image and second image information corresponding to the second detection image are detected in real time;
[0026] Channel stitching processing is performed on the first detection image and the second detection image in real time according to the first image information and the second image information to correspondingly generate the target detection image.
[0027] Furthermore, the step of performing channel stitching processing on the first detection image and the second detection image according to the first image information and the second image information in real time to correspondingly generate the target detection image includes:
[0028] When the first image information is acquired in real time, a first pixel size and a first pixel channel corresponding to the first detection image are extracted in real time from the first image information;
[0029] When the second image information is acquired in real time, a second pixel size and a second pixel channel corresponding to the second detection image are extracted in real time from the second image information;
[0030] The first pixel size and the second pixel size are fused, and the first pixel channel and the second pixel channel are channel stitched to generate the target detection image accordingly.
[0031] Furthermore, the method further comprises:
[0032] When the detection of the compound semiconductor is completed, a detection report corresponding to the target detection image is generated in real time;
[0033] The detection report is sent to the user terminal of the staff in real time, and corresponding prompt information is sent to the user terminal in real time, wherein the prompt information includes sound prompt and text prompt.
[0034] The second aspect of the embodiment of the present invention proposes:
[0035] A defect detection system, wherein the system comprises:
[0036] An acquisition module, used for acquiring an original image of the surface of a compound semiconductor in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image;
[0037] A processing module, used for performing scaling processing on the binary image to generate a corresponding first detection image, and performing scaling processing on the original image to generate a corresponding second detection image;
[0038] The splicing module is used to perform channel splicing processing on the first detection image and the second detection image to fuse a corresponding target detection image, and detect defects existing on the surface of the compound semiconductor in real time according to the target detection image.
[0039] Furthermore, the acquisition module is specifically used for:
[0040] When the original image is acquired in real time, a semantic segmentation algorithm adapted to the original image is called out in real time from a preset database;
[0041] According to the preset deep learning network and the semantic segmentation algorithm, a corresponding semantic segmentation model is trained in real time;
[0042] The original image is subjected to binary segmentation processing by means of the semantic segmentation model to generate the binary image accordingly.
[0043] Furthermore, the acquisition module is specifically used for:
[0044] When the semantic segmentation model is acquired in real time, the input layer, the segmentation layer, and the output layer respectively included in the semantic segmentation model are detected one by one;
[0045] The original image is input into the segmentation layer through the input layer, and the original image is subjected to binarization segmentation processing through the segmentation layer to generate the binary image;
[0046] The binary image is output in real time through the output layer.
[0047] Furthermore, the acquisition module is also specifically used for:
[0048] When it is detected in real time that the original image is input into the interior of the segmentation layer, a plurality of original pixel values contained in the original image are detected one by one;
[0049] Adding a corresponding target identifier to each of the original pixel values in turn, and constructing a corresponding segmentation sequence table according to a number of the original pixel values based on the target identifier;
[0050] Based on the segmentation sequence table, each of the original pixel values is subjected to binarization segmentation processing by a segmentation algorithm in the segmentation layer to generate the binary image accordingly.
[0051] Furthermore, the splicing module is specifically used for:
[0052] When the first detection image and the second detection image are respectively acquired, first image information corresponding to the first detection image and second image information corresponding to the second detection image are detected in real time;
[0053] Channel stitching processing is performed on the first detection image and the second detection image in real time according to the first image information and the second image information to correspondingly generate the target detection image.
[0054] Furthermore, the splicing module is also specifically used for:
[0055] When the first image information is acquired in real time, a first pixel size and a first pixel channel corresponding to the first detection image are extracted in real time from the first image information;
[0056] When the second image information is acquired in real time, a second pixel size and a second pixel channel corresponding to the second detection image are extracted in real time from the second image information;
[0057] The first pixel size and the second pixel size are fused, and the first pixel channel and the second pixel channel are channel stitched to generate the target detection image accordingly.
[0058] Furthermore, the defect detection system also includes:
[0059] When the detection of the compound semiconductor is completed, a detection report corresponding to the target detection image is generated in real time;
[0060] The detection report is sent to the user terminal of the staff in real time, and corresponding prompt information is sent to the user terminal in real time, wherein the prompt information includes sound prompt and text prompt.
[0061] The third aspect of the embodiment of the present invention proposes:
[0062] A computer comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the defect detection method as described above when executing the computer program.
[0063] The fourth aspect of the embodiments of the present invention proposes:
[0064] A readable storage medium stores a computer program, wherein the program implements the defect detection method as described above when executed by a processor.
[0065] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0066] Figure 1 A flowchart of a defect detection method provided by a first embodiment of the present invention;
[0067] Figure 2 This is a structural block diagram of a defect detection system provided in the sixth embodiment of the present invention.
[0068] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION
[0069] In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. Several embodiments of the present invention are given in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0070] It should be noted that when an element is referred to as being "fixed to" another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.
[0071] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.
[0072] See also Figure 1 , shown is the defect detection method provided by the first embodiment of the present invention. The defect detection method provided by this embodiment can objectively and accurately detect the shape, size and position of surface defects of compound semiconductors, which correspondingly improves the detection accuracy, meets the detection requirements, and improves the detection efficiency.
[0073] Specifically, this embodiment provides:
[0074] A defect detection method comprises the following steps:
[0075] Step S10, collecting an original image of the surface of the compound semiconductor in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image;
[0076] Step S20, scaling the binary image to generate a corresponding first detection image, and scaling the original image to generate a corresponding second detection image;
[0077] Step S30, performing channel stitching processing on the first detection image and the second detection image to fuse a corresponding target detection image, and detecting defects existing on the surface of the compound semiconductor in real time according to the target detection image.
[0078] Specifically, in this embodiment, it should be noted that in order to quickly and accurately detect the corresponding defects on the surface of the compound semiconductor, it is necessary to accurately capture the image of each compound semiconductor surface and further perform subsequent judgments based on the image. Based on this, in the actual detection process, the original image of each compound semiconductor surface will first be captured in real time by a high-precision camera, and further, the current original image will be immediately subjected to corresponding binary segmentation processing, and the required binary image can be generated accordingly. It should be noted that only white pixels and black pixels will be presented inside the binary image, and the white pixels represent defects on the surface of the compound semiconductor, and the corresponding black pixels represent normal parts of the surface of the compound semiconductor.
[0079] Further, the current binary image is subjected to corresponding reduction processing by the existing area interpolation technology. Preferably, the present invention will reduce the size of the current binary image to 0.2 times of the original size. Similarly, the present invention will also perform corresponding scaling processing on the above original image by the above area interpolation technology, and also reduce it to 0.2 times of the original size. Based on this, the required first detection image and the second detection image can be generated respectively, and the current first detection image and the second detection image are equal in size. It should be noted that by reducing the binary image and the original image, the accuracy of subsequent detection can be further improved, and the details in the original image can be retained. Further, the current first detection image and the second detection image are immediately subjected to channel splicing processing, and the required target detection image can be further fused, that is, the image used for final judgment. On this basis, the defects existing on the surface of the above compound semiconductor can be clearly observed through the target detection image. At the same time, the size, shape and position of the current defect can be synchronously determined, thereby greatly improving the accuracy and efficiency of detection, meeting the requirements of detection, and improving the work efficiency of the staff.
[0080] Second embodiment
[0081] Furthermore, the step of performing binary segmentation processing on the original image to generate a corresponding binary image includes:
[0082] When the original image is acquired in real time, a semantic segmentation algorithm adapted to the original image is called out in real time from a preset database;
[0083] According to the preset deep learning network and the semantic segmentation algorithm, a corresponding semantic segmentation model is trained in real time;
[0084] The original image is subjected to binary segmentation processing by means of the semantic segmentation model to generate the binary image accordingly.
[0085] Specifically, in the present embodiment, it should be noted that after the required original image is acquired in real time through the above steps, in order to be able to quickly and effectively perform binary segmentation processing on the current original image, the pre-set database can be synchronously called out at this time, and the semantic segmentation algorithm adapted to the current original image can be further called out in the current database. Preferably, the semantic segmentation algorithm can be set to FCN (fully convolutional neural network), DeepLab (semantic segmentation network) and DDRNET (deep learning driver network) and other algorithms.
[0086] Furthermore, the pre-set deep learning network is combined with the current semantic segmentation algorithm in real time, and corresponding model training is performed, so that the required semantic segmentation model can be finally trained. Based on this, the semantic segmentation model is further used to complete the binary segmentation processing of the above-mentioned original image to obtain the above-mentioned binary image, so as to facilitate subsequent processing.
[0087] Furthermore, the step of performing binary segmentation processing on the original image through the semantic segmentation model to generate the binary image accordingly includes:
[0088] When the semantic segmentation model is acquired in real time, the input layer, the segmentation layer, and the output layer respectively included in the semantic segmentation model are detected one by one;
[0089] The original image is input into the segmentation layer through the input layer, and the original image is subjected to binarization segmentation processing through the segmentation layer to generate the binary image;
[0090] The binary image is output in real time through the output layer.
[0091] In addition, in this embodiment, it should be noted that after further obtaining the required semantic segmentation model through the above steps, it is necessary to detect the input layer, segmentation layer and output layer sequentially contained in the current semantic segmentation model. Further, in order to facilitate subsequent processing, the original image will be input into the segmentation layer through the input layer. At the same time, the current original image is binarized and segmented inside the current segmentation layer, and the binary image is further output through the segmentation layer. Based on this, the binary image can be finally output in real time through the output layer, and subsequent detection can be completed to facilitate subsequent processing.
[0092] Third embodiment
[0093] Furthermore, the step of performing binarization segmentation processing on the original image through the segmentation layer to generate the binary image includes:
[0094] When it is detected in real time that the original image is input into the interior of the segmentation layer, a plurality of original pixel values contained in the original image are detected one by one;
[0095] Adding a corresponding target identifier to each of the original pixel values in turn, and constructing a corresponding segmentation sequence table according to a number of the original pixel values based on the target identifier;
[0096] Based on the segmentation sequence table, each of the original pixel values is subjected to binarization segmentation processing by a segmentation algorithm in the segmentation layer to generate the binary image accordingly.
[0097] In addition, in the present embodiment, it should be noted that after the internal structure of the semantic segmentation model is identified through the above steps, in the actual application process, it is only necessary to input the above original image into the above segmentation layer in real time. At the same time, several original pixel values corresponding to the current original image can be detected one by one in the current segmentation layer. It should be noted that since each original pixel value is unique, based on this, in order to facilitate subsequent segmentation, it is necessary to further add corresponding target identifiers to each current original pixel value.
[0098] Furthermore, a corresponding segmentation sequence list is constructed in real time according to the order of each current target identification and the current original pixel values. At the same time, the segmentation algorithm contained in the current segmentation layer is synchronously called out. Based on this, each original pixel value in the current segmentation sequence list is immediately subjected to corresponding binarization segmentation processing in turn through the segmentation algorithm to further generate the above-mentioned binary image for subsequent processing.
[0099] Furthermore, the step of performing channel stitching processing on the first detection image and the second detection image to fuse a corresponding target detection image includes:
[0100] When the first detection image and the second detection image are respectively acquired, first image information corresponding to the first detection image and second image information corresponding to the second detection image are detected in real time;
[0101] Channel stitching processing is performed on the first detection image and the second detection image in real time according to the first image information and the second image information to correspondingly generate the target detection image.
[0102] In addition, in the present embodiment, it is also necessary to explain that after the required first detection image and second detection image are further acquired respectively through the above steps, in order to facilitate the subsequent channel stitching processing, the first image information contained in the current first detection image can be detected in real time, and correspondingly, the second image information contained in the current second detection image can be synchronously detected. On this basis, the first detection image and the second detection image are channel stitched according to the contents contained in the current first image information and the second image information, and the target detection image can be further generated for subsequent processing.
[0103] Fourth embodiment
[0104] Furthermore, the step of performing channel stitching processing on the first detection image and the second detection image according to the first image information and the second image information in real time to correspondingly generate the target detection image includes:
[0105] When the first image information is acquired in real time, a first pixel size and a first pixel channel corresponding to the first detection image are extracted in real time from the first image information;
[0106] When the second image information is acquired in real time, a second pixel size and a second pixel channel corresponding to the second detection image are extracted in real time from the second image information;
[0107] The first pixel size and the second pixel size are fused, and the first pixel channel and the second pixel channel are channel stitched to generate the target detection image accordingly.
[0108] Among them, in this embodiment, it should be pointed out that after the required first image information and second image information are respectively obtained through the above steps, the required first pixel size and first pixel channel can be finally extracted in real time from the current first image information, and correspondingly, the required second pixel size and second pixel channel can be extracted in real time from the current second image information. Among them, it should be pointed out that since the above binary image is the same size as the original image, the corresponding first pixel size and second pixel size currently extracted in real time are also the same. Based on this, the current first pixel size and the second pixel size are fused into a whole, and further the corresponding channel stitching processing is performed on the above first pixel channel and the second pixel channel within the current whole, and finally the above target detection image is generated for subsequent processing. In addition, it should be noted that, preferably, for example, the above-mentioned first pixel size and the first pixel channel can be 64*64*1, wherein the width and height of the pixel size are 64 pixels, and it is a single channel. Correspondingly, the above-mentioned second pixel size and the second pixel channel can be 64*64*1, wherein the width and height of the pixel size are 64 pixels, and it is a single channel. Based on this, after channel stitching processing, a 64*64*2 target detection image will be finally obtained to facilitate subsequent processing.
[0109] Fifth embodiment
[0110] Furthermore, the method further comprises:
[0111] When the detection of the compound semiconductor is completed, a detection report corresponding to the target detection image is generated in real time;
[0112] The detection report is sent to the user terminal of the staff in real time, and corresponding prompt information is sent to the user terminal in real time, wherein the prompt information includes sound prompt and text prompt.
[0113] In this embodiment, it should be pointed out that when the detection of the compound semiconductor is finally completed through the above steps, in order to enable the staff to obtain the detection results in time.
[0114] Furthermore, a corresponding detection report will be generated in real time according to the image information contained in the above-mentioned target detection image. Furthermore, the detection report will be immediately sent to the staff's user terminal. At the same time, corresponding prompt information will be synchronously sent to the staff's user terminal. Preferably, the prompt information includes sound prompts and text prompts to facilitate subsequent processing.
[0115] See also Figure 2 , the sixth embodiment of the present invention provides:
[0116] A defect detection system, wherein the system comprises:
[0117] An acquisition module, used for acquiring an original image of the surface of a compound semiconductor in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image;
[0118] A processing module, used for performing scaling processing on the binary image to generate a corresponding first detection image, and performing scaling processing on the original image to generate a corresponding second detection image;
[0119] The splicing module is used to perform channel splicing processing on the first detection image and the second detection image to fuse a corresponding target detection image, and detect defects existing on the surface of the compound semiconductor in real time according to the target detection image.
[0120] Furthermore, the acquisition module is specifically used for:
[0121] When the original image is acquired in real time, a semantic segmentation algorithm adapted to the original image is called out in real time from a preset database;
[0122] According to the preset deep learning network and the semantic segmentation algorithm, a corresponding semantic segmentation model is trained in real time;
[0123] The original image is subjected to binary segmentation processing by means of the semantic segmentation model to generate the binary image accordingly.
[0124] Furthermore, the acquisition module is specifically used for:
[0125] When the semantic segmentation model is acquired in real time, the input layer, the segmentation layer, and the output layer respectively included in the semantic segmentation model are detected one by one;
[0126] The original image is input into the segmentation layer through the input layer, and the original image is subjected to binarization segmentation processing through the segmentation layer to generate the binary image;
[0127] The binary image is output in real time through the output layer.
[0128] Furthermore, the acquisition module is also specifically used for:
[0129] When it is detected in real time that the original image is input into the interior of the segmentation layer, a plurality of original pixel values contained in the original image are detected one by one;
[0130] Adding a corresponding target identifier to each of the original pixel values in turn, and constructing a corresponding segmentation sequence table according to a number of the original pixel values based on the target identifier;
[0131] Based on the segmentation sequence table, each of the original pixel values is subjected to binarization segmentation processing by a segmentation algorithm in the segmentation layer to generate the binary image accordingly.
[0132] Furthermore, the splicing module is specifically used for:
[0133] When the first detection image and the second detection image are respectively acquired, first image information corresponding to the first detection image and second image information corresponding to the second detection image are detected in real time;
[0134] Channel stitching processing is performed on the first detection image and the second detection image in real time according to the first image information and the second image information to correspondingly generate the target detection image.
[0135] Furthermore, the splicing module is also specifically used for:
[0136] When the first image information is acquired in real time, a first pixel size and a first pixel channel corresponding to the first detection image are extracted in real time from the first image information;
[0137] When the second image information is acquired in real time, a second pixel size and a second pixel channel corresponding to the second detection image are extracted in real time from the second image information;
[0138] The first pixel size and the second pixel size are fused, and the first pixel channel and the second pixel channel are channel stitched to generate the target detection image accordingly.
[0139] Furthermore, the defect detection system also includes:
[0140] When the detection of the compound semiconductor is completed, a detection report corresponding to the target detection image is generated in real time;
[0141] The detection report is sent to the user terminal of the staff in real time, and corresponding prompt information is sent to the user terminal in real time, wherein the prompt information includes sound prompt and text prompt.
[0142] A seventh embodiment of the present invention provides a computer, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the defect detection method described above when executing the computer program.
[0143] An eighth embodiment of the present invention provides a readable storage medium having a computer program stored thereon, wherein the program implements the defect detection method as described above when executed by a processor.
[0144] To sum up, the defect detection method and system provided by the above embodiments of the present invention can objectively and accurately determine the shape, size and position of surface defects of compound semiconductors based on the target detection image, thereby correspondingly improving the detection accuracy, while meeting the detection requirements and improving the detection efficiency.
[0145] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0146] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0147] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0148] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0149] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0150] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
Claims
1. A defect detection method, characterized in that: The method comprises: Collecting an original image of the compound semiconductor surface in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image, wherein only white pixels and black pixels are presented inside the binary image, and the white pixels represent defects on the compound semiconductor surface, and the black pixels represent normal parts of the compound semiconductor surface; Scaling the binary image to generate a corresponding first detection image, and scaling the original image to generate a corresponding second detection image, wherein both the binary image and the original image are reduced to 0.2 times of their original sizes; Perform channel stitching processing on the first detection image and the second detection image to fuse a corresponding target detection image, and detect defects existing on the surface of the compound semiconductor in real time according to the target detection image; The step of performing binary segmentation processing on the original image to generate a corresponding binary image comprises: When the original image is acquired in real time, a semantic segmentation algorithm adapted to the original image is called out in real time from a preset database; According to the preset deep learning network and the semantic segmentation algorithm, a corresponding semantic segmentation model is trained in real time; Performing binary segmentation processing on the original image through the semantic segmentation model to generate the binary image accordingly; The step of performing binary segmentation processing on the original image by using the semantic segmentation model to generate the binary image accordingly includes: When the semantic segmentation model is acquired in real time, the input layer, the segmentation layer, and the output layer respectively included in the semantic segmentation model are detected one by one; The original image is input into the segmentation layer through the input layer, and the original image is subjected to binarization segmentation processing through the segmentation layer to generate the binary image; Output the binary image in real time through the output layer; The step of performing binarization segmentation processing on the original image through the segmentation layer to generate the binary image includes: When it is detected in real time that the original image is input into the interior of the segmentation layer, a plurality of original pixel values contained in the original image are detected one by one; Adding a corresponding target identifier to each of the original pixel values in turn, and constructing a corresponding segmentation sequence table according to a number of the original pixel values based on the target identifier; Based on the segmentation sequence table, each of the original pixel values is subjected to a binarization segmentation process by using a segmentation algorithm in the segmentation layer to generate the binary image accordingly; The step of performing channel stitching processing on the first detection image and the second detection image to fuse a corresponding target detection image includes: When the first detection image and the second detection image are respectively acquired, first image information corresponding to the first detection image and second image information corresponding to the second detection image are detected in real time; Perform channel stitching processing on the first detection image and the second detection image according to the first image information and the second image information in real time to generate the target detection image accordingly; The step of performing channel stitching processing on the first detection image and the second detection image according to the first image information and the second image information in real time to generate the target detection image accordingly includes: When the first image information is acquired in real time, a first pixel size and a first pixel channel corresponding to the first detection image are extracted in real time from the first image information; When the second image information is acquired in real time, a second pixel size and a second pixel channel corresponding to the second detection image are extracted in real time from the second image information; Performing a fusion process on the first pixel size and the second pixel size, and performing a channel stitching process on the first pixel channel and the second pixel channel, so as to correspondingly generate the target detection image, wherein the first pixel size is the same as the second pixel size, the first detection image and the second detection image are both single-channel images, and the target detection image is a dual-channel image; The method further comprises: When the detection of the compound semiconductor is completed, a detection report corresponding to the target detection image is generated in real time; The detection report is sent to the user terminal of the staff in real time, and corresponding prompt information is sent to the user terminal in real time, wherein the prompt information includes sound prompt and text prompt.
2. A defect detection system, characterized in that: For implementing the defect detection method according to claim 1, the system comprises: An acquisition module, used for acquiring an original image of the surface of a compound semiconductor in real time, and performing binary segmentation processing on the original image to generate a corresponding binary image; A processing module, used for performing scaling processing on the binary image to generate a corresponding first detection image, and performing scaling processing on the original image to generate a corresponding second detection image; The splicing module is used to perform channel splicing processing on the first detection image and the second detection image to fuse a corresponding target detection image, and detect defects existing on the surface of the compound semiconductor in real time according to the target detection image.
3. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the defect detection method according to claim 1 is implemented.
4. A readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the defect detection method according to claim 1 is implemented.
