CN112150438B - Disconnection detection method, disconnection detection device, electronic device and storage medium - Google Patents

Disconnection detection method, disconnection detection device, electronic device and storage medium Download PDF

Info

Publication number
CN112150438B
CN112150438B CN202011014808.7A CN202011014808A CN112150438B CN 112150438 B CN112150438 B CN 112150438B CN 202011014808 A CN202011014808 A CN 202011014808A CN 112150438 B CN112150438 B CN 112150438B
Authority
CN
China
Prior art keywords
detected
image
images
broken
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011014808.7A
Other languages
Chinese (zh)
Other versions
CN112150438A (en
Inventor
张发恩
吕钦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Innovation Qizhi Qingdao Technology Co ltd
Original Assignee
Innovation Qizhi Qingdao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Innovation Qizhi Qingdao Technology Co ltd filed Critical Innovation Qizhi Qingdao Technology Co ltd
Priority to CN202011014808.7A priority Critical patent/CN112150438B/en
Publication of CN112150438A publication Critical patent/CN112150438A/en
Application granted granted Critical
Publication of CN112150438B publication Critical patent/CN112150438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • DTEXTILES; PAPER
    • D01NATURAL OR MAN-MADE THREADS OR FIBRES; SPINNING
    • D01HSPINNING OR TWISTING
    • D01H13/00Other common constructional features, details or accessories
    • D01H13/14Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements
    • D01H13/16Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements responsive to reduction in material tension, failure of supply, or breakage, of material
    • D01H13/1616Warning or safety devices, e.g. automatic fault detectors, stop motions ; Monitoring the entanglement of slivers in drafting arrangements responsive to reduction in material tension, failure of supply, or breakage, of material characterised by the detector
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/187Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Mechanical Engineering (AREA)
  • Textile Engineering (AREA)
  • Quality & Reliability (AREA)
  • Treatment Of Fiber Materials (AREA)

Abstract

The application provides a method and a device for detecting broken lines, electronic equipment and a storage medium, wherein the method for detecting the broken lines comprises the following steps: acquiring a plurality of initial images to be detected of an object to be detected within preset time; respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected; and judging whether the object to be detected is broken according to the connected domains of the target images to be detected. The method, the device, the electronic equipment and the storage medium for detecting the broken thread are suitable for detecting the broken thread of the warp thread of the textile machine, and can accurately judge whether the warp thread of the textile machine to be detected is broken, so that the condition that the broken thread of the warp thread of the textile machine is missed to be detected or is not detected timely can be greatly reduced, the quality of produced cloth is guaranteed, and the waste of raw materials and the production cost are reduced.

Description

Disconnection detection method, disconnection detection device, electronic device and storage medium
Technical Field
The application relates to the technical field of textile detection, in particular to a broken yarn detection method and device, electronic equipment and a storage medium.
Background
At present, when weaving at the weaving machine, whether broken string is sensed to the weft accessible machine of weaving machine, but whether broken string appears in the warp of weaving machine is difficult to sense through the machine, usually, whether broken string appears in the warp of weaving machine mainly through artificially observing the judgement, however, the mode of artificial observation judgement appears louing to examine or detect untimely condition easily, leads to the quality of the cloth of production to reduce, therefore leads to the waste of raw and other materials and manufacturing cost's improvement easily.
Disclosure of Invention
The embodiment of the application aims to provide a broken-line detection method, a broken-line detection device, electronic equipment and a storage medium, which are suitable for detecting broken lines of warps of a textile machine and can accurately judge whether the warps of the textile machine to be detected are broken, so that the conditions that the broken lines of the warps of the textile machine are missed to be detected or the detection is not timely can be greatly reduced, the quality of produced cloth is guaranteed, and the waste of raw materials and the production cost are reduced.
In a first aspect, an embodiment of the present application provides a method for detecting a wire break, including:
acquiring a plurality of initial images to be detected of an object to be detected within preset time;
respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected;
and judging whether the object to be detected is broken according to the connected domains of the target images to be detected.
In the implementation process, the yarn breakage detection method is suitable for detecting the broken yarns of the warps of the textile machine, the target images to be detected of the object to be detected within the preset time are adopted, the difference between different target images to be detected is considered, when the interference or change occurs to the object to be detected in the background, the warps of the textile machine change among different frames, the change of the interference caused by the change of the background among different frames is small, the interference of the background can be effectively shielded, whether the yarns of the textile machine to be detected break or not can be accurately judged, the mode that whether the yarns of the object to be detected break or not can be judged through the connected domains of the target images to be detected, the characteristics of the yarns of the textile machine to be detected after the yarns break are relatively met, whether the yarns of the textile machine to be detected break or not in time can be accurately judged, the quality of the produced cloth can be guaranteed, and the waste of raw materials and the production cost can be reduced.
Further, the performing image processing on the plurality of initial images to be detected respectively to obtain a plurality of target images to be detected includes:
performing primary image processing on the single initial image to be detected to obtain a single binary image to be detected;
and denoising the single binary image to be detected to obtain a single target image to be detected.
In the implementation process, the single binaryzation image to be detected is obtained by carrying out preliminary image processing on the single initial image to be detected, so that the obvious degree of image characteristics can be favorably improved, meanwhile, the single binaryzation image to be detected is denoised to obtain the single target image to be detected, and the noise in the image can be effectively reduced, so that the judgment of broken line detection is facilitated.
Further, the preliminary image processing is performed on the single initial image to be detected to obtain a single binary image to be detected, and the preliminary image processing includes:
carrying out image reconstruction on the single initial image to be detected by using a preset image reconstruction model to obtain a single reconstructed image to be detected;
subtracting the single initial image to be detected and the single reconstructed image to be detected to obtain a single subtracted image to be detected;
and carrying out binarization processing on the single to-be-detected difference image to obtain a single to-be-detected binarization image.
In the implementation process, the method can reconstruct and differentiate the single initial image to be detected, so that the characteristics of the warp of the textile machine after the warp is broken can be better embodied by the differential image to be detected, and the judgment of the broken yarn detection is facilitated.
Further, denoising the single binarization image to be detected to obtain a single target image to be detected, including:
obtaining a plurality of connected domains of the single binary image to be detected;
and denoising the single binaryzation image to be detected according to the image characteristics of the plurality of connected domains to obtain the single target image to be detected.
In the implementation process, the method denoises a single binary image to be detected through a plurality of connected domains of the single binary image to be detected to obtain a single target image to be detected, can reduce the loss of partial information of the warp of the textile machine while denoising, and can improve the accuracy of judging whether the warp of the textile machine to be detected breaks or not, wherein the denoising mode is relatively in accordance with the characteristics of the warp of the textile machine after the warp breaks.
Further, denoising the single binarization image to be detected according to the image characteristics of the plurality of connected domains to obtain a single target image to be detected, including:
and denoising the single binaryzation image to be detected according to the number of the pixel points of the plurality of connected domains and the length-width ratio of the connected domains to obtain the single target image to be detected.
In the implementation process, the method carries out denoising on a single binary image to be detected through the number of the pixel points of the connected domain and the length-width ratio of the connected domain, and has a good denoising effect.
Further, the determining whether the object to be detected is broken according to the connected domains of the plurality of target images to be detected includes:
removing connected domains with the connected domain contact ratio reaching a preset threshold value in the target images to be detected according to the connected domains of the target images to be detected to obtain a plurality of actual images to be detected;
and judging whether the object to be detected is broken or not according to the plurality of actual images to be detected.
In the implementation process, the method judges whether the object to be detected is broken according to the connected domain of the target images to be detected, better considers the difference between different target images to be detected and the characteristics of the textile machine after the warp is broken, and can more accurately judge whether the warp of the textile machine to be detected is broken.
Further, the determining whether the object to be detected is broken according to the plurality of actual images to be detected includes:
determining the actual image to be detected with the connected domain in the plurality of actual images to be detected as a defect image;
and judging whether the object to be detected is broken according to the number of the defect images.
In the implementation process, the method determines the actual images to be detected with the connected domains in the actual images to be detected as the defect images, and judges whether the object to be detected is broken according to the number of the defect images, thereby being beneficial to judging the broken line detection.
In a second aspect, an embodiment of the present application provides a disconnection detecting apparatus, including:
the acquisition module is used for acquiring a plurality of initial images to be detected of an object to be detected within preset time;
the image processing module is used for respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected;
and the wire breakage judging module is used for judging whether the object to be detected is broken according to the connected domains of the target images to be detected.
In the implementation process, the broken thread detection device is suitable for detecting broken threads of warps of a textile machine, a plurality of target images to be detected of an object to be detected within preset time are adopted, the difference between different target images to be detected is considered, when the background of the object to be detected is interfered or changed, the warps of the textile machine are changed among different frames, the interference caused by the background change is small in change among different frames, the interference of the background can be effectively shielded, whether the broken threads of the textile machine to be detected occur is accurately judged, the mode that whether the broken threads of the object to be detected occur is judged through the connected domain of the plurality of target images to be detected, the characteristics of the broken threads of the textile machine to be detected are relatively met, whether the broken threads of the textile machine to be detected occur can be accurately judged, the condition that the broken threads of the textile machine to be detected are missed or are not detected timely can be greatly reduced, the quality of produced cloth is guaranteed, and the waste of raw materials and the production cost are reduced.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the above-mentioned disconnection detection method.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the above-mentioned disconnection detection method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a disconnection detection method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of step S120 according to a first embodiment of the present application;
fig. 3 is a schematic flowchart of step S130 according to a first embodiment of the present application;
fig. 4 is a block diagram of a disconnection detection apparatus according to a second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not construed as indicating or implying relative importance.
Usually, whether the broken string appears in the warp of weaving machine mainly passes through the artificial judgement of observing, however, the condition that the missed measure appears easily in the mode of artificial observation judgement or detect untimely leads to the quality reduction of the cloth of production, therefore leads to the waste of raw and other materials and the improvement of manufacturing cost easily.
In view of the problems in the prior art, the application provides a broken yarn detection method, a broken yarn detection device, electronic equipment and a storage medium, which are suitable for detecting broken yarns of warps of a textile machine and can accurately judge whether the warps of the textile machine to be detected are broken, so that the conditions that the broken yarns of the warps of the textile machine are missed to be detected or the detection is not timely can be greatly reduced, the quality of produced cloth is guaranteed, and the waste of raw materials and the production cost are reduced.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart of a disconnection detection method provided in an embodiment of the present application. The disconnection detection method described below in the embodiments of the present application can be applied to a server.
The embodiment of the application is illustrated by the following broken thread detection method, and the broken thread detection method is correspondingly used for detecting the broken thread of the warp thread of the textile machine.
The method for detecting the broken line comprises the following steps:
step S110, a plurality of initial images to be detected of an object to be detected within a predetermined time are acquired.
In this embodiment, the object to be detected is a warp of a textile machine, and the initial image to be detected is an image containing the warp of the textile machine.
The preset time can be 1 second or 2 seconds, and optionally, if the preset time is 1 second, the number of the initial images to be detected can be 2 or 3; if the predetermined time is 2 seconds, the number of the initial images to be detected may be 4, 5, or 6.
Alternatively, the images in normal production of the textile machine can be acquired by an industrial camera and the initial image to be detected is obtained by a target zone defined in the images acquired by the industrial camera.
And step S120, respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected.
In this embodiment, the number of target images to be detected is the same as the number of initial images to be detected, and the plurality of target images to be detected correspond to the plurality of initial images to be detected one by one.
Optionally, the image processing on the initial image to be detected may be at least one of reconstruction, denoising, binarization and the like of the initial image to be detected.
And step S130, judging whether the object to be detected is broken according to the connected domains of the target images to be detected.
In the present embodiment, the connected domains of a plurality of target images to be detected, that is, all the connected domains of each target image to be detected.
And judging whether the object to be detected is broken, namely judging whether the warp of the textile machine is broken.
The yarn breakage detection method is suitable for detecting the broken yarns of the warps of the textile machine, a plurality of target images to be detected of an object to be detected within preset time are adopted, the difference between different target images to be detected is considered, when the background of the object to be detected is interfered or changed, the warps of the textile machine are changed among different frames, the change of the interference caused by the change of the background among different frames is small, the interference of the background can be effectively shielded, whether the warps of the textile machine to be detected are broken or not can be accurately judged, the mode that whether the yarns of the object to be detected are broken or not can be judged through the connected domains of the plurality of target images to be detected, the characteristics of the broken warps of the textile machine can be relatively met, whether the warps of the textile machine to be detected are broken or not can be accurately judged, the condition that the warps of the textile machine are missed in yarn breakage or not timely in detection can be greatly reduced, the quality of produced cloth can be guaranteed, and the waste of raw materials and the production cost can be reduced.
Referring to fig. 2, fig. 2 is a schematic flowchart of step S120 provided in the embodiment of the present application.
As an optional implementation manner, in the method for detecting a disconnection in an embodiment of the present application, step S120, respectively performing image processing on a plurality of initial images to be detected to obtain a plurality of target images to be detected, may include the following steps:
step S121, carrying out primary image processing on a single initial image to be detected to obtain a single binary image to be detected;
and S122, denoising the single binary image to be detected to obtain a single target image to be detected.
In this embodiment, the target image to be detected corresponding to each initial image to be detected is obtained in the above manner.
In the process, the single binaryzation image to be detected is obtained by carrying out preliminary image processing on the single initial image to be detected, so that the obvious degree of image characteristics can be favorably improved, meanwhile, the single binaryzation image to be detected is denoised to obtain the single target image to be detected, and the noise in the image can be effectively reduced, so that the judgment of broken line detection is facilitated.
Optionally, when a single initial image to be detected is subjected to preliminary image processing to obtain a single binary image to be detected, the method may include:
carrying out image reconstruction on a single initial image to be detected by using a preset image reconstruction model to obtain a single reconstructed image to be detected;
performing difference on the single initial image to be detected and the single reconstructed image to be detected to obtain a single difference image to be detected;
and carrying out binarization processing on the single to-be-detected difference image to obtain the single to-be-detected binarization image.
The preset image reconstruction model is obtained through training of an image training set of warp threads of the textile machine without thread breakage.
When the binarization processing is carried out on the single to-be-detected difference image, the binarization processing can be carried out on the single to-be-detected difference image by using a binarization threshold value of e.
In the process, the method reconstructs and differentiates the single initial image to be detected, so that the differential image to be detected can better reflect the characteristics of the broken warp of the textile machine, thereby being beneficial to judging the broken yarn detection.
Optionally, when a single binarized image to be detected is denoised to obtain a single target image to be detected, the method may include:
obtaining a plurality of connected domains of a single binary image to be detected;
and denoising the single binaryzation image to be detected according to the image characteristics of the plurality of connected domains to obtain the single target image to be detected.
Generally, a single binary image to be detected has a plurality of connected domains.
In the process, the method denoises the single binary image to be detected through a plurality of connected domains of the single binary image to be detected to obtain the single target image to be detected, can reduce the loss of partial information of the warp of the textile machine while denoising, and can improve the accuracy of judging whether the warp of the textile machine to be detected breaks or not, wherein the denoising mode is relatively in accordance with the characteristics of the warp of the textile machine after the warp breaks.
Illustratively, the image characteristics of the connected component may be the number of pixels of the connected component and the aspect ratio of the connected component.
That is, when a single binarization image to be detected is denoised according to the image characteristics of a plurality of connected domains to obtain a single target image to be detected, the single binarization image to be detected is denoised according to the number of pixel points of the plurality of connected domains and the length-width ratio of the connected domains to obtain the single target image to be detected.
In the process, the method carries out denoising on the single binary image to be detected through the number of the pixel points of the connected domain and the length-width ratio of the connected domain, and has a good denoising effect.
It should be noted that, in this embodiment, the image feature of the connected component may also be the area of the connected component and the aspect ratio of the connected component, or the pixel area ratio, or the ratio of the circumscribed rectangle, or the like.
In order to more accurately determine whether a warp of a textile machine to be detected is broken, the embodiment of the present application provides a possible implementation manner, referring to fig. 3, and fig. 3 is a schematic flow diagram of step S130 provided in the embodiment of the present application, and the method for detecting broken warp in the embodiment of the present application, step S130, determines whether an object to be detected is broken according to a connected domain of a plurality of target images to be detected, and may include the following steps:
step S131, removing connected domains with the connected domain contact ratio reaching a preset threshold value in the target images to be detected according to the connected domains of the target images to be detected to obtain a plurality of actual images to be detected;
and S132, judging whether the object to be detected is broken or not according to the plurality of actual images to be detected.
And the contact area contact ratio reaches a preset threshold value, namely the contact area contact ratio is greater than or equal to the preset threshold value.
If the number of the target images to be detected is three, determining a connected domain of which the contact ratio of the connected domains in the two target images to be detected reaches a preset threshold value through the connected domains of the first target image to be detected and the second target image to be detected; determining a connected domain of which the contact ratio of the connected domains in the two target images to be detected reaches a preset threshold value through the connected domains of the second target image to be detected and the third target image to be detected; and then removing the connected domain of which the contact ratio of the connected domain reaches the preset threshold value in the three target images to be detected through the two determined connected domains.
The contact area contact degree in the target images to be detected can be determined through the contact area contact degree in the target images to be detected, and also can be determined through edge information or brightness information of corresponding areas of a plurality of initial images to be detected corresponding to the target images to be detected.
In the process, the method judges whether the object to be detected is broken according to the connected domain of the target images to be detected, better considers the difference between different target images to be detected and the characteristics of the textile machine after the warp is broken, and can more accurately judge whether the warp of the textile machine to be detected is broken.
Optionally, when determining whether the object to be detected is broken according to the plurality of actual images to be detected, the method may include:
determining the actual image to be detected with the connected domain in the actual images to be detected as a defect image;
and judging whether the object to be detected is broken according to the number of the defect images.
When judging whether the object to be detected is broken according to the number of the defect images, judging whether the number of the defect images is larger than or equal to the preset number, and if the number of the defect images is larger than or equal to the preset number, judging that the object to be detected is broken; and if the number of the defect images is less than the preset number, judging that the object to be detected is not broken.
In the process, the method determines the actual images to be detected with the connected domains in the actual images to be detected as the defect images, and judges whether the object to be detected is broken according to the number of the defect images, thereby being beneficial to judging the broken line detection.
Example two
In order to implement a corresponding method of the above embodiments to achieve corresponding functions and technical effects, the following provides a disconnection detecting device.
Referring to fig. 4, fig. 4 is a block diagram of a structure of a disconnection detecting apparatus according to an embodiment of the present application.
The broken wire detection device of the embodiment of the application comprises:
an obtaining module 210, configured to obtain a plurality of initial images to be detected of an object to be detected within a predetermined time;
the image processing module 220 is configured to perform image processing on the multiple initial images to be detected respectively to obtain multiple target images to be detected;
and the disconnection judging module 230 is configured to judge whether the object to be detected is disconnected according to the connected domains of the multiple target images to be detected.
The broken thread detection device provided by the embodiment of the application is suitable for detecting broken threads of warps of a textile machine, a plurality of target images to be detected of an object to be detected within preset time are adopted, the difference between different target images to be detected is considered, when the interference or change of the object to be detected occurs in a background, the warps of the textile machine change among different frames, the change of the interference caused by the change of the background among different frames is small, the interference of the background can be effectively shielded, whether the warps of the textile machine to be detected break or not can be accurately judged, the mode that whether the objects to be detected break or not can be judged through the connected domains of the plurality of target images to be detected, the characteristics of the broken warps of the textile machine can be relatively met, whether the warps of the textile machine to be detected break or not can be accurately judged, the condition that the warps of the textile machine are missed in detection or not timely in detection can be greatly reduced, the quality of produced cloth can be guaranteed, and the waste of raw materials and the production cost can be reduced.
As an optional implementation manner, the image processing module 220 may be specifically configured to:
carrying out primary image processing on a single initial image to be detected to obtain a single binary image to be detected;
and denoising the single binary image to be detected to obtain a single target image to be detected.
Optionally, when the image processing module 220 performs preliminary image processing on a single initial image to be detected to obtain a single binary image to be detected, it may:
carrying out image reconstruction on a single initial image to be detected by using a preset image reconstruction model to obtain a single reconstructed image to be detected;
performing difference on the single initial image to be detected and the single reconstructed image to be detected to obtain a single difference image to be detected;
and carrying out binarization processing on the single to-be-detected difference image to obtain the single to-be-detected binarization image.
Optionally, when the image processing module 220 performs denoising on a single binarized image to be detected to obtain a single target image to be detected, the image processing module may:
obtaining a plurality of connected domains of a single binary image to be detected;
and denoising the single binaryzation image to be detected according to the image characteristics of the plurality of connected domains to obtain the single target image to be detected.
Optionally, when the image processing module 220 denoises a single binarized image to be detected according to the image features of the multiple connected domains to obtain a single target image to be detected, the image processing module can denoise the single binarized image to be detected according to the number of pixel points of the multiple connected domains and the aspect ratio of the connected domains to obtain the single target image to be detected.
As an optional implementation manner, the disconnection determining module 230 may be specifically configured to:
removing connected domains with the connected domain contact ratio reaching a preset threshold value in the target images to be detected according to the connected domains of the target images to be detected to obtain a plurality of actual images to be detected;
and judging whether the object to be detected is broken or not according to the plurality of actual images to be detected.
Optionally, when the disconnection determining module 230 determines whether the object to be detected is disconnected according to the plurality of actual images to be detected, it may:
determining the actual image to be detected with the connected domain in the actual images to be detected as a defect image;
and judging whether the object to be detected is broken according to the number of the defect images.
The disconnection detecting device can implement the disconnection detecting method of the first embodiment. The alternatives in the first embodiment are also applicable to the present embodiment, and are not described in detail here.
The rest of the embodiments of the present application may refer to the contents of the first embodiment, and in this embodiment, details are not repeated.
EXAMPLE III
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to make the electronic device execute the above-mentioned disconnection detection method.
Optionally, the electronic device may be a server.
In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the above-mentioned disconnection detection method.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined or explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A method for detecting a disconnection, comprising:
acquiring a plurality of initial images to be detected of an object to be detected within preset time;
respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected;
judging whether the object to be detected is broken or not according to the connected domains of the target images to be detected;
the method for judging whether the object to be detected is broken according to the connected domains of the target images to be detected comprises the following steps:
removing connected domains with the contact ratio reaching a preset threshold value in the target images to be detected according to the connected domains of the target images to be detected to obtain a plurality of actual images to be detected;
and judging whether the object to be detected is broken according to the plurality of actual images to be detected.
2. The disconnection detection method according to claim 1, wherein said performing image processing on the plurality of initial images to be detected respectively to obtain a plurality of target images to be detected comprises:
performing primary image processing on the single initial image to be detected to obtain a single binary image to be detected;
and denoising the single binary image to be detected to obtain a single target image to be detected.
3. The method according to claim 2, wherein the step of performing preliminary image processing on the single initial image to be detected to obtain a single binary image to be detected comprises:
carrying out image reconstruction on the single initial image to be detected by using a preset image reconstruction model to obtain a single reconstructed image to be detected;
performing difference on the single initial image to be detected and the single reconstructed image to be detected to obtain a single difference image to be detected;
and carrying out binarization processing on the single to-be-detected difference image to obtain a single to-be-detected binarization image.
4. The method for detecting the wire break according to claim 2, wherein the denoising the single binarized image to be detected to obtain the single target image to be detected comprises:
obtaining a plurality of connected domains of the single binary image to be detected;
and denoising the single binaryzation image to be detected according to the image characteristics of the plurality of connected domains to obtain the single target image to be detected.
5. The method according to claim 4, wherein the denoising the single binarized image to be detected according to the image features of the connected domains to obtain a single target image to be detected comprises:
and denoising the single binaryzation image to be detected according to the number of the pixel points of the plurality of connected domains and the length-width ratio of the connected domains to obtain the single target image to be detected.
6. The method according to claim 1, wherein the determining whether the object to be detected is broken according to the plurality of actual images to be detected includes:
determining the actual image to be detected with the connected domain in the plurality of actual images to be detected as a defect image;
and judging whether the object to be detected is broken according to the number of the defect images.
7. A disconnection detecting device, comprising:
the acquisition module is used for acquiring a plurality of initial images to be detected of an object to be detected within preset time;
the image processing module is used for respectively carrying out image processing on the plurality of initial images to be detected to obtain a plurality of target images to be detected;
the disconnection judging module is used for judging whether the object to be detected is disconnected according to the connected domains of the target images to be detected;
the disconnection judging module is further used for removing connected domains with the connected domain contact ratio reaching a preset threshold value in the target images to be detected according to the connected domains of the target images to be detected to obtain a plurality of actual images to be detected; and judging whether the object to be detected is broken according to the plurality of actual images to be detected.
8. An electronic device, comprising a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the disconnection detection method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the disconnection detection method according to any one of claims 1 to 6.
CN202011014808.7A 2020-09-23 2020-09-23 Disconnection detection method, disconnection detection device, electronic device and storage medium Active CN112150438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011014808.7A CN112150438B (en) 2020-09-23 2020-09-23 Disconnection detection method, disconnection detection device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011014808.7A CN112150438B (en) 2020-09-23 2020-09-23 Disconnection detection method, disconnection detection device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112150438A CN112150438A (en) 2020-12-29
CN112150438B true CN112150438B (en) 2023-01-20

Family

ID=73896615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011014808.7A Active CN112150438B (en) 2020-09-23 2020-09-23 Disconnection detection method, disconnection detection device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112150438B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113139952B (en) * 2021-05-08 2024-04-09 佳都科技集团股份有限公司 Image processing method and device
CN114581404B (en) * 2022-03-03 2022-08-30 常州市宏发纵横新材料科技股份有限公司 Broken yarn detection method for interweaving binding yarns

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978733A (en) * 2014-04-11 2015-10-14 富士通株式会社 Smoke detection method and smoke detection device
CN105321179A (en) * 2015-10-12 2016-02-10 陕西科技大学 Binary image connected domain labeling method for industrial product surface defect detection
CN105717136A (en) * 2016-01-28 2016-06-29 浙江工业大学 Pin inclination defect detecting method based on machine vision
WO2017092431A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Human hand detection method and device based on skin colour
CN107991309A (en) * 2017-11-27 2018-05-04 歌尔股份有限公司 Product quality detection method, device and electronic equipment
CN109816720A (en) * 2018-12-21 2019-05-28 歌尔股份有限公司 Road-center detection method, airborne equipment and storage medium
CN110335273A (en) * 2019-07-15 2019-10-15 北京海益同展信息科技有限公司 Detection method, detection device, electronic equipment and medium
CN111275705A (en) * 2020-02-28 2020-06-12 中科视语(北京)科技有限公司 Intelligent cloth inspecting method and device, electronic equipment and storage medium
CN111337509A (en) * 2020-04-16 2020-06-26 常州工业职业技术学院 Textile fabric surface flaw detection device, detection system and detection method thereof
CN111652319A (en) * 2020-06-09 2020-09-11 创新奇智(广州)科技有限公司 Cloth defect detection method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104978733A (en) * 2014-04-11 2015-10-14 富士通株式会社 Smoke detection method and smoke detection device
CN105321179A (en) * 2015-10-12 2016-02-10 陕西科技大学 Binary image connected domain labeling method for industrial product surface defect detection
WO2017092431A1 (en) * 2015-12-01 2017-06-08 乐视控股(北京)有限公司 Human hand detection method and device based on skin colour
CN105717136A (en) * 2016-01-28 2016-06-29 浙江工业大学 Pin inclination defect detecting method based on machine vision
CN107991309A (en) * 2017-11-27 2018-05-04 歌尔股份有限公司 Product quality detection method, device and electronic equipment
CN109816720A (en) * 2018-12-21 2019-05-28 歌尔股份有限公司 Road-center detection method, airborne equipment and storage medium
CN110335273A (en) * 2019-07-15 2019-10-15 北京海益同展信息科技有限公司 Detection method, detection device, electronic equipment and medium
CN111275705A (en) * 2020-02-28 2020-06-12 中科视语(北京)科技有限公司 Intelligent cloth inspecting method and device, electronic equipment and storage medium
CN111337509A (en) * 2020-04-16 2020-06-26 常州工业职业技术学院 Textile fabric surface flaw detection device, detection system and detection method thereof
CN111652319A (en) * 2020-06-09 2020-09-11 创新奇智(广州)科技有限公司 Cloth defect detection method and device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Automatic Fabric Defect Detection Using Learning-Based Local Textural Distributions in the Contourlet Domain;Daniel Yapi 等;《IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING》;20180731;第15卷(第3期);全文 *
基于视觉的经编机纺纱断线检测技术研究;谢一首 等;《科技创新与应用》;20171231(第8期);第2.1节 *
谢一首 等.基于视觉的经编机纺纱断线检测技术研究.《科技创新与应用》.2017,(第8期), *

Also Published As

Publication number Publication date
CN112150438A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
Rasheed et al. Fabric defect detection using computer vision techniques: a comprehensive review
CN112150438B (en) Disconnection detection method, disconnection detection device, electronic device and storage medium
CN106780486B (en) Steel plate surface defect image extraction method
Nateri et al. Evaluation of yarn defects by image processing technique
CN113724241B (en) Broken filament detection method and device for carbon fiber warp-knitted fabric and storage medium
CN115330784B (en) Cloth surface defect detection method
Priya et al. A novel approach to fabric defect detection using digital image processing
WO2012152336A1 (en) Method for detecting defects on yarns
CN111598801B (en) Identification method for weak Mura defect
CN111986195B (en) Appearance defect detection method and system
CN106878636B (en) Defect pixel point detecting method, device and picture processing chip
CN113838038A (en) Carbon fiber cloth cover defect detection method and device, electronic equipment and storage medium
Yangping et al. Real-time Defect Detection Method for Printed Images Based on Grayscale and Gradient Differences.
CN101096819B (en) Organization discrimination method of fabrics
Tiwari et al. Automatic fabric fault detection using morphological operations on bit plane
Ananthavaram et al. Automatic defect detection of patterned fabric by using RB method and independent component analysis
Choi et al. Real-time defects detection algorithm for high-speed steel bar in coil
KR100234593B1 (en) Method for high inspection of fabric
CN117089977B (en) Dynamic monitoring method, system and medium for grey cloth production
CN111402225B (en) Cloth folding false-detection defect discriminating method
KR100754969B1 (en) Image inspecting apparatus, image inspecting method, and computer-readable storage medium
CN115330770B (en) Cloth area type defect identification method
JP2555022B2 (en) Detection method of defect of inspection machine
Bankhead et al. Detecting Ca2+ sparks on stationary and varying baselines
JP5569687B2 (en) Evaluation index calculation device, evaluation index calculation program, storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant