Zipper defect detection method, device, equipment and medium

By performing image processing and skeleton extraction on the zipper image, the neural network algorithm is used to automatically detect the number of lower tooth roots, which solves the problem of poor manual detection accuracy in invisible zipper defect detection, improves detection accuracy and efficiency, and improves product quality. stability.

CN115201207BActive Publication Date: 2024-10-01ZHEJIANG WEIXING IND DEV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210897949.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-28
Publication Date
2024-10-01
Estimated Expiration
2042-07-28

AI Technical Summary

Technical Problem

In the existing technology, invisible zipper defect detection mainly relies on manual labor, and there are problems such as visual fatigue of the inspector and poor detection accuracy of the human eye, resulting in low detection accuracy and efficiency, and affecting product quality stability.

Method used

By acquiring the zipper image, performing image processing and skeleton extraction, the number of bottom stop tooth roots is determined, and algorithms such as fast regional convolutional neural network and adaptive linear span network are used to automatically detect zipper defects and achieve accurate positioning and positioning of the zipper bottom stop. Defect judgment.

Benefits of technology

It improves the accuracy and efficiency of zipper defect detection, reduces the visual fatigue of inspectors, improves product quality stability, and avoids the problem of poor detection accuracy by the human eye.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115201207B_ABST
    Figure CN115201207B_ABST
Patent Text Reader

Abstract

The present application discloses a zipper defect detection method, device, equipment and medium, which relates to the field of artificial intelligence, including: acquiring an image of a zipper, determining the zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image; performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram; determining the isolated point position and the endpoint position in the bottom stop skeleton diagram, deleting the isolated point in the bottom stop skeleton diagram based on the isolated point position, and connecting two endpoints that meet a preset distance value according to the endpoint position to obtain a bottom stop tooth root skeleton diagram; determining the number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram, so as to detect whether the zipper has a defect according to the number of bottom stop tooth roots. Through the above technical solution of the present application, the accuracy of zipper defect detection can be effectively improved, the efficiency of zipper defect detection can be increased, and the stability of product quality can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular to a zipper defect detection method, device, equipment and medium. Background Art

[0002] At present, the general invisible zipper consists of chain teeth, sliders, and stop ends (upper stop and lower stop), with two chain belts, each with a row of chain teeth, and the two rows of chain teeth are staggered. The invisible lower stop is closed and cannot be separated. It is formed by the fusion of chain teeth. It looks like it exists and does not exist. It is beautiful and invisible, and can prevent the slider from falling off. At present, the inspection of the invisible lower stop that is too long or too short in the workshop is mainly done manually, which has problems such as visual fatigue of inspectors and poor accuracy of human eye inspection.

[0003] As can be seen from the above, in the process of zipper defect detection, how to improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve the stability of product quality are problems to be solved in this field. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a zipper defect detection method, device, equipment and medium, which can effectively improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve the stability of product quality. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a zipper defect detection method, comprising:

[0006] Acquire an image of the zipper, determine a zipper bottom stop position in the image, and perform image processing on the zipper bottom stop position to obtain a zipper bottom stop image;

[0007] Performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram;

[0008] Determine the position of the isolated point and the position of the endpoint in the bottom stop skeleton diagram, delete the isolated point in the bottom stop skeleton diagram based on the position of the isolated point, and connect two endpoints that meet the preset distance value according to the position of the endpoint to obtain the bottom stop tooth root skeleton diagram;

[0009] The number of lower stop tooth roots in the lower stop tooth root skeleton diagram is determined so as to detect whether the zipper has defects based on the number of lower stop tooth roots.

[0010] Optionally, acquiring an image of the zipper and determining a lower stop position of the zipper in the image includes:

[0011] Capturing an image of the zipper using a high-resolution, high-speed industrial linear array camera on a production line to obtain an image of the zipper;

[0012] The zipper bottom stop position in the image is determined using a fast regional convolutional neural network.

[0013] Optionally, performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image includes:

