Electronic packaging shell pin double-sided synchronous detection system
By designing a double-sided synchronous detection system for electronic package shell pins, using visual inspection technology and multiple sets of visual inspection mechanisms, the problems of slow detection speed and low efficiency in the existing technology have been solved, and rapid and accurate inspection of electronic package shell pins has been achieved. Accurate detection.
Patent Information
- Application Number
- CN202420286812.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-07
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-02-07
AI Technical Summary
The existing electronic package shell pin detection method lacks detection of pin diameter, welding aperture, eccentricity and welding conditions, and the detection speed is too slow and inefficient, making it difficult to meet actual needs.
A double-sided synchronous detection system for electronic packaging shell pins is designed, including a support mechanism, a transmission device, a fixture, a visual inspection module and an image processing system. Visual inspection technology is used to simultaneously detect the front and back pins of an electronic packaging shell. , through multiple sets of visual inspection mechanisms and adjustment devices to achieve fast and accurate inspection.
It improves the detection speed and efficiency, and can detect both the front and back sides of the electronic package shell and multiple columns of pins on each side at the same time. It can adapt to package shells of different sizes and shapes and achieve fast and accurate detection results.
Smart Images

Figure CN221926149U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of visual detection, and more specifically to a double-sided synchronous detection system for pins of an electronic packaging shell. Background Art
[0002] Electronic packaging refers to a method of placing an integrated circuit chip with certain functions (including semiconductor integrated circuit chips, thin film integrated circuit chips, hybrid integrated circuit chips) in a suitable shell container to provide a stable and reliable working environment for the chip, protect the chip from or reduce the impact of the external environment, and enable the integrated circuit to have stable and normal functions.
[0003] The electronic packaging shell not only plays the role of installing, fixing, sealing and protecting the chip, but also serves as a means of connecting the chip input and output ends to the outside, transmitting signals, enhancing electrical and thermal performance, and improving environmental adaptability, forming a complete whole with the chip.
[0004] The electronic package shell is formed as a whole by welding the pins in the edge holes of the shell with solder (glass or ceramic). At the same time, the contacts on the chip are connected to the pins of the electronic package shell with wires, and the other ends of these pins are connected to other devices through wires on the printed circuit board.
[0005] Therefore, the pin size, welding hole size, concentricity, and welding condition of the soldering flux will affect the performance of the entire integrated circuit, so the synchronous detection task of the pins is particularly important.
[0006] The existing electronic packaging shell pin detection method is mainly to detect by lifting the detection pen. CN216791866U discloses a visual integrated circuit package pin detection device, which uses a clamping mechanism to contact the pin for detection, but these methods lack information such as the pin diameter, welding hole diameter, pin eccentricity and welding conditions, and the detection speed is too slow and the efficiency is low to meet the actual detection needs. Utility Model Content
[0007] The technical problem to be solved by the utility model is to provide a double-sided synchronous detection system for the pins of an electronic packaging shell, which can use visual detection technology to quickly and accurately detect the pin size information and defect information on the front and back sides of the electronic packaging shell, thereby improving the detection speed and efficiency.
[0008] In order to solve the above technical problems, the utility model provides a double-sided synchronous detection system for electronic packaging shell pins, including a supporting mechanism, a conveying device, a jig, a visual inspection module, and an image processing system. The conveying device and the visual inspection module are installed on the supporting mechanism, the jig is used to carry the sample to be tested, and the conveying device is used to convey the sample to be tested carried by the jig to the visual inspection module for inspection. The visual inspection module includes a front visual inspection module and a back visual inspection module symmetrically arranged with the jig conveying plane as the center. The front visual inspection module and the back visual inspection module each include at least two groups of visual inspection mechanisms, and the at least two groups of visual inspection mechanisms respectively correspond to detecting a column of pins of the sample to be tested. The image processing system is used to perform size and defect inspection on the pins collected by the visual inspection mechanism.
[0009] Some of the embodiments further include an adjustment device, which moves and adjusts the position of the visual detection mechanism.
[0010] In some embodiments, the adjustment device includes an adapter plate and a two-dimensional displacement platform. The adapter plate is installed on the supporting mechanism, and the visual detection mechanism is connected to the adapter plate via the two-dimensional displacement platform. The adapter plate moves relative to the supporting mechanism to adjust the position of the visual detection mechanism on the supporting structure, and the two-dimensional displacement platform moves relative to the adapter plate to adjust the position of the visual detection mechanism on the adapter plate.
[0011] In some of the embodiments, the visual inspection mechanism includes a camera assembly, a lens, and a light source assembly, which are installed in series.
[0012] In some embodiments, the visual inspection mechanism includes a plurality of sliding frames and cage rods connecting the plurality of sliding frames, the sliding frames slide up and down along the cage rods, the sliding frames and the cage rods form a cage structure to install the camera assembly, the lens assembly, and the light source assembly in series in sequence along the vertical direction.
[0013] In some embodiments, the light source assembly includes a low-angle ring light source and a light source adapter plate, and the lens assembly adopts a telecentric lens.
[0014] In some embodiments, the support structure includes a support base, a conveying device support frame installed on the support base, and a visual inspection module support frame installed on the support base, wherein the support base is composed of four profile brackets connected front and back; the conveying device support frame is composed of a transverse profile bracket connecting two longitudinal profile brackets and is symmetrically arranged on both sides of the support base; the visual inspection module support frame is composed of two upper and lower transverse profile brackets connecting two longitudinal profile brackets, and the upper and lower transverse profile brackets respectively carry a front visual inspection module and a back visual inspection module.
[0015] In some embodiments, the conveying device includes a driving device, a controller and a linear module. The linear module is installed on the transverse profile bracket of two conveying device support frames. A motion platform is connected between the linear modules. The fixture is installed at the center of the motion platform. The driving device drives the motion platform to convey the sample to be tested carried by the fixture to the visual inspection module for inspection, and the controller controls the moving speed of the motion platform.
[0016] In some of the embodiments, a sensing device is further included, wherein the sensing device senses that the pins on the sample to be tested reach the visual inspection module and triggers the visual inspection module to perform inspection.
[0017] In some of the embodiments, the sensing device is a laser sensor.
[0018] In some of the embodiments, the at least two groups of visual inspection mechanisms are staggered along a direction perpendicular to the conveying direction of the sample to be tested.
[0019] In some embodiments, the conveying device is a circular guide rail, and the visual inspection modules are respectively arranged on both sides of the circular guide rail.
[0020] Compared with the prior art, the utility model has the following beneficial effects:
[0021] 1. The electronic packaging shell pin double-sided synchronous detection system described in the utility model, by setting up visual inspection modules for the front and back sides, and the visual inspection modules are provided with multiple groups of visual inspection mechanisms, can simultaneously detect the front and back sides of the electronic packaging shell and multiple rows of pins on each side, thereby improving the detection speed and detection efficiency.
[0022] 2. The electronic package shell pin double-sided synchronous detection system described in the utility model can realize the detection of package shells of different sizes and shapes by providing an adjustment device for adjusting the position of the visual detection mechanism. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 It is a schematic diagram of a double-sided synchronous detection system for electronic packaging shell pins;
[0024] Figure 2 It is a schematic diagram of the structure of the visual inspection mechanism;
[0025] Figure 3 It is a schematic diagram of a double-row pin electronic package housing;
[0026] Figure 4 It is a corresponding relationship diagram between the double-row pin housing and the visual detection mechanism;
[0027] Figure 5It is a corresponding relationship diagram between a multi-row pin housing and a visual inspection mechanism;
[0028] Figure 6 It is a flow chart of the detection method of the double-sided synchronous detection system of the electronic packaging shell pin;
[0029] Figure 7 This is the application layout diagram of the double-sided synchronous detection system production line of Example 2.
[0030] : 1. base; 2. profile bracket; 3. profile corner piece; 4. straight line model; 5. first group of front visual inspection mechanism; 6. adapter plate; 7. two-dimensional displacement stage; 8. second group of front visual inspection mechanism; 9. laser sensor; 10. fixture; 11. first group of back visual inspection mechanism; 12. second group of back visual inspection mechanism; 13. circular guide rail; 14. industrial robot; 15. electronic packaging shell carrying tray; 16. NG sorting box; 17. tray lifting module; 51. 60mm single-hole brake sliding frame; 52. 6mm outer diameter tungsten steel cage rod; 53. CMOS camera; 54. 30mm aperture single-hole brake sliding frame; 55. 30mm aperture single-hole conversion brake sliding frame; 56. 2x telecentric lens; 57. light source adapter plate; 58. low-angle ring light source; 101. electronic packaging shell; 102. solder; 103. pin. DETAILED DESCRIPTION
[0031] The technical solutions in the embodiments of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiments of the utility model; it is obvious that the described embodiments are only part of the embodiments of the utility model, rather than all of the embodiments, and all other embodiments obtained by ordinary technicians in this field based on the embodiments of the utility model without making creative work are within the scope of protection of the utility model.
[0032] In the description of the present invention, it should be noted that the terms "upper", "lower", "left", "right", "longitudinal", "lateral", "top / bottom" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific position, be constructed and operated in a specific position, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0033] In the description of the present utility model, it should be noted that, unless otherwise clearly stipulated and limited, the terms "installed", "provided with", "installed / connected", "connected", etc. should be understood in a broad sense. For example, "connection" can be a wall-mounted connection, a detachable connection, or an integral connection. It can be a mechanical connection or an electrical connection. It can be a direct connection or an indirect connection through an intermediate medium. It can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the utility model can be understood according to specific circumstances.
[0034] Example 1
[0035] Reference Figure 1-3 As shown, this embodiment provides a system for synchronously detecting the pins of an electronic package shell on both sides, including a support mechanism, a conveying device, a fixture 10, a visual inspection module, and an image processing system. The conveying device and the visual inspection module are installed on the support mechanism, the fixture 10 carries a sample electronic package shell 101 to be tested, and the conveying device conveys the electronic package shell 101 carried by the fixture 10 to the visual inspection module for inspection;
[0036] The visual inspection module includes a front visual inspection module and a back visual inspection module symmetrically arranged with the conveying plane of the fixture 10 as the center, the front visual inspection module includes a first group of front visual inspection mechanisms 5 and a second group of front visual inspection mechanisms 8, and the back visual inspection module includes a first group of back visual inspection mechanisms 11 and a second group of back visual inspection mechanisms 12. The first group of front visual inspection mechanisms 5 and the second group of front visual inspection mechanisms 8 as well as the first group of back visual inspection mechanisms 11 and the second group of back visual inspection mechanisms 12 correspond to the two front rows of pins 103 and the two back rows of pins 103 on the electronic packaging shell 101 (see Figure 4 ), the image processing system is used to perform size and defect detection on the pins collected by the visual inspection mechanism.
[0037] The number of groups of visual inspection mechanisms is determined according to the number of rows of pins 103 on the electronic package housing 101, for example Figure 5 As shown, when the number of rows of pins 103 on the electronic package housing 101 is N, N sets of visual inspection mechanisms can be used, not limited to the two sets of the present embodiment.
[0038] In this embodiment, the visual detection mechanism includes a camera assembly, a lens, and a light source assembly. In order to ensure the coaxiality between the three, the three are connected in series through a cage structure. Specifically, the visual detection mechanism is composed of a 6mm outer diameter tungsten steel cage rod 52, which sequentially connects a 60mm radius single-hole brake sliding frame 51, a camera 53, a 30mm radius single-hole brake sliding frame 54, a single-hole conversion brake sliding frame 55, a lens 56, and a light source assembly in series, so that the detection module is integrated, the coaxiality of the camera 53, the lens 56 and the light source assembly is ensured, and the offset error in the image acquisition process is reduced; at the same time, it is used to adjust the distance between the annular light source and the electronic package shell pin 103, that is, to adjust the distance between the annular light source and the electronic package shell pin 103 under the condition that the lens can clearly form an image to find the best lighting position.
[0039] Among them, in this embodiment, due to the small size of the object to be measured and high detection accuracy requirements, a 2448*2048 5-megapixel industrial camera is selected in combination with the corresponding detection index camera 53 to obtain images; combined with the target surface size and field of view of the camera 53, in order to clearly image and reduce distortion, the lens 56 selects a 2x telecentric lens; since the top of the pin 103 and the welding part are not in the same plane, in order to achieve clear imaging as much as possible at the same time, the light source adopts a low-angle ring light source 58 for uniform illumination, and at the same time reduces the working distance between the light source and the workpiece to reduce the reflection of the ring light to the inside of the pin, thereby reducing the reflection phenomenon, and the low-angle ring light source 18 is connected to the cage structure through the light source adapter plate 57.
[0040] In order to reduce the adverse effects such as system imbalance caused by the uneven flatness of the external supporting ground and the vibration generated by the system itself during operation, in this embodiment, the above-mentioned detection system is placed on the base 1.
[0041] More specifically, a support base composed of four profile brackets 2 in the support mechanism that are connected front and back and fixed in sequence by profile angle pieces 3 is arranged on the base 1; then a conveying device support frame composed of a transverse profile bracket 2 connecting two longitudinal profile brackets 2 is symmetrically arranged on both sides of the support base, wherein the longitudinal and transverse profile brackets 2, as well as the longitudinal profile brackets 2 and the support base are all fixedly connected by profile angle pieces 3, and then two short profile brackets 2 are fixedly connected to the upper end of the longitudinal profile bracket 2 for carrying the conveying device; a visual inspection module support frame is arranged in the vertical direction of the two conveying device support frames, and the visual inspection module support is composed of two upper and lower transverse profile brackets 2 connecting two longitudinal profile brackets 2, and the transverse and longitudinal profile brackets 2, as well as the profile brackets 2 and the support base are all fixedly connected by profile angle pieces 3, the top transverse profile bracket 2 is used to carry two groups of visual inspection mechanisms 5 and 8 on the front, and the bottom transverse profile bracket 2 is used to carry two groups of visual inspection mechanisms 11 and 12 on the back.
[0042] In this embodiment, the conveying device includes a driving device, a controller and a linear module 4. The linear module 4 is installed on the transverse profile bracket 2 of the two symmetrically arranged conveying device support frames through an adapter plate 6. The two linear modules 4 are both equipped with motion sliders. The two motion sliders form a motion platform between the linear modules. The jig 10 is fixed to the motion slider by screws so that it is located at the center of the motion platform. The driving device drives the motion slider to move, thereby transmitting the electronic packaging shell 101 carried by the jig 10 to pass through the visual inspection module for inspection.
[0043] At the same time, in this embodiment, the controller can control the moving speed of the motion platform. By setting the program, the moving slider can speed up the transmission speed during the non-detection process and slow down the speed during the detection process to cooperate with the visual detection mechanism to collect pictures. The forward speed can be reasonably set in segments to save the overall detection process time and improve the detection efficiency.
[0044] In order to sense that the pins of the electronic packaging shell have reached the visual inspection module, in this embodiment, a laser sensor is also included as a sensing device. The laser sensor can sense that the pins on the sample to be tested have reached the visual inspection module and trigger the visual inspection module to perform inspection. Specifically, the transmitter and receiver of the laser sensor are respectively arranged at corresponding positions of the linear modules on both sides, and the light path formed at this position is exactly perpendicular to the center line connecting the front and back visual inspection modules. Therefore, when the pins of the packaging shell pass through the laser sensor, the light path from the laser to the receiver will be blocked to generate high and low level changes. The level change is used as a shooting trigger signal for the visual inspection module. Therefore, each time the pin passes through, the laser sensor circuit generates a trigger signal to enable the visual inspection module to automatically take a photo of the pin, and transmit the pin picture to the image processing system for processing, and output the pin size and welding condition.
[0045] When the pins 103 are inspected, the electronic package shell is placed on the jig 10. The center of the jig 10 is designed with an opening according to the edge thickness of the electronic package shell 101, and a small bearing edge with the same thickness as the edge thickness of the electronic package shell 101 is reserved to support the electronic package shell 101. The jig 10 will not block the pins on the back while playing a bearing role, so that the double-sided synchronous inspection can be completed. Then the conveying device conveys it to the visual inspection module, and the two groups of visual inspection mechanisms 5 and 8 on the front side respectively inspect the two columns of pins 103 on the front side of the electronic package shell 101, and the two groups of visual inspection mechanisms 11 and 12 on the back side respectively inspect the two columns of pins 103 on the back side of the electronic package shell 101. The visual inspection module collects the pin image and then processes it through the image processing system to detect the size and defects of the pin.
[0046] Different types of electronic packaging shells 101 have different spacing and position arrangements between the pins 103. Therefore, in order to be able to detect different types of electronic packaging shells 101, in this embodiment, the detection system also includes an adjustment device, which can move and adjust the position of the visual detection mechanism according to the specific positions of the pins of the tested electronic packaging shell, so that the visual detection mechanism can correspond to the pins.
[0047] Specifically, the adjustment device includes an adapter plate 6 and a two-dimensional displacement platform 7. Each visual detection mechanism is equipped with a corresponding adapter plate 6 and a two-dimensional displacement platform 7 for adjusting its position. At the same time, the adapter plate 6 and the two-dimensional displacement platform 7 also play the role of fixing the visual detection mechanism on the supporting structure. The adapter plate 6 is installed on the transverse profile bracket 2 of the visual detection mechanism support frame, and the visual detection mechanism is connected to the adapter plate 6 through the two-dimensional displacement platform 7; wherein, the adapter plate 6 is an optical breadboard, which can be moved relative to the supporting mechanism to adjust the position of the adapter plate 6 relative to the supporting mechanism, thereby making a large-distance adjustment to the left-right direction and the up-down direction of the visual detection mechanism, and the two-dimensional displacement platform 7 can be moved relative to the adapter plate 6 to adjust the position of the visual detection mechanism on the adapter plate, thereby making a small-distance adjustment to the left-right direction and the up-down direction of the visual detection mechanism.
[0048] like Figure 4 As shown, the distance d between the pins of packaging shells of different specifications is different, so the spacing of the visual inspection modules can be adjusted through the adapter plate 6 and the two-dimensional displacement platform 7 to adapt to electronic pin packaging shells of different sizes.
[0049] When inspecting a workpiece with a single row of pins, the distance between the front and rear groups of visual inspection mechanisms can be adjusted by adding an adapter plate 6 to the visual inspection mechanism. The first group of visual inspection mechanisms is used to inspect the odd number of pins 103, and the second group of visual inspection mechanisms is used to inspect the even number of pins 103, thereby improving the sampling rate while making full use of the visual inspection mechanisms.
[0050] At the same time, since the overall size of the electronic packaging shell 101 is small, and the number of pins 103 is large and the spacing is small, in order to avoid spatial interference problems among the groups of visual inspection mechanisms, in this embodiment, the adjustment device can stagger the at least two groups of visual inspection mechanisms in a direction perpendicular to the conveying direction of the sample to be tested.
[0051] After the visual inspection mechanism of the inspection system collects the pin image, the pin image is output to the image processing system, which performs image processing to detect the size and defects of the pin. The image processing system mainly performs two aspects of inspection: one is the size and geometric parameters of the pin, and the other is the welding defects of the pin.
[0052] Specifically, the dimensional geometric information such as the pin diameter, the diameter of the welding hole, the area of the welding part, the eccentricity between the pin and the center of the welding hole, etc., is obtained by a dimensional detection method of a double-sided synchronous detection system for the pins of an electronic packaging shell, and the detection method specifically includes the following steps:
[0053] 1) Start the electronic package shell pin double-sided synchronous detection system of this embodiment to obtain the pin image.
[0054] 2) Grayscale the obtained pin image, and use Gaussian filtering to remove Gaussian noise and smooth the image based on the image information.
[0055] Gaussian filtering is a separable filter, which means that multi-dimensional convolution can be converted into multiple one-dimensional convolutions. For two-dimensional Gaussian filtering, you can first perform one-dimensional convolution on the row data of the image and then perform one-dimensional convolution on the column data. In this way, the complexity can be reduced from O(M*M*N*N) to O(2*M*M*N) to reduce the running time of the algorithm, where M and N are the window sizes of the image and the filter respectively.
[0056] 3) Perform image enhancement operations such as histogram equalization, Gamma transform, and Laplace transform on the grayscale image. The range of grayscale values in the image is expanded through mapping relationships, and the gap between the original two grayscale values is increased to improve the contrast of the image and highlight the texture difference between the foreground and the background. Then, the OTSU algorithm is used to binarize the image, and a 5*5 convolution kernel is used to perform a top hat operation to remove small bright interference points near the foreground, so that the outline of the welding part is separated from the background.
[0057] The purpose of steps 2 and 3 is to solve the problem of certain noise and uneven grayscale distribution in the collected images due to reasons such as interference from external ambient light, increase in component temperature when the camera works for a long time, and mutual influence of noise between circuit components during the image acquisition process. Therefore, image preprocessing such as steps 2 and 3 above is performed before size calculation.
[0058] 4) Since the welding hole is a relatively regular circle, the Hough transform detection method can be used to detect the outer circular contour of the welding hole, and the accumulator threshold of the circle detection is adjusted so that the detected circle is the outer circular contour of the welding hole, and then the center coordinates and radius value of the detected circle are output and saved.
[0059] Create a zero matrix with the same size as the original image, that is, generate a completely black image with the same size as the original image, then draw the detected circle on this image and fill it with white, then perform an AND operation with the original image, and finally generate an ROI image with the detected circle as the boundary. Finding ROI and narrowing the contour detection range can reduce the amount of data and reduce the calculation time.
[0060] 5) Since the pins may have burrs, defects, deformations and other problems during the production process, the contours of some pins are not standard circles. Therefore, Hough circle detection cannot be used. Therefore, a method of removing interference points is used in combination with the least squares method to fit the outer circle contour of the pin to obtain the fitting circle center coordinates and radius.
[0061] Specifically, the following method is used to remove interference points:
[0062] First, use the contour detection function of OpenCV to detect the pin contour, then find the minimum circumscribed rectangle of the pin contour and record the short side width w, then find the four extreme points of the upper, lower, left and right in the contour coordinates, define an error accuracy ε, take the left extreme point abscissa (x1, y1), the right extreme point abscissa (x2, y2), and the error accuracy ε = 5 pixels as an example, if |x1+w-x2|<ε, then x2 is the right boundary, if |x1+w-x2|>ε, then (x1+w) is the right boundary; if |x2-w-x1|<ε, then x1 is the left boundary, if |x2-w-x1|>ε, then (x2-w) is the left boundary; the upper and lower boundaries are calculated by the same calculation method, the contour points can be reasonably restricted to one circle of the ideal circle, and finally the contour coordinates after removing the interference points are fitted by the least squares method to calculate the center coordinates and radius of the fitted circle.
[0063] 6) Draw the fitted pin outer circle contour and welding hole outer circle contour on the original image, and calculate the welding hole size, pin size and concentricity according to the actual physical size corresponding to the calibrated pixel point;
[0064] 7) According to the detection indicators, determine whether the foot size, the size of the welding hole, the area of the welding part, and the eccentricity between the pin and the center of the welding hole are within the qualified range, and finally output the detection results.
[0065] If the pin diameters, welding hole diameters and pin eccentricity of a batch of electronic packaging shells deviate far from the acceptable range, it is necessary to trace the manufacturing process, find the cause of the problem, and optimize the manufacturing process.
[0066] The surface defects of the welding part, such as scratches, defects, cracks and bubbles, are obtained by the defect detection method of the electronic packaging shell pin double-sided synchronous detection system, which specifically includes the following steps:
[0067] 1) Using the visual inspection mechanism to capture pin images and perform image enhancement processing, the data set is expanded by using parameters such as rotation, flipping, scaling, splicing, and adjusting brightness, contrast, and hue.
[0068] 2) Combining the real defect categories, shape characteristics and scale characteristics to find their geometric feature rules, random straight lines with a certain range of length and width are used to replace scratches, irregular polygons with random 3 to 10 sides within a certain range are used to replace defects, arcs with a random number of lengths and widths within a certain range are used to replace cracks, and circles with random radii within a certain range are used to replace bubbles. Then, 3 to 5 defects are randomly generated at random positions in the specified ROI to expand the data set, so as to make the database samples as rich as possible and cover more types of defects.
[0069] 3) Label the data so that the image defect categories correspond one-to-one to the defect sample labels.
[0070] 4) Use the improved YOLOv5 algorithm for training to obtain the detection model.
[0071] The loss function of the YOLOv5 algorithm mainly includes classification loss, confidence loss and positioning loss, among which the classification loss and confidence loss use the binary cross entropy loss function:
[0072] (1)
[0073] Where N is the number of samples, y i and Represent the true value and model prediction value of the i-th sample respectively, and minimize the deviation between the model prediction result and the true result by minimizing the loss function;
[0074] Positioning loss function:
[0075] Loss CIOU =1-CIOU (2)
[0077] (3)
[0078] (4)
[0079] (5)
[0080] Where IOU is the intersection-over-union ratio of the predicted box and the real box, ρ is the distance between the center points of the two boxes, c is the diagonal length of the two boxes, v is the similarity of the aspect ratio of the two boxes, α is the influencing factor of v, and w l and h l are the width and height of the real box, w p and h p are the width and height of the prediction box, respectively. l1 ,y l1 ) and (x l2 ,y l2) are the coordinates of the upper left corner and lower right corner of the real box, (x p1 ,y p1 ) and (x p2 ,y p2 ) are the coordinates of the upper left corner and lower right corner of the prediction box respectively.
[0081] In this embodiment, because the Mish function is more in line with the actual situation, the activation function is replaced from the original LeakyRelu to the Mish function; at the same time, because the YOLOv5 algorithm uniformly resizes the input images to 640*640, and the original image resolution is 2448*2048, the feature information is severely lost after being resized to 640*640, so the feature map during deep convolution retains almost no useful information, and when these feature maps are fused with the shallow feature maps, the recognition accuracy can no longer be improved, and it may even affect the original accuracy. Therefore, the deep feature map is separated from the fused feature map.
[0082] 5) Test the recognition accuracy of the detection model;
[0083] 6) Defect identification is performed on the inspection image of the double-sided synchronous inspection system for the pins of the electronic packaging shell, and the defect type is output and the defect size is calculated. If there is no defect in the welding part, it is considered to be a qualified product and marked as a perfect product; if there is a defect in the welding part, the defect type is output and the defect size is calculated, and it is judged whether the defect size is greater than the permitted range of the inspection index in combination with the defect detection index; if the defect size is less than the permitted range of the inspection index, the defect type and defect size are output, and it is also considered to be a qualified product but marked as a defective product; if the defect size is greater than the permitted range of the inspection index, the defect type and defect size are output, and it is considered to be an unqualified product and marked as an NG product.
[0084] The electronic packaging shell pin double-sided synchronous detection system of this embodiment utilizes visual inspection technology, system control technology, laser sensing technology and image processing technology, and develops the electronic packaging shell pin size measurement and welding defect detection interface based on Pyqt5, and integrates image acquisition, workpiece transmission, signal triggering, size measurement and defect detection processes, and can ultimately complete the electronic packaging shell pin double-sided synchronous detection task in real time to meet the detection requirements.
[0085] The system and method have a wide range of applications, a fast response rate, a simple control system logic, can quickly and accurately obtain detection information of the object to be detected, and can complete in-situ online detection of the pins of the electronic packaging shell.
[0086] Example 2
[0087] like Figure 7As shown, the main difference between this embodiment and embodiment 1 is that the conveying device is replaced by an annular guide rail 13 and cooperates with corresponding fixtures to realize the circular conveyance of electronic packaging shells. Visual inspection modules are arranged on both sides of the annular guide rail 13, which can inspect multiple electronic packaging shells 101 at the same time and improve the inspection efficiency.
[0088] In this embodiment, the electronic packaging shell pin double-sided synchronous detection system also cooperates with the industrial robot 14. The industrial robot 14 transfers the electronic packaging shell 101 in the electronic packaging shell carrying tray 15 to the fixture 10, and transmits it using the circular guide rail 13. After being transmitted to the detection system for detection, the corresponding results are output. For NG products, the industrial robot 14 is used to load them into the NG sorting box 16.
[0089] In order to facilitate the loading and unloading of the industrial robot 14 , the electronic packaging shell carrying tray 15 is connected to the tray lifting module 17 , so that it can be freely lifted to a position convenient for the industrial robot 14 to pick up materials, and it is also convenient for manual placement of the electronic packaging shell in the electronic packaging shell carrying tray 15 .
[0090] In this embodiment, the electronic packaging shell pin double-sided synchronous detection system is combined with industrial robots, automatic loading and unloading modules, circular guide rails and other modules to upgrade the production line, realize automated detection, and achieve the effect of reducing costs and increasing efficiency.
[0091] The above describes the implementation methods of the present application in detail in conjunction with the accompanying drawings, but the present application is not limited to the above implementation methods. Various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the present application.
Claims
1. A system for synchronously detecting the pins of an electronic package shell on both sides, comprising a support mechanism, a conveying device, a fixture, a visual inspection module, and an image processing system, wherein the conveying device and the visual inspection module are installed on the support mechanism, the fixture is used to carry a sample to be tested, and the conveying device is used to convey the sample to be tested carried by the fixture to the visual inspection module for inspection, characterized in that: The visual inspection module includes a front visual inspection module and a back visual inspection module which are symmetrically arranged with the jig conveying plane as the center. The front visual inspection module and the back visual inspection module each include at least two groups of visual inspection mechanisms. The at least two groups of visual inspection mechanisms respectively correspond to detecting a column of pins of the sample to be tested. The image processing system is used to perform size and defect detection on the pins collected by the visual inspection mechanism.
2. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: It also includes an adjusting device, which moves and adjusts the position of the visual detection mechanism.
3. The electronic packaging shell pin double-sided synchronous detection system according to claim 2, characterized in that: The adjustment device includes an adapter plate and a two-dimensional displacement platform. The adapter plate is installed on the supporting mechanism, and the visual detection mechanism is connected to the adapter plate via the two-dimensional displacement platform. The adapter plate moves relative to the supporting mechanism to adjust the position of the visual detection mechanism on the supporting mechanism, and the two-dimensional displacement platform moves relative to the adapter plate to adjust the position of the visual detection mechanism on the adapter plate.
4. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: The visual inspection mechanism includes a camera assembly, a lens, and a light source assembly, which are installed in series.
5. The electronic packaging shell pin double-sided synchronous detection system according to claim 4, characterized in that: The visual inspection mechanism includes a plurality of sliding frames and cage rods connecting the plurality of sliding frames, the sliding frames slide up and down along the cage rods, the sliding frames and the cage rods form a cage structure to install the camera assembly, the lens assembly, and the light source assembly in series in sequence along the vertical direction.
6. The electronic packaging shell pin double-sided synchronous detection system according to claim 5, characterized in that: The light source assembly includes a low-angle annular light source and a light source adapter plate, and the lens assembly adopts a telecentric lens.
7. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: The supporting mechanism includes a supporting base, a conveying device supporting frame installed on the supporting base, and a visual inspection module supporting frame installed on the supporting base, wherein the supporting base is composed of four profile brackets connected front and back; the conveying device supporting frame is composed of a transverse profile bracket connecting two longitudinal profile brackets and is symmetrically arranged on both sides of the supporting base; the visual inspection module supporting frame is composed of two upper and lower transverse profile brackets connecting two longitudinal profile brackets, and the upper and lower transverse profile brackets respectively carry a front visual inspection module and a back visual inspection module.
8. The electronic packaging shell pin double-sided synchronous detection system according to claim 7, characterized in that: The conveying device includes a driving device, a controller and a linear module. The linear module is installed on the transverse profile bracket of two conveying device support frames. A motion platform is connected between the linear modules. The fixture is installed at the center of the motion platform. The driving device drives the motion platform to convey the sample to be tested carried by the fixture to the visual inspection module for inspection. The controller controls the moving speed of the motion platform.
9. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: It also includes a sensing device, which senses that the pins on the sample to be tested reach the visual detection module and triggers the visual detection module to perform detection.
10. The electronic packaging shell pin double-sided synchronous detection system according to claim 9, characterized in that: The sensing device adopts a laser sensor.
11. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: The at least two groups of visual detection mechanisms are staggeredly arranged along a direction perpendicular to the conveying direction of the sample to be detected.
12. The electronic packaging shell pin double-sided synchronous detection system according to claim 1, characterized in that: The conveying device is an annular guide rail, and the visual inspection modules are respectively arranged on both sides of the annular guide rail.
Citation Information
Cited By
Electronic packaging shell pin double-sided synchronous detection system and method
CN117761068A
