1. Bottle cap detection principle According to the customer's mechanical characteristics, we consider using the lighting method shown in Figure 1 and the way to set up the camera.
Illuminating the bottle cap with the upper irradiation light source can better obtain the detection of the key bottle caps. On the other hand, using such a lighting method is also relatively easy to install and the cost is relatively low.
By analyzing the size characteristics of the vials, it is found that there is a certain size deviation in the bottle body, which will inevitably have a certain influence on whether the cap is tightly capped. Through evaluation, it can be found that the position of the bottle mouth can be positioned by the DMV's built-in tool “edge positionâ€, so that the effect of bottle height error on the detection can be avoided.
In the actual detection process, due to the characteristics of the feeding mechanism, there is a certain deviation in the left and right direction of the bottle at each shooting. It is also possible to position the bottle by means of the "edge position" tool.
After the analysis above, we can determine the position of the measured vial through the two dimensions and ensure the stability of the detection. Through the "binarization" of the images taken, it can be clearly seen that the upper part of the bottle cap will be illuminated due to the effect of the upper light source, which appears as a large white pixel in the picture. At this time, the white pixels in the red frame in FIG. 4 can be used to detect the presence or absence of the bottle cap and whether the bottle cap is in place.
1. Bottle testing process There are two conditions for determining the NG of the product: the bottle cap is missing (if there is no white pixel in the red frame, the bottle cap can be considered lost); the bottle cap is not installed in place, and its manifestation is that the bottle cap is tilted , Or the height change, we can establish a white pixel detection area above the normal cap, under normal circumstances should not detect white pixels, such as in this area there are too many white pixels, you can think that the cap is not installed in place. The DMV test tool can then be planned as follows. ??
The first "edge position" locates the bottle's X-axis position (in the horizontal X-axis) and the second "edge position" positions the lid in the Y-axis position.
Due to the loss of the cap, it is also necessary to add a test to detect the presence of the cap. After observing, if the cap is present, it will be illuminated by the light source and many white pixels will appear. In this case, the presence or absence of detection can be achieved by detecting the number of white pixels. If the bottle cap is lost, the white pixel in the specified detection area must not reach the rated quantity, and based on this, the presence or absence of the bottle cap can be determined.
The final output results need to be judged by combining the results of the two "Area" tools. As long as one NG occurs, that is, if the bottle cap is missing or the bottle cap is not installed properly, the bottle will not pass. Therefore, we need to use the “judgment†to synthesize the detection results of these two detection tools.
3. Detection results Through the detection and judgment, the situation of the vial can be clearly seen. At present, the system can complete the determination of one product in less than 60ms. Theoretically, the detection of 1,000 products per minute, but due to the limitations of the mechanical structure of the system, At present, it can reach a detection speed of 400 bottles/minute, and it has fully satisfied the needs of customers.
4. Concluding remarks As the saying goes, "human life is off the heavens." The quality of drugs is no small matter. Under the background of automatic production, the control of product quality is also the most urgent problem to be solved. The introduction of Delta's DMV vision system can ensure the quality of the drug installation, and also solve the problem that other sensing technologies cannot accurately detect whether the bottle cap is in place.
????????
Illuminating the bottle cap with the upper irradiation light source can better obtain the detection of the key bottle caps. On the other hand, using such a lighting method is also relatively easy to install and the cost is relatively low.
By analyzing the size characteristics of the vials, it is found that there is a certain size deviation in the bottle body, which will inevitably have a certain influence on whether the cap is tightly capped. Through evaluation, it can be found that the position of the bottle mouth can be positioned by the DMV's built-in tool “edge positionâ€, so that the effect of bottle height error on the detection can be avoided.
In the actual detection process, due to the characteristics of the feeding mechanism, there is a certain deviation in the left and right direction of the bottle at each shooting. It is also possible to position the bottle by means of the "edge position" tool.
After the analysis above, we can determine the position of the measured vial through the two dimensions and ensure the stability of the detection. Through the "binarization" of the images taken, it can be clearly seen that the upper part of the bottle cap will be illuminated due to the effect of the upper light source, which appears as a large white pixel in the picture. At this time, the white pixels in the red frame in FIG. 4 can be used to detect the presence or absence of the bottle cap and whether the bottle cap is in place.
1. Bottle testing process There are two conditions for determining the NG of the product: the bottle cap is missing (if there is no white pixel in the red frame, the bottle cap can be considered lost); the bottle cap is not installed in place, and its manifestation is that the bottle cap is tilted , Or the height change, we can establish a white pixel detection area above the normal cap, under normal circumstances should not detect white pixels, such as in this area there are too many white pixels, you can think that the cap is not installed in place. The DMV test tool can then be planned as follows. ??
The first "edge position" locates the bottle's X-axis position (in the horizontal X-axis) and the second "edge position" positions the lid in the Y-axis position.
Due to the loss of the cap, it is also necessary to add a test to detect the presence of the cap. After observing, if the cap is present, it will be illuminated by the light source and many white pixels will appear. In this case, the presence or absence of detection can be achieved by detecting the number of white pixels. If the bottle cap is lost, the white pixel in the specified detection area must not reach the rated quantity, and based on this, the presence or absence of the bottle cap can be determined.
The final output results need to be judged by combining the results of the two "Area" tools. As long as one NG occurs, that is, if the bottle cap is missing or the bottle cap is not installed properly, the bottle will not pass. Therefore, we need to use the “judgment†to synthesize the detection results of these two detection tools.
3. Detection results Through the detection and judgment, the situation of the vial can be clearly seen. At present, the system can complete the determination of one product in less than 60ms. Theoretically, the detection of 1,000 products per minute, but due to the limitations of the mechanical structure of the system, At present, it can reach a detection speed of 400 bottles/minute, and it has fully satisfied the needs of customers.
4. Concluding remarks As the saying goes, "human life is off the heavens." The quality of drugs is no small matter. Under the background of automatic production, the control of product quality is also the most urgent problem to be solved. The introduction of Delta's DMV vision system can ensure the quality of the drug installation, and also solve the problem that other sensing technologies cannot accurately detect whether the bottle cap is in place.
????????
Guangzhou Yunge Tianhong Electronic Technology Co., Ltd , http://www.e-cigaretteyfactory.com