[0014] Extracting the zipper bottom stop position in the image to obtain an extracted image;

[0015] Extract other partial images except the zipper from the extracted image, and delete the other partial images to obtain the zipper bottom stop image.

[0016] Optionally, the step of performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram includes:

[0017] An object skeleton detection algorithm is configured and integrated with scale-aware features using a skeleton extraction algorithm, driven by a pre-acquired neural architecture search.

[0018] The skeleton of the zipper bottom stop image is extracted based on an adaptive linear span network and using the target skeleton detection algorithm to obtain a bottom stop skeleton graph.

[0019] Optionally, deleting the isolated point in the lower stop skeleton graph based on the position of the isolated point, and connecting two endpoints that meet a preset distance value according to the position of the endpoint, includes:

[0020] Calling a pre-acquired isolated point deletion program, and deleting isolated points in the lower stop skeleton graph according to the positions of the isolated points;

[0021] The pre-acquired endpoint connection program is called, and two endpoints that meet the preset distance value are connected according to the endpoint positions.

[0022] Optionally, determining the number of lower stop tooth roots in the lower stop tooth root skeleton diagram includes:

[0023] The bottom stop tooth roots in the bottom stop tooth root skeleton image are analyzed and counted using a boundary tracking digital binary image topology structure analysis algorithm to obtain the number of the bottom stop tooth roots.

[0024] Optionally, detecting whether the zipper has defects according to the number of the bottom stop teeth includes:

[0025] Determine the specified value range for zipper testing;

[0026] Determine whether the number of the bottom stop tooth roots is within the specified value range of the zipper detection. If the number of the bottom stop tooth roots is within the specified value range of the zipper detection, the output zipper bottom stop is qualified; if the number of the bottom stop tooth roots is not within the specified value range of the zipper detection, the output zipper bottom stop is unqualified.

[0027] In a second aspect, the present application discloses a zipper defect detection device, comprising:

[0028] An image processing module, used for acquiring an image of the zipper, determining a zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image;

[0029] A skeleton extraction module, used for performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram;

[0030] a lower stop tooth root skeleton diagram optimization module, used to determine the positions of isolated points and endpoints in the lower stop skeleton diagram, delete the isolated points in the lower stop skeleton diagram based on the positions of the isolated points, and connect two endpoints that meet a preset distance value according to the endpoint positions to obtain a lower stop tooth root skeleton diagram;

[0031] The detection module is used to determine the number of lower stop tooth roots in the lower stop tooth root skeleton diagram, so as to detect whether the zipper has defects according to the number of lower stop tooth roots.

[0032] In a third aspect, the present application discloses an electronic device, comprising:

[0033] Memory, used to store computer programs;

[0034] The processor is used to execute the computer program to implement the aforementioned zipper defect detection method.

[0035] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the zipper defect detection method disclosed above are implemented.

[0036] It can be seen that the present application provides a zipper defect detection method, including acquiring an image of the zipper, determining the zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image; performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram; determining the isolated point positions and endpoint positions in the bottom stop skeleton diagram, deleting the isolated points in the bottom stop skeleton diagram based on the isolated point positions, and connecting two endpoints that meet a preset distance value according to the endpoint positions to obtain a bottom stop tooth root skeleton diagram; determining the number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram, so as to detect whether the zipper has defects based on the number of bottom stop tooth roots. The present application is applied to zipper inspection equipment, which performs image processing on the acquired zipper image and then performs skeleton extraction to obtain a bottom stop skeleton diagram, determines the number of bottom stop tooth roots from the bottom stop skeleton diagram, and uses the number of bottom stop tooth roots to detect whether the zipper is qualified, thereby avoiding visual fatigue of the inspector and poor accuracy of human eye detection, and can effectively improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve product quality stability. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 A flow chart of a zipper defect detection method disclosed in this application;

[0039] Figure 2 A specific structural diagram of a target skeleton detection algorithm disclosed in this application;

[0040] Figure 3 A code example diagram disclosed in this application;

