O-shaped rubber ring defect automatic detection system and method thereof
Through an automated inspection system that combines machine vision and line scanning technology, it solves the problems of low detection efficiency and low accuracy of O-type rubber ring defects in the existing technology, and achieves high-precision two-dimensional and three-dimensional inspection, which is suitable for strict quality Controlled aerospace fields.
Patent Information
- Application Number
- CN202410523012.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-10-11
AI Technical Summary
In the existing technology, O-type rubber ring defect detection relies on manual labor, which is inefficient and difficult to achieve unified detection standards, resulting in high costs and low detection accuracy. Especially in the aerospace field with strict quality requirements, there is a lack of efficient and accurate detection methods. .
An automated inspection system based on machine vision and line scanning is used to realize two-dimensional and three-dimensional inspection of rubber ring surface defects through the second CCD installation, inspection module, line scan head and positioning drive module, combined with coaxial light source and backlight source. Provide richer defect information and improve detection accuracy.
It achieves high-precision identification and quantitative analysis of O-type rubber ring defects, reduces misjudgments and misjudgments, improves detection efficiency and accuracy, and is suitable for strict quality control needs in aerospace and other fields.
Smart Images

Figure CN118758938A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of automatic detection, and in particular relates to an automatic detection system and method for defects of an O-type rubber ring. Background Art
[0002] O-type rubber rings are widely used in mechanical equipment, playing important roles such as shock absorption, lubrication, and sealing. The manufacturing process of O-type rubber rings is simple and the production price is low. They are widely used in aerospace, petrochemical, industrial equipment and other fields. Compared with civilian rubber rings, the quality requirements of rubber rings used in the aerospace and defense fields are more stringent. Their quality must be strictly controlled to ensure that the surface of the rubber ring is clean and free of defects, otherwise it may cause huge losses and produce serious consequences that are difficult to make up for. The types of defects of rubber rings include pits, flash, flow marks, etc. With the continuous development of my country's processing and manufacturing technology and the continuous progress of the aerospace industry, the output and demand of rubber rings are growing synchronously, and the demand for detection speed and accuracy is also increasing. Therefore, using an efficient and accurate detection method to detect surface defects of rubber rings and screen qualified and unqualified products is extremely important for improving economic benefits and ensuring the safe use of equipment.
[0003] At present, the work of detecting defects in O-type rubber rings mainly relies on manual labor, which is costly and inefficient. Since human judgment is too subjective, it is difficult to unify the detection standards. Although there are foreign equipment that can detect rubber ring defects, the price is high. Purchasing foreign equipment can solve the problems of low detection efficiency and difficulty in unifying detection standards, but the cost is still very high. Therefore, in fact, not many domestic manufacturers are willing to purchase foreign equipment. The above practical problems make the localization of rubber ring defect detection equipment particularly important.
[0004] At present, there are some visual inspection methods for rubber ring defects, but basically they can only provide two-dimensional information of defects, while the actual rubber ring defect judgment conditions include evaluation criteria for defect depth. In this patent, by combining line scanning technology, three-dimensional information of defects can be obtained, which provides more available information for defect judgment, is more in line with the actual rubber ring defect judgment conditions, reduces misjudgments and misjudgments, and improves detection accuracy. In this patent, in response to this problem, an automatic detection system and method for O-type rubber ring defects based on machine vision and line scanning is proposed, which can replace manual detection and improve detection efficiency and accuracy. Compared with other existing detection methods, it enriches defect information and has strong industrial application value. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide an O-type rubber ring defect automatic detection system and method thereof in view of the deficiencies in the above-mentioned prior art, so as to solve the technical problem of low efficiency of manual detection.
[0006] The present invention adopts the following technical solutions:
[0007] An O-type rubber ring defect automatic detection system comprises a second mounting column, a second CCD mounting piece is horizontally arranged on the second mounting column, a first mounting column and a third mounting column are correspondingly arranged on both sides of the second mounting column, detection modules are respectively arranged on the left and right ends of the second CCD mounting piece, the first mounting column, and the third mounting column, and the detection module is connected to a computer; the O-type rubber ring is arranged on a positioning drive module, and the positioning drive module is arranged between the first mounting column, the second mounting column and the third mounting column.
[0008] Preferably, the detection module comprises a third CCD camera and a second CCD camera, the third CCD camera and the second CCD camera are respectively arranged at the left and right ends of the second CCD mounting member, the third CCD camera is connected to a third lens, and the second CCD camera is connected to a second lens.
[0009] More preferably, a coaxial light source mounting component is also provided on the second mounting column, and the coaxial light source mounting component is arranged below the second CCD mounting component. The first coaxial light source and the second coaxial light source are mounted on the coaxial light source mounting component, and the third backlight light source and the second backlight light source are installed correspondingly below the first coaxial light source and the second coaxial light source.
[0010] Preferably, the detection module comprises a line scanning head, and the line scanning head is fixedly connected to the third mounting column through a line scanning head mounting member.
[0011] Preferably, the detection module comprises a first CCD camera, the first CCD camera is fixedly connected to the first mounting column via a first CCD mounting member, and the first CCD camera is provided with a first lens;
[0012] An annular light source is arranged below the first lens, and the annular light source is fixedly connected to the first mounting column through an annular light source mounting member, and a first backlight light source is correspondingly arranged below the annular light source.
[0013] Preferably, the positioning drive module comprises a glass stage for placing the O-shaped rubber ring, the glass stage is connected to the base via an electric turntable, and a position marking piece is correspondingly arranged on the outer side of the glass stage.
[0014] In a second aspect, an embodiment of the present invention provides an O-type rubber ring defect automatic detection method. Based on the O-type rubber ring defect automatic detection system, after the measurement starts, the electric turntable of the positioning drive module drives the glass stage on which the rubber ring to be tested is placed to rotate, and the five rubber rings are respectively rotated into the detection range of the first detection module and the second detection module to detect the surface defects of the rubber rings;
[0015] If the first inspection module and the second inspection module do not detect pits and flow marks, the defect detection is completed after the second inspection module detects them;
[0016] If the first inspection module and the second inspection module detect pits and flow marks, after being inspected by the second inspection module, they must also be scanned by the line scanning head to measure the depth of the defects;
[0017] Finally, the detection results of the first detection module, the second detection module and the line scan head are summarized, and the defect position and size are output.
[0018] Preferably, the detection range includes the first position, the second position and the third position, which rotate 360 degrees in total. When a rubber ring reaches the first position, the upper surface defects and the flash of the 180-degree mold opening line are detected;
[0019] When a rubber ring reaches the second position, the side surface defects and 45-degree mold opening line flash are inspected.
[0020] More preferably, the detection process of surface defects and 180 degree die line flash is as follows:
[0021] S201, firstly perform camera calibration, place the calibration plate within the field of view of the first CCD camera, use the visual assistant software to generate a calibration template and save it locally;
[0022] S202, using a first CCD camera to capture an image of the rubber ring when illuminated only by a backlight source as a target image for flash detection;
[0023] S203, using a first CCD camera to collect an image of the rubber ring when the backlight source and the ring light source are illuminated simultaneously, as a processed image for detecting defects such as surface pits;
[0024] S204, subtracting the image in step S203 from the image in step S202 to obtain an aperture image as a target image for detecting defects such as surface pits;
[0025] S205, performing flash detection on the image collected in step S202, firstly performing edge detection and ellipse fitting on the image to obtain the geometric center;
[0026] S206, dividing the image acquired in step S202 into 18 sector-shaped ROI regions at an angle of 20 degrees according to the geometric center, and processing the 18 sector-shaped ROI regions respectively;
[0027] S207, perform flash detection on each sector ROI area, perform contrast enhancement processing on the ROI image to separate the rubber ring contour from the background, detect the contour edge, and extract the inner edge and outer edge point sets; perform quadratic curve fitting on the two point sets respectively to obtain the outer contour curve and the inner contour curve; perform mask processing on the area within the two curves, and the remaining part is the detected flash.
[0028] More preferably, step S204 is specifically:
[0029] S2041, binarizing the aperture grayscale image;
[0030] S2042, dilating the binarized image to connect tiny breakpoints caused by noise in the binarized image;
[0031] S2043, performing corrosion processing on the processed image to separate the breakpoints and black spots from the continuous aperture;
[0032] S2044, performing morphological processing on the processed image to obtain an image with only black spots remaining;
[0033] S2045, analyzing the black spot image, and adding the generated calibration template information, and finally obtaining the real size information of the black spot part, that is, the defect part.
[0034] Compared with the prior art, the present invention has at least the following beneficial effects:
[0035] An O-ring defect automated detection system with two-dimensional defect detection and three-dimensional defect evaluation modules can not only replace the human eye in detection to achieve high-precision identification of O-ring surface defects, but also achieve accurate sorting of qualified or unqualified products through quantitative analysis of defects.
[0036] Furthermore, coaxial light source illumination can be used to realize defect detection of O-rings close to the upper and lower center lines, reducing blind spots; and backlight illumination can be used to realize flash measurement of O-rings with a 45-225° parting line.
[0037] Furthermore, by adding a line scanning probe to the traditional O-ring surface defect detection system, the depth information of the defects can be further obtained based on the measurement of the traditional detection equipment. This can not only perform more accurate three-dimensional evaluation, defect classification and sorting for the defects, but also play a role in guiding processing and optimizing the process.
[0038] Furthermore, in the first detection module, the height of the industrial camera can be adjusted to match the different sizes of O-rings, thereby improving the detection range of the entire system.
[0039] Furthermore, the drive positioning module adopts a rotary motion structure, which reduces the volume of the entire system. In addition, it also reserves space for subsequent expansion of the system. In the future, fully automated measurement of O-rings can be achieved by adding loading and unloading.
[0040] An automated detection method for defects in O-type rubber rings can achieve two-dimensional detection and three-dimensional evaluation of defects such as pits, mucous membranes, and flash on the surface of O-rings. In addition to being able to detect O-rings of different calibers, it can also cover two types of flashes: 0-180° and 45°-225°. The surface defects of O-rings can be fully covered simply by manually turning the surface over. By replacing manual inspection, it can improve measurement efficiency and defect recognition rate while reducing worker fatigue, and provide a basis for quantitative defect evaluation.
[0041] In summary, the present invention combines machine vision technology with line scanning technology, which can replace manual defect detection, improve detection efficiency, and provide conditions for the quantification of standards; and the device can obtain three-dimensional information of surface defects of rubber rings, enrich the basis for defect judgment, reduce the misjudgment rate and the misjudgment rate, and improve the detection accuracy of defect detection.
[0042] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A top view of the automatic detection system for defects of O-type rubber rings of the present invention;
[0044] Figure 2 This is a front view of the automatic detection system for defects of O-type rubber rings of the present invention;
[0045] Figure 3 It is a side view of the automatic detection system for defects of O-type rubber rings of the present invention;
[0046] Figure 4 It is a schematic diagram of a position marking part;
[0047] Figure 5 This is a flow chart of the automatic detection method for defects of O-type rubber rings of the present invention;
[0048] Figure 6 This is a flow chart of the CCD camera flash, pit and flow mark defect detection in the present invention;
[0049] Figure 7 for Figure 6An example of images of the pit and flow mark defect detection process, wherein (a) is an image of the rubber ring captured under backlighting; (b) is an image of the rubber ring captured under simultaneous backlighting and ring light; (c) is an image obtained by subtracting (a) from (b); (d) is a binary image of pits and flow mark defects obtained after image processing;
[0050] Figure 8 for Figure 6 An example of an image of the flash detection described above;
[0051] Fig. 9 An example of an image for the line scan process;
[0052] Fig.10 for Figure 5 An image example of the line scanning defect depth measurement process described in , wherein (a) is the original data obtained after line scanning; (b) is the rubber ring contour data obtained after filtering; (c) is the registration template used to register the rubber ring contour; (d) is the registration curve segment obtained after registration;
[0053] Fig.11 A physical diagram of the system;
[0054] Fig.12 The defect detection result.
[0055] Wherein: 1. second mounting column; 2. second CCD mounting part; 3. third lens; 4. third CCD camera; 5. second lens; 6. second CCD camera; 7. third mounting column; 8. line scanning head mounting part; 9. line scanning head; 10. coaxial light source mounting part; 11. first coaxial light source; 12. second coaxial light source; 13. third backlight light source; 14. second backlight light source; 15. first mounting column; 16. first CCD mounting part; 17. first lens; 18. first CCD camera; 19. annular light source mounting part; 20. annular light source; 21. first backlight light source; 22. glass stage; 23. position marking part; 24. electric turntable; 25. base; 26. mounting angle iron; 27. computer. DETAILED DESCRIPTION
[0056] 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 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.
[0057] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.
[0058] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0059] It should be further understood that the term "and / or" used in the present specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present invention generally indicates that the associated objects are in an "or" relationship.
[0060] It should be understood that, although the terms first, second, third, etc. may be used to describe preset ranges, etc. in the embodiments of the present invention, these preset ranges should not be limited to these terms. These terms are only used to distinguish preset ranges from each other. For example, without departing from the scope of the embodiments of the present invention, the first preset range may also be referred to as the second preset range, and similarly, the second preset range may also be referred to as the first preset range.
[0061] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0062] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.
[0063] The invention provides an automatic detection system for defects of an O-type rubber ring, comprising a mounting module, a positioning drive module and a detection module; the detection module is arranged on the mounting module, and the positioning drive module is used for placing the rubber ring.
[0064] The mounting module includes a second mounting column 1, a second CCD mounting component 2, a third mounting column 7, a line scanning head mounting component 8, a coaxial light source mounting component 10, a first mounting column 15, a first CCD mounting component 16, a ring light source mounting component 19, a base 25 and a mounting angle iron 26.
[0065] The second CCD mounting member 2 is horizontally arranged on the second mounting column 1, and a third CCD camera 4 and a third lens 3 are arranged in sequence on one end of the second CCD mounting member 2, and a second CCD camera 6 and a second lens 5 are arranged correspondingly on the other end; a coaxial light source mounting member 10 is arranged on the second mounting column 1 below the second CCD mounting member 2, and a first coaxial light source 11 and a second coaxial light source 12 are mounted on the coaxial light source mounting member 10, and a third backlight light source 13 and a second backlight light source 14 are correspondingly mounted on the base 25 below the first coaxial light source 11 and the second coaxial light source 12;
[0066] The first mounting column 15 and the third mounting column 7 are respectively arranged on both sides of the second CCD mounting member 2; the first mounting column 15, the second mounting column 1 and the third mounting column 7 are respectively fixedly arranged on the base 25;
[0067] The upper end of the first mounting column 15 is provided with a first CCD mounting member 16, on which a first CCD camera 18 and a first lens 17 are mounted, and the lower end of the first mounting column 15 is provided with a ring light source mounting member 19, on which a ring light source 20 is mounted, and a first backlight light source 21 is mounted on a base 25 below the ring light source 20;
[0068] A line scanning head mounting component 8 is disposed on the third mounting column 7 , and a line scanning head 9 is mounted on the line scanning head mounting component 8 .
[0069] The first CCD mounting component 16 and the first mounting column 15 , the annular light source mounting component 19 and the first mounting column 15 , the line scanning head mounting component 8 and the third mounting column 7 , and the second CCD mounting component 2 and the second mounting column 1 are all fastened together by mounting angle irons 26 .
[0070] The positioning drive module includes a glass stage 22, a position marking member 23 and an electric turntable 24. The position marking member 23 and the electric turntable 24 are respectively arranged on a base 25. The glass stage 22 is connected to the electric turntable 24. The glass stage 22 is driven to rotate by the electric turntable 24, and positioning is performed by the position marking member 23.
[0071] See also Figure 4 The position marking part 23 has five initial positions. Before starting the measurement, the rubber ring is placed on the glass stage 22 according to the initial position prompt to ensure that the center of the rubber ring roughly coincides with the center of the initial position.
[0072] The detection module includes a first detection module, a second detection module, a line scanning head 9 and a computer 27 .
[0073] The first detection module includes a first lens 17 , a first CCD camera 18 , an annular light source 20 , and a first backlight source 21 . The first CCD camera 18 , the annular light source 20 , and the first backlight source 21 are all connected to a computer 27 .
[0074] The second detection module includes a third lens 3, a third CCD camera 4, a second lens 5, a second CCD camera 6, a first coaxial light source 11, a second coaxial light source 12, a third backlight light source 13, and a second backlight light source 14.
[0075] The third CCD camera 4 , the second CCD camera 6 , the first coaxial light source 11 , the second coaxial light source 12 , the third backlight light source 13 and the second backlight light source 14 are all connected to the computer 27 .
[0076] The line scanning head 9 only scans and measures the defect depth of the rubber ring with surface defects such as pits and flow marks detected by the first detection module and the second detection module.
[0077] When performing defect detection, according to the prompt of the position marking part 23, five O-type rubber rings to be tested are placed on the glass stage 22, marked as rubber ring 1, rubber ring 2, rubber ring 3, rubber ring 4 and rubber ring 5 respectively, and measurement is started.
[0078] The present invention provides an automated detection method for defects in O-type rubber rings. After the measurement starts, the electric turntable 24 drives the glass stage 22 on which the rubber rings to be tested are placed to rotate, and the five rubber rings are rotated into the detection range of the first detection module and the second detection module respectively, so as to detect the surface defects of the rubber rings. If the first and second detection modules do not detect pits and flow mark defects, the defect detection is completed after the second detection module detects them; if the first and second detection modules detect pits and flow mark defects, after the second detection module detects them, they are also scanned by the line scanning head 9 to measure the depth of the defect. Finally, the detection results of the first detection module, the second detection module and the line scanning head 9 are summarized, and the defect position and size are output; the specific steps are as follows:
[0079] S1, the electric turntable 24 drives the glass stage 22 to rotate, and the five rubber rings to be tested are rotated in sequence to within the detection range of the first detection module, i.e., the first position, within the detection range of the second detection module, i.e., the second position, and within the detection range of the line scanning head 9, i.e., the third position;
[0080] The rotation process of the electric turntable 24 is as follows:
[0081] Since the position marking member 23 is relatively fixed to the first detection module, the second detection module, and the line scanning head 9, during the defect detection process, the electric turntable 24 drives the glass stage 22 to rotate at a fixed angle in the process. Therefore, according to the predetermined rotation angle, the electric turntable 24 is controlled to rotate, and the five rubber rings are moved to the first, second, and third positions respectively for defect detection. After the detection is completed, the rubber rings are moved to the initial position, and the total rotation is 360 degrees.
[0082] S2. When a rubber ring reaches the first position, the upper surface defects and 180-degree mold opening line flash are inspected;
[0083] The detection process of surface defects and 180-degree die line flash is as follows:
[0084] S201, firstly perform camera calibration, place the calibration plate within the field of view of the first CCD camera (18), use visual assistant software to generate a calibration template and save it locally;
[0085] S202, using the first CCD camera (18) to collect the image of the rubber ring when only the backlight source is illuminated, such as Figure 7 (a) shows the target image used for flash detection;
[0086] S203, using the first CCD camera (18) to collect the image of the rubber ring when the backlight source and the ring light source are illuminated at the same time, such as Figure 7 (b) shows a processed image for detecting surface defects such as pits;
[0087] S204, subtract the image in step S203 from the image in step S202 to obtain an aperture image, such as Figure 7 (c) is the target image for detecting surface defects such as pits. According to the theory of light reflection, the aperture in the image should be continuous when there are no defects, while strong diffuse reflection will be produced in the defective area, resulting in breakpoints and black spots. By processing the image, the continuous aperture can be separated from the breakpoints and black spots, which are the detected surface defects.
[0088] The image processing flow is:
[0089] S2041, binarizing the aperture grayscale image in step S204. According to experiments, when the ring light brightness is set to 100 by the light source controller, the best effect is achieved when the threshold of the binarization is 85;
[0090] S2042, dilating the binarized image to connect tiny breakpoints caused by noise in the binarized image;
[0091] S2043, performing corrosion processing on the image processed in step S2042, separating the breakpoints and black spots from the continuous apertures in step S204. At this time, the non-zero areas in the image are divided into two categories: connected apertures and disconnected black spots. The connected apertures have a larger area, while the disconnected black spots have a smaller area.
[0092] S2044, performing morphological processing on the image processed in step S2043, using the Remove large objects algorithm in the Advanced Morphological method of the visual assistant software to filter out the connected apertures, thereby obtaining an image with only black spots left;
[0093] S2045, analyzing the black spot image, using the Particle Filter of the visual assistant software to perform particle analysis, and adding the calibration template information generated in step S201, finally obtaining the real size information of the black spot part, that is, the defect part.
[0094] S205, performing flash detection on the image collected in step S202, firstly performing edge detection and ellipse fitting on the image to obtain the geometric center;
[0095] S206, dividing the image acquired in step S202 into 18 sector-shaped ROI regions at an angle of 20 degrees according to the geometric center, and processing the 18 sector-shaped ROI regions respectively;
[0096] S207, for each sector ROI area, the flash edge detection process is as follows:
[0097] S2081, performing contrast enhancement processing on the ROI image to separate the rubber ring contour from the background, and detecting the contour edge to extract the inner edge and outer edge point sets;
[0098] S2082, perform quadratic curve fitting on the two point sets respectively to obtain an outer contour curve and an inner contour curve. Perform mask processing on the area within the two curves, and the remaining part is the detected flash edge.
[0099] S3, when a rubber ring reaches the second position, the side surface defects and the flash of the 45-degree mold opening line are detected;
[0100] The detection process of surface defects and 45-degree mold line flash is the same as the detection process of surface defects and 45-degree mold line flash in step S2.
[0101] S4, if pits and flow marks are detected in step S2 and step S3, the rubber ring is first detected in step S3 and then scanned by the line scanning head 9 to measure the depth of the defect; if pits and flow marks are not detected in step S2 and step S3, the rubber ring skips step S4 after the detection in step S3 and directly enters step S5 for the next step of processing;
[0102] The process of performing line scanning on the rubber ring with pits and flow marks detected by the first and second detection modules and measuring the defect depth is as follows:
[0103] S401, when the rubber ring with pits and flow mark defects approaches the line scanning head (9), start reading the data of the line scanning head (9), and when the rubber ring completely leaves the line scanning head (9), stop reading the data, and obtain N scanning data in total;
[0104] S402, convert the data read in step (4.1) into csv format, and visualize the data of the first scan. Fig.10 (a) is shown. ① is the left edge of the rubber ring, ② is the right edge of the rubber ring, and the bottom is the plane of the glass stage (22);
[0105] S403, high-pass filtering is performed on the data in step (4.2), the data representing the plane of the glass stage (22) is filtered out, and only the data related to the edge of the rubber ring is left, and the data is spliced to reduce the amount of invalid data, such as Fig.10 (b), where ① is the left edge of the rubber ring and ② is the right edge of the rubber ring;
[0106] S404, design a standard registration template for registering and finding the apex position of the rubber ring. Select a section of defect-free rubber ring edge line scan data, and start from the highest point, select the nearest 7 points on the left and right ends, a total of 15 points, as the standard registration template;
[0107] S405, respectively align the registration template with the two edges processed in step (4.3) to obtain the best matching position, such as Fig.10 (d) The + marks are shown in the figure, and the 15 marks are fitted with a quadratic curve to obtain two fitting curves;
[0108] S406. Evenly select 100 points on the left quadratic fitting curve fitted in step (4.5), and calculate the Euler distance between the 15 matching points on the left and the 100 points on the quadratic fitting curve. The minimum value is the distance between the point and the curve and is recorded, and a total of 15 distance values are obtained. The maximum value of the 15 distance values obtained is taken, that is, the maximum distance value between the scanned contour and the ideal contour is obtained. The processing method of the quadratic fitting curve on the right is the same as that on the left.
[0109] S407, repeat steps S402, S403, S405, and S406 for all the data containing the edges of the two rubber rings in the N scanned data in step (4.1), a total of M groups of data, to obtain 2*M data in total, and the maximum value is the depth information of the defect.
[0110] S5. Turn the rubber ring over manually and place it on the glass stage 22 again according to the initial placement order and rules, and repeat steps S2, S3, and S4.
[0111] When the measurement in step S4 is completed, the electric turntable 24 drives the glass stage 22 to rotate, and restores the five rubber rings to be tested to their initial positions, thereby completing the defect detection of one side of the rubber rings; the operator turns over the five rubber rings and places them on the glass stage 22 again according to the initial placement order and rules, and repeats steps S2, S3, and S4.
[0112] S6. Summarize the test results and give the test results of each rubber ring respectively.
[0113] The process of outputting the test results of each rubber ring separately is as follows:
[0114] S601, the detection results of the first detection module, the second detection module, and the line scanning head 9 are respectively matched according to the rubber ring numbers;
[0115] S602, summarizing the test results of each rubber ring respectively;
[0116] S603, if a rubber ring is not detected as defective, output the rubber ring number and an OK character;
[0117] S604, if a rubber ring is detected to have a defect, the rubber ring number and NG character are output, the detected defect is displayed, and the defect type and size are output;
[0118] S605. After the test results of the rubber rings are output, the electric turntable 24 drives the glass stage 22 to rotate, and restores the five rubber rings to be tested to their initial positions. The worker classifies the five rubber rings into good and bad ones according to the test results, and completes the automatic detection of defects of a batch of rubber rings.
[0119] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention described and shown in the drawings here can usually be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0120] The physical display of the system in the present invention is as follows Fig.11 As shown, based on this system, the automatic defect detection method proposed in the present invention was experimentally verified, and some detection results are shown in Fig.12 As shown. A comparative measurement experiment was carried out using a high-precision confocal microscope. The results showed that the relative error of the defect area measurement of the present invention was 7.13%, and the absolute error of the depth measurement was 14.956μm, proving that the detection accuracy of this system is extremely high. In addition, by applying automation technology, the defect detection time of a batch of rubber rings is less than 1 minute, indicating that the present invention can maintain high detection accuracy while taking into account detection efficiency. The above experiments prove that this system has high application value.
[0121] In summary, the present invention provides an O-type rubber ring defect automated detection system and method, which expands the defect information dimension from two dimensions to three dimensions by combining machine vision and line scanning technology, thereby providing richer information for defect judgment and reducing misjudgments and miscalculations; the system has a high degree of automated integration, low requirements on manual labor, high measurement efficiency and consistency, and is suitable for application in industrial scenarios such as assembly line operations.
[0122] The above contents are only for explaining the technical idea of the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.
Claims
1. An O-type rubber ring defect automatic detection system, characterized in that: The invention comprises a second mounting column (1), a second CCD mounting member (2) being horizontally arranged on the second mounting column (1), a first mounting column (15) and a third mounting column (7) being correspondingly arranged on both sides of the second mounting column (1), detection modules being arranged on the left and right ends of the second CCD mounting member (2), the first mounting column (15), and the third mounting column (7), respectively, and the detection module being connected to a computer (27); an O-type rubber ring being arranged on a positioning drive module, and the positioning drive module being arranged between the first mounting column (15), the second mounting column (1), and the third mounting column (7).
2. The O-ring defect automatic detection system according to claim 1 is characterized in that: The detection module comprises a third CCD camera (4) and a second CCD camera (6), the third CCD camera (4) and the second CCD camera (6) being respectively arranged at the left and right ends of the second CCD mounting member (2), the third CCD camera (4) being connected to a third lens (3), and the second CCD camera (6) being connected to a second lens (5).
3. The O-type rubber ring defect automatic detection system according to claim 2 is characterized in that: A coaxial light source mounting component (10) is also provided on the second mounting column (1), the coaxial light source mounting component (10) is provided below the second CCD mounting component (2), a first coaxial light source (11) and a second coaxial light source (12) are mounted on the coaxial light source mounting component (10), and a third backlight light source (13) and a second backlight light source (14) are correspondingly mounted below the first coaxial light source (11) and the second coaxial light source (12).
4. The O-ring defect automatic detection system according to claim 1, characterized in that: The detection module comprises a line scanning head (9), and the line scanning head (9) is fixedly connected to the third mounting column (7) via a line scanning head mounting member (8).
5. The O-type rubber ring defect automatic detection system according to claim 1, characterized in that: The detection module comprises a first CCD camera (18), the first CCD camera (18) is fixedly connected to the first mounting column (15) via a first CCD mounting member (16), and the first CCD camera (18) is provided with a first lens (17); An annular light source (20) is arranged below the first lens (17); the annular light source (20) is fixedly connected to the first mounting column (15) via an annular light source mounting member (19); and a first backlight source (21) is correspondingly arranged below the annular light source (20).
6. The O-type rubber ring defect automatic detection system according to claim 1, characterized in that: The positioning drive module comprises a glass stage (22) for placing an O-shaped rubber ring, the glass stage (22) is connected to a base (25) via an electric turntable (24), and a position marking piece (23) is correspondingly arranged on the outer side of the glass stage (22).
7. An automatic detection method for O-type rubber ring defects, characterized in that: Based on the automatic O-type rubber ring defect detection system according to any one of claims 1 to 6, after the measurement starts, the electric turntable of the positioning drive module drives the glass stage on which the rubber ring to be tested is placed to rotate, and the five rubber rings are respectively rotated into the detection range of the first detection module and the second detection module to detect the surface defects of the rubber rings; If the first inspection module and the second inspection module do not detect pits and flow marks, the defect detection is completed after the second inspection module detects them; If the first inspection module and the second inspection module detect pits and flow marks, after being inspected by the second inspection module, they must also be scanned by the line scanning head to measure the depth of the defects; Finally, the detection results of the first detection module, the second detection module and the line scan head are summarized, and the defect position and size are output.
8. The O-type rubber ring defect automatic detection system according to claim 7, characterized in that: The detection range includes the first position, the second position and the third position, which rotates 360 degrees in total. When a rubber ring reaches the first position, the upper surface defects and the flash of the 180-degree mold opening line are detected; When a rubber ring reaches the second position, the side surface defects and 45-degree mold opening line flash are inspected.
9. The O-type rubber ring defect automatic detection system according to claim 8, characterized in that: The detection process of surface defects and 180-degree die line flash is as follows: S201, firstly perform camera calibration, place the calibration plate within the field of view of the first CCD camera, use the visual assistant software to generate a calibration template and save it locally; S202, using a first CCD camera to capture an image of the rubber ring when illuminated only by a backlight source as a target image for flash detection; S203, using a first CCD camera to collect an image of the rubber ring when the backlight source and the ring light source are illuminated simultaneously, as a processed image for detecting defects such as surface pits; S204, subtracting the image in step S203 from the image in step S202 to obtain an aperture image as a target image for detecting defects such as surface pits; S205, performing flash detection on the image collected in step S202, firstly performing edge detection and ellipse fitting on the image to obtain the geometric center; S206, dividing the image acquired in step S202 into 18 sector-shaped ROI regions at an angle of 20 degrees according to the geometric center, and processing the 18 sector-shaped ROI regions respectively; S207, perform flash detection on each sector ROI area, perform contrast enhancement processing on the ROI image to separate the rubber ring contour from the background, detect the contour edge, and extract the inner edge and outer edge point sets; perform quadratic curve fitting on the two point sets respectively to obtain the outer contour curve and the inner contour curve; perform mask processing on the area within the two curves, and the remaining part is the detected flash.
10. The O-type rubber ring defect automatic detection system according to claim 9, characterized in that: Step S204 is specifically as follows: S2041, binarizing the aperture grayscale image; S2042, dilating the binarized image to connect tiny breakpoints caused by noise in the binarized image; S2043, performing corrosion processing on the processed image to separate the breakpoints and black spots from the continuous aperture; S2044, performing morphological processing on the processed image to obtain an image with only black spots remaining; S2045, analyzing the black spot image, and adding the generated calibration template information, and finally obtaining the real size information of the black spot part, that is, the defect part.
