Bottle cap defect detection method and system
Through the bottle cap detection area determination module, size detection module, surface defect detection module and character quality detection module, the bottle cap quality evaluation index is calculated, which solves the problem that traditional detection methods cannot comprehensively detect bottle cap defects, and achieves a more accurate and intuitive The test results improve production efficiency and product quality.
Patent Information
- Application Number
- CN202410971189.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The traditional bottle cap defect detection method cannot comprehensively detect the size, surface defects and character quality of the bottle cap, making the defect detection unintuitive, unable to accurately determine whether the bottle cap has defects, and lacking a comprehensive evaluation index.
Using the bottle cap detection area determination module, size detection module, surface defect detection module, character quality detection module and comprehensive data analysis module, through accurate detection and analysis of the external dimensions, internal dimensions, surface defects and character quality of the bottle cap, the bottle cap is calculated Cover quality assessment index and send early warning signals to relevant personnel.
It improves detection accuracy and production efficiency, reduces manual inspection time and cost, reduces false detection and missed detection rates, can intuitively reflect whether the bottle cap meets production standards, and effectively avoids material waste.
Smart Images

Figure CN118501063B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image recognition technology, and more specifically, to a bottle cap defect detection method and system. Background Art
[0002] Bottle caps are an important part of packaging containers. Their quality directly affects the sealing and safety of products. If there are defects in the bottle caps, it may cause product leakage, deterioration or contamination, posing a potential threat to consumers' health. Bottle cap defect detection is a key link in protecting consumer safety. Through bottle cap defect detection technology, high-definition images of bottle caps are obtained through image acquisition equipment, and various undesirable conditions on bottle caps are detected using image processing and pattern recognition algorithms. In summary, bottle cap defect detection is of great significance in ensuring consumer safety, improving product quality, and improving production efficiency. With the development of technology, advanced technologies such as machine vision and AI vision software provide more efficient, accurate and reliable solutions for bottle cap defect detection.
[0003] The traditional bottle cap defect detection method and system collects images of bottle cap sheets; identifies the bottle caps at the four top corners of the bottle cap sheet image based on the original image of the bottle cap sheet by contour positioning, and then locates the set reference edge based on numerical calculation; detects the x-axis and y-axis values of the image bottle cap position based on the result of contour positioning, and compares the inner side graphics of the bottle cap with the template image to perform defect detection. The specific position of the bottle cap sheet is selected by contour positioning of the bottle cap sheet, and the image similarity and the inner side graphics of the bottle cap are detected to select the defects caused by the offset during the production of the bottle cap, thereby improving the quality and efficiency of automated production.
[0004] However, there are still some shortcomings in its actual use, such as the data collection is not comprehensive enough. The traditional bottle cap defect detection method only detects the offset error generated in the production process of the bottle cap. In addition, the defects of the bottle cap also include the size of the bottle cap not meeting the production requirements, whether the bottle cap has defects such as gaps, burrs, deformation, color difference and damage, and whether the characters on the bottle cap are missing, the printing is vague, the printing is incomplete, and the font is tilted, resulting in the inability to accurately detect the defects of the bottle cap; the defect reflection is not intuitive. The traditional defect detection method cannot intuitively and conveniently know whether the bottle cap has defects. No comprehensive index has been established to judge whether the bottle cap has defects. Relatively speaking, it is not convenient and intuitive enough. Summary of the invention
[0005] In order to overcome the above defects of the prior art, an embodiment of the present invention provides a bottle cap defect detection method and system, which solves the problems raised in the above background technology through the following scheme.
[0006] To achieve the above purpose, the present invention provides the following technical solution: a bottle cap defect detection method and system. It includes:
[0007] Bottle cap detection area determination module: used to accurately determine the detection area to focus on key parts, reasonably divide the detection area of the bottle cap, and send the detection area information to the corresponding detection module;
[0008] Bottle cap size detection module: used to detect the external and internal dimensions of the target bottle cap. The external dimensions of the bottle cap include the outer diameter of the cap, the height of the cap, and the outer diameter of the anti-counterfeiting ring, which are marked as , and The internal dimensions of the bottle cap include the inner diameter of the thread and the inner diameter of the cap, which are marked as and and transmit the collected bottle cap size data to the bottle cap size data analysis module;
[0009] Bottle cap size data analysis module: including bottle cap external size data analysis unit and bottle cap internal size data analysis unit, used for processing and analyzing the data detected by the bottle cap size detection module, and transmitting the obtained results to the comprehensive data analysis module;
[0010] Bottle cap surface defect detection module: used to detect the surface defect data of the target bottle cap and transmit the detected surface defect data to the bottle cap surface defect data analysis module;
[0011] Bottle cap surface defect data analysis module: including a bottle cap surface defect data analysis unit, used for processing and analyzing the bottle cap surface defect data detected by the bottle cap surface defect detection module, and transmitting the obtained results to the comprehensive data analysis module;
[0012] Character quality detection module: used to detect the character quality information on the bottle cap and transmit the detected character quality information to the character quality data analysis module;
[0013] Character quality data analysis module: including a character quality data analysis unit, used to process and analyze the character quality data information collected by the character quality detection module, and transmit the results to the comprehensive data analysis module;
[0014] Comprehensive data analysis module: including a comprehensive data analysis unit, used for comprehensive data processing and analysis of the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained by the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module, and transmitting the results to the information interaction module;
[0015] Information interaction module: used to establish the standard value of the bottle cap quality index, make a judgment by comparing the standard value of the bottle cap quality index with the bottle cap quality evaluation index of the target bottle cap, and send an early warning signal to relevant personnel based on the judgment result.
[0016] Preferably, the determination of the bottle cap detection area refers to reasonably dividing the detection area according to the shape, size and detection requirements of the bottle cap, and the detection area includes key parts such as the bottle cap mouth, side wall and bottom, and different detection methods and tools are used for different detection areas.
[0017] Preferably, the bottle cap external dimension data analysis unit is used to establish a bottle cap external dimension data analysis model, import the bottle cap external dimension data detected by the bottle cap dimension detection module into the bottle cap external dimension data analysis model, and obtain the bottle cap external dimension coefficient, which is specifically expressed as:
[0018] ,
[0019] represents the external dimension coefficient of the target bottle cap, Indicates the outer diameter of the target bottle cap. Indicates the cap height of the target bottle cap, Indicates the outer diameter of the anti-counterfeiting ring of the target bottle cap, Indicates the standard outer diameter of the target bottle cap. Indicates the standard cap height of the target bottle cap, represents the outer diameter of the standard anti-counterfeiting ring of the target bottle cap; the bottle cap internal dimension data analysis unit is used to establish a bottle cap internal dimension data analysis model, import the bottle cap internal dimension data detected by the bottle cap dimension detection module into the bottle cap internal dimension data analysis model, and obtain the bottle cap internal dimension coefficient, which is specifically expressed as:
[0020] ,
[0021] represents the internal dimension coefficient of the target bottle cap, Indicates the inner diameter of the thread of the target bottle cap, represents the inner diameter of the target bottle cap, Indicates the standard thread inner diameter of the target bottle cap, It represents the standard inner diameter of the target bottle cap. The bottle cap size coefficient can be obtained by the bottle cap inner size coefficient and the bottle cap outer size coefficient, which is specifically expressed as: , Indicates the cap size factor of the target cap.
[0022] Preferably, the surface defect data of the bottle cap specifically include bottle cap burrs, bottle cap notches, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap damage, which are marked as B1 B 2 3 , B 4 B 5 B 6 and B 7 .
[0023] Preferably, the bottle cap surface defect data analysis unit is used to establish a bottle cap surface defect data analysis model, import the bottle cap surface defect data collected by the bottle cap surface defect detection module into the bottle cap surface defect data analysis model, and obtain the bottle cap surface defect coefficient, which is specifically expressed as:
[0024] ,
[0025] represents the surface defect coefficient of the target bottle cap, B 1 Indicates the burr defect of the target bottle cap, B 2 Indicates the cap notch defect of the target cap, B 3 Indicates the deformation defect of the target bottle cap, B 4 represents the area of the black spot on the target bottle cap, B 5 Indicates the overflow defect of the target bottle cap, B 6 Indicates the color difference defect of the target bottle cap, B 7 Indicates the broken cap defect of the target bottle cap. , , , , , as well as They respectively represent the influence coefficients of bottle cap burrs, bottle cap gaps, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap breakage on the bottle cap surface defect coefficient.
[0026] Preferably, the character quality information includes the missing printing of characters, the missing printing of characters, the ambiguity of the printing of characters, the incomplete printing of characters, and the font tilt of characters, which are marked as C 1 C 2 C 3 C 4 , and C 5 .
[0027] Preferably, the character quality data analysis unit is used to establish a character quality data analysis model, import the character quality data information collected by the character quality detection module into the character quality data analysis model, and obtain the character quality coefficient, which is specifically expressed as:
[0028] ,
[0029] Represents the character quality coefficient of the target bottle cap, C 1 Indicates the missing characters on the target bottle cap, C 2 Indicates the missing characters of the target bottle cap, C 3 Indicates the ambiguity of the character printing on the target bottle cap, C 4 Indicates that the characters on the target bottle cap are not fully printed. 5 Indicates the font tilt of the target bottle cap. , , , as well as They respectively represent the influence coefficients of missing characters, missing characters, ambiguous characters, incomplete characters, and font inclination on the character quality coefficient of the bottle cap.
[0030] Preferably, the comprehensive data analysis unit is used to establish a comprehensive data analysis model, and the coefficients obtained by the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module are imported into the comprehensive data model to obtain the bottle cap quality evaluation index, which is specifically expressed as:
[0031] ,
[0032] represents the bottle cap quality evaluation index of the target bottle cap, represents the cap size factor of the target cap, represents the surface defect coefficient of the target bottle cap, Indicates the character quality coefficient of the target bottle cap, , and They respectively represent the influence coefficients of bottle cap size coefficient, bottle cap surface defect coefficient and bottle cap character quality coefficient on the bottle cap quality evaluation index.
[0033] Preferably, the standard value of the bottle cap quality index is marked as Indicates the allowable error value of the bottle cap quality index, indicating that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is within the allowable error value, the bottle cap meets the production standard, and the next bottle cap is tested; when When , it means that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is outside the allowable error value, and the bottle cap does not meet the production standard. The information interaction module needs to send an early warning message to the operation end to remind the relevant personnel that the bottle cap does not meet the production standard and prompt the relevant personnel to take corresponding measures.
[0034] Preferably, the bottle cap defect detection method comprises the following steps:
[0035] Step 1: Use cameras and visual equipment to accurately locate the test points of the target bottle cap;
[0036] Step 2: Use laser measurement to detect the outer diameter of the target bottle cap, the height of the cap, the outer diameter of the anti-counterfeiting ring, the inner diameter of the thread, and the inner diameter of the cap;
[0037] Step 3: Use automated visual inspection equipment to inspect the surface of the target bottle cap for burrs, notches, deformation, black spot area, overflow, color difference, and damage;
[0038] Step 4: Use OCR character recognition technology to scan and recognize the characters on the target bottle cap through a machine vision system to detect missing characters, missing characters, ambiguous characters, incomplete characters, and font tilt of characters on the bottle cap;
[0039] Step 5: Import the data measured in the above step 2 into the bottle cap internal dimension analysis model and the bottle cap external dimension analysis model to calculate the bottle cap dimension coefficient;
[0040] Step 6: Import the data measured in the above step 3 into the bottle cap surface defect data analysis model to calculate the bottle cap surface defect coefficient;
[0041] Step 7: Import the data measured in step 4 into the character quality data analysis model to calculate the character quality coefficient;
[0042] Step 8: Import the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained in the above steps 5-7 into the comprehensive data analysis model to calculate the bottle cap quality evaluation index of the target bottle cap;
[0043] Step 9: Set the standard value of the bottle cap quality index , the bottle cap quality evaluation index and the bottle cap quality index standard value Compare and judge whether the bottle cap meets the production standards. If the bottle cap does not meet the production standards, an alarm message is sent to the relevant staff.
[0044] Technical effects and advantages of the present invention:
[0045] 1. The present invention accurately determines the detection area corresponding to each quality factor through the bottle cap detection area determination module, which can reduce the time and labor cost of manual inspection, accelerate the operation speed of the production line, reduce the error rate, improve the overall production efficiency, reduce the waste of resources, and provide accurate positioning for subsequent bottle cap size detection, bottle cap surface defect detection and character quality detection.
[0046] 2. The present invention accurately detects and analyzes various dimensions of the target bottle cap through the bottle cap size detection module, the bottle cap surface defect detection module and the character quality detection module, can accurately determine the defects of the target bottle cap, and make improvements based on the defects, which can effectively avoid the waste of materials. By analyzing a large amount of data, a more accurate algorithm model can be established to improve the accuracy of detection and reduce the false detection and missed detection rates. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic diagram of the overall structure of the present invention. DETAILED DESCRIPTION
[0048] 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. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] refer to Figure 1 The bottle cap defect detection method and system shown include a bottle cap detection area determination module, a bottle cap size detection module, a bottle cap surface defect detection module, a character quality detection module, a bottle cap size data analysis module, a bottle cap surface defect data analysis module, a character quality data analysis module, a comprehensive data analysis module and an information interaction module.
[0050] The output end of the bottle cap detection area determination module is respectively connected to the input ends of the bottle cap size detection module, the bottle cap surface defect detection module and the character quality detection module, the output end of the bottle cap size detection module is connected to the input end of the bottle cap size data analysis module, the output end of the bottle cap surface defect detection module is connected to the input end of the bottle cap surface defect data analysis module, the output end of the character quality detection module is connected to the input end of the character quality data analysis module, the output ends of the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module are respectively connected to the input end of the comprehensive data analysis module, and the output end of the comprehensive data analysis module is connected to the input end of the information interaction module.
[0051] The bottle cap detection area determination module is used to accurately determine the detection area to focus on key parts, reasonably divide the detection area of the bottle cap, and send the detection area information to the corresponding detection module.
[0052] The determination of the bottle cap detection area refers to the reasonable division of the detection area according to the shape, size and detection requirements of the bottle cap. The detection area includes key parts such as the bottle cap mouth, side wall and bottom. Different detection methods and tools are used for different detection areas.
[0053] What needs to be specifically explained in this embodiment is that determining the bottle cap detection area is an important step in the bottle cap detection process. By reasonably determining the detection area and adopting advanced technologies and methods, defects and problems in the bottle cap can be detected more accurately, thereby improving product quality and safety.
[0054] The bottle cap size detection module is used to detect the external size and internal size of the target bottle cap. The external size of the bottle cap includes the outer diameter of the cap, the height of the cap and the outer diameter of the anti-counterfeiting ring, which are marked as , and The internal dimensions of the bottle cap include the inner diameter of the thread and the inner diameter of the cap, which are marked as and and transmit the collected bottle cap size data to the bottle cap size data analysis module.
[0055] The bottle cap size data analysis module includes a bottle cap external size data analysis unit and a bottle cap internal size data analysis unit, which are used to process and analyze the data detected by the bottle cap size detection module and transmit the obtained results to the comprehensive data analysis module.
[0056] The bottle cap external dimension data analysis unit is used to establish a bottle cap external dimension data analysis model, import the bottle cap external dimension data detected by the bottle cap dimension detection module into the bottle cap external dimension data analysis model, and obtain the bottle cap external dimension coefficient, which is specifically expressed as:
[0057] ,
[0058] represents the external dimension coefficient of the target bottle cap, Indicates the outer diameter of the target bottle cap. Indicates the cap height of the target bottle cap, Indicates the outer diameter of the anti-counterfeiting ring of the target bottle cap, Indicates the standard outer diameter of the target bottle cap. Indicates the standard cap height of the target bottle cap, represents the outer diameter of the standard anti-counterfeiting ring of the target bottle cap; the bottle cap internal dimension data analysis unit is used to establish a bottle cap internal dimension data analysis model, import the bottle cap internal dimension data detected by the bottle cap dimension detection module into the bottle cap internal dimension data analysis model, and obtain the bottle cap internal dimension coefficient, which is specifically expressed as:
[0059] ,
[0060] represents the internal dimension coefficient of the target bottle cap, Indicates the inner diameter of the thread of the target bottle cap, represents the inner diameter of the target bottle cap, Indicates the standard thread inner diameter of the target bottle cap, It represents the standard inner diameter of the target bottle cap. The bottle cap size coefficient can be obtained by the bottle cap inner size coefficient and the bottle cap outer size coefficient, which is specifically expressed as: , Indicates the cap size factor of the target cap.
[0061] What needs to be specifically explained in this embodiment is that the detection and data analysis of the bottle cap size will perform detailed detection and analysis on various size data of the target bottle cap, so as to more clearly know which aspect of the bottle cap does not meet the production standard, and judge whether the point that does not meet the requirements can be modified, which can effectively avoid the waste of bottle caps in the production process.
[0062] The bottle cap surface defect detection module is used to detect surface defect data of a target bottle cap, and transmit the detected surface defect data to the bottle cap surface defect data analysis module.
[0063] The surface defect data of the bottle cap specifically include bottle cap burrs, bottle cap gaps, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap damage, which are marked as B 1 B 2 3 , B 4 B 5 B 6 and B 7 .
[0064] The bottle cap surface defect data analysis module includes a bottle cap surface defect data analysis unit, which is used to process and analyze the bottle cap surface defect data detected by the bottle cap surface defect detection module, and transmit the obtained results to the comprehensive data analysis module.
[0065] The bottle cap surface defect data analysis unit is used to establish a bottle cap surface defect data analysis model, import the bottle cap surface defect data collected by the bottle cap surface defect detection module into the bottle cap surface defect data analysis model, and obtain the bottle cap surface defect coefficient, which is specifically expressed as:
[0066] ,
[0067] represents the surface defect coefficient of the target bottle cap, B 1 Indicates the burr defect of the target bottle cap, B 2 Indicates the cap notch defect of the target cap, B 3 Indicates the deformation defect of the target bottle cap, B 4 represents the area of the black spot on the target bottle cap, B 5 Indicates the overflow defect of the target bottle cap, B 6 Indicates the color difference defect of the target bottle cap, B 7 Indicates the broken cap defect of the target bottle cap. , , , , , as well as They respectively represent the influence coefficients of bottle cap burrs, bottle cap gaps, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap breakage on the bottle cap surface defect coefficient.
[0068] It should be specifically explained in this embodiment that the burrs on the bottle caps refer to the situation in which excessive extracts appear on the edge of the bottle caps due to poor mold design, mold wear or non-standard injection molding process during the production process of the bottle caps; the notches on the bottle caps help to increase the friction between the fingers and the bottle caps, and also serve as tooth marks, which help to measure the sealing leakage angle and the broken ring angle during the production and quality control process to ensure the sealing performance of the bottle caps; the deformation of the bottle caps is divided into significant deformation and minor deformation. Significant deformation refers to obvious shape changes on the edge or surface of the bottle caps, which affects the appearance and use. Minor deformation refers to slight changes in the shape of the bottle caps, which may require the help of tools or measuring equipment to be discovered; bottle cap overflow refers to excess plastic material on the edge or surface of the bottle caps; bottle cap color difference refers to the difference in color of bottle caps in different batches or the same batch.
[0069] The character quality detection module is used to detect the printing conditions of the characters on the bottle cap, and transmit the detected character quality information to the character quality data analysis module.
[0070] The character quality information includes the missing printing of characters, the missing printing of characters, the ambiguity of the printing of characters, the incomplete printing of characters, and the font tilt of characters, which are marked as C 1 C 2 C 3 C 4 and C 5 .
[0071] The character quality data analysis module comprises a character quality data analysis unit, which is used to detect character quality information on the bottle cap and transmit the detected character quality information to the character quality data analysis module.
[0072] The character quality data analysis unit is used to establish a character quality data analysis model, import the character quality data information collected by the character quality detection module into the character quality data analysis model, and obtain the character quality coefficient, which is specifically expressed as:
[0073] ,
[0074] Represents the character quality coefficient of the target bottle cap, C 1 Indicates the missing characters on the target bottle cap, C 2 Indicates the missing characters of the target bottle cap, C 3 Indicates the ambiguity of the character printing on the target bottle cap, C 4 Indicates that the characters on the target bottle cap are not fully printed. 5 Indicates the font tilt of the target bottle cap. , , , as well as They respectively represent the influence coefficients of missing characters, missing characters, ambiguous characters, incomplete characters, and font inclination on the character quality coefficient of the bottle cap.
[0075] It should be specifically noted in this embodiment that the characters on the bottle cap are usually the carriers of important information such as product brand, production date, batch number, etc. High-quality characters can convey this information clearly and accurately, which helps consumers recognize and remember the brand and enhance the brand image; on the contrary, if the character quality is poor, such as blur, missing, misplaced, etc., it may cause consumers to be unable to accurately obtain product information and have a bad impression of the brand.
[0076] The comprehensive data analysis module includes a comprehensive data analysis unit, which is used to perform comprehensive data processing and analysis on the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained by the bottle cap size data analysis module, bottle cap surface defect data analysis module and character quality data analysis module, and transmit the results to the information interaction module.
[0077] The comprehensive data analysis unit is used to establish a comprehensive data analysis model, import the coefficients obtained by the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module into the comprehensive data model, and obtain the bottle cap quality evaluation index, which is specifically expressed as:
[0078] ,
[0079] represents the bottle cap quality evaluation index of the target bottle cap, represents the cap size factor of the target cap, represents the surface defect coefficient of the target bottle cap, Indicates the character quality coefficient of the target bottle cap, , and They respectively represent the influence coefficients of bottle cap size coefficient, bottle cap surface defect coefficient and bottle cap character quality coefficient on the bottle cap quality evaluation index.
[0080] What needs to be specifically explained in this embodiment is that the results of the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module are imported into the comprehensive data analysis model through the comprehensive data analysis module, and the bottle cap quality evaluation index is calculated, which can comprehensively feedback whether the target bottle cap meets the production standards, and provide effective data support for the information interaction module. Through comprehensive analysis, it can more intuitively reflect whether the target bottle cap meets the production standards, and provide effective data support for the information interaction module to issue early warning information.
[0081] The information interaction module is used to establish a standard value of the bottle cap quality index, make a judgment by comparing the standard value of the bottle cap quality index with the bottle cap quality evaluation index of the target bottle cap, and send an early warning signal to relevant personnel according to the judgment result.
[0082] The standard value of the bottle cap quality index is marked as Indicates the allowable error value of the bottle cap quality index, indicating that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is within the allowable error value, the bottle cap meets the production standard, and the next bottle cap is tested; when When , it means that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is outside the allowable error value, and the bottle cap does not meet the production standard. The information interaction module needs to send an early warning message to the operation end to remind the relevant personnel that the bottle cap does not meet the production standard and prompt the relevant personnel to take corresponding measures.
[0083] A bottle cap defect detection method, comprising:
[0084] Step 1: Use cameras and visual equipment to accurately locate the test points of the target bottle cap;
[0085] Step 2: Use laser measurement to detect the outer diameter of the target bottle cap, the height of the cap, the outer diameter of the anti-counterfeiting ring, the inner diameter of the thread, and the inner diameter of the cap;
[0086] Step 3: Use automated visual inspection equipment to inspect the surface of the target bottle cap for burrs, notches, deformation, black spot area, overflow, color difference, and damage;
[0087] Step 4: Use OCR character recognition technology to scan and recognize the characters on the target bottle cap through a machine vision system to detect missing characters, missing characters, ambiguous characters, incomplete characters, and font tilt of characters on the bottle cap;
[0088] Step 5: Import the data measured in the above step 2 into the bottle cap internal dimension analysis model and the bottle cap external dimension analysis model to calculate the bottle cap dimension coefficient;
[0089] Step 6: Import the data measured in the above step 3 into the bottle cap surface defect data analysis model to calculate the bottle cap surface defect coefficient;
[0090] Step 7: Import the data measured in step 4 into the character quality data analysis model to calculate the character quality coefficient;
[0091] Step 8: Import the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained in the above steps 5-7 into the comprehensive data analysis model to calculate the bottle cap quality evaluation index of the target bottle cap;
[0092] Step 9: Set the standard value of the bottle cap quality index , the bottle cap quality evaluation index and the bottle cap quality index standard value Compare and judge whether the bottle cap meets the production standards. If the bottle cap does not meet the production standards, an alarm message is sent to the relevant staff.
[0093] Secondly: In the drawings of the embodiments disclosed in the present invention, only the structures related to the embodiments disclosed in the present invention are involved, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other;
[0094] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A bottle cap defect detection system, characterized in that: include: Bottle cap detection area determination module: used to accurately determine the detection area to focus on key parts, reasonably divide the detection area of the bottle cap, and send the detection area information to the corresponding detection module; Bottle cap size detection module: used to detect the external and internal dimensions of the target bottle cap. The external dimensions of the bottle cap include the outer diameter of the cap, the height of the cap, and the outer diameter of the anti-counterfeiting ring, which are marked as , and The internal dimensions of the bottle cap include the inner diameter of the thread and the inner diameter of the cap, which are marked as and and transmit the collected bottle cap size data to the bottle cap size data analysis module; Bottle cap size data analysis module: including bottle cap external size data analysis unit and bottle cap internal size data analysis unit, used for processing and analyzing the data detected by the bottle cap size detection module, and transmitting the obtained results to the comprehensive data analysis module; The bottle cap external dimension data analysis unit is used to establish a bottle cap external dimension data analysis model, import the bottle cap external dimension data detected by the bottle cap dimension detection module into the bottle cap external dimension data analysis model, and obtain the bottle cap external dimension coefficient, which is specifically expressed as: , represents the external dimension coefficient of the target bottle cap, Indicates the outer diameter of the target bottle cap. Indicates the cap height of the target bottle cap, Indicates the outer diameter of the anti-counterfeiting ring of the target bottle cap, Indicates the standard outer diameter of the target bottle cap. Indicates the standard cap height of the target bottle cap, represents the outer diameter of the standard anti-counterfeiting ring of the target bottle cap; the bottle cap internal dimension data analysis unit is used to establish a bottle cap internal dimension data analysis model, import the bottle cap internal dimension data detected by the bottle cap dimension detection module into the bottle cap internal dimension data analysis model, and obtain the bottle cap internal dimension coefficient, which is specifically expressed as: , represents the internal dimension coefficient of the target bottle cap, Indicates the inner diameter of the thread of the target bottle cap, represents the inner diameter of the target bottle cap, Indicates the standard thread inner diameter of the target bottle cap, The standard inner diameter of the target bottle cap is represented by the bottle cap inner dimension coefficient and the bottle cap outer dimension coefficient, which is specifically expressed as: , The bottle cap size factor representing the target bottle cap; Bottle cap surface defect detection module: used to detect the surface defect data of the target bottle cap and transmit the detected surface defect data to the bottle cap surface defect data analysis module; The surface defect data of the bottle cap specifically include bottle cap burrs, bottle cap notches, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap damage, which are marked as B1, B2, B3, B4, B5, B6 and B7 respectively; Bottle cap surface defect data analysis module: including a bottle cap surface defect data analysis unit, used for processing and analyzing the bottle cap surface defect data detected by the bottle cap surface defect detection module, and transmitting the obtained results to the comprehensive data analysis module; The bottle cap surface defect data analysis unit is used to establish a bottle cap surface defect data analysis model, import the bottle cap surface defect data collected by the bottle cap surface defect detection module into the bottle cap surface defect data analysis model, and obtain the bottle cap surface defect coefficient, which is specifically expressed as: , represents the surface defect coefficient of the target bottle cap, B1 represents the burr defect of the target bottle cap, B2 represents the notch defect of the target bottle cap, B3 represents the deformation defect of the target bottle cap, B4 represents the black spot area on the target bottle cap, B5 represents the overflow defect of the target bottle cap, B6 represents the color difference defect of the target bottle cap, B7 represents the damage defect of the target bottle cap, , , , , , as well as They respectively represent the influence coefficients of bottle cap burrs, bottle cap notches, bottle cap deformation, black spot area on the bottle cap, bottle cap overflow, bottle cap color difference, and bottle cap damage on the bottle cap surface defect coefficient; Character quality detection module: used to detect the character quality information on the bottle cap and transmit the detected character quality information to the character quality data analysis module; The character quality information includes the missing printing of characters, the missing printing of characters, the ambiguity of the printing of characters, the incomplete printing of characters, and the font tilt of characters, which are marked as C1, C2, C3, C4 and C5 respectively; Character quality data analysis module: including a character quality data analysis unit, used to process and analyze the character quality data information collected by the character quality detection module, and transmit the results to the comprehensive data analysis module; The character quality data analysis unit is used to establish a character quality data analysis model, import the character quality data information collected by the character quality detection module into the character quality data analysis model, and obtain the character quality coefficient, which is specifically expressed as: , It indicates the character quality coefficient of the target bottle cap, C1 indicates the missing character printing of the target bottle cap, C2 indicates the missing character printing of the target bottle cap, C3 indicates the fuzzy character printing of the target bottle cap, C4 indicates the incomplete character printing of the target bottle cap, C5 indicates the font tilt of the target bottle cap, , , , as well as Respectively represent the influence coefficients of missing characters, missing characters, ambiguous characters, incomplete characters, and font tilt of characters on the character quality coefficient of the bottle cap; Comprehensive data analysis module: including a comprehensive data analysis unit, used for comprehensive data processing and analysis of the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained by the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module, and transmitting the results to the information interaction module; The comprehensive data analysis unit is used to establish a comprehensive data analysis model, import the coefficients obtained by the bottle cap size data analysis module, the bottle cap surface defect data analysis module and the character quality data analysis module into the comprehensive data model, and obtain the bottle cap quality evaluation index, which is specifically expressed as: , represents the bottle cap quality evaluation index of the target bottle cap, represents the cap size factor of the target cap, represents the surface defect coefficient of the target bottle cap, Indicates the character quality coefficient of the target bottle cap, , and They respectively represent the influence coefficients of bottle cap size coefficient, bottle cap surface defect coefficient and bottle cap character quality coefficient on the bottle cap quality evaluation index; Information interaction module: used to establish the standard value of the bottle cap quality index, make a judgment by comparing the standard value of the bottle cap quality index with the bottle cap quality evaluation index of the target bottle cap, and send an early warning signal to relevant personnel according to the judgment result; The standard value of the bottle cap quality index is marked as ,when hour, Indicates the allowable error value of the bottle cap quality index, indicating that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is within the allowable error value, the bottle cap meets the production standard, and the next bottle cap is tested; when When , it means that the error between the bottle cap quality index of the target bottle cap and the standard value of the bottle cap quality index is outside the allowable error value, and the bottle cap does not meet the production standard. The information interaction module needs to send an early warning message to the operation end to remind the relevant personnel that the bottle cap does not meet the production standard and prompt the relevant personnel to take corresponding measures.
2. A bottle cap defect detection system according to claim 1, characterized in that: The determination of the bottle cap detection area refers to the reasonable division of the detection area according to the shape, size and detection requirements of the bottle cap. The detection area includes key parts such as the bottle cap mouth, side wall and bottom. Different detection methods and tools are used for different detection areas.
3. A bottle cap defect detection method, used for using a bottle cap defect detection system according to any one of claims 1 to 2, characterized in that: The following steps are involved: Step 1: Use cameras and visual equipment to accurately locate the test points of the target bottle cap; Step 2: Use laser measurement to detect the outer diameter of the target bottle cap, the height of the cap, the outer diameter of the anti-counterfeiting ring, the inner diameter of the thread, and the inner diameter of the cap; Step 3: Use automated visual inspection equipment to inspect the surface of the target bottle cap for burrs, notches, deformation, black spot area, overflow, color difference, and damage; Step 4: Use OCR character recognition technology to scan and recognize the characters on the target bottle cap through a machine vision system to detect missing characters, missing characters, ambiguous characters, incomplete characters, and font tilt of characters on the bottle cap; Step 5: Import the data measured in the above step 2 into the bottle cap internal dimension analysis model and the bottle cap external dimension analysis model to calculate the bottle cap dimension coefficient; Step 6: Import the data measured in the above step 3 into the bottle cap surface defect data analysis model to calculate the bottle cap surface defect coefficient; Step 7: Import the data measured in step 4 into the character quality data analysis model to calculate the character quality coefficient; Step 8: Import the bottle cap size coefficient, bottle cap surface defect coefficient and character quality coefficient obtained in the above steps 5-7 into the comprehensive data analysis model to calculate the bottle cap quality evaluation index of the target bottle cap; Step 9: Set the standard value of the bottle cap quality index , the bottle cap quality evaluation index and the bottle cap quality index standard value Compare and judge whether the bottle cap meets the production standards. If the bottle cap does not meet the production standards, an alarm message is sent to the relevant staff.
Citation Information
Patent Citations
Wine bottle defect automatic detection method based on YOLOv3
CN112184679A
Multi-angle machine vision detection equipment
CN115508363A
System and method for detecting flaws of bottle-shaped object
CN116858838A
Rotary buckling type wine box
CN118323619A
Printed character inspecting method
JP1995121721A