[0041] Figure 4 This is an example diagram of a zipper defect result disclosed in this application;

[0042] Figure 5 A flow chart of a zipper defect detection method disclosed in this application;

[0043] Figure 6 A flowchart of a specific zipper defect detection method disclosed in this application;

[0044] Figure 7 A flowchart of a specific zipper defect detection method disclosed in this application;

[0045] Figure 8This is a schematic structural diagram of a zipper defect detection device disclosed in this application;

[0046] Fig. 9 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0047] 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.

[0048] At present, the general invisible zipper is composed of chain teeth, sliders, and stop ends (upper stop and lower stop), with two chain belts, each with a row of chain teeth, and the two rows of chain teeth are staggered. The invisible bottom stop is closed and cannot be separated. It is formed by the fusion of chain teeth. It looks like it is there and not there. It is beautiful and invisible, and it can prevent the slider from falling off. At present, the defect detection of invisible bottom stops that are too long or too short in the workshop is mainly completed manually, which has problems such as visual fatigue of inspectors and poor accuracy of human eye detection. As can be seen from the above, in the process of zipper defect detection, how to improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve the stability of product quality are problems to be solved in this field.

[0049] See also Figure 1 As shown, the embodiment of the present invention discloses a zipper defect detection method, which may specifically include:

[0050] Step S11: acquiring an image of the zipper, determining a zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image.

[0051] In this embodiment, the zipper is imaged by a high-resolution, high-speed industrial linear array camera on a production line including a CCD (Charge Coupled Device, CCD image sensor) to obtain an image of the zipper, and then a fast regional convolutional neural network is used to determine the zipper bottom stop position in the image, and the zipper bottom stop position in the image is extracted to obtain an extracted image, and then other partial images except the zipper are extracted from the extracted image, and the other partial images are deleted to obtain a zipper bottom stop image.

[0052] It can be understood that the zipper is imaged by a high-resolution, high-speed industrial linear array camera on the production line, and then an image of the zipper is obtained. Then, a fast regional convolutional neural network is used to quickly locate the invisible bottom stop part of the zipper to obtain the bottom stop position of the zipper, and the image at the bottom stop position of the zipper is extracted to obtain the extracted image. The background part except the zipper in the extracted image is deleted to finally obtain the bottom stop image of the zipper.

[0053] Step S12: extracting the skeleton of the zipper bottom stop image to obtain a bottom stop skeleton diagram.

[0054] In this embodiment, driven by the pre-acquired NAS (Neural Architecture Search), the SEA-AdaLSN (Adaptive Linear Span Network of Squeeze-and-ExcitationAttention) algorithm is used to configure and integrate the scale-aware feature of the target skeleton detection algorithm, and then the skeleton of the zipper bottom stop image is extracted based on the adaptive linear span network and the target skeleton detection algorithm to obtain a bottom stop skeleton image. The specific structure of the SEA-AdaLSN algorithm (i.e., the target skeleton detection algorithm) is as follows: Figure 2 As shown in the figure, the SEA-AdaLSN algorithm consists of a backbone network, an attention mechanism, and a search space, and the key point is to expand the feature space to improve the performance of skeleton detection in complex scenes.

[0055] Step S13: Determine the isolated point position and the endpoint position in the lower stop skeleton diagram, delete the isolated point in the lower stop skeleton diagram based on the isolated point position, and connect two endpoints that meet the preset distance value according to the endpoint position to obtain the lower stop tooth root skeleton diagram.

[0056] In this embodiment, after determining the position of the isolated point and the position of the endpoint in the lower stop skeleton graph, the pre-acquired isolated point deletion program is called, and the isolated point in the lower stop skeleton graph is deleted according to the position of the isolated point; the pre-acquired endpoint connection program is called, and the two endpoints that meet the preset distance value are connected according to the endpoint position. Figure 3 As shown, the pseudo code in the figure expresses that the isolated points in the figure are first deleted, and then the two endpoints whose distance is within the specified threshold are connected to process the skeleton graph, and finally the skeleton graph of the lower tooth root is obtained.

