In the defect detection of the outer side of the bottle cap, it is difficult to achieve uniform illumination of the circular arc surface to be detected. And there is a texture variation of non-skid bars on the surface, which can easily cause wrong segmentation of defects. To solve these problems, this paper proposes a high-angle and multi-view inspection system (HAMV), in which the chief ray of the light source is incident uniformly along the arc direction to circular arc surface by means of high-angle annular illumination. Also, the complete imaging of the outer side is accomplished in four imaging views. Further, a defect detection algorithm based on the background reconstruction of line structure element (BRLSE) is established. It reconstructs the background texture using line structure element and reduces the interference of non-skid bars texture on defect detection. At the same time, the adaptive segmentation of different sub-regions is completed by combining the contour coordinates of the bottle cap to be inspected. Finally, different kinds of defects are extracted in different sub-regions. In this paper, the HAMV is applied to the actual inspection scenario, and the inspection speed is better than 400 pcs/min and the inspection accuracy is better than 95%, which can meet the actual production line capacity as well as the inspection requirements.
During the machine vision inspection of the inner section of bottle caps within pharmaceutical packaging, the unique conca bottom and convex side walls often create obstructions to the illumination. Consequently, this results in challenges such as irregular background and diminished feature contrast in the image, ultimately leading to the misidentification of defects. As a solution, a vision system characterized by a Low-Angle and Large Divergence Angle (LALDA) is presented in this paper. Using the large divergence angle of LED, combined with low-angle illumination, a uniform image of the side wall region with bright-field characteristics and a uniform image of inner circle region at the bottom with dark-field characteristics are obtained, thus solving the problems of light being obscured and brightness overexposure of the background. Based on the imaging characteristics of LALDA, a multi-channel segmentation (MCS) algorithm is designed. The HSV color space has been transformed, and the image is automatically segmented into multiple sub-regions by mutual calculation of different channels. Further, image homogenization and enhancement are used to eliminate fluctuations in the background and to enhance the contrast of defects. In addition, a variety of defect extraction methods are designed based on the imaging characteristics of different sub-regions, which can avoid the problem of over-segmentation in detection. In this paper, the LALDA is applied to the defect detection inside the cap of capsule medicine bottle, the detection speed is better than 400 pcs/min and the detection accuracy is better than 95%, which can meet the actual production line capacity and detection requirements.
In order to solve the misjudgment problem of different information in common gray images due to the very similar features such as morphology and gray value, and to avoid the high cost of using the 3-D sensor in defect detection, a zonal and time-sharing computational imaging (ZTSCI) is proposed in this paper. Firstly, a four-zone and time-sharing exposure visual imaging system is constructed by monocular telecentric imaging and lights in different directions. Then, according to the gray image under four groups of illumination conditions, and the direction vectors of incident lights, five feature images are calculated, such as fused images of maximum and average, enhanced images of normal vector, gradient and relative height. On the one hand, the image background fluctuation caused by the calculation error introduced by the ideal hypothesis is weakened, and the interference of surface texture to defect detection is reduced. On the other hand, the difference of easily-confused information can be increased in different feature spaces. In this paper, the ZTSCI is further applied to defect detection on the surface of new energy batteries. It solves the problem that defects and interference information are difficult to distinguish in gray images captured with common machine vision methods, reduces the difficulty of subsequent defect recognition, and lays a foundation for improving the accuracy of recognition.
Empty large volume parenteral (LVP) bottle has irregular shape and narrow opening, and its detection accuracy of the foreign substances at the bottom is higher than that of ordinary packaging bottles. The current traditional detection method for the bottom of LVP bottles is to directly use manual visual inspection, which involves high labor intensity and is prone to visual fatigue and quality fluctuations, resulting in limited applicability for the detection of the bottom of LVP bottles. A geometric constraint-based detection model (GCBDM) has been proposed, which combines the imaging model and the shape characteristics of the bottle to construct a constraint model of the imaging parameters, according to the detection accuracy and the field of view. Then, the imaging model is designed and optimized for the detection. Further, the generalized GCBDM has been adopted to different bottle bottom detection scenarios, such as cough syrup and capsule medicine bottles by changing the target parameters of the model. The GCBDM, on the one hand, can avoid the information at the bottom being blocked by the narrow opening in the imaging optical path. On the other hand, by calculating the maximum position deviation between the center of visual inspection and the center of the bottom, it can provide the basis for the accuracy design of the transmission mechanism in the inspection, thus further ensuring the stability of the detection.