Binding belt defect detection method and system for banding machine
By performing threshold segmentation and correction of defect evaluation index on the cable ties surface image, the problem of inaccurate defect identification by the Otsu threshold method under the influence of light is solved, and the accuracy and efficiency of cable ties defect detection are improved.
Patent Information
- Application Number
- CN202510585594.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-08
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2045-05-08
AI Technical Summary
When the Otsu threshold method divides the surface defects of the belt belt ties, the grayscale value distribution caused by the influence of light may be misdivided into defects, reducing the accuracy of defect identification.
By threshold segmenting the cable ties surface image, the defect evaluation index of each communication domain is obtained, including the number of edge pixel points, the fitted value of the relative direction, the standard deviation of the grayscale value, etc., and the defect evaluation index is corrected by structural similarity to screen out the real defect area.
It improves the efficiency of the cable tie defect detection method, enhances the accuracy of defect identification, and avoids false defect areas being identified.
Smart Images

Figure CN120107257A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for detecting cable tie defects of a cable tie machine. Background Art
[0002] Cable ties are mainly used to bundle and fix various items to ensure that the items will not loosen or scatter during transportation and storage. Cable ties are the main strapping material in the strapping machine. By placing the products to be strapped on the induction electric eye in the middle of the strapping area, the strapping machine will use the cable ties to automatically complete the strapping, bonding and cutting operations. Therefore, the quality of the cable ties greatly affects the efficiency of strapping. For example, if there are scratch defects on the cable ties, the cable ties will be affected by external forces during the strapping process, and the scratch defects are more likely to become stress concentration points, thereby increasing the risk of breakage. Therefore, it is very necessary to detect cable tie defects in the strapping machine.
[0003] When the Otsu threshold method is used to segment the surface defects of the cable ties of the cable tie machine, the surface image of the cable tie may be affected by light, resulting in a variety of grayscale value distributions on the surface of the cable tie. The Otsu threshold method performs threshold segmentation on the image based on the distribution of grayscale values. Therefore, when the Otsu threshold method is used to segment the surface image of the cable tie, the segmentation results may not all be defects, that is, the area affected by light may also be segmented out and mistakenly regarded as a defect, reducing the accuracy of defect identification. Summary of the invention
[0004] In order to solve the technical problem that the surface of the cable tie has a variety of gray value distributions due to the influence of light, and therefore the area affected by light may be segmented out when the surface image of the cable tie is segmented using the Otsu threshold method and mistakenly regarded as a defect, the present invention provides a cable tie defect detection method and system for a cable tie machine.
[0005] In a first aspect, the present invention provides a method for detecting defects of a cable tie used in a cable tie machine, which adopts the following technical solution: A method for detecting defects of a cable tie for a cable tie machine comprises the following steps: Collect the surface image of the cable tie, perform threshold segmentation on the surface image of the cable tie, obtain each connected domain; obtain the defect evaluation index of each connected domain , represents the defect assessment index of the i-th connected domain; Represents the number of edge pixels in the i-th connected domain; Represents the fitting value of the relative direction of the jth edge pixel on the i-th connected domain; Represents the relative direction of the jth edge pixel on the i-th connected domain; Represents the standard deviation of the gray values of all pixels in the i-th connected domain; Obtain the structural similarity between each connected domain and its matching area; obtain the correction defect evaluation index of each connected domain , represents the corrected defect evaluation index of the i-th connected domain; represents the defect assessment index of the i-th connected domain; tanh() represents the normalization function; Represents the structural similarity between the i-th connected domain and its matching region; According to the modified defect evaluation index, a scratch defect area is obtained.
[0006] The innovation of the present invention lies in that the scratch defect area of the cable tie surface image is segmented and identified by the Otsu threshold method, which can improve the efficiency of the cable tie defect detection method, and then the various connected domains obtained by the Otsu threshold segmentation method are evaluated according to the change characteristics of the scratch defect area and the relationship between adjacent cable tie surface images, so as to judge the real defects in the segmentation result, which can effectively improve the accuracy of cable tie defect identification and avoid the appearance of false defect areas in the segmentation result.
[0007] Preferably, the performing threshold segmentation on the cable tie surface image to obtain each connected domain comprises: The Otsu threshold method is used to perform threshold segmentation on the surface image of each cable tie to obtain each connected domain of the surface image of each cable tie. The number of pixel points M is preset, and the connected domains with a number of pixel points less than M are eliminated.
[0008] Subsequently, the characteristics of the connected domain are analyzed to screen out the scratch defect area.
[0009] Preferably, obtaining the relative direction of the jth edge pixel point on the i-th connected domain includes: ; In the formula, Represents the relative direction of the jth edge pixel of the i-th connected domain; Represents the position coordinates of the next edge pixel point in the counterclockwise direction of the j-th edge pixel point of the i-th connected domain; Represents the position coordinates of the jth edge pixel point of the ith connected component; || represents the absolute value symbol.
[0010] The more stable the relative directions of all edge pixels on the connected domain are, the more likely the connected domain is to be a scratch defect area.
[0011] Preferably, obtaining the fitting value of the relative direction of the j-th edge pixel point on the i-th connected domain includes: Any edge pixel point on the i-th connected domain is recorded as the starting point, and the edge pixel points on the i-th connected domain are traversed in sequence in a counterclockwise direction to obtain the edge pixel point sequence of the i-th connected domain. The least squares method is used to perform curve fitting on the relative directions corresponding to all pixels in the edge pixel point sequence of the i-th connected domain to obtain the fitting value of the relative direction of each edge pixel point on the i-th connected domain.
[0012] Preferably, obtaining the structural similarity between each connected region and its matching region includes: Get the left and right areas of the cable tie surface image; get the matching area of each connected domain; The SSIM algorithm is used to obtain the structural similarity between the ith connected domain and its matching region, and recorded as the structural similarity between the ith connected domain and its matching region.
[0013] Preferably, the obtaining of the left and right areas of the cable tie surface image includes: The pixel point at the upper right corner of the current cable tie surface image is used as the coordinate origin, a rectangular coordinate system is constructed for the current cable tie surface image, and the horizontal coordinate of each pixel point of the current cable tie surface image is obtained to obtain the straight line y= ,in Represents the maximum horizontal coordinate of all pixel points of the current cable tie surface image; divides the current cable tie surface image into two left and right areas according to the straight line; divides each cable tie surface image into two left and right areas.
[0014] Preferably, obtaining the matching area of each connected domain includes: If the maximum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is less than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the right area of the previous cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image; If the minimum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is greater than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the left area of the next cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image.
[0015] This facilitates the subsequent acquisition of the structural similarity between each connected domain and its matching area, and corrects the defect assessment index.
[0016] Preferably, obtaining the scratch defect area includes: A defect determination threshold T is preset. If the corrected defect evaluation index of any connected domain is greater than or equal to the defect determination threshold T, the connected domain is determined as the scratch defect area of the current cable tie surface image, and each scratch defect area of the current cable tie surface image is obtained; each scratch defect area of each cable tie image is obtained.
[0017] The identified scratch defect area is more accurate.
[0018] Preferably, collecting the surface image of the cable tie includes: The preset image acquisition interval is 2.5s. The cable tie of the strapping machine is placed on a conveyor belt with a length of 0.5 meters and a speed of 0.1m / s. The high-resolution camera should be placed directly above the conveyor belt. When the conveyor belt is running, the RGB image of the surface of each cable tie is collected; The semantic segmentation algorithm is used to segment the RGB image of the surface of each cable tie to obtain the area image of each cable tie, and the cable tie area image is converted to grayscale to obtain the surface image of each cable tie.
[0019] In a second aspect, the present invention provides a cable tie defect detection system for a cable tie machine, which adopts the following technical solution: A cable tie defect detection system for a cable tie machine comprises: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, the cable tie defect detection method for the cable tie machine is implemented.
[0020] By adopting the above technical solution, the above-mentioned method for detecting defects of a strapping machine is generated into a computer program and stored in a memory so as to be loaded and executed by a processor, thereby manufacturing a terminal device based on the memory and the processor for easy use.
[0021] The present invention has the following technical effects: the purpose of the present invention is to segment and identify the scratch defect area of the cable tie surface image through the Otsu threshold method, which can improve the efficiency of the cable tie defect detection method, and then evaluate the various connected domains obtained by the Otsu threshold segmentation method through the change characteristics of the scratch defect area and the relationship between adjacent cable tie surface images, so as to judge the real defects in the segmentation result, which can effectively improve the accuracy of cable tie defect identification and avoid the appearance of false defect areas in the segmentation result. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present invention will become readily understood. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-restrictive manner, and the same or corresponding reference numerals represent the same or corresponding parts.
[0023] Figure 1 The present invention is a flowchart of a method for detecting defects of a cable tie used in a cable tie machine according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] 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 those skilled in the art without creative work are within the scope of protection of the present invention.
[0025] It should be understood that when the terms "first", "second", etc. are used in the claims, descriptions, and drawings of the present invention, they are only used to distinguish different objects, rather than to describe a specific order. The terms "include" and "comprise" used in the description and claims of the present invention indicate the presence of the 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 their collections.
[0026] The embodiment of the present invention discloses a method for detecting defects of a cable tie used in a cable tie machine, referring to Figure 1 , comprising steps S1 to S4: S1: Collect the surface image of the cable tie.
[0027] In the embodiment of the present invention, the preset interval time for collecting images is 2.5s, the cable tie of the strapping machine is placed on a conveyor belt with a length of 0.5 meters and a speed of 0.1m / s, and the high-resolution camera should be placed directly above the conveyor belt. When the conveyor belt is running, the RGB image of the surface of each cable tie is collected until there is no tie on the conveyor belt, and the image can be stopped; wherein, every 0.25m of the cable tie can be photographed twice; The semantic segmentation algorithm is used to segment the RGB image of the surface of each cable tie to obtain the area image of each cable tie, and the cable tie area image is converted to grayscale to obtain the surface image of each cable tie.
[0028] S2: Perform threshold segmentation on the cable tie surface image to obtain each connected domain; obtain the relative direction of each edge pixel point of each connected domain, and obtain the defect assessment index of each connected domain based on the change of the relative direction and the change of grayscale in the connected domain.
[0029] It should be noted that when the Otsu threshold method is used to segment the surface defects of the cable ties of a cable tie machine, the surface image of the cable tie may be affected by light, resulting in a variety of grayscale value distributions on the surface of the cable tie. The Otsu threshold method performs threshold segmentation on the image through the distribution of grayscale values. Therefore, when the Otsu threshold method is used to segment the surface image of the cable tie, the segmentation results may not all be defects, that is, the area affected by light may also be segmented out and mistakenly regarded as a defect. Therefore, in order to improve the accuracy of the Otsu threshold method in segmenting the surface defects of the cable tie, the present invention proposes a cable tie defect detection method and system for a cable tie machine, which evaluates the segmentation results of the Otsu threshold method through the changing characteristics of the defect area on the cable tie surface and the relationship between adjacent cable tie surface images, thereby screening out the real defect area and improving the accuracy of the cable tie defect detection method for the cable tie machine.
[0030] It should be further explained that it is known that there is a difference between the grayscale value at the location of the scratch defect on the surface of the cable tie and the surrounding grayscale value. Therefore, each cable tie image can be threshold segmented according to the Otsu threshold method. Then, each connected domain obtained by segmentation is more likely to be a scratch defect area, and it is easily affected by noise when the image is collected. Therefore, in order to improve the efficiency of subsequent analysis and processing, it is necessary to remove the noise. The defect is often a relatively large connected domain, and the noise point is a relatively small connected domain. Therefore, according to the size of the connected domain area, the noise point can be removed.
[0031] In an embodiment of the present invention, the Otsu threshold method is used to perform threshold segmentation on the surface image of each cable tie to obtain each connected domain of the surface image of each cable tie, and the number of pixels M is preset, and the connected domains with the number of pixels less than M are eliminated. In an embodiment of the present invention, the preset number of pixels M=10. In other embodiments, the implementer can preset the value of the number of pixels M according to the specific implementation method.
[0032] It should be noted that since the scratch defect area is manifested in the cable tie surface image as an irregular jagged edge, and the grayscale changes in the scratch defect area are relatively chaotic; however, there may be a lighting affected area in the obtained connected domain, and the edge changes of the lighting affected area are gentle, that is, relatively regular, and the grayscale changes in the lighting affected area are relatively consistent. Therefore, the defect evaluation index of each connected domain can be calculated according to the edge regularity and the chaos of the grayscale value, wherein the connected domain with lower regularity and higher chaos has higher defect evaluation index; Select any edge pixel point on the edge of the connected domain as the starting point, and start traversing each edge pixel point on the connected domain in a counterclockwise direction. During the traversal process, calculate the sine value of the direction of the next pixel point relative to the current edge pixel point, and then get the relative direction of each edge pixel point in the connected domain; if the edge of the connected domain is more regular, then the change of the relative direction of the edge pixel points of the connected domain will be more stable, and when performing curve fitting on the relative direction corresponding to the edge pixel points on the connected domain with more regular edges, the fitting error will be smaller; and the standard deviation of the grayscale values of all pixels in the connected domain can be used to directly represent the chaos of the grayscale change in the connected domain, and the larger the standard deviation, the higher the chaos.
[0033] In the embodiment of the present invention, any cable tie surface image is recorded as the current cable tie surface image, and the relative direction of the jth edge pixel point of the i-th connected domain of the current cable tie surface image is obtained: ; In the formula, Represents the relative direction of the jth edge pixel of the i-th connected domain; Represents the position coordinates of the next edge pixel point in the counterclockwise direction of the j-th edge pixel point of the i-th connected domain; Represents the position coordinates of the jth edge pixel point of the i-th connected domain; || represents the absolute value symbol; Represents the sine value of the horizontal angle between the next edge pixel point in the counterclockwise direction of the j-th edge pixel point of the ith connected component and the j-th edge pixel point.
[0034] In the embodiment of the present invention, any edge pixel point on the ith connected domain is recorded as the starting point, and the edge pixel points on the ith connected domain are traversed in sequence in a counterclockwise direction to obtain an edge pixel point sequence of the ith connected domain, and a least squares method is used to perform curve fitting on the relative directions corresponding to all pixel points in the edge pixel point sequence of the ith connected domain to obtain a fitting value of the relative direction of each edge pixel point on the ith connected domain; Get the defect assessment index of the i-th connected domain: ; In the formula, represents the defect assessment index of the i-th connected domain; Represents the number of edge pixels in the i-th connected domain; Represents the fitting value of the relative direction of the jth edge pixel on the i-th connected domain; Represents the relative direction of the jth edge pixel on the i-th connected domain; Represents the standard deviation of the gray values of all pixels in the i-th connected domain; The larger the value of is, the more chaotic the grayscale change in the i-th connected domain is, the larger the defect evaluation index of the i-th connected domain is, and the more likely the i-th connected domain is to be a scratch defect area; The larger the value of is, the more irregular the edge of the ith connected domain is, the larger the defect evaluation index of the ith connected domain is, and the more likely the ith connected domain is to be a scratch defect area.
[0035] S3: Correcting the defect assessment index of each connected domain of the cable tie surface image to obtain a corrected defect assessment index of each connected domain of the cable tie surface image.
[0036] It should be noted that, it is known that the length of the conveyor belt is 0.5 meters, the speed is 0.1 m / s, and the preset interval time for collecting images is 2.5 seconds. Therefore, the cable tie can be photographed twice every 0.25 meters, that is, there are overlapping parts between adjacent cable tie images; and due to the change in shooting angle, the connected domain caused by illumination appears differently in adjacent cable tie surface images, but the shape of the connected domain in the scratch defect area does not change. Therefore, the structural similarity of the overlapping part of the connected domain between adjacent cable tie images can be used to correct the defect assessment index, so as to reduce the defect assessment index of the connected domain caused by illumination and improve the accuracy of the defect assessment index calculation. The higher the structural similarity, the higher the possibility that the connected domain is a true defect area, and the higher the defect assessment index.
[0037] In the embodiment of the present invention, the pixel point at the upper right corner of the current cable tie surface image is used as the coordinate origin, a rectangular coordinate system is constructed for the current cable tie surface image, and the horizontal coordinate of each pixel point of the current cable tie surface image is obtained to obtain the straight line y= ,in Represents the maximum horizontal coordinate of all pixel points of the current cable tie surface image; divides the current cable tie surface image into two left and right areas according to the straight line; similarly, divides each cable tie surface image into two left and right areas.
[0038] If the maximum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is less than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the right area of the previous cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image; the structural similarity between the i-th connected domain and its matching area is obtained by using the SSIM algorithm, and is recorded as the structural similarity between the i-th connected domain and its matching area; If the minimum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is greater than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the left area of the next cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image; the structural similarity between the i-th connected domain and its matching area is obtained by using the SSIM algorithm, and is recorded as the structural similarity between the i-th connected domain and its matching area; If there is a connected domain with a horizontal coordinate equal to , the i-th connected domain of the current cable tie surface image is divided into two target regions according to the straight line, which are recorded as the two target regions of the i-th connected domain of the current cable tie surface image. According to the matching region acquisition method, the matching region of each target region of the i-th connected domain of the current cable tie surface image is acquired; The SSIM algorithm is used to obtain the structural similarity between each target region of the i-th connected domain and the matching region of its target region; and the mean of the structural similarities between all target regions of the i-th connected domain and the matching region of its target region is recorded as the structural similarity between the i-th connected domain and its matching region; In an embodiment of the present invention, the correction defect evaluation index of the i-th connected domain is obtained: ; In the formula, represents the corrected defect evaluation index of the i-th connected domain; represents the defect assessment index of the i-th connected domain; tanh() represents the normalization function; Represents the structural similarity between the i-th connected domain and its matching region; The larger the value of , the more likely the i-th connected domain is to be a scratch defect area, and the larger the value of the corrected defect evaluation index of the i-th connected domain.
[0039] S4: Obtaining a scratch defect area according to the corrected defect evaluation index of each connected domain of the cable tie surface image.
[0040] It should be noted that the corrected defect assessment indexes of each connected domain of the current cable tie surface image have been obtained, and then the scratch defect area of the current cable tie surface image needs to be obtained according to the corrected defect assessment indexes.
[0041] In the embodiment of the present invention, the preset defect determination threshold T=0.75. In other embodiments, the implementer may preset the value of T according to the specific implementation situation. If the corrected defect assessment index of any connected domain is greater than or equal to the defect determination threshold T, the connected domain is determined to be the scratch defect area of the current cable tie surface image, and each scratch defect area of the current cable tie surface image is obtained. Similarly, each scratch defect area of each cable tie image is obtained. When a scratch defect area exists in any cable tie image, the system immediately sends a signal to remind the staff to process this section of the cable tie.
[0042] An embodiment of the present invention further discloses a cable tie defect detection system for a cable tie machine, comprising a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a cable tie defect detection method for a cable tie machine according to the present invention is implemented.
[0043] The above system also includes other components well known to those skilled in the art, such as a communication bus and a communication interface, and their configuration and functions are known in the art, so they will not be described in detail here.
[0044] In the present invention, the aforementioned memory may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, a computer-readable storage medium may be any suitable magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory, a dynamic random access memory, a static random access memory, an enhanced dynamic random access memory, a high bandwidth memory, a hybrid storage cube, etc., or any other medium that can be used to store the required information and can be accessed by an application, a module, or both. Any such computer storage medium may be part of the device or accessible or connectable to the device.
[0045] Although this specification has shown and described a number of embodiments of the present invention, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art will conceive of many modifications, changes and alternatives without departing from the ideas and spirit of the present invention. It should be understood that in the practice of the present invention, various alternatives to the embodiments of the present invention described herein may be employed.
[0046] The above are all preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Therefore, any equivalent changes made based on the structure, shape, and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting defects of a cable tie used in a cable tie machine, characterized in that: Includes steps: Collect the surface image of the cable tie, perform threshold segmentation on the surface image of the cable tie, obtain each connected domain; obtain the defect evaluation index of each connected domain , represents the defect assessment index of the i-th connected domain; Represents the number of edge pixels in the i-th connected domain; Represents the fitting value of the relative direction of the jth edge pixel on the i-th connected domain; Represents the relative direction of the jth edge pixel on the i-th connected domain; Represents the standard deviation of the gray values of all pixels in the i-th connected domain; Obtain the structural similarity between each connected region and its matching region; Get the corrected defect evaluation index for each connected domain , represents the corrected defect evaluation index of the i-th connected domain; represents the defect assessment index of the i-th connected domain; tanh() represents the normalization function; Represents the structural similarity between the i-th connected domain and its matching region; According to the modified defect evaluation index, a scratch defect area is obtained.
2. A method for detecting defects of a cable tie for a cable tie machine according to claim 1, characterized in that: The step of performing threshold segmentation on the surface image of the cable tie to obtain each connected domain includes: The Otsu threshold method is used to perform threshold segmentation on the surface image of each cable tie to obtain each connected domain of the surface image of each cable tie. The number of pixel points M is preset, and the connected domains with a number of pixel points less than M are eliminated.
3. A method for detecting cable tie defects for a cable tie machine according to claim 1, characterized in that: The relative direction of the jth edge pixel point on the i-th connected domain is obtained, including: ; In the formula, Represents the relative direction of the jth edge pixel of the i-th connected domain; Represents the position coordinates of the next edge pixel point in the counterclockwise direction of the j-th edge pixel point of the i-th connected domain; Represents the position coordinates of the jth edge pixel point of the ith connected component; || represents the absolute value symbol.
4. A method for detecting defects of a cable tie for a cable tie machine according to claim 1, characterized in that: The acquisition of the fitting value of the relative direction of the jth edge pixel point on the i-th connected domain includes: Any edge pixel point on the i-th connected domain is recorded as the starting point, and the edge pixel points on the i-th connected domain are traversed in sequence in a counterclockwise direction to obtain the edge pixel point sequence of the i-th connected domain. The least squares method is used to perform curve fitting on the relative directions corresponding to all pixels in the edge pixel point sequence of the i-th connected domain to obtain the fitting value of the relative direction of each edge pixel point on the i-th connected domain.
5. A method for detecting cable tie defects for a cable tie machine according to claim 1, characterized in that: The obtaining of the structural similarity between each connected region and its matching region includes: Get the left and right areas of the cable tie surface image; get the matching area of each connected domain; The SSIM algorithm is used to obtain the structural similarity between the ith connected domain and its matching region, and recorded as the structural similarity between the ith connected domain and its matching region.
6. A method for detecting defects of a cable tie for a cable tie machine according to claim 5, characterized in that: The obtaining of the left and right areas of the cable tie surface image includes: The pixel point at the upper right corner of the current cable tie surface image is used as the coordinate origin, a rectangular coordinate system is constructed for the current cable tie surface image, and the horizontal coordinate of each pixel point of the current cable tie surface image is obtained to obtain the straight line y= ,in Represents the maximum horizontal coordinate of all pixel points of the current cable tie surface image; divides the current cable tie surface image into two left and right areas according to the straight line; divides each cable tie surface image into two left and right areas.
7. A method for detecting cable tie defects for a cable tie machine according to claim 5, characterized in that: The step of obtaining a matching area of each connected domain includes: If the maximum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is less than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the right area of the previous cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image; If the minimum horizontal coordinate of all pixels in the i-th connected domain of the current cable tie surface image is greater than , the area obtained when the i-th connected domain of the current cable tie surface image corresponds to the left area of the next cable tie image of the current cable tie surface image is recorded as the matching area of the i-th connected domain of the current cable tie surface image.
8. A method for detecting cable tie defects for a cable tie machine according to claim 1, characterized in that: The step of obtaining the scratch defect area comprises: A defect determination threshold T is preset. If the corrected defect evaluation index of any connected domain is greater than or equal to the defect determination threshold T, the connected domain is determined as the scratch defect area of the current cable tie surface image, and each scratch defect area of the current cable tie surface image is obtained; each scratch defect area of each cable tie image is obtained.
9. A method for detecting cable tie defects for a cable tie machine according to claim 1, characterized in that: The collecting of the cable tie surface image comprises: The preset image acquisition interval is 2.5s. The cable tie of the strapping machine is placed on a conveyor belt with a length of 0.5 meters and a speed of 0.1m / s. The high-resolution camera should be placed directly above the conveyor belt. When the conveyor belt is running, the RGB image of the surface of each cable tie is collected. The semantic segmentation algorithm is used to segment the RGB image of the surface of each cable tie to obtain the area image of each cable tie, and the cable tie area image is converted to grayscale to obtain the surface image of each cable tie.
10. A cable tie defect detection system for a cable tie machine, characterized in that: include: A processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, a method for detecting defects of a cable tie for a cable tie machine according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Mobile phone cover plate glass defect detection method based on machine vision
CN112630222A
LED lamp production quality detection system
CN116703911A
Stone grinding defect area segmentation method based on visual analysis
CN117745724A
High-voltage power supply element defect identification method based on computer vision
CN119863467A
Image processing apparatus and method of image processing
US20070086658A1
Cited By
New energy automobile wire harness ribbon assembly quality detection system based on machine vision
CN122089665A