[0057] Step S14: determining the number of lower stop tooth roots in the lower stop tooth root skeleton diagram, so as to detect whether the zipper has defects according to the number of lower stop tooth roots.

[0058] In this embodiment, an image of a zipper is acquired, the zipper bottom stop position in the image is determined, and the zipper bottom stop position is image processed to obtain a zipper bottom stop image; the zipper bottom stop image is subjected to skeleton extraction to obtain a bottom stop skeleton diagram; the positions of isolated points and endpoints in the bottom stop skeleton diagram are determined, the isolated points in the bottom stop skeleton diagram are deleted based on the isolated point positions, and two endpoints that meet a preset distance value are connected according to the endpoint positions to obtain a bottom stop tooth root skeleton diagram; the number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram is determined, so as to detect whether the zipper has a defect according to the number of bottom stop tooth roots. The present application is applied to a zipper detection device, by performing image processing on the acquired zipper image, and then performing skeleton extraction to obtain a bottom stop skeleton diagram, the number of bottom stop tooth roots is determined from the bottom stop skeleton diagram, and the number of bottom stop tooth roots is used to detect whether the zipper is qualified, thereby avoiding visual fatigue of the inspector and poor accuracy of human eye detection, and can effectively improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve product quality stability.

[0059] See also Figure 4 As shown, the embodiment of the present invention discloses a zipper defect detection method, which may specifically include:

[0060] Step S21: acquiring an image of the zipper, determining a zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image.

[0061] Step S22: extracting the skeleton of the zipper bottom stop image to obtain a bottom stop skeleton diagram.

[0062] Step S23: Determine the isolated point position and the endpoint position in the lower stop skeleton diagram, delete the isolated point in the lower stop skeleton diagram based on the isolated point position, and connect two endpoints that meet the preset distance value according to the endpoint position to obtain the lower stop tooth root skeleton diagram.

[0063] Step S24: Analyze and count the lower stop teeth in the lower stop tooth skeleton diagram using a boundary tracking digital binary image topology analysis algorithm to obtain the number of lower stop teeth, so as to detect whether the zipper has defects based on the number of lower stop teeth.

[0064] In the present embodiment, after analyzing and counting the lower stop tooth roots in the lower stop tooth root skeleton diagram to obtain the number of lower stop tooth roots by utilizing a boundary tracking digital binary image topology structure analysis algorithm, the zipper detection specified value range is determined according to the specific type of zipper, and then it is determined whether the number of lower stop tooth roots is within the specified value range of the zipper detection. If the number of lower stop tooth roots is within the specified value range of the zipper detection, the output is that the zipper lower stop is qualified; if the number of lower stop tooth roots is not within the specified value range of the zipper detection, the output is that the zipper lower stop is unqualified.

[0065] For example, Figure 5 As shown, the invisible zipper bottom stop has certain requirements on length, but it is difficult to measure the length, which can be converted into detecting the number of chain teeth contained in the invisible bottom stop. Taking zipper No. 3 as an example, the qualified invisible bottom stop of zipper No. 3 is specified to have a length of 0.6-0.8mm, and the number of chain teeth contained is 9-12. The number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram can be determined according to the bottom stop tooth root skeleton diagram. For example, the number of bottom stop tooth roots in the left figure is 7, which does not meet the specified value, so it is judged that the zipper invisible bottom stop has a short defect. The number of bottom stop tooth roots in the right figure is 11, which meets the specified value, so it is judged that the zipper invisible bottom stop is qualified.

