Chip mounting precision visual detection method
By using machine vision technology for chip identification and positioning in the placement machine, the problems of instability and low efficiency of manual visual inspection and mechanical positioning are solved, high-precision and high-speed chip placement is achieved, and the stability of the automated production line is ensured. run.
Patent Information
- Application Number
- CN202310292097.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing placement machines, manual visual inspection and mechanical positioning methods have instability, low efficiency and risk of damage to the chip, making it difficult to meet high-precision and high-speed placement requirements.
Using a chip identification and positioning system based on machine vision, image processing and template matching technology are used to achieve accurate identification, positioning and defect detection of chips, providing result parameters such as center coordinates and rotation angles, and performing ink point analysis and shape feature matching. Chip feature extraction and defect detection.
It improves the accuracy and efficiency of chip mounting, reduces the risk of manual errors and mechanical damage, meets the needs of high-precision and high-speed mounting, and achieves stable operation of the automated production line.
Smart Images

Figure CN118566248A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chip patch detection, and in particular to a chip patch accuracy visual detection method. Background Art
[0002] With the pursuit of high density, high reliability, miniaturization and low cost in the electronics industry, high integration and various new electronic devices generally adopt surface mount packaging. Surface mount technology came into being. It is a comprehensive technology involving components, assembly equipment, welding methods and assembly auxiliary materials, which is used to mount electronic components on printed circuit boards. It is considered a revolution in electronic assembly technology. The assembly line is mainly composed of screen printing machines, mounters and welding machines, and the mounter is the most critical equipment and the equipment with the highest technical content. Its price usually accounts for the total price of the assembly line, so it has always been the focus of technical research. The fully automatic mounter is a device used to accurately place the chip on the target frame on the chip production line. It is one of the essential key equipment on the chip automation production line. Today's popular high-performance mounters have a common feature that they all use auxiliary positioning systems based on machine vision technology. Because machine vision has unique advantages in improving detection accuracy and enhancing detectability, it has been increasingly widely used in surface mount components, surface mount product quality inspection and other fields. Now, almost all high-precision placement machine systems use visual subsystems to replace traditional mechanical positioning. Through this subsystem, the original position information of the target is sensed and processed, and the feedback information required by the machine is obtained, providing correct correction data for accurate placement of components.
[0003] At present, the technology in foreign countries has basically matured in this field, and the development of equipment has also been completed, and it has gradually developed in the direction of intelligentization and highly centralized management. At present, foreign mid-to-high-end placement machine manufacturers have implemented a strict blockade policy on core technologies. At present, the products of these companies occupy most of the domestic market. However, these products are expensive, and only strong companies can afford them, while some small and medium-sized customers cannot or are unwilling to afford such expensive equipment.
[0004] As one of the key technologies of the placement machine, high-speed visual recognition technology determines the placement capability of the placement machine and directly affects the placement accuracy and speed of the placement machine. Therefore, the study of the detection system of the placement machine based on machine vision will help to develop and enrich the basic theory and methods of visual positioning, and provide certain basic theories and unit technologies for the development of high-performance packaging equipment with independent intellectual property rights in China.
[0005] The rapid and precise positioning of mechanical motion systems is a comprehensive technology, and its basis is the machine vision system. The machine vision system provides the position of the moving target and is composed of optical lighting system, optical imaging system, camera device, image processing software and other parts. Among them, high-precision image processing methods play a decisive role in the accuracy of the machine vision system.
[0006] In machine vision systems, visual information processing technology mainly relies on image processing methods, which include image enhancement, smoothing filtering, image segmentation, morphological analysis, edge sharpening, edge detection, feature extraction, template matching, Fourier transform and other image recognition and understanding contents. After these processes, the quality of the output image is improved to a considerable extent, which not only improves the visual effect of the image, but also facilitates the computer to analyze, process and recognize the image.
[0007] Generally speaking, machine vision image processing software is mainly used in the following three aspects: surface inspection, image measurement, and image recognition. Depending on the application purpose, the image processing methods used by each system are also different. There are many image processing methods, and there is no specific type dedicated to machine vision inspection, but it is obvious that many methods cannot meet the needs of machine vision inspection. Image processing methods suitable for machine vision inspection are those that emphasize the application of target features and real-time image processing methods, as well as visual inspection systems based on industrial control computers and the integration of methods therein.
[0008] The placement machine is a precision manufacturing equipment that integrates optics, machinery, electricity, computer vision, and automation technology to accurately pick up various electronic components and place them on the target frame. It uses a certain method to accurately pick up surface mount components by moving the suction head and place them on the specified position on the target frame. There are several positioning methods for high-precision automatic placement machines, including mechanical positioning, visual positioning, and laser positioning. Visual positioning uses a high-magnification imaging system and image processing technology to significantly improve positioning accuracy and placement efficiency. It is currently the dominant positioning method. The current fully automatic placement machine mainly uses machine vision technology to analyze and process chip images through image processing and pattern recognition methods to complete chip identification and positioning and defect detection. Identification and positioning is to give motion control parameters to determine the precise position of the chip. Defect detection requires the completion of ink spots, missing corners, broken edges, scratches, and adjacent chips. The positioning of the chip can pass the precise information of the chip position to the motion control module, so that the control module can adjust the control parameters in real time. According to the connection between visual inspection and motion control, the visual inspection system of the placement machine is composed as follows Figure 1 shown.
[0009] Figure 1In the image acquisition device, the light source, lens, camera, and image acquisition card belong to the image acquisition device, whose main function is to complete the acquisition of chip images and send them to the control computer. The industrial control computer is an image processing device, which mainly completes the processing and analysis of chip images, converts the processing results into motion control parameters, and transmits them to the motion control part. The motion control part generates motion control instructions based on the transmitted control parameters and controls the movement of the chip stage to make the chip reach the target position. The image processing part of the industrial control computer specifically uses digital image processing technology to perform necessary preliminary processing such as preprocessing, edge detection, and image segmentation on the acquired images, so as to facilitate the special component positioning method for the specific detected target. The component positioning method is mainly aimed at the complexity and diversity of the packaging forms of the patch components. The rules are summarized to design targeted positioning methods for components of various packaging types to meet the high-speed and high-precision requirements of the patch machine vision system.
[0010] In the placement machine equipment, after the nozzle head picks up the specified type of chip, it is necessary to first perform defect inspection on the chip. If the chip is found to be intact, the chip is then positioned to prepare for the next step of precise placement. Early developed placement machines all used manual visual inspection and mechanical centering to detect and locate chips. The accuracy and efficiency of their detection and positioning are far from meeting the placement requirements of placement machines. On the one hand, the primitive method of manual visual inspection is easily affected by many subjective factors, such as individual detection standards, physical and psychological conditions, and eye fatigue, which all lead to instability and unreliability of the detection results. In addition, the increase in chip integration and miniaturization bring inevitable troubles to manual detection. Some minor defects can no longer be detected by the human eye. At the same time, the increase in the number of chip output terminals also makes manual visual inspection very inefficient, which cannot keep up with the rapid development of automated production lines and has high labor costs. On the other hand, mechanical centering positioning is a contact-based mechanical positioning method, which is applicable to a limited number of chip types. Using a mechanical clamping head to contact the chip itself may damage the chip pins. The reference of the positioning system is also easily affected by the contact state, resulting in low mechanical positioning accuracy. In addition, the movement of the machine requires a certain amount of time, and its positioning speed and efficiency are not impressive.
[0011] With the development of computer technology and digital image processing technology, machine vision has emerged and has been widely used. Its main functions are tracking, identifying and detecting targets. Its main application areas are security monitoring, quality inspection and intelligent robots used to replace places that are difficult for humans to reach. Machine vision is a technology that uses machines to replace human eyes and brains. It is a comprehensive technology with a wide range of applications. It originated in the 1950s. It uses optical devices and non-contact sensors to obtain target images and processes the target images to obtain the required feature information. In addition, machine vision can also transmit the obtained information to the control unit, thereby driving the actuator to make corresponding actions to achieve control and guidance. It can be seen that the machine vision system includes light sources, cameras, lenses, image acquisition cards, computer hardware and software, and related external devices, which respectively realize image acquisition functions, judgment and recognition functions, and automatic control functions. Machine vision overcomes the various drawbacks of traditional manual visual inspection and machine alignment. As a high-precision, high-speed, and high-reliability technology, it is used in the detection and positioning system of placement machines and has become one of the necessary systems for high-performance placement machines. At the same time, in the surface mount technology production line, there are many places where machine vision technology is used, such as positioning the reference points and chip positions of the PCB board, inspecting the welding quality of the PCB board after mounting, and calibrating the parameters of the fixed camera and the flying camera in the placement machine, which reduces the difficulty of the mechanical design of the equipment. In summary, the main functions of machine vision in the surface mount production line are component grasping and placement, target detection, target recognition, navigation and trajectory control, which can be fully reflected in screen printing machines, placement machines and automatic optical inspection equipment. In the placement machine independently researched by the research team used in the research of this invention, its detection and positioning system is designed based on machine vision. The schematic diagram of the machine vision system of the placement machine is shown in the figure below. Figure 2 shown.
[0012] exist Figure 2 In the machine vision system of the placement machine, PCB12 is fixed on the PCB support plate 11, the chip 13 is mounted on the PCB12, the placement head 18 is fixed on the XYZθ four-axis motion module, and a suction nozzle 17 is fixed on the placement head 18. The suction nozzle 17 sucks the component 15, and the placement head 18 is driven by the XYZθ four-axis motion module to move in the XYZθ four-axis direction. The placement head 18 drives the suction nozzle 17 and the component 15 to move, and the visual positioning system 19 controls the upward camera 14 and the downward camera 16.
[0013] There are two image acquisition devices, namely a reference camera with a downward field of view (also known as a downward-looking camera 16) and a fixed camera with an upward field of view (also known as an upward-looking camera 14). These two cameras belong to two visual subsystems, namely the reference point positioning visual subsystem and the chip detection and positioning visual subsystem. These two subsystems play a vital role in the working process of the placement machine, and their accuracy and speed restrict the working efficiency of the placement machine.
[0014] (1) The reference point positioning system uses a reference camera installed on the placement head to collect reference point images. The reference camera moves with the placement head and can reach above the reference points at different positions. After processing and analyzing the collected images, the position of the reference points in the placement machine coordinate system is obtained, thereby determining the position of the PCB board, completing the positioning of the PCB board, and then obtaining the accurate coordinate position of the chip to be mounted.
[0015] (2) The detection and positioning system uses a fixed camera installed on the base of the placement machine to collect chip images. The fixed camera cannot move, so the chip image can only be collected by the nozzle installed on the placement head after the chip is sucked up and the placement head moves to the top of the fixed camera. After the chip image is processed and analyzed, the chip detection is completed and the chip positioning information is obtained. When the chip is confirmed to be intact, the chip posture information is fed back to the computer, thereby realizing the chip suction error compensation and preparing for the subsequent precise placement. The present invention studies a chip detection and positioning system. In the process of chip mounting, chip detection and positioning are indispensable processes and also key links. Firstly, the integrity of the chip itself is a prerequisite for mounting. If the chip has solder balls that are too large or too small, the solder balls are not in the correct position, or there is solder leakage or redundant solder balls, subsequent work will become meaningless. Secondly, after determining that the chip has no defects, during the process of the nozzle head sucking the chip, the position sucked by the nozzle head cannot coincide with the center of the chip, and the chip will inevitably produce a deflection angle with the machine coordinate axis of the mounter. If the chip posture is not compensated and corrected, it will be mounted on the PCB board in the wrong position, resulting in failure of the mounting work.
[0016] After introducing the workflow of the chip detection and positioning system, it can be found that in addition to the mechanical structure design and software and hardware selection of the system, the image processing method in chip detection and positioning is of paramount importance. The accuracy, speed and robustness of the method will directly affect the accuracy, speed and applicable scope of detection and positioning. Therefore, the present invention mainly studies the detection and positioning method of the chip. In the detection and positioning system of this chip mounter, it is necessary to perform a teaching process and a detection process on the chip. The teaching process is to obtain the data information of the chip after a series of method processes are performed on the complete and defect-free chip without any prior data, and save it in the database as the standard data of the detection process; the detection process is to design a set of methods to obtain the data to be detected from the chip to be detected, and compare it with the standard data. After determining that the various data of the chip are within the standard range, the corresponding method is designed for the chip to complete the positioning process. The teaching process is consistent with the method involved in the detection process, and the method studied by the present invention is applicable to both processes. Summary of the invention
[0017] In view of the deficiencies in the prior art, the technical problem to be solved by the present invention is to provide a chip placement accuracy visual inspection method. The purpose of the present invention is to complete chip identification and positioning and defect detection. Identification and positioning is to determine the position of the chip and give the result parameters such as the center position coordinates and rotation angle of the chip that meet certain accuracy requirements. Defect detection is to complete the detection of ink dots, missing corners, etc. The method flow, system functions and implementation effects of the chip identification and positioning system implemented in the vc++6.0 environment are introduced and evaluated.
[0018] To solve the above technical problems, the present invention is implemented by the following scheme: A chip patch accuracy visual detection method of the present invention includes a chip recognition and positioning system, and the chip recognition and positioning system includes:
[0019] a. An image display component, used to display the acquired image and set the template, ink dots, the range of the search area on the image and display the identified search results;
[0020] b. Template component, which has functions of selecting template, training template, saving and loading template;
[0021] c. an ink dot interface component, which performs ink dot analysis according to the position, range, size and closed value of the ink dot in a, and then displays the border of the ink dot on the image display component;
[0022] The chip placement accuracy visual inspection method comprises the following steps:
[0023] Step 1: Specify the search area on the captured image and perform comparative analysis based on the set similarity and template;
[0024] Step 2, marking the analysis result of step 1 on the image display component, and marking the calculated result angle with a border and the center coordinates of the result angle with a cross;
[0025] Step 3: When ink dot analysis is optional, the relative position of the ink dot is calculated according to the template range and the position of the ink dot. On each result, ink dot analysis is performed according to the relative position of the ink dot, the search range of the ink dot, the size of the ink dot, and the threshold of the ink dot to determine whether there is an ink dot. If the ink dot exists, the border of the ink dot is displayed on the image display component.
[0026] Step 4: The program finally provides the center coordinates, angle, and whether there is an ink dot for each chip found on the image;
[0027] Step 5: Set ink dot parameters and search parameters:
[0028] The ink dot parameters include ink dot pattern, grayscale closed value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot pattern is black dots with white background. When the chip brightness is low and the ink dot brightness is high, the ink dot pattern is white dots with black background. The grayscale closed value is used to segment the image for connected domain analysis, and the spot size is used to filter out connected domains that do not meet the ink dot size.
[0029] The search parameters include at least the number of searches, the similarity score, and the search angle. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.
[0030] Step 6, implementing chip feature matching according to the ink dot parameters and search parameters set in step 5, wherein the chip feature matching includes feature 1 and feature 2, wherein feature 1 is shape feature matching of a single chip, and feature 2 is corner feature matching of a single chip;
[0031] The shape feature matching is obtained based on the length, width and area of the single chip and through connected domain analysis, which is to perform histogram waveform analysis on the filtered single chip image. When there is a closed value that results in a closed connected domain after binarization of the image according to the closed value, the largest one of these connected domains is selected. The connected domain represents the internal area of the chip, and the length, width, area and center of the connected domain are calculated as the shape feature of the single chip.
[0032] The corner point feature matching is to extract the corner points in the single chip image for matching.
[0033] Furthermore, the chip placement accuracy visual inspection method further includes template processing, and the template processing includes acquiring a template image, preprocessing the template image, determining whether the template selection is appropriate, and template training;
[0034] The template image is obtained by dragging a rectangle on the loaded chip image with a mouse;
[0035] The template image preprocessing is to preprocess the template image after obtaining the template image and before extracting the template features. The template image preprocessing adopts filtering processing to eliminate the noise in the chip image.
[0036] The judgment of whether the template is properly selected is to judge whether the template image is properly selected after the template image is filtered;
[0037] The template training is to perform template training when the template is selected. The template training is to extract the template features. The template feature extraction refers to the chip feature matching.
[0038] Furthermore, the judgment of whether the template selection is appropriate is based on a multi-objective segmentation method of cluster analysis, and the selected template includes at least a complete chip area to extract its shape features;
[0039] First, the histogram waveform analysis is performed on the filtered template image. When there is a grayscale value of a certain trough so that there is a closed connected domain after the image is binarized according to the closed value, and the white is surrounded by a black, then the white is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is selected properly; otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is sought as a reasonable minimum value. If no reasonable minimum value is found within this range, the template selection is considered unreasonable, and a new template selection is prompted.
[0040] Furthermore, the chip placement accuracy visual inspection method further includes a search area processing module. After the template is set, the search area processing module finds the chip contained in a rectangle dragged out of any search area on the chip image according to the following steps:
[0041] 4.1, Search area image preprocessing: Through filtering, it is used to eliminate various noises in the chip image;
[0042] 4.2. Multi-target segmentation of search area image: Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the interpretation value to segment the image and analyze it. Filter the linked list according to the shape features of the template to find the grayscale value that meets the conditions the most as the final reasonable interpretation value. Each of the linked lists obtained with it as the interpretation value is a potential chip, and each chip is accurately matched and located.
[0043] 4.3. Accurate matching of suspected chips and exclusion of defective chips: Take an image block larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, binarize the local block with a reasonable closed value, and then analyze it. Use the ink dot parameters to filter the linked list. If there are ink dots, it is a defective chip and no longer requires precise positioning. If there are no ink dots, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient. Then, a rectangular fitting is performed on the edge of the suspected chip to obtain the angle and center of the suspected chip. If the angle is within the specified search range, it is a qualified chip.
[0044] Furthermore, the chip placement accuracy visual inspection method also includes a defective chip elimination module, which detects defective chips through image processing and eliminates chips that fail the inspection.
[0045] Furthermore, the defective chip rejection module is used to reject defective ink dot chips, defective angle offset chips, and defective incomplete chips;
[0046] The ink dot chip is an ink dot mark made by a wafer circuit inspection machine on the surface of a chip with unqualified electrical performance, and the ink dot mark has an obvious peak on the image histogram;
[0047] The angle-shifted chip is a chip whose position is shifted so that the edge of the chip has a certain angle with the horizontal and vertical lines;
[0048] The defective chip is a chip with a chip surface having a missing corner or being damaged.
[0049] Furthermore, the defective chip rejection module includes an ink spot chip rejection step, an angle deviation chip rejection step, and a defective chip rejection method;
[0050] The ink dot chip removal step comprises:
[0051] Step 1: Binarize the image of each suspected chip area obtained after rough positioning using a set grayscale value;
[0052] Step 2: Perform Blob analysis on the binary suspected chip to obtain a Blob linked list;
[0053] Step 3: Filter all connected domains with the specified spot area. After filtering, if there is no connected domain that meets the requirements, it is a qualified chip. Otherwise, it indicates that there are ink spots on the suspected chip, and the chip with ink spots will be removed.
[0054] The steps of angle offset chip rejection include:
[0055] Step 1: matching the suspected chip with the template chip;
[0056] Step 2: If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip;
[0057] Step 3: Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be removed.
[0058] The defective chip elimination method is to compare the target chip with the template chip area to determine whether the area of the target chip meets the requirements, and then make a decision to eliminate or retain.
[0059] Compared with the prior art, the beneficial effects of the present invention are:
[0060] 1. The chip patch accuracy visual detection method of the present invention first pre-processes the pictures taken by the camera, accurately judges the light intensity through intuitive judgment of the histogram and gray value calculation, analyzes the principles and advantages and disadvantages of various filtering methods, and proposes an adaptive median method for denoising and protecting edge information to effectively remove salt and pepper noise. Based on the gray value image segmentation method, a two-dimensional OTSU method and a watershed method based on the traditional OTSU method are proposed, and the segmentation results and running time of the three methods are analyzed. The OTSU method with the shortest running time and satisfactory segmentation results is still selected.
[0061] 2. A method for obtaining chip information is proposed. The principles and shortcomings of the traditional crawler method are analyzed, and the eight-neighborhood tracking method is used to extract the contour of the image. At the same time, considering that the OTSU method is global and cannot meet local requirements, the contour is effectively screened again. A k-means clustering method with improved initial center points is proposed to achieve the segmentation of the upper and lower pins, a method based on the minimum circumscribed rectangle of the convex hull is proposed to achieve rough positioning of the chip, and the affine transformation method is used to positively rotate the chip contour. The vertical projection method is used to mark the upper and lower pins, and the pin foot and root are segmented according to the coordinate characteristics. Two parameter detection methods based on the projection method and the direct method are proposed. The accuracy of the methods is compared, and the latter is selected to achieve high-precision chip parameter detection.
[0062] 3. Aiming at the characteristics of TR type chips, the present invention proposes three chip positioning methods. The method based on image segmentation is based on obtaining the upper and lower foot contours through image segmentation, and is implemented according to the foot fitting straight line and the minimum circumscribed rectangle of the contour. Both edge grayscale matching and edge gradient matching belong to contour matching methods. Both extract edge grayscale values and gradient values as features, respectively, and propose pyramid scaling to improve the efficiency of the method. The possible defects of chip offset angles, missing pins, height offset, and position offset are analyzed, and a defect detection system for the chip is designed according to the characteristics of the defective pins, so that the defective chip can be detected.
[0063] 4. The accuracy and stability of the test method are divided into two parts: the pin parameter method test and the positioning method test. The error range of the pin parameter method is within ±0.1mm, and the method accuracy meets the requirements. At the same time, the method is basically stable when the illumination changes. The accuracy of the three positioning methods is compared through multiple sets of data, and all can meet the accuracy requirement of ±0.2°. The time and complexity of the methods are compared, and the positioning method based on image segmentation is selected. At the same time, the stability of the method is tested, and the positioning results of the same chip under different illumination conditions are compared. The results are relatively concentrated, not greatly affected by illumination, and the method is relatively stable. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 It is a structural block diagram of the visual inspection system of the chip placement machine in the prior art.
[0065] Figure 2 The structure diagram of the machine vision system of the chip placement machine in the prior art.
[0066] Figure 3 This is a flow chart of chip identification and positioning of the present invention.
[0067] Figure 4 The photographs are of the qualified template chip and the unqualified template chip of the present invention and the corresponding closed connected domains and unclosed connected domains respectively.
[0068] Figure 5 The chip image and the uneven illumination correction image are the processing results when the salt and pepper noise intensity is 0.01 according to the present invention.
[0069] Figure 6 These are the Otsu binarization image and the morphological processing image of the processing result when the salt and pepper noise intensity is 0.01 according to the present invention.
[0070] Figure 7 It is the key edge point set of the solder ball and the least square fitting solder ball position image of the processing result when the salt and pepper noise intensity is 0.01 according to the present invention.
[0071] Figure 8The chip image and the uneven illumination correction image are the processing results when the salt and pepper noise intensity is 0.1 according to the present invention.
[0072] Fig. 9 These are the Otsu binarization image and the morphological processing image of the processing result when the salt and pepper noise intensity is 0.1 according to the present invention.
[0073] Fig.10 It is the key edge point set of the solder ball and the least square fitting solder ball position image of the processing result when the salt and pepper noise intensity is 0.1 according to the present invention.
[0074] Fig.11 The figure is a flow chart of the teaching process of the present invention.
[0075] Fig.12 It is a flow chart of the detection process of the present invention.
[0076] Markings in the accompanying drawings: PCB support plate 11, PCB 12, chip 13, upward camera 14, component 15, downward camera 16, suction nozzle 17, patch head 18, and visual positioning system 19. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention, so that the advantages and features of the present invention can be more easily understood by those skilled in the art, thereby making a clearer and more explicit definition of the protection scope of the present invention. Obviously, the embodiments described in the present invention are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0078] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0079] Embodiment 1: The specific structure of the present invention is as follows:
[0080] Please refer to the attached Figure 3-4 A chip placement accuracy visual inspection method of the present invention includes a chip identification and positioning system, and the chip identification and positioning system includes:
[0081] a. An image display component, used to display the acquired image and set the template, ink dots, the range of the search area on the image and display the identified search results;
[0082] b. Template component, which has functions of selecting template, training template, saving and loading template;
[0083] c. an ink dot interface component, which performs ink dot analysis according to the position, range, size and closed value of the ink dot in a, and then displays the border of the ink dot on the image display component;
[0084] The chip placement accuracy visual inspection method comprises the following steps:
[0085] Step 1: Specify the search area on the captured image and perform comparative analysis based on the set similarity and template;
[0086] Step 2, marking the analysis result of step 1 on the image display component, and marking the calculated result angle with a border and the center coordinates of the result angle with a cross;
[0087] Step 3: When ink dot analysis is optional, the relative position of the ink dot is calculated according to the template range and the position of the ink dot. On each result, ink dot analysis is performed according to the relative position of the ink dot, the search range of the ink dot, the size of the ink dot, and the threshold of the ink dot to determine whether there is an ink dot. If the ink dot exists, the border of the ink dot is displayed on the image display component.
[0088] Step 4: The program finally provides the center coordinates, angle, and whether there is an ink dot for each chip found on the image;
[0089] Step 5: Set ink dot parameters and search parameters:
[0090] The ink dot parameters include ink dot pattern, grayscale closed value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot pattern is black dots with white background. When the chip brightness is low and the ink dot brightness is high, the ink dot pattern is white dots with black background. The grayscale closed value is used to segment the image for connected domain analysis, and the spot size is used to filter out connected domains that do not meet the ink dot size.
[0091] The search parameters include at least the number of searches, the similarity score, and the search angle. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.
[0092] Step 6, implementing chip feature matching according to the ink dot parameters and search parameters set in step 5, wherein the chip feature matching includes feature 1 and feature 2, wherein feature 1 is shape feature matching of a single chip, and feature 2 is corner feature matching of a single chip;
[0093] The shape feature matching is obtained based on the length, width and area of the single chip and through connected domain analysis, which is to perform histogram waveform analysis on the filtered single chip image. When there is a closed value that results in a closed connected domain after binarization of the image according to the closed value, the largest one of these connected domains is selected. The connected domain represents the internal area of the chip, and the length, width, area and center of the connected domain are calculated as the shape feature of the single chip.
[0094] The corner point feature matching is to extract the corner points in the single chip image for matching.
[0095] A preferred technical solution of this embodiment: the chip placement accuracy visual inspection method further includes template processing, and the template processing includes acquiring a template image, preprocessing the template image, judging whether the template selection is appropriate, and template training;
[0096] The template image is obtained by dragging a rectangle on the loaded chip image with a mouse;
[0097] The template image preprocessing is to preprocess the template image after obtaining the template image and before extracting the template features. The template image preprocessing adopts filtering processing to eliminate the noise in the chip image.
[0098] The judgment of whether the template is properly selected is to judge whether the template image is properly selected after the template image is filtered;
[0099] The template training is to perform template training when the template is selected. The template training is to extract the template features. The template feature extraction refers to the chip feature matching.
[0100] A preferred technical solution of this embodiment: the judgment of whether the template selection is appropriate is based on a multi-target segmentation method of cluster analysis, and the selected template includes at least a complete chip area to extract its shape features;
[0101] First, the histogram waveform analysis is performed on the filtered template image. When there is a grayscale value of a certain trough so that there is a closed connected domain after the image is binarized according to the closed value, and the white is surrounded by a black, then the white is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is selected properly; otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is sought as a reasonable minimum value. If no reasonable minimum value is found within this range, the template selection is considered unreasonable, and a new template selection is prompted.
[0102] A preferred technical solution of this embodiment: the chip placement accuracy visual inspection method further includes a search area processing module. After the template is set, the search area processing module finds the chip contained in the rectangle dragged out by any search area on the chip image according to the following steps:
[0103] 4.1, Search area image preprocessing: Through filtering, it is used to eliminate various noises in the chip image;
[0104] 4.2. Multi-target segmentation of search area image: Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the interpretation value to segment the image and analyze it. Filter the linked list according to the shape features of the template to find the grayscale value that meets the conditions the most as the final reasonable interpretation value. Each of the linked lists obtained with it as the interpretation value is a potential chip, and each chip is accurately matched and located.
[0105] 4.3. Accurate matching of suspected chips and exclusion of defective chips: Take an image block larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, binarize the local block with a reasonable closed value, and then analyze it. Use the ink dot parameters to filter the linked list. If there are ink dots, it is a defective chip and no longer requires precise positioning. If there are no ink dots, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient. Then, a rectangular fitting is performed on the edge of the suspected chip to obtain the angle and center of the suspected chip. If the angle is within the specified search range, it is a qualified chip.
[0106] A preferred technical solution of this embodiment: the chip placement accuracy visual inspection method also includes a defective chip elimination module, which detects defective chips through image processing and eliminates chips that fail the inspection.
[0107] A preferred technical solution of this embodiment: the defective chip removal module removes defective ink dot chips, defective angle offset chips, and defective incomplete chips;
[0108] The ink dot chip is an ink dot mark made by a wafer circuit inspection machine on the surface of a chip with unqualified electrical performance, and the ink dot mark has an obvious peak on the image histogram;
[0109] The angle-shifted chip is a chip whose position is shifted so that the edge of the chip has a certain angle with the horizontal and vertical lines;
[0110] The defective chip is a chip with a chip surface having a missing corner or being damaged.
[0111] A preferred technical solution of this embodiment: the defective chip removal module includes an ink spot chip removal step, an angle deviation chip removal step and a defective chip removal method;
[0112] The ink dot chip removal step comprises:
[0113] Step 1: Binarize the image of each suspected chip area obtained after rough positioning using a set grayscale value;
[0114] Step 2: Perform Blob analysis on the binary suspected chip to obtain a Blob linked list;
[0115] Step 3: Filter all connected domains with the specified spot area. After filtering, if there is no connected domain that meets the requirements, it is a qualified chip. Otherwise, it indicates that there are ink spots on the suspected chip, and the chip with ink spots will be removed.
[0116] The steps of angle offset chip rejection include:
[0117] Step 1: matching the suspected chip with the template chip;
[0118] Step 2: If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip;
[0119] Step 3: Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be removed.
[0120] The defective chip elimination method is to compare the target chip with the template chip area to determine whether the area of the target chip meets the requirements, and then make a decision to eliminate or retain.
[0121] Embodiment 2:
[0122] The following is a detailed implementation process of the chip placement accuracy visual detection method of the present invention:
[0123] 2. Overall system design:
[0124] 2.1 The main task of the vision system of the fully automatic placement machine is to complete the recognition and positioning of the chip and defect detection. Recognition and positioning is to determine the position of the chip and give the result parameters such as the center position coordinates and rotation angle of the chip that meet certain accuracy requirements. Defect detection is to complete the detection of ink dots, missing corners, etc. The method flow, system functions and implementation effects of the chip recognition and positioning system implemented in the vc++6.0 environment are introduced and evaluated.
[0125] 2.2 Design of chip identification and positioning system workflow:
[0126] Studying image recognition methods and processes is the key to visual recognition systems. The system recognition accuracy and speed are mainly reflected in the visual methods and recognition processes. What methods and processes should be adopted to obtain accurate component information at the fastest speed to achieve component recognition while meeting the component recognition accuracy requirements is one of the key issues studied in this section.
[0127] During the execution of the visual system of the fully automatic placement machine, the following order is usually followed: parameter setting, template setting, chip identification and positioning, and defective chip removal. The basic processing flow of the present invention is as follows: Figure 3 shown.
[0128] 2.2.1 Parameter settings and feature description:
[0129] According to actual requirements, the parameters in this system mainly include two parts: ink dot parameters and search parameters.
[0130] (1) Ink dot parameters
[0131] The ink dot parameters are mainly used to determine whether there are artificially marked ink dots on the chip during defective chip detection, mainly including ink dot mode, grayscale closing value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot mode is "black dots with white background", and when the chip brightness is low and the ink dot brightness is high, the ink dot mode is "white dots with black background". The grayscale closing value is used to segment the image for connected domain analysis. The spot size is used to filter out connected domains that do not meet the ink dot size.
[0132] (2) Search parameters
[0133] The search parameters mainly include the number of searches, similarity score, search angle, etc. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions.
[0134] The feature matching scheme adopted by this system includes two types of features. These two features and their extraction methods are described as follows.
[0135] (1) Shape characteristics of a single chip, such as length, width, and area
[0136] The shape features of a single chip are obtained through connected domain analysis. First, the filtered single chip image is analyzed by histogram waveform. If there is a closed value that results in a closed connected domain after the image is binarized according to the closed value, then the largest of these connected domains is selected, and the connected domain represents the internal area of the chip. The length, width, area, and center of the connected domain are calculated as the shape features of the single chip.
[0137] (2) Corner point features of a single chip:
[0138] Among several corner point extraction methods, the method has high efficiency and strong noise resistance. Therefore, the present invention selects the corner point extraction method to extract the corner points in the single-chip image.
[0139] 2.2.2 Template processing:
[0140] The chip identification and positioning system implemented by the present invention is implemented based on template matching. Therefore, before accurately positioning a qualified chip, the chip template must first be set and the features of the chip template must be extracted.
[0141] (1) Acquisition of template image:
[0142] The template image can be obtained by dragging a rectangular selection on the loaded chip image with the mouse.
[0143] (2) Template image preprocessing:
[0144] After obtaining the template image, the template image must be preprocessed before extracting the template features. The main processing is filtering, which is used to eliminate various noises in the chip image. Since filtering can well protect the edges and corners of the chip image while filtering out the noise in the image, it is very suitable for the idea of image matching based on features in this paper. Therefore, the present invention selects filtering.
[0145] (3) Whether the template selection is appropriate:
[0146] After the template image is filtered, it is first necessary to determine whether the template image is properly selected. Since the present invention adopts a multi-target segmentation method based on cluster analysis, the selected template must include at least a complete chip area to extract its shape features. First, a histogram waveform analysis is performed on the filtered template image. If there is a grayscale value at a certain trough so that a closed connected domain exists after the image is binarized according to the closed value, such as a white color surrounded by a black color, then the white color is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is properly selected. Otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is sought as a reasonable minimum value. If no reasonable minimum value is found within this range, it is considered that the template selection is unreasonable, and a prompt is given to reselect the template. Figure 4 , qualified template chips and unqualified template chips and their corresponding closed connected domains and unclosed connected domains are shown.
[0147] (4) Template training
[0148] When the template is selected, the template training can be performed, that is, the extraction of template features. As mentioned above, the template features include two aspects of features. The shape feature extraction method is to use a reasonable threshold to binarize the template image, analyze the binarized image, select the largest of these connected domains, and calculate the length, width, area, and center of the connected domain as the shape feature of the template. The corner feature extraction method is to use the SUSAN method to extract feature points from the template image and calculate the features.
[0149] 2.2.3 Search Area Processing
[0150] After the template is set, for any search area, drag the rectangle on the chip image to find the chip it contains according to the following steps:
[0151] (1) Search area image preprocessing
[0152] The main process is filtering, which is used to eliminate various noises in the chip image. The present invention uses filtering.
[0153] (2) Multi-target segmentation of search area images
[0154] Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the threshold to segment the image and analyze it. Filter the linked list according to the shape characteristics of the template to find the grayscale value that meets the conditions the most as the final reasonable threshold. Each of the linked lists obtained with it as the threshold is a potential chip that needs to be accurately matched and located.
[0155] (3) Accurate matching of suspected chips and elimination of defective chips
[0156] Take an image block slightly larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, first use a reasonable closed value to binarize the local block, then analyze it, and use the ink dot parameter to filter the linked list. If there is an ink dot, it is a defective chip and no longer needs to be accurately positioned. If there is no ink dot, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set interpretation value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient, then the edge of the suspected chip is rectangular fitted to obtain the angle and center of the suspected chip. If the angle is within the limited search range, it is a qualified chip.
[0157] 2.2.4 Defective chip removal
[0158] The inherent characteristic of semiconductor chip manufacturing is the irrecoverability of defects in the manufacturing process. Defective chips will not be able to be recovered, resulting in a serious loss of yield. Chip defect detection is to detect defective chips through image processing methods and eliminate unqualified chips, which is a very important part of visual inspection. Figure 1 Several common defective chips are displayed, including ink dot chips, defective chips, angle-shifted chips, etc.
[0159] In the present invention, defective chips mainly refer to ink dot chips. Ink dot chips are the most common type of defective chips. Ink dots are marks made by the wafer circuit inspection machine on the surface of chips with unqualified electrical performance. Ink dots are generally stable in color, position, size and shape, and have obvious peaks on the image histogram. Other types of defective chips include angle-shifted chips, defective chips, etc. Angle-shifted chips refer to chips whose edges have a certain angle with horizontal and vertical lines due to position shift. Defective chips refer to chips with missing corners, damage, etc. on the surface of the chip. In the present invention, corresponding methods are also used to eliminate such defective chips.
[0160] (1) Removal of ink dot chips
[0161] The detection of ink dot chips requires the set ink dot parameters "grayscale value" and "spot area". The basic idea of ink dot detection is to find a connected domain composed of black pixels in the ink dot detection area. If such a connected domain exists, determine whether its area is greater than the set closed value. If it is greater than the value, it is determined that there are ink dots in the chip.
[0162] Here are the steps:
[0163] (a) After rough positioning, each suspected chip area is binarized using a set grayscale value;
[0164] (b) Performing Blob analysis on the binary suspected chip to obtain a Blob linked list;
[0165] (c) All connected domains are filtered using the specified spot area. If there are no connected domains that meet the requirements after filtering, it means that there may be qualified chips. Otherwise, it means that there are ink spots on the suspected chip and it should be discarded.
[0166] (2) Elimination of other defective chips
[0167] The elimination of angle-shifted chips requires the set "search angle range" parameter. First, angle detection is performed. The task of angle detection is to calculate the chip angle, and then determine whether the chip has angle shifted based on the calculated result, and whether the chip angle shift is within the allowable range. The chip angle here refers to the angle between the lower edge or upper edge of the chip and the axis.
[0168] Here are the steps:
[0169] (a) The suspected chip is matched with the template chip;
[0170] (b) If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip;
[0171] (c) Determine whether the chip angle is within the allowable range. If it is beyond the allowable range, it will be rejected.
[0172] The removal of defective chips is mainly done by comparing the target chip with the template chip area to determine whether the chip area meets the requirements, and then making a decision to remove or retain it.
[0173] like Figure 11-12 Before the chip mounter mounts the chip, it is necessary to perform defect detection and position acquisition on the chip. On the one hand, it is used to ensure the integrity of the chip to be mounted and remove defective chips; on the other hand, it is used to obtain the position information of the chip to be mounted for subsequent position compensation of the chip. In summary, in the workflow of the chip mounter, chip defect detection and position acquisition are the key to ensure that the chip can be mounted correctly. In the detection and positioning system of the chip of this chip mounter, the chip needs to be taught and tested. The teaching process is to obtain the chip data information after a series of method processes on the complete and defect-free chip without any prior data, and save it in the database as the standard data of the detection process; the detection process is to design a set of methods to obtain the data that needs to be detected from the chip to be detected, and compare it with the standard data. After determining that all the data of the chip are within the standard range, the corresponding method is designed for the chip to complete the positioning process. The flowchart of the teaching process is as follows Fig.11 As shown, the detection process is as follows Fig.12 As shown, it can be seen that the chip teaching process and the detection process are completely consistent in the image preprocessing and image feature extraction steps. The method has high reusability and reduces the memory occupied by the method. When detecting and positioning the chip, it is first necessary to select an intact chip as the input image of the teaching process, obtain the data information of the chip and save it in the database, and then use the same type of chip to be detected as the input image of the detection process to realize chip defect detection without prior data. After confirming that the chip has no defects, the chip is positioned to prepare for the placement machine to achieve precise placement.
[0174] In order to verify the robustness of this method, it is necessary to add salt and pepper noise of different intensities to the acquired original image, and apply the detection and positioning method designed by the present invention to the chip image after adding noise. The intensity of the salt and pepper noise is gradually increased from 0.01 to 0.1, and the step size is 0.01. Figure 5-7The schematic diagram shows the processing results of each step when the salt and pepper noise intensity is 0.01. Figure 8-10 Schematic diagram showing the processing results of each step method when the salt and pepper noise intensity is 0.1.
[0175] Depend on Figure 5-7 and Figure 8-10 It can be seen that after adding salt and pepper noise of different intensities, after image preprocessing algorithms such as illumination unevenness correction, maximum inter-class variance method, and morphological opening and closing operations, the chip image polluted by salt and pepper noise can also obtain an ideal binary image. The subsequent extraction of the key edge point set of the solder ball is not affected by the noise, and the least squares circle fitted by the key point set of the solder ball is accurate. Table 1 lists the results of chip detection and positioning after being polluted by salt and pepper noise of different intensities:
[0176]
[0177] From the test results, it can be seen that after adding salt and pepper noise of different intensities, the detection and positioning results of the chip are very stable, the detection results of the number of solder balls remain unchanged, the maximum error of the change in solder ball diameter is 0.03mm, the maximum error of the x offset between the chip center and the image center is 0.021mm, the maximum error of the y offset between the chip center and the image center is 0.016mm, and the maximum error of the chip deflection angle is 0.186 degrees, which can well meet the placement accuracy of the placement machine.
[0178] The following are the differences between the present invention and the prior art:
[0179] (1) First, the images taken by the camera are preprocessed, and the light intensity is accurately determined by intuitive judgment of the histogram and grayscale value calculation. The principles and advantages and disadvantages of various filtering methods are analyzed, and an adaptive median algorithm that removes noise and protects edge information is proposed to effectively remove salt and pepper noise. Based on the grayscale image segmentation method, a two-dimensional OTSU algorithm and a watershed algorithm based on the traditional OTSU algorithm are proposed. The segmentation results and running time of the three methods are analyzed, and the OTSU algorithm with the shortest running time and satisfactory segmentation results is still selected.
[0180] (2) An algorithm for acquiring chip information is proposed. The principles and shortcomings of the traditional crawler method are analyzed, and the eight-neighborhood tracking algorithm is used to extract the contour of the image. At the same time, considering that the OTSU algorithm is global and cannot meet local requirements, the contour is effectively screened again. An improved k-means clustering algorithm with the initial center point is proposed to achieve the segmentation of the upper and lower pins. A method based on the minimum circumscribed rectangle of the convex hull is proposed to achieve rough positioning of the chip, and the affine transformation method is used to normalize the chip contour. The vertical projection method is used to mark the upper and lower pins, and the pin foot and root are segmented according to the coordinate characteristics. Two parameter detection methods based on the projection method and the direct method are proposed. The accuracy of the algorithm is compared, and the latter is selected to achieve high-precision chip parameter detection.
[0181] (3) Aiming at the characteristics of TR type chips, this patent proposes three chip positioning methods. The method based on image segmentation is based on obtaining the upper and lower foot contours through image segmentation, and is implemented according to the foot fitting straight line and the minimum circumscribed rectangle of the contour. Both edge grayscale matching and edge gradient matching belong to contour matching methods. Both extract edge grayscale values and gradient values as features, and propose pyramid scaling to improve the efficiency of the algorithm. Analyze possible defects such as excessive chip offset angle, missing pins, height offset, and position offset, and design a defect detection system for the chip based on the characteristics of the defective pins, so that defective chips can be detected.
[0182] (4) The test algorithm mainly tests the accuracy and stability of the algorithm. The test is divided into two parts: pin parameter algorithm test and positioning algorithm test. The error range of the pin parameter algorithm is within ±0.1mm, and the algorithm accuracy meets the requirements. At the same time, when the illumination changes, the algorithm basically remains stable. The accuracy of the three positioning algorithms is compared through multiple sets of data. All of them can meet the accuracy requirement of ±0.2°. The algorithm time and complexity are compared, and the positioning method based on image segmentation is selected. At the same time, the stability of the method is tested, and the positioning results of the same chip under different illumination conditions are compared. The results are relatively concentrated, not greatly affected by illumination, and the algorithm is relatively stable.
[0183] The above description is only a preferred embodiment of the present invention, and does not limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the protection scope of the present invention.
Claims
1. A chip placement accuracy visual inspection method, characterized in that: The invention comprises a chip identification and positioning system, wherein the chip identification and positioning system comprises: a. An image display component, used to display the acquired image and set the template, ink dots, the range of the search area on the image and display the identified search results; b. Template component, which has functions of selecting template, training template, saving and loading template; c. an ink dot interface component, which performs ink dot analysis according to the position, range, size and closed value of the ink dot in a, and then displays the border of the ink dot on the image display component; The chip placement accuracy visual inspection method comprises the following steps: Step 1: Specify the search area on the captured image and perform comparative analysis based on the set similarity and template; Step 2, marking the analysis result of step 1 on the image display component, and marking the calculated result angle marking frame and the center coordinates of the result angle marking frame with a cross; Step 3: When ink dot analysis is optional, the relative position of the ink dot is calculated according to the template range and the position of the ink dot. On each result, ink dot analysis is performed according to the relative position of the ink dot, the search range of the ink dot, the size of the ink dot, and the threshold of the ink dot to determine whether there is an ink dot. If the ink dot exists, the border of the ink dot is displayed on the image display component. Step 4: The program finally provides the center coordinates, angle, and whether there is an ink dot for each chip found on the image; Step 5: Set ink dot parameters and search parameters: The ink dot parameters include ink dot pattern, grayscale closed value, and spot size. When the chip brightness is high and the ink dot brightness is low, the ink dot pattern is black dots with white background. When the chip brightness is low and the ink dot brightness is high, the ink dot pattern is white dots with black background. The grayscale closed value is used to segment the image for connected domain analysis, and the spot size is used to filter out connected domains that do not meet the ink dot size. The search parameters include at least the number of searches, the similarity score, and the search angle. The number of searches is used to limit the maximum number of chips to be searched in the current scene. The similarity score is used to limit the minimum similarity between the chip and the template. The search angle is used to limit the angle range of the chips that meet the search conditions. Step 6, implementing chip feature matching according to the ink dot parameters and search parameters set in step 5, wherein the chip feature matching includes feature 1 and feature 2, wherein feature 1 is shape feature matching of a single chip, and feature 2 is corner feature matching of a single chip; The shape feature matching is obtained based on the length, width and area of the single chip and through connected domain analysis, which is to perform histogram waveform analysis on the filtered single chip image. When there is a closed value that results in a closed connected domain after binarization of the image according to the closed value, the largest one of these connected domains is selected. The connected domain represents the internal area of the chip, and the length, width, area and center of the connected domain are calculated as the shape feature of the single chip. The corner point feature matching is to extract the corner points in the single chip image for matching.
2. The chip placement accuracy visual inspection method according to claim 1, characterized in that: The chip placement accuracy visual inspection method further includes template processing, which includes template image acquisition, template image preprocessing, template selection judgment, and template training; The template image is obtained by dragging a rectangle on the loaded chip image with a mouse; The template image preprocessing is to preprocess the template image after obtaining the template image and before extracting the template features. The template image preprocessing adopts filtering processing to eliminate the noise in the chip image. The judgment of whether the template is properly selected is to judge whether the template image is properly selected after the template image is filtered; The template training is to perform template training when the template is selected. The template training is to extract the template features. The template feature extraction refers to the chip feature matching.
3. The chip placement accuracy visual inspection method according to claim 2, characterized in that: The judgment of whether the template selection is appropriate is based on a multi-objective segmentation method based on cluster analysis, and the selected template includes at least a complete chip area to extract its shape features; First, the histogram waveform analysis is performed on the filtered template image. When there is a grayscale value of a certain trough so that there is a closed connected domain after the image is binarized according to the closed value, and the white is surrounded by a black, then the white is called a closed connected domain, and vice versa. If the area is within a certain range, then the closed value is a reasonable closed value, and the template is selected properly; otherwise, within a certain fluctuation range of the average grayscale of the template, the grayscale of the closed connected domain with an area that meets the requirements is sought as a reasonable minimum value. If no reasonable minimum value is found within this range, the template selection is considered unreasonable, and a new template selection is prompted.
4. The chip placement accuracy visual inspection method according to claim 1, characterized in that: The chip placement accuracy visual inspection method further includes a search area processing module. After the template is set, the search area processing module finds the chip contained in a rectangle dragged out of any search area on the chip image according to the following steps: 4.1, Search area image preprocessing: Through filtering, it is used to eliminate various noises in the chip image; 4.
2. Multi-target segmentation of search area image: Perform histogram waveform analysis on the search area image to find the grayscale values corresponding to all the troughs. For each grayscale value, use it as the interpretation value to segment the image and analyze it. Filter the linked list according to the shape features of the template to find the grayscale value that meets the conditions the most as the final reasonable interpretation value. Each of the linked lists obtained with it as the interpretation value is a potential chip, and each chip is accurately matched and located. 4.
3. Accurate matching of suspected chips and exclusion of defective chips: Take an image block larger than the chip template in each vicinity, perform local histogram waveform analysis, and find a reasonable closed value for the local image block. If it does not exist, discard the suspected chip. If it does exist, first check whether the system requires the ink dot chip to be abandoned. If it is required to exclude the ink dot chip, binarize the local block with a reasonable closed value, and then analyze it. Use the ink dot parameters to filter the linked list. If there are ink dots, it is a defective chip and no longer requires precise positioning. If there are no ink dots, continue to extract the corner point features of the suspected chip and match them with the corner points of the template chip. If the matching degree is greater than the set value, in this system, the closed value is set as the product of the maximum matching point logarithm and the allowed similarity coefficient. Then, a rectangular fitting is performed on the edge of the suspected chip to obtain the angle and center of the suspected chip. If the angle is within the specified search range, it is a qualified chip.
5. The chip placement accuracy visual inspection method according to claim 1, characterized in that: The chip placement accuracy visual inspection method also includes a defective chip rejection module, which detects defective chips through image processing and eliminates chips that fail the inspection.
6. The chip placement accuracy visual inspection method according to claim 5, characterized in that: The defective chip rejection module is used to reject defective ink dot chips, defective angle offset chips, and defective incomplete chips; The ink dot chip is an ink dot mark made by a wafer circuit inspection machine on the surface of a chip with unqualified electrical performance, and the ink dot mark has an obvious peak on the image histogram; The angle-shifted chip is a chip whose position is shifted so that the edge of the chip has a certain angle with the horizontal and vertical lines; The defective chip is a chip with a chip surface having a missing corner or being damaged.
7. The chip placement accuracy visual inspection method according to claim 6, characterized in that: The defective chip rejection module includes an ink spot chip rejection step, an angle deviation chip rejection step, and a defective chip rejection method; The ink dot chip removal step comprises: Step 1: Binarize the image of each suspected chip area obtained after rough positioning using a set grayscale value; Step 2: Perform Blob analysis on the binary suspected chip to obtain a Blob linked list; Step 3: Filter all connected domains with the specified spot area. After filtering, if there is no connected domain that meets the requirements, it is a qualified chip. Otherwise, it indicates that there are ink spots on the suspected chip, and the chip with ink spots will be removed. The steps of angle offset chip rejection include: Step 1: matching the suspected chip with the template chip; Step 2: If the match is successful, the edge of the connected domain of the suspected chip is fitted with a minimum area circumscribed rectangle to obtain the angle of the chip; Step 3: Determine whether the angle of the chip is within the allowable range. If it is beyond the allowable range, it will be removed. The defective chip elimination method is to compare the target chip with the template chip area to determine whether the area of the target chip meets the requirements, and then make a decision to eliminate or retain.
Citation Information
Patent Citations
Wafer defect detection method based on characteristic matching
CN106600600A
Thin film printing defect detection system and method
CN109507209A
High-precision wafer surface defect detection device and detection method thereof
CN111982931A
Deep learning-based packaged chip defect detection method
CN113362306A
Visual detection method and visual detection device
CN113552123A
Cited By
Chip visual positioning system and method based on image contour feature and gray scale matching
CN119006602A
Chip mounter modular control system and method in monitoring mode, medium and product
CN119677088A
Feedback control method for laser welding
CN119828584A
Feedback control method for laser welding
CN119828584B
Offset detection method, storage medium and equipment
CN121120580A