[0066] The specific flow chart of this application is as follows Figure 6 As shown, the image of the zipper is acquired through image acquisition, and then image preprocessing is performed (i.e., the zipper bottom stop position is determined, and the image other than the zipper is deleted) to obtain the zipper bottom stop image, and then the SEA-AdaLSN algorithm (compression-concurrent attention mechanism adaptive linear span network, i.e. target skeleton detection algorithm) is used to extract the skeleton, determine the number of bottom stop teeth, and perform zipper defect judgment. Among them, the specific process of determining the number of bottom stop teeth and performing zipper defect judgment is as follows Figure 7 As shown, the isolated points in the bottom stop skeleton diagram are deleted, and the two endpoints that meet the preset distance value are connected to obtain the bottom stop tooth root skeleton diagram, and then the number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram is determined, and the zipper is detected whether there is a defect based on the number of bottom stop tooth roots. If the number of bottom stop tooth roots is within the specified value range of the zipper detection, the zipper bottom stop is output as qualified; if the number of bottom stop tooth roots is not within the specified value range of the zipper detection, the zipper bottom stop is output as unqualified.

[0067] In this embodiment, an image of the zipper is acquired, the zipper bottom stop position in the image is determined, and the zipper bottom stop position is image processed to obtain a zipper bottom stop image; a skeleton is extracted from the zipper bottom stop image to obtain a bottom stop skeleton diagram; isolated point positions and endpoint positions in the bottom stop skeleton diagram are determined, isolated points in the bottom stop skeleton diagram are deleted based on the isolated point positions, and two endpoints that meet a preset distance value are connected according to the endpoint positions to obtain a bottom stop tooth root skeleton diagram; the bottom stop tooth roots in the bottom stop tooth root skeleton diagram are analyzed and counted using a digital binary image topology structure analysis algorithm using boundary tracking to obtain the number of bottom stop tooth roots, so as to detect whether the zipper has defects based on the number of bottom stop tooth roots. The present application is applied to zipper inspection equipment, which performs image processing on the acquired zipper image and then performs skeleton extraction to obtain a bottom stop skeleton diagram, determines the number of bottom stop tooth roots from the bottom stop skeleton diagram, and uses the number of bottom stop tooth roots to detect whether the zipper is qualified, thereby avoiding visual fatigue of the inspector and poor accuracy of human eye detection, and can effectively improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve product quality stability.

[0068] See also Figure 8 As shown, the embodiment of the present invention discloses a zipper defect detection device, which may specifically include:

[0069] An image processing module 11 is used to obtain an image of the zipper, determine the zipper bottom stop position in the image, and perform image processing on the zipper bottom stop position to obtain a zipper bottom stop image;

[0070] A skeleton extraction module 12 is used to extract the skeleton of the zipper bottom stop image to obtain a bottom stop skeleton diagram;

[0071] A lower stop tooth root skeleton diagram optimization module 13 is used to determine the positions of isolated points and endpoints in the lower stop skeleton diagram, delete the isolated points in the lower stop skeleton diagram based on the positions of the isolated points, and connect two endpoints that meet a preset distance value according to the endpoint positions to obtain a lower stop tooth root skeleton diagram;

[0072] The detection module 14 is used to determine the number of lower stop tooth roots in the lower stop tooth root skeleton diagram, so as to detect whether the zipper has defects according to the number of lower stop tooth roots.

[0073] In this embodiment, an image of a zipper is acquired, the zipper bottom stop position in the image is determined, and the zipper bottom stop position is image processed to obtain a zipper bottom stop image; the zipper bottom stop image is subjected to skeleton extraction to obtain a bottom stop skeleton diagram; the positions of isolated points and endpoints in the bottom stop skeleton diagram are determined, the isolated points in the bottom stop skeleton diagram are deleted based on the isolated point positions, and two endpoints that meet a preset distance value are connected according to the endpoint positions to obtain a bottom stop tooth root skeleton diagram; the number of bottom stop tooth roots in the bottom stop tooth root skeleton diagram is determined, so as to detect whether the zipper has a defect according to the number of bottom stop tooth roots. The present application is applied to a zipper detection device, by performing image processing on the acquired zipper image, and then performing skeleton extraction to obtain a bottom stop skeleton diagram, the number of bottom stop tooth roots is determined from the bottom stop skeleton diagram, and the number of bottom stop tooth roots is used to detect whether the zipper is qualified, thereby avoiding visual fatigue of the inspector and poor accuracy of human eye detection, and can effectively improve the accuracy of zipper defect detection, increase the efficiency of zipper defect detection, and improve product quality stability.

[0074] In some specific embodiments, the image processing module 11 may specifically include:

[0075] An image acquisition module, used for acquiring an image of the zipper through a high-resolution and high-speed industrial linear array camera on a production line to obtain an image of the zipper;

[0076] The zipper bottom stop position determination module is used to determine the zipper bottom stop position in the image using a fast regional convolutional neural network.

[0077] In some specific embodiments, the image processing module 11 may specifically include:

[0078] A zipper bottom stop position extraction module, used to extract the zipper bottom stop position in the image to obtain an extracted image;

[0079] The zipper bottom stop image determination module is used to extract other partial images except the zipper from the extracted image, and delete the other partial images to obtain the zipper bottom stop image.

[0080] In some specific embodiments, the skeleton extraction module 12 may specifically include:

[0081] An object skeleton detection algorithm determination module, for configuring and integrating a target skeleton detection algorithm with scale-aware features using a skeleton extraction algorithm driven by a pre-acquired neural structure search;

[0082] The skeleton extraction module is used to extract the skeleton of the zipper bottom stop image based on an adaptive linear span network and using the target skeleton detection algorithm to obtain a bottom stop skeleton image.

[0083] In some specific embodiments, the lower stop tooth root skeleton diagram optimization module 13 may specifically include:

[0084] An isolated point deletion module, used to call a pre-acquired isolated point deletion program and delete the isolated points in the lower stop skeleton graph according to the positions of the isolated points;

[0085] The endpoint connection module is used to call a pre-acquired endpoint connection program and connect two endpoints that meet a preset distance value according to the endpoint positions.

[0086] In some specific embodiments, the detection module 14 may specifically include:

[0087] The module for determining the number of lower stop tooth roots is used to analyze and count the lower stop tooth roots in the lower stop tooth root skeleton image by using a digital binary image topology structure analysis algorithm of boundary tracking to obtain the number of lower stop tooth roots.

[0088] In some specific embodiments, the detection module 14 may specifically include:

[0089] A specified value range determination module is used to determine the specified value range of the zipper detection;

[0090] The detection module is used to determine whether the number of the bottom stop tooth roots is within the specified value range of the zipper detection. If the number of the bottom stop tooth roots is within the specified value range of the zipper detection, the output is that the zipper bottom stop is qualified; if the number of the bottom stop tooth roots is not within the specified value range of the zipper detection, the output is that the zipper bottom stop is unqualified.

[0091] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the zipper defect detection method performed by the electronic device disclosed in any of the aforementioned embodiments.

[0092] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0093] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 221, a computer program 222 and data 223, etc. The storage method can be temporary storage or permanent storage.

[0094] The operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20, so as to realize the operation and processing of the data 223 in the memory 22 by the processor 21, and it can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the zipper defect detection method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can also further include a computer program that can be used to complete other specific tasks. In addition to data transmitted from an external device received by the zipper defect detection device, the data 223 can also include data collected by its own input and output interface 25.

[0095] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0096] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the steps of the zipper defect detection method disclosed in any of the aforementioned embodiments are implemented.

[0097] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0098] The above is a detailed introduction to a zipper defect detection method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A zipper defect detection method, characterized in that: include: Acquire an image of the zipper, determine a zipper bottom stop position in the image, and perform image processing on the zipper bottom stop position to obtain a zipper bottom stop image; Performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram; Determine the position of the isolated point and the position of the endpoint in the bottom stop skeleton diagram, delete the isolated point in the bottom stop skeleton diagram based on the position of the isolated point, and connect two endpoints that meet the preset distance value according to the position of the endpoint to obtain the bottom stop tooth root skeleton diagram; Determine the number of lower stop tooth roots in the lower stop tooth root skeleton diagram, so as to detect whether the zipper has defects according to the number of lower stop tooth roots; The step of extracting the skeleton of the zipper bottom stop image to obtain a bottom stop skeleton graph includes: using an adaptive linear span network configuration of a compression-concurrent attention mechanism and a target skeleton detection algorithm integrating scale-aware features under the drive of a pre-acquired neural structure search; extracting the skeleton of the zipper bottom stop image based on the adaptive linear span network and using the target skeleton detection algorithm to obtain a bottom stop skeleton graph; Determining the number of lower stop tooth roots in the lower stop tooth root skeleton diagram includes: analyzing and counting the lower stop tooth roots in the lower stop tooth root skeleton diagram using a boundary tracking digital binary image topology structure analysis algorithm to obtain the number of lower stop tooth roots.

2. The zipper defect detection method according to claim 1, characterized in that: The step of acquiring an image of the zipper and determining a lower stop position of the zipper in the image includes: Capturing an image of the zipper using a high-resolution, high-speed industrial linear array camera on a production line to obtain an image of the zipper; The zipper bottom stop position in the image is determined using a fast regional convolutional neural network.

3. The zipper defect detection method according to claim 1, characterized in that: The image processing of the zipper bottom stop position to obtain the zipper bottom stop image includes: Extracting the zipper bottom stop position in the image to obtain an extracted image; A partial image excluding the zipper is extracted from the extracted image, and the partial image is deleted to obtain a zipper bottom stop image.

4. The zipper defect detection method according to claim 1, characterized in that: The step of deleting the isolated point in the lower stop skeleton graph based on the position of the isolated point, and connecting two endpoints that meet a preset distance value according to the position of the endpoint, includes: Calling a pre-acquired isolated point deletion program, and deleting isolated points in the lower stop skeleton graph according to the positions of the isolated points; The pre-acquired endpoint connection program is called, and two endpoints that meet the preset distance value are connected according to the endpoint positions.

5. The zipper defect detection method according to any one of claims 1 to 4, characterized in that: The step of detecting whether the zipper has defects according to the number of the lower stop teeth comprises: Determine the specified value range for zipper testing; Determine whether the number of bottom stop teeth is within the specified value range of the zipper detection. If so, the output zipper bottom stop is qualified; if not, the output zipper bottom stop is unqualified.

6. A zipper defect detection device, characterized in that: include: An image processing module, used for acquiring an image of the zipper, determining a zipper bottom stop position in the image, and performing image processing on the zipper bottom stop position to obtain a zipper bottom stop image; A skeleton extraction module, used for performing skeleton extraction on the zipper bottom stop image to obtain a bottom stop skeleton diagram; a lower stop tooth root skeleton diagram optimization module, used to determine the positions of isolated points and endpoints in the lower stop skeleton diagram, delete the isolated points in the lower stop skeleton diagram based on the positions of the isolated points, and connect two endpoints that meet a preset distance value according to the endpoint positions to obtain a lower stop tooth root skeleton diagram; A detection module, used to determine the number of lower stop tooth roots in the lower stop tooth root skeleton diagram, so as to detect whether the zipper has defects according to the number of lower stop tooth roots; The step of extracting the skeleton of the zipper bottom stop image to obtain a bottom stop skeleton graph includes: using an adaptive linear span network configuration of a compression-concurrent attention mechanism and a target skeleton detection algorithm integrating scale-aware features under the drive of a pre-acquired neural structure search; extracting the skeleton of the zipper bottom stop image based on the adaptive linear span network and using the target skeleton detection algorithm to obtain a bottom stop skeleton graph; Determining the number of lower stop tooth roots in the lower stop tooth root skeleton diagram includes: analyzing and counting the lower stop tooth roots in the lower stop tooth root skeleton diagram using a boundary tracking digital binary image topology structure analysis algorithm to obtain the number of lower stop tooth roots.

7. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the zipper defect detection method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: Used to store a computer program; wherein, when the computer program is executed by a processor, the zipper defect detection method according to any one of claims 1 to 5 is implemented.